/* ==========================================================================
   Mint Loop Games: site styles
   Dark premium theme with mint and cyan accents. Mobile-first.
   ========================================================================== */

:root {
  --bg:          #070b0e;
  --bg-2:        #0a1115;
  --surface:     #0e171c;
  --surface-2:   #132028;
  --line:        rgba(160, 230, 215, .10);
  --line-strong: rgba(160, 230, 215, .20);

  --text:        #e9f5f1;
  --text-soft:   #b6cac5;
  --muted:       #7f9893;

  --mint:        #7cf5c8;
  --mint-2:      #5eebc0;
  --cyan:        #3ccfe6;
  --on-accent:   #04140f;
  --danger:      #ff8a8a;

  --grad:        linear-gradient(120deg, var(--mint) 0%, var(--mint-2) 45%, var(--cyan) 100%);
  --glow:        0 0 0 1px rgba(124, 245, 200, .18), 0 10px 40px -10px rgba(94, 235, 192, .35);

  --font-head:   "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:   "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius:      20px;
  --radius-sm:   12px;
  --gutter:      16px;
  --max:         1180px;
  --header-h:    68px;
  --ease:        cubic-bezier(.22, .8, .24, 1);
  color-scheme:  dark;
}

@media (min-width: 720px) { :root { --gutter: 28px; --header-h: 76px; } }

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 7.5vw, 5rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 4.4vw, 2.9rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p  { margin: 0 0 1em; }

a { color: var(--mint); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a, button, input, select, textarea, label { touch-action: manipulation; }
a:hover { color: #b2fbe0; }

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

::selection { background: rgba(124, 245, 200, .3); color: #fff; }

code {
  font-size: .9em;
  padding: .1em .4em;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--mint);
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mint);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.eyebrow a { color: inherit; text-decoration: none; }

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions-center { justify-content: center; }

.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  font: 600 1rem/1 var(--font-head);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), translate .35s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn:active { transform: translateY(1px) scale(.98); }

.btn-primary {
  background: var(--grad);
  color: var(--on-accent);
  box-shadow: 0 8px 28px -10px rgba(94, 235, 192, .6);
}
.btn-primary:hover {
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -10px rgba(94, 235, 192, .75);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .02);
  color: var(--text);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(124, 245, 200, .5);
  background: rgba(124, 245, 200, .06);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.nav-open .site-header {
  background: rgba(7, 11, 14, .78);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand picture { display: block; flex: none; line-height: 0; }
.brand-mark { width: auto; height: 30px; flex: none; transition: transform .5s var(--ease), filter .5s; }
.brand:hover .brand-mark { transform: scale(1.06); filter: drop-shadow(0 0 10px rgba(94, 235, 192, .45)); }

/* Wordmark styled after the official logo: wide-tracked caps, LOOP in mint, GAMES spaced below. */
.brand-name {
  display: grid;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.05;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-name b { color: var(--mint-2); font-weight: 600; }
.brand-name small {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .62em;
}

.nav-toggle {
  position: relative;
  z-index: 2;
  width: 46px; height: 46px;
  margin-right: -6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 12px;
  width: 22px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bars { top: 22px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); background: var(--text); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-7px) rotate(-45deg); background: var(--text); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  position: relative;
  display: block;
  color: var(--text-soft);
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }

/* Mobile drawer */
@media (max-width: 859px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    height: calc(100dvh - var(--header-h));
    padding: 24px var(--gutter) 40px;
    background: rgba(7, 11, 14, .97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s, transform .3s var(--ease);
  }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { padding: 18px 4px; font-size: 1.5rem; }
  .site-nav a[aria-current="page"] { color: var(--mint); }
  .nav-open { overflow: hidden; }
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav ul { display: flex; gap: 6px; }
  .site-nav a { padding: 10px 14px; font-size: .98rem; }
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
    transform: scaleX(0);
    transition: transform .3s var(--ease);
  }
  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* ---------- Background atmosphere ---------- */

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  -webkit-mask-image: linear-gradient(#000 65%, transparent);
  mask-image: linear-gradient(#000 65%, transparent);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
}
.glow-a {
  width: 620px; height: 620px;
  top: -220px; right: -160px;
  background: radial-gradient(circle, rgba(94, 235, 192, .45), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate;
}
.glow-b {
  width: 520px; height: 520px;
  bottom: -260px; left: -200px;
  background: radial-gradient(circle, rgba(60, 207, 230, .35), transparent 65%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
.grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 245, 200, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 245, 200, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 10%, transparent 75%);
}

@keyframes drift {
  to { transform: translate3d(-40px, 50px, 0) scale(1.08); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + 32px) 0 56px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: 24px;
  align-items: center;
}

.hero-copy { position: relative; z-index: 1; }
.hero h1 { margin-bottom: .35em; text-wrap: wrap; }
.hero-lede {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: .6em;
}
.hero-text { color: var(--text-soft); max-width: 34em; margin-bottom: 2rem; }

.hero-art {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  margin-inline: auto;
  order: -1;
  max-width: 400px;
}
.hero-loops { width: 100%; height: 100%; overflow: visible; }

@media (min-width: 900px) {
  .hero { min-height: min(100vh, 900px); display: flex; align-items: center; padding-bottom: 80px; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 40px; }
  .hero-art { order: 0; max-width: 560px; }
}

.orbit { transform-box: view-box; transform-origin: 260px 260px; }
.orbit-1 { animation: spin 38s linear infinite; }
.orbit-2 { animation: spin 60s linear infinite reverse; }
.orbit-3 { animation: spin 46s linear infinite; }

/* The official logo at the centre of the orbits: gentle float, soft glow, and a light sweep across the ribbon. */
.hero-logo {
  position: absolute;
  left: 50%; top: 50%;
  width: 66%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 34px rgba(94, 235, 192, .32));
  animation: logo-float 6s ease-in-out infinite;
}
.hero-logo picture, .hero-logo img { display: block; width: 100%; }
.hero-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .5) 50%, transparent 58%) no-repeat;
  background-size: 300% 100%;
  -webkit-mask: url("../img/logo-mark-640.webp") center / 100% 100% no-repeat;
  mask: url("../img/logo-mark-640.webp") center / 100% 100% no-repeat;
  animation: sheen 5.5s ease-in-out infinite 1s;
  background-position: 100% 0;
}

