/* SUNNY-SPEC portal — one stylesheet for the theme and the platform plugin's markup.
   System: warm night ground, the game art supplies colour, one sun accent for action.
   Type: Big Shoulders Display (titles), IBM Plex Sans (text), IBM Plex Mono (data). All SIL OFL, self-hosted. */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/montserrat-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/montserrat-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/montserrat-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/montserrat-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/montserrat-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/montserrat-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/montserrat-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/montserrat-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/montserrat-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/montserrat-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Big Shoulders"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/big-shoulders-display-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Big Shoulders"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/big-shoulders-display-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  color-scheme: light;
  /* Warm linen ground (not white), ink text; the game art and the game screen stay dark. */
  --ground: #f7f3ec;
  --surface: #fffdf9;
  --raised: #eee8de;
  --raised-2: #e4dccf;
  --panel: #ebe3d5;
  --panel-strong: #e0d5c3;
  --panel-line: rgba(34, 28, 20, .1);
  --ink-bg: #1b1713;
  --ink-raised: #29231c;
  --ink-text: #f3ebdd;
  --ink-muted: #bcb09b;
  --ink-line: rgba(243, 235, 221, .14);
  --line: rgba(34, 28, 20, .12);
  --line-strong: rgba(34, 28, 20, .22);
  --text: #1c1814;
  --body: #3a332a;
  --muted: #5c5446;
  --faint: #6e6558;
  --sun: #ffb21f;
  --sun-strong: #ffc247;
  --on-sun: #1c1405;
  --sun-ink: #9a5200;
  --sun-ink-strong: #7a4000;
  --sun-tint: rgba(255, 178, 31, .16);
  --screen: #16130f;
  --ok: #1e8449;
  --warn: #b93a14;
  --shadow: 0 1px 2px rgba(34, 28, 20, .05), 0 12px 32px -18px rgba(34, 28, 20, .35);
  --world-accent: var(--sun);
  --world-ink: var(--sun-ink);

  /* v6: Montserrat across the whole site (headings, text, UI). Mono stays for numbers/codes. */
  --font-display: "Montserrat", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-text: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::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: 100vh;
  background: var(--ground);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--sun-ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sun); color: var(--on-sun); }
[hidden] { display: none !important; }
main { display: block; }
main:focus { outline: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden, .screen-reader-text {
  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; top: 10px; left: 10px; z-index: 100; padding: 12px 18px; border-radius: var(--radius-sm);
  background: var(--sun); color: var(--on-sun); font-weight: 600; text-decoration: none; transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.icon { flex: none; width: 1.15em; height: 1.15em; }

/* Brand words wrapped on Turkish pages (see va_theme_mark_brand_words): casing only, no other styling. */
[data-brand-text] { all: unset !important; }
/* Not `all: unset` here: that would also reset the locale taken from lang="en". */
[data-brand-text] span[lang="en"] { display: inline !important; position: static !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; color: inherit !important; font: inherit !important; letter-spacing: inherit !important; text-transform: inherit !important; overflow: visible !important; clip: auto !important; }

/* ---------- Type roles ---------- */
.eyebrow, .world-card__kicker, .game-bar__kicker, .note-card__meta, .hero__worlds-label, .spec-list dt, .loop__num, .va-kicker, .panel-index, .account-manifest-label {
  font: 500 .75rem/1.3 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow { display: block; margin-bottom: 14px; color: var(--sun-ink); }
.muted { color: var(--muted); }
h1, .display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .92;
  font-size: clamp(2.9rem, 7.4vw, 6.4rem);
}
h2 { font: 800 clamp(2.1rem, 4.4vw, 3.6rem)/.95 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
h3 { font-size: 1.2rem; font-weight: 600; }

/* ---------- Buttons & links ---------- */
.button, .va-button, .wp-block-button__link, #account-login .button, .account-signup button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--sun); color: var(--on-sun);
  font: 600 .98rem/1.1 var(--font-text); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.button:hover, .va-button:hover, #account-login .button:hover, .account-signup button[type="submit"]:hover { background: var(--sun-strong); }
.button:active, .va-button:active { transform: translateY(1px); }
.button--ghost, .va-button--secondary {
  background: transparent; color: var(--text); border-color: var(--line-strong);
}
.button--ghost:hover, .va-button--secondary:hover { background: var(--surface); border-color: var(--text); }
.button[disabled], .button[aria-disabled="true"], button[disabled] { opacity: .5; cursor: not-allowed; }
.button .icon--play { width: .95em; height: .95em; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }

.text-link, .back-link {
  display: inline-flex; align-items: center; gap: .45em;
  min-height: 44px;
  color: var(--text); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid transparent;
}
.text-link { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .35em; }
.text-link:hover { text-decoration-color: var(--sun); color: var(--sun-ink-strong); }
.text-link .icon { transition: transform .18s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.back-link { color: var(--muted); font-size: .92rem; }
.back-link:hover { color: var(--text); }

.sep { margin-inline: .6em; color: var(--faint); }
.live-dot { display: inline-block; flex: none; width: 8px; height: 8px; margin-right: .55em; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(30, 132, 73, .16); vertical-align: middle; }
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: live-pulse 2.4s ease-in-out infinite; }
  @keyframes live-pulse { 50% { box-shadow: 0 0 0 6px rgba(30, 132, 73, 0); } }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(245, 241, 234, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.brand img { width: 176px; height: auto; }
.primary-nav { margin-left: 18px; }
.primary-nav ul { display: flex; gap: 4px; list-style: none; }
.primary-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .95rem; text-decoration: none;
  transition: color .15s, background-color .15s;
}
.primary-nav a:hover { color: var(--text); background: var(--raised); }
.primary-nav a[aria-current="page"] { color: var(--text); background: var(--raised); box-shadow: inset 0 -2px 0 var(--sun); }
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.coin-chip, .account-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .92rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: border-color .15s, background-color .15s;
}
.coin-chip { color: var(--sun-ink-strong); font-family: var(--font-mono); border-color: rgba(196, 122, 0, .35); background: var(--sun-tint); }
.coin-chip:hover, .account-link:hover { border-color: var(--text); }
.account-link[aria-current="page"] { background: var(--raised); }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.lang-switch a {
  display: inline-grid; place-items: center; min-width: 40px; min-height: 36px; padding: 0 8px; border-radius: 999px;
  font: 500 .78rem/1 var(--font-mono); letter-spacing: .06em; color: var(--muted); text-decoration: none;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--text); color: var(--surface); }
.menu-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; cursor: pointer; font-weight: 500;
}
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }
.menu-toggle[aria-expanded="true"] .icon--menu { display: none; }
.mobile-menu { border-top: 1px solid var(--line); height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; background: var(--ground); }
.mobile-menu nav { padding-block: 12px 28px; }
.mobile-menu__primary { list-style: none; }
.mobile-menu__primary a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line);
  font: 800 2.1rem/1 var(--font-display); text-transform: uppercase; text-decoration: none;
}
.mobile-menu__primary a span { font: 500 .75rem/1 var(--font-mono); color: var(--faint); }
.mobile-menu__primary a[aria-current="page"] { color: var(--sun-ink); }
.mobile-menu__secondary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.mobile-menu__secondary > a:not(.button) { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); }
.mobile-menu__secondary .button { width: 100%; }
.mobile-menu__secondary .button small { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-family: var(--font-mono); color: var(--sun-ink); }

@media (max-width: 1080px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .account-link { padding: 0 12px; }
}
@media (max-width: 720px) {
  .account-link span, .coin-chip { display: none; }
  .account-link { width: 44px; padding: 0; justify-content: center; }
  .brand img { width: 140px; }
  .header-tools { gap: 8px; }
}
@media (max-width: 400px) {
  .brand img { width: 118px; }
  .lang-switch a { min-width: 34px; }
  .menu-toggle span { display: none; }
  .menu-toggle { width: 44px; padding: 0; justify-content: center; }
}
@media (min-width: 1081px) { .mobile-menu { display: none !important; } }
.site-header.is-open { background: var(--ground); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--tight { padding-block: clamp(36px, 5vw, 72px); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; max-width: none; }
.section-head .text-link { margin-top: 12px; }

/* ---------- Hero (home) ---------- */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(40px, 6vw, 72px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.hero__copy { max-width: 640px; }
.hero h1 { font-size: clamp(3.4rem, 7.2vw, 7rem); }
.hero h1 span, .page-hero h1 span {
  display: inline; color: var(--text);
  background: linear-gradient(transparent 56%, var(--sun) 56%, var(--sun) 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__lead { max-width: 34em; margin-top: 22px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--body); }
.assurances { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; list-style: none; }
.assurances li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font-size: .88rem; color: var(--body);
}
.assurances .icon { color: var(--sun-ink); width: 1em; height: 1em; }

.hero__screen {
  position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden;
  background: var(--screen); box-shadow: 0 30px 60px -30px rgba(34, 28, 20, .55), 0 0 0 1px rgba(34, 28, 20, .08);
}
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s var(--ease); }
.hero__slide[data-active] { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s var(--ease); }
.hero__slide[data-active] img { transform: scale(1); }
.hero__slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; padding: 64px 24px 20px;
  background: linear-gradient(0deg, rgba(10, 9, 7, .85), rgba(10, 9, 7, 0)); color: #fff8ec;
}
.hero__slide figcaption span { font: 500 .75rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--world-accent); }
.hero__slide figcaption strong { font: 800 clamp(1.8rem, 3.2vw, 2.8rem)/1 var(--font-display); text-transform: uppercase; }

.hero__worlds { margin-top: clamp(28px, 4vw, 48px); }
.hero__worlds ol { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hero__worlds a {
  position: relative; height: 100%;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "num name go" "num genre go";
  align-items: center; column-gap: 12px; padding: 16px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  text-decoration: none; overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.hero__worlds a::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--world-accent); transform: scaleX(.18); transform-origin: left; transition: transform .35s var(--ease); }
.hero__num { grid-area: num; font: 500 .8rem/1 var(--font-mono); color: var(--faint); }
.hero__name { grid-area: name; font: 800 clamp(1.3rem, 1.9vw, 1.7rem)/1 var(--font-display); text-transform: uppercase; }
.hero__genre { grid-area: genre; margin-top: 4px; font-size: .84rem; color: var(--muted); }
.hero__go {
  grid-area: go; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-size: 0; color: var(--text); border: 1px solid var(--line-strong); transition: background-color .2s, border-color .2s;
}
.hero__go .icon { width: 18px; height: 18px; }
.hero__worlds a[data-active], .hero__worlds a:hover, .hero__worlds a:focus-visible { border-color: var(--line-strong); transform: translateY(-2px); }
.hero__worlds a[data-active]::before, .hero__worlds a:hover::before, .hero__worlds a:focus-visible::before { transform: none; }
.hero__worlds a[data-active] .hero__num { color: var(--world-ink); }
.hero__worlds a[data-active] .hero__go, .hero__worlds a:hover .hero__go { background: var(--sun); border-color: var(--sun); color: var(--on-sun); }

