@font-face {
  font-family: "MiSans";
  src: url("fonts/MiSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MiSans";
  src: url("fonts/MiSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #3584e4;
}

:root {
  --accent: #3584e4;
  --accent-fg: #ffffff;
  --window: #fafafb;
  --view: #ffffff;
  --card: #ffffff;
  --card-edge: rgba(0, 0, 6, 0.07);
  --headerbar: rgba(250, 250, 251, 0.72);
  --headerbar-edge: rgba(0, 0, 6, 0.1);
  --text: rgba(0, 0, 6, 0.8);
  --text-strong: #1e1e22;
  --dim: rgba(0, 0, 6, 0.55);
  --row-hover: rgba(0, 0, 6, 0.04);
  --pill: rgba(0, 0, 6, 0.07);
  --pill-hover: rgba(0, 0, 6, 0.11);
  --shade: rgba(0, 0, 6, 0.06);
  --device-shadow: rgba(0, 0, 10, 0.28);
  --floor: rgba(0, 0, 10, 0.3);
  --floor-soft: rgba(0, 0, 10, 0.09);
  --radius-card: 14px;
  --radius-window: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "MiSans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
  transition: --accent 0.6s ease;
}

:root[data-theme="light"] { color-scheme: light; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --window: #1d1d20;
  --view: #18181b;
  --card: #2a2a2e;
  --card-edge: rgba(255, 255, 255, 0.07);
  --headerbar: rgba(29, 29, 32, 0.72);
  --headerbar-edge: rgba(0, 0, 0, 0.4);
  --text: rgba(255, 255, 255, 0.84);
  --text-strong: #ffffff;
  --dim: rgba(255, 255, 255, 0.55);
  --row-hover: rgba(255, 255, 255, 0.05);
  --pill: rgba(255, 255, 255, 0.1);
  --pill-hover: rgba(255, 255, 255, 0.15);
  --shade: rgba(0, 0, 0, 0.3);
  --device-shadow: rgba(0, 0, 0, 0.6);
  --floor: rgba(0, 0, 0, 0.7);
  --floor-soft: rgba(0, 0, 0, 0.25);
  --accent: #78aeed;
  --accent-fg: #0f2a4d;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --window: #1d1d20;
    --view: #18181b;
    --card: #2a2a2e;
    --card-edge: rgba(255, 255, 255, 0.07);
    --headerbar: rgba(29, 29, 32, 0.72);
    --headerbar-edge: rgba(0, 0, 0, 0.4);
    --text: rgba(255, 255, 255, 0.84);
    --text-strong: #ffffff;
    --dim: rgba(255, 255, 255, 0.55);
    --row-hover: rgba(255, 255, 255, 0.05);
    --pill: rgba(255, 255, 255, 0.1);
    --pill-hover: rgba(255, 255, 255, 0.15);
    --shade: rgba(0, 0, 0, 0.3);
    --device-shadow: rgba(0, 0, 0, 0.6);
    --floor: rgba(0, 0, 0, 0.7);
    --floor-soft: rgba(0, 0, 0, 0.25);
    --accent: #78aeed;
    --accent-fg: #0f2a4d;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--window);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  color: var(--text-strong);
  line-height: 1.1;
  margin: 0;
  font-weight: 700;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--pill);
  padding: 0.12em 0.42em;
  border-radius: 6px;
  white-space: nowrap;
}

kbd {
  display: inline-block;
  font: 700 0.8em/1 var(--font);
  padding: 0.38em 0.6em;
  border-radius: 7px;
  background: var(--card);
  color: var(--text-strong);
  box-shadow: 0 0 0 1px var(--card-edge), 0 2px 0 var(--pill-hover);
  white-space: nowrap;
}

.wrap {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--card);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 50;
}
.skip:focus { left: 16px; }

.headerbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--headerbar);
  backdrop-filter: saturate(170%) blur(20px);
  -webkit-backdrop-filter: saturate(170%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.headerbar.scrolled {
  border-bottom-color: var(--headerbar-edge);
  box-shadow: 0 6px 24px -12px var(--shade);
}

.headerbar .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; object-fit: contain; transition: transform 0.5s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.brand b { color: var(--accent); font-weight: 700; }
.brand span { display: inline-flex; }

.nav {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.nav a {
  position: relative;
  color: var(--text);
  font-size: 15px;
  padding: 6px 13px;
  border-radius: 9px;
  transition: background 0.2s;
}
.nav a:hover { background: var(--row-hover); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--pill); color: var(--text-strong); font-weight: 700; }

.header-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}


.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-strong);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.icon-button:hover { background: var(--row-hover); text-decoration: none; }
.icon-button svg { width: 20px; height: 20px; }

.menu-toggle { display: none; }

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font: 700 16px/1 var(--font);
  color: var(--text-strong);
  background: var(--pill);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.3s;
}
.pill:hover { background: var(--pill-hover); text-decoration: none; transform: translateY(-2px); }
.pill:active { transform: translateY(0) scale(0.98); }
.pill.suggested {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 10px 30px -10px var(--accent);
}
.pill.suggested:hover { background: var(--accent); filter: brightness(1.07); box-shadow: 0 16px 36px -10px var(--accent); }
.pill.small { min-height: 36px; padding: 0 16px; font-size: 14px; }
.pill svg { width: 18px; height: 18px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 2.4s ease-in-out infinite;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; }

.hero {
  position: relative;
  text-align: center;
  padding: 72px 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg span {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.32;
  background: var(--accent);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero-bg span:nth-child(1) { left: -12vmax; top: -8vmax; }
.hero-bg span:nth-child(2) {
  right: -14vmax;
  top: 10vmax;
  background: color-mix(in oklch, var(--accent) 60%, #ff7ab8);
  animation-duration: 26s;
  animation-delay: -6s;
}
.hero-bg span:nth-child(3) {
  left: 30%;
  bottom: -26vmax;
  background: color-mix(in oklch, var(--accent) 75%, #4fd1c5);
  animation-duration: 30s;
  animation-delay: -12s;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(64px, 13vw, 168px);
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.hero h1 .w {
  display: inline-block;
  animation: rise 1.1s var(--ease) both;
}
.hero h1 .w.os {
  animation-delay: 0.12s;
  background: linear-gradient(90deg, var(--accent), color-mix(in oklch, var(--accent) 50%, #ff7ab8), var(--accent));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0.04em 0.1em 0.06em 0;
  margin-right: -0.1em;
  animation: rise 1.1s var(--ease) 0.12s both, shine 6s linear infinite;
}
.hero .lead {
  max-width: 36ch;
  margin: 22px auto 0;
  font-size: clamp(19px, 2.4vw, 25px);
  color: var(--dim);
  line-height: 1.45;
  animation: rise 1.1s var(--ease) 0.22s both;
}
.hero .actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  animation: rise 1.1s var(--ease) 0.32s both;
}
.hero .version {
  margin-top: 14px;
  font-size: 14px;
  color: var(--dim);
  animation: rise 1.1s var(--ease) 0.4s both;
}
.hero .eyebrow { animation: rise 1.1s var(--ease) both; }

.stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(8px, 3vw, 40px);
  margin-top: 56px;
  padding-bottom: 72px;
}
.stage .dev { position: relative; }
.stage .dev::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--floor), var(--floor-soft) 60%, transparent);
  left: 14%;
  right: 14%;
  top: 92%;
  height: 7%;
}
.stage .dev img {
  position: relative;
  z-index: 1;
  height: clamp(300px, 52vw, 620px);
  width: auto;
}
.stage .dev.r1 img { height: clamp(290px, 50vw, 600px); }

.marquee {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--card-edge);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-weight: 700;
  font-size: 17px;
  color: var(--text-strong);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--card-edge);
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
}
.marquee-track span.lead-in {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: none;
}

