

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"); size-adjust: 108%; ascent-override: 92%; descent-override: 24%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; }

:root {
  color-scheme: dark;

  
  --ink-950: #040d10;
  --ink-900: #061418;
  --ink-850: #0a1e23;
  --ink-800: #0e282e;
  --ink-750: #13333a;
  --ink-700: #1b424a;

  
  --coral-300: #ffb199;
  --coral-400: #ff8a6e;
  --coral-500: #ff6a4d;
  --coral-600: #e9502f;
  --coral-ink: #2a0d05;

  
  --sea-200: #c4f6e6;
  --sea-300: #9cecd5;
  --sea-400: #6fdcbf;
  --sea-600: #2f9e86;

  
  --butter-200: #fff0cc;
  --butter-300: #ffe0a6;
  --butter-500: #f3bb5c;

  
  --text: #f4efe6;
  --text-soft: #c9d6d4;
  --text-muted: #93aaab;
  --text-faint: #7d989b;

  
  --bg: var(--ink-900);
  --surface: var(--ink-850);
  --surface-2: var(--ink-800);
  --surface-3: var(--ink-750);
  --line: rgb(196 246 230 / 0.1);
  --line-strong: rgb(196 246 230 / 0.2);
  --focus: var(--sea-300);
  --primary: var(--coral-500);
  --primary-hover: var(--coral-400);
  --glow: rgb(255 106 77 / 0.38);

  
  --font-display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-2xl: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  --fs-3xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --fs-hero: clamp(2.6rem, 1.4rem + 5vw, 5.6rem);

  
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --gutter: clamp(16px, 4vw, 48px);
  --content: 1320px;

  
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;

  
  --shadow-1: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 6px 18px rgb(0 0 0 / 0.28);
  --shadow-2: 0 1px 0 rgb(255 255 255 / 0.05) inset, 0 18px 40px -8px rgb(0 0 0 / 0.55);
  --shadow-3: 0 30px 80px -20px rgb(0 0 0 / 0.7), 0 10px 30px -10px rgb(0 0 0 / 0.5);
  --shadow-glow: 0 10px 30px -6px var(--glow);

  
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 520ms;

  --header-h: 68px;
  --tabbar-h: 0px;
}


body[data-scene="midnight"] {
  --bg: var(--ink-950);
  --surface: #071519;
  --glow: rgb(255 106 77 / 0.22);
}
body[data-scene="sunrise"] {
  --bg: #161214;
  --surface: #1e181a;
  --surface-2: #261e20;
  --surface-3: #30262a;
  --glow: rgb(255 150 100 / 0.45);
}

@media (max-width: 860px) {
  :root { --header-h: 60px; --tabbar-h: 68px; }
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  padding-bottom: var(--tabbar-h);
}
body.modal-open { overflow: hidden; }
img, picture, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
[hidden] { display: none !important; }
main { display: block; outline: none; }
main:focus-visible { outline: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); line-height: 1.15; }
p { text-wrap: pretty; }

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

::selection { background: var(--coral-500); color: var(--coral-ink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 300;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--text); color: var(--ink-900); font-weight: 600;
}
.skip-link:focus { top: 12px; }
.muted { color: var(--text-muted); }

.icon { width: 20px; height: 20px; flex: none; }
.icon--flip { transform: scaleX(-1); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea-300);
}
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.eyebrow--pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgb(6 20 24 / 0.5);
  backdrop-filter: blur(8px);
  color: var(--sea-200);
  letter-spacing: 0.08em;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sea-400); box-shadow: 0 0 0 4px rgb(111 220 191 / 0.18); }


.button {
  --btn-bg: var(--surface-3);
  --btn-fg: var(--text);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease, box-shadow var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.button .icon { width: 18px; height: 18px; }
.button:active { transform: translateY(1px) scale(0.985); }
.button--primary {
  --btn-bg: var(--coral-500);
  --btn-fg: var(--coral-ink);
  background: linear-gradient(180deg, var(--coral-400), var(--coral-500) 55%, var(--coral-600));
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.35) inset, 0 -2px 0 rgb(0 0 0 / 0.12) inset, var(--shadow-glow);
}
.button--primary:hover { box-shadow: 0 1px 0 rgb(255 255 255 / 0.4) inset, 0 -2px 0 rgb(0 0 0 / 0.12) inset, 0 16px 40px -8px var(--glow); filter: saturate(1.08) brightness(1.04); }
.button--ghost {
  --btn-bg: rgb(196 246 230 / 0.05);
  border-color: var(--line-strong);
  backdrop-filter: blur(10px);
}
.button--ghost:hover { --btn-bg: rgb(196 246 230 / 0.1); border-color: rgb(196 246 230 / 0.35); }
.button--text { --btn-bg: transparent; padding: 0 12px; color: var(--sea-200); }
.button--text:hover { color: var(--text); background: rgb(196 246 230 / 0.06); }
.button--sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-sm); }
.button--lg { min-height: 56px; padding: 0 28px; font-size: var(--fs-lg); }
.button--block { width: 100%; }
input[type="submit"].button { cursor: pointer; }

.icon-button {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(196 246 230 / 0.04);
  color: var(--text-soft);
  text-decoration: none;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-med) var(--ease-out);
}
.icon-button:hover { background: rgb(196 246 230 / 0.1); color: var(--text); border-color: var(--line-strong); }
.icon-button:disabled { opacity: 0.35; cursor: default; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--sea-200); font-weight: 600; font-size: var(--fs-sm);
  text-decoration: none; white-space: nowrap;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform var(--t-med) var(--ease-out); }
.link-arrow:hover { color: var(--text); }
.link-arrow:hover .icon { transform: translateX(4px); }


.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li:empty { display: none; }
.chips li {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.02em;
  color: var(--sea-200);
  background: rgb(196 246 230 / 0.04);
}

.chip-group { display: flex; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.chip-group::-webkit-scrollbar { display: none; }
.chip { position: relative; flex: none; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-soft);
  transition: all var(--t-fast) ease;
}
.chip:hover span { color: var(--text); border-color: rgb(196 246 230 / 0.35); }
.chip input:checked + span { background: var(--text); color: var(--ink-900); border-color: var(--text); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

.segmented {
  display: inline-flex; gap: 2px; padding: 4px; margin: 0; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: rgb(4 13 16 / 0.6);
}
.segmented > button, .segmented label span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 0; border-radius: var(--r-pill); background: transparent;
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted);
  transition: background-color var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.segmented label { position: relative; }
.segmented label input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented > button[aria-selected="true"], .segmented label input:checked + span { background: var(--surface-3); color: var(--text); box-shadow: var(--shadow-1); }
.segmented label input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--text-soft); cursor: pointer; position: relative; min-height: 44px; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle__track { width: 38px; height: 22px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-strong); position: relative; transition: background var(--t-fast); }
.toggle__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-muted); transition: transform var(--t-med) var(--ease-spring), background var(--t-fast); }
.toggle input:checked + .toggle__track { background: var(--coral-500); border-color: var(--coral-400); }
.toggle input:checked + .toggle__track::after { transform: translateX(16px); background: var(--coral-ink); }
.toggle input:focus-visible + .toggle__track { outline: 2px solid var(--focus); outline-offset: 3px; }


.stack-form { display: grid; gap: 10px; }
.stack-form label, .select-field span { font-size: var(--fs-sm); font-weight: 600; color: var(--text-soft); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="date"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--ink-950);
  color: var(--text);
  font-size: 16px; 
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:hover, select:hover, textarea:hover { border-color: rgb(196 246 230 / 0.32); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sea-400); box-shadow: 0 0 0 4px rgb(111 220 191 / 0.16); }
select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239cecd5' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
textarea { min-height: 140px; resize: vertical; }
input[type="date"] { color-scheme: dark; }
.check-label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; color: var(--text-soft); line-height: 1.5; }
.check-label input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--coral-500); }
.check-label a { color: var(--sea-200); }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-columns > div { display: grid; gap: 10px; }
.form-errors { padding: 12px 14px; border-radius: var(--r-md); background: rgb(255 106 77 / 0.1); border: 1px solid rgb(255 106 77 / 0.4); color: var(--coral-300); font-size: var(--fs-sm); }
.form-errors ul { margin: 6px 0 0; padding-left: 18px; }
.honeypot { position: absolute; left: -9999px; }
small { font-size: var(--fs-xs); color: var(--text-muted); }


.panel {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgb(196 246 230 / 0.035), transparent 60%), var(--surface);
  box-shadow: var(--shadow-2);
}
.section {
  width: min(100% - 2 * var(--gutter), var(--content));
  margin: 0 auto;
  padding-block: clamp(36px, 4.5vw, 64px);
}
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(20px, 3vw, 32px); }
.section__head h2 { margin-top: 8px; }
.section__head--tight { margin-bottom: 8px; align-items: center; }
.section__sub { margin-top: 10px; color: var(--text-muted); max-width: 52ch; }


.fx-ready [data-reveal] { opacity: 0; transform: translateY(18px); }
.fx-ready [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .fx-ready [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .form-columns { grid-template-columns: 1fr; }
  .section__head { flex-wrap: wrap; align-items: flex-start; }
}


.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); border-radius: var(--r-sm); }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; }
.brand-emblem { width: 34px; height: 34px; color: var(--sea-300); flex: none; }
.brand-emblem-core { fill: var(--coral-500); }
.brand-emblem-moon { fill: var(--butter-300); }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 72, "SOFT" 100;
  line-height: 1;
}
.brand:hover .brand-emblem { transform: rotate(-18deg); }
.brand-emblem { transition: transform var(--t-slow) var(--ease-spring); }


.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-med) ease, border-color var(--t-med) ease, backdrop-filter var(--t-med) ease;
  background: rgb(6 20 24 / 0.72);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
}
.page-home .site-header { position: fixed; inset: 0 0 auto; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.page-home .site-header.is-scrolled, .site-header.is-scrolled { background: rgb(6 20 24 / 0.82); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom-color: var(--line); }
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  height: 100%;
  width: min(100% - 2 * var(--gutter), 1440px);
  margin: 0 auto;
}
.primary-nav { display: flex; gap: 4px; margin-left: 16px; }
.primary-nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  color: var(--text-soft);
  font-size: var(--fs-sm); font-weight: 500;
  text-decoration: none;
  transition: color var(--t-fast);
}
.primary-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px;
  background: var(--coral-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med) var(--ease-out);
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.balance-chip {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px 0 6px;
  border: 1px solid rgb(255 224 166 / 0.28);
  border-radius: var(--r-pill);
  background: rgb(255 224 166 / 0.06);
  text-decoration: none;
  font-size: var(--fs-sm);
}
.balance-chip strong { color: var(--butter-200); font-variant-numeric: tabular-nums; font-weight: 700; }
.balance-chip__label { color: var(--text-muted); }
.balance-chip__coin, .profile-balance__coin {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6dc, var(--butter-300) 35%, var(--butter-500) 70%, #a26a1c);
  box-shadow: 0 0 0 3px rgb(255 224 166 / 0.14), inset 0 -2px 3px rgb(0 0 0 / 0.25);
}


