/* ==========================================================================
   Tembo Entertainment — design system
   No brand assets survive from the studio: its site is gone and no archive
   holds a copy. This is therefore an original design for the rebuild, not a
   reconstruction — a dark arcade palette (violet, magenta, lime, cyan) chosen
   to suit minimal one-tap mobile games. Documented as such in the README.
   ========================================================================== */

:root {
  --ink: #0b0d17;
  --surface: #14172a;
  --surface-2: #1c2039;
  --surface-3: #252a47;
  --line: #2c3155;
  --line-soft: #232846;

  --text: #eef0fa;
  --text-soft: #b3b9d6;
  --text-mute: #868db0;

  --violet: #7c5cff;
  --violet-dim: #5f45d6;
  --magenta: #ff4d8d;
  --lime: #b6ff3d;
  --cyan: #38e1ff;
  --amber: #ffb03a;

  --maxw: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.6);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "Noto Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.66;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--magenta); }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.14; letter-spacing: -.022em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.7rem); }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.45rem); }
h3 { font-size: clamp(1.14rem, 1.9vw, 1.36rem); }
h4 { font-size: 1rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
.section { padding: clamp(3.2rem, 6.6vw, 5.8rem) 0; }
.section-alt { background: var(--surface); }
.section-deep { background: #07080f; }
.section-tight { padding: clamp(2.3rem, 4.5vw, 3.2rem) 0; }
.grid { display: grid; gap: clamp(1.05rem, 2.3vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.split { display: grid; gap: clamp(1.7rem, 4.4vw, 3.4rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-wide { grid-template-columns: 1.14fr .86fr; }
  .split-narrow { grid-template-columns: .86fr 1.14fr; }
}
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* -------------------------------------------------------------- type */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono);
  font-size: .73rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--lime); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--magenta); border-radius: 2px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-soft); line-height: 1.62; }
.muted { color: var(--text-mute); }
.small { font-size: .88rem; }
.mono { font-family: var(--mono); font-size: .86rem; }
.section-head { max-width: 760px; margin-bottom: clamp(1.8rem, 3.8vw, 2.9rem); }
.section-head.center { margin-inline: auto; }
.glow-text {
  background: linear-gradient(92deg, var(--lime), var(--cyan) 45%, var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.45rem; border-radius: 100px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 6px 22px rgba(124,92,255,.35); }
.btn-primary:hover { background: var(--violet-dim); color: #fff; }
.btn-lime { background: var(--lime); color: #10210a; }
.btn-lime:hover { background: #cbff6b; color: #10210a; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .18s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------------------------------------------------------------- header */
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--violet); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: .5rem; top: .5rem; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,13,23,.88); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 1.2rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }
.brand img { width: 154px; height: auto; }
.brand-tag { font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); border-left: 1px solid var(--line); padding-left: .7rem; }
@media (max-width: 720px) { .brand-tag { display: none; } }
.nav { margin-left: auto; display: none; }
@media (min-width: 940px) { .nav { display: block; } }
.nav ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: .55rem .8rem; border-radius: 8px; text-decoration: none; color: var(--text-soft); font-weight: 600; font-size: .94rem; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--lime); border-radius: 8px 8px 0 0; }
.header-cta { display: none; margin-left: .5rem; }
@media (min-width: 940px) { .header-cta { display: inline-flex; } }
.nav-toggle {
  margin-left: auto; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; background: none; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
}
@media (min-width: 940px) { .nav-toggle { display: none; } }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer {
  position: fixed; inset: 74px 0 0; z-index: 45; background: var(--ink);
  padding: 1.2rem var(--gutter) 2.5rem; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.drawer.is-open { opacity: 1; transform: none; visibility: visible; }
@media (min-width: 940px) { .drawer { display: none; } }
.drawer ul { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.drawer a { display: block; padding: .92rem .2rem; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--text); font-size: 1.08rem; font-weight: 700; }
.drawer a[aria-current="page"] { color: var(--lime); }
body.no-scroll { overflow: hidden; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; background: #07080f; }
.hero-media, .hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media { opacity: .42; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(7,8,15,.94) 0%, rgba(20,23,42,.82) 45%, rgba(124,92,255,.28) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: clamp(3.4rem, 7.4vw, 6.6rem) 0 clamp(2.8rem, 6vw, 5rem); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lede { color: #c9cee6; max-width: 56ch; }
.hero-actions { margin-top: 1.85rem; }
.hero-facts { position: relative; z-index: 2; display: grid; gap: 1px; background: var(--line-soft); border-top: 1px solid var(--line-soft); }
@media (min-width: 780px) { .hero-facts { grid-template-columns: repeat(3, 1fr); } }
.hero-fact { background: rgba(11,13,23,.86); padding: 1.3rem var(--gutter); }
.hero-fact b { display: block; font-family: var(--mono); font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--lime); line-height: 1.25; }
.hero-fact span { display: block; font-size: .86rem; color: var(--text-mute); margin-top: .35rem; }

/* --------------------------------------------------------------- chips */
.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .72rem;
  border-radius: 100px; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  background: var(--surface-3); color: var(--text-soft);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-lime { background: rgba(182,255,61,.14); color: var(--lime); }
.chip-magenta { background: rgba(255,77,141,.14); color: var(--magenta); }
.chip-cyan { background: rgba(56,225,255,.14); color: var(--cyan); }
.chip-amber { background: rgba(255,176,58,.14); color: var(--amber); }

/* --------------------------------------------------------------- surfaces */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 2.3vw, 1.8rem);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--violet); }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card-flat { background: var(--surface-2); border-color: var(--line-soft); }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { color: inherit; }
.rule-num { font-family: var(--mono); font-size: .78rem; color: var(--magenta); font-weight: 700; display: block; margin-bottom: .5rem; letter-spacing: .1em; }