.section {
  padding: 96px 0;
  position: relative;
  overflow-x: clip;
}

.head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.head h2 {
  font-size: clamp(38px, 5.6vw, 64px);
  letter-spacing: -0.03em;
}
.head p { font-size: 20px; color: var(--dim); margin: 18px auto 0; max-width: 46ch; }
.head p.eyebrow { font-size: 14px; color: var(--accent); margin: 0 auto 18px; max-width: none; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  background: var(--card);
  border-radius: var(--radius-window);
  box-shadow: 0 0 0 1px var(--card-edge), 0 1px 3px var(--shade);
  padding: 30px 26px;
}
.stat b {
  display: block;
  font-size: clamp(42px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat b { white-space: nowrap; }
.stat b small { font-size: 0.42em; letter-spacing: 0; margin-left: 4px; }
.stat > span { display: block; margin-top: 12px; color: var(--dim); font-size: 16px; line-height: 1.4; }

.tour { padding: 0; }
.tour-step:last-child { min-height: 80vh; }
.tour-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
}
.tour-visual { position: relative; }
.tour-sticky {
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  display: grid;
  place-items: center;
}
.tour-glow {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 34%, transparent), transparent);
  filter: blur(20px);
  transition: transform 1s var(--ease);
  transform: scale(var(--glow, 1));
}
.tour-frame {
  position: relative;
  width: min(100%, calc(min(76vh, 700px) * 0.712));
  aspect-ratio: 1040 / 1460;
}
.tour-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--floor), var(--floor-soft) 60%, transparent);
  left: 14%;
  right: 14%;
  top: 92%;
  height: 7%;
}
.tour-frame img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateY(36px) scale(0.94);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.tour-frame img.active { opacity: 1; transform: none; }
.tour-frame img.past { transform: translateY(-36px) scale(0.94); }
.tour-dots {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tour-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: var(--pill-hover);
  cursor: pointer;
  transition: height 0.4s var(--ease), background 0.3s;
}
.tour-dots button.active { height: 30px; background: var(--accent); }

.tour-step {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.28;
  transition: opacity 0.6s;
}
.tour-step.active { opacity: 1; }
.tour-step .kicker {
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.tour-step h2 {
  font-size: clamp(36px, 4.6vw, 58px);
  letter-spacing: -0.03em;
  margin-top: 10px;
}
.tour-step > p {
  font-size: 20px;
  color: var(--dim);
  margin: 18px 0 26px;
  max-width: 44ch;
}
.tour-inline { display: none; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips button {
  font: 400 15px/1 var(--font);
  color: var(--text);
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--card-edge), 0 1px 2px var(--shade);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
}
.chips button:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 6px 14px -8px var(--shade); }
.chips button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
  box-shadow: 0 8px 20px -10px var(--accent);
}
.tour-step.active .chips button { animation: pop 0.6s var(--ease) both; }
.tour-step.active .chips button:nth-child(2) { animation-delay: 0.06s; }
.tour-step.active .chips button:nth-child(3) { animation-delay: 0.12s; }
.tour-step.active .chips button:nth-child(4) { animation-delay: 0.18s; }
.tour-step.active .chips button:nth-child(5) { animation-delay: 0.24s; }

.link-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.link-text h2 {
  font-size: clamp(36px, 4.6vw, 58px);
  letter-spacing: -0.03em;
  margin-top: 18px;
}
.link-text > p:not(.eyebrow) {
  font-size: 20px;
  color: var(--dim);
  margin: 18px 0 26px;
  max-width: 46ch;
}
.link-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(420px, 70vh, 680px);
}
.link-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--floor), var(--floor-soft) 60%, transparent);
  left: 50%;
  bottom: -18px;
  width: calc(clamp(420px, 70vh, 680px) * 0.32);
  height: 36px;
  transform: translateX(-50%);
}
.link-visual img {
  position: relative;
  z-index: 1;
  height: clamp(420px, 70vh, 680px);
  width: 100%;
  object-fit: contain;
}
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.eyebrow svg { width: 16px; height: 16px; }
.eyebrow:has(svg)::before { display: none; }
.heart svg { width: 0.75em; height: 0.75em; fill: currentColor; vertical-align: -0.04em; }
.pill svg, .icon-button svg { flex: none; }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tile {
  --mx: 50%;
  --my: 50%;
  position: relative;
  background: var(--card);
  border-radius: var(--radius-window);
  box-shadow: 0 0 0 1px var(--card-edge), 0 1px 3px var(--shade);
  padding: 26px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 16%, transparent), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.tile:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--card-edge), 0 22px 40px -22px var(--device-shadow); }