.flash {
  width: min(100% - 2 * var(--gutter), 760px);
  margin: 16px auto 0;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  font-size: var(--fs-sm);
}
.flash--notice { border-color: rgb(111 220 191 / 0.4); }
.flash--alert { border-color: rgb(255 106 77 / 0.5); color: var(--coral-300); }
.page-home .flash { position: fixed; top: calc(var(--header-h) + 8px); left: 50%; transform: translateX(-50%); z-index: 90; box-shadow: var(--shadow-3); margin: 0; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom)); z-index: 160;
  transform: translate(-50%, 0);
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--text); color: var(--ink-900);
  font-size: var(--fs-sm); font-weight: 600;
  box-shadow: var(--shadow-3);
  animation: toast-in var(--t-slow) var(--ease-spring);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px) scale(0.96); } }

.session-reminder {
  position: fixed; right: 20px; bottom: calc(var(--tabbar-h) + 20px); z-index: 140;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start;
  width: min(380px, calc(100% - 32px));
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-3);
}
.session-reminder__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgb(111 220 191 / 0.12); color: var(--sea-300); grid-row: span 2; }
.session-reminder p { font-size: var(--fs-sm); color: var(--text-soft); }
.session-reminder a { color: var(--sea-200); font-size: var(--fs-sm); align-self: center; }
.session-reminder > a, .session-reminder > button { grid-column: 2; justify-self: start; }


dialog { color: var(--text); }
.sheet {
  width: min(480px, calc(100% - 24px));
  max-height: min(92dvh, 900px);
  padding: 32px clamp(20px, 4vw, 36px) 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: radial-gradient(120% 60% at 50% 0%, rgb(255 106 77 / 0.12), transparent 60%), var(--surface);
  box-shadow: var(--shadow-3);
  overflow: auto;
}
.sheet::backdrop { background: rgb(2 8 10 / 0.72); backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-in var(--t-slow) var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.sheet__close { position: absolute; top: 14px; right: 14px; }

.auth-brand { display: flex; justify-content: center; margin-bottom: 14px; }
.auth-perk {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: fit-content; margin: 0 auto 18px; padding: 6px 14px 6px 8px;
  border-radius: var(--r-pill); background: rgb(255 224 166 / 0.08); border: 1px solid rgb(255 224 166 / 0.22);
  font-size: var(--fs-xs); color: var(--butter-200);
}
.auth-perk__orb { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6dc, var(--butter-300) 40%, var(--butter-500)); }
.sheet h2, .auth-card h2, .auth-card h1 { text-align: center; font-size: var(--fs-2xl); margin-bottom: 18px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 20px; border-radius: var(--r-pill); background: var(--ink-950); border: 1px solid var(--line); }
.auth-tabs button, .auth-tabs a { min-height: 42px; display: grid; place-items: center; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text-muted); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; transition: all var(--t-fast); }
.auth-tabs .active { background: var(--surface-3); color: var(--text); box-shadow: var(--shadow-1); }
.auth-intro { text-align: center; color: var(--text-soft); margin-bottom: 14px; font-size: var(--fs-sm); }
.auth-intro strong { color: var(--butter-200); }
.auth-disclosure { margin-top: 16px; text-align: center; font-size: var(--fs-xs); color: var(--text-muted); }
.forgot-link { justify-self: end; font-size: var(--fs-sm); color: var(--sea-200); }
.stack-form input[type="submit"] { margin-top: 8px; }


.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(40px, 6vw, 72px) 0 32px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-950), #020809);
}
.site-footer__grid, .site-footer__boundary, .site-footer__legal { width: min(100% - 2 * var(--gutter), var(--content)); margin: 0 auto; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.site-footer__brand p { margin: 16px 0 20px; max-width: 36ch; color: var(--text-muted); font-size: var(--fs-sm); }
.site-footer nav { display: grid; align-content: start; gap: 10px; }
.site-footer nav h2 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.site-footer nav a { color: var(--text-soft); text-decoration: none; font-size: var(--fs-sm); width: fit-content; }
.site-footer nav a:hover { color: var(--text); text-decoration: underline; }
.site-footer__boundary { display: flex; gap: 18px; align-items: flex-start; margin-top: 48px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgb(196 246 230 / 0.03); }
.site-footer__boundary p { font-size: var(--fs-sm); color: var(--text-muted); }
.site-footer__boundary a { color: var(--sea-200); }
.age-badge { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--coral-400); color: var(--coral-300); font-weight: 700; font-size: var(--fs-sm); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 28px; font-size: var(--fs-xs); color: var(--text-faint); }
.site-footer__legal a { color: var(--text-muted); }


.tab-bar { display: none; }
@media (max-width: 860px) {
  .primary-nav, .header-login, .balance-chip__label, .header-search { display: none; }
  .brand-word { font-size: 1.35rem; }
  .brand-emblem { width: 30px; height: 30px; }
  .tab-bar {
    position: fixed; inset: auto 0 0; z-index: 120;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding: 0 6px env(safe-area-inset-bottom);
    background: rgb(6 20 24 / 0.9);
    backdrop-filter: saturate(1.4) blur(18px);
    -webkit-backdrop-filter: saturate(1.4) blur(18px);
    border-top: 1px solid var(--line);
  }
  .tab-bar a {
    display: grid; justify-items: center; align-content: center; gap: 3px;
    height: var(--tabbar-h);
    color: var(--text-muted); text-decoration: none;
    font-size: 11px; font-weight: 600;
    -webkit-tap-highlight-color: transparent;
  }
  .tab-bar a .icon { width: 22px; height: 22px; }
  .tab-bar a[aria-current="page"] { color: var(--text); }
  .tab-bar a[aria-current="page"] .icon { color: var(--coral-400); }
  .tab-bar__portal { position: relative; }
  .tab-bar__orb {
    width: 50px; height: 50px; margin-top: -26px; border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, var(--coral-400), var(--coral-600) 60%, #7a2413);
    box-shadow: 0 0 0 5px var(--ink-900), 0 0 0 6px rgb(255 138 110 / 0.5), 0 10px 26px -4px var(--glow);
    position: relative;
  }
  .tab-bar__orb::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 2px solid rgb(255 240 204 / 0.8); border-right-color: transparent; animation: spin 3.5s linear infinite; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@keyframes spin { to { transform: rotate(360deg); } }


.analytics-consent {
  position: fixed; z-index: 150; left: 50%; bottom: calc(var(--tabbar-h) + max(1rem, env(safe-area-inset-bottom)));
  transform: translateX(-50%);
  width: min(720px, calc(100% - 2rem)); max-height: 75dvh; overflow: auto;
  padding: 1.4rem;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-3);
}
.analytics-consent h2 { font-size: var(--fs-xl); margin-bottom: 0.6rem; }
.analytics-consent p { font-size: var(--fs-sm); color: var(--text-soft); margin: 0.6rem 0; }
.analytics-consent a { color: var(--sea-200); }
.analytics-choice-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0 0.5rem; }
.analytics-choice-actions .button { flex: 1 1 180px; }
.analytics-choice-actions .button[aria-pressed="true"] { outline: 2px solid var(--sea-300); outline-offset: 2px; }
.analytics-choice-status { font-size: var(--fs-sm); color: var(--text-muted); }

@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .site-footer__boundary { flex-direction: column; }
  .header-actions .button--sm { padding: 0 14px; }
}


.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: max(660px, 100svh);
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 24px) 0 72px;
}


.scene {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 55% at 50% 100%, rgb(4 13 16 / 0.9), transparent 70%),
    linear-gradient(180deg, #02090c 0%, #041318 26%, #082830 52%, #11434a 66%, #1d5a5b 71%, #0a2a30 73%, #041115 100%);
}
.scene__layer {
  position: absolute; inset: -2% -3% 0;
  transform: translate3d(calc(var(--px, 0) * var(--d, 0) * 1px), calc(var(--py, 0) * var(--d, 0) * 1px), 0);
  transition: transform 900ms var(--ease-out);
}
.scene__layer svg { width: 100%; height: 100%; }
.scene__sky { --d: 6; }
.scene__far { --d: 12; }
.scene__sea { --d: 18; }
.scene__near { --d: 34; inset: -2% -5% -2%; }

.scene__stars .twinkle { animation: twinkle 5s ease-in-out infinite; }
.scene__stars .twinkle--1 { animation-delay: -1.7s; animation-duration: 6.5s; }
.scene__stars .twinkle--2 { animation-delay: -3.1s; animation-duration: 4.2s; }
@keyframes twinkle { 50% { opacity: 0.1; } }

.scene__aurora {
  position: absolute; border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.scene__aurora--a { width: 70%; height: 22%; left: 8%; top: 10%; background: linear-gradient(90deg, transparent, rgb(111 220 191 / 0.55), rgb(156 236 213 / 0.25), transparent); transform: rotate(-8deg); animation: aurora 26s var(--ease-in-out) infinite alternate; }
.scene__aurora--b { width: 55%; height: 16%; right: -6%; top: 22%; background: linear-gradient(90deg, transparent, rgb(255 138 110 / 0.35), rgb(111 220 191 / 0.3), transparent); transform: rotate(6deg); animation: aurora 32s var(--ease-in-out) -9s infinite alternate-reverse; }
@keyframes aurora { to { transform: translate3d(8%, 3%, 0) rotate(-2deg) scaleX(1.15); } }

.scene__moon {
  position: absolute; top: 14%; right: 12%;
  width: clamp(40px, 5vw, 76px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fffaf0, #f4e5c8 45%, #d9c29a 80%);
  box-shadow: 0 0 40px 10px rgb(255 240 204 / 0.18), 0 0 120px 40px rgb(255 240 204 / 0.08);
  opacity: 0.9;
}
.scene__moon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 70% 30%, transparent 55%, rgb(4 13 16 / 0.55) 56%); }

.scene__beam { transform-box: view-box; transform-origin: 478px 454px; animation: beam 12s var(--ease-in-out) infinite alternate; opacity: 0.7; }
@keyframes beam { from { transform: rotate(-7deg); } to { transform: rotate(6deg); } }
.scene__glints { animation: glints 14s var(--ease-in-out) infinite alternate; }
@keyframes glints { to { transform: translateX(-26px); opacity: 0.7; } }
.scene__town rect { animation: twinkle 7s ease-in-out infinite; }
.scene__town rect:nth-child(3n) { animation-delay: -2s; }
.scene__town rect:nth-child(4n) { animation: none; }