@keyframes logo-float {
  0%, 100% { transform: translate(-50%, -50%); }
  50%      { transform: translate(-50%, calc(-50% - 12px)); }
}
@keyframes sheen {
  0%   { background-position: 100% 0; }
  45%, 100% { background-position: 0% 0; }
}

.float-shape {
  position: absolute;
  display: block;
  animation: float 11s ease-in-out infinite;
}
.shape-ring {
  width: 34px; height: 34px;
  top: 8%; left: 6%;
  border: 3px solid var(--cyan);
  border-radius: 50%;
  opacity: .8;
}
.shape-tile {
  width: 26px; height: 26px;
  bottom: 12%; right: 4%;
  border-radius: 8px;
  background: var(--grad);
  opacity: .85;
  animation-delay: -2s;
  animation-duration: 13s;
}
.shape-plus {
  width: 22px; height: 22px;
  top: 14%; right: 12%;
  animation-delay: -4s;
}
.shape-plus::before, .shape-plus::after {
  content: "";
  position: absolute;
  inset: 9px 0;
  border-radius: 2px;
  background: var(--mint);
}
.shape-plus::after { inset: 0 9px; }

@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes float { 50% { transform: translate3d(0, -10px, 0) rotate(6deg); } }

/* ---------- Sections ---------- */

.section { position: relative; padding: 64px 0; }
.section-tight { padding: 32px 0 56px; }
@media (min-width: 900px) {
  .section { padding: 104px 0; }
  .section-tight { padding: 40px 0 88px; }
}

.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p:not(.eyebrow) { color: var(--text-soft); font-size: 1.1rem; }
.section-head h2 { margin-bottom: .35em; }

/* ---------- Stats ---------- */

.stats-section { padding-top: 0; }
.stats {
  display: grid;
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }

.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding: 28px 24px;
  background: var(--bg-2);
  text-align: center;
}
.stat dt { color: var(--muted); font-size: .92rem; font-weight: 500; }
.stat dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stats-note { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: .88rem; }

