/* Mystic Play Hall — design system.
   Cascade layers, oklch colour, native nesting, container queries, :has(),
   popover, exclusive <details>, scroll-driven reveals and cross-document view transitions. */

@layer reset, tokens, base, layout, components, pages, utilities;

@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@view-transition { navigation: auto; }

/* ============================== reset ============================== */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; interpolate-size: allow-keywords; scroll-padding-top: 96px; }
  body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  img, svg, canvas { display: block; max-width: 100%; }
  input, button, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  table { border-collapse: collapse; width: 100%; }
}

/* ============================== tokens ============================== */
@layer tokens {
  :root {
    --ink: oklch(0.13 0.012 205);          /* page black */
    --ink-2: oklch(0.17 0.018 205);        /* raised surface */
    --ink-3: oklch(0.21 0.025 200);        /* card surface */
    --line: oklch(0.30 0.04 195);
    --line-soft: oklch(0.24 0.03 198);
    --text: oklch(0.97 0.015 190);
    --muted: oklch(0.83 0.03 190);
    --dim: oklch(0.68 0.035 192);
    --neon: oklch(0.87 0.16 182);           /* electric turquoise */
    --neon-hi: oklch(0.95 0.08 185);
    --neon-lo: oklch(0.68 0.13 200);
    --neon-a: oklch(0.87 0.16 182 / 0.14);
    --danger: oklch(0.78 0.13 25);
    --grad: linear-gradient(135deg, oklch(0.97 0.05 185), oklch(0.88 0.17 180) 30%, oklch(0.80 0.15 195) 62%, oklch(0.93 0.10 182));
    --grad-text: linear-gradient(100deg, oklch(0.99 0.02 185), oklch(0.90 0.16 182) 40%, oklch(0.82 0.15 192) 70%, oklch(0.95 0.08 185));
    --glow-sm: 0 0 10px oklch(0.87 0.16 182 / .45), 0 0 24px oklch(0.87 0.16 182 / .2);
    --glow: 0 0 18px oklch(0.87 0.16 182 / .55), 0 0 50px oklch(0.87 0.16 182 / .25), 0 0 100px oklch(0.87 0.16 182 / .12);
    --r: 22px;
    --r-sm: 14px;
    --gap: clamp(12px, 1.6vw, 18px);
    --pad: clamp(18px, 2.6vw, 30px);
    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 32px);
    --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --fs-hero: clamp(2.7rem, 7vw, 5.6rem);
    --fs-h1: clamp(2.2rem, 5vw, 3.8rem);
    --fs-h2: clamp(1.7rem, 3.4vw, 2.6rem);
  }
}

/* ============================== base ============================== */
@layer base {
  body {
    min-height: 100dvh; background: var(--ink); color: var(--text);
    font: 400 16px/1.65 var(--sans); font-feature-settings: "tnum" 1;
    -webkit-font-smoothing: antialiased;
    background-image:
      radial-gradient(ellipse 60% 45% at 85% -10%, oklch(0.45 0.10 190 / .35), transparent 70%),
      radial-gradient(ellipse 50% 40% at -10% 30%, oklch(0.40 0.09 200 / .22), transparent 70%),
      radial-gradient(ellipse 70% 50% at 50% 115%, oklch(0.40 0.10 185 / .25), transparent 70%);
    background-attachment: fixed;
  }
  h1, h2, h3 { line-height: 1.05; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
  p, li { text-wrap: pretty; }
  ::selection { background: var(--neon); color: var(--ink); }
  :focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 6px; }
  .skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--neon); color: var(--ink); font-weight: 800; translate: 0 -200%; }
  .skip:focus { translate: 0 0; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  code { font-family: var(--mono); color: var(--neon-hi); }
}

/* ============================== layout ============================== */
@layer layout {
  .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
  main { display: grid; gap: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
  main:focus { outline: none; }
  .sect { display: grid; gap: clamp(18px, 3vw, 28px); }
  .sect__head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; }
  .sect__head h2 { font-size: var(--fs-h2); }
  .sect__head p { max-width: 46ch; color: var(--muted); }
  .phead { display: grid; gap: 14px; padding-top: clamp(40px, 6vw, 72px); }
  .phead h1 { font-size: var(--fs-h1); max-width: 18ch; }
  .phead__lede { max-width: 62ch; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.12rem); }
}

