/*! Spawn UI | hand-written CSS, no framework. Sections: tokens, base, components, header, footer, home, pages, motion */

/* =====================================================================
   FONT (local, variable 100-900, no external request)
   ===================================================================== */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* =====================================================================
   TOKENS. Blue = server hosting, orange = playing on our servers.
   Colour always encodes which service something belongs to.
   ===================================================================== */
:root {
  --font: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --hdr: 72px;
  --wrap: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --cut: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --fill-dir: to right;

  color-scheme: dark;
  --bg: #060A1C;
  --bg-2: #0A1029;
  --surface: #0D1430;
  --surface-2: #131C3F;
  --line: rgba(150, 170, 255, .13);
  --line-2: rgba(150, 170, 255, .24);
  --text: #EEF1FF;
  --text-2: #A7B1D8;
  --text-3: #7A86B3;
  --ink: #EEF1FF;
  --on-ink: #060A1C;
  --focus: #9DB6FF;

  --host: #4C7DFF;
  --host-ink: #9DB6FF;
  --on-host: #050A1E;
  --host-bg: #060B24;
  --host-soft: rgba(76, 125, 255, .14);
  --host-glow: rgba(76, 125, 255, .5);

  --play: #FF6A1F;
  --play-ink: #FFAE85;
  --on-play: #160A04;
  --play-bg: #170A0E;
  --play-soft: rgba(255, 106, 31, .14);
  --play-glow: rgba(255, 106, 31, .5);

  --ok: #33E39A;
  --ok-ink: #33E39A;
  --ok-soft: rgba(51, 227, 154, .13);
  --warn: #FFC93C;
  --bad: #FF5C78;

  --glass: rgba(8, 13, 34, .74);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -28px rgba(0, 0, 0, .9);
  --grain: .055;

  /* neutral team defaults (overridden inside [data-team]) */
  --team: var(--text-2);
  --team-ink: var(--text);
  --on-team: var(--bg);
  --team-soft: var(--line);
  --team-glow: transparent;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #F3F5FC;
  --bg-2: #E8ECF8;
  --surface: #FFFFFF;
  --surface-2: #EEF2FC;
  --line: rgba(11, 22, 56, .12);
  --line-2: rgba(11, 22, 56, .22);
  --text: #0B1638;
  --text-2: #3B4770;
  --text-3: #5B6690;
  --ink: #0B1638;
  --on-ink: #FFFFFF;
  --focus: #2450E6;

  --host: #2450E6;
  --host-ink: #1C3FB8;
  --on-host: #FFFFFF;
  --host-bg: #E6EDFF;
  --host-soft: rgba(36, 80, 230, .10);
  --host-glow: rgba(36, 80, 230, .30);

  --play: #E8590C;
  --play-ink: #B23F06;
  --on-play: #1A0B03;
  --play-bg: #FFEEE2;
  --play-soft: rgba(232, 89, 12, .11);
  --play-glow: rgba(232, 89, 12, .30);

  --ok: #12A066;
  --ok-ink: #07704A;
  --ok-soft: rgba(18, 160, 102, .12);
  --warn: #B7791F;
  --bad: #D12A48;

  --glass: rgba(243, 245, 252, .82);
  --shadow: 0 1px 2px rgba(11, 22, 56, .06), 0 16px 36px -20px rgba(11, 22, 56, .22);
  --grain: 0;
}

[dir="rtl"] { --fill-dir: to left; }

[data-team="host"], .tag--host, .btn--host {
  --team: var(--host); --team-ink: var(--host-ink); --on-team: var(--on-host); --team-soft: var(--host-soft); --team-glow: var(--host-glow);
}
[data-team="play"], .tag--play, .btn--play {
  --team: var(--play); --team-ink: var(--play-ink); --on-team: var(--on-play); --team-soft: var(--play-soft); --team-glow: var(--play-glow);
}

/* first paint: page colour, never a white flash */
html, body { background: var(--bg); color: var(--text); }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 16px);
  overflow-x: clip;
  scrollbar-color: var(--line-2) transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
html[lang="en"] body { line-height: 1.6; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.4; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
html[lang="en"] :is(h1, h2, h3, h4) { line-height: 1.2; }
p { margin: 0 0 1em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
svg { flex: none; }
code { font-family: var(--mono); }
main { display: block; outline: none; }
[hidden] { display: none !important; }

::selection { background: var(--host-soft); color: var(--text); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.i {
  width: 1.25em; height: 1.25em; display: inline-block; vertical-align: middle;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
[dir="rtl"] .i--dir { transform: scaleX(-1); }

/* subtle film grain on dark (kills gradient banding) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px;
}

/* language swap: hide only until JS has replaced the text; failsafe reveals after 1.5s */
.i18n-pending body { visibility: hidden; animation: i18n-show 0s linear 1.5s forwards; }
@keyframes i18n-show { to { visibility: visible; } }

/* =====================================================================
   TYPE SCALE (one family; weight and size do the work)
   ===================================================================== */
.display { font-size: clamp(2.5rem, 1.35rem + 4.6vw, 5.4rem); font-weight: 900; line-height: 1.24; }
html[lang="en"] .display { line-height: 1; letter-spacing: -.035em; }
.display .line, .h2 .line { display: block; }

.h2 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3.2rem); font-weight: 850; line-height: 1.32; }
html[lang="en"] .h2 { line-height: 1.06; letter-spacing: -.028em; }

.h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); font-weight: 800; line-height: 1.5; }
html[lang="en"] .h3 { line-height: 1.25; letter-spacing: -.012em; }

.lead { font-size: clamp(1.02rem, .96rem + .3vw, 1.2rem); color: var(--text-2); max-width: 38rem; line-height: 1.95; }
html[lang="en"] .lead { line-height: 1.6; max-width: 34rem; }

/* =====================================================================
   SHARED COMPONENTS
   ===================================================================== */
.skip {
  position: fixed; inset-inline-start: 1rem; top: -120px; z-index: 300;
  padding: .7rem 1.1rem; border-radius: 10px; background: var(--ink); color: var(--on-ink);
  font-weight: 800; text-decoration: none; transition: top .25s var(--ease);
}
.skip:focus { top: 1rem; }