.scene__lanterns, .scene__motes { position: absolute; inset: 0; pointer-events: none; }
.lantern {
  position: absolute; bottom: -40px;
  width: 14px; height: 18px; border-radius: 5px 5px 7px 7px;
  background: linear-gradient(180deg, #ffd6a0, #ff8a6e 60%, #e9502f);
  box-shadow: 0 0 18px 6px rgb(255 138 110 / 0.35), 0 0 60px 16px rgb(255 106 77 / 0.12);
  opacity: 0;
  animation: lantern 26s linear infinite;
  will-change: transform, opacity;
}
.lantern::before { content: ""; position: absolute; left: 3px; right: 3px; top: -3px; height: 3px; border-radius: 2px; background: #6b2b1c; }
.lantern--0 { left: 9%; animation-delay: -3s; transform: scale(0.8); }
.lantern--1 { left: 21%; animation-delay: -14s; animation-duration: 31s; }
.lantern--2 { left: 38%; animation-delay: -8s; animation-duration: 29s; }
.lantern--3 { left: 57%; animation-delay: -20s; animation-duration: 24s; }
.lantern--4 { left: 74%; animation-delay: -5s; animation-duration: 33s; }
.lantern--5 { left: 88%; animation-delay: -17s; }
.lantern--6 { left: 48%; animation-delay: -25s; animation-duration: 36s; }
@keyframes lantern {
  0% { transform: translate3d(0, 0, 0) scale(0.7); opacity: 0; }
  8% { opacity: 0.95; }
  50% { transform: translate3d(28px, -52vh, 0) scale(0.55) rotate(4deg); }
  85% { opacity: 0.6; }
  100% { transform: translate3d(-10px, -105vh, 0) scale(0.35) rotate(-3deg); opacity: 0; }
}
.mote { position: absolute; bottom: 10%; width: 3px; height: 3px; border-radius: 50%; background: var(--sea-200); opacity: 0; animation: mote 12s linear infinite; }
.mote:nth-child(odd) { background: var(--butter-300); }
.mote--0 { left: 12%; animation-delay: -1s; } .mote--1 { left: 24%; animation-delay: -6s; } .mote--2 { left: 33%; animation-delay: -3s; }
.mote--3 { left: 47%; animation-delay: -9s; } .mote--4 { left: 55%; animation-delay: -2s; } .mote--5 { left: 63%; animation-delay: -7s; }
.mote--6 { left: 71%; animation-delay: -4s; } .mote--7 { left: 79%; animation-delay: -10s; } .mote--8 { left: 86%; animation-delay: -5s; }
.mote--9 { left: 92%; animation-delay: -8s; } .mote--10 { left: 6%; animation-delay: -11s; } .mote--11 { left: 41%; animation-delay: -0.5s; }
@keyframes mote { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 15% { opacity: 0.8; } 100% { transform: translate3d(20px, -60vh, 0); opacity: 0; } }

.scene__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 18% 55%, rgb(3 11 14 / 0.72), transparent 70%),
    linear-gradient(180deg, rgb(4 13 16 / 0.55), transparent 22%, transparent 78%, var(--bg) 100%);
}


.hero__inner {
  width: min(100% - 2 * var(--gutter), 1320px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.hero__copy { max-width: 620px; }
.hero h1 {
  margin: 22px 0 22px;
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero h1 span {
  display: block;
  margin-top: 0.08em;
  font-style: normal;
  font-weight: 450;
  font-size: 0.62em;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--coral-300);
  background: linear-gradient(90deg, var(--coral-300), var(--butter-300) 55%, var(--sea-300));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lede { font-size: var(--fs-lg); color: var(--text-soft); max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-muted); }
.hero__facts strong { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--text); line-height: 1.1; font-variation-settings: "opsz" 72; }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-strong); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--sea-300); animation: scroll-cue 2.2s var(--ease-in-out) infinite; }
@keyframes scroll-cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }


.portal { --portal: clamp(300px, 36vw, 540px); display: grid; justify-items: center; gap: 18px; position: relative; }
.portal__stage { position: relative; width: var(--portal); aspect-ratio: 1; }
.portal__stage::after {
  
  content: ""; position: absolute; left: 22%; right: 22%; top: 96%; height: 46%;
  background: radial-gradient(50% 50% at 50% 0%, rgb(255 138 110 / 0.35), rgb(111 220 191 / 0.08) 55%, transparent 75%);
  filter: blur(10px);
  transform: scaleY(1.2);
  opacity: 0.8;
  pointer-events: none;
}
.portal__halo {
  position: absolute; inset: -22%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgb(255 106 77 / 0.42), rgb(255 106 77 / 0.12) 55%, transparent 72%),
    radial-gradient(closest-side, rgb(111 220 191 / 0.18), transparent 80%);
  animation: breathe 7s var(--ease-in-out) infinite;
  pointer-events: none;
}
@keyframes breathe { 50% { transform: scale(1.06); opacity: 0.82; } }
.portal.is-spinning .portal__halo { animation-duration: 1.2s; }

.portal__rings { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.portal__rings svg { width: 100%; height: 100%; animation: spin 120s linear infinite; }
.portal__ticks { fill: rgb(156 236 213 / 0.55); }
.portal__band { transform-box: fill-box; transform-origin: center; animation: spin 50s linear infinite reverse; filter: drop-shadow(0 0 6px rgb(255 106 77 / 0.5)); }
.portal__jewels circle { filter: drop-shadow(0 0 5px currentColor); }


.portal__orbit { position: absolute; inset: 0; pointer-events: none; transform: rotate(-14deg) scaleY(0.34); }
.portal__orbit--back { clip-path: inset(-120% -120% 50% -120%); z-index: 0; opacity: 0.75; }
.portal__orbit--front { clip-path: inset(50% -120% -120% -120%); z-index: 3; }
.portal__orbit-spin { position: absolute; inset: 0; animation: spin 64s linear infinite; }
.orb { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)); }
.orb__body { position: absolute; transform: translateX(calc(var(--portal) * 0.6)); }
.orb__scale {
  position: absolute;
  width: calc(var(--portal) * 0.17); aspect-ratio: 1;
  margin: calc(var(--portal) * -0.085) 0 0 calc(var(--portal) * -0.085);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgb(255 224 166 / 0.55), 0 8px 18px rgb(0 0 0 / 0.5);
  animation: orb-counter 64s linear infinite;
}
.orb__scale img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.portal__orbit--back .orb__scale::after { content: ""; position: absolute; inset: 0; background: rgb(4 13 16 / 0.45); }
@keyframes orb-counter {
  from { transform: rotate(calc(-1 * var(--a))) scaleY(2.941) rotate(14deg); }
  to { transform: rotate(calc(-1 * var(--a) - 360deg)) scaleY(2.941) rotate(14deg); }
}