@media (max-width: 1080px) { .hero__worlds ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__screen { order: -1; border-radius: 18px; }
}
@media (max-width: 560px) {
  .hero__worlds ol { grid-template-columns: 1fr; gap: 8px; }
  .hero__worlds a { padding: 12px 14px; }
  .hero__slide figcaption { padding: 40px 16px 14px; }
}

/* ---------- How it works ---------- */
.loop { border-bottom: 1px solid var(--line); }
.loop__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.loop__steps:has(> li:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .loop__steps:has(> li:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .loop__steps:has(> li:nth-child(4)) li:nth-child(3) { padding-left: 0; border-left: 0; } }
.loop__steps li { padding: 28px 28px 8px 0; }
.loop__steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.loop__num { display: block; margin-bottom: 36px; color: var(--sun-ink); }
.loop__steps h3 { font: 800 clamp(1.6rem, 2.4vw, 2rem)/1 var(--font-display); text-transform: uppercase; margin-bottom: 12px; }
.loop__steps p { color: var(--muted); max-width: 30em; }
.loop__note { display: flex; align-items: flex-start; gap: 10px; margin-top: 40px; padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); color: var(--muted); font-size: .95rem; }
.loop__note .icon { color: var(--sun-ink); margin-top: 3px; }
@media (max-width: 800px) {
  .loop__steps { grid-template-columns: 1fr; }
  .loop__steps li, .loop__steps li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .loop__num { margin-bottom: 14px; }
}

/* ---------- World cards ---------- */
.worlds__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.world-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.world-card::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--world-accent); pointer-events: none; }
.world-card:hover { border-color: var(--line-strong); }
.world-card__art { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--screen); }
.world-card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.world-card:hover .world-card__art img { transform: scale(1.035); }
.world-card__play {
  position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--sun); color: var(--on-sun); box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  transform: scale(.9); opacity: .92; transition: transform .25s var(--ease), opacity .25s;
}
.world-card:hover .world-card__play { transform: scale(1); opacity: 1; }
.world-card__play .icon { width: 22px; height: 22px; margin-left: 3px; }
.world-card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 2.4vw, 32px); }
.world-card__kicker { display: flex; align-items: center; margin-bottom: 12px; }
.world-card__title { font: 800 clamp(2.2rem, 3.4vw, 3rem)/.95 var(--font-display); text-transform: uppercase; }
.world-card__title a { text-decoration: none; }
.world-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.world-card__title a:focus-visible { outline: none; }
.world-card:has(.world-card__title a:focus-visible) { outline: 2px solid var(--sun-ink); outline-offset: 3px; }
.world-card__genre { margin-top: 8px; color: var(--world-ink); font-size: .92rem; font-weight: 500; }
.world-card__promise { margin-top: 16px; color: var(--body); }
.world-card__short { margin-top: 12px; color: var(--muted); }
.world-card__facts { display: grid; gap: 6px; margin-top: 18px; list-style: none; color: var(--muted); font-size: .94rem; }
.world-card__facts li { position: relative; padding-left: 20px; }
.world-card__facts li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--world-ink); }
.world-card .spec-list { margin-top: 22px; }
.world-card__actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: auto; padding-top: 26px; }
.world-card--compact .world-card__body { padding: 20px; }
.world-card--compact .world-card__title { font-size: 1.9rem; }
@media (max-width: 860px) { .worlds__grid { grid-template-columns: 1fr; } }

/* Data list shared by cards, spec sheet and status panels */
.spec-list { display: grid; margin: 0; border-top: 1px solid var(--line); }
.spec-list > div { display: grid; grid-template-columns: minmax(96px, 36%) minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { padding-top: .2em; }
.spec-list dd { margin: 0; font-size: .95rem; }
.spec-list--status dd.is-on::before, .spec-list--status dd.is-off::before { content: ""; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--ok); }
.spec-list--status dd.is-off::before { background: transparent; border: 1.5px solid var(--faint); }

/* ---------- Field notes ---------- */
.notes { background: var(--raised); border-block: 1px solid var(--line); }
.notes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.note-card { position: relative; display: flex; flex-direction: column; }
.note-card__cover { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--raised); }
.note-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.note-card:hover .note-card__cover img { transform: scale(1.03); }
.note-card__body { padding-top: 18px; }
.note-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; }
.note-card__meta span { color: var(--sun-ink); }
.note-card__title { font: 600 1.28rem/1.25 var(--font-text); text-transform: none; letter-spacing: 0; }
.note-card__title a { text-decoration: none; }
.note-card__title a::after { content: ""; position: absolute; inset: 0; }
.note-card:hover .note-card__title a { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; }
.note-card__excerpt { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.notes__grid--journal .note-card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: center; }
.notes__grid--journal .note-card--lead .note-card__title { font: 800 clamp(2rem, 3.6vw, 3.2rem)/.98 var(--font-display); text-transform: uppercase; }
@media (max-width: 960px) { .notes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .notes__grid--journal .note-card--lead { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .notes__grid { grid-template-columns: 1fr; } }

/* ---------- FAQ accordion ---------- */
.faq-teaser__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .faq-teaser__layout { grid-template-columns: 1fr; } }
.accordion { border-top: 1px solid var(--line-strong); }
.accordion details { border-bottom: 1px solid var(--line-strong); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font-size: 1.08rem; font-weight: 500;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px;
  border-right: 2px solid var(--sun-ink); border-bottom: 2px solid var(--sun-ink);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.accordion summary:hover { color: var(--sun-ink-strong); }
.accordion details p { padding: 0 40px 22px 0; color: var(--muted); max-width: 44em; }

/* ---------- Page heroes ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); background: radial-gradient(90% 120% at 100% 0%, rgba(255, 178, 31, .16), rgba(255, 178, 31, 0) 55%), var(--ground); }
.page-hero--compact h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); }
.page-hero__lead { max-width: 40em; margin-top: 20px; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--body); }
.page-hero .assurances { margin-top: 26px; }
.page-hero__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-hero__art { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.page-hero__art img { width: 100%; height: auto; }
@media (max-width: 860px) { .page-hero__split { grid-template-columns: 1fr; } }

.studio-queue { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.studio-queue p { color: var(--muted); margin-top: 12px; }
.studio-queue ol { list-style: none; }
.studio-queue a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.studio-queue a span { color: var(--muted); font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; }
@media (max-width: 760px) { .studio-queue { grid-template-columns: 1fr; } }

/* ---------- Game page ---------- */
.game-theatre { padding: 14px var(--gutter) 0; }
.game-bar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 22px;
  max-width: 1600px; margin: 0 auto 14px;
}
.game-bar__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: .9rem; text-decoration: none; }
.game-bar__back:hover { color: var(--text); border-color: var(--text); }
.game-bar__title { min-width: 0; }
.game-bar__kicker { display: flex; align-items: center; flex-wrap: wrap; }
.game-bar__genre { color: var(--world-ink); }
.game-bar h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; margin-top: 4px; overflow-wrap: anywhere; }
.game-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.tool-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text);
  font-size: .92rem; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background-color .15s;
}
.tool-button:hover { border-color: var(--text); background: var(--surface); }
.tool-button--primary { background: var(--sun); border-color: var(--sun); color: var(--on-sun); font-weight: 600; }
.tool-button--primary:hover { background: var(--sun-strong); border-color: var(--sun-strong); }
.tool-button--icon { width: 44px; padding: 0; }
.tool-button__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.game-tool-status { grid-column: 1 / -1; color: var(--warn); font-size: .9rem; }

.game-frame-shell {
  position: relative; isolation: isolate;
  max-width: 1600px; margin: 0 auto;
  height: calc(100dvh - var(--header-h) - 104px); min-height: 520px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  overflow: hidden; background: var(--screen);
}
.game-frame-shell__backdrop { position: absolute; inset: -30px; z-index: -1; width: calc(100% + 60px); height: calc(100% + 60px); max-width: none; object-fit: cover; filter: blur(26px) brightness(.35) saturate(1.2); }
.game-frame-shell iframe { position: relative; display: block; width: 100%; height: 100%; border: 0; background: transparent; opacity: 0; transition: opacity .4s var(--ease); }
.game-frame-shell.is-ready iframe { opacity: 1; background: #000; }
.game-frame-shell[data-orientation="portrait"] iframe { width: min(100%, calc((100dvh - var(--header-h) - 104px) * .62), 560px); margin-inline: auto; box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .6); }
.game-frame-shell:fullscreen { max-width: none; height: 100%; border: 0; border-radius: 0; }
.game-frame-shell:fullscreen[data-orientation="portrait"] iframe { width: min(100%, calc(100vh * .62)); }
.game-loader, .game-frame-error { color: #fff8ec;
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center;
}
.game-loader strong { font: 800 1.8rem/1 var(--font-display); text-transform: uppercase; margin-top: 8px; }
.game-loader small, .game-frame-error p { color: #d6ccba; max-width: 30em; }
.game-loader__sun { width: 64px; height: 64px; border-radius: 50%; border: 3px solid rgba(255, 182, 39, .25); border-top-color: var(--sun); }
@media (prefers-reduced-motion: no-preference) { .game-loader__sun { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } }
.game-frame-error { background: rgba(22, 19, 15, .9); }
.game-frame-error strong { font: 800 1.8rem/1 var(--font-display); text-transform: uppercase; }
.game-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; max-width: 1600px; margin: 6px auto 0; color: var(--muted); font-size: .88rem; }
.game-hint > span { display: inline-flex; align-items: center; gap: 8px; }
.game-hint.wrap { width: auto; }