/* --- buttons: chamfered (HUD) shape drawn on ::before so focus outlines stay visible --- */
.btn {
  --b-bg: var(--surface-2); --b-fg: var(--text); --mag-x: 0px; --mag-y: 0px; --s: 1;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em; border: 0; background: none;
  color: var(--b-fg); font: 750 1rem/1.2 var(--font); text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  transform: translate(var(--mag-x), var(--mag-y)) scale(var(--s));
  transition: transform .35s var(--ease), color .2s;
}
.btn::before, .btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
[dir="rtl"] .btn::before, [dir="rtl"] .btn::after {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.btn::before { background: var(--b-bg); transition: background-color .25s, filter .25s, box-shadow .25s; }
.btn::after {
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%);
  background-size: 260% 100%; background-position: 135% 0; transition: background-position .7s var(--ease);
}
.btn:hover::after { background-position: -35% 0; }
.btn:hover::before { filter: brightness(1.08) saturate(1.1); }
.btn:active { --s: .97; transition-duration: .12s; }
.btn .i { transition: transform .3s var(--ease); }
.btn:hover .i--dir { transform: translateX(3px); }
[dir="rtl"] .btn:hover .i--dir { transform: scaleX(-1) translateX(3px); }
.btn:hover .i--down { transform: translateY(2px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn--host { --b-bg: var(--host); --b-fg: var(--on-host); }
.btn--play { --b-bg: var(--play); --b-fg: var(--on-play); }
.btn--ink  { --b-bg: var(--ink);  --b-fg: var(--on-ink); }
.btn--line { --b-bg: var(--team-soft); --b-fg: var(--team-ink); }
.btn--line:hover { --b-bg: var(--team); --b-fg: var(--on-team); }
.btn--host:hover, .btn--play:hover { filter: drop-shadow(0 8px 22px var(--team-glow)); }
.btn--sm { min-height: 40px; padding: .5em 1em; font-size: .92rem; --cut: 8px; }
.btn--lg { min-height: 56px; padding: .8em 1.6em; font-size: 1.06rem; --cut: 12px; }
.btn--block { width: 100%; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .i { animation: spin .8s linear infinite; }

/* --- text link with arrow --- */
.link-arrow {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: 0;
  border: 0; background: none; cursor: pointer;
  color: var(--team-ink); font-weight: 750; text-decoration: none;
}
.link-arrow > span:first-child {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .35s var(--ease);
}
[dir="rtl"] .link-arrow > span:first-child { background-position: 100% 100%; }
.link-arrow:hover > span:first-child { background-size: 100% 1.5px; }
.link-arrow .i { transition: transform .3s var(--ease); }
.link-arrow:hover .i--dir { transform: translateX(3px); }
[dir="rtl"] .link-arrow:hover .i--dir { transform: scaleX(-1) translateX(3px); }

/* --- team tag (a diamond, like the logo) --- */
.tag {
  display: inline-flex; align-items: center; gap: .6em; margin: 0 0 .9rem;
  color: var(--team-ink); font-size: .92rem; font-weight: 750; line-height: 1.4;
}
.tag::before {
  content: ""; width: .5em; height: .5em; flex: none; background: var(--team);
  transform: rotate(45deg); box-shadow: 0 0 12px var(--team-glow);
}

/* --- monogram tile for games --- */
.tile {
  --cut: 7px;
  display: inline-grid; place-items: center; flex: none; width: 2.7rem; height: 2.7rem;
  background: var(--team-soft); color: var(--team-ink);
  font: 850 .8rem/1 var(--font); letter-spacing: .02em; direction: ltr;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.tile--lg { width: 3.4rem; height: 3.4rem; font-size: 1rem; --cut: 9px; }

/* --- HUD corner brackets for data panels --- */
.hud { position: relative; }
.hud::after {
  --c: var(--line-2); --s: 14px; --w: 2px;
  content: ""; position: absolute; inset: -1px; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--s) no-repeat;
}
[data-team] .hud::after, .hud[data-team]::after { --c: var(--team); }

/* --- small controls --- */
.mini-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 38px; padding: .3rem .85rem; border: 1px solid var(--line-2); border-radius: 8px;
  background: transparent; color: var(--text); font: 700 .85rem/1 var(--font);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.mini-btn:hover { border-color: var(--team, var(--host)); color: var(--team-ink); }
.mini-btn.is-done { border-color: var(--ok); color: var(--ok-ink); }

.copy {
  display: inline-flex; align-items: center; gap: .55rem; max-width: 100%;
  min-height: 44px; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--text); font: 600 .84rem/1.2 var(--mono); cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.copy__txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy .i { color: var(--text-3); transition: color .2s, transform .3s var(--spring); }
.copy:hover { border-color: var(--team, var(--host)); }
.copy:hover .i { color: var(--team-ink); }
.copy.is-done { border-color: var(--ok); color: var(--ok-ink); }
.copy.is-done .i { color: var(--ok); transform: scale(1.2); }
.copy--block { width: 100%; justify-content: space-between; }

.status-chip {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0;
  padding: .3rem .85rem; border-radius: 999px; background: var(--ok-soft); color: var(--ok-ink);
  font-size: .86rem; font-weight: 750; line-height: 1.5;
}
.status-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: ping 2.2s var(--ease) infinite; }
.status-chip--lg { margin-top: 1.6rem; padding: .5rem 1rem; font-size: .92rem; }
.status-chip__sep { width: 1px; height: 1em; background: currentColor; opacity: .35; }

/* section scaffolding */
.sec { position: relative; padding-block: clamp(4.5rem, 3rem + 6vw, 8rem); }
.sec--tight { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.sec__head { max-width: 46rem; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3rem); }
.sec__head .h2 { margin: 0; }
.sec__head--row {
  max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 1rem 4rem; align-items: end;
}
.sec__head--row .lead { margin: 0; }
.sec__foot { margin: 1.25rem 0 0; }
@media (max-width: 860px) { .sec__head--row { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--top { align-items: start; }
.split__text .lead { margin-top: 1rem; }
.split__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }

.checks { list-style: none; margin: 1.6rem 0 2rem; padding: 0; display: grid; gap: .55rem; }
.checks li { display: flex; align-items: flex-start; gap: .7rem; }
.checks .i { margin-top: .3em; color: var(--team); }
html[lang="en"] .checks .i { margin-top: .15em; }

/* =====================================================================
   HEADER
   ===================================================================== */
.hdr {
  position: fixed; inset-inline: 0; top: 0; z-index: 100; height: var(--hdr);
  transition: transform .4s var(--ease);
  view-transition-name: site-hdr;
}
.hdr::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: var(--glass); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  transition: opacity .3s;
}
.hdr.is-scrolled::before, .hdr.has-mega::before { opacity: 1; }
.hdr.is-hidden { transform: translateY(-105%); }
.hdr__in {
  position: relative; z-index: 2; height: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
  display: flex; align-items: center; gap: 1rem;
}

.logo { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--text); text-decoration: none; flex: none; }
.logo__mark { width: 30px; height: 30px; overflow: visible; }
.logo__mark path { transition: transform .4s var(--spring); }
.lm-host { fill: var(--host); }
.lm-play { fill: var(--play); }
.logo:hover .lm-host { transform: translate(-1.5px, -1.5px); }
.logo:hover .lm-play { transform: translate(1.5px, 1.5px); }
.logo__word { direction: ltr; font-size: 1.22rem; font-weight: 900; letter-spacing: -.02em; line-height: 1; }

/* ---- "two teams" capsule: host half, diagonal seam, play half ---- */
.tnav { display: flex; align-items: center; gap: .5rem; margin-inline: auto; }
.tnav__cap {
  --cs: 50%;
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr;
  height: 48px; overflow: hidden; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface);
}
.tnav__cap::before, .tnav__cap::after { content: ""; position: absolute; inset: 0; z-index: -1; transition: clip-path .5s var(--ease); }
.tnav__cap::before {
  background: linear-gradient(90deg, var(--host-soft), color-mix(in srgb, var(--host) 24%, transparent));
  clip-path: polygon(0 0, calc(var(--cs) + 9px) 0, calc(var(--cs) - 9px) 100%, 0 100%);
}
.tnav__cap::after {
  background: linear-gradient(90deg, color-mix(in srgb, var(--play) 24%, transparent), var(--play-soft));
  clip-path: polygon(calc(var(--cs) + 9px) 0, 100% 0, 100% 100%, calc(var(--cs) - 9px) 100%);
}
[dir="rtl"] .tnav__cap::before {
  background: linear-gradient(270deg, var(--host-soft), color-mix(in srgb, var(--host) 24%, transparent));
  clip-path: polygon(calc(var(--cs) - 9px) 0, 100% 0, 100% 100%, calc(var(--cs) + 9px) 100%);
}
[dir="rtl"] .tnav__cap::after {
  background: linear-gradient(270deg, color-mix(in srgb, var(--play) 24%, transparent), var(--play-soft));
  clip-path: polygon(0 0, calc(var(--cs) - 9px) 0, calc(var(--cs) + 9px) 100%, 0 100%);
}
.tnav__cap[data-lean="host"] { --cs: 56%; }
.tnav__cap[data-lean="play"] { --cs: 44%; }
[dir="rtl"] .tnav__cap[data-lean="host"] { --cs: 44%; }
[dir="rtl"] .tnav__cap[data-lean="play"] { --cs: 56%; }
.tnav__seam {
  position: absolute; top: -2px; bottom: -2px; left: var(--cs); width: 2px; margin-left: -1px; pointer-events: none;
  background: linear-gradient(var(--host), var(--play)); box-shadow: 0 0 10px var(--play-glow);
  transform: skewX(-20.5deg); transition: left .5s var(--ease);
}
[dir="rtl"] .tnav__seam { transform: skewX(20.5deg); }
.tnav__side { position: relative; display: flex; align-items: center; justify-content: center; gap: .1rem; padding-inline: .45rem; }
.tnav__trigger, .tnav__link {
  position: relative; display: inline-flex; align-items: center; gap: .35rem; height: 38px; padding: 0 .75rem;
  border: 0; border-radius: 8px; background: none; font: 750 .95rem/1 var(--font); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: color .2s, background-color .2s;
}
.tnav__trigger { color: var(--team-ink); }
.tnav__link { color: var(--text-2); font-weight: 650; }
.tnav__trigger:hover, .tnav__link:hover, .tnav__trigger[aria-expanded="true"] { background: color-mix(in srgb, var(--team) 15%, transparent); color: var(--text); }
.tnav__trigger .i { width: 1em; height: 1em; transition: transform .35s var(--ease); }
.tnav__trigger[aria-expanded="true"] .i { transform: rotate(180deg); }
.tnav__trigger[data-current]::after, .tnav__link[aria-current="page"]::after, .tnav__plain[aria-current="page"]::after {
  content: ""; position: absolute; bottom: 2px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px;
  background: var(--team); transform: rotate(45deg);
}
.tnav__link[aria-current="page"] { color: var(--text); }
.tnav__more { display: flex; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.tnav__plain {
  position: relative; display: block; padding: .5rem .7rem; border-radius: 8px;
  color: var(--text-2); font-weight: 650; text-decoration: none; transition: color .2s, background-color .2s;
}
.tnav__plain:hover, .tnav__plain[aria-current="page"] { color: var(--text); }
.tnav__plain:hover { background: var(--surface-2); }

.hdr__tools { display: flex; align-items: center; gap: .3rem; }
.tool {
  display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 1px solid transparent; border-radius: 10px; background: none; color: var(--text-2);
  cursor: pointer; transition: color .2s, background-color .2s;
}
.tool:hover { color: var(--text); background: var(--surface-2); }
.tool__txt { font-size: .8rem; font-weight: 850; line-height: 1; }
.tool__txt[lang="fa"] { font-size: 1rem; font-weight: 800; }
.tool--fx[aria-pressed="true"] { color: var(--play); }
[data-theme="dark"] .i--moon, [data-theme="light"] .i--sun { display: none; }
.hdr__cta { margin-inline-start: .4rem; }

/* ---- live mega menus ---- */
.mega {
  position: absolute; top: calc(100% + 8px); left: 50%; z-index: 1; width: min(calc(100% - 2 * var(--pad)), 1060px);
  translate: -50% 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 95%, transparent); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .75);
  opacity: 0; transform: translateY(-10px) scale(.985); transform-origin: top center;
  transition: opacity .25s, transform .45s var(--ease);
}
.mega::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--team), transparent 70%); }
[dir="rtl"] .mega::before { background: linear-gradient(270deg, var(--team), transparent 70%); }
.mega.is-open { opacity: 1; transform: none; }
.mega__in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 2rem; padding: 1.6rem; }
.mega__in > * { opacity: 0; translate: 0 8px; transition: opacity .3s, translate .5s var(--ease); }
.mega.is-open .mega__in > * { opacity: 1; translate: 0 0; }
.mega.is-open .mega__in > :nth-child(2) { transition-delay: .07s; }
.mega__title { margin: 0 0 .4rem; font-size: 1.35rem; font-weight: 900; line-height: 1.4; }
.mega__text { margin: 0 0 1.2rem; color: var(--text-2); font-size: .95rem; }
.mega__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; }
.mega__games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.mega__game {
  display: flex; align-items: center; gap: .7rem; height: 100%; padding: .65rem; border: 1px solid var(--line); border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 60%, transparent); color: var(--text); text-decoration: none;
  transition: border-color .2s, transform .35s var(--ease);
}
.mega__game:hover { border-color: var(--host); transform: translateY(-2px); }
.mega__game b { display: block; font-size: .9rem; font-weight: 800; line-height: 1.35; }
.mega__game small { color: var(--text-3); font-size: .76rem; }
.mega__live { display: grid; align-content: start; gap: .6rem; }
.mega__servers { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.mega__servers li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .7rem;
  padding: .45rem .55rem; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.mega__srv { display: grid; min-width: 0; line-height: 1.35; }
.mega__srv b { font-size: .9rem; font-weight: 800; }
.mega__srv small { color: var(--text-3); font: .74rem var(--mono); }
.mega__pl { font-size: .88rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.mega__pl span { color: var(--text-3); font-weight: 600; }
.mega__servers .copy { min-height: 36px; padding: .25rem .6rem; font-size: .76rem; }
.mega__event {
  display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border: 1px solid transparent; border-radius: 12px;
  background: var(--play-soft); color: var(--text); text-decoration: none; transition: border-color .2s;
}
.mega__event:hover { border-color: var(--play); }
.mega__event > .i { color: var(--play); }
.mega__event small { display: block; color: var(--play-ink); font-size: .74rem; font-weight: 800; line-height: 1.4; }
.mega__event b { font-weight: 850; }
.mega__count { margin-inline-start: auto; color: var(--play-ink); font-weight: 850; white-space: nowrap; }

/* =====================================================================
   MOBILE: floating button + weapon wheel
   ===================================================================== */
.fab, .wheel { display: none; }
@media (max-width: 1099px) {
  .tnav, .hdr__cta, .mega { display: none !important; }
  .hdr__tools { margin-inline-start: auto; }

  .fab {
    position: fixed; z-index: 112; left: 50%; bottom: max(16px, calc(env(safe-area-inset-bottom) + 10px));
    display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%;
    translate: -50% 0; background: var(--surface-2); color: var(--text);
    box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .65); cursor: pointer;
    touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
    transition: scale .3s var(--spring), opacity .25s;
  }
  .fab::before {
    content: ""; position: absolute; inset: -3px; border-radius: 50%;
    background: conic-gradient(from 210deg, var(--host), var(--host-ink), var(--play), var(--play-ink), var(--host));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
    animation: spin 8s linear infinite;
  }
  .fab:active { scale: .9; }
  .fab__mark { width: 28px; height: 28px; transition: transform .4s var(--spring), opacity .2s; }
  .fab__x { position: absolute; width: 26px; height: 26px; opacity: 0; transform: rotate(-90deg) scale(.5); transition: transform .4s var(--spring), opacity .2s; }
  .fab[aria-expanded="true"] .fab__mark { opacity: 0; transform: rotate(90deg) scale(.5); }
  .fab[aria-expanded="true"] .fab__x { opacity: 1; transform: none; }
  html.typing .fab { opacity: 0; pointer-events: none; }

  .wheel { display: block; position: fixed; inset: 0; z-index: 111; visibility: hidden; transition: visibility 0s linear .45s; }
  .wheel.is-open { visibility: visible; transition: none; }
}
html.wheel-open { overflow: hidden; }
.wheel__scrim {
  position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: blur(6px) saturate(.7); backdrop-filter: blur(6px) saturate(.7);
}
.wheel.is-open .wheel__scrim { opacity: 1; }
.wheel__dial {
  --R: 165px;
  position: absolute; left: 50%; top: var(--cy, 55%); width: calc(var(--R) * 2); height: calc(var(--R) * 2);
  translate: -50% -50%; opacity: 0; scale: .5; rotate: -30deg;
  transition: opacity .25s, scale .55s var(--spring), rotate .55s var(--ease);
}
[dir="rtl"] .wheel__dial { rotate: 30deg; }
.wheel.is-open .wheel__dial { opacity: 1; scale: 1; rotate: 0deg; }
.wheel__ring {
  position: absolute; inset: -8px; border-radius: 50%; opacity: .95;
  background: conic-gradient(var(--text-3) 0deg 12deg, var(--play) 32deg 148deg, var(--text-3) 168deg 192deg, var(--host) 212deg 328deg, var(--text-3) 348deg 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}
[dir="rtl"] .wheel__ring { background: conic-gradient(var(--text-3) 0deg 12deg, var(--host) 32deg 148deg, var(--text-3) 168deg 192deg, var(--play) 212deg 328deg, var(--text-3) 348deg 360deg); }
.wheel__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wheel__svg path { fill: color-mix(in srgb, var(--surface-2) 94%, transparent); stroke: var(--line-2); stroke-width: .5; transition: fill .18s; }
.wheel__svg path.is-current { fill: color-mix(in srgb, var(--team) 18%, var(--surface-2)); }
.wheel__svg path.is-hot { fill: var(--team); }
.wheel__nav { position: absolute; inset: 0; }
.wheel__item {
  position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; gap: .2rem;
  width: 5.4rem; margin: -1.55rem 0 0 -2.7rem; color: var(--text); font-size: .8rem; font-weight: 800; line-height: 1.3;
  text-align: center; text-decoration: none; transform: translate(var(--x, 0px), var(--y, 0px));
  opacity: 0; scale: .7; transition: opacity .3s, scale .45s var(--spring), color .15s; -webkit-tap-highlight-color: transparent;
}
.wheel.is-open .wheel__item { opacity: 1; scale: 1; transition-delay: calc(var(--k, 0) * 28ms + 60ms), calc(var(--k, 0) * 28ms + 60ms), 0s; }
.wheel__item .i { width: 22px; height: 22px; color: var(--team-ink); transition: color .15s; }
.wheel__item.is-hot, .wheel__item.is-hot .i { color: var(--on-team); }
.wheel__item:focus-visible { outline: none; }
.wheel__item[aria-current="page"] .wheel__label::after { content: ""; display: block; width: 4px; height: 4px; margin: 3px auto 0; background: currentColor; transform: rotate(45deg); }
.wheel__desc { display: none; }
.wheel__core {
  position: absolute; left: 50%; top: 50%; display: grid; place-content: center; gap: .15rem; width: 46%; height: 46%;
  padding: .5rem; border: 0; border-radius: 50%; translate: -50% -50%;
  background: var(--bg); color: var(--text); font: inherit; text-align: center; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 0 30px -8px var(--team-glow); transition: box-shadow .25s;
}
.wheel[data-team] .wheel__core { box-shadow: inset 0 0 0 2px var(--team), 0 0 36px -4px var(--team-glow); }
.wheel__core b { font-size: 1.02rem; font-weight: 900; line-height: 1.35; }
.wheel__core small { max-width: 8.5rem; color: var(--text-2); font-size: .72rem; line-height: 1.5; }

/* =====================================================================
   FOOTER: end-of-round scoreboard
   ===================================================================== */
.ftr { padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; border-top: 1px solid var(--line); background: var(--bg-2); }
.sb { overflow: hidden; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.sb__score {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem;
  padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--host-soft), transparent 38%, transparent 62%, var(--play-soft));
}
[dir="rtl"] .sb__score { background: linear-gradient(270deg, var(--host-soft), transparent 38%, transparent 62%, var(--play-soft)); }
.sb__score .logo { justify-self: start; }
.sb__match { display: flex; align-items: center; gap: .6rem; margin: 0; font-weight: 900; line-height: 1; }
.sb__n { font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sb__n--us { background: linear-gradient(90deg, var(--host), var(--play)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sb__n--them { color: var(--text-3); }
.sb__colon { color: var(--text-3); font-size: 1.8rem; translate: 0 -.08em; }
.sb__them { display: grid; justify-items: end; justify-self: end; gap: .25rem; margin: 0; }
.sb__lag { color: var(--text-3); font-weight: 900; letter-spacing: .14em; text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: 2px; }
.sb__round { display: inline-flex; align-items: center; gap: .4rem; color: var(--text-3); font-size: .78rem; font-weight: 700; }
.sb__round i { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); animation: blink 1.4s steps(2) infinite; }
.sb__teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sb__team + .sb__team { border-inline-start: 1px solid var(--line); }
.sb__head {
  position: relative; display: flex; align-items: center; gap: .6rem; margin: 0; padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--line); background: var(--team-soft); color: var(--team-ink); font-size: .92rem; font-weight: 900; line-height: 1.5;
}
.sb__head::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--team); }
.sb__flag { width: .55em; height: .55em; background: var(--team); transform: rotate(45deg); }
.sb__col { margin-inline-start: auto; color: var(--text-3); font-size: .75rem; font-weight: 750; }
.sb__rows { margin: 0; padding: 0; list-style: none; }
.sb__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; min-height: 52px; padding: .45rem 1.25rem;
  border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none;
  transition: background-color .2s, padding-inline-start .35s var(--ease);
}
.sb__rows li:last-child .sb__row { border-bottom: 0; }
.sb__rows li:nth-child(even) .sb__row { background: color-mix(in srgb, var(--team) 5%, transparent); }
.sb__row:hover { background: var(--team-soft); padding-inline-start: 1.6rem; }
.sb__name { font-weight: 750; }
.sb__stat { display: inline-flex; align-items: center; gap: .4rem; color: var(--text-2); font-size: .86rem; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sb__stat b { color: var(--text); font-weight: 850; }
.sb__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: ping 2.2s var(--ease) infinite; }
.sb__mvp {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; padding: .95rem 1.25rem; border-top: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--warn) 14%, transparent), transparent 55%); color: var(--text); text-decoration: none;
}
[dir="rtl"] .sb__mvp { background: linear-gradient(270deg, color-mix(in srgb, var(--warn) 14%, transparent), transparent 55%); }
.sb__star { width: 1.35rem; height: 1.35rem; color: var(--warn); }
.sb__mvpk { padding: .05rem .5rem; border-radius: 6px; background: var(--warn); color: #1a1200; font-size: .74rem; font-weight: 900; letter-spacing: .08em; }
.sb__mvpt { font-weight: 700; }
.sb__mvpgo { display: inline-flex; align-items: center; gap: .35rem; margin-inline-start: auto; color: var(--host-ink); font-weight: 850; }
.sb__mvpgo .i { transition: transform .3s var(--ease); }
.sb__mvp:hover .sb__mvpgo .i--dir { transform: translateX(3px); }
[dir="rtl"] .sb__mvp:hover .sb__mvpgo .i--dir { transform: scaleX(-1) translateX(3px); }
.sb__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-top: 1.5rem; color: var(--text-3); font-size: .88rem; }
.sb__links { display: flex; flex-wrap: wrap; gap: .1rem 1.2rem; margin: 0; padding: 0; list-style: none; }
.sb__links a { display: inline-block; padding-block: .35rem; color: var(--text-2); text-decoration: none; transition: color .2s; }
.sb__links a:hover { color: var(--text); }
.sb__copy { margin: 0; }
.social { display: flex; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  color: var(--text-2); transition: color .2s, border-color .2s, transform .3s var(--spring);
}
.social a:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-3px); }
@media (max-width: 760px) {
  .sb__score { grid-template-columns: minmax(0, 1fr) auto; padding: 1rem 1.1rem; }
  .sb__score .logo { grid-column: 1 / -1; justify-self: center; }
  .sb__match { justify-self: start; }
  .sb__teams { grid-template-columns: minmax(0, 1fr); }
  .sb__team + .sb__team { border-inline-start: 0; border-top: 1px solid var(--line); }
  .sb__row, .sb__head, .sb__mvp { padding-inline: 1.05rem; }
  .sb__mvpgo { margin-inline-start: 0; }
  .sb__bottom { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   TOASTS + BACK TO TOP
   ===================================================================== */
.toasts {
  position: fixed; z-index: 160; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom));
  translate: -50% 0; width: min(92vw, 26rem); display: grid; gap: .5rem; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; pointer-events: auto;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); color: var(--text);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); font-weight: 650; line-height: 1.6;
  animation: toast-in .5s var(--spring) both;
}
.toast .i { color: var(--team, var(--ok)); }
.toast:not([data-team]) .i { color: var(--ok); }
.toast.is-out { animation: toast-out .3s ease forwards; }
.toast--ach { border-color: var(--play); background: linear-gradient(90deg, var(--play-soft), var(--surface-2) 70%); }
.toast--ach .i { color: var(--play); width: 1.6em; height: 1.6em; }
.toast__k { display: block; color: var(--play-ink); font-size: .72rem; font-weight: 850; line-height: 1.3; }
@keyframes toast-in { from { opacity: 0; translate: 0 16px; scale: .96; } }
@keyframes toast-out { to { opacity: 0; translate: 0 8px; } }