/* ------------------------------------------------------------- game tile */
.game {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.game:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--violet); }
.game-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.game-art .tag { position: absolute; left: .9rem; top: .9rem; }
.game-body { padding: clamp(1.15rem, 2.2vw, 1.6rem); display: flex; flex-direction: column; flex: 1; }
.game-body h3 { margin-bottom: .3rem; }
.game-body .meta { font-family: var(--mono); font-size: .76rem; color: var(--text-mute); margin-bottom: .7rem; }
.game-body p:last-of-type { margin-bottom: 1rem; }
.game-body .btn-row { margin-top: auto; }

/* --------------------------------------------------------- screenshot row */
.shots { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.shot { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shot img { width: 100%; display: block; image-rendering: pixelated; background: #05060c; }
.shot figcaption { font-size: .8rem; color: var(--text-mute); padding: .7rem .9rem; margin: 0; }

/* -------------------------------------------------------------- gallery */
.gallery { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.gallery figure { margin: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: .78rem; line-height: 1.45; color: var(--text-mute); padding: .7rem .85rem; }
.gallery figcaption b { color: var(--text-soft); font-weight: 600; display: block; }
.gallery-wide { grid-column: 1 / -1; }
.gallery-wide img { aspect-ratio: 21 / 9; }

/* --------------------------------------------------------------- video */
.videoband { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #05060c; }
.videoband video, .videoband img { width: 100%; display: block; }
.videoband .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem clamp(1rem,3vw,2rem) 1rem;
  background: linear-gradient(to top, rgba(5,6,12,.94), rgba(5,6,12,0));
  font-size: .82rem; color: #c9cee6;
}
.videoband .cap b { color: #fff; display: block; margin-bottom: .15rem; }

/* Trailer cards - a still from the studio's own videos, linking out to them. */
.trailer-card { display: block; padding: 0; overflow: hidden; text-decoration: none; color: inherit; }
.trailer-card img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.trailer-meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.05rem; border-top: 1px solid var(--line);
}
.trailer-meta b { font-size: 1rem; }
.trailer-meta span { font-family: var(--mono); font-size: .74rem; color: var(--text-mute); white-space: nowrap; }
.trailer-card:hover .trailer-meta b { color: var(--lime); }

/* Click-to-play trailer. Nothing is requested from YouTube until it is clicked. */
.embed { position: relative; display: block; overflow: hidden; padding: 0; }
.embed img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.embed-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(11,13,23,.72); color: #fff; font-size: 1.35rem; line-height: 1;
  display: grid; place-items: center; padding-left: 5px;
  box-shadow: 0 6px 22px rgba(0,0,0,.45); transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.embed:hover .embed-play, .embed-play:focus-visible { background: var(--lime); color: var(--ink); transform: translate(-50%, -50%) scale(1.08); }
.embed.is-playing img, .embed.is-playing .embed-play, .embed.is-playing .embed-note { display: none; }
.embed.is-playing { aspect-ratio: 16 / 9; background: #05060c; }
.embed-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-note { position: absolute; left: 0; right: 0; bottom: 0; padding: .7rem 1rem; font-size: .76rem; color: #c9cee6; background: linear-gradient(to top, rgba(5,6,12,.9), rgba(5,6,12,0)); }
.embed-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .85rem 1.05rem; border-top: 1px solid var(--line); }
.embed-meta b { font-size: 1rem; }
.embed-meta a { font-family: var(--mono); font-size: .72rem; color: var(--text-mute); white-space: nowrap; }
.embed-meta a:hover { color: var(--lime); }

/* --------------------------------------------------------------- feature list */
.feat { list-style: none; padding: 0; margin: .8rem 0 0; }
.feat li { position: relative; padding-left: 1.75rem; margin-bottom: .42rem; font-size: .95rem; color: var(--text-soft); }
.feat li::before {
  content: ""; position: absolute; left: 0; top: .55rem; width: 14px; height: 9px;
  border-left: 2.5px solid var(--lime); border-bottom: 2.5px solid var(--lime);
  transform: rotate(-45deg) scale(.85); transform-origin: left center;
}
.feat-cross li::before {
  border: 0; width: 13px; height: 13px; top: .45rem;
  background:
    linear-gradient(45deg, transparent 44%, var(--magenta) 44%, var(--magenta) 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--magenta) 44%, var(--magenta) 56%, transparent 56%);
  transform: none;
}

/* --------------------------------------------------------------- specs */
.specs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.specs li { display: flex; gap: 1rem; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.specs .k { color: var(--text-mute); }
.specs .v { font-weight: 700; text-align: right; }

/* ------------------------------------------------------------- compare */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; }
table.compare th, table.compare td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; vertical-align: top; }
table.compare thead th { background: var(--surface-2); color: var(--text); font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare td:first-child { color: var(--text-mute); width: 30%; }
table.compare .yes { color: var(--lime); font-weight: 700; }
table.compare .no { color: var(--text-mute); }

/* ---------------------------------------------------------------- steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.05rem; }
.step { position: relative; padding-left: 3.5rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 2.45rem; height: 2.45rem; border-radius: 10px;
  background: var(--surface-3); border: 1px solid var(--line); color: var(--lime);
  display: grid; place-items: center; font-family: var(--mono); font-size: .8rem; font-weight: 700;
}
.step h4 { margin-bottom: .25rem; }
.step p { margin: 0; color: var(--text-soft); font-size: .95rem; }

/* ---------------------------------------------------------------- stats */
.stat b { display: block; font-family: var(--mono); font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1; color: var(--lime); }
.stat span { display: block; margin-top: .5rem; color: var(--text-soft); font-size: .92rem; }

/* ------------------------------------------------------------------ tabs */
.tabs { border-bottom: 1px solid var(--line); display: flex; gap: .15rem; overflow-x: auto; margin-bottom: 1.8rem; }
.tab {
  appearance: none; background: none; border: 0; border-bottom: 3px solid transparent;
  padding: .78rem .95rem; cursor: pointer; font-weight: 700; color: var(--text-mute);
  white-space: nowrap; transition: color .16s var(--ease), border-color .16s var(--ease);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--lime); }
.tabpanel[hidden] { display: none; }
.tabpanel { animation: fade .28s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------- accordion */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: 0; padding: 1.1rem .2rem; cursor: pointer; text-align: left;
  font-weight: 700; font-size: 1.02rem; color: var(--text);
}
.acc-btn:hover { color: var(--lime); }
.acc-btn .chev { flex: 0 0 auto; width: 22px; height: 22px; position: relative; }
.acc-btn .chev::before, .acc-btn .chev::after {
  content: ""; position: absolute; top: 10px; left: 3px; width: 16px; height: 2px;
  background: var(--lime); border-radius: 2px; transition: transform .22s var(--ease);
}
.acc-btn .chev::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .chev::after { transform: rotate(0); }
.acc-panel > div { padding: 0 .2rem 1.2rem; color: var(--text-soft); }
.acc-panel[hidden] { display: none; }

/* -------------------------------------------------------------- timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.6rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding-bottom: 1.55rem; }
.timeline li::before {
  content: ""; position: absolute; left: -1.6rem; top: .5rem; width: 11px; height: 11px;
  border-radius: 50%; background: var(--lime); transform: translateX(-5.5px);
  box-shadow: 0 0 0 4px var(--ink);
}
.timeline .yr { font-family: var(--mono); font-weight: 700; color: var(--magenta); font-size: .88rem; }
.timeline h4 { margin: .1rem 0 .2rem; }
.timeline p { margin: 0; color: var(--text-soft); font-size: .95rem; }

/* --------------------------------------------------------------- figures */
figure { margin: 0; }
.fig-frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1rem, 2.6vw, 1.8rem); }
figcaption { font-size: .85rem; color: var(--text-mute); margin-top: .85rem; }

/* --------------------------------------------------------- callout/notice */
.callout { border-left: 4px solid var(--lime); background: rgba(182,255,61,.07); padding: 1.15rem 1.35rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-warn { border-left-color: var(--amber); background: rgba(255,176,58,.08); }
.callout-info { border-left-color: var(--cyan); background: rgba(56,225,255,.07); }
.notice { background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.05rem 1.2rem; font-size: .92rem; color: var(--text-soft); }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .36rem; }
.field label { font-size: .9rem; font-weight: 700; }
.field .req { color: var(--magenta); }
.field input, .field textarea, .field select {
  width: 100%; padding: .76rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .97rem; color: var(--text); background: var(--surface-2);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56,225,255,.16); }