/* ============================== components ============================== */
@layer components {
  /* starfield */
  .sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
  .sky i { position: absolute; inset: -40%; animation: twinkle 6s ease-in-out infinite; }
  .sky i:nth-child(1) { background-image: radial-gradient(1.2px 1.2px at 20px 30px, oklch(0.95 0.08 185), transparent), radial-gradient(1px 1px at 140px 90px, var(--neon), transparent), radial-gradient(1.4px 1.4px at 90px 170px, #fff, transparent); background-size: 230px 230px; }
  .sky i:nth-child(2) { background-image: radial-gradient(1px 1px at 60px 60px, var(--neon), transparent), radial-gradient(1.6px 1.6px at 200px 30px, oklch(0.95 0.08 185), transparent); background-size: 320px 320px; animation-delay: -2s; animation-duration: 7.5s; }
  .sky i:nth-child(3) { background-image: radial-gradient(2px 2px at 120px 200px, oklch(0.9 0.12 182), transparent); background-size: 440px 440px; animation: drift 14s linear infinite; }
  @keyframes twinkle { 50% { opacity: .35; } }
  @keyframes drift { from { translate: 0 0; opacity: .8; } to { translate: 0 -80px; opacity: .3; } }

  .glitter { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

  /* typography atoms */
  .kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--neon); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 0 12px oklch(0.87 0.16 182 / .5); }
  .kicker::before { content: ""; width: 28px; height: 1px; background: var(--neon); box-shadow: var(--glow-sm); }
  .glow { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 16px oklch(0.87 0.16 182 / .45)) drop-shadow(0 0 42px oklch(0.87 0.16 182 / .2)); }
  .pill { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: oklch(0.17 0.03 200 / .8); color: var(--neon-hi); font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 0 16px oklch(0.87 0.16 182 / .12); }
  .pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); animation: ping 2.4s ease-out infinite; }
  @keyframes ping { 0% { box-shadow: 0 0 0 0 oklch(0.87 0.16 182 / .8); } 70%, 100% { box-shadow: 0 0 0 10px oklch(0.87 0.16 182 / 0); } }
  .chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; background: oklch(0.15 0.02 200 / .7); }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }

  /* buttons */
  .btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--line); font-weight: 800; font-size: 15px; transition: box-shadow .25s, filter .25s, background .25s, color .25s; }
  .btn--neon { border-color: oklch(0.95 0.08 185 / .5); background: var(--grad); color: var(--ink); box-shadow: inset 0 1px 0 #ffffff80, var(--glow-sm); }
  .btn--neon::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, #ffffffb0, transparent); animation: shine 3.8s ease-in-out infinite; }
  @keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
  .btn--neon:hover { filter: brightness(1.08) saturate(1.1); box-shadow: inset 0 1px 0 #ffffffa0, var(--glow); }
  .btn--ghost { background: oklch(0.17 0.03 200 / .6); color: var(--neon-hi); }
  .btn--ghost:hover { border-color: var(--neon); box-shadow: var(--glow-sm); }
  .btn--sm { min-height: 42px; padding: 0 16px; font-size: 13.5px; border-radius: 12px; }
  .btn--block { width: 100%; justify-content: space-between; }
  .link { color: var(--neon-hi); font-weight: 700; text-decoration: underline; text-decoration-color: oklch(0.87 0.16 182 / .45); text-underline-offset: 5px; }
  .link:hover { text-decoration-color: var(--neon); }

  /* header */
  .hdr { position: sticky; top: 0; z-index: 50; view-transition-name: hdr; background: oklch(0.13 0.012 205 / .72); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); border-bottom: 1px solid var(--line-soft); }
  .hdr__in { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; display: flex; align-items: center; gap: 20px; min-height: 72px; }
  .brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
  .brand__mark { width: 40px; height: 40px; filter: drop-shadow(0 0 10px oklch(0.87 0.16 182 / .6)); }
  .brand__word { display: grid; font-size: 20px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
  .brand__word span { margin-top: 4px; color: var(--neon); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; text-shadow: var(--glow-sm); }
  .hdr__nav { display: flex; gap: 4px; }
  .hdr__nav a { padding: 9px 13px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 700; transition: color .2s, background .2s; }
  .hdr__nav a:hover { color: var(--neon-hi); background: oklch(0.2 0.03 200); }
  .hdr__nav a[aria-current] { color: var(--neon-hi); background: oklch(0.2 0.04 195); box-shadow: inset 0 0 0 1px var(--line); text-shadow: var(--glow-sm); }
  .hdr__end { display: flex; align-items: center; gap: 10px; }
  .age-badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--neon); color: var(--neon-hi); font-size: 11.5px; font-weight: 900; box-shadow: var(--glow-sm), inset 0 0 12px oklch(0.87 0.16 182 / .2); }
  .hdr__menu { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; place-content: center; gap: 6px; }
  .hdr__menu span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--neon-hi); }
  .menu { inset: 0 0 auto auto; margin: 0; width: min(88vw, 360px); height: 100dvh; padding: 88px 24px 24px; border: 0; border-left: 1px solid var(--line); background: oklch(0.14 0.02 205 / .96); backdrop-filter: blur(18px); color: var(--text); display: none; flex-direction: column; gap: 6px;
    transition: translate .35s var(--ease), opacity .35s, display .35s allow-discrete, overlay .35s allow-discrete; translate: 100% 0; opacity: 0; }
  .menu:popover-open { display: flex; translate: 0 0; opacity: 1; }
  @starting-style { .menu:popover-open { translate: 100% 0; opacity: 0; } }
  .menu::backdrop { background: oklch(0.05 0.01 205 / .6); backdrop-filter: blur(3px); }
  .menu > a:not(.btn) { padding: 14px 10px; border-bottom: 1px solid var(--line-soft); font-size: 18px; font-weight: 700; }
  .menu > a[aria-current] { color: var(--neon-hi); }
  .menu .btn { margin-top: 18px; }
  .menu__close { margin-top: auto; min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 700; }
  @media (max-width: 960px) { .hdr__nav, .hdr__cta { display: none; } .hdr__menu { display: grid; } }

  /* card + aurora border */
  .card { position: relative; isolation: isolate; container-type: inline-size; padding: var(--pad); border-radius: var(--r); border: 1px solid var(--line-soft); background: linear-gradient(160deg, oklch(0.19 0.03 198 / .92), oklch(0.14 0.015 205 / .92)); overflow: hidden; transition: border-color .3s, box-shadow .3s, translate .3s var(--ease); }
  .card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), oklch(0.87 0.16 182 / .14), transparent 45%); }
  .card:hover::after { opacity: 1; }
  a.card:hover, .card:has(a:hover) { border-color: oklch(0.87 0.16 182 / .55); box-shadow: 0 0 0 1px oklch(0.87 0.16 182 / .2), 0 0 40px oklch(0.87 0.16 182 / .12); }
  a.card:hover { translate: 0 -3px; }
  .aurora { border: 1px solid transparent; background:
      linear-gradient(160deg, oklch(0.18 0.03 198), oklch(0.13 0.015 205)) padding-box,
      conic-gradient(from var(--ang), var(--line-soft) 0deg 200deg, var(--neon) 250deg, #fff 270deg, var(--neon) 290deg, var(--line-soft) 340deg) border-box;
    animation: spin 7s linear infinite; box-shadow: 0 30px 80px oklch(0 0 0 / .5), 0 0 60px oklch(0.87 0.16 182 / .08); }
  @keyframes spin { to { --ang: 360deg; } }
  .card__k { color: var(--neon); font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
  .card h3 { margin-top: 10px; font-size: clamp(1.15rem, 5cqi, 1.6rem); }
  .card p { margin-top: 8px; color: var(--muted); font-size: .95rem; }
  .card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--neon-hi); font-weight: 800; font-size: 14px; }
  .card__go::after { content: "→"; transition: translate .2s; }
  .card:hover .card__go::after { translate: 4px 0; }
  .icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid oklch(0.87 0.16 182 / .6); color: var(--neon-hi); box-shadow: var(--glow-sm); background: radial-gradient(circle at 30% 25%, oklch(0.87 0.16 182 / .2), transparent 70%); }
  .icon svg { width: 22px; height: 22px; }

  /* bento */
  .bento { display: grid; gap: var(--gap); grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(170px, auto); }
  .bento > .span-2 { grid-column: span 2; }
  .bento > .tall { grid-row: span 2; }
  @media (max-width: 980px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 600px) { .bento { grid-template-columns: minmax(0, 1fr); } .bento > .span-2 { grid-column: auto; } .bento > .tall { grid-row: auto; } }

  /* waitlist form */
  .wl { position: relative; display: grid; gap: 10px; width: 100%; }
  .wl__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
  .wl__row { display: flex; gap: 6px; padding: 6px; border-radius: 16px; border: 1px solid var(--line); background: oklch(0.11 0.012 205 / .85); transition: border-color .2s, box-shadow .2s; }
  .wl__row:focus-within { border-color: var(--neon); box-shadow: 0 0 0 4px oklch(0.87 0.16 182 / .16), var(--glow-sm); }
  .wl:has(:user-invalid) .wl__row { border-color: var(--danger); }
  .wl__input { flex: 1; min-width: 0; min-height: 50px; padding: 0 14px; border: 0; background: transparent; color: var(--text); font-size: 16px; }
  .wl__input::placeholder { color: var(--dim); }
  .wl__input:focus { outline: none; }
  .wl__btn { position: relative; overflow: hidden; flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px; border-radius: 12px; border: 1px solid oklch(0.95 0.08 185 / .5); background: var(--grad); color: var(--ink); font-weight: 800; font-size: 14.5px; box-shadow: inset 0 1px 0 #ffffff80, var(--glow-sm); }
  .wl__btn:hover { filter: brightness(1.08); box-shadow: var(--glow); }
  .wl__fine { color: var(--dim); font-size: 12.5px; }
  .wl__fine a, .wl__share-routes a { color: var(--neon-hi); text-decoration: underline; text-underline-offset: 3px; }
  .wl__error { color: var(--danger); font-size: 13.5px; }
  .wl__invited { color: var(--neon-hi); font-size: 13.5px; }
  .wl--stacked .wl__row { flex-direction: column; padding: 0; border: 0; background: none; }
  .wl--stacked .wl__row:focus-within { box-shadow: none; }
  .wl--stacked .wl__input { border: 1px solid var(--line); border-radius: 12px; background: oklch(0.11 0.012 205); }
  .wl--stacked .wl__input:focus { border-color: var(--neon); box-shadow: 0 0 0 4px oklch(0.87 0.16 182 / .16); }
  .wl--stacked .wl__btn { justify-content: center; }
  @container (max-width: 460px) { .wl--inline .wl__row { flex-direction: column; } .wl--inline .wl__btn { justify-content: center; } }
  .wl-host { container-type: inline-size; }
  .wl--done { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; border: 1px solid oklch(0.87 0.16 182 / .45); background: linear-gradient(135deg, oklch(0.24 0.06 190), oklch(0.14 0.02 205)); box-shadow: var(--glow-sm); }
  .wl--done:focus { outline: none; }
  .wl__seal { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: var(--ink); box-shadow: var(--glow-sm); }
  .wl__seal svg { width: 20px; height: 20px; }
  .wl__done-title { color: var(--neon-hi); font-weight: 800; font-size: 17px; }
  .wl__done-body { margin-top: 3px; color: var(--muted); font-size: 14px; }
  .wl--rich { display: grid; gap: 12px; }
  .wl__rank { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
  .wl__rank-label { color: var(--neon); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
  .wl__rank-num { font-size: clamp(2.8rem, 12cqi, 4.2rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 16px oklch(0.87 0.16 182 / .5)); }
  .wl__rank-of { color: var(--dim); font-size: 13.5px; }
  .wl__share { display: grid; gap: 8px; }
  .wl__share-label { color: var(--muted); font-size: 13px; font-weight: 700; }
  .wl__share-row { display: flex; gap: 8px; }
  .wl__share-input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: oklch(0.1 0.01 205); color: var(--neon-hi); font: 600 13.5px var(--mono); }
  .wl__copy { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--neon); background: transparent; color: var(--neon-hi); font-weight: 800; box-shadow: var(--glow-sm); }
  .wl__copy:hover { background: var(--neon); color: var(--ink); }
  .wl__share-routes { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; font-weight: 700; }
  .wl-profile { display: grid; gap: 12px; padding: 16px; border-radius: 14px; border: 1px dashed var(--line); background: oklch(0.11 0.012 205 / .7); }
  .wl-profile__title { font-weight: 800; }
  .wl-profile__title span { margin-left: 8px; color: var(--dim); font-size: 12.5px; font-weight: 600; }
  .wl-profile__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
  .wl-profile__btn { justify-self: start; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid oklch(0.95 0.08 185 / .5); background: var(--grad); color: var(--ink); font-weight: 800; }
  @container (max-width: 420px) { .wl__share-row { flex-direction: column; } .wl-profile__btn { justify-self: stretch; } }

  /* shared form fields */
  .field { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
  .field :is(input, select, textarea), .wl-profile :is(input, select) { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: oklch(0.11 0.012 205); color: var(--text); font-size: 15px; font-weight: 500; }
  .field textarea { min-height: 110px; resize: vertical; field-sizing: content; }
  .field :is(input, select, textarea):focus, .wl-profile :is(input, select):focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px oklch(0.87 0.16 182 / .16); }
  .field :user-invalid { border-color: var(--danger); }

  /* exclusive accordion */
  .acc { display: grid; }
  .acc details { border-bottom: 1px solid var(--line-soft); }
  .acc details:first-child { border-top: 1px solid var(--line-soft); }
  .acc summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 16px 0; list-style: none; cursor: pointer; font-weight: 700; font-size: 1.02rem; }
  .acc summary::-webkit-details-marker { display: none; }
  .acc summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); color: var(--neon); font-size: 18px; transition: rotate .3s var(--ease); }
  .acc details[open] summary::after { rotate: 45deg; box-shadow: var(--glow-sm); }
  .acc summary:hover { color: var(--neon-hi); }
  .acc details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
  .acc details[open]::details-content { block-size: auto; }
  .acc details p { padding: 0 44px 18px 0; color: var(--muted); }

  /* table */
  .tbl th, .tbl td { padding: 13px 10px; border-bottom: 1px solid var(--line-soft); text-align: center; font-size: 14.5px; }
  .tbl thead th { color: var(--dim); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
  .tbl th[scope="row"], .tbl thead th:first-child { text-align: left; padding-left: 0; font-weight: 600; }
  .tbl .hl { background: oklch(0.87 0.16 182 / .06); color: var(--neon-hi); }
  .yes { color: var(--neon); text-shadow: var(--glow-sm); font-weight: 800; }
  .no { color: var(--dim); }

  /* sticky mobile CTA */
  .dock { display: none; }
  @media (max-width: 760px) { .dock { position: fixed; z-index: 40; inset: auto 12px max(12px, env(safe-area-inset-bottom)) 12px; display: flex; justify-content: space-between; align-items: center; min-height: 54px; padding: 0 20px; border-radius: 16px; background: var(--grad); color: var(--ink); font-weight: 800; box-shadow: var(--glow), 0 12px 30px oklch(0 0 0 / .6); } body:has(.dock) .ftr { padding-bottom: 80px; } }

  /* footer */
  .ftr { border-top: 1px solid var(--line-soft); background: linear-gradient(180deg, oklch(0.14 0.02 200 / .5), var(--ink)); }
  .ftr__in { display: grid; gap: 28px; padding-block: 44px 28px; }
  .ftr__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 32px; }
  .ftr__brand p { margin-top: 14px; max-width: 42ch; color: var(--muted); font-size: 14.5px; }
  .ftr__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .ftr__cols div { display: grid; align-content: start; gap: 8px; }
  .ftr__cols p { color: var(--neon); font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 4px; }
  .ftr__cols a { color: var(--muted); font-size: 14.5px; }
  .ftr__cols a:hover { color: var(--neon-hi); }
  .ftr__base { color: var(--dim); font-size: 12.5px; }
  @media (max-width: 820px) { .ftr__top { grid-template-columns: minmax(0, 1fr); } }
  @media (max-width: 480px) { .ftr__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

  /* compliance strip */
  .legal-strip { display: grid; gap: 14px; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); background: oklch(0.12 0.015 205 / .8); }
  .legal-strip__age { display: flex; gap: 16px; align-items: center; }
  .legal-strip__badge { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--neon); color: var(--neon-hi); font-weight: 900; box-shadow: var(--glow-sm); }
  .legal-strip__age p { color: var(--muted); font-size: 13.5px; }
  .legal-strip a { color: var(--neon-hi); text-decoration: underline; text-underline-offset: 3px; }
  .legal-strip__operator { color: var(--dim); font-size: 12.5px; }
  .legal-strip__links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13.5px; font-weight: 700; }
}