.totop {
  position: fixed; z-index: 80; inset-inline-end: 1.25rem; bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity .3s, translate .4s var(--ease);
}
.totop.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.totop .i { transform: rotate(180deg); }
.totop__ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); }
.totop__ring circle { fill: none; stroke: var(--host); stroke-width: 2.5; stroke-dasharray: 138.23; stroke-dashoffset: calc(138.23 * (1 - var(--p, 0))); }

/* =====================================================================
   CURSOR / TOUCH FX (created by JS only when effects are on)
   ===================================================================== */
.fx-canvas { position: fixed; inset: 0; z-index: 150; width: 100%; height: 100%; pointer-events: none; }
.reticle {
  position: fixed; left: 0; top: 0; z-index: 151; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  pointer-events: none; color: var(--text-2); opacity: 0; transition: opacity .25s; will-change: transform;
}
.reticle.is-on { opacity: .9; }
.reticle.is-text { opacity: 0; }
.reticle svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .4s var(--spring), stroke-width .2s; }
.reticle.is-hover svg { transform: rotate(45deg) scale(1.35); stroke-width: 1.2; }
.reticle.is-down svg { transform: scale(.7); transition-duration: .12s; }
.reticle.is-hover.is-down svg { transform: rotate(45deg) scale(1.05); }
.reticle[data-team="host"] { color: var(--host-ink); }
.reticle[data-team="play"] { color: var(--play-ink); }

[data-spot] { position: relative; }
[data-spot]::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(380px circle at var(--spot-x, 50%) var(--spot-y, 50%), var(--team-soft), transparent 65%);
  transition: opacity .3s;
}
[data-spot]:hover::before { opacity: 1; }
[data-spot] > * { position: relative; z-index: 1; }
[data-fx="off"] .fab::before { animation-play-state: paused; }

/* mobile overrides that must win over the base rules above */
@media (max-width: 1099px) {
  .totop { display: none; }
  .toasts { bottom: calc(100px + env(safe-area-inset-bottom)); }
  .ftr { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
}

/* =====================================================================
   HERO: split screen. The play side sits in a skewed mask whose inner
   layer is counter-transformed, so content stays still while the seam
   moves. Only transforms change per frame (compositor friendly).
   ===================================================================== */
.hero {
  --split: 50%; --skew: 11deg; --follow: 0px;
  --gx: max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad)));
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 660px; max-height: 1040px;
  background: var(--host-bg);
}
.hero__side { position: absolute; inset: 0; overflow: hidden; }
.hero__side--host { background: radial-gradient(70% 70% at 100% 0%, color-mix(in srgb, var(--host) 16%, transparent), transparent 70%), var(--host-bg); }
.hero__side--play { background: radial-gradient(70% 75% at 0% 100%, color-mix(in srgb, var(--play) 17%, transparent), transparent 70%), var(--play-bg); }
[dir="rtl"] .hero__side--host { background: radial-gradient(70% 70% at 0% 0%, color-mix(in srgb, var(--host) 16%, transparent), transparent 70%), var(--host-bg); }
[dir="rtl"] .hero__side--play { background: radial-gradient(70% 75% at 100% 100%, color-mix(in srgb, var(--play) 17%, transparent), transparent 70%), var(--play-bg); }

.hero__mask { position: absolute; inset: 0; z-index: 2; overflow: hidden; transform: translateX(var(--split)) skewX(calc(var(--skew) * -1)); }
.hero__mask > .hero__side--play { transform: skewX(var(--skew)) translateX(calc(var(--split) * -1)); }
[dir="rtl"] .hero__mask { transform: translateX(calc(var(--split) - 100%)) skewX(var(--skew)); }
[dir="rtl"] .hero__mask > .hero__side--play { transform: skewX(calc(var(--skew) * -1)) translateX(calc(100% - var(--split))); }
.hero.is-live .hero__mask, .hero.is-live .hero__mask > .hero__side--play, .hero.is-live .hero__divider { will-change: transform; }

.hero__divider { position: absolute; inset: 0; z-index: 3; pointer-events: none; transform: translateX(var(--split)) skewX(calc(var(--skew) * -1)); }
[dir="rtl"] .hero__divider { transform: translateX(calc(var(--split) - 100%)) skewX(var(--skew)); }
.hero__divider::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px;
  background: linear-gradient(to bottom, var(--host), var(--play));
  box-shadow: 0 0 18px 1px var(--play-glow), 0 0 44px 3px var(--host-glow);
  animation: seam-in 1.1s var(--ease) .05s both;
}
[dir="rtl"] .hero__divider::before { left: auto; right: -1px; }
@keyframes seam-in { from { transform: scaleY(0); opacity: 0; } }

.hero__or {
  position: absolute; z-index: 4; top: 50%; left: var(--split); translate: -50% -50%;
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: var(--bg); color: var(--text); font-size: 1.1rem; font-weight: 900; line-height: 1;
  box-shadow: 0 0 0 1px var(--line-2), 0 0 0 7px color-mix(in srgb, var(--bg) 55%, transparent), 0 12px 32px rgba(0, 0, 0, .35);
  animation: or-in .7s var(--spring) .6s both;
}
@keyframes or-in { from { scale: .3; opacity: 0; } }

/* backgrounds: blueprint grid (host) vs speed lines (play), plus ghost words */
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__lines {
  position: absolute; inset: -60px;
  background: repeating-linear-gradient(-62deg, transparent 0 26px, color-mix(in srgb, var(--play) 15%, transparent) 26px 27px);
  -webkit-mask-image: radial-gradient(110% 95% at 100% 0%, #000 15%, transparent 70%);
  mask-image: radial-gradient(110% 95% at 100% 0%, #000 15%, transparent 70%);
  animation: lines-run 2.4s linear infinite;
}
[dir="rtl"] .hero__lines {
  -webkit-mask-image: radial-gradient(110% 95% at 0% 0%, #000 15%, transparent 70%);
  mask-image: radial-gradient(110% 95% at 0% 0%, #000 15%, transparent 70%);
}
@keyframes lines-run { to { transform: translate3d(30.58px, 0, 0); } }

.ghost {
  position: absolute; z-index: 0; margin: 0; white-space: nowrap; pointer-events: none; user-select: none;
  font-weight: 900; line-height: .9; color: var(--team); opacity: .085;
}
.ghost--host { inset-inline-start: -1.5%; bottom: -3%; font-size: clamp(6.5rem, 21vw, 19rem); }
.ghost--play { inset-inline-end: -1.5%; top: calc(var(--hdr) - 1%); font-size: clamp(6.5rem, 21vw, 19rem); }
html[lang="en"] .ghost { letter-spacing: -.05em; }
[data-theme="light"] .ghost { opacity: .07; }

/* content blocks (diagonal composition: host top-start, play bottom-end) */
.hero__content { position: absolute; z-index: 1; width: min(33rem, 38%); transform: translateX(var(--follow)); }
.hero__content--host { inset-inline-start: var(--gx); top: calc(var(--hdr) + clamp(1.5rem, 6.5vh, 5.5rem)); }
.hero__content--play { inset-inline-end: var(--gx); bottom: clamp(2rem, 7.5vh, 5.5rem); }
.hero__title { margin: 0 0 1.1rem; font-size: clamp(2.4rem, 1.1rem + 3.7vw, 5.1rem); font-weight: 900; line-height: 1.25; }
html[lang="en"] .hero__title { line-height: .98; letter-spacing: -.042em; }
.hero__title .line { display: block; }
.hero__text { max-width: 30rem; margin: 0 0 1.6rem; color: var(--text-2); font-size: clamp(1rem, .94rem + .3vw, 1.14rem); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.3rem; }

.hero__live { position: relative; height: 1.9em; margin: 1.6rem 0 0; padding: 0; overflow: hidden; list-style: none; color: var(--text-2); font-size: .9rem; }
.hero__live li {
  position: absolute; inset: 0; display: flex; align-items: center; gap: .55rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; translate: 0 100%; transition: opacity .4s, translate .55s var(--ease);
}
.hero__live li.is-on { opacity: 1; translate: 0 0; }
.hero__live li.is-out { opacity: 0; translate: 0 -100%; }
.hero__live i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--team); box-shadow: 0 0 10px var(--team-glow); }
.hero__live code, .hero__live b { color: var(--team-ink); font-weight: 700; }
.hero__live code { font-size: .92em; unicode-bidi: isolate; direction: ltr; }

/* lean-in feedback: the leading side glows a little brighter */
.hero[data-lead="play"] .hero__side--play .hero__lines { filter: brightness(1.35); }
.hero__lines { transition: filter .5s; }

/* one-off entrance (CSS only, so it never depends on JS) */
.hero__in { animation: rise .9s var(--ease) var(--d, 0s) both; }
@keyframes rise { from { opacity: 0; translate: 0 26px; } }
.i18n-pending .hero__in, .i18n-pending .hero__divider::before, .i18n-pending .hero__or { animation-play-state: paused; }

@media (max-width: 899px) {
  .hero { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; }
  .hero__side, .hero__mask, .hero__mask > .hero__side--play, [dir="rtl"] .hero__mask, [dir="rtl"] .hero__mask > .hero__side--play { position: relative; inset: auto; transform: none; }
  .hero__side--host { order: 1; padding: calc(var(--hdr) + 2.2rem) 0 4.5rem; }
  .hero__or { order: 2; position: relative; left: auto; top: auto; translate: none; margin: -31px auto; }
  .hero__mask { order: 3; margin-top: -3.2rem; overflow: visible; }
  .hero__side--play { padding: 5.2rem 0 3.5rem; clip-path: polygon(0 3.2rem, 100% 0, 100% 100%, 0 100%); }
  [dir="rtl"] .hero__side--play { clip-path: polygon(0 0, 100% 3.2rem, 100% 100%, 0 100%); }
  .hero__divider { display: none; }
  .hero__content, .hero__content--host, .hero__content--play { position: relative; inset: auto; width: auto; transform: none; padding-inline: var(--pad); }
  .hero__title { font-size: clamp(2.3rem, 9.5vw, 3.4rem); }
  .hero .ghost { display: none; }
}

/* =====================================================================
   LIVE SERVER BROWSER
   ===================================================================== */
.sec--browser { background: var(--bg-2); }
.live-pill {
  display: inline-flex; align-items: center; gap: .45rem; margin-inline-end: .25rem; padding: .1rem .7rem;
  border-radius: 999px; background: var(--play-soft); color: var(--play-ink); font-weight: 800;
}
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--play); animation: ping-play 1.8s var(--ease) infinite; }
.live-pill b { font-variant-numeric: tabular-nums; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.filters button {
  min-height: 44px; padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text-2); font-weight: 700; cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s, transform .3s var(--spring);
}
.filters button:hover { color: var(--text); border-color: var(--line-2); }
.filters button:active { transform: scale(.96); }
.filters button[aria-pressed="true"] { background: var(--team); border-color: var(--team); color: var(--on-team); }

.browser { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.sv { width: 100%; border-collapse: collapse; }
.sv th, .sv td { padding: .8rem 1rem; text-align: start; vertical-align: middle; }
.sv thead th { color: var(--text-3); font-size: .8rem; font-weight: 750; border-bottom: 1px solid var(--line); }
.sv tbody tr { border-bottom: 1px solid var(--line); transition: background-color .2s; }
.sv tbody tr:last-child { border-bottom: 0; }
.sv tbody tr:hover { background: var(--team-soft); }
.sv tbody tr.is-enter { animation: row-in .5s var(--ease) both; }
@keyframes row-in { from { opacity: 0; translate: 0 8px; } }
.sv tbody th { font-weight: inherit; }
.sv__srv { display: flex; align-items: center; gap: .85rem; }
.sv__name { display: grid; line-height: 1.35; }
.sv__name b { font-weight: 800; }
.sv__name small { color: var(--text-3); font-size: .82rem; }
.sv__map { color: var(--text-2); font-family: var(--mono); font-size: .84rem; }
.sv__pl { min-width: 9rem; }
.sv__count { font-weight: 800; font-variant-numeric: tabular-nums; }
.is-full .sv__count { color: var(--play-ink); }
.bar { display: block; height: 4px; margin-top: .45rem; overflow: hidden; border-radius: 2px; background: var(--line); }
.bar i { display: block; width: 100%; height: 100%; background: var(--team); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .9s var(--ease); }
[dir="rtl"] .bar i { transform-origin: right; }
.is-full .bar i { background: linear-gradient(90deg, var(--play), var(--warn)); }
.sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; margin-inline-end: .5rem; vertical-align: -1px; }
.sig i { width: 3px; border-radius: 1px; background: var(--line-2); transition: background-color .3s; }
.sig i:nth-child(1) { height: 30%; } .sig i:nth-child(2) { height: 55%; } .sig i:nth-child(3) { height: 78%; } .sig i:nth-child(4) { height: 100%; }
.sig[data-level="1"] i:nth-child(-n+1), .sig[data-level="2"] i:nth-child(-n+2),
.sig[data-level="3"] i:nth-child(-n+3), .sig[data-level="4"] i { background: var(--ok); }
.sv__ms { font-weight: 750; font-variant-numeric: tabular-nums; }
.sv__ms small { margin-inline-start: 1px; color: var(--text-3); font-weight: 600; }
.browser__empty { margin: 0; padding: 2rem 1rem; text-align: center; color: var(--text-2); }

@media (max-width: 1000px) { .sv__map { display: none; } }
@media (max-width: 719px) {
  .sv thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sv, .sv tbody, .sv tbody th, .sv tbody td { display: block; }
  .sv tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "srv ping" "pl pl" "ip ip"; gap: .7rem 1rem; padding: 1rem; }
  .sv tbody th, .sv tbody td { padding: 0; }
  .sv tbody th { grid-area: srv; }
  .sv__pl { grid-area: pl; min-width: 0; }
  .sv__ping { grid-area: ping; align-self: center; }
  .sv__ip { grid-area: ip; }
  .sv__ip .copy { width: 100%; justify-content: space-between; }
}