.tile:hover::before { opacity: 1; }
.tile.wide { grid-column: span 2; }
.tile .ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  transition: transform 0.5s var(--ease);
}
.tile:hover .ico { transform: rotate(-8deg) scale(1.08); }
.tile .ico svg { width: 24px; height: 24px; }
.tile h3 { font-size: 20px; margin-top: 18px; }
.tile p { margin: 8px 0 0; color: var(--dim); font-size: 15px; line-height: 1.5; }

.carousel-wrap { position: relative; }
.carousel {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 10px max(16px, calc((100vw - 1160px) / 2)) 30px;
  scrollbar-width: none;
  cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.slide {
  --shot: clamp(360px, 52vh, 520px);
  position: relative;
  flex: 0 0 calc(var(--shot) * 0.712);
  scroll-snap-align: center;
  margin: 0;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
}
.slide::before {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--floor), var(--floor-soft) 60%, transparent);
  left: 14%;
  right: 14%;
  top: calc(var(--shot) * 0.92);
  height: calc(var(--shot) * 0.07);
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
.slide img {
  position: relative;
  height: var(--shot);
  width: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
  pointer-events: none;
  -webkit-user-drag: none;
}
.slide:hover img { transform: translateY(-12px); }
.slide:hover::before { transform: scale(0.86); opacity: 0.65; }
.slide figcaption h3 { font-size: 22px; margin-top: 24px; }
.slide figcaption p { margin: 6px auto 0; color: var(--dim); font-size: 16px; max-width: 30ch; }
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.carousel-nav button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--pill);
  color: var(--text-strong);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, opacity 0.2s, transform 0.25s var(--ease);
}
.carousel-nav button:hover { background: var(--pill-hover); transform: scale(1.06); }
.carousel-nav button:disabled { opacity: 0.35; cursor: default; transform: none; }
.carousel-nav svg { width: 20px; height: 20px; }

.seg {
  display: inline-flex;
  position: relative;
  padding: 4px;
  border-radius: 999px;
  background: var(--pill);
}
.seg button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  font: 700 15px/1 var(--font);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s;
}
.seg button[aria-pressed="true"] { color: var(--text-strong); }
.seg .thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 1px 4px var(--shade), 0 0 0 1px var(--card-edge);
  transition: transform 0.45s var(--ease), width 0.45s var(--ease);
}

.players {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  margin-top: 40px;
}
.players-stage {
  position: relative;
  height: clamp(380px, 60vh, 600px);
}
.players-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--floor), var(--floor-soft) 60%, transparent);
  left: 50%;
  top: 92%;
  height: 7%;
  width: calc(clamp(380px, 60vh, 600px) * 0.5);
  transform: translateX(-50%);
}
.players-stage img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.players-specs { position: relative; display: grid; }
.player-card {
  grid-area: 1 / 1;
  background: var(--card);
  border-radius: var(--radius-window);
  box-shadow: 0 0 0 1px var(--card-edge), 0 1px 3px var(--shade);
  padding: 30px;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.player-card h3 { font-size: 30px; }
.player-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  margin: 22px 0 0;
  font-size: 16px;
}
.player-card dt, .player-card dd { padding: 12px 0; border-top: 1px solid var(--card-edge); }
.player-card dt { color: var(--dim); padding-right: 24px; }
.player-card dd { margin: 0; color: var(--text-strong); }
[data-show="r3"] .is-r1,
[data-show="r1"] .is-r3 { opacity: 0; pointer-events: none; }
[data-show="r3"] .players-stage .is-r1 { transform: translateX(60px) scale(0.92); }
[data-show="r1"] .players-stage .is-r3 { transform: translateX(-60px) scale(0.92); }
[data-show="r3"] .player-card.is-r1,
[data-show="r1"] .player-card.is-r3 { transform: translateY(16px); }