.portal__core {
  position: absolute; inset: 21%;
  z-index: 2;
  padding: 0; border: 0;
  border-radius: 50% 50% 16% 16% / 44% 44% 12% 12%;
  overflow: hidden;
  background: var(--ink-950);
  box-shadow:
    0 0 0 2px rgb(255 224 166 / 0.7),
    0 0 0 9px rgb(4 13 16 / 0.7),
    0 0 0 10px rgb(156 236 213 / 0.25),
    0 30px 70px -10px var(--glow);
  transition: transform var(--t-slow) var(--ease-spring), box-shadow var(--t-med);
  -webkit-tap-highlight-color: transparent;
}
.portal__core:hover { transform: scale(1.025); }
.portal__core:focus-visible { outline: 3px solid var(--focus); outline-offset: 14px; }
.portal__art, .portal__art img, .portal__flash { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portal__flash { z-index: 1; }
.portal__glass {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(155deg, rgb(255 255 255 / 0.22), transparent 32%),
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgb(4 13 16 / 0.55));
  pointer-events: none;
}
.portal__burst {
  position: absolute; inset: -20%; z-index: 3;
  background: radial-gradient(closest-side, rgb(255 240 204 / 0.95), rgb(255 138 110 / 0.5) 45%, transparent 70%);
  opacity: 0; transform: scale(0.4);
  pointer-events: none;
}
.portal.is-landed .portal__burst { animation: burst 900ms var(--ease-out); }
.portal.is-landed .portal__core { animation: land 800ms var(--ease-spring); }
@keyframes burst { 0% { opacity: 0; transform: scale(0.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes land { 0% { transform: scale(0.92); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
.portal.is-spinning .portal__core { transform: scale(0.96); cursor: progress; }
.portal.is-spinning .portal__flash { filter: saturate(1.2) contrast(1.05); }

.portal__cue {
  position: absolute; z-index: 4; left: 50%; top: 79%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--ink-900);
  border: 1px solid rgb(255 224 166 / 0.45);
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.45);
  color: var(--butter-200);
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity var(--t-med), transform var(--t-med) var(--ease-out);
}
.portal__cue .icon { width: 14px; height: 14px; }
.portal__stage:hover .portal__cue { transform: translate(-50%, -50%) scale(1.05); }
.portal.is-spinning .portal__cue { opacity: 0; }

.mood-picker { position: relative; z-index: 4; display: inline-flex; gap: 2px; margin: 8px 0 0; padding: 4px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: rgb(4 13 16 / 0.7); backdrop-filter: blur(10px); }
.mood-picker legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mood-picker label { position: relative; }
.mood-picker input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.mood-picker span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); transition: all var(--t-fast); }
.mood-picker input:checked + span { background: var(--text); color: var(--ink-900); font-weight: 600; }
.mood-picker input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.portal__hint { position: relative; z-index: 4; font-size: var(--fs-xs); color: var(--text-muted); }


.reveal {
  width: min(880px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid rgb(255 224 166 / 0.3);
  border-radius: var(--r-xl);
  background: radial-gradient(100% 80% at 30% 20%, rgb(255 106 77 / 0.18), transparent 60%), var(--ink-850);
  box-shadow: 0 40px 120px -20px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(0 0 0 / 0.5);
  overflow: hidden auto;
}
.reveal[open] { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); }
.reveal::backdrop { background: radial-gradient(circle at 50% 45%, rgb(255 106 77 / 0.18), rgb(2 8 10 / 0.88) 60%); backdrop-filter: blur(8px); }
.reveal__rays {
  position: absolute; left: 25%; top: 45%; width: 900px; height: 900px; margin: -450px 0 0 -450px;
  background: repeating-conic-gradient(from 0deg, rgb(255 224 166 / 0.08) 0 6deg, transparent 6deg 18deg);
  mask-image: radial-gradient(circle, #000 10%, transparent 60%);
  animation: spin 40s linear infinite;
  pointer-events: none;
}
.reveal__close { position: absolute; top: 14px; right: 14px; z-index: 3; }
.reveal__art { position: relative; padding: 32px; display: grid; place-items: center; }
.reveal__art img {
  width: 100%; max-width: 380px; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px rgb(255 224 166 / 0.4), 0 30px 60px -12px rgb(0 0 0 / 0.7), 0 0 80px -10px var(--glow);
}
.reveal[open] .reveal__art img { animation: reveal-art 900ms var(--ease-out) both; }
.reveal__body { position: relative; padding: 48px 40px 36px 8px; display: grid; align-content: center; gap: 14px; }
.reveal__body h2 { font-size: var(--fs-3xl); }
.reveal__desc { color: var(--text-soft); }
.reveal[open] .reveal__body > * { animation: rise 700ms var(--ease-out) both; }
.reveal[open] .reveal__body > :nth-child(2) { animation-delay: 80ms; }
.reveal[open] .reveal__body > :nth-child(3) { animation-delay: 160ms; }
.reveal[open] .reveal__body > :nth-child(4) { animation-delay: 220ms; }
.reveal[open] .reveal__body > :nth-child(5) { animation-delay: 280ms; }
.reveal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
@keyframes reveal-art { from { opacity: 0; transform: scale(0.7) rotate(-4deg); filter: blur(12px) brightness(1.8); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }


@media (max-width: 1100px) {
  .hero h1 { font-size: clamp(2.6rem, 1.2rem + 4.6vw, 4.2rem); }
}
@media (max-width: 860px) {
  .hero { min-height: auto; padding: calc(var(--header-h) + 8px) 0 48px; align-items: start; }
  .hero__inner { grid-template-columns: 1fr; gap: 8px; }
  .hero__inner { gap: 0; }
  .hero__copy { display: contents; }
  .hero__copy .eyebrow--pill { order: 1; justify-self: center; }
  .hero h1 { order: 2; }
  .portal { order: 3; --portal: min(76vw, 340px); margin: 4px 0 8px; }
  .hero__lede { order: 4; }
  .hero__actions { order: 5; }
  .hero__facts { order: 6; }
  .hero h1, .hero__lede, .hero__facts { text-align: center; }
  .scene__moon { display: none; }
    .hero h1 { margin: 16px 0 14px; }
  .hero__lede { margin-inline: auto; font-size: var(--fs-md); }
  .hero__actions { justify-content: center; margin-top: 24px; }
  .hero__facts { justify-content: center; margin-top: 24px; }
  .hero__scroll { display: none; }
  .scene__scrim { background: radial-gradient(80% 50% at 50% 78%, rgb(3 11 14 / 0.8), transparent 75%), linear-gradient(180deg, rgb(4 13 16 / 0.5), transparent 20%, transparent 70%, var(--bg) 100%); }
  .reveal[open] { grid-template-columns: 1fr; }
  .reveal__art { padding: 28px 28px 0; }
  .reveal__art img { max-width: min(62vw, 300px); }
  .reveal__body { padding: 20px 24px 28px; text-align: center; justify-items: center; }
  .reveal__body h2 { font-size: var(--fs-2xl); }
  .reveal__actions { justify-content: center; }
  .reveal .chips { justify-content: center; }
}
@media (max-width: 430px) {
  .hero__actions .button { width: 100%; }
  .hero__actions .button--lg { min-height: 52px; font-size: var(--fs-md); }
  .hero__facts { gap: 8px 20px; }
  .hero__facts strong { font-size: 1.3rem; }
  .mood-picker span { padding: 0 11px; font-size: 13px; }
  .reveal__actions .button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .lantern, .mote { display: none; }
  .orb__scale { animation: none; transform: rotate(calc(-1 * var(--a))) scaleY(2.941) rotate(14deg); }
}


.hero.is-offscreen *, .hero.is-offscreen *::before, .hero.is-offscreen *::after { animation-play-state: paused !important; }




.gcard { position: relative; display: grid; gap: 12px; align-content: start; min-width: 0; }
.gcard__frame {
  position: relative;
  border-radius: var(--r-lg);
  transition: transform var(--t-slow) var(--ease-out);
}
.gcard__art {
  position: relative; isolation: isolate;
  display: block;
  aspect-ratio: 1;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(110deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%) 0 0 / 250% 100%;
  box-shadow: 0 0 0 1px rgb(196 246 230 / 0.08), 0 14px 30px -12px rgb(0 0 0 / 0.7);
  transition: box-shadow var(--t-slow) var(--ease-out);
}
.fx-ready .gcard__art:not(.is-loaded) { animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.gcard__art picture, .gcard__art img { width: 100%; height: 100%; }
.gcard__art img { object-fit: cover; transition: transform 700ms var(--ease-out), opacity 400ms ease; }
.fx-ready .gcard__art:not(.is-loaded) img { opacity: 0; }
.gcard__sheen {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / 0.2) 48%, transparent 60%) no-repeat;
  background-size: 250% 100%; background-position: 130% 0;
  pointer-events: none;
}
.gcard__play {
  position: absolute; z-index: 2; left: 50%; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 14px;
  border-radius: var(--r-pill);
  background: var(--coral-500); color: var(--coral-ink);
  font-weight: 700; font-size: var(--fs-sm);
  box-shadow: 0 10px 24px -6px rgb(0 0 0 / 0.6), var(--shadow-glow);
  opacity: 0;
  transform: translate(-50%, 10px) scale(0.92);
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.gcard__play .icon { width: 16px; height: 16px; fill: currentColor; }
.gcard__fav {
  position: absolute; z-index: 3; top: 10px; right: 10px;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 50%;
  background: rgb(4 13 16 / 0.72);
  color: var(--text);
  transition: transform var(--t-med) var(--ease-spring), background-color var(--t-fast), color var(--t-fast), opacity var(--t-med);
}
.gcard__fav::before { content: ""; position: absolute; inset: -4px; } 
.gcard__fav .icon { width: 18px; height: 18px; }
.gcard__fav:hover { background: rgb(4 13 16 / 0.85); transform: scale(1.08); }
.gcard__fav[aria-pressed="true"] { color: var(--coral-400); background: rgb(255 106 77 / 0.18); border-color: rgb(255 138 110 / 0.5); }
.gcard__fav[aria-pressed="true"] .icon { fill: currentColor; }
.gcard__fav.is-popping { animation: fav-pop 520ms var(--ease-spring); }
.gcard__fav.is-popping::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--coral-400);
  animation: fav-ring 600ms var(--ease-out) forwards;
}
@keyframes fav-pop { 0% { transform: scale(1); } 35% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes fav-ring { from { opacity: 1; transform: scale(0.6); } to { opacity: 0; transform: scale(1.5); } }
.gcard__fav--lg { width: 48px; height: 48px; top: 16px; right: 16px; }
.gcard__fav--lg .icon { width: 22px; height: 22px; }
.gcard__tag {
  position: absolute; z-index: 3; top: 12px; left: 12px;
  padding: 4px 9px; border-radius: var(--r-pill);
  background: var(--sea-300); color: var(--ink-900);
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  pointer-events: none;
}
.gcard__meta { display: grid; gap: 4px; padding-inline: 2px; }
.gcard__title { font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; font-variation-settings: "opsz" 24; }
.gcard__title a { text-decoration: none; }
.gcard__title a:hover { text-decoration: underline; text-decoration-color: var(--coral-400); }
.gcard__title a::after { content: ""; position: absolute; inset: auto 0 0; height: 50px; } 
.gcard__sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--fs-xs); color: var(--text-muted); }
.gcard__sub > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vol-meter { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; flex: none; }
.vol-meter i { width: 3px; border-radius: 1px; background: rgb(196 246 230 / 0.2); }
.vol-meter i:nth-child(1) { height: 5px; } .vol-meter i:nth-child(2) { height: 7px; } .vol-meter i:nth-child(3) { height: 9.5px; } .vol-meter i:nth-child(4) { height: 12px; }
.vol-meter i.on { background: var(--sea-300); }
.vol-meter i.on:nth-child(3), .vol-meter i.on:nth-child(4) { background: var(--coral-400); }

@media (hover: hover) and (pointer: fine) {
  .gcard__frame:hover, .gcard__frame[style] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); }
  .gcard__frame:hover { --lift: -6px; }
  .gcard__frame:hover .gcard__art { box-shadow: 0 0 0 1px rgb(255 224 166 / 0.35), 0 26px 50px -16px rgb(0 0 0 / 0.85), 0 0 50px -18px var(--glow); }
  .gcard__frame:hover .gcard__art img { transform: scale(1.06); }
  .gcard__frame:hover .gcard__play, .gcard__art:focus-visible .gcard__play { opacity: 1; transform: translate(-50%, 0) scale(1); }
  .gcard__frame:hover .gcard__sheen { background-position: -40% 0; transition: background-position 1100ms var(--ease-out); }
  .gcard__fav:not([aria-pressed="true"]) { opacity: 0; }
  .gcard__frame:hover .gcard__fav, .gcard__fav:focus-visible { opacity: 1; }
}
.gcard__art:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }


.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 16vw, 210px), 1fr)); gap: 32px 20px; }

.rail { position: relative; }
.rail__track {
  --card: clamp(160px, 17vw, 212px);
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--card);
  gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 10px var(--gutter) 18px;
  margin-inline: calc(-1 * var(--gutter));
  scrollbar-width: none;
  outline-offset: -3px;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__track:has(.gcard--lg) { --card: clamp(220px, 23vw, 300px); }
.rail__controls { position: absolute; top: calc(var(--card, 200px) / 2); left: 0; right: 0; pointer-events: none; }
.rail__controls .icon-button {
  position: absolute; top: 0; pointer-events: auto;
  width: 48px; height: 48px;
  margin-top: -24px;
  background: rgb(6 20 24 / 0.85); backdrop-filter: blur(10px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-2);
  color: var(--text);
  transition: opacity var(--t-med), transform var(--t-med) var(--ease-out);
}
.rail__controls .icon-button:first-child { left: -12px; }
.rail__controls .icon-button:last-child { right: -12px; }
.rail__controls .icon-button:disabled { opacity: 0; pointer-events: none; }
.rail { --card: clamp(160px, 17vw, 212px); }
.rail:has(.gcard--lg) { --card: clamp(220px, 23vw, 300px); }
@media (hover: none), (max-width: 860px) { .rail__controls { display: none; } }


.section--library { padding-block: 40px 0; }
.mini-rail { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.mini-rail::-webkit-scrollbar { display: none; }
.mini-card {
  flex: none; display: flex; align-items: center; gap: 12px;
  width: 250px; padding: 8px 16px 8px 8px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
  text-decoration: none; font-weight: 600; font-size: var(--fs-sm);
  transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-med) var(--ease-out);
}
.mini-card:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-2px); }
.mini-card img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.mini-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shelf-empty { color: var(--text-muted); font-size: var(--fs-sm); padding: 18px 0; }