/* =====================================================================
   PANEL DEMO
   ===================================================================== */
.pm { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--host-soft); overflow: hidden; }
.pm__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.pm__srv { display: flex; align-items: center; gap: .7rem; min-width: 0; margin-inline-end: auto; }
.pm__id { display: grid; min-width: 0; line-height: 1.3; }
.pm__id b { font-weight: 800; }
.pm__id small { color: var(--text-3); font-family: var(--mono); font-size: .76rem; }
.pm__state {
  --st: var(--ok);
  display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .2rem .7rem; border-radius: 999px;
  background: color-mix(in srgb, var(--st) 14%, transparent); color: var(--st); font-size: .8rem; font-weight: 800; line-height: 1.6;
}
[data-theme="light"] .pm__state { color: color-mix(in srgb, var(--st) 70%, #000); }
.pm__state i { width: 7px; height: 7px; border-radius: 50%; background: var(--st); }
.pm__state[data-pm-state="starting"], .pm__state[data-pm-state="stopping"] { --st: var(--warn); }
.pm__state[data-pm-state="starting"] i, .pm__state[data-pm-state="stopping"] i { animation: blink .6s steps(2) infinite; }
.pm__state[data-pm-state="offline"] { --st: var(--bad); }
.pm__ctrls { display: flex; gap: .35rem; }
.pm__btn {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--text-2); cursor: pointer; transition: color .2s, border-color .2s, transform .3s var(--spring);
}
.pm__btn:hover:not(:disabled) { color: var(--host-ink); border-color: var(--host); }
.pm__btn--stop:hover:not(:disabled) { color: var(--bad); border-color: var(--bad); }
.pm__btn:active:not(:disabled) { transform: scale(.9); }
.pm__btn:disabled { opacity: .35; cursor: not-allowed; }

.pm__tabs { display: flex; gap: .2rem; padding: .4rem .5rem 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.pm__tabs::-webkit-scrollbar { display: none; }
.pm__tabs [role="tab"] {
  display: inline-flex; align-items: center; gap: .45rem; margin-bottom: -1px; padding: .6rem .9rem;
  border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-2);
  font-size: .9rem; font-weight: 700; white-space: nowrap; cursor: pointer; transition: color .2s, border-color .2s;
}
.pm__tabs [role="tab"]:hover { color: var(--text); }
.pm__tabs [aria-selected="true"] { color: var(--text); border-bottom-color: var(--host); }

.pm__body { display: grid; grid-template-columns: minmax(0, 1fr) 13.5rem; min-height: 20rem; }
.pm__views { min-width: 0; border-inline-end: 1px solid var(--line); }
.pm__view { height: 100%; padding: 1rem; animation: view-in .35s var(--ease) both; }
.pm__view:focus-visible { outline-offset: -3px; }
@keyframes view-in { from { opacity: 0; translate: 0 6px; } }
.pm__log {
  display: flex; flex-direction: column; justify-content: flex-end; height: 15.5rem; overflow: hidden;
  color: var(--text-2); font: .78rem/1.8 var(--mono);
  -webkit-mask-image: linear-gradient(transparent, #000 32%); mask-image: linear-gradient(transparent, #000 32%);
}
.pm__log p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: log-in .35s var(--ease) both; }
.pm__log time { color: var(--text-3); }
.pm__log em { font-style: normal; color: var(--host-ink); }
.pm__log .join { color: var(--text); }
.pm__log .chat em { color: var(--play-ink); }
.pm__log .warn em { color: var(--warn); }
.pm__log .ok { color: var(--ok-ink); }
@keyframes log-in { from { opacity: 0; translate: 0 6px; } }
.pm__cmd { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; padding-top: .6rem; border-top: 1px dashed var(--line); color: var(--host-ink); font: .85rem var(--mono); }
.pm__caret { width: .55em; height: 1.1em; background: var(--host); animation: blink 1s steps(2) infinite; }

.pm__files, .pm__list { margin: 0; padding: 0; list-style: none; }
.pm__files li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .6rem .3rem; border-bottom: 1px solid var(--line); font-size: .88rem; }
.pm__files .i { color: var(--host-ink); }
.pm__files b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.pm__files span { color: var(--text-3); font: .76rem var(--mono); }
.pm__list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .2rem; border-bottom: 1px solid var(--line); }
.pm__list li > span { display: grid; min-width: 0; line-height: 1.45; }
.pm__list b { font-size: .92rem; font-weight: 750; }
.pm__list small { color: var(--text-3); font-size: .8rem; }
.pm__list li.is-new { animation: flash-new 1.4s var(--ease); }
@keyframes flash-new { from { background: var(--host-soft); } }
.pm__progress { height: 4px; margin: .9rem 0 0; overflow: hidden; border-radius: 2px; background: var(--line); }
.pm__progress i { display: block; height: 100%; background: var(--host); transform-origin: left; transform: scaleX(var(--p, 0)); }
[dir="rtl"] .pm__progress i { transform-origin: right; }
.pm__view .btn { margin-top: 1rem; }

.switch {
  position: relative; flex: none; width: 44px; height: 26px; padding: 0; border: 0; border-radius: 999px;
  background: var(--line-2); cursor: pointer; transition: background-color .25s;
}
.switch::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .35s var(--spring);
}
.switch[aria-checked="true"] { background: var(--host); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
[dir="rtl"] .switch[aria-checked="true"]::after { transform: translateX(-18px); }

.pm__meters { display: grid; align-content: start; gap: 1.05rem; padding: 1rem; }
.meter { display: grid; grid-template-columns: 1fr auto; gap: .35rem .5rem; font-size: .8rem; line-height: 1.4; }
.meter > span { color: var(--text-3); font-weight: 650; }
.meter b { color: var(--text); font: 600 .76rem var(--mono); }
.meter i { grid-column: 1 / -1; position: relative; height: 6px; overflow: hidden; border-radius: 3px; background: var(--line); }
.meter i::after {
  content: ""; position: absolute; inset: 0; background: var(--host); transform-origin: left;
  transform: scaleX(var(--v, 0)); transition: transform .9s var(--ease), background-color .3s;
}
[dir="rtl"] .meter i::after { transform-origin: right; }
.meter.is-hot i::after { background: var(--warn); }
@media (max-width: 640px) {
  .pm__body { grid-template-columns: minmax(0, 1fr); }
  .pm__views { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .pm__meters { grid-template-columns: 1fr 1fr; }
  .pm__log { height: 13rem; }
}

/* =====================================================================
   PLAN CARDS (home teaser + plans page)
   ===================================================================== */
.sec--plans { background: var(--bg-2); }
.plans { display: grid; gap: 1.25rem; align-items: stretch; }
.plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plans--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1140px) { .plans--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .plans--3 { grid-template-columns: minmax(0, 1fr); max-width: 32rem; } }
@media (max-width: 620px) { .plans--4 { grid-template-columns: minmax(0, 1fr); } }

@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.plan {
  --tilt-x: 0deg; --tilt-y: 0deg;
  position: relative; display: flex; flex-direction: column; gap: 1.1rem; padding: 1.7rem 1.4rem 1.4rem;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .5s var(--ease), border-color .25s;
}
.plan:hover { border-color: color-mix(in srgb, var(--team) 45%, transparent); }
.plan--hot {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--ang), var(--team), transparent 22%, transparent 50%, var(--team) 72%, var(--team-ink) 86%, var(--team)) border-box;
  box-shadow: 0 30px 60px -36px var(--team-glow);
  animation: spin-border 6s linear infinite;
}
@keyframes spin-border { to { --ang: 360deg; } }
.plan__badge {
  --cut: 6px; position: absolute; top: -.85rem; inset-inline-start: 1.3rem; z-index: 2; margin: 0; padding: .2rem .75rem;
  background: var(--team); color: var(--on-team); font-size: .78rem; font-weight: 850; line-height: 1.6;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.plan__name { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: 1.5rem; font-weight: 900; letter-spacing: -.01em; line-height: 1.3; }
.plan__for { margin: .15rem 0 0; color: var(--text-2); font-size: .92rem; line-height: 1.6; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; margin: 0; }
.plan__price b { font-size: clamp(1.9rem, 1.55rem + 1vw, 2.4rem); font-weight: 900; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan__unit { color: var(--text-3); font-size: .85rem; font-weight: 650; }
.plan__was { width: 100%; color: var(--text-3); font-size: .88rem; }
.plan__bill { margin: -.65rem 0 0; color: var(--team-ink); font-size: .82rem; font-weight: 700; }
.plan__specs, .plan__feats { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.plan__specs li, .plan__feats li { display: flex; align-items: center; gap: .6rem; font-size: .93rem; line-height: 1.5; }
.plan__specs .i { color: var(--team-ink); }
.plan__specs b { font-weight: 850; }
.plan__slots { margin: 0; color: var(--text-3); font-size: .84rem; }
.plan__feats { padding-top: 1rem; border-top: 1px dashed var(--line-2); }
.plan__feats .is-yes .i { color: var(--ok); }
.plan__feats .is-no { color: var(--text-3); }
.plan__feats .is-no .i { opacity: .7; }
.plan .btn { margin-top: auto; }
.plans__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2rem; }
.vip-note { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; color: var(--text-2); font-size: .95rem; }
.vip-note .i { color: var(--play); }
.vip-note a { color: var(--play-ink); font-weight: 800; }


/* =====================================================================
   PLANS: live picker on glass
   ===================================================================== */
.plans-live { isolation: isolate; overflow: hidden; background: var(--bg-2); }
.plans-live__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; opacity: .6; animation: orb 22s ease-in-out infinite alternate; }
.orb--1 { top: -12%; left: -10%; background: radial-gradient(closest-side, color-mix(in srgb, var(--host) 55%, transparent), transparent); }
.orb--2 { right: -8%; bottom: -20%; background: radial-gradient(closest-side, color-mix(in srgb, var(--play) 42%, transparent), transparent); animation-duration: 27s; animation-delay: -9s; }
.orb--3 { top: 32%; left: 38%; width: 30vmax; height: 30vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--host-ink) 30%, transparent), transparent); animation-duration: 31s; animation-delay: -4s; }
@keyframes orb { to { transform: translate3d(9vw, 7vh, 0) scale(1.15); } }
.plans-live:not(.is-visible) .orb, [data-fx="off"] .orb { animation-play-state: paused; }
[data-theme="light"] .orb { opacity: .45; }

.glass {
  border: 1px solid color-mix(in srgb, #fff 13%, transparent);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 12%, transparent), 0 24px 60px -36px rgba(0, 0, 0, .75);
}
[data-theme="light"] .glass {
  border-color: rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .58);
  box-shadow: inset 0 1px 0 #fff, 0 24px 60px -36px rgba(11, 22, 56, .35);
}

.picker { display: grid; gap: 1.1rem; padding: 1.1rem 1.25rem; border-radius: 18px; }
.picker__row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.picker__row--split { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1rem 2rem; }
.picker__k { margin: 0; color: var(--text-2); font-size: .86rem; font-weight: 800; }
.picker__games { display: flex; flex-wrap: wrap; gap: .45rem; }
.pchip {
  position: relative; display: inline-flex; align-items: center; min-height: 42px; padding: .35rem .95rem;
  border: 1px solid var(--line-2); border-radius: 10px; background: color-mix(in srgb, var(--surface) 55%, transparent);
  color: var(--text-2); font-size: .9rem; font-weight: 750; cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s, box-shadow .25s, transform .3s var(--spring);
}
.pchip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pchip:hover { border-color: var(--host); color: var(--text); }
.pchip:active { transform: scale(.95); }
.pchip:has(input:checked) { border-color: var(--host); background: var(--host); color: var(--on-host); box-shadow: 0 10px 24px -12px var(--host-glow); }
.pchip:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.picker__players { display: grid; gap: .3rem; min-width: 0; }
.picker__players output { color: var(--host-ink); font-size: 1.2rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.billing--mini { background: color-mix(in srgb, var(--surface) 55%, transparent); }
.billing--mini label { min-height: 38px; padding: .3rem .75rem; font-size: .88rem; }

.gplans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; padding-top: .9rem; }
.gplan {
  --tilt-x: 0deg; --tilt-y: 0deg; --lift: 0px;
  position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.45rem 1.2rem 1.15rem; border-radius: 18px;
  transform: perspective(1000px) translateY(var(--lift)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .5s var(--ease), opacity .35s, filter .35s, box-shadow .35s, border-color .35s;
}
.gplan.is-best {
  --lift: -6px; border-color: color-mix(in srgb, var(--host) 75%, transparent);
  box-shadow: 0 0 0 1px var(--host), 0 34px 70px -34px var(--host-glow), inset 0 1px 0 color-mix(in srgb, #fff 14%, transparent);
}
.gplan[data-fit="short"] { opacity: .66; filter: saturate(.55); }
.gplan__best {
  position: absolute; top: -.8rem; inset-inline-start: 1.1rem; padding: .15rem .7rem; border-radius: 6px;
  background: var(--host); color: var(--on-host); font-size: .76rem; font-weight: 850; line-height: 1.6;
  opacity: 0; translate: 0 6px; transition: opacity .3s, translate .45s var(--spring);
}
.gplan.is-best .gplan__best { opacity: 1; translate: 0 0; }
.gplan__head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .05rem .75rem; }
.gplan__lv {
  grid-row: span 2; display: grid; place-items: center; width: 3.1rem; height: 2.8rem;
  background: var(--host-soft); color: var(--host-ink); font: 900 .76rem/1 var(--font);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); transition: background-color .3s, color .3s;
}
.gplan.is-best .gplan__lv { background: var(--host); color: var(--on-host); }
.gplan__name { font-size: 1.4rem; font-weight: 900; line-height: 1.2; }
.gplan__rank { margin: 0; color: var(--text-2); font-size: .84rem; font-weight: 650; }
.gplan__stats { display: grid; gap: .5rem; }
.gstat { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr) 4.4rem; align-items: center; gap: .6rem; margin: 0; font-size: .76rem; }
.gstat__k { color: var(--text-3); font-weight: 850; }
.gstat b { color: var(--text); font: 650 .74rem var(--mono); text-align: end; }
.seg { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; direction: ltr; }
.seg i { height: 7px; border-radius: 2px; background: var(--line-2); }
.seg i.on { background: linear-gradient(90deg, var(--host), var(--host-ink)); box-shadow: 0 0 8px var(--host-glow); transform-origin: left; transition: transform .45s var(--ease) calc(var(--j, 0) * 45ms + .2s); }
.reveal-ready .gplans:not(.is-in) .seg i.on { transform: scaleX(0); }
.gplan__fit { --fitc: var(--ok-ink); padding: .65rem .75rem; border-radius: 10px; background: color-mix(in srgb, var(--bg) 42%, transparent); }
.gplan[data-fit="tight"] .gplan__fit { --fitc: var(--warn); }
.gplan[data-fit="short"] .gplan__fit { --fitc: var(--bad); }
.gplan__fitline { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .1rem .5rem; margin: 0 0 .45rem; font-size: .82rem; line-height: 1.5; }
.gplan__fitk { color: var(--fitc); font-weight: 900; }
.gplan__fitline b { font-weight: 850; font-variant-numeric: tabular-nums; }
.fit { display: block; height: 5px; overflow: hidden; border-radius: 3px; background: var(--line); }
.fit i { display: block; height: 100%; background: var(--fitc); transform-origin: left; transform: scaleX(var(--p, .3)); transition: transform .6s var(--ease), background-color .3s; }
[dir="rtl"] .fit i { transform-origin: right; }
.gplan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; margin: 0; }
.gplan__price b { font-size: 1.75rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gplan__price span { color: var(--text-3); font-size: .8rem; font-weight: 650; }
.gplan .btn { margin-top: auto; }
.gplan__live { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 0; color: var(--text-3); font-size: .78rem; }
.gplan__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: ping 2.2s var(--ease) infinite; }
.gplan__live b { color: var(--text-2); font-variant-numeric: tabular-nums; }