@media (max-width: 860px) {
  .game-theatre { padding-inline: 0; }
  .game-bar { grid-template-columns: auto minmax(0, 1fr); padding-inline: var(--gutter); }
  .game-bar__back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .game-bar__back { width: 44px; padding: 0; justify-content: center; }
  .game-tools { grid-column: 1 / -1; flex-wrap: nowrap; justify-content: stretch; }
  .game-tools { gap: 6px; }
  .game-tools .tool-button { gap: 6px; }
  .game-tools .tool-button:not(.tool-button--icon) { flex: 1 1 0; min-width: 0; padding: 0 8px; }
  .game-tools .tool-button span { overflow: hidden; text-overflow: ellipsis; }
  .game-frame-shell { height: calc(100dvh - var(--header-h) - 150px); min-height: 480px; border-radius: 0; border-inline: 0; }
  .game-frame-shell[data-orientation="portrait"] iframe { width: 100%; box-shadow: none; }
  .game-hint { padding-inline: var(--gutter); }
}
@media (max-width: 400px) { .game-bar__genre, .game-bar__kicker .sep { display: none; } .game-tools .tool-button:not(.tool-button--primary):not(.tool-button--icon) .icon { display: none; } }

.game-about { border-top: 1px solid var(--line); }
.game-about:focus { outline: none; }
.game-about__layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.game-about__promise { margin-top: 20px; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--text); max-width: 36em; }
.game-description { margin-top: 18px; color: var(--muted); }
.spec-sheet { position: sticky; top: calc(var(--header-h) + 20px); padding: 24px; border: 1px solid var(--line); border-top: 3px solid var(--world-accent); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.spec-sheet h3 { font: 500 .78rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.spec-sheet .button { width: 100%; margin-top: 20px; }
@media (max-width: 900px) { .game-about__layout { grid-template-columns: 1fr; } .spec-sheet { position: static; } }
.more-worlds { background: var(--raised); border-top: 1px solid var(--line); }
.more-worlds__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.more-worlds .world-card { background: var(--surface); }
@media (max-width: 960px) { .more-worlds__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .more-worlds__grid { grid-template-columns: 1fr; } }

.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.detail-art img, .development-slot { border-radius: var(--radius); }
.development-slot { display: grid; place-items: center; aspect-ratio: 16/9; border: 1px dashed var(--line-strong); color: var(--muted); font-family: var(--font-mono); }
@media (max-width: 760px) { .detail-layout { grid-template-columns: 1fr; } }

/* ---------- Dialogs (exchange + Sunny Coin) ---------- */
.host-dialog {
  width: min(680px, calc(100% - 24px)); max-height: min(88dvh, 860px); padding: 0;
  border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); color: var(--text);
  box-shadow: 0 40px 100px -20px rgba(34, 28, 20, .45);
  overflow: hidden;
}
.host-dialog[open] { display: flex; flex-direction: column; }
.host-dialog::backdrop { background: rgba(28, 24, 20, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: no-preference) { .host-dialog[open] { animation: dialog-in .28s var(--ease); } @keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.985); } } }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.dialog-heading .eyebrow { margin-bottom: 8px; }
.dialog-heading h2 { font-size: clamp(1.9rem, 4vw, 2.4rem); }
.dialog-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; cursor: pointer; }
.dialog-close:hover { border-color: var(--text); }
.dialog-scroll-region { flex: 1; overflow-y: auto; padding: 18px 22px 22px; overscroll-behavior: contain; }
.dialog-footer { padding: 14px 22px 20px; border-top: 1px solid var(--line); background: var(--ground); }
.dialog-footer:empty { display: none; }
.dialog-actions { display: flex; gap: 10px; }
.dialog-actions .button { flex: 1; }
.dialog-status { color: var(--muted); font-size: .9rem; }
.dialog-status:empty { display: none; }
.dialog-footer > * + * { margin-top: 10px; }
.dialog-balance { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--sun-tint); border: 1px solid rgba(196, 122, 0, .3); }
.dialog-balance span { color: var(--muted); font-size: .9rem; }
.dialog-balance strong { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); color: var(--sun-ink-strong); }
.host-dialog .muted { margin-bottom: 14px; }
.exchange-selected { padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--sun-ink); color: var(--sun-ink-strong); background: var(--sun-tint); font-family: var(--font-mono); font-size: .9rem; }
.host-dialog .notice { display: flex; gap: 10px; align-items: flex-start; }

/* Exchange offers (plugin markup) */
.va-exchange-catalog h2 { font: 500 .78rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 10px; }
.va-exchange-catalog > p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.va-exchange-catalog ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.va-exchange-offer button, .va-exchange-offer__preview {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; width: 100%; min-height: 56px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  font: 500 .88rem/1.3 var(--font-mono); text-align: left;
}
.va-exchange-offer button { cursor: pointer; transition: border-color .15s, background-color .15s; }
.va-exchange-offer button:hover { border-color: var(--text); }
.va-exchange-offer button[aria-pressed="true"] { border-color: var(--sun-ink); background: var(--sun-tint); box-shadow: inset 0 0 0 1px var(--sun-ink); }
.va-exchange-offer strong { color: var(--sun-ink); }
@media (max-width: 480px) { .va-exchange-catalog ul { grid-template-columns: 1fr; } }

/* Sunny Coin packs (plugin markup) */
.va-token-packs > h2 { font: 800 1.8rem/1 var(--font-display); text-transform: uppercase; margin: 8px 0 8px; }
.va-token-packs > p { color: var(--muted); margin-bottom: 14px; }
.va-token-packs form { margin-bottom: 16px; }
.va-token-packs label { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; }
select, input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea {
  min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-size: 1rem;
}
select { padding-right: 36px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sun-ink); outline-offset: 1px; border-color: transparent; }
.va-pack-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.va-token-pack { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.va-pack-primary { display: grid; gap: 2px; }
.va-pack-token-count { font: 800 2rem/1 var(--font-display); color: var(--sun-ink); }
.va-pack-token-label { font: 500 .72rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.va-pack-price { margin-top: 8px; font-family: var(--font-mono); }
.va-pack-price span { color: var(--muted); font-size: .85rem; }
.va-pack-breakdown { display: grid; gap: 4px; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: .82rem; }
.va-pack-breakdown div { display: flex; justify-content: space-between; gap: 8px; }
.va-pack-breakdown dt { color: var(--muted); }
.va-pack-breakdown dd { margin: 0; font-family: var(--font-mono); }
/* Packs are shown as a price list; selection and checkout controls stay out of view. */
.va-pack-select, .guest-checkout-panel, [data-provider-handoff] { display: none !important; }
.va-pack-select { margin-top: auto; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; cursor: pointer; font-weight: 500; font-size: .88rem; }
.va-pack-select:hover { border-color: var(--text); }
.va-token-packs > small { display: block; margin-top: 14px; color: var(--faint); font-size: .8rem; }
.guest-checkout-panel { display: grid; gap: 10px; margin-top: 16px; padding: 18px; border: 1px solid var(--sun); border-radius: var(--radius-sm); background: var(--sun-tint); }
.guest-checkout-panel h3 { font: 800 1.6rem/1 var(--font-display); text-transform: uppercase; }
.guest-checkout-panel p { color: var(--muted); }

.notice {
  padding: 14px 16px; border: 1px solid var(--line-strong); border-left: 3px solid var(--sun); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--body); font-size: .95rem;
}
.notice .icon { color: var(--sun-ink); margin-top: 2px; }
.notice--ok { border-left-color: var(--ok); margin-top: 18px; }
.notice strong { display: block; margin-bottom: 4px; }

/* ---------- Panels, forms, account ---------- */
.panel { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.account-access { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(260px, .8fr); gap: 20px; padding-block: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 1100px) { .account-access { grid-template-columns: 1fr 1fr; } .access-benefits { grid-column: 1 / -1; } }
@media (max-width: 760px) { .account-access { grid-template-columns: 1fr; } }
.access-signin h2, .account-signup h2 { font-size: clamp(2rem, 3vw, 2.6rem); margin-bottom: 14px; }
.access-signin .eyebrow, .account-signup .eyebrow { margin-bottom: 10px; }
.account-signup > p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
#account-login p, .account-signup label { display: grid; gap: 6px; margin-bottom: 14px; }
#account-login label, .account-signup label { font-size: .9rem; font-weight: 500; color: var(--body); }
#account-login input[type="text"], #account-login input[type="password"], .account-signup input { width: 100%; }
#account-login .login-remember label { display: inline-flex; align-items: center; gap: 10px; font-weight: 400; color: var(--muted); }
#account-login input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--sun-ink); }
#account-login .button, .account-signup button[type="submit"] { width: 100%; margin-top: 4px; }
.account-signup form { display: grid; }
.account-signup__signin { margin-top: 14px; color: var(--muted); font-size: .92rem; }
.account-signup__signin a { color: var(--text); }
.account-signup__error { margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--warn); border-radius: var(--radius-sm); color: var(--warn); }
.account-signup--disabled { display: grid; gap: 14px; }
.form-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; color: var(--faint); font-size: .85rem; }
.form-note .icon { margin-top: 2px; }
.access-benefits { padding: 8px 0; }
.access-benefits h2 { font-size: 1.8rem; margin-bottom: 18px; }
.access-benefits ul { list-style: none; display: grid; gap: 18px; margin-bottom: 20px; }
.access-benefits li { display: flex; gap: 14px; }
.access-benefits li .icon { color: var(--sun-ink); width: 22px; height: 22px; margin-top: 2px; }
.access-benefits strong { display: block; font-weight: 600; }
.access-benefits span { color: var(--muted); font-size: .92rem; }
.access-benefits .muted { font-size: .88rem; }