/* ---------- Upcoming panel ---------- */

.upcoming {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(60, 207, 230, .10), transparent 50%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.upcoming::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, var(--mint) 80%, var(--cyan) 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: border-spin 6s linear infinite;
  pointer-events: none;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes border-spin { to { --angle: 360deg; } }

.upcoming-art {
  position: relative;
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at 50% 50%, #0c1d1f, #060a0c 70%);
  border-bottom: 1px solid var(--line);
}
.upcoming-art svg { width: 100%; height: 100%; }
.spin-slow { transform-box: view-box; transform-origin: 200px 150px; animation: spin 40s linear infinite; }
.up-mark {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 800;
  fill: #7cf5c8;
  opacity: .85;
}

.upcoming-body { padding: 28px 24px 32px; }
.upcoming-body h3 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin: 18px 0 .4em; }
.upcoming-body p { color: var(--text-soft); max-width: 30em; }

@media (min-width: 860px) {
  .upcoming { grid-template-columns: 1.15fr 1fr; align-items: center; }
  .upcoming-art { aspect-ratio: auto; height: 100%; min-height: 420px; border-bottom: 0; border-right: 1px solid var(--line); }
  .upcoming-body { padding: 48px; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(124, 245, 200, .35);
  border-radius: 999px;
  background: rgba(124, 245, 200, .08);
  color: var(--mint);
  font: 600 .8rem/1 var(--font-head);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(124, 245, 200, .6);
  animation: ping 2s ease-out infinite;
}
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 8px rgba(124, 245, 200, 0); } }

.loader { margin-top: 28px; }
.loader-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
}
.loader-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: inherit;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(94, 235, 192, .5);
  animation: load 3.2s var(--ease) infinite;
}
@keyframes load {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(270%); }
}
.loader-label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font: 500 .85rem/1 var(--font-head);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.dots i { font-style: normal; animation: blink 1.4s infinite both; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }

/* ---------- Principles ---------- */

.principles {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.principle {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.principle:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 245, 200, .3);
  box-shadow: var(--glow);
}
.principle p { margin: 0; color: var(--text-soft); }
.principle-icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: rgba(124, 245, 200, .08);
  border: 1px solid rgba(124, 245, 200, .18);
  color: var(--mint);
}
.principle-icon svg { width: 32px; height: 32px; }
.principle:nth-child(2) .principle-icon { color: #5fe3d8; }
.principle:nth-child(3) .principle-icon { color: var(--cyan); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 36px 26px;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(124, 245, 200, .14), transparent 55%),
    radial-gradient(80% 120% at 100% 100%, rgba(60, 207, 230, .12), transparent 55%),
    var(--surface);
  overflow: hidden;
}
.cta-copy p:not(.eyebrow) { color: var(--text-soft); max-width: 38em; margin: 0; }
@media (min-width: 860px) {
  .cta-band { grid-template-columns: 1fr auto; padding: 56px; gap: 48px; }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + 48px) 0 32px;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.3rem, 6.5vw, 4.2rem); max-width: 16ch; }
.page-lede { max-width: 38em; color: var(--text-soft); font-size: clamp(1.05rem, 2vw, 1.2rem); }
.page-hero-sm { padding-bottom: 8px; }
.page-hero-sm h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.page-hero-center { text-align: center; min-height: 70vh; min-height: 70svh; display: flex; align-items: center; }
.page-hero-center h1, .page-hero-center .page-lede { margin-inline: auto; }
@media (min-width: 900px) { .page-hero { padding-top: calc(var(--header-h) + 88px); } }

.center-note { margin-top: 32px; text-align: center; color: var(--muted); }

/* ---------- Lists ---------- */