.support { text-align: center; overflow: hidden; }
.support-card {
  position: relative;
  border-radius: 32px;
  padding: clamp(48px, 8vw, 96px) 24px;
  background:
    radial-gradient(600px circle at 20% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 60%),
    radial-gradient(600px circle at 80% 100%, color-mix(in oklch, var(--accent) 22%, #ff7ab8 10%), transparent 60%),
    var(--card);
  box-shadow: 0 0 0 1px var(--card-edge), 0 1px 3px var(--shade);
}
.support h2 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.03em; }
.support p { font-size: 19px; color: var(--dim); max-width: 48ch; margin: 18px auto 30px; }
.support .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.heart { display: inline-block; animation: beat 1.6s ease-in-out infinite; color: var(--accent); }

.page-title {
  position: relative;
  padding: 72px 0 28px;
}
.page-title h1 { font-size: clamp(48px, 8vw, 88px); letter-spacing: -0.04em; animation: rise 1s var(--ease) both; }
.page-title p { font-size: 20px; color: var(--dim); max-width: 56ch; margin: 16px 0 0; animation: rise 1s var(--ease) 0.1s both; }

.downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}
.download-card {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius-window);
  box-shadow: 0 0 0 1px var(--card-edge), 0 1px 3px var(--shade);
  padding: 28px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.download-card:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--card-edge), 0 26px 46px -24px var(--device-shadow); }
.download-card img {
  height: 230px;
  width: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}
.download-card:hover img { transform: translateY(-6px) rotate(-3deg); }
.download-card h2 { font-size: 28px; }
.download-card p { margin: 8px 0 18px; color: var(--dim); font-size: 15px; }
.download-card .file { font-family: var(--mono); font-size: 14px; color: var(--text-strong); }