.account-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); gap: 32px; align-items: end; }
@media (max-width: 860px) { .account-hero { grid-template-columns: 1fr; } }
.balance-card { padding: 24px; border: 1px solid rgba(196, 122, 0, .3); border-radius: var(--radius); background: linear-gradient(160deg, rgba(255, 178, 31, .26), rgba(255, 178, 31, .04) 65%), var(--surface); box-shadow: var(--shadow); }
.balance-card__label { font: 500 .75rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.balance-card__value { display: flex; align-items: center; gap: 12px; margin-top: 12px; font: 800 clamp(2.8rem, 5vw, 3.8rem)/1 var(--font-display); color: var(--text); }
.balance-card__value .icon { color: var(--sun-ink); }
.balance-card__value .icon { width: 34px; height: 34px; }
.balance-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.balance-card__actions .button { flex: 1; }

/* Plugin account dashboard */
.account-dashboard { padding-block: clamp(32px, 5vw, 64px); }
.account-command { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.account-command h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.account-command p { color: var(--muted); margin-top: 8px; max-width: 40em; }
.account-command .eyebrow { margin-bottom: 8px; }
.account-nav { position: sticky; top: var(--header-h); z-index: 5; display: flex; gap: 6px; overflow-x: auto; margin-bottom: 20px; padding: 10px 0; background: var(--ground); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.account-nav a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .9rem; text-decoration: none; color: var(--muted); }
.account-nav a:hover { color: var(--text); border-color: var(--text); }
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .account-layout { grid-template-columns: 1fr; } }
.account-main { display: grid; gap: 16px; }
.account-panel { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 70px); }
.account-panel h2 { font-size: 1.9rem; margin: 6px 0 14px; }
.account-panel > p { color: var(--muted); margin-bottom: 14px; }
.panel-index { color: var(--sun-ink); }
.account-readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0 0 14px; }
.account-readout div { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ground); }
.account-readout dt { font: 500 .72rem/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.account-readout dd { margin: 8px 0 0; font-family: var(--font-mono); font-size: 1.05rem; overflow-wrap: anywhere; }
.account-readout .account-balance { color: var(--text); font: 800 2rem/1 var(--font-display); }
.referral-link-control { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.referral-link-control input { flex: 1 1 260px; font-family: var(--font-mono); font-size: .9rem; }
.commission-balances { display: grid; gap: 8px; margin-bottom: 12px; }
.commission-balance { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: .88rem; }
.availability-note { color: var(--faint); font-size: .88rem; }
.account-panel .empty-state { color: var(--muted); }
.account-verification button[disabled] { min-height: 44px; padding: 0 18px; border: 1px dashed var(--line-strong); border-radius: 999px; background: transparent; color: var(--muted); }
.commission-history { list-style: none; display: grid; gap: 6px; }
.commission-history li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.commission-history small { display: block; color: var(--faint); }
.account-rail { position: sticky; top: calc(var(--header-h) + 80px); padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.account-rail h2 { font-size: 1.6rem; margin: 6px 0 12px; }
.account-rail ul { list-style: none; display: grid; gap: 4px; margin-bottom: 14px; font-size: .95rem; }
.account-rail ul a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; }
.account-rail ul a:hover { color: var(--sun-ink-strong); text-decoration: underline; }
.account-rail a { color: var(--text); }
@media (max-width: 960px) { .account-rail { position: static; } }
/* Guest gateway from the plugin is replaced by the theme's sign-in layout; keep a style if it appears elsewhere. */
.account-gateway { display: grid; gap: 20px; }

/* ---------- Wallet page (plugin markup) ---------- */
.wallet-body { padding-block: clamp(32px, 5vw, 56px); }
.va-wallet { display: grid; gap: 22px; }
.va-wallet > header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 24px; border: 1px solid rgba(196, 122, 0, .3); border-radius: var(--radius); background: linear-gradient(160deg, rgba(255, 178, 31, .26), rgba(255, 178, 31, .04) 65%), var(--surface); box-shadow: var(--shadow); }
.va-kicker { display: block; }
.va-wallet-balance { margin-top: 10px; font: 800 clamp(3rem, 7vw, 5rem)/1 var(--font-display); color: var(--text); }
.va-wallet-balance small { color: var(--sun-ink); }
.va-wallet-balance small { font-size: .5em; }
.va-wallet-state { font: 500 .75rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.va-wallet > p { color: var(--muted); }
.va-wallet > h2, .va-wallet--guest > h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-top: 16px; }
.va-wallet .va-token-packs, .va-wallet .va-exchange-catalog { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.va-wallet .va-token-pack, .va-wallet .va-exchange-offer__preview, .va-wallet .va-exchange-offer button { background: var(--ground); }
.va-wallet .va-exchange-catalog h2 { font: 800 1.8rem/1 var(--font-display); letter-spacing: .01em; color: var(--text); }
.va-wallet .va-exchange-catalog ul { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.va-wallet-history { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.va-wallet-history > h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: 14px; }
.va-wallet-history > p { color: var(--muted); }
.va-ledger { list-style: none; border-top: 1px solid var(--line); }
.va-ledger-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.va-ledger-row > span { display: grid; gap: 2px; }
.va-ledger-row small { color: var(--faint); font-family: var(--font-mono); font-size: .8rem; }
.va-ledger-row > strong { font-family: var(--font-mono); }
.is-positive { color: var(--ok); }
.is-negative { color: var(--warn); }
.va-history-pages { display: flex; gap: 16px; align-items: center; }
.va-history-pages a { min-height: 44px; display: inline-flex; align-items: center; }
.va-site-links { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; }
.va-site-links a { color: var(--muted); min-height: 36px; display: inline-flex; align-items: center; }
.va-site-links a:hover { color: var(--text); }
.va-wallet--guest { gap: 18px; }
.va-wallet--guest > h2:first-child { display: none; }
.va-wallet--guest > p { color: var(--muted); }

/* ---------- Information & legal pages ---------- */
.info-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: clamp(28px, 5vw, 72px); padding-block: clamp(32px, 5vw, 64px); }
.info-layout > *, .game-about__layout > *, .account-layout > *, .faq-teaser__layout > *, .readiness > *, .page-hero__split > * { min-width: 0; }
.info-layout--single { grid-template-columns: minmax(0, 860px); padding-block: 0; }
.info-nav ul { position: sticky; top: calc(var(--header-h) + 24px); list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.info-nav a { display: block; padding: 10px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .95rem; }
.info-nav a:hover { color: var(--text); }
.info-nav a[aria-current="page"] { color: var(--text); font-weight: 500; border-left-color: var(--sun); }
.info-content .va-site-links { display: none; }
@media (max-width: 860px) {
  .info-layout { grid-template-columns: 1fr; }
  .info-nav ul { position: static; display: flex; overflow-x: auto; gap: 6px; border-left: 0; padding-bottom: 4px; scrollbar-width: none; }
  .info-nav a { flex: none; margin: 0; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; white-space: nowrap; }
  .info-nav a[aria-current="page"] { border-color: var(--text); background: var(--text); color: var(--surface); }
}
.va-legal-draft { display: inline-block; margin-bottom: 22px; padding: 6px 12px; border: 1px dashed var(--warn); border-radius: 999px; color: var(--warn); font: 500 .74rem/1.3 var(--font-mono); letter-spacing: .06em; }
.va-operator-register { margin-top: 40px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: .88rem; color: var(--muted); }
.va-operator-register h2 { font: 800 1.5rem/1 var(--font-display) !important; margin: 0 0 10px !important; color: var(--text); }
.va-operator-register address { font-style: normal; margin-top: 8px; }

/* Long-form text */
.prose { font-size: 1.04rem; line-height: 1.72; color: var(--body); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 + p { margin-top: .5em; }
.prose h2 { margin-top: 1.8em; font: 600 1.45rem/1.25 var(--font-text); text-transform: none; letter-spacing: 0; color: var(--text); }
.prose h3 { margin-top: 1.6em; font-size: 1.15rem; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--sun-ink); }
.prose a { color: var(--sun-ink); }
.prose strong { color: var(--text); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--sun); color: var(--text); }
.prose img { border-radius: var(--radius-sm); }
.prose .policy-lede { font-size: 1.12rem; color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }

/* Field note article */
.story__head { max-width: 880px; padding-top: clamp(28px, 5vw, 56px); }
.story__head h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); margin-top: 8px; }
.story__head .back-link { margin-bottom: 18px; }
.story__dek { margin-top: 20px; font-size: 1.2rem; color: var(--text); max-width: 38em; }
.story__cover { max-width: 1100px; margin-block: clamp(28px, 4vw, 48px); }
.story__cover img { width: 100%; border-radius: var(--radius); }
.story__body { max-width: 720px; }
.story__foot { max-width: 720px; display: flex; flex-wrap: wrap; gap: 12px; padding-block: 48px 80px; }

/* Referral readiness */
.readiness { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.readiness .muted { margin-top: 14px; }
@media (max-width: 860px) { .readiness { grid-template-columns: 1fr; } }

/* Pagination */
.page-numbers { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: 40px; }
.page-numbers a, .page-numbers span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; }
.page-numbers .current { background: var(--text); color: var(--surface); }

.empty-state { padding: 40px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
.empty-state p:last-child { color: var(--muted); margin-top: 10px; }
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-page h1 { max-width: 12ch; }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(56px, 7vw, 96px) calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--raised); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer__identity p { max-width: 26em; margin-top: 16px; color: var(--muted); font-size: .95rem; }
.site-footer h2 { font: 500 .75rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 2px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 36px; color: var(--body); text-decoration: none; font-size: .95rem; }
.site-footer nav a:hover { color: var(--sun-ink-strong); }
.site-footer__register { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: .78rem; line-height: 1.55; }
.site-footer__register .eyebrow { color: var(--muted); margin-bottom: 8px; }
.site-footer__register address { font-style: normal; margin-top: 6px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 24px; color: var(--muted); font-size: .82rem; }
@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__identity { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__top { grid-template-columns: 1fr; } }

.navigation-status {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px;
  background: var(--text); color: var(--surface); font-weight: 500; font-size: .92rem;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease);
}
.navigation-status.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll reveal (progressive; content is visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) {
  .button, .tool-button, .lang-switch a[aria-current="true"] { border: 1px solid ButtonText; }
}
@media print {
  .site-header, .site-footer, .game-theatre, .host-dialog { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Admin bar offset ---------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } .admin-bar.home .site-header { top: 0; } }


/* =====================================================================
   Surface system: light ground, darker sand information blocks,
   ink navigation and ink highlight blocks. Later rules refine the above.
   ===================================================================== */

/* Ink navigation: header, mobile menu, footer */
.site-header { background: rgba(27, 23, 19, .96); border-bottom-color: rgba(0, 0, 0, .3); color: var(--ink-text); }
.site-header.is-open { background: var(--ink-bg); }
.primary-nav a { color: var(--ink-muted); }
.primary-nav a:hover { color: var(--ink-text); background: var(--ink-raised); }
.primary-nav a[aria-current="page"] { color: var(--ink-text); background: var(--ink-raised); box-shadow: inset 0 -2px 0 var(--sun); }
.primary-nav a.nav-highlight { color: var(--sun); }
.primary-nav a.nav-highlight::before { content: ""; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px rgba(255, 178, 31, .2); }
.account-link, .lang-switch, .menu-toggle { border-color: var(--ink-line); color: var(--ink-text); }
.account-link:hover, .menu-toggle:hover { border-color: var(--ink-text); }
.account-link[aria-current="page"] { background: var(--ink-raised); }
.lang-switch a { color: var(--ink-muted); }
.lang-switch a:hover { color: var(--ink-text); }
.lang-switch a[aria-current="true"] { background: var(--ink-text); color: var(--ink-bg); }
.coin-chip { color: var(--sun); border-color: rgba(255, 178, 31, .45); background: rgba(255, 178, 31, .12); }
.site-header :focus-visible { outline-color: var(--sun); }
.mobile-menu { background: var(--ink-bg); border-top-color: var(--ink-line); }
.mobile-menu__primary a { border-bottom-color: var(--ink-line); color: var(--ink-text); }
.mobile-menu__primary a span { color: var(--ink-muted); }
.mobile-menu__primary a[aria-current="page"] { color: var(--sun); }
.mobile-menu__secondary > a:not(.button) { color: var(--ink-muted); }
.mobile-menu__secondary .button--ghost { color: var(--ink-text); border-color: var(--ink-line); }
.mobile-menu__secondary .button small { color: var(--sun); }