.feature-list, .topic-list, .inbox-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) { .feature-list { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

.feature-list li, .topic-list li {
  display: grid;
  gap: 4px;
  padding: 20px 22px 20px 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  position: relative;
}
.feature-list li::before, .topic-list li::before {
  content: "";
  position: absolute;
  left: 22px; top: 25px;
  width: 14px; height: 14px;
  border: 2.5px solid var(--mint);
  border-radius: 50%;
}
.feature-list strong, .topic-list strong { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.feature-list span, .topic-list span { color: var(--muted); font-size: .95rem; }

.inbox-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.inbox-list span { color: var(--muted); font-size: .88rem; }
.inbox-list a { font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Split layout + forms ---------- */

.split { display: grid; gap: 40px; }
.split-aside h2 { font-size: 1.5rem; margin-bottom: 1rem; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
  .split .form-card { position: sticky; top: calc(var(--header-h) + 24px); }
}

.note-card {
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  background: rgba(124, 245, 200, .03);
}
.note-card h3 { font-size: 1.05rem; margin-bottom: .5em; }
.note-card p { color: var(--text-soft); font-size: .95rem; }
.note-card p:last-child { margin-bottom: 0; }

.form-card {
  position: relative;
  padding: 28px 22px;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: 0 30px 80px -50px rgba(0, 0, 0, .9);
}
.form-card h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
@media (min-width: 720px) { .form-card { padding: 40px; } }

.field-row { display: grid; gap: 0 16px; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: .95rem;
}
.optional { color: var(--muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .25);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 150px; }
.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237cf5c8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field select option { background: var(--surface); color: var(--text); }
.field ::placeholder { color: var(--muted); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(124, 245, 200, .3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--mint);
  background-color: rgba(0, 0, 0, .35);
  box-shadow: 0 0 0 4px rgba(124, 245, 200, .14);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin: 6px 0 0; color: var(--danger); font-size: .88rem; }

.form-fineprint { color: var(--muted); font-size: .88rem; }

.form-status {
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: .97rem;
}
.form-status:focus { outline: none; }
.form-status.is-success { background: rgba(124, 245, 200, .1); border: 1px solid rgba(124, 245, 200, .4); color: #c8fbe8; }
.form-status.is-error   { background: rgba(255, 138, 138, .08); border: 1px solid rgba(255, 138, 138, .4); color: #ffd0d0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Prose / legal / about ---------- */

.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-soft); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--mint); }
.legal { font-size: 1rem; }

.about-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.4fr 1fr; gap: 72px; align-items: start; } }

.values { display: grid; gap: 14px; }
@media (min-width: 960px) { .values { position: sticky; top: calc(var(--header-h) + 24px); } }
.value {
  display: flex;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.value h3 { font-size: 1.1rem; margin-bottom: .3em; }
.value p { margin: 0; color: var(--muted); font-size: .95rem; }
.value-key {
  font: 800 1.4rem/1 var(--font-head);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Game pages (Phase 2+) ---------- */

.game-grid { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
.game-card a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.game-card a:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: rgba(124, 245, 200, .3); }
.game-card > a > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.game-card-body { display: flex; gap: 14px; align-items: center; padding: 18px; }
.game-card h2 { font-size: 1.2rem; margin: 0 0 .2em; }
.game-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.game-icon { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.game-icon-lg { width: 112px; height: 112px; border-radius: 26px; box-shadow: var(--glow); }

.game-hero-inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 720px) { .game-hero-inner { grid-template-columns: auto 1fr; gap: 36px; } }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.game-cover { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }

.screens {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(62%, 260px);
  gap: 14px;
  margin: 20px 0 0;
  padding: 0 0 10px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.screens li { scroll-snap-align: start; }
.screens img { border-radius: var(--radius-sm); border: 1px solid var(--line); }

.game-details { display: grid; gap: 40px; }
@media (min-width: 960px) { .game-details { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.info-card { padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.info-card dl { margin: 0 0 18px; }
.info-card dl div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.info-card dt { color: var(--muted); }
.info-card dd { margin: 0; font-weight: 500; }
.info-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 40px;
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), #05080a);
}
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
@media (max-width: 859px) { .footer-col:nth-child(3) { grid-column: 1 / -1; order: 3; } }
.footer-brand p { margin-top: 16px; color: var(--muted); max-width: 30em; font-size: .95rem; }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 48px; }
  .footer-brand { grid-column: auto; }
}
.footer-col h2 {
  margin-bottom: 14px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--text-soft); text-decoration: none; font-size: .95rem; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--mint); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}
.footer-bottom p { margin: 0; }
.socials { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.socials a { color: var(--text-soft); text-decoration: none; }

/* ---------- Live layer: particles, tilt, entrance, spotlight, ticker ---------- */

.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; }

/* The hero art tilts toward the pointer; JS sets --rx/--ry and --px/--py (-1..1). */
.hero-stage {
  position: absolute;
  inset: 0;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .7s var(--ease);
}
.float-shape {
  translate: calc(var(--px, 0) * var(--depth, 20px)) calc(var(--py, 0) * var(--depth, 20px));
  transition: translate .7s var(--ease);
}
.shape-ring { --depth: 34px; }
.shape-tile { --depth: 48px; }
.shape-plus { --depth: 22px; }
.hero-logo {
  translate: calc(var(--px, 0) * -12px) calc(var(--py, 0) * -12px);
  transition: translate .7s var(--ease);
}

/* Page-load entrance: words rise in sequence, the art scales up out of a blur. */
@keyframes rise   { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes art-in { from { opacity: 0; scale: .86; filter: blur(10px); } to { opacity: 1; scale: 1; filter: blur(0); } }

.hero h1 .w { display: inline-block; animation: rise .9s var(--ease) both; }
.hero h1 .w:nth-child(1) { animation-delay: .12s; }
.hero h1 .w:nth-child(2) { animation-delay: .22s; }
.hero h1 .w:nth-child(3) { animation-delay: .32s; }
.hero h1 .w:nth-child(4) { animation-delay: .42s; }
.hero-copy .eyebrow  { animation: rise .8s var(--ease) both; }
.hero-copy .hero-lede { animation: rise .8s var(--ease) .55s both; }
.hero-copy .hero-text { animation: rise .8s var(--ease) .65s both; }
.hero-copy .actions   { animation: rise .8s var(--ease) .75s both; }
.hero-art { animation: art-in 1.3s var(--ease) .15s both; }

/* Inner pages: same entrance, and the logo-in-orbit art on the right (desktop). */
.page-hero .eyebrow     { animation: rise .8s var(--ease) both; }
.page-hero h1           { animation: rise .9s var(--ease) .1s both; }
.page-hero .page-lede,
.page-hero .muted       { animation: rise .8s var(--ease) .25s both; }
.page-hero .actions     { animation: rise .8s var(--ease) .35s both; }

.page-hero-inner { position: relative; }
.page-art { display: none; }
@media (min-width: 1000px) {
  .page-hero-inner {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
  .page-hero-inner > :not(.page-art) { max-width: min(38em, calc(100% - 400px)); }
  .page-art {
    display: block;
    position: absolute;
    right: var(--gutter);
    top: 50%;
    width: 340px;
    max-width: none;
    margin: 0;
    translate: 0 -50%;
  }
}

/* Cursor spotlight on cards (class added by JS on fine pointers). */
.spot { position: relative; }
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(124, 245, 200, .11), transparent 45%);
  opacity: 0;
  transition: opacity .35s;
}
.spot:hover::after { opacity: 1; }

/* Brand ticker between hero and content. */
.ticker {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(124, 245, 200, .04), rgba(60, 207, 230, .04));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span {
  font: 600 clamp(1rem, 2.2vw, 1.35rem)/1 var(--font-head);
  letter-spacing: .02em;
  color: var(--text-soft);
  white-space: nowrap;
}
.ticker span:nth-of-type(odd) { color: var(--text); }
.ticker i {
  width: 10px; height: 10px;
  flex: none;
  border-radius: 3px;
  background: var(--grad);
  transform: rotate(45deg);
}
@keyframes ticker { to { transform: translateX(calc(-50% - 14px)); } }

/* Rotating status line under the loader. */
[data-status] { display: inline-block; transition: opacity .35s var(--ease), translate .35s var(--ease); }
[data-status].is-swapping { opacity: 0; translate: 0 6px; }

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .principles .reveal:nth-child(2) { transition-delay: .08s; }
.js .principles .reveal:nth-child(3) { transition-delay: .16s; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero-logo::after { display: none; }
  .loader-fill { transform: none; width: 60%; }
}