/* ============================== pages ============================== */
@layer pages {
  /* hero (home + premium) */
  .hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(24px, 5vw, 64px); padding-top: clamp(36px, 6vw, 72px); }
  .hero > :not(.glitter) { position: relative; }
  .hero__copy { display: grid; gap: 22px; }
  .hero__title { font-size: var(--fs-hero); line-height: .96; letter-spacing: -.055em; }
  .hero__lede { max-width: 52ch; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.15rem); }
  .hero__form { max-width: 560px; }
  .hero__facts { display: flex; flex-wrap: wrap; gap: 8px; }
  @media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero .orb { width: min(300px, 76%); } .hero .mcard { width: min(330px, 86%); } .orb__tag { font-size: 12px; padding: 6px 11px; } .orb__tag--b { right: -10%; } }

  /* orb visual */
  .orb { position: relative; aspect-ratio: 1; width: min(420px, 100%); margin-inline: auto; display: grid; place-items: center; }
  .orb__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid oklch(0.87 0.16 182 / .35); animation: orbit 30s linear infinite; }
  .orb__ring:nth-child(2) { inset: 13%; border-style: dashed; animation-duration: 45s; animation-direction: reverse; }
  .orb__ring:nth-child(3) { inset: 27%; border-color: oklch(0.87 0.16 182 / .6); box-shadow: var(--glow), inset 0 0 40px oklch(0.87 0.16 182 / .25); }
  .orb__ring::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--neon); box-shadow: var(--glow); }
  @keyframes orbit { to { rotate: 360deg; } }
  .orb__core { width: 34%; filter: drop-shadow(0 0 24px oklch(0.87 0.16 182 / .8)); animation: float 6s ease-in-out infinite; }
  @keyframes float { 50% { translate: 0 -10px; } }
  .orb__tag { position: absolute; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: oklch(0.15 0.025 200 / .85); backdrop-filter: blur(8px); font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 10px 30px oklch(0 0 0 / .4); }
  .orb__tag b { color: var(--neon-hi); text-shadow: var(--glow-sm); }
  .orb__tag--a { top: 8%; left: -4%; } .orb__tag--b { top: 46%; right: -6%; } .orb__tag--c { bottom: 6%; left: 8%; }

  /* member card */
  .mcard { position: relative; width: min(420px, 100%); aspect-ratio: 1.586; margin-inline: auto; display: flex; flex-direction: column; padding: 24px 26px; border-radius: 22px; rotate: -5deg; transform: perspective(1000px) rotateY(-12deg) rotateX(6deg); animation: spin 7s linear infinite, float 7s ease-in-out infinite; }
  .mcard::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(135deg, #ffffff05 0 2px, transparent 2px 6px); pointer-events: none; }
  .mcard__top { display: flex; justify-content: space-between; align-items: center; }
  .mcard__top img { width: 38px; }
  .mcard__top span { font-size: 12.5px; font-weight: 800; letter-spacing: .34em; color: var(--neon-hi); text-shadow: var(--glow-sm); }
  .mcard__chip { width: 48px; height: 36px; margin-top: auto; border-radius: 8px; background: linear-gradient(90deg, transparent 32%, #0004 33% 35%, transparent 36% 64%, #0004 65% 67%, transparent 68%), var(--grad); box-shadow: var(--glow-sm); }
  .mcard__name { margin-top: 16px; font-size: clamp(18px, 2.2vw, 24px); font-weight: 800; letter-spacing: -.02em; }
  .mcard__foot { display: flex; justify-content: space-between; margin-top: 8px; color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

  /* steps strip */
  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: s; }
  .steps li { counter-increment: s; display: grid; gap: 6px; padding: 18px 18px 20px; border-radius: var(--r-sm); border: 1px solid var(--line-soft); background: oklch(0.15 0.02 202 / .8); }
  .steps li::before { content: counter(s, decimal-leading-zero); color: var(--neon); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-shadow: var(--glow-sm); }
  .steps b { font-size: 1.02rem; }
  .steps p { color: var(--muted); font-size: .92rem; }
  @media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 480px) { .steps { grid-template-columns: minmax(0, 1fr); } }

  /* home bento tiles */
  .tile-method { display: grid; align-content: space-between; gap: 18px; }
  .pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pillars li { padding: 14px; border-radius: 14px; border: 1px solid var(--line-soft); background: oklch(0.12 0.015 205 / .6); }
  .pillars b { display: block; color: var(--neon-hi); }
  .pillars span { color: var(--dim); font-size: 13px; }
  @container (max-width: 380px) { .pillars { grid-template-columns: minmax(0, 1fr); } }
  .price { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; font-size: clamp(2.4rem, 16cqi, 3.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
  .price span { font-size: 13px; letter-spacing: .12em; color: var(--dim); -webkit-text-fill-color: var(--dim); }
  .games { margin-top: 14px; }

  /* premium */
  .inc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
  .inc .card { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start; padding: 22px; }
  .inc .icon { grid-row: span 2; }
  .inc h3 { margin: 2px 0 0; font-size: 1.05rem; letter-spacing: -.01em; }
  .inc p { margin: 0; font-size: .9rem; }
  @media (max-width: 980px) { .inc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 620px) { .inc { grid-template-columns: minmax(0, 1fr); } }
  .who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
  @media (max-width: 860px) { .who { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(80%, 320px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; } .who > * { scroll-snap-align: start; } }
  .session { display: grid; gap: 14px; }
  .session__bar { display: grid; grid-template-columns: 10fr 25fr 15fr 10fr; gap: 6px; }
  .session__bar li { container-type: inline-size; min-width: 0; padding: 14px 14px 16px; border-radius: 14px; border: 1px solid var(--line-soft); background: oklch(0.15 0.02 202 / .8); position: relative; overflow: hidden; }
  .session__bar li::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); box-shadow: var(--glow-sm); }
  .session__bar b { display: block; color: var(--neon-hi); font-size: 1.35rem; letter-spacing: -.03em; text-shadow: var(--glow-sm); }
  .session__bar span { display: block; font-weight: 700; font-size: .92rem; }
  .session__bar p { color: var(--dim); font-size: .85rem; }
  @container (max-width: 150px) { .session__bar p { display: none; } }
  @media (max-width: 700px) { .session__bar { grid-template-columns: 1fr 1fr; } }
  .offer { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--gap); align-items: start; }
  @media (max-width: 900px) { .offer { grid-template-columns: minmax(0, 1fr); } }
  .plan-card { display: grid; gap: 14px; position: sticky; top: 96px; }
  .plan-card ul { display: grid; gap: 9px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
  .plan-card li { position: relative; padding-left: 22px; color: var(--muted); font-size: .95rem; }
  .plan-card li::before { content: "✦"; position: absolute; left: 0; top: .25em; color: var(--neon); text-shadow: var(--glow-sm); font-size: 12px; }
  .plan-card small { color: var(--dim); font-size: 12.5px; }
  @media (max-width: 900px) { .plan-card { position: static; } }
  .close { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
  .close__cta { display: grid; gap: 16px; }
  .close__cta h2 { font-size: var(--fs-h2); }
  @media (max-width: 900px) { .close { grid-template-columns: minmax(0, 1fr); } }

  /* method */
  .pillar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
  .pillar-grid .card { display: grid; gap: 10px; align-content: start; }
  .pillar-grid .n { color: var(--neon); font-size: 2.4rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; text-shadow: var(--glow-sm); }
  @media (max-width: 980px) { .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 560px) { .pillar-grid { grid-template-columns: minmax(0, 1fr); } }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
  @media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }
  .ticks { display: grid; gap: 10px; margin-top: 14px; }
  .ticks li { position: relative; padding-left: 22px; color: var(--muted); }
  .ticks li::before { content: "✦"; position: absolute; left: 0; top: .25em; color: var(--neon); font-size: 11px; text-shadow: var(--glow-sm); }

  /* planner */
  .planner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--gap); align-items: start; }
  .planner form { display: grid; gap: 14px; position: sticky; top: 96px; }
  @media (max-width: 900px) { .planner { grid-template-columns: minmax(0, 1fr); } .planner form { position: static; } }
  .week { display: grid; gap: 10px; }
  .day { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-soft); background: oklch(0.15 0.02 202 / .8); }
  .day--rest { opacity: .55; }
  .day__name { font-weight: 800; }
  .day__blocks { display: flex; flex-wrap: wrap; gap: 6px; }
  .blk { padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--line); color: var(--muted); }
  .blk--focus { border-color: var(--neon); color: var(--neon-hi); box-shadow: var(--glow-sm); }
  .day__min { color: var(--neon-hi); font-weight: 800; font-variant-numeric: tabular-nums; }
  @media (max-width: 560px) { .day { grid-template-columns: minmax(0, 1fr) auto; } .day__blocks { grid-column: 1 / -1; grid-row: 2; } }
  .planner__empty { display: grid; place-items: center; min-height: 320px; text-align: center; color: var(--dim); }

  /* journal */
  .posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
  .posts .card { display: grid; align-content: start; gap: 6px; }
  .posts .meta { color: var(--dim); font-size: 12.5px; font-weight: 700; }
  @media (max-width: 900px) { .posts { grid-template-columns: minmax(0, 1fr); } }
  .article { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
  .article__body { display: grid; gap: 16px; font-size: 1.05rem; }
  .article__body h2 { margin-top: 14px; font-size: 1.5rem; }
  .article__body p, .article__body li { color: var(--muted); }
  .article__body ul, .article__body ol { display: grid; gap: 8px; padding-left: 22px; list-style: revert; }
  .article__body li::marker { color: var(--neon); }
  .article aside { position: sticky; top: 96px; }
  @media (max-width: 900px) { .article { grid-template-columns: minmax(0, 1fr); } .article aside { position: static; } }

  /* coach application */
  .apply { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .apply .full { grid-column: 1 / -1; }
  @media (max-width: 620px) { .apply { grid-template-columns: minmax(0, 1fr); } }

  /* legal documents */
  .doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
  .doc--single { grid-template-columns: minmax(0, 780px); }
  .doc__toc { position: sticky; top: 96px; padding: 18px; border-radius: 16px; border: 1px solid var(--line-soft); background: oklch(0.14 0.015 205 / .8); }
  .doc__toc p { color: var(--neon); font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
  .doc__toc a { display: block; padding: 4px 0; color: var(--muted); font-size: 14px; }
  .doc__toc a:hover { color: var(--neon-hi); }
  .doc__body { display: grid; gap: 26px; max-width: 76ch; }
  .doc__body h2 { font-size: 1.25rem; letter-spacing: -.015em; margin-bottom: 8px; }
  .doc__body p, .doc__body li { color: var(--muted); }
  .doc__body p + p { margin-top: 8px; }
  .doc__body ul { display: grid; gap: 6px; padding-left: 20px; list-style: disc; }
  .doc__body li::marker { color: var(--neon); }
  .doc__body a { color: var(--neon-hi); text-decoration: underline; text-underline-offset: 3px; }
  .doc__body b { color: var(--text); }
  @media (max-width: 860px) { .doc { grid-template-columns: minmax(0, 1fr); } .doc__toc { position: static; } }

  /* responsible gaming */
  .rg-notice { display: flex; gap: 20px; align-items: center; border-color: var(--neon); box-shadow: var(--glow-sm); }
  .rg-notice__badge { flex: none; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; border: 3px solid var(--neon); color: var(--neon-hi); font-size: 22px; font-weight: 900; box-shadow: var(--glow); }
  .rg-notice h2 { font-size: 1.3rem; }
  .rg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
  .rg-grid h2 { font-size: 1.1rem; color: var(--neon-hi); margin-bottom: 10px; }
  .rg-help { display: grid; gap: 8px; }
  .rg-help li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-soft); background: oklch(0.14 0.015 205 / .8); }
  .rg-help li > div:first-child { display: grid; gap: 2px; }
  .rg-help span { color: var(--dim); font-size: 13.5px; }
  .rg-help__act { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: flex-end; align-items: center; flex: none; font-weight: 700; font-size: 14px; color: var(--neon-hi); }
  .rg-help__tel { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--neon); box-shadow: var(--glow-sm); white-space: nowrap; }
  @media (max-width: 860px) { .rg-grid { grid-template-columns: minmax(0, 1fr); } .rg-help li, .rg-notice { flex-direction: column; align-items: flex-start; } .rg-help__act { justify-content: flex-start; } }

  /* 404 */
  .nf { display: grid; justify-items: center; gap: 16px; padding-top: 72px; text-align: center; }
  .nf__code { font-size: clamp(6rem, 22vw, 13rem); font-weight: 900; line-height: .9; letter-spacing: -.06em; }

  /* owner dashboard */
  .adm { display: grid; gap: var(--gap); padding-top: 40px; }
  .adm-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
  .adm-head h1 { font-size: var(--fs-h1); }
  .adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--gap); }
  .adm-kpis span { color: var(--dim); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
  .adm-kpis b { display: block; margin-top: 4px; font-size: 2.1rem; color: var(--neon-hi); text-shadow: var(--glow-sm); }
  .adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--gap); }
  .adm h2 { font-size: 1rem; letter-spacing: -.01em; margin-bottom: 12px; }
  .adm-bars { display: grid; gap: 8px; }
  .adm-bars li { display: grid; grid-template-columns: minmax(0, 1fr) 2fr auto; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
  .adm-bars i { position: relative; height: 8px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
  .adm-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); background: var(--grad); box-shadow: var(--glow-sm); }
  .adm-days { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; height: 150px; }
  .adm-days div { display: grid; grid-template-rows: 1fr auto auto; height: 100%; gap: 4px; text-align: center; }
  .adm-days i { align-self: end; height: max(3px, calc(var(--v) * 1%)); border-radius: 6px 6px 2px 2px; background: var(--grad); box-shadow: var(--glow-sm); }
  .adm-days b { font-size: 12px; } .adm-days span { color: var(--dim); font-size: 11px; }
  .adm-scroll { overflow-x: auto; }
  .adm-table th, .adm-table td { padding: 10px; border-bottom: 1px solid var(--line-soft); text-align: left; font-size: 13.5px; white-space: nowrap; }
  .adm-table th { color: var(--dim); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
  .adm-empty { color: var(--dim); }
  .adm-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
}

/* ============================== utilities ============================== */
@layer utilities {
  .muted { color: var(--muted); }
  .dim { color: var(--dim); }
  .center { text-align: center; justify-items: center; }
  .mt { margin-top: 14px; }

  /* scroll-driven reveal, CSS only; skipped where unsupported */
  @supports (animation-timeline: view()) {
    .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    @keyframes rv { from { opacity: 0; translate: 0 30px; scale: .98; } }
  }
  ::view-transition-old(root) { animation: .22s ease both vt-out; }
  ::view-transition-new(root) { animation: .32s var(--ease) both vt-in; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; translate: 0 10px; } }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    @view-transition { navigation: none; }
  }
}