.site-footer { background: var(--ink-bg); color: var(--ink-text); border-top: 0; }
.site-footer h2, .site-footer__register, .site-footer__register .eyebrow, .site-footer__bottom { color: var(--ink-muted); }
.site-footer__identity p { color: var(--ink-muted); }
.site-footer nav a { color: var(--ink-text); }
.site-footer nav a:hover { color: var(--sun); }
.site-footer__register { border-top-color: var(--ink-line); }
.site-footer :focus-visible { outline-color: var(--sun); }

/* Sand information blocks */
.world-card, .note-card, .spec-sheet, .account-panel, .account-rail, .panel, .va-wallet-history, .rate-panel, .pack,
.loop__steps li, .accordion details, .info-nav ul, .studio-queue, .empty-state {
  background: var(--panel); border-color: var(--panel-line);
}
.world-card, .spec-sheet, .account-panel, .account-rail, .panel, .va-wallet-history, .rate-panel { box-shadow: none; }
.world-card:hover { border-color: rgba(34, 28, 20, .22); }
.spec-list, .spec-list > div { border-color: rgba(34, 28, 20, .14); }
.more-worlds, .notes { background: var(--ground); }
.more-worlds .world-card { background: var(--panel); }

.note-card { border: 1px solid var(--panel-line); border-radius: var(--radius); overflow: hidden; }
.note-card__cover { border-radius: 0; }
.note-card__body { padding: 18px 20px 22px; }
.notes__grid--journal .note-card--lead { gap: 0; }
.notes__grid--journal .note-card--lead .note-card__body { padding: clamp(20px, 3vw, 40px); }

.loop { border-bottom: 0; }
.loop__steps { gap: 14px; border-top: 0; }
.loop__steps li, .loop__steps li + li { padding: 26px; border: 1px solid var(--panel-line); border-radius: var(--radius); }
.loop__num { margin-bottom: 26px; }
.loop__note { background: transparent; }
@media (max-width: 800px) { .loop__steps li, .loop__steps li + li { padding: 22px; border: 1px solid var(--panel-line); } }

.accordion { display: grid; gap: 10px; border-top: 0; }
.accordion details { border: 1px solid var(--panel-line); border-radius: var(--radius-sm); padding-inline: 20px; }
.accordion details[open] { background: var(--panel-strong); }
.accordion details p { padding-right: 0; }

.assurances li { background: var(--panel); border-color: var(--panel-line); }
.tool-button { background: var(--panel); border-color: var(--panel-line); }
.tool-button:hover { background: var(--panel-strong); border-color: rgba(34, 28, 20, .3); }
.game-bar__back { background: var(--panel); border-color: var(--panel-line); }

.info-nav ul { padding: 8px; border: 1px solid var(--panel-line); border-radius: var(--radius); border-left-width: 1px; }
.info-nav a { border-left: 0; margin-left: 0; border-radius: var(--radius-sm); }
.info-nav a:hover { background: var(--panel-strong); }
.info-nav a[aria-current="page"] { background: var(--ink-bg); color: var(--ink-text); }
@media (max-width: 860px) { .info-nav ul { padding: 6px; } .info-nav a { border: 0; } }

.account-nav { background: var(--ground); }
.account-nav a { background: var(--panel); border-color: var(--panel-line); color: var(--body); }
.account-nav a:hover { background: var(--ink-bg); color: var(--ink-text); border-color: var(--ink-bg); }
.account-readout div { background: var(--surface); }

/* Inputs read as light wells inside darker blocks */
.panel input[type="text"], .panel input[type="email"], .panel input[type="password"], .account-panel input { background: var(--surface); }

/* Ink highlight blocks: balance, active world, referral band */
.balance-card { background: var(--ink-bg); border-color: var(--ink-bg); color: var(--ink-text); box-shadow: 0 24px 48px -28px rgba(27, 23, 19, .7); }
.balance-card__label { color: var(--ink-muted); }
.balance-card__value, .balance-card__value span { color: var(--ink-text); }
.balance-card__value .icon { color: var(--sun); }
.balance-card__text { margin-top: 10px; color: var(--ink-muted); }
.balance-card .button--ghost { color: var(--ink-text); border-color: var(--ink-line); }
.balance-card .button--ghost:hover { background: var(--ink-raised); border-color: var(--ink-text); }

.hero__worlds a { background: var(--panel); border-color: var(--panel-line); box-shadow: none; }
.hero__worlds a[data-active] { background: var(--ink-bg); border-color: var(--ink-bg); }
.hero__worlds a[data-active] .hero__name { color: var(--ink-text); }
.hero__worlds a[data-active] .hero__genre { color: var(--ink-muted); }
.hero__worlds a[data-active] .hero__num { color: var(--world-accent); }
.hero__worlds a:not([data-active]):hover { background: var(--panel-strong); }

.referral-band { padding-block: clamp(20px, 3vw, 40px); }
.referral-band__inner {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: 24px; background: var(--ink-bg); color: var(--ink-text);
  background-image: radial-gradient(70% 90% at 100% 0%, rgba(255, 178, 31, .22), rgba(255, 178, 31, 0) 60%);
}
.referral-band .eyebrow { color: var(--sun); }
.referral-band h2 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
.referral-band h2 span { color: var(--sun); display: block; }
.referral-band__lead { margin-top: 18px; max-width: 36em; color: var(--ink-muted); font-size: 1.05rem; }
.referral-band__steps { list-style: none; display: grid; gap: 8px; margin-top: 24px; }
.referral-band__steps li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--ink-line); border-radius: var(--radius-sm); background: var(--ink-raised); }
.referral-band__steps span { font: 500 .78rem/1 var(--font-mono); color: var(--sun); }
.referral-band .text-link { color: var(--ink-text); text-decoration-color: var(--ink-line); }
.referral-band .text-link:hover { color: var(--sun); }
.referral-band :focus-visible { outline-color: var(--sun); }
.referral-band__art { position: relative; margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; }
.referral-band__art img { width: 100%; height: 100%; object-fit: cover; }
.referral-band__art figcaption {
  position: absolute; left: 18px; bottom: 18px; display: grid; place-items: center; width: 116px; height: 116px; border-radius: 50%;
  background: var(--sun); color: var(--on-sun); text-align: center; box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.referral-band__art figcaption strong { font: 800 2.4rem/1 var(--font-display); }
.referral-band__art figcaption span { font: 500 .7rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; margin-top: -18px; }
@media (max-width: 860px) { .referral-band__inner { grid-template-columns: 1fr; } .referral-band__art { order: -1; aspect-ratio: 16 / 9; } }

/* Sunny Coin page */
.wallet-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 32px; align-items: end; }
@media (max-width: 860px) { .wallet-hero { grid-template-columns: 1fr; } }
.wallet-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.wallet-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--panel-line); font-size: .9rem; text-decoration: none; }
.wallet-jump a:hover { background: var(--ink-bg); color: var(--ink-text); }
.section-head__lead { margin-top: 14px; color: var(--muted); max-width: 44em; }