.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
  font-size: 16px;
}
.notice svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.notice strong { color: var(--text-strong); }
.notice.warn { background: color-mix(in srgb, #e5a50a 12%, var(--card)); box-shadow: 0 0 0 1px color-mix(in srgb, #e5a50a 36%, transparent); }
.notice.warn svg { color: #c88800; }

.steps {
  counter-reset: step;
  list-style: none;
  margin: 14px 0;
  padding: 0;
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: 0 0 0 1px var(--card-edge), 0 1px 3px var(--shade);
  overflow: hidden;
}
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 16px;
  padding: 16px 20px;
  margin: 0;
}
.steps > li + li { border-top: 1px solid var(--card-edge); }
.steps > li::before {
  content: counter(step);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  background: var(--accent);
  color: var(--accent-fg);
}
.steps strong { color: var(--text-strong); }
.steps ul { margin: 6px 0 0; padding-left: 20px; }

.block-title {
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 72px 0 20px;
}

.release {
  background: var(--card);
  border-radius: var(--radius-window);
  box-shadow: 0 0 0 1px var(--card-edge), 0 1px 3px var(--shade);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.release:hover { box-shadow: 0 0 0 1px var(--card-edge), 0 14px 30px -20px var(--device-shadow); }
.release summary {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 22px;
  cursor: pointer;
}
.release summary::-webkit-details-marker { display: none; }
.release summary::after {
  content: "";
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--dim);
  border-bottom: 2px solid var(--dim);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.release[open] summary::after { transform: rotate(-135deg); }
.release summary h3 { font-size: 20px; }
.release .tag {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
}
.release .tag.old { background: var(--pill); color: var(--text-strong); }
.release .date { color: var(--dim); font-size: 14px; }
.release .notes {
  padding: 4px 22px 22px;
  border-top: 1px solid var(--card-edge);
  font-size: 16px;
}
.release[open] .notes { animation: open 0.45s var(--ease); }
.release .notes h4 { font-size: 18px; margin: 22px 0 8px; }
.release .notes ul { margin: 0; padding-left: 22px; }
.release .notes li { margin: 4px 0; }
.release .notes img { display: inline-block; vertical-align: middle; }
.release-status { color: var(--dim); }
.skeleton {
  height: 64px;
  border-radius: var(--radius-window);
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--pill) 0%, var(--pill-hover) 50%, var(--pill) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

.docs {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 56px;
  align-items: start;
  padding: 32px 0 110px;
}
.sidebar {
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius-window);
  box-shadow: 0 0 0 1px var(--card-edge), 0 1px 3px var(--shade);
  overflow: hidden;
}
.search {
  position: relative;
  padding: 10px;
  border-bottom: 1px solid var(--card-edge);
}
.search svg {
  position: absolute;
  left: 22px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--dim);
  pointer-events: none;
}
.search input {
  width: 100%;
  font: 400 15px/1 var(--font);
  color: var(--text-strong);
  background: var(--pill);
  border: 0;
  border-radius: 10px;
  padding: 11px 12px 11px 36px;
  outline: none;
  transition: box-shadow 0.2s;
}
.search input:focus { box-shadow: 0 0 0 2px var(--accent); }
.search input::placeholder { color: var(--dim); }
.toc { overflow: auto; padding: 8px; }
.toc h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 14px 12px 6px;
}
.toc h4:first-child { padding-top: 6px; }
.toc a {
  position: relative;
  display: block;
  padding: 7px 12px;
  border-radius: 9px;
  color: var(--text);
  font-size: 15px;
  transition: background 0.2s, color 0.2s, padding 0.3s var(--ease);
}
.toc a:hover { background: var(--row-hover); text-decoration: none; }
.toc a.active { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text-strong); font-weight: 700; padding-left: 18px; }
.toc a.active::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 4px;
  height: 16px;
  margin-top: -8px;
  border-radius: 2px;
  background: var(--accent);
}
.toc a[hidden], .toc h4[hidden] { display: none; }
.toc-toggle { display: none; }

.doc { max-width: 76ch; min-width: 0; }
.doc section { scroll-margin-top: 84px; }
.doc section + section { margin-top: 72px; }
.doc section[hidden] { display: none; }
.doc .chapter {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.doc h2 {
  font-size: 36px;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.doc h2 a.anchor {
  margin-left: 10px;
  font-size: 0.7em;
  color: var(--dim);
  opacity: 0;
  transition: opacity 0.2s;
}
.doc h2:hover a.anchor { opacity: 1; text-decoration: none; }
.doc h3 {
  font-size: 22px;
  margin: 34px 0 8px;
}
.doc p { margin: 12px 0; }
.doc ul { padding-left: 22px; margin: 12px 0; }
.doc li { margin: 7px 0; }
.doc li strong, .doc p strong, .doc td strong { color: var(--text-strong); }
.doc .notice { margin: 20px 0; }
.path {
  display: inline;
  font-weight: 700;
  color: var(--text-strong);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 0.1em 0.5em;
  border-radius: 7px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.no-results {
  padding: 48px 24px;
  text-align: center;
  color: var(--dim);
  background: var(--card);
  border-radius: var(--radius-window);
  box-shadow: 0 0 0 1px var(--card-edge);
}

.table-scroll { overflow-x: auto; margin: 16px 0; border-radius: var(--radius-card); }
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: inset 0 0 0 1px var(--card-edge);
  font-size: 15px;
}
.table th, .table td {
  text-align: left;
  padding: 12px 16px;
  vertical-align: top;
}
.table th { color: var(--dim); font-weight: 700; font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; }
.table tr + tr td, .table thead + tbody tr:first-child td { border-top: 1px solid var(--card-edge); }
.table td:first-child { color: var(--text-strong); font-weight: 700; white-space: nowrap; }
.table tbody tr { transition: background 0.2s; }
.table tbody tr:hover { background: var(--row-hover); }

.footer {
  border-top: 1px solid var(--card-edge);
  padding: 44px 0 60px;
  font-size: 14px;
  color: var(--dim);
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--text); }

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 10px 26px -8px var(--accent);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: none; }
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vmax, 4vmax) scale(1.12); }
  100% { transform: translate(-4vmax, 8vmax) scale(0.95); }
}
@keyframes shine {
  to { background-position: -200% 0; }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.92); }
  to { opacity: 1; transform: none; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
}
@keyframes open {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}