.field .err { font-size: .84rem; color: #ff8a8a; min-height: 1.05em; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--magenta); }
.form-note { font-size: .85rem; color: var(--text-mute); }
.form-status { border-radius: var(--radius-sm); padding: .9rem 1.05rem; font-size: .94rem; }
.form-status[hidden] { display: none; }
.form-status.ok { background: rgba(182,255,61,.1); color: var(--lime); border: 1px solid rgba(182,255,61,.4); }
.form-status.bad { background: rgba(255,77,141,.1); color: #ffb3cd; border: 1px solid rgba(255,77,141,.45); }
.checkline { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--text-soft); }
.checkline input { width: auto; margin-top: .28rem; }

/* --------------------------------------------------------------- footer */
.site-footer { background: #07080f; color: var(--text-mute); padding: clamp(2.5rem, 4.8vw, 3.7rem) 0 1.5rem; font-size: .94rem; border-top: 1px solid var(--line-soft); }
.site-footer h4 { color: #fff; font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .85rem; }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--lime); text-decoration: underline; }
.footer-grid { display: grid; gap: 1.9rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand img { width: 148px; margin-bottom: .8rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-bottom {
  margin-top: 2.2rem; padding-top: 1.25rem; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; font-size: .82rem; color: #6a7099;
}

/* -------------------------------------------------------------- utilities */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(20,23,42,.94);
  color: var(--lime); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.breadcrumb { font-family: var(--mono); font-size: .8rem; color: var(--text-mute); padding: 1rem 0 0; }
.breadcrumb a { color: var(--text-mute); }
.breadcrumb span { margin: 0 .4rem; }
.page-hero { background: linear-gradient(150deg, #0f1224, var(--surface-2)); padding: clamp(2.5rem, 5.6vw, 4.2rem) 0 clamp(2.3rem, 4.8vw, 3.4rem); border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lede { color: var(--text-soft); max-width: 62ch; }
.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.tag-list li { margin: 0; }
.tag-list span { display: inline-block; padding: .3rem .72rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 100px; font-family: var(--mono); font-size: .78rem; color: var(--text-soft); }

/* credit line under media */
.credit { font-size: .78rem; line-height: 1.5; color: var(--text-mute); }
.credit b { color: var(--text-soft); font-weight: 600; }

@media print {
  .site-header, .drawer, .to-top, .site-footer, .videoband { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .card, .game, .section-alt, .section-deep, .page-hero { background: #fff !important; border-color: #ccc !important; }
  h1, h2, h3, .lede, p, li { color: #000 !important; }
  .glow-text { -webkit-text-fill-color: #000; color: #000; }
}