.rates__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.rates__tabs [role="tab"] {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 10px 14px 10px 10px; text-align: left;
  border: 1px solid var(--panel-line); border-radius: var(--radius); background: var(--panel); color: var(--text); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.rates__tabs [role="tab"] img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.rates__tabs [role="tab"] span { display: grid; gap: 2px; min-width: 0; }
.rates__tabs [role="tab"] strong { font: 800 1.35rem/1 var(--font-display); text-transform: uppercase; }
.rates__tabs [role="tab"] small { font: 500 .72rem/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rates__tabs [role="tab"]:hover { background: var(--panel-strong); }
.rates__tabs [role="tab"][aria-selected="true"] { background: var(--ink-bg); border-color: var(--ink-bg); color: var(--ink-text); }
.rates__tabs [role="tab"][aria-selected="true"] small { color: var(--world-accent); }
.rates__tabs [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 16px; height: 16px; background: var(--ink-bg); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
@media (max-width: 900px) { .rates__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rates__tabs [role="tab"][aria-selected="true"]::after { display: none; } }

.rate-panel { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 0; border: 1px solid var(--panel-line); border-radius: var(--radius); overflow: hidden; }
.rate-panel + .rate-panel { margin-top: 16px; }
.rate-panel__intro { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-right: 1px solid var(--panel-line); border-top: 3px solid var(--world-accent); }
.rate-panel__art { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--screen); }
.rate-panel__art img { width: 100%; height: 100%; object-fit: cover; }
.rate-panel h3 { font: 800 2rem/1 var(--font-display); text-transform: uppercase; margin-top: 6px; }
.rate-panel__currency { color: var(--world-ink); font-weight: 500; }
.rate-panel__facts { display: grid; gap: 0; margin: 4px 0 8px; }
.rate-panel__facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(34, 28, 20, .12); font-size: .92rem; }
.rate-panel__facts dt { color: var(--muted); }
.rate-panel__facts dd { margin: 0; font-family: var(--font-mono); text-align: right; }
.rate-panel__intro .button { margin-top: auto; }
.rate-table-wrap { overflow-x: auto; background: var(--surface); }
.rate-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.rate-table th { position: sticky; top: 0; padding: 14px 20px; text-align: left; font: 500 .72rem/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--line-strong); }
.rate-table td { padding: 12px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rate-table tbody tr:nth-child(even) td { background: rgba(235, 227, 213, .45); }
.rate-table tbody tr:hover td { background: var(--sun-tint); }
.rate-table td:first-child, .rate-table td:last-child { font-family: var(--font-mono); }
.rate-table strong { font-weight: 600; }
.rate-coin { display: inline-flex; align-items: center; gap: 8px; }
.rate-coin .icon { color: var(--sun-ink); width: 1em; height: 1em; }
.rate-table tr.is-best td { background: var(--sun-tint); }
.rate-badge { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 999px; background: var(--ink-bg); color: var(--sun); font: 500 .66rem/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
@media (max-width: 860px) { .rate-panel { grid-template-columns: 1fr; } .rate-panel__intro { border-right: 0; border-bottom: 1px solid var(--panel-line); } .rate-table th, .rate-table td { padding: 11px 14px; } }

.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--panel-line); }
.segmented a { display: inline-grid; place-items: center; min-width: 56px; min-height: 40px; padding: 0 14px; border-radius: 999px; font: 500 .85rem/1 var(--font-mono); text-decoration: none; color: var(--muted); }
.segmented a:hover { color: var(--text); }
.segmented a[aria-current="true"] { background: var(--ink-bg); color: var(--ink-text); }
.pack-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pack { position: relative; display: grid; gap: 6px; padding: 20px; border: 1px solid var(--panel-line); border-radius: var(--radius); }
.pack__coins { display: flex; align-items: center; gap: 10px; font: 800 2.3rem/1 var(--font-display); }
.pack__coins .icon { color: var(--sun-ink); width: 26px; height: 26px; }
.pack__label { font: 500 .72rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pack__bonus { margin-top: 8px; font-size: .88rem; color: var(--sun-ink-strong); font-weight: 500; }
.pack__bonus--none { color: var(--muted); font-weight: 400; }
.pack__price { margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(34, 28, 20, .14); font-family: var(--font-mono); }
.pack__price strong { font-size: 1.25rem; }
.pack__price span { color: var(--muted); font-size: .85rem; }
.pack--bonus { background: linear-gradient(160deg, rgba(255, 178, 31, .22), rgba(255, 178, 31, 0) 55%), var(--panel); }
.packs__note { margin-top: 16px; color: var(--faint); font-size: .85rem; }
.wallet-history .va-wallet-history > h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.va-ledger-row { border-bottom-color: rgba(34, 28, 20, .12); }
@media (max-width: 560px) {
  .rate-table th:nth-child(3), .rate-table td:nth-child(3) { display: none; }
  .rate-table tr.is-best td:nth-child(2)::after { content: "★"; margin-left: 8px; color: var(--sun-ink); }
  .rates__tabs [role="tab"] strong { font-size: 1.15rem; }
}
.tool-button--primary { background: var(--sun); border-color: var(--sun); color: var(--on-sun); }
.tool-button--primary:hover { background: var(--sun-strong); border-color: var(--sun-strong); }


/* =====================================================================
   v5 — games-first home carousel, story bands, any-amount Sunny Coin
   ===================================================================== */
.hl { background: linear-gradient(transparent 56%, var(--sun) 56%, var(--sun) 90%, transparent 90%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Home carousel (first screen = playable games) ---------- */
.arcade { background: var(--ink-bg); color: var(--ink-text); padding-bottom: 28px; }
.arcade__stage { position: relative; }
.arcade__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.arcade__track::-webkit-scrollbar { display: none; }
.arcade__track:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.arcade__slide {
  position: relative; scroll-snap-align: start; min-height: clamp(460px, 72vh, 720px);
  display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
}
.arcade__slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.03); transition: transform 7s var(--ease); }
.arcade__slide[data-active] > img { transform: scale(1); }
.arcade__slide::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(12, 10, 8, .88) 0%, rgba(12, 10, 8, .55) 42%, rgba(12, 10, 8, 0) 72%),
              linear-gradient(0deg, rgba(12, 10, 8, .9) 0%, rgba(12, 10, 8, 0) 45%);
}
.arcade__copy { padding-block: 64px 56px; }
.arcade__kicker { display: flex; flex-wrap: wrap; align-items: center; font: 500 .78rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--world-accent); }
.arcade__kicker .sep { color: rgba(243, 235, 221, .45); }
.arcade__title { margin-top: 14px; font: 800 clamp(3.2rem, 9vw, 8.2rem)/.86 var(--font-display); text-transform: uppercase; letter-spacing: .005em; color: #fff8ec; text-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
.arcade__line { max-width: 30em; margin-top: 16px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #efe5d4; }
.arcade__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.button--xl { min-height: 56px; padding: 14px 30px; font-size: 1.08rem; box-shadow: 0 10px 30px -10px rgba(255, 178, 31, .7); }
.arcade__story-link { display: inline-flex; align-items: center; min-height: 44px; color: #fff8ec; font-weight: 500; text-underline-offset: .35em; text-decoration-color: rgba(255, 248, 236, .4); }
.arcade__story-link:hover { text-decoration-color: var(--sun); }
.arcade__arrow {
  position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 52px; height: 52px;
  border: 1px solid rgba(255, 248, 236, .3); border-radius: 50%; background: rgba(12, 10, 8, .55); color: #fff8ec; cursor: pointer;
  backdrop-filter: blur(6px); transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.arcade__arrow:hover { background: var(--sun); border-color: var(--sun); color: var(--on-sun); }
.arcade__arrow--prev { left: auto; right: calc(clamp(8px, 2vw, 28px) + 64px); }
.arcade__arrow--next { right: clamp(8px, 2vw, 28px); }
@media (min-width: 721px) { .arcade__arrow { top: auto; bottom: 56px; translate: none; } }
.arcade__picker { margin-top: -20px; position: relative; z-index: 1; }
.arcade__picker ol { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.arcade__picker a {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px 8px 8px;
  border: 1px solid var(--ink-line); border-radius: 12px; background: var(--ink-raised); color: var(--ink-text); text-decoration: none; overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.arcade__picker img { flex: none; width: 72px; height: 44px; border-radius: 7px; object-fit: cover; }
.arcade__picker span { display: grid; min-width: 0; }
.arcade__picker strong { font: 800 1.25rem/1 var(--font-display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arcade__picker small { margin-top: 3px; font-size: .78rem; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arcade__picker a:hover { border-color: rgba(243, 235, 221, .35); transform: translateY(-2px); }
.arcade__picker a[aria-current="true"] { border-color: var(--world-accent); }
.arcade__progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--world-accent); transform: scaleX(0); transform-origin: left; }
.arcade__picker a[aria-current="true"] .arcade__progress { transform: scaleX(1); }
.arcade.is-playing .arcade__picker a[aria-current="true"] .arcade__progress { animation: arcade-progress var(--carousel-duration, 7s) linear infinite; }
.arcade.is-playing.is-paused .arcade__picker a[aria-current="true"] .arcade__progress { animation-play-state: paused; }
@keyframes arcade-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.arcade .assurances { margin-top: 20px; }
.arcade .assurances li { background: transparent; border-color: var(--ink-line); color: var(--ink-muted); }
.arcade .assurances .icon { color: var(--sun); }
@media (max-width: 1080px) { .arcade__picker ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .arcade__slide { min-height: min(78svh, 620px); }
  .arcade__slide::after { background: linear-gradient(0deg, rgba(12, 10, 8, .95) 0%, rgba(12, 10, 8, .6) 50%, rgba(12, 10, 8, .1) 100%); }
  .arcade__copy { padding-block: 40px 44px; }
  .arcade__arrow { top: 30%; width: 44px; height: 44px; }
  .arcade__picker { margin-top: 12px; }
  .arcade__picker ol { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .arcade__picker a { justify-content: center; padding: 6px; min-height: 52px; }
  .arcade__picker span { display: none; }
  .arcade__picker img { width: 100%; height: 40px; }
  .arcade .assurances { gap: 6px; }
  .arcade .assurances li { font-size: .8rem; padding: 4px 10px; min-height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .arcade__slide > img { transition: none; transform: none; } }

/* ---------- Story bands ---------- */
.stories .section-head { margin-bottom: clamp(24px, 4vw, 40px); }
.story-band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.story-band--flip .story-band__art { order: 2; }
.story-band__art { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--screen); box-shadow: 0 30px 60px -34px rgba(34, 28, 20, .6); }
.story-band__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.story-band__art:hover img { transform: scale(1.03); }
.story-band__play { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--sun); color: var(--on-sun); }
.story-band__kicker { font: 500 .75rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--world-ink); }
.story-band__title { margin-top: 12px; font: 800 clamp(2rem, 3.6vw, 3.1rem)/.95 var(--font-display); text-transform: uppercase; }
.story-band__story { margin-top: 16px; color: var(--body); font-size: 1.05rem; max-width: 36em; }
.story-band__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; list-style: none; }
.story-band__facts li { padding: 5px 12px; border-radius: 999px; background: var(--panel); font-size: .84rem; color: var(--body); border-left: 3px solid var(--world-accent); }
.story-band .button-row { margin-top: 24px; }
@media (max-width: 860px) {
  .story-band { grid-template-columns: 1fr; }
  .story-band--flip .story-band__art { order: 0; }
}

/* ---------- Buy any amount ---------- */
.coin-buy-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.coin-buy-layout .section-head { margin-bottom: 0; }
@media (max-width: 900px) { .coin-buy-layout { grid-template-columns: 1fr; } }
.coin-teaser { background: var(--panel); border-block: 1px solid var(--panel-line); }
.coin-buy { display: grid; gap: 16px; padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.coin-buy__currency { min-width: 0; border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.coin-buy__label { font: 500 .72rem/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.coin-buy__currency legend { float: left; }
.coin-buy .segmented label { position: relative; }
.coin-buy .segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.coin-buy .segmented span { display: inline-grid; place-items: center; min-width: 60px; min-height: 40px; padding: 0 14px; border-radius: 999px; font: 500 .85rem/1 var(--font-mono); color: var(--muted); }
.coin-buy .segmented input:checked + span { background: var(--ink-bg); color: var(--ink-text); }
.coin-buy .segmented input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 1px; }
.coin-buy__fields { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 10px; }
.coin-buy__field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.coin-buy, .coin-buy-layout > * { min-width: 0; }
.coin-buy__input { min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--ground); }
.coin-buy__input:focus-within { border-color: var(--text); box-shadow: 0 0 0 3px var(--sun-tint); }
.coin-buy__input input { flex: 1; width: 100%; min-width: 0; border: 0; background: transparent; font: 600 1.45rem/1 var(--font-mono); outline: none; padding: 0; }
.coin-buy__input b { display: inline-flex; align-items: center; gap: 4px; font: 500 .8rem/1 var(--font-mono); color: var(--muted); white-space: nowrap; }
.coin-buy__input b .icon { width: 14px; height: 14px; color: var(--sun-ink); }
.coin-buy__arrow { display: grid; place-items: center; width: 40px; height: 56px; color: var(--sun-ink); }
.coin-buy__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.coin-buy__chips:empty { display: none; }
.coin-buy__chip { min-height: 36px; padding: 4px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; font: 500 .82rem/1 var(--font-mono); cursor: pointer; }
.coin-buy__chip:hover { border-color: var(--text); background: var(--ground); }
.coin-buy__hint { color: var(--muted); font-size: .88rem; }
.coin-buy__summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.coin-buy__total { font-size: 1.05rem; }
.coin-buy__total [data-coin-total-coins] { font: 800 1.8rem/1 var(--font-display); color: var(--sun-ink); }
.coin-buy__total strong { font-family: var(--font-mono); }
.coin-buy__for { color: var(--muted); }
.coin-buy__status { padding: 10px 14px; border-radius: 10px; background: var(--panel); font-size: .92rem; }
.coin-buy__status.is-error { background: rgba(185, 58, 20, .08); color: var(--warn); }
.coin-buy__note { color: var(--faint); font-size: .8rem; }
.coin-buy--compact { padding: 0; border: 0; box-shadow: none; background: transparent; }
.coin-buy--compact .coin-buy__input input { font-size: 1.2rem; }
@media (max-width: 520px) {
  .coin-buy__fields { grid-template-columns: 1fr; }
  .coin-buy__arrow { height: 20px; width: 100%; rotate: 90deg; }
  .coin-buy__summary .button { width: 100%; }
}
.dialog-more { margin-top: 12px; }

/* ---------- Blog: game guide badge and in-article screenshots ---------- */
.note-card__meta .is-guide { color: var(--sun-ink); }
.prose figure.game-shot { margin: 28px 0; }
.prose figure.game-shot img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--screen); }
.prose figure.game-shot figcaption { margin-top: 8px; font-size: .86rem; color: var(--muted); }
.prose .stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 24px 0; padding: 0; list-style: none; }
.prose .stat-strip li { padding: 14px 16px; border-radius: 12px; background: var(--panel); border-left: 3px solid var(--sun); }
.prose .stat-strip b { display: block; font: 800 1.9rem/1 var(--font-display); color: var(--text); }
.prose .stat-strip span { font-size: .84rem; color: var(--muted); }

/* ---------- Legal: definitions list ---------- */
.va-policy-body .definitions { list-style: none; padding: 0; display: grid; gap: 10px; }
.va-policy-body .definitions li { padding: 12px 16px; border-radius: 10px; background: var(--panel); }
.va-policy-body .definitions b { font-family: var(--font-mono); font-size: .86rem; margin-right: 6px; color: var(--sun-ink); }

.blog-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.blog-topics a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); text-decoration: none; font-size: .92rem; }
.blog-topics a:hover { border-color: var(--text); }
.blog-topics a[aria-current="page"] { background: var(--ink-bg); border-color: var(--ink-bg); color: var(--ink-text); }

/* ==========================================================================
   v6 — player account (ЛК), forms, payment marks
   ========================================================================== */
h1, h2, h3, .page-hero h1 { letter-spacing: -.01em; }
.account-shell { padding-block: clamp(20px, 3vw, 40px) clamp(48px, 6vw, 88px); }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: .9rem; color: var(--text); }
.field > span em { font-weight: 400; color: var(--muted); font-style: normal; }
.field small { color: var(--faint); font-size: .8rem; }
.field input, .field select, .field textarea { width: 100%; }
input[type="date"], input[type="url"] { min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.field--file input[type="file"] { padding: 10px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: .9rem; }
.check-field { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--body); cursor: pointer; }
.check-field input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--sun-ink); }
.check-field a { color: var(--sun-ink-strong); }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field--wide { grid-column: 1 / -1; }
.form-fine { color: var(--faint); font-size: .82rem; margin: 0; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note--ok, .form-note--error { display: block; margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .92rem; color: var(--text); }
.form-note--ok { background: rgba(30, 132, 73, .1); border: 1px solid rgba(30, 132, 73, .35); }
.form-note--error { background: rgba(185, 58, 20, .08); border: 1px solid rgba(185, 58, 20, .35); }
.site-form { display: grid; gap: 18px; max-width: 760px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.site-form .button { justify-self: start; }

/* Auth */
.lk-auth { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.lk-auth--single { max-width: 520px; grid-template-columns: 1fr; }
.lk-card { padding: clamp(20px, 2.6vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.lk-card h2 { margin: 4px 0 12px; font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.lk-card h3 { margin: 0 0 14px; font-size: 1.1rem; }
.lk-form { display: grid; gap: 14px; margin-top: 8px; }
.lk-form .button { justify-self: start; }
.lk-form--row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.lk-alt { margin: 16px 0 0; font-size: .9rem; }
.lk-alt a { color: var(--sun-ink-strong); }
.lk-benefits { padding: clamp(20px, 2.6vw, 30px); border-radius: var(--radius); background: var(--ink-bg); color: var(--ink-text); }
.lk-benefits h2 { margin-top: 0; color: var(--ink-text); font-size: 1.3rem; }
.lk-benefits ul { display: grid; gap: 16px; margin: 0 0 18px; padding: 0; list-style: none; }
.lk-benefits li { display: grid; gap: 4px; padding-left: 16px; border-left: 3px solid var(--sun); }
.lk-benefits span, .lk-benefits .muted { color: var(--ink-muted); font-size: .9rem; }

/* Cabinet */
.lk { display: grid; gap: 20px; }
.lk-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; padding: clamp(20px, 2.6vw, 28px); border-radius: var(--radius); background: var(--ink-bg); color: var(--ink-text); }
.lk-head h2 { margin: 4px 0; color: var(--ink-text); font-size: clamp(1.4rem, 2.4vw, 2rem); }
.lk-head .muted { color: var(--ink-muted); margin: 0; overflow-wrap: anywhere; }
.lk-head .eyebrow { color: var(--sun); }
.lk-kpis { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.lk-kpis > div { min-width: 150px; padding: 12px 16px; border: 1px solid var(--ink-line); border-radius: var(--radius-sm); background: var(--ink-raised); }
.lk-kpis dt { color: var(--ink-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.lk-kpis dd { margin: 4px 0 0; font: 700 1.25rem/1.2 var(--font-text); color: var(--ink-text); }
.lk-kpis dd small { font-weight: 500; font-size: .75rem; color: var(--ink-muted); }
.lk-tabs, .lk-filters { display: flex; gap: 6px; overflow-x: auto; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); scrollbar-width: none; }
.lk-tabs::-webkit-scrollbar, .lk-filters::-webkit-scrollbar { display: none; }
.lk-tabs a, .lk-filters a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .92rem; text-decoration: none; }
.lk-tabs a:hover, .lk-filters a:hover { color: var(--text); }
.lk-tabs a[aria-current], .lk-filters a[aria-current] { background: var(--ink-bg); color: var(--ink-text); }
.lk-filters { border-radius: var(--radius-sm); background: transparent; border: 0; padding: 0; margin-bottom: 14px; }
.lk-filters a { min-height: 38px; border: 1px solid var(--line-strong); }
.lk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.lk-dot--ok { background: var(--ok); }
.lk-panel { display: grid; gap: 20px; }
.lk-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.lk-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.lk-section { padding: clamp(20px, 2.6vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.lk-section > h3 { margin: 0 0 16px; font-size: 1.2rem; }
.lk-balance__value { margin: 6px 0 10px; font: 800 clamp(1.8rem, 3.4vw, 2.6rem)/1.1 var(--font-text); color: var(--text); }
.lk-balance__value small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.lk-balance--points { border-color: rgba(196, 122, 0, .35); background: linear-gradient(160deg, var(--sun-tint), var(--surface) 60%); }
.lk-facts { display: grid; gap: 10px; margin: 0 0 16px; }
.lk-facts > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.lk-facts dt { color: var(--muted); font-size: .88rem; }
.lk-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.lk-facts--inline { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lk-facts--inline > div { display: grid; gap: 2px; border: 0; }
.lk-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.lk-badge--ok { background: rgba(30, 132, 73, .14); color: #14603a; }
.lk-badge--wait { background: var(--sun-tint); color: var(--sun-ink-strong); }
.lk-badge--bad { background: rgba(185, 58, 20, .12); color: #8f2b0e; }
.lk-badge--muted { background: var(--raised); color: var(--muted); }
.lk-head .lk-badge--muted { background: var(--ink-line); color: var(--ink-text); }
.lk-callout { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--panel); }
.lk-callout p { margin: 4px 0 0; color: var(--body); font-size: .92rem; }
.lk-callout--warn { border-color: rgba(196, 122, 0, .45); background: var(--sun-tint); }
.lk-callout--ok { border-color: rgba(30, 132, 73, .4); background: rgba(30, 132, 73, .08); }
.lk-callout form { margin: 0; }
.lk-steps { display: grid; gap: 10px; margin: 0 0 14px; padding-left: 22px; }
.lk-steps li::marker { color: var(--sun-ink); font-weight: 700; }
.lk-example { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--sun-tint); font-weight: 600; color: var(--sun-ink-strong); }
.lk-hero-ref { padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); background: radial-gradient(120% 140% at 100% 0%, rgba(255, 178, 31, .35), rgba(255, 178, 31, 0) 55%), var(--ink-bg); color: var(--ink-text); }
.lk-hero-ref h3 { margin: 6px 0 10px; font-size: clamp(1.4rem, 2.6vw, 2.1rem); color: var(--ink-text); }
.lk-hero-ref p { color: var(--ink-muted); max-width: 70ch; }
.lk-hero-ref .eyebrow { color: var(--sun); }
.lk-hero-ref .referral-link-control input { background: var(--ink-raised); color: var(--ink-text); border-color: var(--ink-line); }
.lk-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 0; }
.lk-share a { padding: 8px 14px; border: 1px solid var(--ink-line); border-radius: 999px; color: var(--ink-text); text-decoration: none; font-size: .88rem; font-weight: 600; }
.lk-share a:hover { border-color: var(--sun); }
.lk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; }
.lk-stats > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.lk-stats dt { color: var(--muted); font-size: .8rem; }
.lk-stats dd { margin: 4px 0 0; font: 800 1.5rem/1.1 var(--font-text); }
.lk-table-wrap { overflow-x: auto; }
.lk-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.lk-table th, .lk-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.lk-table th { color: var(--muted); font-weight: 600; font-size: .8rem; }
.lk-history { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.lk-history__row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.lk-history__row:last-child { border-bottom: 0; }
.lk-history__main { display: grid; gap: 3px; min-width: 0; }
.lk-history__main strong a { color: var(--text); }
.lk-history__main small { color: var(--faint); font-size: .82rem; overflow-wrap: anywhere; }
.lk-history__amount { display: grid; justify-items: end; gap: 4px; font-weight: 700; white-space: nowrap; color: var(--ok); }
.lk-history__amount.is-negative { color: var(--text); }
.lk-history__row--referral .lk-history__amount, .lk-history__row--payout .lk-history__amount { color: var(--sun-ink-strong); }
.lk-empty { padding: 28px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.lk-progress { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: step; overflow-x: auto; }
.lk-progress li { flex: 1 0 130px; padding: 10px 12px 10px 38px; position: relative; border-radius: var(--radius-sm); background: var(--raised); color: var(--muted); font-size: .85rem; font-weight: 600; counter-increment: step; }
.lk-progress li::before { content: counter(step); position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); font-size: .72rem; }
.lk-progress li.is-done { background: rgba(30, 132, 73, .12); color: #14603a; }
.lk-progress li.is-done::before { content: "✓"; background: var(--ok); color: #fff; }
.lk-progress li.is-current { background: var(--sun-tint); color: var(--sun-ink-strong); }
.lk-kyc fieldset { display: grid; gap: 14px; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.lk-kyc legend { padding: 0 6px; font-weight: 700; }
.lk-docs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lk-docs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.lk-docs span { color: var(--muted); font-size: .88rem; }
.lk-order { max-width: 640px; }
.lk-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lk-actions form { margin: 0; }
.lk-testpay { border: 2px dashed var(--sun-ink); }
.lk-testpay__flag { display: inline-block; margin: 0 0 8px; padding: 4px 10px; border-radius: 6px; background: var(--sun); color: var(--on-sun); font: 700 .75rem/1.2 var(--font-mono); letter-spacing: .06em; }
.lk .lk-card > form + form { margin-top: 10px; }

/* Footer: payment acceptance marks */
.payment-marks, .site-footer ul.payment-marks { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.payment-marks li { display: grid; place-items: center; width: 64px; height: 40px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.payment-marks img { display: block; width: 44px; height: 26px; object-fit: contain; }
.site-footer__pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ink-line); }
.site-footer__pay p { margin: 0; color: var(--ink-muted); font-size: .82rem; }

/* Referral marketing page + partner form */
.ref-calc { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ref-calc > div { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ref-calc strong { display: block; font: 800 1.8rem/1.1 var(--font-text); color: var(--sun-ink-strong); }
.ref-calc span { color: var(--muted); font-size: .88rem; }
.partner-block { display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; }
@media (max-width: 860px) { .partner-block { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  .lk-head { padding: 18px; }
  .lk-kpis > div { min-width: 0; flex: 1 1 45%; }
  .lk-history__row { flex-direction: column; align-items: flex-start; }
  .lk-history__amount { justify-items: start; }
  .lk-tabs a { padding: 0 14px; }
}

/* ---------- Legal: step-by-step lists and cookie register (v6) ---------- */
.va-policy-body ol.policy-steps { counter-reset: none; padding-left: 1.4em; display: grid; gap: 8px; }
.va-policy-body ol.policy-steps li { padding-left: 4px; }
.va-policy-body ol.policy-steps li::marker { font-weight: 700; color: var(--sun-ink); }
.va-policy-body table.policy-table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; margin: 12px 0 16px; }
.va-policy-body table.policy-table th, .va-policy-body table.policy-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line, rgba(0,0,0,.12)); }
.va-policy-body table.policy-table td:first-child { font-family: var(--font-mono); font-size: .88rem; white-space: nowrap; }

/* v6: payment not connected yet */
.coin-buy__status--info{display:block;margin:.75rem 0 0;padding:.7rem .9rem;border-radius:10px;border:1px solid color-mix(in srgb,var(--sun,#ffb400) 45%,transparent);background:color-mix(in srgb,var(--sun,#ffb400) 10%,transparent);font-size:.92rem;line-height:1.45}
.coin-buy [data-coin-submit][disabled]{opacity:.55;cursor:not-allowed}

/* Cookie notice: small bar, bottom-left on desktop, full width on phones */
.cookie-bar { position: fixed; z-index: 90; left: 16px; bottom: 16px; max-width: 460px; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; border-radius: 14px; background: var(--ink-bg); color: var(--ink-text); box-shadow: 0 12px 34px rgba(0, 0, 0, .28); font-size: 13.5px; line-height: 1.45; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; }
.cookie-bar a { color: var(--sun-strong); text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar .button { flex: 0 0 auto; min-height: 40px; padding: 0 18px; }
@media (max-width: 560px) { .cookie-bar { left: 8px; right: 8px; bottom: 8px; max-width: none; font-size: 13px; } }

/* ---------- Shop window (per game): grouped cards, clear price + Buy button ---------- */
.shop-dialog { width: min(920px, calc(100% - 24px)); max-height: min(90dvh, 900px); }
.shop-dialog__head { padding-bottom: 14px; }
.shop-dialog__head .eyebrow { color: var(--world-ink, var(--sun-ink)); }
.shop-dialog__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 22px; background: var(--ink-bg); color: var(--ink-text); }
.shop-wallet { display: flex; align-items: center; gap: 12px; margin: 0; }
.shop-wallet__label { color: var(--ink-muted); font-size: .88rem; }
.shop-wallet strong { display: inline-flex; align-items: center; gap: 8px; font: 700 1.35rem/1 var(--font-mono); color: var(--sun-strong); }
.shop-wallet strong .icon { width: 20px; height: 20px; }
.shop-wallet--guest { gap: 10px; color: var(--ink-text); font-size: .95rem; }
.shop-wallet--guest .icon { color: var(--sun-strong); flex: 0 0 auto; }
.shop-wallet__top-up.button { min-height: 40px; padding: 0 16px; color: var(--ink-text); border-color: var(--ink-line); background: transparent; }
.shop-wallet__top-up.button:hover { border-color: var(--sun-strong); color: var(--sun-strong); background: transparent; }
.shop-dialog__body { padding-top: 16px; background: var(--ground); }
.shop-dialog__lead { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.shop-group + .shop-group { margin-top: 22px; }
.shop-group__title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font: 800 1.15rem/1.1 var(--font-display); letter-spacing: .01em; color: var(--text); }
.shop-group__title span { font: 500 .78rem/1 var(--font-mono); color: var(--faint); padding: 3px 7px; border-radius: 999px; background: var(--raised); }
.shop-group__note { margin: -4px 0 10px; color: var(--muted); font-size: .88rem; }
.shop-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.shop-card { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; gap: 10px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 1px 2px rgba(34, 28, 20, .04); transition: border-color .15s ease, box-shadow .15s ease; }
.shop-card:hover { border-color: var(--line-strong); box-shadow: 0 6px 18px -10px rgba(34, 28, 20, .35); }
.shop-card__art { grid-row: 1; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--sun-tint); color: var(--sun-ink); overflow: hidden; }
.shop-card__art .icon { width: 26px; height: 26px; }
.shop-card__art img { width: 100%; height: 100%; object-fit: contain; }
.shop-card.has-art .shop-card__art { background: radial-gradient(circle at 50% 40%, #3a3129, var(--ink-bg)); }
.shop-card.has-art .shop-card__art .icon { display: none; }
.shop-card__text { display: grid; align-content: center; gap: 3px; min-width: 0; }
.shop-card__name { font-weight: 700; font-size: .98rem; line-height: 1.25; color: var(--text); overflow-wrap: anywhere; }
.shop-card__note { font-size: .8rem; color: var(--muted); min-height: 0; }
.shop-card__note:empty { display: none; }
.shop-card__buy { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 0 6px 0 14px; border: 0; border-radius: 11px; font: inherit; background: var(--sun); color: var(--on-sun); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.shop-card__buy:hover:not(:disabled) { background: var(--sun-strong); }
.shop-card__buy:focus-visible { outline: 3px solid var(--sun-ink); outline-offset: 2px; }
.shop-card__price { display: inline-flex; align-items: center; gap: 6px; font: 700 1rem/1 var(--font-mono); }
.shop-card__price .icon { width: 16px; height: 16px; }
.shop-card__cta { padding: 8px 12px; border-radius: 8px; background: rgba(28, 20, 5, .1); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.shop-card__buy--static { cursor: default; background: var(--raised); color: var(--text); }
.shop-card__buy:disabled { cursor: default; background: var(--raised); color: var(--muted); }
.shop-card__buy:disabled .shop-card__cta { background: transparent; padding-right: 8px; font-weight: 600; }
.shop-card[data-state="owned"] .shop-card__buy, .shop-card[data-state="bought"] .shop-card__buy { background: rgba(30, 132, 73, .12); color: var(--ok); }
.shop-card[data-state="owned"] { border-color: rgba(30, 132, 73, .35); }
.shop-card[data-state="buying"] .shop-card__buy { background: var(--sun-tint); color: var(--sun-ink-strong); }
.shop-card[data-state="funds"] .shop-card__cta { color: var(--warn); }
.shop-card[data-state="locked"], .shop-card[data-state="full"] { opacity: .78; }
/* Currency packs: bigger, warmer cards with a size badge */
.shop-grid:has(.shop-card--pack) { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.shop-card--pack { background: linear-gradient(160deg, #fff7e3, var(--surface) 60%); border-color: rgba(255, 178, 31, .45); }
.shop-card--pack .shop-card__art { background: var(--sun); color: var(--on-sun); }
.shop-card--pack .shop-card__name { font: 800 1.2rem/1.1 var(--font-display); letter-spacing: .01em; }
.shop-card--pack-2::after, .shop-card--pack-3::after { position: absolute; top: -8px; right: 12px; padding: 3px 8px; border-radius: 999px; font: 700 .68rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; background: var(--ink-bg); color: var(--sun-strong); }
.shop-card--pack-2::after { content: "+8%"; }
.shop-card--pack-3::after { content: "+20%"; }
.shop-dialog__foot { padding-top: 10px; }
.shop-dialog__status { margin: 0; min-height: 1.3em; font-size: .92rem; color: var(--muted); }
.shop-dialog__status:empty { min-height: 0; }
.shop-dialog__status.is-ok { color: var(--ok); font-weight: 600; }
.shop-dialog__status.is-error { color: var(--warn); font-weight: 600; }
.shop-dialog__foot:has(.shop-dialog__status:empty):not(:has(.dialog-actions, .dialog-status)) { display: none; }
@media (max-width: 560px) {
  .shop-dialog { width: 100%; max-height: 94dvh; border-radius: 16px; }
  .shop-dialog__bar { padding: 10px 16px; }
  .shop-dialog__body { padding: 14px 14px 18px; }
  .shop-grid, .shop-grid:has(.shop-card--pack) { grid-template-columns: 1fr; }
  .shop-wallet strong { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { .shop-card, .shop-card__buy { transition: none; } }