@media (max-width: 980px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  .link-visual, .link-visual img { min-height: 0; height: min(64vh, 560px); }
  .bento { grid-template-columns: 1fr 1fr; }
  .tour-grid { grid-template-columns: 1fr; }
  .tour-visual { display: none; }
  .tour-step { min-height: 0; opacity: 1; padding: 56px 0; }
  .tour-step .chips button { animation: none; }
  .tour-inline {
    display: block;
    height: min(64vh, 560px);
    width: 100%;
    object-fit: contain;
    margin: 36px auto 0;
  }
  .players { grid-template-columns: 1fr; }
  .downloads { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 16px; }
  .sidebar { position: sticky; top: 66px; z-index: 20; max-height: none; box-shadow: 0 0 0 1px var(--card-edge), 0 0 0 10px var(--window); }
  .toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 0;
    background: transparent;
    font: 700 16px/1 var(--font);
    color: var(--text-strong);
    padding: 16px 18px;
    cursor: pointer;
  }
  .toc-toggle svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
  .sidebar.open .toc-toggle svg { transform: rotate(180deg); }
  .sidebar .search, .sidebar .toc { display: none; }
  .sidebar.open .search { display: block; }
  .sidebar.open .toc { display: block; max-height: 60vh; }
}

@media (max-width: 720px) {
  .menu-toggle { display: grid; }
  .nav {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 8px 16px 16px;
    background: var(--window);
    border-bottom: 1px solid var(--headerbar-edge);
    margin: 0;
  }
  .nav.open { display: flex; animation: open 0.3s var(--ease); }
  .nav a { padding: 12px; font-size: 17px; }
  .header-end .kofi-label { display: none; }
  .section { padding: 80px 0; }
  .stats { gap: 12px; }
  .stat { padding: 22px 18px; }
  .bento { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .stage { padding-bottom: 48px; }
  .stage .dev img { height: clamp(240px, 70vw, 400px); }
  .stage .dev.r1 img { height: clamp(230px, 67vw, 380px); }
  .download-card { grid-template-columns: 96px 1fr; gap: 18px; padding: 22px; }
  .download-card img { height: 160px; }
  .doc h2 { font-size: 30px; }
  .table td:first-child { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .tour-step { opacity: 1; }
}

.code {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  background: var(--card);
  color: var(--text-strong);
  border-radius: var(--radius-card);
  box-shadow: inset 0 0 0 1px var(--card-edge);
  padding: 16px 18px;
  margin: 14px 0;
  overflow-x: auto;
}

.ui-icon {
  display: inline-block;
  position: relative;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: var(--pill);
  color: var(--text-strong);
  vertical-align: -0.45em;
  margin: 0 0.1em;
}
.ui-icon svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1em;
  height: 1em;
}
.table .ui-icon { font-size: 15px; }

body { transition: background-color 0.3s ease, color 0.3s ease; }
.theme-toggle .i:last-child { display: none; }
:root[data-theme="dark"] .theme-toggle .i:first-child { display: none; }
:root[data-theme="dark"] .theme-toggle .i:last-child { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i:first-child { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i:last-child { display: block; }
}