.spotlight__grid { display: grid; gap: 24px; }
.spotlight__lead {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
}
.spotlight__backdrop { position: absolute; inset: 0; z-index: -1; }
.spotlight__backdrop picture, .spotlight__backdrop img { width: 100%; height: 100%; object-fit: cover; }
.spotlight__backdrop img { filter: blur(40px) saturate(1.3); transform: scale(1.3); opacity: 0.45; }
.spotlight__backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(6 20 24 / 0.2), rgb(6 20 24 / 0.85) 55%); }
.spotlight__art { display: block; border-radius: var(--r-lg); overflow: hidden; max-width: 420px; width: 100%; justify-self: center; box-shadow: 0 0 0 1px rgb(255 224 166 / 0.3), var(--shadow-3); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform var(--t-slow) var(--ease-out); }
.spotlight__art img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.spotlight__copy { display: grid; gap: 16px; justify-items: start; }
.spotlight__copy h3 { font-size: var(--fs-3xl); line-height: 1; }
.spotlight__copy > p:not(.eyebrow) { color: var(--text-soft); font-size: var(--fs-lg); max-width: 46ch; }
.spotlight__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.spotlight__rest { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
.portal-tile {
  display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center;
  aspect-ratio: 1; border-radius: var(--r-lg);
  border: 1px dashed rgb(255 224 166 / 0.35);
  background: radial-gradient(circle at 50% 40%, rgb(255 106 77 / 0.2), transparent 65%), var(--surface);
  text-decoration: none; padding: 16px;
  transition: border-color var(--t-fast), transform var(--t-med) var(--ease-out);
}
.portal-tile:hover { border-color: var(--butter-300); transform: translateY(-4px); }
.portal-tile__orb { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--butter-300); box-shadow: 0 0 30px var(--glow), inset 0 0 20px rgb(255 106 77 / 0.5); position: relative; }
.portal-tile__orb::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 2px solid var(--sea-300); border-left-color: transparent; animation: spin 4s linear infinite; }
.portal-tile strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.portal-tile span { font-size: var(--fs-xs); color: var(--text-muted); }


.collections__tabs {
  position: relative;
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  padding: 4px 4px 12px;
  margin: 0 -4px 24px;
  border-bottom: 1px solid var(--line);
}
.collections__tabs::-webkit-scrollbar { display: none; }
.theme-tab {
  flex: none;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 18px 8px 8px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  background: transparent;
  text-align: left;
  color: var(--text-muted);
  transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast);
}
.theme-tab:hover { color: var(--text); background: rgb(196 246 230 / 0.04); }
.theme-tab[aria-selected="true"] { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.theme-tab__art { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 2px rgb(196 246 230 / 0.12); transition: box-shadow var(--t-med); }
.theme-tab[aria-selected="true"] .theme-tab__art { box-shadow: 0 0 0 2px var(--coral-400); }
.theme-tab__art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.4); }
.theme-tab__label { display: grid; font-weight: 600; font-size: var(--fs-sm); line-height: 1.25; white-space: nowrap; }
.theme-tab__label small { font-weight: 500; }
.collections__ink { position: absolute; bottom: -1px; left: 0; height: 2px; width: 0; background: var(--coral-500); border-radius: 2px; transition: transform var(--t-slow) var(--ease-out), width var(--t-slow) var(--ease-out); }
.collections__intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 8px; }
.collections__intro p { font-size: var(--fs-lg); color: var(--text-soft); font-family: var(--font-display); font-style: italic; font-weight: 400; }
.collections__panel:not([hidden]) { animation: panel-in 600ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateX(24px); } }


.moods__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mood-card {
  --accent: var(--sea-300);
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-rows: auto 1fr; gap: 20px;
  padding: 28px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--surface);
  text-decoration: none;
  transition: border-color var(--t-med), transform var(--t-slow) var(--ease-out);
}
.mood-card--balanced { --accent: var(--butter-300); }
.mood-card--bold { --accent: var(--coral-400); }
.mood-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-4px); }
.mood-card__fan { position: relative; height: 150px; display: block; }
.mood-card__fan picture { position: absolute; left: 50%; top: 10px; width: 118px; aspect-ratio: 1; margin-left: -59px; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 2px rgb(4 13 16 / 0.8), var(--shadow-2); transition: transform var(--t-slow) var(--ease-out); }
.mood-card__fan picture img { width: 100%; height: 100%; object-fit: cover; }
.mood-card__fan picture:nth-child(1) { transform: translateX(-62px) rotate(-12deg) scale(0.9); }
.mood-card__fan picture:nth-child(2) { z-index: 2; }
.mood-card__fan picture:nth-child(3) { transform: translateX(62px) rotate(12deg) scale(0.9); }
.mood-card:hover .mood-card__fan picture:nth-child(1) { transform: translateX(-84px) rotate(-16deg) scale(0.92); }
.mood-card:hover .mood-card__fan picture:nth-child(2) { transform: translateY(-8px) scale(1.04); }
.mood-card:hover .mood-card__fan picture:nth-child(3) { transform: translateX(84px) rotate(16deg) scale(0.92); }
.mood-card__body { display: grid; gap: 6px; text-align: center; justify-items: center; }
.mood-card__body strong { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; color: var(--accent); line-height: 1.1; }
.mood-card__body > span { color: var(--text-soft); }
.mood-card__body small { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--fs-sm); color: var(--text); font-weight: 600; }
.mood-card__body small .icon { width: 16px; height: 16px; transition: transform var(--t-med) var(--ease-out); }
.mood-card:hover small .icon { transform: translateX(4px); }
.feature-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; justify-content: center; }
.chip-link {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 8px 0 18px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  text-decoration: none; font-size: var(--fs-sm); font-weight: 500; color: var(--text-soft);
  transition: all var(--t-fast);
}
.chip-link span { min-width: 28px; height: 28px; display: grid; place-items: center; padding: 0 8px; border-radius: var(--r-pill); background: var(--surface-3); font-size: var(--fs-xs); font-weight: 700; color: var(--text); }
.chip-link:hover { color: var(--text); border-color: var(--sea-400); background: rgb(111 220 191 / 0.06); }


.how__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.how__intro { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 18px; justify-items: start; }
.how__intro h2 { font-size: var(--fs-3xl); }
.how__intro p { color: var(--text-soft); font-size: var(--fs-lg); }
.how__steps { display: grid; gap: 16px; }
.how__steps li { position: relative; padding: 28px 28px 28px 96px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.how__num { position: absolute; left: 28px; top: 26px; font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--coral-400); }
.how__steps h3 { margin-bottom: 6px; }
.how__steps p { color: var(--text-muted); }


.finale__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; justify-items: center; gap: 18px; text-align: center;
  padding: clamp(48px, 8vw, 104px) clamp(20px, 6vw, 80px);
  border-radius: 40px;
  border: 1px solid rgb(255 224 166 / 0.2);
  background: radial-gradient(60% 80% at 50% 110%, rgb(255 106 77 / 0.35), transparent 70%), radial-gradient(50% 60% at 50% -10%, rgb(111 220 191 / 0.18), transparent 70%), var(--ink-850);
}
.finale__card h2 { font-size: var(--fs-3xl); max-width: 16ch; }
.finale__card > p:not(.eyebrow) { color: var(--text-soft); max-width: 52ch; font-size: var(--fs-lg); }
.finale__ring {
  position: absolute; z-index: -1; left: 50%; top: 50%;
  width: min(900px, 140%); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgb(255 224 166 / 0.14);
  box-shadow: 0 0 0 60px rgb(196 246 230 / 0.02), 0 0 0 140px rgb(196 246 230 / 0.015);
}
.finale__ring::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed rgb(156 236 213 / 0.18); animation: spin 90s linear infinite; }
.finale__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }


.library { width: min(100% - 2 * var(--gutter), var(--content)); margin: 0 auto; padding-bottom: 40px; }
.filters {
  position: sticky; top: var(--header-h); z-index: 30;
  display: grid; gap: 12px;
  margin: 0 calc(-1 * var(--gutter)) 28px;
  padding: 14px var(--gutter);
  background: rgb(6 20 24 / 0.85);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}
.filters__row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.filters__row--top { flex-wrap: wrap; }
.filters__row--bottom { flex-wrap: wrap; gap: 8px 18px; }
.search-field { position: relative; flex: 1 1 320px; display: flex; align-items: center; }
.search-field .icon { position: absolute; left: 16px; color: var(--text-muted); pointer-events: none; }
.search-field input { padding-left: 46px; padding-right: 44px; border-radius: var(--r-pill); background: var(--ink-950); }
.search-field kbd { position: absolute; right: 14px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-strong); font: 600 11px var(--font-body); color: var(--text-muted); }
.filters__selects { display: flex; gap: 10px; flex-wrap: wrap; }
.select-field { position: relative; display: flex; align-items: center; }
.select-field span { position: absolute; left: 16px; top: 6px; font-size: 10px !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint) !important; pointer-events: none; }
.select-field select { min-width: 190px; padding-top: 18px; padding-bottom: 4px; padding-left: 16px; border-radius: var(--r-pill); font-size: var(--fs-sm); min-height: 48px; }
.filters__count { margin-left: auto; font-size: var(--fs-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.game-grid .gcard.is-entering { animation: card-in 480ms var(--ease-out) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

.empty-state { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 64px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-xl); }
.empty-state__orb { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--line-strong); position: relative; }
.empty-state__orb::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--sea-300), transparent 70%); opacity: 0.5; }
.empty-state h2, .empty-state h3 { font-size: var(--fs-xl); }
.empty-state p { color: var(--text-muted); max-width: 44ch; }
.empty-state__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }


@media (max-width: 1100px) {
  .spotlight__rest { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spotlight__rest .portal-tile { display: none; }
  .spotlight__rest > .gcard:nth-child(n + 7) { display: none; }
}
@media (max-width: 860px) {
  .spotlight__lead { grid-template-columns: 1fr; text-align: left; }
  .spotlight__art { max-width: 300px; }
  .moods__grid { grid-template-columns: 1fr; }
  .mood-card { grid-template-columns: 170px 1fr; grid-template-rows: none; align-items: center; padding: 20px; }
  .mood-card__fan { height: 120px; }
  .mood-card__fan picture { width: 88px; margin-left: -44px; }
  .mood-card__fan picture:nth-child(1) { transform: translateX(-36px) rotate(-12deg) scale(0.9); }
  .mood-card__fan picture:nth-child(3) { transform: translateX(36px) rotate(12deg) scale(0.9); }
  .mood-card__body { text-align: left; justify-items: start; }
  .how__grid { grid-template-columns: 1fr; }
  .how__intro { position: static; }
  .filters { position: static; margin-bottom: 20px; }
  .filters__selects { flex: 1 1 100%; }
  .select-field { flex: 1 1 0; }
  .select-field select { min-width: 0; }
  .filters__row--bottom .segmented { flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; }
}
@media (max-width: 560px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .spotlight__rest { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .spotlight__rest > .gcard:nth-child(n + 7) { display: grid; }
  .spotlight__rest .portal-tile { display: grid; }
  .rail__track { --card: 42vw; gap: 12px; }
  .rail__track:has(.gcard--lg) { --card: 64vw; }
  .gcard__title { font-size: 0.98rem; }
  .gcard__fav { width: 34px; height: 34px; top: 8px; right: 8px; }
  .gcard__tag { top: 9px; left: 9px; font-size: 10px; }
  .mood-card { grid-template-columns: 120px 1fr; gap: 14px; }
  .mood-card__fan { height: 96px; }
  .mood-card__fan picture { width: 70px; margin-left: -35px; top: 12px; border-radius: 12px; }
  .mood-card__fan picture:nth-child(1) { transform: translateX(-26px) rotate(-12deg) scale(0.9); }
  .mood-card__fan picture:nth-child(3) { transform: translateX(26px) rotate(12deg) scale(0.9); }
  .mood-card__body strong { font-size: var(--fs-xl); }
  .how__steps li { padding: 22px 20px 22px 76px; }
  .how__num { left: 20px; top: 22px; font-size: 1.8rem; }
  .collections__intro { flex-direction: column; align-items: flex-start; gap: 6px; }
  .collections__intro p { font-size: var(--fs-md); }
  .finale__card { border-radius: 28px; }
  .finale__actions .button { width: 100%; }
  .filters__count { margin-left: 0; }
}




.page-hero {
  position: relative; isolation: isolate;
  width: min(100% - 2 * var(--gutter), var(--content));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 44px);
  display: grid; gap: 14px; justify-items: start;
}
.page-hero h1 { font-size: var(--fs-3xl); max-width: 18ch; }
.page-hero > p:not(.eyebrow) { color: var(--text-soft); font-size: var(--fs-lg); max-width: 60ch; }
.page-hero__glow {
  position: absolute; z-index: -1; left: -10%; top: -40%;
  width: min(760px, 90vw); aspect-ratio: 1.6; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 106 77 / 0.16), rgb(111 220 191 / 0.06) 60%, transparent);
  pointer-events: none;
}
.page-hero--games { padding-bottom: 28px; }


.game-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 80px); }
.game-hero__backdrop { position: absolute; inset: 0; z-index: -1; }
.game-hero__backdrop picture, .game-hero__backdrop img { width: 100%; height: 100%; object-fit: cover; }
.game-hero__backdrop img { filter: blur(60px) saturate(1.3); transform: scale(1.3); opacity: 0.5; }
.game-hero__backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(6 20 24 / 0.5), var(--bg) 96%), radial-gradient(60% 80% at 80% 50%, rgb(6 20 24 / 0.7), transparent); }
.game-hero__inner {
  width: min(100% - 2 * var(--gutter), 1200px); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
}
.breadcrumbs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-sm); color: var(--text-muted); }
.breadcrumbs a { color: var(--text-soft); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text); }
.game-hero__art { position: relative; border-radius: var(--r-xl); transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform var(--t-slow) var(--ease-out); }
.game-hero__art picture { border-radius: inherit; overflow: hidden; box-shadow: 0 0 0 1px rgb(255 224 166 / 0.3), var(--shadow-3), 0 0 90px -20px var(--glow); }
.game-hero__art img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.game-hero__copy { display: grid; gap: 18px; justify-items: start; }
.game-hero__copy h1 { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.4rem); line-height: 0.98; }
.game-hero__desc { font-size: var(--fs-lg); color: var(--text-soft); max-width: 48ch; }
.tag-new { color: var(--sea-200); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; width: 100%; max-width: 560px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.facts > div { padding: 14px 18px; background: rgb(10 30 35 / 0.9); }
.facts dt { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.facts dd { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-weight: 600; }
.facts dd a { color: var(--sea-200); text-decoration: none; }
.facts dd a:hover { text-decoration: underline; }
.game-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.fine-print { font-size: var(--fs-xs); color: var(--text-muted); }


.document-layout { width: min(100% - 2 * var(--gutter), 1120px); margin: 0 auto; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: 40px; }
.doc-toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.doc-toc p { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; margin-bottom: 10px; }
.doc-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.doc-toc a { display: block; padding: 6px 10px; border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--text-soft); text-decoration: none; }
.doc-toc a:hover { background: rgb(196 246 230 / 0.06); color: var(--text); }
.document { display: grid; gap: 12px; max-width: 72ch; }
.document > section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.document > section:first-child { padding-top: 0; }
.document h2 { display: flex; align-items: baseline; gap: 14px; font-size: var(--fs-xl); margin-bottom: 12px; }
.document h2 span { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; color: var(--coral-400); letter-spacing: 0.08em; }
.document p { color: var(--text-soft); }
.document a { color: var(--sea-200); }
.document .panel { margin-top: 20px; }
.document .panel h2 { margin-bottom: 12px; }
.care-controls .stack-form { margin-top: 16px; max-width: 460px; }
.document-contact { margin-top: 20px; font-size: var(--fs-sm); color: var(--text-muted) !important; }


.auth-page { position: relative; isolation: isolate; display: grid; place-items: center; min-height: calc(100dvh - var(--header-h) - var(--tabbar-h)); padding: 40px 16px; }
.auth-page__glow { position: absolute; z-index: -1; inset: 0; background: radial-gradient(50% 50% at 50% 30%, rgb(255 106 77 / 0.14), transparent 70%), radial-gradient(40% 40% at 70% 80%, rgb(111 220 191 / 0.08), transparent 70%); }
.auth-card { width: min(480px, 100%); padding: 36px clamp(20px, 4vw, 36px); border-radius: var(--r-xl); border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-3); display: grid; gap: 14px; }
.auth-card > .brand-mark { justify-self: center; }
.auth-card > p { color: var(--text-soft); text-align: center; }
.auth-card > a:not(.button) { justify-self: center; color: var(--sea-200); font-size: var(--fs-sm); }
.local-notice { padding: 12px 14px; border-radius: var(--r-md); background: rgb(255 224 166 / 0.08); border: 1px solid rgb(255 224 166 / 0.25); color: var(--butter-200) !important; font-size: var(--fs-sm); }