.feed { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; padding: .7rem 1rem; overflow: hidden; border-radius: 12px; }
.feed__k { display: inline-flex; flex: none; align-items: center; gap: .45rem; color: var(--play-ink); font-size: .8rem; font-weight: 900; }
.feed__k i { width: 7px; height: 7px; border-radius: 50%; background: var(--play); animation: ping-play 1.8s var(--ease) infinite; }
.feed__list { display: flex; gap: 2rem; min-width: 0; margin: 0; padding: 0; overflow: hidden; list-style: none; white-space: nowrap; }
.feed__list li { flex: none; color: var(--text-2); font-size: .86rem; }
.feed__list li.is-new { animation: feed-in .6s var(--ease) both; }
.feed__list b { color: var(--text); font-weight: 850; }
.feed__list time { margin-inline-start: .35rem; color: var(--text-3); font-size: .78rem; }
@keyframes feed-in { from { opacity: 0; translate: -14px 0; } }
[dir="rtl"] .feed__list li.is-new { animation-name: feed-in-rtl; }
@keyframes feed-in-rtl { from { opacity: 0; translate: 14px 0; } }

@media (max-width: 1140px) { .gplans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .picker__row--split { grid-template-columns: minmax(0, 1fr); }
  .picker__games { flex-wrap: nowrap; margin-inline: -1.25rem; padding-inline: 1.25rem; overflow-x: auto; scrollbar-width: none; }
  .picker__games::-webkit-scrollbar { display: none; }
  .pchip { flex: none; }
}
@media (max-width: 640px) {
  .gplans {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; margin-inline: calc(var(--pad) * -1);
    padding: 1.1rem var(--pad) 1.25rem; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none;
  }
  .gplans::-webkit-scrollbar { display: none; }
  .gplan { scroll-snap-align: center; }
}

/* =====================================================================
   TYPING CARET (shared by every live caption)
   ===================================================================== */
.is-typing::after {
  content: ""; display: inline-block; width: .5ch; height: 1em; margin-inline-start: 3px; vertical-align: -.12em;
  background: var(--team, var(--host)); animation: blink .8s steps(2) infinite;
}

/* =====================================================================
   INFRASTRUCTURE STAGE: globe + typed HUD + scene chapters
   ===================================================================== */
.sec--infra { overflow: hidden; background: radial-gradient(60% 70% at 70% 45%, var(--host-soft), transparent 70%), var(--bg-2); }
[dir="rtl"] .sec--infra { background: radial-gradient(60% 70% at 30% 45%, var(--host-soft), transparent 70%), var(--bg-2); }
.stage {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: "hud globe" "chapters chapters";
  align-items: center; gap: 1.5rem clamp(1.5rem, 4vw, 4rem);
}
.stage__hud { grid-area: hud; }
.stage__k { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.1rem; }
.stage__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--team-soft); color: var(--team-ink); box-shadow: 0 0 0 1px color-mix(in srgb, var(--team) 45%, transparent), 0 12px 30px -14px var(--team-glow);
  transition: background-color .4s, color .4s;
}
.stage__icon .i { width: 24px; height: 24px; }
.stage__num { color: var(--text-3); font: 700 .88rem var(--mono); }
.stage__title { min-height: 2.8em; margin: 0 0 .8rem; font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.5rem); font-weight: 900; line-height: 1.4; text-wrap: balance; }
html[lang="en"] .stage__title { line-height: 1.12; letter-spacing: -.025em; }
.stage__text { min-height: 4.4em; max-width: 32rem; margin: 0 0 1.5rem; color: var(--text-2); font-size: 1.05rem; line-height: 1.9; }
html[lang="en"] .stage__text { line-height: 1.6; }
.stage__stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .75rem; margin: 0; }
.stage__stat b { color: var(--team-ink); font-size: clamp(2.6rem, 2rem + 2.4vw, 3.8rem); font-weight: 900; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stage__stat span { max-width: 18rem; color: var(--text-2); font-weight: 700; line-height: 1.5; }
.stage .globe { grid-area: globe; position: relative; width: 100%; max-width: 640px; margin: 0 auto; aspect-ratio: 1; }
.globe__canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.globe__canvas:active { cursor: grabbing; }
.globe__hint { position: absolute; left: 0; right: 0; bottom: 1%; color: var(--text-3); font-size: .76rem; text-align: center; pointer-events: none; }
.chapters { grid-area: chapters; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.chapter {
  position: relative; display: flex; align-items: center; gap: .6rem; min-height: 56px; padding: .5rem .85rem; overflow: hidden;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text-2);
  font: 750 .92rem/1.35 var(--font); text-align: start; cursor: pointer; transition: color .2s, border-color .2s, background-color .2s, transform .3s var(--spring);
}
.chapter .i { flex: none; width: 22px; height: 22px; color: var(--text-3); transition: color .2s; }
.chapter:hover { border-color: var(--line-2); color: var(--text); transform: translateY(-2px); }
.chapter[aria-current="true"] { border-color: color-mix(in srgb, var(--host) 60%, transparent); background: var(--host-soft); color: var(--text); }
.chapter[aria-current="true"] .i { color: var(--host-ink); }
.chapter__bar { position: absolute; inset-inline: 0; bottom: 0; height: 3px; }
.chapter__bar b { display: block; height: 100%; background: linear-gradient(var(--fill-dir), var(--host), var(--play)); transform-origin: left; transform: scaleX(var(--p, 0)); }
[dir="rtl"] .chapter__bar b { transform-origin: right; }
@media (max-width: 960px) {
  .stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "globe" "hud" "chapters"; }
  .stage .globe { max-width: 520px; }
  .stage__title { min-height: 2.9em; }
  .chapters {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: max-content; margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad); overflow-x: auto; scrollbar-width: none;
  }
  .chapters::-webkit-scrollbar { display: none; }
}

/* =====================================================================
   HOSTING: feature reel that drives the panel demo
   ===================================================================== */
