/* ============================================================
   SilentMilfordSound — free-play minigames portal
   Calm fjord aesthetic · local-only · no external resources
   ============================================================ */

:root {
  --bg: #eef2f1;
  --bg-2: #e4eae9;
  --surface: #ffffff;
  --ink: #15252b;
  --ink-soft: #4c5f66;
  --ink-faint: #7d8d92;
  --line: #d8e0df;
  --line-soft: #e6ebea;

  --accent: oklch(0.56 0.082 215);      /* fjord teal-blue */
  --accent-2: oklch(0.56 0.082 165);    /* sea green */
  --accent-ink: oklch(0.40 0.07 215);
  --deep: #0e323d;                       /* dark fjord water */
  --deep-2: #123a44;

  --font-head: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Helvetica Neue", sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(16,40,48,.04), 0 8px 30px rgba(16,40,48,.06);
  --shadow-lg: 0 2px 6px rgba(16,40,48,.05), 0 24px 60px rgba(16,40,48,.12);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1rem; text-wrap: pretty; }
a { color: var(--accent-ink); text-decoration-color: color-mix(in oklab, var(--accent) 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.eyebrow {
  font-family: var(--font-body);
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 .9rem;
  display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); display: inline-block; }
.lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 600; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--deep); color: #f3f8f7; box-shadow: 0 8px 22px rgba(14,50,61,.28); }
.btn--primary:hover { background: #0a2832; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.12); color: #eef6f5; border-color: rgba(255,255,255,.28); backdrop-filter: blur(2px); }
.btn--light:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: 0 0 auto; }
.nav__links { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.nav__links a { position: relative; color: var(--ink-soft); text-decoration: none; font-size: .96rem; font-weight: 500; white-space: nowrap; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0; background: var(--accent); transition: width .28s ease; }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.lang-switch button {
  font: inherit; font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  padding: .4rem .75rem; border: 0; background: transparent; color: var(--ink-faint); cursor: pointer; transition: background .15s, color .15s;
}
.lang-switch button.is-active { background: var(--deep); color: #eef6f5; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; color: var(--ink); font-size: 1.3rem; line-height: 1; align-items: center; justify-content: center; }

@media (max-width: 860px) {
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .5rem 24px 1rem; box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav__links .lang-switch { align-self: flex-start; margin-top: .8rem; }
  .nav__toggle { display: inline-flex; margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(167deg, #0e323d 0%, #123a44 48%, #16454f 100%);
  color: #e9f3f1;
}
.hero__mist { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(255,255,255,.10), transparent 70%),
    radial-gradient(50% 60% at 90% 100%, color-mix(in oklab, var(--accent) 55%, transparent), transparent 70%);
}
.hero__inner { position: relative; z-index: 3; padding: clamp(72px, 12vw, 150px) 0 clamp(80px,10vw,130px); max-width: 760px; }
.hero h1 { color: #f1f8f6; }
.hero .lead { color: #c2d6d3; }
.hero__badge { display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9fc7c3; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .4rem .9rem; margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__note { margin-top: 1.6rem; font-size: .9rem; color: #8fb3af; }

/* ---------- Section heading block ---------- */
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: .8rem; max-width: 820px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
.faq__q { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; padding: 1.15rem 1.4rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--ink); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; font-family: var(--font-body); font-size: 1.5rem; font-weight: 400; color: var(--accent-ink); transition: transform .25s; }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- Who we are ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.media-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--bg-2); }
.media-frame img, .media-frame svg { width: 100%; height: 100%; display: block; }

/* ---------- Games grid ---------- */
.games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
@media (max-width: 760px) { .games-grid { grid-template-columns: 1fr; } }
.game-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.game-card__cover { aspect-ratio: 16 / 9; background: var(--bg-2); position: relative; }
.game-card__cover img, .game-card__cover svg { width: 100%; height: 100%; object-fit: cover; }
.game-card__tag { position: absolute; top: 14px; left: 14px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #eef6f5; background: rgba(14,50,61,.78); padding: .35rem .7rem; border-radius: 999px; backdrop-filter: blur(2px); }
.game-card__body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.game-card__body h3 { margin-bottom: .35rem; }
.game-card__body p { color: var(--ink-soft); font-size: .98rem; }
.game-card__actions { margin-top: auto; padding-top: 1.1rem; display: flex; gap: .7rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .stats, .stats--3 { grid-template-columns: 1fr 1fr; } }
.stat { text-align: left; padding: 1.4rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.stat__num { font-family: var(--font-head); font-size: 2.4rem; font-weight: 600; color: var(--ink); line-height: 1; }
.stat__label { font-size: .92rem; color: var(--ink-soft); margin-top: .5rem; }

/* ---------- 18+ badge band ---------- */
.agebadge { display: flex; align-items: center; gap: 1.4rem; background: var(--deep); color: #dcebe9; color: #d7e8e5; border-radius: var(--r-lg); padding: clamp(24px,3.5vw,40px); }
.agebadge__circle { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; color: #eef6f5; }
.agebadge p { margin: 0; color: #b9d2ce; }
.agebadge strong { color: #eef6f5; }

/* ---------- Important information ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 28px); }
@media (max-width: 880px) { .info-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .info-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.5rem 1.6rem; }
.info-card__n { font-family: var(--font-head); font-size: .95rem; color: var(--accent-ink); font-weight: 700; margin-bottom: .5rem; }
.info-card h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.info-card p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* ---------- Contact form ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: start; }
@media (max-width: 820px) { .contact-wrap { grid-template-columns: 1fr; } }
.form { display: flex; flex-direction: column; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px,3vw,36px); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font: inherit; font-size: .98rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: .8rem .95rem; width: 100%; resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent); }
.field .err { font-size: .8rem; color: #b3402e; min-height: 0; }
.contact-info { padding-top: .4rem; }
.contact-info dl { display: grid; gap: 1.1rem; margin: 1.4rem 0 0; }
.contact-info dt { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.contact-info dd { margin: .2rem 0 0; color: var(--ink-soft); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--deep); color: #eef6f5; padding: .95rem 1.5rem; border-radius: 999px; box-shadow: var(--shadow-lg); font-size: .95rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 200; }
.toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Play responsible ---------- */
.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px,2vw,22px); }
@media (max-width: 860px) { .help-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .help-grid { grid-template-columns: 1fr; } }
.help-card { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.4rem; color: var(--ink); transition: border-color .2s, transform .2s; }
.help-card:hover { border-color: var(--accent); transform: translateY(-3px); text-decoration: none; }
.help-card strong { display: block; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: .25rem; }
.help-card span { font-size: .86rem; color: var(--ink-faint); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #b9d2ce; padding: clamp(48px,6vw,72px) 0 36px; }
.site-footer a { color: #cfe3df; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 700px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #eef6f5; }
.footer-brand p { margin-top: 1rem; max-width: 46ch; color: #9fbdb8; font-size: .95rem; }
.footer-nav { display: flex; gap: 2.2rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) { .footer-nav { justify-content: flex-start; } }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-nav h4 { color: #eef6f5; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-body); margin-bottom: 1rem; }
.footer-bottom { padding-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: .85rem; color: #8aa9a4; }
.footer-disclaimer { font-size: .85rem; color: #8aa9a4; margin-top: 20px; max-width: 70ch; }
.footer-disclaimer ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.footer-disclaimer li { margin: .2rem 0; }

/* ---------- Legal / content pages ---------- */
.page-hero { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: clamp(56px,8vw,96px) 0 clamp(36px,5vw,56px); }
.prose { max-width: 720px; margin-inline: auto; }
.prose .lead { margin-bottom: 2rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2.4rem; }
.prose ol, .prose ul { color: var(--ink-soft); padding-left: 1.3rem; }
.prose li { margin: .4rem 0; }
.prose .reviewed { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-faint); }
.prose .legal-sec { margin-top: 2rem; }
.prose .legal-sec h2 { margin-top: 0; }

/* ---------- Game launch page ---------- */
.launch { padding: clamp(32px,5vw,64px) 0; }
.launch__head { max-width: 720px; margin-bottom: 28px; }
.game-stage {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.game-stage iframe { width: 100%; border: 0; display: block; min-height: 640px; background: var(--deep); }
.game-fallback { display: none; padding: clamp(28px,4vw,48px); text-align: center; color: var(--ink-soft); }
.game-fallback.is-shown { display: block; }
.game-fallback h3 { color: var(--ink); }
.game-fallback .btn { margin: .4rem .3rem 0; }
.launch__back { margin-top: 24px; display: inline-flex; align-items: center; gap: .5rem; }

/* ---------- Age gate ---------- */
.agegate {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(9,30,37,.72); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.agegate.is-open { display: flex; }
.agegate__panel {
  background: var(--surface); border-radius: var(--r-lg); max-width: 460px; width: 100%;
  padding: clamp(28px,4vw,44px); text-align: center; box-shadow: var(--shadow-lg);
}
.agegate__panel .brand__mark { width: 46px; height: 46px; margin: 0 auto 1.2rem; }
.agegate__panel h2 { font-size: 1.7rem; }
.agegate__panel p { color: var(--ink-soft); }
.agegate__actions { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.8rem; }
.agegate__note { font-size: .82rem; color: var(--ink-faint); margin-top: 1.2rem; }

/* ---------- Reveal / motion (JS-guarded) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
html.js .reveal-d1 { transition-delay: .08s; }
html.js .reveal-d2 { transition-delay: .16s; }
html.js .reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Virtual-scores callout band ---------- */
.virtual {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 36px); align-items: center;
  background: linear-gradient(135deg, #16454f 0%, #0e323d 100%); color: #dcebe9;
  border-radius: var(--r-lg); padding: clamp(28px, 4vw, 46px); position: relative; overflow: hidden;
}
.virtual::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(60% 80% at 100% 0%, color-mix(in oklab, var(--accent) 45%, transparent), transparent 70%); }
.virtual__icon { position: relative; flex: 0 0 auto; width: 92px; height: 92px; border-radius: 22px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; color: #aee0d9; line-height: 1; text-align: center; }
.virtual__icon small { display: block; font-family: var(--font-body); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: #8fb3af; margin-top: .25rem; }
.virtual__body { position: relative; }
.virtual__body h2 { color: #f1f8f6; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: .5rem; }
.virtual__body p { color: #b9d2ce; margin: 0; max-width: 64ch; }
@media (max-width: 620px) { .virtual { grid-template-columns: 1fr; text-align: left; } }

/* ---------- Cookie consent banner (JS-injected) ---------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(140%);
  width: calc(100% - 40px); max-width: 760px; z-index: 300;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 1.1rem 1.3rem;
  display: flex; align-items: center; gap: 1.1rem 1.4rem; flex-wrap: wrap;
  transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .45s ease; opacity: 0;
}
.cookie-banner.is-shown { transform: translateX(-50%) translateY(0); opacity: 1; }
.cookie-banner__text { flex: 1 1 280px; font-size: .92rem; color: var(--ink-soft); margin: 0; }
.cookie-banner__text a { color: var(--accent-ink); font-weight: 600; }
.cookie-banner__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-banner .btn { padding: .65rem 1.25rem; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: opacity .3s ease; } }
@media (max-width: 480px) { .cookie-banner__actions { width: 100%; } .cookie-banner__actions .btn { flex: 1; } }

/* utilities */
.u-center { text-align: center; }
.u-mt { margin-top: 1.4rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================
   Atmospheric effects — calm, guarded by prefers-reduced-motion
   ============================================================ */

/* Hero — drifting aurora mist */
.hero__aurora { position: absolute; inset: -25% -10%; z-index: 0; pointer-events: none; }
.hero__aurora span { position: absolute; border-radius: 50%; filter: blur(70px); mix-blend-mode: screen; opacity: .55; }
.hero__aurora span:nth-child(1) { width: 48vw; height: 48vw; left: -8%; top: -14%; background: radial-gradient(circle, oklch(0.62 0.09 205 / .6), transparent 64%); animation: drift1 24s ease-in-out infinite; }
.hero__aurora span:nth-child(2) { width: 42vw; height: 42vw; right: -10%; bottom: -22%; background: radial-gradient(circle, oklch(0.64 0.08 168 / .52), transparent 64%); animation: drift2 30s ease-in-out infinite; }
.hero__aurora span:nth-child(3) { width: 32vw; height: 32vw; left: 42%; top: 26%; background: radial-gradient(circle, oklch(0.56 0.07 232 / .42), transparent 64%); animation: drift3 27s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(7%,6%) scale(1.14); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-6%,-5%) scale(1.1); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(5%,-7%) scale(1.16); } }

/* Hero — pointer-reactive glow */
.hero__glow { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(460px circle at var(--mx,70%) var(--my,28%), rgba(174,224,217,.18), transparent 60%);
  transition: background .25s ease; opacity: 0; }
.hero:hover .hero__glow { opacity: 1; }

/* Hero — animated tide wave at bottom */
.hero__waves { position: absolute; left: -5%; right: -5%; width: 110%; bottom: -1px; z-index: 2; line-height: 0; pointer-events: none; }
.hero__waves svg { width: 100%; height: clamp(54px, 7vw, 96px); display: block; }
.hero__waves .wave--back { fill: color-mix(in oklab, var(--accent) 32%, transparent); animation: waveX 13s ease-in-out infinite; transform-origin: center; }
.hero__waves .wave--mid { fill: color-mix(in oklab, var(--accent) 16%, transparent); animation: waveX 9s ease-in-out infinite reverse; }
.hero__waves .wave--front { fill: var(--bg); }
@keyframes waveX { 0%,100% { transform: translateX(0); } 50% { transform: translateX(34px); } }

/* Eyebrow line draws in on reveal */
.eyebrow::before { transition: width .6s ease .15s; }
html.js .reveal .eyebrow::before, html.js .reveal.eyebrow::before { width: 0; }
html.js .reveal.is-visible .eyebrow::before, html.js .reveal.is-visible.eyebrow::before { width: 22px; }

/* Floating fjord image */
.media-frame img { animation: floaty 9s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Game cards — cover zoom + shine sweep + glow */
.game-card__cover { overflow: hidden; }
.game-card__cover img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.game-card:hover .game-card__cover img { transform: scale(1.06); }
.game-card__cover::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.22) 50%, transparent 62%);
  transform: translateX(-130%); transition: transform .8s ease; }
.game-card:hover .game-card__cover::after { transform: translateX(130%); }
.game-card:hover { box-shadow: var(--shadow-lg), 0 0 0 1px color-mix(in oklab, var(--accent) 35%, transparent); }

/* 18+ badge — soft pulse ring */
.agebadge__circle { position: relative; }
.agebadge__circle::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(174,224,217,.5); animation: pulsering 3.4s ease-out infinite; }
@keyframes pulsering { 0% { transform: scale(1); opacity: .7; } 70%,100% { transform: scale(1.35); opacity: 0; } }

/* Stat count-up — keep stable height */
.stat__num { font-variant-numeric: tabular-nums; }

/* Info cards — accent lift on hover */
.info-card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.info-card:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); box-shadow: var(--shadow); }

/* ============================================================
   Added visual layer — echo motif, particles, depth, motion
   ============================================================ */

/* Scroll progress bar (JS-injected, all pages) */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100; pointer-events: none;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 12px color-mix(in oklab, var(--accent) 65%, transparent); }

/* Hero — concentric echo rings (sound / echo motif) */
.hero__echo { position: absolute; z-index: 1; top: 30%; right: 12%; width: 0; height: 0; pointer-events: none; }
.hero__echo span { position: absolute; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(174,224,217,.30); transform: translate(-50%,-50%) scale(.1); opacity: 0;
  animation: echoPulse 7.5s ease-out infinite; }
.hero__echo span:nth-child(2) { animation-delay: 2.5s; }
.hero__echo span:nth-child(3) { animation-delay: 5s; }
@keyframes echoPulse {
  0% { transform: translate(-50%,-50%) scale(.1); opacity: 0; }
  12% { opacity: .55; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 0; }
}
@media (max-width: 760px) { .hero__echo { top: 24%; right: 0; } .hero__echo span { width: 380px; height: 380px; } }

/* Hero — ambient rising particles (JS-injected <i>) */
.hero__dust { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.hero__dust i { position: absolute; bottom: -12px; border-radius: 50%;
  background: rgba(174,224,217,.55); opacity: 0; animation: rise linear infinite; }
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  12% { opacity: .8; }
  88% { opacity: .45; }
  100% { transform: translateY(-118vh) translateX(var(--drift, 0)); opacity: 0; }
}

/* Primary button — shimmer sweep on hover */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after { content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.30), transparent);
  transform: skewX(-18deg); transition: left .6s ease; pointer-events: none; }
.btn--primary:hover::after { left: 150%; }

/* Game cards — pointer 3D tilt (JS sets --rx / --ry) */
.game-card { will-change: transform; }
.game-card.tilt { transition: transform .1s ease, box-shadow .25s ease;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }

/* Footer — wave divider rising into the deep band */
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46px;
  transform: translateY(-45px); background: var(--deep); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 46' preserveAspectRatio='none'%3E%3Cpath d='M0,46 L0,30 C220,2 480,46 720,26 C960,8 1080,40 1200,20 L1200,46 Z'/%3E%3C/svg%3E") repeat-x bottom / 1200px 46px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 46' preserveAspectRatio='none'%3E%3Cpath d='M0,46 L0,30 C220,2 480,46 720,26 C960,8 1080,40 1200,20 L1200,46 Z'/%3E%3C/svg%3E") repeat-x bottom / 1200px 46px; }

@media (prefers-reduced-motion: reduce) {
  .hero__aurora span, .media-frame img, .agebadge__circle::after, .hero__waves .wave--back, .hero__waves .wave--mid,
  .hero__echo span, .hero__dust i { animation: none !important; }
  .hero__glow, .hero__dust, .hero__echo { display: none; }
  .game-card.tilt { transform: translateY(-4px); }
}

/* Inner-page headers — soft accent depth */
.page-hero { position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 80% at 88% -10%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(44% 75% at -6% 110%, color-mix(in oklab, var(--accent-2) 16%, transparent), transparent 60%); }
.page-hero .container { position: relative; z-index: 1; }

/* Game launch stage — soft accent frame + glow */
.game-stage { box-shadow: var(--shadow), 0 0 0 1px color-mix(in oklab, var(--accent) 16%, transparent); transition: box-shadow .3s ease; }
.game-stage:hover { box-shadow: var(--shadow-lg), 0 0 0 1px color-mix(in oklab, var(--accent) 32%, transparent); }
.launch__head h1 { background: linear-gradient(120deg, var(--ink), var(--accent-ink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