.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; width: 100%; }
.profile-head h1 { font-size: var(--fs-3xl); }
.profile-head p:not(.eyebrow) { color: var(--text-muted); }
.profile-head__signout { margin-left: auto; }
.avatar { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--coral-400), var(--coral-600)); color: var(--coral-ink); font-family: var(--font-display); font-size: 2rem; font-weight: 700; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px rgb(255 138 110 / 0.5); }
.profile-layout { width: min(100% - 2 * var(--gutter), var(--content)); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.profile-balance { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; grid-column: 1 / -1; background: radial-gradient(60% 120% at 0% 50%, rgb(255 224 166 / 0.1), transparent 60%), var(--surface); }
.profile-balance__coin { width: 72px; height: 72px; }
.profile-balance strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); line-height: 1; color: var(--butter-200); font-variant-numeric: tabular-nums; margin: 6px 0; }
.profile-balance p { color: var(--text-muted); font-size: var(--fs-sm); }
.profile-balance .button { margin-left: auto; }
.profile-display { display: grid; gap: 12px; align-content: start; }
.profile-display > p:not(.eyebrow) { color: var(--text-muted); }
.scene-radios { border: 0; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.scene-radios legend { font-size: var(--fs-sm); font-weight: 600; color: var(--text-soft); margin-bottom: 8px; }
.scene-radios label { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); cursor: pointer; transition: border-color var(--t-fast), background-color var(--t-fast); }
.scene-radios label:has(input:checked) { border-color: var(--coral-400); background: rgb(255 106 77 / 0.06); }
.scene-radios input { accent-color: var(--coral-500); width: 18px; height: 18px; }
.scene-radios strong { display: block; font-size: var(--fs-sm); }
.swatch { width: 40px; height: 40px; border-radius: 12px; flex: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); }
.swatch--amethyst { background: radial-gradient(circle at 70% 70%, var(--coral-500), transparent 55%), linear-gradient(135deg, #0e282e, #061418); }
.swatch--midnight { background: radial-gradient(circle at 70% 70%, rgb(255 106 77 / 0.5), transparent 50%), linear-gradient(135deg, #071519, #02080a); }
.swatch--sunrise { background: radial-gradient(circle at 70% 70%, #ffb199, transparent 60%), linear-gradient(135deg, #30262a, #161214); }
.activity-panel { grid-row: span 2; }
.activity-list { display: grid; margin-top: 16px; }
.activity-list article { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.activity-list article > div { display: grid; gap: 2px; }
.activity-list article > div:last-child { text-align: right; }
.credit-change { font-variant-numeric: tabular-nums; }
.credit-change.is-up { color: var(--sea-300); }
.credit-change.is-down { color: var(--text-soft); }
.pagination { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 16px; font-size: var(--fs-sm); }
.pagination a { color: var(--sea-200); }
.profile-care { display: grid; gap: 10px; justify-items: start; }
.profile-care p { color: var(--text-muted); }


.support-layout { width: min(100% - 2 * var(--gutter), var(--content)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.support-layout > div:first-child { display: grid; gap: 10px; }
.support-layout > div:first-child > h2 { margin-bottom: 8px; }
.support-layout details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); transition: border-color var(--t-fast); }
.support-layout details[open] { border-color: var(--line-strong); }
.support-layout summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.support-layout summary::-webkit-details-marker { display: none; }
.support-layout summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--sea-300); transition: transform var(--t-med) var(--ease-out); }
.support-layout details[open] summary::after { transform: rotate(45deg); }
.support-layout details p, .support-layout details a { padding: 0 18px 16px; color: var(--text-soft); display: block; }
.support-layout details a { color: var(--sea-200); }
.contact-line { margin-top: 12px; color: var(--text-muted); }
.support-form { display: grid; gap: 12px; }
.support-form > p { color: var(--text-muted); }


.page-play .site-footer { margin-top: 24px; }
.play-bar { width: min(100% - 2 * var(--gutter), 1360px); margin: 16px auto 0; display: flex; align-items: center; gap: 16px; }
.play-bar__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--text-soft); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }
.play-bar__back:hover { color: var(--text); border-color: var(--line-strong); }
.play-bar__back .icon { width: 16px; height: 16px; }
.play-bar__note { margin-left: auto; font-size: var(--fs-xs); color: var(--text-muted); }
.play-bar__note a { color: var(--sea-200); }
.play-bar .gcard__fav { position: relative; top: auto; right: auto; opacity: 1; }
.game-loading { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--text-soft); }
.game-loading__orb { width: 64px; height: 64px; border-radius: 50%; border: 3px solid rgb(196 246 230 / 0.15); border-top-color: var(--coral-400); animation: spin 900ms linear infinite; }

.game-player-wrap { --gold: var(--butter-300); --gold-bright: var(--butter-200); --line: rgb(196 246 230 / 0.16); --muted: var(--text-muted); --scene: var(--ink-750); --scene-light: var(--sea-400); }
.game-player-wrap .slot-machine { border-color: rgb(196 246 230 / 0.2) !important; }
.game-player-wrap [role="alert"] { margin-bottom: 12px; }
.game-player-wrap .button-gold { background: var(--coral-500); color: var(--coral-ink); border: 0; border-radius: var(--r-pill); min-height: 48px; padding: 0 22px; font-weight: 600; }

@media (max-width: 860px) {
  .game-hero__inner { grid-template-columns: 1fr; }
  .game-hero__art { max-width: 420px; width: 100%; justify-self: center; }
  .document-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .profile-layout, .support-layout { grid-template-columns: 1fr; }
  .activity-panel { grid-row: auto; }
  .play-bar__note { display: none; }
  .play-bar { justify-content: space-between; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { padding: 12px 14px; }
  .game-hero__actions .button { width: 100%; }
  .profile-balance .button { margin-left: 0; width: 100%; }
  .profile-head__signout { margin-left: 0; }
}
@media (max-width: 560px) {
  .page-hero { padding: 28px 0 20px; gap: 10px; }
  .page-hero > p:not(.eyebrow) { font-size: var(--fs-md); }
}
@media (hover: none) { .search-field kbd { display: none; } .search-field input { padding-right: 16px; } }



.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 5px 8px 0;
}
.brand-word {
  display: inline-flex;
  align-items: center;
  gap: .18em;
  white-space: nowrap;
  perspective: 580px;
  font-family: var(--font-body);
  font-size: clamp(1.55rem, 1.3rem + .52vw, 1.9rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.05;
}
.brand-letter {
  --lift: -8px;
  --yaw: -17deg;
  --yaw-back: 10deg;
  --bank: -4deg;
  position: relative;
  display: inline-block;
  isolation: isolate;
  color: #f7fffc;
  -webkit-text-fill-color: #f7fffc;
  text-shadow: 0 -1px 0 #fff, 0 1px 0 #c9fff3;
  transform-style: preserve-3d;
  transform-origin: center 82%;
  animation: brand-letter-kinetic 6.4s cubic-bezier(.23,.72,.28,1) infinite;
  animation-delay: calc(var(--letter-index) * .13s - .48s);
}
.brand-letter::before {
  content: attr(data-glyph);
  position: absolute;
  z-index: -1;
  top: 3px;
  left: 1px;
  color: #389ca4;
  -webkit-text-fill-color: #389ca4;
  text-shadow: 1px 1px #227b87, 2px 2px #166575, 3px 3px #105262, 4px 4px #083845, 5px 6px 7px rgb(0 0 0 / .8);
  pointer-events: none;
}
.brand-letter:nth-child(even) { --yaw: 17deg; --yaw-back: -10deg; --bank: 4deg; }
.brand-letter:nth-child(3n) { --lift: -10px; }
.brand-letter:first-child, .brand-letter:last-child { color: #fff6dc; -webkit-text-fill-color: #fff6dc; }
@keyframes brand-letter-kinetic {
  0%, 5%, 28%, 48%, 68%, 100% { transform: translate3d(0, 0, 0) rotateY(0) rotateZ(0); filter: none; }
  12% { transform: translate3d(0, var(--lift), 14px) rotateY(var(--yaw)) rotateZ(var(--bank)); filter: drop-shadow(0 0 8px rgb(158 255 235 / .75)); }
  18% { transform: translate3d(0, -2px, 6px) rotateY(var(--yaw-back)) rotateZ(0); }
  23% { transform: translate3d(0, 1px, 0) rotateY(0) rotateZ(0); }
  56% { transform: translate3d(0, -4px, 10px) rotateY(var(--yaw-back)) rotateZ(0); filter: drop-shadow(0 0 5px rgb(255 241 195 / .55)); }
  62% { transform: translate3d(0, 0, 0) rotateY(0) rotateZ(0); }
}
.brand:hover .brand-letter, .brand:focus-visible .brand-letter { animation-duration: 3.5s; }
.brand:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.icon { filter: drop-shadow(0 1px 0 rgb(255 239 197 / .65)) drop-shadow(0 2px 2px rgb(0 0 0 / .55)); }

.page-home .site-header { background: linear-gradient(180deg, rgb(2 9 12 / .84), rgb(2 9 12 / .18)); }
.page-home .site-header.is-scrolled { background: rgb(6 20 24 / .9); }

.hero {
  min-height: max(790px, 100svh);
  align-items: start;
  padding: calc(var(--header-h) + 30px) 0 100px;
}
.hero__inner {
  position: relative;
  z-index: 2;
  align-items: start;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(32px, 4vw, 72px);
}
.hero__copy { padding-top: clamp(95px, 10vw, 160px); }
.hero h1 { text-shadow: 0 12px 36px rgb(0 0 0 / .55); }
.hero__lede { text-shadow: 0 2px 12px rgb(0 0 0 / .8); }
.hero__facts { backdrop-filter: blur(8px); }

.scene {
  background: linear-gradient(180deg, #051014 0%, #092027 53%, #061419 100%);
}
.scene__harbour {
  --d: 14;
  inset: -2% -3%;
  background: url('/assets/hero.webp') 72% bottom / cover no-repeat;
  filter: saturate(.92) contrast(1.06);
}
.scene__atmosphere { --d: 8; }
.scene__atmosphere::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 9% 12%, #fff3d7 0 1px, transparent 2px),
    radial-gradient(circle at 26% 8%, #b8e8df 0 1px, transparent 2px),
    radial-gradient(circle at 39% 20%, #fff3d7 0 1px, transparent 2px),
    radial-gradient(circle at 59% 9%, #b8e8df 0 1px, transparent 2px),
    radial-gradient(circle at 77% 18%, #fff3d7 0 1px, transparent 2px),
    radial-gradient(circle at 89% 7%, #b8e8df 0 1px, transparent 2px);
  opacity: .55;
  filter: drop-shadow(0 0 4px #c8fff1);
}
.scene__moon {
  top: 8%;
  left: 28%;
  right: auto;
  width: clamp(140px, 12vw, 190px);
  border-radius: 0;
  background: none;
  box-shadow: none;
  opacity: 1;
  filter: drop-shadow(0 0 26px rgb(255 234 187 / .54)) drop-shadow(0 0 70px rgb(190 235 240 / .26));
  animation: moon-float 9s ease-in-out infinite alternate;
}
.scene__moon::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 239 193 / .25), rgb(166 224 224 / .13) 38%, transparent 67%);
}
.scene__moon::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 29% 24%, rgb(255 255 255 / .12), transparent 42%, rgb(3 18 25 / .34) 100%);
  opacity: .56;
  pointer-events: none;
}
.scene__moon img { display: block; width: 100%; height: auto; }
@keyframes moon-float { to { transform: translateY(-9px) rotate(3deg); } }
.scene__aurora--a { opacity: .2; }
.scene__aurora--b { opacity: .16; }
.scene__scrim {
  background:
    linear-gradient(90deg, rgb(2 10 13 / .68), rgb(2 10 13 / .34) 44%, rgb(2 10 13 / .08) 100%),
    linear-gradient(180deg, rgb(2 9 12 / .2), transparent 36%, rgb(3 11 14 / .1) 68%, var(--bg) 100%);
}

.hero__beacon {
  position: absolute;
  z-index: 1;
  top: 28%;
  left: 88.5%;
  width: 0;
  height: 0;
  pointer-events: none;
}
.hero__beacon-islet {
  display: none;
}
.hero__beacon-beam {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: min(40vw, 560px);
  height: clamp(140px, 20vw, 260px);
  transform-origin: 0 50%;
  transform: translateY(-50%) rotate(136deg);
  clip-path: polygon(0 49%, 100% 0, 100% 100%);
  background: linear-gradient(90deg, rgb(255 241 181 / .7), rgb(255 218 142 / .38) 27%, rgb(255 220 159 / .08) 75%, transparent);
  mix-blend-mode: screen;
  filter: blur(6px);
  opacity: .65;
  animation: beacon-cast 6s ease-in-out infinite;
}
.hero__beacon-flare {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  width: 24px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fff, #ffe4a1 35%, rgb(255 206 108 / .3) 65%, transparent 72%);
  box-shadow: 0 0 20px 7px rgb(255 215 137 / .48), 0 0 55px 17px rgb(255 195 107 / .19);
  animation: beacon-flare 6s ease-in-out infinite;
}
@keyframes beacon-cast { 50% { opacity: .9; transform: translateY(-50%) rotate(140deg); } }
@keyframes beacon-flare { 50% { opacity: .75; transform: translate(-50%, -50%) scale(1.15); } }

.portal {
  --portal: clamp(370px, 39vw, 570px);
  justify-self: end;
  margin-top: 58px;
  gap: 13px;
  perspective: 1000px;
}
.portal__stage { filter: drop-shadow(0 24px 21px rgb(0 0 0 / .5)); }
.portal__stage::after {
  top: 91%;
  height: 23%;
  background: radial-gradient(ellipse at center, rgb(255 175 104 / .32), rgb(111 220 191 / .09) 50%, transparent 73%);
  filter: blur(18px);
}
.portal__halo { inset: -17%; opacity: .65; }
.portal__plinth {
  position: absolute;
  z-index: 0;
  inset: 1%;
  border-radius: 50%;
  background: conic-gradient(from 15deg, #663931, #e7a776 11%, #45312d 25%, #c47d55 40%, #f2d39f 50%, #55372f 68%, #b67856 82%, #50312d);
  transform: translateY(17px) scaleY(.98);
  box-shadow: 0 13px 0 #241e1d, 0 19px 0 #0e1719, 0 30px 35px rgb(0 0 0 / .8), 0 0 50px rgb(244 159 92 / .18);
}
.portal__rings {
  z-index: 1;
  inset: 1.5%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -1deg, rgb(255 234 182 / .72) 0deg 1deg, transparent 1deg 5deg),
    conic-gradient(from 0deg, #281d1d, #e2ae72 8%, #54352c 18%, #d98f59 31%, #312626 42%, #f5d4a0 55%, #5e3c33 72%, #e0ac73 85%, #281d1d);
  box-shadow: inset 0 2px 6px #fff1c3, inset 0 -15px 20px rgb(25 14 12 / .9), 0 0 0 2px rgb(255 232 180 / .55), 0 0 0 6px #321f1c, 0 0 0 8px rgb(255 221 160 / .24);
}
.portal__rings svg { display: none; }
.portal__bezel {
  position: absolute;
  inset: 5.8%;
  border-radius: 50%;
  background: conic-gradient(from 18deg, #5d3b31, #ffdfa4, #58382f, #d98e5b, #332523, #f9d6a0, #5d3b31);
  box-shadow: inset 0 0 0 2px rgb(255 238 192 / .7), 0 0 0 2px #241d1b, 0 6px 14px rgb(0 0 0 / .8);
}
.portal__engraving {
  position: absolute;
  inset: 8.5%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgb(255 230 175 / .23) 0deg 3deg, transparent 3deg 30deg),
    radial-gradient(circle at 35% 30%, #164147, #081a20 55%, #041015 75%);
  box-shadow: inset 0 11px 24px rgb(0 0 0 / .75), inset 0 0 0 3px #694532, inset 0 0 0 7px #191b1b, 0 0 0 2px rgb(255 233 180 / .4);
}
.portal__inner-ring {
  position: absolute;
  inset: 16%;
  border: clamp(8px, 1vw, 13px) solid transparent;
  border-radius: 50%;
  background: linear-gradient(#07191d, #07191d) padding-box,
    conic-gradient(from 20deg, #f9ddb2, #6c3b32, #f3b879, #352423, #c7885e, #f9ddb2) border-box;
  box-shadow: 0 8px 16px rgb(0 0 0 / .8), inset 0 3px 9px rgb(0 0 0 / .85), 0 0 14px rgb(255 208 129 / .35);
}
.portal__rose {
  position: absolute;
  inset: 11%;
  background: conic-gradient(from 0deg, #ffe4ac, #527f82 12.5%, #d39462 25%, #456f77 37.5%, #ffe4ac 50%, #456f77 62.5%, #d39462 75%, #527f82 87.5%, #ffe4ac);
  clip-path: polygon(50% 0, 56% 39%, 85% 15%, 61% 43%, 100% 50%, 61% 57%, 85% 85%, 56% 61%, 50% 100%, 44% 61%, 15% 85%, 39% 57%, 0 50%, 39% 43%, 15% 15%, 44% 39%);
  filter: drop-shadow(0 5px 5px rgb(0 0 0 / .7));
  opacity: .76;
  animation: compass-drift 70s linear infinite;
}
@keyframes compass-drift { to { transform: rotate(360deg); } }
.portal__bearing {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(22px, 2.3vw, 30px);
  aspect-ratio: 1;
  border: 1px solid #f1d6a7;
  border-radius: 50%;
  background: linear-gradient(145deg, #6a4b35, #201d1b 60%, #101d20);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 3px 0 #211b18, 0 7px 8px rgb(0 0 0 / .55);
  color: #fff0c9;
  font: 800 clamp(10px, 1vw, 13px)/1 var(--font-body);
  text-shadow: 0 1px 2px #000;
}
.portal__bearing--n { top: 13%; left: 50%; transform: translate(-50%, -50%); }
.portal__bearing--e { top: 50%; right: 13%; transform: translate(50%, -50%); }
.portal__bearing--s { bottom: 13%; left: 50%; transform: translate(-50%, 50%); }
.portal__bearing--w { top: 50%; left: 13%; transform: translate(-50%, -50%); }
.portal__gem {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(8px, 1vw, 14px);
  aspect-ratio: 1;
  border-radius: 4px 50% 4px 50%;
  background: radial-gradient(circle at 28% 22%, #fffef1, #bcf6e6 27%, #258f80 65%, #073f42 90%);
  border: 1px solid #f7dab0;
  transform: rotate(var(--gem-angle)) translateY(calc(var(--portal) * -.444)) rotate(45deg);
  transform-origin: center;
  box-shadow: 0 0 0 2px #5a3a2b, inset 1px 1px 2px #fff, 0 0 12px #73ebd0;
}
.portal__gem:nth-child(3n) { background: radial-gradient(circle at 25% 20%, #fff6d4, #f2ad7c 34%, #9e4538 75%); box-shadow: 0 0 0 2px #5a3a2b, inset 1px 1px 2px #fff, 0 0 12px #ff9c75; }
.portal__pointer {
  position: absolute;
  z-index: 5;
  top: -.7%; left: 50%;
  width: clamp(24px, 3vw, 39px);
  height: clamp(35px, 4.6vw, 58px);
  transform: translateX(-50%);
  clip-path: polygon(9% 0, 91% 0, 80% 55%, 50% 100%, 20% 55%);
  background: linear-gradient(90deg, #754938 0%, #fff1be 27%, #e7a965 48%, #5c382e 83%, #281f1c 100%);
  filter: drop-shadow(0 6px 4px rgb(0 0 0 / .8));
}
.portal__pointer::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 18%;
  width: 9px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #b5f9e7 44%, #2e978d);
  box-shadow: 0 0 9px #b5f9e7;
}
.portal__beacon-light {
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 12deg, rgb(255 245 194 / .85) 27deg, rgb(255 207 121 / .42) 40deg, transparent 62deg);
  -webkit-mask-image: radial-gradient(circle, transparent 0 26%, #000 32% 48%, transparent 52%);
  mask-image: radial-gradient(circle, transparent 0 26%, #000 32% 48%, transparent 52%);
  mix-blend-mode: screen;
  opacity: .56;
  pointer-events: none;
  animation: beacon-hit 6s ease-in-out infinite;
}
@keyframes beacon-hit { 50% { opacity: .95; transform: rotate(6deg); } }
.portal.is-spinning .portal__beacon-light { opacity: 1; animation-duration: 1.2s; }
.portal__orbit--back { opacity: .6; }
.orb__scale {
  overflow: visible;
  border: 5px solid #b78855;
  background: #432c25;
  box-shadow: inset 0 0 0 2px #fff0ca, 0 0 0 2px #35211c, 0 9px 0 #39201b, 0 18px 22px rgb(0 0 0 / .7), 0 0 16px rgb(255 208 129 / .3);
}
.orb__scale picture, .orb__scale img { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.portal__core {
  inset: 22%;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px #f9dba7,
    0 0 0 10px #4b2e28,
    0 0 0 13px #dfaa73,
    0 0 0 17px #221c1c,
    0 16px 0 #1b1515,
    0 32px 40px rgb(0 0 0 / .82),
    0 0 70px var(--glow);
}
.portal__core::after {
  content: '';
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 8px 16px rgb(0 0 0 / .6), inset 0 0 0 2px rgb(255 247 217 / .35);
  pointer-events: none;
}
.portal__cue {
  top: 79%;
  border: 1px solid #f7d69c;
  background: linear-gradient(155deg, #694431, #2c2222 60%, #151e20);
  box-shadow: inset 0 1px 0 rgb(255 252 220 / .45), 0 5px 0 #271b19, 0 12px 20px rgb(0 0 0 / .65);
}
.mood-picker {
  border-color: rgb(255 225 167 / .48);
  background: linear-gradient(180deg, rgb(54 39 31 / .96), rgb(5 19 22 / .94));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .17), 0 7px 0 rgb(3 10 12 / .8), 0 15px 25px rgb(0 0 0 / .4);
}
.mood-picker input:checked + span {
  background: linear-gradient(150deg, #fff7dc, #dbaa6d 68%, #a06141);
  color: #251c1a;
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgb(0 0 0 / .55);
}
.portal__hint { color: #d6e6e1; text-shadow: 0 2px 9px #000; }

@media (min-width: 861px) and (max-width: 1000px) {
  .hero__beacon { left: 92%; }
}

.portal-tile__orb, .tab-bar__orb, .finale__ring {
  background: conic-gradient(from 30deg, #4c342a, #f6d6a0, #5c3c31, #e6a46f, #322a29, #f6d6a0, #4c342a);
  box-shadow: inset 0 3px 5px #fff2c7, inset 0 -8px 12px #1e1514, 0 6px 0 #2b1c1a, 0 17px 22px rgb(0 0 0 / .55), 0 0 28px var(--glow);
}
.portal-tile__orb::after, .tab-bar__orb::after, .finale__ring::before {
  border: 3px solid #a6e9d5;
  border-left-color: #402d28;
  box-shadow: inset 0 0 9px #123a3d, 0 0 8px #a6e9d5;
}

@media (max-width: 860px) {
  .hero { min-height: auto; padding: calc(var(--header-h) + 20px) 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 0; }
  .hero__copy { display: contents; padding: 0; }
  .portal { order: 1; --portal: min(78vw, 390px); justify-self: center; margin: 18px 0 12px; }
  .hero__copy .eyebrow--pill { order: 2; }
  .hero h1 { order: 3; margin-top: 20px; }
  .hero__lede { order: 4; }
  .hero__actions { order: 5; }
  .hero__facts { order: 6; }
  .scene__harbour { background-position: 54% center; }
  .scene__moon { display: block; width: clamp(72px, 13vw, 120px); top: 78px; left: auto; right: 3%; }
  .hero__beacon { z-index: 3; top: calc(var(--header-h) + 90px); left: auto; right: -3%; width: clamp(110px, 26vw, 180px); height: auto; aspect-ratio: 1; }
  .hero__beacon-islet { position: relative; z-index: 2; display: block; width: 100%; aspect-ratio: 1; background: url('/assets/hero.webp') center / contain no-repeat; transform: scaleX(-1); filter: drop-shadow(0 14px 14px rgb(0 0 0 / .55)); }
  .hero__beacon-beam { left: 45%; top: 19%; width: min(60vw, 400px); height: clamp(100px, 25vw, 220px); transform: translateY(-50%) rotate(147deg); opacity: .48; }
  .hero__beacon-flare { left: 45%; top: 19%; }
  @keyframes beacon-cast { 50% { opacity: .72; transform: translateY(-50%) rotate(151deg); } }
  .scene__scrim { background: linear-gradient(180deg, rgb(2 9 12 / .43), rgb(2 9 12 / .23) 32%, rgb(2 9 12 / .58) 65%, var(--bg) 100%); }
}
@media (max-width: 430px) {
  .brand-word { font-size: 1.54rem; }
  .portal { --portal: min(78vw, 320px); margin-top: 29px; }
  .scene__moon { width: 72px; top: 78px; left: auto; right: 1%; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 3.2rem); }
}
@media (prefers-reduced-motion: reduce) {
  .scene__moon { animation: none; }
  .brand-letter { animation: none; will-change: auto; }
  .hero__beacon-beam, .hero__beacon-flare, .portal__beacon-light, .portal__rose { animation: none; }
}