.reel { margin: 1.5rem 0 1.9rem; }
.reel__steps { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.3rem; padding: 0; list-style: none; }
.reel__step {
  position: relative; display: grid; place-items: center; width: 50px; height: 50px; padding: 0; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 13px; background: var(--surface); color: var(--text-3); cursor: pointer;
  transition: color .25s, border-color .25s, background-color .25s, box-shadow .25s, transform .35s var(--spring);
}
.reel__step .i { width: 22px; height: 22px; }
.reel__step:hover { color: var(--text); transform: translateY(-3px); }
.reel__step.is-done { border-color: color-mix(in srgb, var(--host) 50%, transparent); color: var(--host-ink); }
.reel__step[aria-current="true"] { border-color: var(--host); background: var(--host); color: var(--on-host); box-shadow: 0 12px 26px -12px var(--host-glow); transform: translateY(-3px); }
.reel__bar { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: color-mix(in srgb, #fff 22%, transparent); opacity: 0; }
.reel__step[aria-current="true"] .reel__bar { opacity: 1; }
.reel__bar b { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); }
[dir="rtl"] .reel__bar b { transform-origin: right; }
.reel__num { margin: 0 0 .3rem; color: var(--text-3); font: 700 .85rem var(--mono); }
.reel__title { min-height: 1.45em; margin: 0 0 .5rem; font-size: clamp(1.3rem, 1.05rem + .9vw, 1.8rem); font-weight: 900; line-height: 1.45; }
html[lang="en"] .reel__title { line-height: 1.2; letter-spacing: -.015em; }
.reel__text { min-height: 3.9em; max-width: 34rem; margin: 0; color: var(--text-2); font-size: 1.03rem; line-height: 1.9; }
html[lang="en"] .reel__text { line-height: 1.6; min-height: 3.3em; }

.pm__view { overflow: hidden; }
.pm__mini { display: block; width: 72px; height: 5px; overflow: hidden; border-radius: 3px; background: var(--line); }
.pm__mini i { display: block; height: 100%; background: var(--host); transform-origin: left; transform: scaleX(var(--p, 0)); }
[dir="rtl"] .pm__mini i { transform-origin: right; }
.perms { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; }
.perms i { padding: .05rem .35rem; border-radius: 5px; background: var(--line); color: var(--text-3); font: 700 .62rem/1.6 var(--mono); font-style: normal; }
.perms i.ok { background: var(--ok-soft); color: var(--ok-ink); }
.pm__creds { display: grid; gap: .25rem; margin-top: .6rem; padding: .6rem .75rem; border: 1px dashed var(--host); border-radius: 10px; background: var(--host-soft); animation: view-in .35s var(--ease) both; }
.pm__creds p { display: flex; justify-content: space-between; gap: 1rem; margin: 0; font-size: .78rem; line-height: 1.6; }
.pm__creds span { color: var(--text-2); }
.pm__creds code { min-height: 1.2em; color: var(--text); font-size: .76rem; }
.pm__mig { margin-top: .6rem; padding: .6rem .75rem; border-radius: 10px; background: var(--surface-2); animation: view-in .35s var(--ease) both; }
.pm__mig p { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .4rem; font-size: .8rem; }
.pm__mig .pm__mini { width: 100%; height: 6px; }

/* =====================================================================
   SPEEDRUN: checkout to first match
   ===================================================================== */
.run { --run: 0; position: relative; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.run__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.3rem; }
.run__timer { display: flex; align-items: center; gap: .6rem; margin: 0; color: var(--text); font: 800 clamp(2rem, 1.5rem + 2.6vw, 3.4rem)/1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.run__timer .i { width: .62em; height: .62em; color: var(--host-ink); }
.run.is-finished .run__timer b { color: var(--ok-ink); }
.run__pb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; color: var(--text-2); font-weight: 750; }
.run__pbk { padding: .05rem .5rem; border-radius: 6px; background: var(--warn); color: #1a1200; font-size: .75rem; font-weight: 900; }
.run__stamp {
  padding: .1rem .65rem; border: 2px solid var(--ok); border-radius: 7px; color: var(--ok-ink); font-size: .82rem; font-weight: 900;
  opacity: 0; scale: 1.7; rotate: -7deg; transition: opacity .25s, scale .5s var(--spring);
}
.run.is-finished .run__stamp { opacity: 1; scale: 1; }
.run__track { position: relative; height: 36px; margin: 0 .8rem 1.5rem; }
.run__rail { position: absolute; inset-inline: 0; top: 50%; height: 6px; margin-top: -3px; overflow: hidden; border-radius: 3px; background: var(--line); }
.run__fill { position: absolute; inset: 0; background: linear-gradient(var(--fill-dir), var(--host), var(--play)); transform-origin: left; transform: scaleX(var(--run)); }
[dir="rtl"] .run__fill { transform-origin: right; }
.run__cp {
  position: absolute; top: 50%; inset-inline-start: calc(var(--at) * 100%); width: 14px; height: 14px; margin-top: -7px; margin-inline-start: -7px;
  border: 2px solid var(--line-2); background: var(--surface); transform: rotate(45deg); transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.run__cp.is-done { border-color: var(--host); background: var(--host); box-shadow: 0 0 14px var(--host-glow); }
.run__flag { position: absolute; top: 50%; inset-inline-end: -8px; translate: 0 -78%; color: var(--text-3); transition: color .3s; }
.run.is-finished .run__flag { color: var(--ok); }
.run__runner { position: absolute; top: 50%; inset-inline-start: calc(var(--run) * 100%); width: 30px; height: 30px; margin-top: -15px; margin-inline-start: -15px; filter: drop-shadow(0 0 10px var(--host-glow)); }
.run__runner svg { width: 100%; height: 100%; animation: spin 1.1s linear infinite; }
.run.is-finished .run__runner svg { animation: none; }
.run__splits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.rsplit {
  display: grid; justify-items: center; gap: .35rem; padding: 1rem .8rem 1.1rem; border: 1px solid var(--line); border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 55%, transparent); text-align: center; opacity: .5;
  transition: opacity .4s, border-color .4s, transform .5s var(--spring), box-shadow .4s;
}
.rsplit.is-active { opacity: .85; border-color: var(--line-2); }
.rsplit.is-done { opacity: 1; border-color: color-mix(in srgb, var(--host) 55%, transparent); transform: translateY(-5px); box-shadow: 0 20px 40px -28px var(--host-glow); }
.rsplit h3 { margin: .15rem 0 0; font-size: 1.02rem; font-weight: 850; }
.rsplit p { margin: 0; color: var(--text-2); font-size: .82rem; }
.rsplit time { color: var(--text-3); font: 800 .92rem var(--mono); }
.rsplit.is-done time { color: var(--ok-ink); }
.rsplit__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--host-soft); color: var(--host-ink); }
.vg { position: relative; display: grid; place-items: center; width: 100%; height: 88px; }
.vg--plan { grid-template-columns: repeat(3, 34px); justify-content: center; align-items: center; gap: 8px; }
.vg--plan i { position: relative; width: 34px; height: 48px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface-2); transition: transform .5s var(--spring), background-color .35s, border-color .35s, box-shadow .35s; }
.vg--plan i::after { content: ""; position: absolute; left: 50%; top: 46%; width: 12px; height: 6px; border-bottom: 2.5px solid var(--on-host); border-left: 2.5px solid var(--on-host); translate: -50% -50%; rotate: -45deg; opacity: 0; transition: opacity .25s .2s; }
.rsplit.is-active .vg--plan i:nth-child(2) { animation: pick-wiggle .7s ease-in-out infinite alternate; }
.rsplit.is-done .vg--plan i:nth-child(2) { border-color: var(--host); background: var(--host); box-shadow: 0 12px 26px -10px var(--host-glow); transform: translateY(-10px) scale(1.14); }
.rsplit.is-done .vg--plan i:nth-child(2)::after { opacity: 1; }
@keyframes pick-wiggle { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@property --fill { syntax: "<number>"; inherits: false; initial-value: 0; }
.vg__ring {
  width: 76px; height: 76px; border-radius: 50%; background: conic-gradient(var(--host) calc(var(--fill) * 1%), var(--line) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  transition: --fill 1.8s linear;
}
.rsplit.is-active .vg__ring { --fill: 75; }
.rsplit.is-done .vg__ring { --fill: 100; transition-duration: .3s; }
.vg--install .tile { position: absolute; opacity: .35; scale: .6; transition: opacity .3s, scale .5s var(--spring); }
.rsplit.is-active .vg--install .tile { animation: spin 2.4s linear infinite; }
.rsplit.is-done .vg--install .tile { opacity: 1; scale: 1; animation: none; }
.vg--online { grid-template-columns: auto auto; justify-content: center; gap: 12px; }
.vg__rack { display: grid; gap: 5px; width: 66px; padding: 6px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface-2); }
.vg__rack i { position: relative; height: 13px; border-radius: 3px; background: var(--line); }
.vg__rack i::after { content: ""; position: absolute; top: 3.5px; inset-inline-end: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); transition: background-color .3s, box-shadow .3s; }
.rsplit.is-done .vg__rack i::after { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.rsplit.is-done .vg__rack i:nth-child(2)::after { transition-delay: .15s; }
.rsplit.is-done .vg__rack i:nth-child(3)::after { transition-delay: .3s; }
.vg__avs { display: flex; }
.vg__avs b { display: grid; place-items: center; width: 28px; height: 28px; margin-inline-start: -7px; border: 2px solid var(--surface); border-radius: 50%; background: var(--play); color: var(--on-play); font-size: .7rem; font-weight: 900; scale: 0; transition: scale .45s var(--spring); }
.rsplit.is-done .vg__avs b { scale: 1; }
.rsplit.is-done .vg__avs b:nth-child(2) { transition-delay: .2s; }
.rsplit.is-done .vg__avs b:nth-child(3) { transition-delay: .4s; }
@media (max-width: 640px) {
  .run__splits { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .rsplit { grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "vg title time" "vg text time"; justify-items: start; align-items: center; gap: .1rem .8rem; text-align: start; }
  .rsplit .vg { grid-area: vg; height: 70px; }
  .rsplit__icon { display: none; }
  .rsplit h3 { grid-area: title; }
  .rsplit p { grid-area: text; }
  .rsplit time { grid-area: time; }
  .vg--plan { grid-template-columns: repeat(3, 24px); gap: 5px; }
  .vg--plan i { width: 24px; height: 36px; }
  .vg__ring { width: 60px; height: 60px; }
  .vg__rack { width: 50px; }
  .vg__avs b { width: 22px; height: 22px; font-size: .6rem; }
}

/* =====================================================================
   CLOSING CTA: a 3D spawn point
   ===================================================================== */
.cta { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(4.5rem, 3.5rem + 6vw, 8rem); }
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__half { position: absolute; inset: 0; }
.cta__half--host { background: var(--host-bg); clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%); }
.cta__half--play { background: var(--play-bg); clip-path: polygon(58% 0, 100% 0, 100% 100%, 42% 100%); }
[dir="rtl"] .cta__half--host { clip-path: polygon(42% 0, 100% 0, 100% 100%, 58% 100%); }
[dir="rtl"] .cta__half--play { clip-path: polygon(0 0, 42% 0, 58% 100%, 0 100%); }
.cta__seam { position: absolute; inset: 0; filter: drop-shadow(0 0 14px var(--play-glow)); }
.cta__seam::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(var(--host), var(--play));
  clip-path: polygon(calc(58% - 1px) 0, calc(58% + 1px) 0, calc(42% + 1px) 100%, calc(42% - 1px) 100%);
}
[dir="rtl"] .cta__seam::before { clip-path: polygon(calc(42% - 1px) 0, calc(42% + 1px) 0, calc(58% + 1px) 100%, calc(58% - 1px) 100%); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 2rem; }
.cta__title { max-width: 13ch; margin-bottom: 1.2rem; text-shadow: 0 10px 40px var(--bg); }
.cta .lead { margin: 0 0 2rem; text-shadow: 0 2px 18px var(--bg); }
.cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.sp3 { position: relative; height: clamp(330px, 36vw, 470px); perspective: 1000px; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.sp3__scene { --rx: 0deg; --ry: 0deg; position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.sp3__pad { position: absolute; left: 50%; top: 72%; width: 300px; height: 300px; margin: -150px 0 0 -150px; transform: rotateX(76deg); transform-style: preserve-3d; }
.sp3__ring { position: absolute; border-radius: 50%; }
.sp3__ring--a { inset: 0; border: 2px dashed color-mix(in srgb, var(--host-ink) 70%, transparent); animation: spin 22s linear infinite; }
.sp3__ring--b {
  inset: 34px; background: conic-gradient(var(--host), var(--play), var(--host-ink), var(--play), var(--host));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: spin 9s linear infinite reverse; filter: drop-shadow(0 0 12px var(--host-glow));
}
.sp3__ring--c { inset: 78px; border: 1.5px solid var(--play); opacity: .8; animation: spin 5s linear infinite; }
.sp3__core { position: absolute; inset: 104px; border-radius: 50%; background: radial-gradient(closest-side, #fff, color-mix(in srgb, var(--host) 70%, transparent) 45%, transparent); }
.sp3__beam {
  position: absolute; left: 50%; top: 22%; width: 74px; height: 50%; margin-left: -37px;
  background: linear-gradient(to top, color-mix(in srgb, var(--host-ink) 70%, transparent), color-mix(in srgb, var(--play) 25%, transparent) 70%, transparent);
  filter: blur(10px); opacity: .6; animation: beam 2.6s ease-in-out infinite;
}
@keyframes beam { 50% { opacity: .9; transform: scaleX(1.25); } }
.sp3__float { position: absolute; left: 50%; top: 40%; width: 110px; height: 110px; margin: -55px 0 0 -55px; transform-style: preserve-3d; animation: bob 4.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-16px); } }
.sp3__cube { position: absolute; inset: 0; transform-style: preserve-3d; animation: cube 13s linear infinite; }
@keyframes cube { from { transform: rotateX(-20deg) rotateY(0deg); } to { transform: rotateX(-20deg) rotateY(360deg); } }
.sp3__f {
  position: absolute; inset: 0; display: grid; place-items: center;
  border: 1.5px solid color-mix(in srgb, var(--host-ink) 65%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 88%, transparent), color-mix(in srgb, var(--bg) 92%, transparent));
  box-shadow: inset 0 0 26px color-mix(in srgb, var(--host) 40%, transparent);
}
.sp3__f svg { width: 54px; height: 54px; filter: drop-shadow(0 0 10px var(--play-glow)); }
.sp3__f--front { transform: translateZ(55px); }
.sp3__f--back { transform: rotateY(180deg) translateZ(55px); }
.sp3__f--right { transform: rotateY(90deg) translateZ(55px); background: linear-gradient(135deg, var(--host), color-mix(in srgb, var(--host) 40%, var(--bg))); }
.sp3__f--left { transform: rotateY(-90deg) translateZ(55px); background: linear-gradient(135deg, var(--play), color-mix(in srgb, var(--play) 40%, var(--bg))); }
.sp3__f--top { transform: rotateX(90deg) translateZ(55px); background: linear-gradient(135deg, var(--host-ink), var(--play-ink)); }
.sp3__f--bottom { transform: rotateX(-90deg) translateZ(55px); }
.sp3__orbit { position: absolute; left: 50%; top: 40%; width: 0; height: 0; transform-style: preserve-3d; animation: orbit 16s linear infinite; }
@keyframes orbit { from { transform: rotateX(-14deg) rotateY(0deg); } to { transform: rotateX(-14deg) rotateY(360deg); } }
.sp3__tok {
  --cut: 8px; position: absolute; left: -25px; top: -25px; display: grid; place-items: center; width: 50px; height: 50px;
  background: var(--team); color: var(--on-team); font: 900 .8rem/1 var(--font); direction: ltr;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  animation: tok 16s linear infinite;
}
@keyframes tok {
  from { transform: rotateY(var(--a)) translateZ(165px) rotateY(calc(var(--a) * -1)) rotateY(0deg) rotateX(14deg); }
  to { transform: rotateY(var(--a)) translateZ(165px) rotateY(calc(var(--a) * -1)) rotateY(-360deg) rotateX(14deg); }
}
.sp3__dust i { position: absolute; left: 50%; top: 70%; width: 4px; height: 4px; background: var(--host-ink); opacity: 0; animation: rise 3.4s linear infinite; animation-delay: var(--d); }
.sp3__dust i:nth-child(3n) { background: var(--play-ink); }
@keyframes rise { 0% { transform: translate(var(--x), 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--x), -230px); opacity: 0; } }
.sp3__tag {
  position: absolute; left: 50%; top: 9%; margin: 0; padding: .3rem .85rem; border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--surface-2); color: var(--text); font-size: .86rem; font-weight: 800; white-space: nowrap; translate: -50% 0; opacity: 0;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6);
}
.sp3.is-spawn .sp3__tag { animation: sp-tag 2.8s var(--ease) both; }
@keyframes sp-tag { 0% { opacity: 0; translate: -50% 12px; } 12%, 76% { opacity: 1; translate: -50% 0; } 100% { opacity: 0; translate: -50% -14px; } }
.sp3.is-spawn .sp3__beam { animation: beam-flash .9s ease-out; }
@keyframes beam-flash { 0% { opacity: 1; transform: scaleX(2.2); filter: blur(4px); } 100% { opacity: .6; transform: none; } }
.sp3.is-spawn .sp3__core { animation: core-flash .9s ease-out; }
@keyframes core-flash { 0% { transform: scale(2.2); } 100% { transform: none; } }
.sp3__hint { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; color: var(--text-3); font-size: .78rem; text-align: center; }
.sp3:not(.is-visible) *, [data-fx="off"] .sp3 * { animation-play-state: paused !important; }
@media (max-width: 860px) {
  .cta__grid { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .sp3 { order: -1; height: 300px; }
  .sp3__scene { scale: .78; }
  .cta__title { max-width: 16ch; }
}
@media (prefers-reduced-motion: reduce) { .sp3 * { animation: none !important; } }

/* =====================================================================
   PLANS: plan battle arena
   ===================================================================== */
.arena { margin-top: clamp(4rem, 8vw, 7rem); scroll-margin-top: calc(var(--hdr) + 1rem); }
.arena__game { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: 1.4rem; }
.arena__k { display: inline-flex; align-items: center; gap: .4rem; margin-inline-end: .4rem; color: var(--text-2); font-weight: 800; font-size: .9rem; }
.arena__stage {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center; gap: 1.25rem; padding: clamp(1rem, 2.5vw, 1.75rem); overflow: hidden; border: 1px solid var(--line-2); border-radius: 24px;
  background: linear-gradient(90deg, var(--host-soft), transparent 42%, transparent 58%, var(--play-soft)), var(--surface);
}
[dir="rtl"] .arena__stage { background: linear-gradient(270deg, var(--host-soft), transparent 42%, transparent 58%, var(--play-soft)), var(--surface); }
.arena__stage::before {
  content: ""; position: absolute; z-index: -1; top: -10%; bottom: -10%; left: 50%; width: 2px; margin-left: -1px;
  background: linear-gradient(var(--host), var(--play)); opacity: .45; transform: skewX(-14deg);
}
.fighter { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.fighter__pick { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }
.fchip {
  position: relative; display: inline-flex; align-items: center; min-height: 38px; padding: .25rem .75rem; border: 1px solid var(--line-2); border-radius: 9px;
  color: var(--text-2); font-size: .86rem; font-weight: 800; cursor: pointer; transition: color .2s, border-color .2s, background-color .2s, transform .3s var(--spring);
}
.fchip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fchip:hover { border-color: var(--team); color: var(--text); }
.fchip:active { transform: scale(.94); }
.fchip:has(input:checked) { border-color: var(--team); background: var(--team); color: var(--on-team); }
.fchip:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.fighter__card {
  display: grid; justify-items: center; gap: .3rem; width: 100%; padding: 1.3rem 1rem; border: 1px solid color-mix(in srgb, var(--team) 45%, transparent);
  border-radius: 18px; background: color-mix(in srgb, var(--bg) 45%, transparent); box-shadow: 0 26px 50px -32px var(--team-glow);
  transition: transform .5s var(--spring), box-shadow .4s;
}
.arena[data-winner="a"] [data-slot="a"] .fighter__card, .arena[data-winner="b"] [data-slot="b"] .fighter__card { box-shadow: 0 0 0 2px var(--team), 0 30px 60px -28px var(--team-glow); transform: translateY(-4px); }
.fighter__lv { display: grid; place-items: center; width: 3.4rem; height: 3rem; background: var(--team); color: var(--on-team); font: 900 .8rem/1 var(--font); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.fighter__name { margin: .25rem 0 0; color: var(--text); font-size: clamp(1.8rem, 1.35rem + 1.6vw, 2.6rem); font-weight: 900; line-height: 1.1; }
.fighter__rank { margin: 0; color: var(--team-ink); font-weight: 750; }
.fighter__price { margin: .25rem 0 .55rem; }
.fighter__price b { font-size: 1.3rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.fighter__price span { color: var(--text-3); font-size: .8rem; }
.arena.is-slam .fighter__card { animation: f-in .55s var(--spring); }
@keyframes f-in { from { opacity: .4; scale: .9; } }
.arena__mid { position: relative; display: grid; place-items: center; }
.radar { position: relative; width: 100%; max-width: 330px; aspect-ratio: 1; direction: ltr; }
.radar svg { width: 100%; height: 100%; overflow: visible; }
.radar__web polygon { fill: none; stroke: var(--line-2); stroke-width: .8; }
.radar__web line { stroke: var(--line); stroke-width: .8; }
.radar__a { fill: color-mix(in srgb, var(--host) 26%, transparent); stroke: var(--host); stroke-width: 2.2; stroke-linejoin: round; }
.radar__b { fill: color-mix(in srgb, var(--play) 24%, transparent); stroke: var(--play); stroke-width: 2.2; stroke-linejoin: round; }
.radar__lab { position: absolute; translate: -50% -50%; color: var(--text-3); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.vs {
  position: absolute; display: grid; place-items: center; width: 66px; height: 66px; border: 2px solid var(--line-2); border-radius: 50%;
  background: var(--bg); color: var(--text); font-size: 1.05rem; font-weight: 900; line-height: 1;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--bg) 50%, transparent), 0 0 36px -6px var(--play-glow);
}
.vs .i { width: 18px; height: 18px; margin-bottom: -6px; color: var(--play-ink); }
.arena.is-slam .vs { animation: slam .6s var(--spring); }
.arena.is-slam .arena__stage { animation: shake .42s ease .12s; }
@keyframes slam { 0% { scale: 2.4; opacity: 0; } 60% { scale: .9; opacity: 1; } 100% { scale: 1; } }
@keyframes shake { 20% { translate: -4px 0; } 40% { translate: 4px 0; } 60% { translate: -2px 0; } 80% { translate: 1px 0; } }
.tug { display: grid; gap: .5rem; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.tug__row { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 7rem; align-items: center; gap: .9rem; }
.tug__v { display: flex; align-items: center; gap: .35rem; font-weight: 850; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tug__v--a { justify-content: flex-start; color: var(--host-ink); }
.tug__v--b { justify-content: flex-end; color: var(--play-ink); }
.tug__v .i { width: 1.05em; height: 1.05em; color: var(--warn); opacity: 0; scale: .3; transition: opacity .25s, scale .45s var(--spring); }
.tug__row.win-a .tug__v--a .i, .tug__row.win-b .tug__v--b .i { opacity: 1; scale: 1; }
.tug__mid { display: grid; gap: .3rem; }
.tug__k { display: flex; align-items: center; justify-content: center; gap: .4rem; color: var(--text-2); font-size: .8rem; font-weight: 750; }
.tug__k .i { width: 1.05em; height: 1.05em; }
.tug__bar { position: relative; display: flex; height: 10px; overflow: hidden; border-radius: 6px; background: var(--line); }
.tug__bar::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: var(--bg); opacity: .8; }
.tug__a, .tug__b { display: block; height: 100%; transition: flex-grow .7s var(--ease); }
.tug__a { flex-grow: var(--a, 1); background: linear-gradient(var(--fill-dir), color-mix(in srgb, var(--host) 55%, transparent), var(--host)); }
.tug__b { flex-grow: var(--b, 1); background: linear-gradient(var(--fill-dir), var(--play), color-mix(in srgb, var(--play) 55%, transparent)); }
.arena__verdict { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 1.5rem 0 0; font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); font-weight: 900; }
.arena__verdict .i { width: 1.4em; height: 1.4em; color: var(--warn); }
.arena__table { margin-top: 1.6rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.arena__table summary { display: flex; align-items: center; gap: .6rem; min-height: 54px; padding: .8rem 1.1rem; font-weight: 800; list-style: none; cursor: pointer; }
.arena__table summary::-webkit-details-marker { display: none; }
.arena__table summary .i:first-child { color: var(--host-ink); }
.arena__table summary .i:last-child { margin-inline-start: auto; transition: transform .35s var(--ease); }
.arena__table[open] summary .i:last-child { transform: rotate(180deg); }
.arena__table .cmp-wrap { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; }
@media (max-width: 900px) {
  .arena__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "a b" "mid mid"; }
  [data-slot="a"] { grid-area: a; }
  [data-slot="b"] { grid-area: b; }
  .arena__mid { grid-area: mid; }
  .arena__stage::before { display: none; }
  .fighter__card { padding: 1rem .6rem; }
  .fighter__pick { gap: .25rem; }
  .fchip { min-height: 34px; padding: .2rem .5rem; font-size: .78rem; }
  .tug__row { grid-template-columns: 4.8rem minmax(0, 1fr) 4.8rem; gap: .5rem; }
  .tug__v { font-size: .88rem; }
}

/* =====================================================================
   PAGE HERO (inner pages echo the home seam, quietly)
   ===================================================================== */
.phero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--hdr) + clamp(3rem, 9vh, 6.5rem)) 0 clamp(3rem, 7vh, 5.5rem);
  background: linear-gradient(to bottom, var(--host-bg), var(--bg) 92%);
}
.phero--short { padding-bottom: clamp(2.5rem, 5vh, 3.5rem); }
.phero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.phero__seam {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--play-bg), var(--bg) 95%);
  clip-path: polygon(80% 0, 100% 0, 100% 100%, 67% 100%);
}
.phero__seam::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(var(--host), var(--play) 60%, transparent);
  clip-path: polygon(80% 0, calc(80% + 2px) 0, calc(67% + 2px) 100%, 67% 100%);
}
[dir="rtl"] .phero__seam { clip-path: polygon(0 0, 20% 0, 33% 100%, 0 100%); }
[dir="rtl"] .phero__seam::before { clip-path: polygon(calc(20% - 2px) 0, 20% 0, 33% 100%, calc(33% - 2px) 100%); }
.ghost--page { --team: var(--play); inset-inline-end: -1%; bottom: -5%; font-size: clamp(5rem, 15vw, 13.5rem); opacity: .08; }
.phero__in { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.5rem; color: var(--text-3); font-size: .88rem; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.phero .display { max-width: 15ch; margin: 0 0 1.2rem; }
html[lang="en"] .phero .display { max-width: 13ch; }
.phero .lead { margin: 0; }

.jumps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 54rem; margin-top: 2.6rem; }
.jump {
  display: grid; gap: .35rem; padding: 1.25rem 3.6rem 1.3rem 1.3rem; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--text); text-decoration: none;
  transition: border-color .25s, transform .4s var(--ease);
}
[dir="rtl"] .jump { padding: 1.25rem 1.3rem 1.3rem 3.6rem; }
.jump:hover { border-color: var(--team); transform: translateY(-3px); }
.jump .tag { margin: 0; }
.jump b { font-size: 1.08rem; font-weight: 850; line-height: 1.55; }
.jump__meta { color: var(--text-3); font-size: .88rem; }
.jump .jump__go { position: absolute; inset-inline-end: 1.2rem; top: 50%; translate: 0 -50%; color: var(--team-ink); transition: translate .35s var(--ease); }
.jump:hover .jump__go { translate: 0 calc(-50% + 4px); }
@media (max-width: 640px) { .jumps { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   SERVICES
   ===================================================================== */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: .9rem; margin: 0; padding: 0; list-style: none; }
.game {
  display: flex; align-items: flex-start; gap: 1rem; height: 100%; padding: 1.15rem 2.6rem 1.15rem 1.15rem;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none;
  transition: border-color .25s, transform .4s var(--ease);
}
[dir="rtl"] .game { padding: 1.15rem 1.15rem 1.15rem 2.6rem; }
.game:hover { border-color: var(--host); transform: translateY(-3px); }
.game__body { display: grid; gap: .2rem; min-width: 0; }
.game__name { font-size: 1.04rem; font-weight: 850; line-height: 1.35; }
.game__pop { justify-self: start; padding: .02rem .5rem; border-radius: 6px; background: var(--host-soft); color: var(--host-ink); font-size: .72rem; font-weight: 850; line-height: 1.7; }
.game__desc { color: var(--text-2); font-size: .87rem; line-height: 1.65; }
.game__meta { display: flex; flex-wrap: wrap; gap: .15rem .9rem; margin-top: .35rem; color: var(--text-3); font-size: .8rem; font-weight: 650; }
.game .game__go { position: absolute; inset-inline-end: 1rem; top: 1.25rem; color: var(--text-3); transition: color .25s, translate .35s var(--ease); }
.game:hover .game__go { color: var(--host-ink); translate: 3px 0; }
[dir="rtl"] .game:hover .game__go { translate: -3px 0; }

.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.feats li { display: flex; align-items: flex-start; gap: .9rem; }
.feats .i, .promises .i { width: 2.6rem; height: 2.6rem; padding: .6rem; border-radius: 10px; background: var(--host-soft); color: var(--host-ink); }
.feats h3 { margin: 0 0 .15rem; font-size: 1.02rem; font-weight: 850; }
.feats p { margin: 0; color: var(--text-2); font-size: .92rem; line-height: 1.7; }
@media (max-width: 560px) { .feats { grid-template-columns: minmax(0, 1fr); } }

.deploy { position: sticky; top: calc(var(--hdr) + 1.5rem); margin: 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.deploy__cap { display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; color: var(--host-ink); font-size: .92rem; font-weight: 750; line-height: 1.5; }
.deploy__term {
  min-height: 12.6rem; margin: 0; padding: 1rem 1.1rem; overflow-x: auto; border-radius: 6px;
  background: #050816; color: #C9D3FF; font: .79rem/1.95 var(--mono); white-space: pre;
}
.deploy__term .c-dim { color: #6F7AA6; }
.deploy__term .c-ok { color: #33E39A; }
.deploy__term .c-hi { color: #9DB6FF; font-weight: 700; }
.deploy__term .caret { display: inline-block; width: .5em; height: 1.05em; margin-inline-start: 1px; vertical-align: -2px; background: #9DB6FF; animation: blink 1s steps(2) infinite; }
.deploy__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 1rem 0 0; }
.deploy__specs div { padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 8px; }
.deploy__specs dt { color: var(--text-3); font-size: .75rem; font-weight: 650; line-height: 1.4; }
.deploy__specs dd { margin: 0; font-size: .92rem; font-weight: 800; }
@media (max-width: 960px) { .deploy { position: relative; top: 0; } }

.sec--play { background: var(--bg-2); }
.families { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.family {
  --tilt-x: 0deg; --tilt-y: 0deg;
  display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transition: transform .5s var(--ease), border-color .25s;
}
.family:hover { border-color: var(--play); }
.family h3 { margin: .3rem 0 0; font-size: 1.18rem; font-weight: 850; }
.family > p { margin: 0; color: var(--text-2); font-size: .92rem; line-height: 1.75; }
.family .family__live { display: flex; align-items: center; gap: .45rem; margin-top: auto; color: var(--text); font-weight: 700; }
.family__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: ping 2.2s var(--ease) infinite; }
.family__live b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
@media (max-width: 1140px) { .families { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .families { grid-template-columns: minmax(0, 1fr); } }

.play-extra { margin-top: clamp(3rem, 6vw, 5rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.perks li { display: flex; align-items: center; gap: .65rem; font-weight: 700; line-height: 1.5; }
.perks .i { color: var(--play); }
.events { display: grid; gap: .75rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.event {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "date btn" "title btn" "prize btn";
  align-items: center; gap: .15rem 1rem; padding: 1rem 1.15rem;
  border: 1px solid var(--line); border-inline-start: 3px solid var(--play); border-radius: 10px; background: var(--surface);
}
.event__date { grid-area: date; display: flex; align-items: center; gap: .45rem; margin: 0; color: var(--play-ink); font-size: .82rem; font-weight: 750; }
.event h4 { grid-area: title; margin: 0; font-size: 1.02rem; font-weight: 850; line-height: 1.5; }
.event__prize { grid-area: prize; margin: 0; color: var(--text-2); font-size: .86rem; }
.event .mini-btn { grid-area: btn; }
@media (max-width: 960px) { .play-extra { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .perks { grid-template-columns: minmax(0, 1fr); } }

.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.extra { display: grid; align-content: start; gap: .4rem; padding: 1.6rem 1.4rem; background: var(--bg); }
.extra .i { width: 1.7rem; height: 1.7rem; color: var(--text-2); }
.extra h3 { margin: .5rem 0 0; font-size: 1.1rem; font-weight: 850; }
.extra p { margin: 0; color: var(--text-2); font-size: .92rem; }
.extra .extra__price { margin-top: .4rem; color: var(--text); font-size: .9rem; font-weight: 800; }
@media (max-width: 900px) { .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .extras { grid-template-columns: minmax(0, 1fr); } }

.which { overflow-x: auto; }
.which__t { width: 100%; min-width: 560px; border-collapse: collapse; }
.which__t th, .which__t td { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.which__t thead th { font-size: 1.12rem; font-weight: 900; }
.which__t .is-host { color: var(--host-ink); border-bottom: 2px solid var(--host); }
.which__t .is-play { color: var(--play-ink); border-bottom: 2px solid var(--play); }
.which__t tbody th { width: 22%; color: var(--text-2); font-weight: 700; }
.which__t tfoot td { padding-top: 1.4rem; border-bottom: 0; }

/* =====================================================================
   PLANS
   ===================================================================== */
.sec--plans-main { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.pbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.6rem; }
.ptabs { position: relative; display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ptabs [role="tab"] {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .45rem 1.1rem;
  border: 0; border-radius: 9px; background: none; color: var(--text-2); font-weight: 800; cursor: pointer; transition: color .3s;
}
.ptabs [role="tab"]:hover { color: var(--text); }
.ptabs [aria-selected="true"], .ptabs [aria-selected="true"]:hover { color: var(--on-team); }
.ptabs__ink {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: var(--w, 0px); border-radius: 9px;
  background: var(--team); box-shadow: 0 6px 20px -6px var(--team-glow);
  transform: translateX(var(--x, 0px)); transition: transform .5s var(--ease), width .5s var(--ease), background-color .3s;
}
.billing { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.billing label {
  position: relative; display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .35rem .9rem;
  border-radius: 9px; color: var(--text-2); font-weight: 700; cursor: pointer; transition: color .2s, background-color .2s, box-shadow .2s;
}
.billing input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.billing label.is-checked, .billing label:has(input:checked) { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.billing label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.billing em { padding: .05rem .45rem; border-radius: 6px; background: var(--ok-soft); color: var(--ok-ink); font-size: .72rem; font-style: normal; font-weight: 850; line-height: 1.6; }
.tabpanel:focus { outline: none; }
.anchor { display: block; position: relative; top: calc(-1 * var(--hdr) - 6rem); }

.builder-sec { margin-top: clamp(4rem, 8vw, 7rem); scroll-margin-top: calc(var(--hdr) + 1rem); }
.builder { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.builder__in { display: grid; gap: 1.6rem; }
.field { display: grid; gap: .55rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.field__label { padding: 0; font-size: .95rem; font-weight: 800; line-height: 1.5; }
.field__out { color: var(--host-ink); font-size: 1.1rem; font-weight: 900; font-variant-numeric: tabular-nums; }

.select { position: relative; }
.select select {
  width: 100%; min-height: 50px; padding: .6rem 1rem; padding-inline-end: 2.8rem; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface); color: var(--text); font: 650 1rem/1.4 var(--font); cursor: pointer; appearance: none; -webkit-appearance: none;
}
.select select:hover { border-color: var(--host); }
.select option { background: var(--surface); color: var(--text); }
.select .i { position: absolute; inset-inline-end: 1rem; top: 50%; translate: 0 -50%; color: var(--text-2); pointer-events: none; }

.range { --p: 50%; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; appearance: none; -webkit-appearance: none; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(var(--fill-dir), var(--host) var(--p), var(--line-2) var(--p)); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line-2); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--host); }
.range::-webkit-slider-thumb {
  width: 22px; height: 22px; margin-top: -8px; border: 3px solid var(--bg); border-radius: 6px; background: var(--host);
  box-shadow: 0 0 0 1px var(--host), 0 0 16px var(--host-glow); transform: rotate(45deg); transition: transform .25s var(--spring); -webkit-appearance: none;
}
.range::-moz-range-thumb { width: 16px; height: 16px; border: 3px solid var(--bg); border-radius: 5px; background: var(--host); box-shadow: 0 0 0 1px var(--host), 0 0 16px var(--host-glow); transform: rotate(45deg); }
.range:active::-webkit-slider-thumb { transform: rotate(45deg) scale(1.2); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--focus), 0 0 16px var(--host-glow); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--focus), 0 0 16px var(--host-glow); }

.advice { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem; padding: .85rem 1rem; border: 1px dashed var(--host); border-radius: 10px; background: var(--host-soft); }
.advice > .i { color: var(--host-ink); }
.advice p { flex: 1 1 14rem; margin: 0; font-size: .95rem; font-weight: 700; line-height: 1.6; }
.advice.is-match { border-style: solid; }

.opts { gap: .55rem; }
.opt {
  position: relative; display: flex; align-items: center; gap: .75rem; min-height: 50px; padding: .5rem .9rem;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 650; transition: border-color .2s, background-color .2s;
}
.opt:hover { border-color: var(--line-2); }
.opt input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.opt__box { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1.5px solid var(--line-2); border-radius: 6px; transition: background-color .2s, border-color .2s; }
.opt__box .i { width: 14px; height: 14px; color: var(--on-host); stroke-width: 3; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s var(--spring); }
.opt:has(input:checked) { border-color: var(--host); background: var(--host-soft); }
.opt:has(input:checked) .opt__box { border-color: var(--host); background: var(--host); }
.opt:has(input:checked) .opt__box .i { opacity: 1; transform: none; }
.opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.opt small { margin-inline-start: auto; color: var(--text-3); font-weight: 750; font-variant-numeric: tabular-nums; }

.sum { position: sticky; top: calc(var(--hdr) + 1.5rem); padding: 1.4rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.sum__title { margin: 0 0 1rem; font-size: 1.1rem; font-weight: 900; }
.sum__rows { display: grid; margin: 0; }
.sum__rows div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.sum__rows dt { color: var(--text-2); }
.sum__rows dd { margin: 0; font-weight: 750; text-align: end; font-variant-numeric: tabular-nums; }
.sum__rows dd small { margin-inline-start: .4rem; color: var(--text-3); font-weight: 600; }
.sum__disc dd { color: var(--ok-ink); }
.sum__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin: 1.25rem 0 .2rem; }
.sum__total span { margin-inline-end: auto; color: var(--text-2); font-weight: 700; }
.sum__total b { font-size: clamp(1.8rem, 1.5rem + 1vw, 2.3rem); font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sum__total small { color: var(--text-3); font-weight: 700; }
.sum__bill { margin: 0; color: var(--host-ink); font-size: .82rem; font-weight: 700; }
.sum .btn { margin-top: 1.2rem; }
.sum__note { margin: .8rem 0 0; color: var(--text-3); font-size: .8rem; text-align: center; }
@media (max-width: 960px) { .builder { grid-template-columns: minmax(0, 1fr); } .sum { position: relative; top: 0; } }

.compare { margin-top: clamp(4rem, 8vw, 7rem); scroll-margin-top: calc(var(--hdr) + 1rem); }
.compare .h2 { margin-bottom: 1.5rem; }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .92rem; }
.cmp th, .cmp td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); text-align: center; font-variant-numeric: tabular-nums; }
.cmp thead th { padding-block: 1.1rem; font-size: 1.05rem; font-weight: 900; }
.cmp tbody th { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--surface); color: var(--text-2); font-weight: 700; text-align: start; }
.cmp .is-hot { background: var(--host-soft); }
.cmp thead .is-hot { color: var(--host-ink); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; color: var(--text); font-weight: 850; }
.cmp .i { display: block; margin-inline: auto; }
.cmp .ok { color: var(--ok); }
.cmp .no { color: var(--text-3); opacity: .6; }

.vip-lead { max-width: 46rem; margin: 0 0 2.2rem; color: var(--text-2); font-size: 1.08rem; }
.plan--vip .plan__name { font-size: 1.35rem; }
.medal { flex: none; width: 1rem; height: 1rem; border-radius: 3px; background: var(--medal); box-shadow: 0 0 14px var(--medal); transform: rotate(45deg); }
.medal--bronze { --medal: #CD7F45; }
.medal--silver { --medal: #B9C3D6; }
.medal--gold { --medal: #F5C04A; }
.medal--legend { --medal: var(--play); }
.note { display: flex; align-items: center; gap: .65rem; margin: 1.8rem 0 0; padding: 1rem 1.1rem; border-radius: 10px; background: var(--play-soft); font-weight: 650; }
.note .i { color: var(--play); }

.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.promises li { display: flex; align-items: flex-start; gap: 1rem; }
.promises h3 { margin: 0 0 .2rem; font-size: 1.05rem; font-weight: 850; }
.promises p { margin: 0; color: var(--text-2); font-size: .92rem; }
@media (max-width: 860px) { .promises { grid-template-columns: minmax(0, 1fr); } }

.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq__head .lead { margin-top: 1rem; }
.faq__head .lead a { color: var(--host-ink); font-weight: 800; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0;
  font-size: 1.05rem; font-weight: 800; line-height: 1.6; list-style: none; cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .i { color: var(--text-2); transition: transform .4s var(--spring), color .2s; }
.faq__item summary:hover .i { color: var(--text); }
.faq__item[open] summary .i { transform: rotate(45deg); color: var(--host-ink); }
.faq__a p { max-width: 62ch; margin: 0 0 1.25rem; color: var(--text-2); }
@supports (interpolate-size: allow-keywords) {
  .faq__list { interpolate-size: allow-keywords; }
  .faq__item::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
  .faq__item[open]::details-content { height: auto; }
}
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   ABOUT
   ===================================================================== */
.manifesto-sec { padding-block: clamp(4rem, 9vw, 8rem); }
.manifesto { max-width: 30ch; margin: 0; font-size: clamp(1.55rem, 1rem + 2.4vw, 3rem); font-weight: 850; line-height: 1.7; }
html[lang="en"] .manifesto { max-width: 26ch; line-height: 1.22; letter-spacing: -.025em; }
.manifesto .w { color: var(--text-3); opacity: .38; transition: opacity .35s, color .35s; }
.manifesto .w.is-lit { color: var(--text); opacity: 1; }

.story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.story__head { position: sticky; top: calc(var(--hdr) + 2rem); }
.story__head .lead { margin-top: 1rem; }
.tl { position: relative; margin: 0; padding: 0; padding-inline-start: 2.1rem; list-style: none; }
.tl::before, .tl::after { content: ""; position: absolute; top: .7rem; inset-inline-start: 5px; width: 2px; }
.tl::before { bottom: .7rem; background: var(--line); }
.tl::after { height: calc((100% - 1.4rem) * var(--tl, 0)); background: linear-gradient(var(--host), var(--play)); }
.tl__item { position: relative; padding-bottom: 2.5rem; }
.tl__item:last-child { padding-bottom: 0; }
.tl__item::before {
  content: ""; position: absolute; top: .65rem; inset-inline-start: calc(-2.1rem + 1px); width: 10px; height: 10px;
  border: 2px solid var(--line-2); background: var(--bg); transform: rotate(45deg); transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.tl__item.is-in::before { border-color: var(--host); background: var(--host); box-shadow: 0 0 14px var(--host-glow); }
.tl__item:last-child.is-in::before { border-color: var(--play); background: var(--play); box-shadow: 0 0 14px var(--play-glow); }
.tl__year { margin: 0; color: var(--host-ink); font-size: .92rem; font-weight: 850; }
.tl__item h3 { margin: .2rem 0 .4rem; font-size: 1.3rem; font-weight: 850; }
.tl__item p { max-width: 46ch; margin: 0; color: var(--text-2); }
@media (max-width: 900px) { .story { grid-template-columns: minmax(0, 1fr); } .story__head { position: static; } }

.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.value { padding: clamp(1.5rem, 3vw, 2.6rem); background: var(--bg); }
.value .i { width: 2rem; height: 2rem; color: var(--team); }
.value h3 { margin: 1rem 0 .5rem; font-size: clamp(1.4rem, 1.15rem + .9vw, 2rem); font-weight: 900; }
.value p { max-width: 42ch; margin: 0; color: var(--text-2); }
@media (max-width: 700px) { .values { grid-template-columns: minmax(0, 1fr); } }

.sec--team { background: var(--bg-2); }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.member {
  --tilt-x: 0deg; --tilt-y: 0deg;
  padding: 1.4rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transition: transform .5s var(--ease), border-color .25s;
}
.member:hover { border-color: var(--team); }
.member__av {
  --cut: 10px; display: grid; place-items: center; width: 4rem; height: 4rem; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--team), color-mix(in srgb, var(--team) 35%, var(--bg)));
  color: var(--on-team); font-size: 1.2rem; font-weight: 900; direction: ltr;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.member__name { margin: 0; font-size: 1.15rem; font-weight: 850; }
.member__role { margin: .1rem 0 .8rem; color: var(--team-ink); font-size: .92rem; font-weight: 700; }
.member__meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: 0; color: var(--text-3); font-size: .82rem; }
.member__tag { font-family: var(--mono); }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .team { grid-template-columns: minmax(0, 1fr); } }

.join { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; align-items: center; gap: 2rem; padding: clamp(1.75rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.join .h2 { margin: 0 0 .6rem; }
.join .lead { margin: 0; }
.join__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
@media (max-width: 800px) { .join { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   CONTACT
   ===================================================================== */
.sec--contact { padding-top: clamp(2rem, 4vw, 3rem); }
.contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.contact__form { padding: clamp(1.4rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.contact__form > .h3 { margin: 0 0 1.5rem; }
.form { display: grid; gap: 1.4rem; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.input {
  width: 100%; min-height: 50px; padding: .65rem 1rem; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--bg); color: var(--text); font: 500 1rem/1.5 var(--font); transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--text-3); opacity: .8; }
.input:hover { border-color: color-mix(in srgb, var(--host) 45%, var(--line-2)); }
.input:focus { outline: none; border-color: var(--host); box-shadow: 0 0 0 3px var(--host-soft); }
.input--area { min-height: 9.5rem; resize: vertical; line-height: 1.8; }
.field.is-invalid .input { border-color: var(--bad); }
.field.is-invalid .input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 22%, transparent); }
.field__err { display: flex; align-items: center; gap: .4rem; margin: 0; color: var(--bad); font-size: .86rem; font-weight: 700; line-height: 1.6; }
.field__err::before { content: "!"; display: grid; place-items: center; flex: none; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--bad); color: var(--bg); font-size: .75rem; font-weight: 900; }
.field__hint { margin: 0; color: var(--text-3); font-size: .84rem; line-height: 1.6; }
.field__opt { color: var(--text-3); font-size: .85em; font-weight: 500; }
.field__count { color: var(--text-3); font-size: .8rem; font-variant-numeric: tabular-nums; }
.field__count.is-near { color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1rem;
  border: 1px solid var(--line-2); border-radius: 10px; color: var(--text-2); font-size: .92rem; font-weight: 700; cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip:hover { border-color: var(--host); color: var(--text); }
.chip:has(input:checked) { border-color: var(--host); background: var(--host); color: var(--on-host); animation: pop .4s var(--spring); }
.chip:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.field.is-invalid .chip { border-color: color-mix(in srgb, var(--bad) 55%, var(--line-2)); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__note { margin: 0; color: var(--text-3); font-size: .84rem; }
.sent { display: grid; justify-items: center; gap: .6rem; padding: 2.5rem 0; text-align: center; }
.sent:focus { outline: none; }
.sent__check { width: 76px; height: 76px; }
.sent__check circle { fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s var(--ease) forwards; }
.sent__check path { fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .45s var(--ease) .55s forwards; }
.sent h3 { margin: .5rem 0 0; font-size: 1.5rem; font-weight: 900; }
.sent p { margin: 0; color: var(--text-2); }
@media (max-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .form__grid { grid-template-columns: minmax(0, 1fr); } }

.contact__side > .h3 { margin: 0 0 1rem; }
.channels { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.channel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.channel > .i { width: 2.5rem; height: 2.5rem; padding: .58rem; border-radius: 10px; background: var(--surface-2); color: var(--team-ink); }
.channel h3 { margin: 0; font-size: .98rem; font-weight: 850; line-height: 1.5; }
.channel p { margin: 0; color: var(--text-2); font-size: .86rem; overflow-wrap: anywhere; }
.channel p a { color: inherit; }
.channel__note { color: var(--text-3); font-size: .8rem; font-weight: 700; }
.hours { display: grid; margin: 1.5rem 0 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.hours dt { color: var(--text-2); }
.hours dd { margin: 0; font-weight: 750; text-align: end; }

/* =====================================================================
   REVEAL (only armed once JS adds .reveal-ready, so nothing is ever
   stuck invisible if the script fails)
   ===================================================================== */
.reveal-ready [data-reveal] { transition: opacity .7s var(--ease), translate .8s var(--ease), clip-path .9s var(--ease-io); }
.reveal-ready [data-reveal]:not(.is-in) { opacity: 0; translate: 0 14px; }
/* data panels "boot" with a top-down wipe instead of fading */
.reveal-ready :is(.hud, .pm)[data-reveal] { opacity: 1; translate: none; clip-path: inset(0 0 0 0 round 6px); }
/* a 3px scanline stays visible: it reads as the panel booting, and keeps IntersectionObserver able to see it */
.reveal-ready :is(.hud, .pm)[data-reveal]:not(.is-in) { opacity: 1; translate: none; clip-path: inset(0 0 calc(100% - 3px) 0 round 6px); }
.reveal-ready :is(.hud, .pm)[data-reveal].is-in { clip-path: inset(-60px -60px -60px -60px); }
/* lists stagger their children rather than moving as one block */
.reveal-ready :is(ul, ol, dl)[data-reveal]:not(.is-in) { opacity: 1; translate: none; }
.reveal-ready :is(ul, ol, dl)[data-reveal] > * { transition: opacity .6s var(--ease), translate .7s var(--ease); transition-delay: calc(var(--i, 0) * 65ms); }
.reveal-ready :is(ul, ol, dl)[data-reveal]:not(.is-in) > * { opacity: 0; translate: 0 16px; }

/* =====================================================================
   SHARED KEYFRAMES
   ===================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pop { 40% { scale: 1.06; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); }
  80%, 100% { box-shadow: 0 0 0 9px transparent; }
}
@keyframes ping-play {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--play) 60%, transparent); }
  80%, 100% { box-shadow: 0 0 0 9px transparent; }
}

/* Konami easter egg */
html.cheat body { animation: cheat 1.2s linear infinite; }
@keyframes cheat { to { filter: hue-rotate(360deg); } }

/* =====================================================================
   VIEW TRANSITIONS
   - between pages: a diagonal wipe (the brand seam) in supporting browsers
   - theme switch: circle grows from the toggle
   - language switch: quick crossfade
   ===================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-dim .45s ease both; }
::view-transition-new(root) { animation: vt-wipe .6s var(--ease-io) both; }
html[dir="rtl"]::view-transition-new(root) { animation-name: vt-wipe-rtl; }
@keyframes vt-dim { to { opacity: .35; } }
@keyframes vt-wipe { from { clip-path: polygon(0 0, 0 0, -15% 100%, 0 100%); } to { clip-path: polygon(0 0, 115% 0, 100% 100%, 0 100%); } }
@keyframes vt-wipe-rtl { from { clip-path: polygon(100% 0, 100% 0, 115% 100%, 100% 100%); } to { clip-path: polygon(100% 0, -15% 0, 0 100%, 100% 100%); } }

html.vt-theme .hdr, html.vt-lang .hdr { view-transition-name: none; }
html.vt-theme::view-transition-old(root) { animation: none; }
html.vt-theme::view-transition-new(root) { animation: vt-circle .65s var(--ease-io) both; }
@keyframes vt-circle {
  from { clip-path: circle(0 at var(--vt-x, 90%) var(--vt-y, 36px)); }
  to { clip-path: circle(var(--vt-r, 150%) at var(--vt-x, 90%) var(--vt-y, 36px)); }
}
html.vt-lang::view-transition-old(root) { animation: vt-out .22s ease both; }
html.vt-lang::view-transition-new(root) { animation: vt-in .32s ease .05s both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* =====================================================================
   EFFECTS OFF + REDUCED MOTION
   ===================================================================== */
[data-fx="off"] :is(.hero__lines, .plan--hot, .live-pill i, .status-chip i, .ping__label i, .family__live i) { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .hero__lines, .plan--hot { animation: none !important; }
}
