/* Fonts are served from this site (no third-party requests; see /privacy). SIL Open Font License, see fonts/LICENSE-*.txt */
@font-face { font-family: "Unbounded"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/unbounded-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/unbounded-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 800; font-style: normal; font-display: swap; src: url(fonts/unbounded-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/instrument-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Silkscreen"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/silkscreen-latin-400-normal.woff2) format("woff2"); }

/* Otto Studios site design (home and game pages, since 2026-11-26): "the lair after dark".
   The policy, support, press and wiki pages still use site.css.
   Layout: one committed dark world. Full-bleed bands, content on a 76rem column, the logo's thin
   vertical mirror line used as the recurring brand mark. Brass is the only loud colour; each game
   gets one quiet accent of its own (ember for Hoardkeep, stamina green for Fitness RPG). */
:root {
  --ink: #0d0c0a;          /* page ground */
  --coal: #15130f;         /* sunken bands */
  --soot: #1e1b16;         /* raised surfaces */
  --edge: #3a342a;         /* hairlines and card edges */
  --ivory: #f3eee3;        /* text */
  --ash: #a89f8e;          /* secondary text */
  --brass: #b38b4d;        /* brand brass */
  --brass-hi: #e3c58f;     /* brass highlight, text on dark */
  --brass-glow: rgba(179, 139, 77, 0.35);
  --ember: #f07a3a;        /* Hoardkeep */
  --ember-glow: rgba(240, 122, 58, 0.28);
  --stamina: #9ad25b;      /* Fitness RPG */
  --stamina-glow: rgba(154, 210, 91, 0.22);
  --danger: #f0a493;
  --shade: rgba(0, 0, 0, 0.55);
  --field-edge: #756b5a;   /* text-field edges, 3:1 or better on every surface they sit on */

  --font-display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-pixel: "Silkscreen", ui-monospace, "SF Mono", Menlo, monospace;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --page: 76rem;
  --radius: 18px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font: 400 1.0625rem/1.6 var(--font-text);
  overflow-x: hidden; overflow-x: clip; /* hidden is the fallback for Safari before 16 */
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--ink);
}
img, video, svg, canvas { max-width: 100%; display: block; }
a { color: var(--brass-hi); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ivory); }
::selection { background: var(--brass-glow); }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--page); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.skip { position: absolute; left: 0; top: 0; transform: translateY(-120%); z-index: 100; background: var(--brass); color: var(--ink); padding: 0.6rem 1rem; border-radius: 0 0 10px 0; font-weight: 600; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(13, 12, 10, 0.78);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(58, 52, 42, 0.6);
}
.top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ivory); }
.brand svg { width: 78px; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.nav a { color: var(--ash); text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding: 0.5rem 0.7rem; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ivory); background: var(--soot); }
.nav .btn { margin-left: 0.4rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--edge); color: var(--ivory); border-radius: 999px; padding: 0.5rem 0.9rem; font: 600 0.875rem var(--font-text); cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--coal); border-bottom: 1px solid var(--edge); padding: 0.5rem var(--gutter-r) 1rem var(--gutter-l); }
  .nav.open { display: flex; }
  .nav a { padding: 0.85rem 0.5rem; border-radius: 10px; font-size: 1.0625rem; }
  .nav .btn { margin: 0.5rem 0 0; justify-content: center; }
}

/* ---------- Buttons and chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem; justify-content: center;
  font: 600 0.9375rem/1 var(--font-text); text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), background .2s, color .2s, box-shadow .25s, border-color .2s;
  position: relative; isolation: isolate; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-brass { background: var(--brass); color: var(--ink); box-shadow: 0 0 0 0 var(--brass-glow); }
.btn-brass:hover { color: var(--ink); background: var(--brass-hi); box-shadow: 0 8px 30px -6px var(--brass-glow); }
.btn-ghost { color: var(--ivory); border-color: var(--edge); background: rgba(30, 27, 22, 0.6); }
.btn-ghost:hover { border-color: var(--brass); color: var(--ivory); }
.btn-sm { padding: 0.6rem 0.95rem; font-size: 0.875rem; }
.ext::after { content: "↗"; font-size: 0.85em; opacity: 0.8; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li { font-size: 0.8125rem; font-weight: 500; color: var(--brass-hi); border: 1px solid var(--edge); background: rgba(30,27,22,.7); padding: 0.3rem 0.7rem; border-radius: 999px; }
.eyebrow { font: 400 0.75rem/1.2 var(--font-pixel); color: var(--brass-hi); }

/* ---------- Sections ---------- */
.band { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.band-coal { background: var(--coal); border-block: 1px solid rgba(58,52,42,.5); }
.head { display: grid; gap: 0.9rem; max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.head h2 { font-size: clamp(2rem, 5.2vw, 3.6rem); }
.head p { color: var(--ash); font-size: 1.125rem; max-width: 38rem; }
.mirror { display: inline-block; width: 3px; align-self: stretch; background: linear-gradient(180deg, transparent, var(--brass-hi) 50%, transparent); border-radius: 3px; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(180deg, transparent, var(--ink)); z-index: -1; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.5rem; min-width: 0; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.9rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(100deg, var(--brass) 0%, var(--brass-hi) 40%, #fff3d6 50%, var(--brass-hi) 60%, var(--brass) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hero .lede { font-size: clamp(1.0625rem, 1.7vw, 1.25rem); color: var(--ash); max-width: 34rem; }
.hero .lede strong { color: var(--ivory); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- The hoard (playable panel) ---------- */
.hoard {
  position: relative; border-radius: 26px; padding: 1.25rem; min-width: 0;
  background: linear-gradient(160deg, rgba(40, 33, 24, .92), rgba(18, 16, 13, .94));
  border: 1px solid var(--edge);
  box-shadow: 0 40px 80px -30px var(--shade), inset 0 1px 0 rgba(255,255,255,.04);
  display: grid; gap: 1rem;
}
.hoard::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, var(--brass-hi), transparent 35%, transparent 65%, var(--brass)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .7; }
.hoard-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.live { display: inline-flex; align-items: center; gap: 0.45rem; font: 400 0.6875rem var(--font-pixel); color: var(--stamina); }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stamina); box-shadow: 0 0 0 0 var(--stamina-glow); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(154,210,91,.55); } 100% { box-shadow: 0 0 0 10px rgba(154,210,91,0); } }
.hoard-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: center; }
.tap {
  position: relative; width: 116px; height: 116px; border-radius: 28px; border: 0; padding: 0; cursor: pointer;
  background: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform .12s;
}
.tap img { width: 100%; height: 100%; border-radius: 28px; box-shadow: 0 14px 40px -8px var(--ember-glow), 0 0 0 1px rgba(255,255,255,.06); }
.tap::after { content: ""; position: absolute; inset: -6px; border-radius: 32px; border: 2px solid var(--ember); opacity: 0; transform: scale(.9); transition: opacity .3s, transform .3s; }
.tap:hover::after { opacity: .6; transform: scale(1); }
.tap.hit { transform: scale(.92); }
.tap-label { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); background: var(--ember); color: var(--ink); font: 400 0.6875rem/1 var(--font-pixel); padding: 0.3rem 0.45rem; border-radius: 4px; white-space: nowrap; }
.count { display: grid; gap: 0.2rem; min-width: 0; }
.count .label { font-size: 0.8125rem; color: var(--ash); }
.count .amount { display: flex; align-items: center; gap: 0.55rem; font: 700 clamp(1.6rem, 3.4vw, 2.3rem)/1.05 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.count .amount img { width: 38px; height: 38px; flex: none; image-rendering: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.count .rate { font-size: 0.875rem; color: var(--brass-hi); font-variant-numeric: tabular-nums; }
.stage { display: grid; gap: 0.45rem; }
.stage-row { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.875rem; color: var(--ash); }
.stage-row strong { color: var(--ivory); font-weight: 600; }
.bar { height: 10px; border-radius: 999px; background: #0b0a08; border: 1px solid var(--edge); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--ember), var(--brass-hi)); transition: width .3s; }
.minions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.minion, .upgrade {
  text-align: left; display: grid; gap: 0.15rem; padding: 0.65rem 0.75rem; border-radius: 12px; cursor: pointer;
  background: rgba(13,12,10,.55); border: 1px solid var(--edge); color: var(--ivory); font: inherit; font-size: 0.8125rem; line-height: 1.3;
  transition: border-color .2s, background .2s, transform .12s, opacity .2s; min-width: 0;
}
.minion:hover:not(:disabled), .upgrade:hover:not(:disabled) { border-color: var(--brass); background: rgba(179,139,77,.08); }
.minion:active:not(:disabled), .upgrade:active:not(:disabled) { transform: scale(.98); }
.minion:disabled, .upgrade:disabled { cursor: not-allowed; opacity: .5; }
.minion .nm { display: flex; justify-content: space-between; gap: 0.5rem; font-weight: 600; font-size: 0.875rem; }
.minion .own { font: 400 0.6875rem var(--font-pixel); color: var(--brass-hi); }
.minion .meta, .upgrade .meta { color: var(--ash); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.minion.locked { display: none; }
.upgrades { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.upgrade { flex: 1 1 10rem; }
.upgrade b { font-weight: 600; }
.hoard-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.hoard-sub h3 { font: 600 0.8125rem var(--font-text); color: var(--ash); letter-spacing: 0; }
.linkish { background: none; border: 0; padding: 0; color: var(--ash); font: inherit; font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.linkish:hover { color: var(--ivory); }
.toast { font-size: 0.875rem; background: rgba(154,210,91,.1); border: 1px solid rgba(154,210,91,.35); color: #d6f0b8; padding: 0.65rem 0.8rem; border-radius: 12px; }
.hoard-note { font-size: 0.8125rem; color: var(--ash); }
.float-num { position: fixed; pointer-events: none; z-index: 70; font: 700 1rem var(--font-display); color: var(--brass-hi); text-shadow: 0 2px 10px rgba(0,0,0,.8); }
@media (max-width: 480px) {
  .hoard { padding: 1rem; }
  .tap { width: 92px; height: 92px; }
  .minions { grid-template-columns: 1fr; }
}

/* ---------- Game showcase panels ---------- */
.showcase { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
.panel {
  --accent: var(--brass); --glow: var(--brass-glow);
  position: relative; overflow: hidden; border-radius: 32px; border: 1px solid var(--edge);
  background: radial-gradient(120% 90% at 85% 10%, var(--glow), transparent 55%), linear-gradient(180deg, #1a1712, #110f0c);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4.5vw, 3.75rem);
  transform-style: preserve-3d;
}
.panel.hk { --accent: var(--ember); --glow: var(--ember-glow); }
.panel.fr { --accent: var(--stamina); --glow: var(--stamina-glow); }
.panel.flip .panel-copy { order: 2; }
.panel-copy { display: grid; gap: 1.1rem; min-width: 0; align-content: start; }
.panel-copy .icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 30px -8px var(--glow); }
.pixel { image-rendering: pixelated; }
.panel h3 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); font-weight: 800; letter-spacing: -0.035em; }
.panel .tagline { font-size: 1.25rem; color: var(--accent); font-weight: 600; }
.panel p { color: var(--ash); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.ticks li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.6rem; color: var(--ivory); }
.ticks li::before { content: ""; width: 9px; height: 9px; margin-top: 0.55em; background: var(--accent); transform: rotate(45deg); border-radius: 2px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin: 0; padding-top: 0.25rem; }
.stats div { border-top: 1px solid var(--edge); padding-top: 0.6rem; }
.stats dt { font-size: 0.75rem; color: var(--ash); order: 2; }
.stats dd { margin: 0; font: 700 clamp(1.3rem, 2.6vw, 1.9rem)/1.1 var(--font-display); color: var(--ivory); font-variant-numeric: tabular-nums; }
.stats div { display: flex; flex-direction: column-reverse; gap: 0.2rem; }
@media (max-width: 860px) {
  .panel { grid-template-columns: 1fr; }
  .panel.flip .panel-copy { order: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone stack */
.phones { position: relative; height: clamp(380px, 46vw, 560px); perspective: 1200px; min-width: 0; }
.phone {
  position: absolute; top: 50%; left: 50%; width: clamp(150px, 17vw, 236px); aspect-ratio: 440 / 957; max-width: 70%;
  border-radius: clamp(22px, 2.6vw, 34px); padding: 7px; background: linear-gradient(145deg, #3b352c, #12100d 40%, #2a251e);
  box-shadow: 0 50px 80px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.06), inset 0 0 0 1px rgba(0,0,0,.6);
  transform: translate(-50%, -50%);
  will-change: transform;
}
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; border-radius: clamp(16px, 2.1vw, 27px); background: #000; }
.phone.back-l { transform: translate(-108%, -47%) rotate(-9deg) scale(.86); filter: brightness(.7); }
.phone.back-r { transform: translate(8%, -47%) rotate(9deg) scale(.86); filter: brightness(.7); }
.phone.front { z-index: 2; }

/* ---------- Wiki search ---------- */
.search-box { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 1.5rem; }
.field { position: relative; flex: 1 1 22rem; min-width: 0; }
.field svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ash); pointer-events: none; }
.field input {
  width: 100%; font: 500 1.0625rem var(--font-text); color: var(--ivory); background: var(--soot);
  border: 1px solid var(--field-edge); border-radius: 999px; padding: 0.95rem 1.2rem 0.95rem 3rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #8d8576; }
.field input:focus { outline: none; border-color: var(--brass-hi); box-shadow: 0 0 0 4px var(--brass-glow); }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--soot); border: 1px solid var(--edge); }
.seg button { white-space: nowrap; font: 600 0.875rem var(--font-text); color: var(--ash); background: none; border: 0; padding: 0.6rem 0.95rem; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--brass); color: var(--ink); }
.results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0.75rem; }
.result a {
  display: grid; gap: 0.35rem; height: 100%; text-decoration: none; color: var(--ivory);
  padding: 1rem 1.1rem; border-radius: 16px; background: var(--soot); border: 1px solid var(--edge);
  transition: border-color .2s, transform .2s, background .2s;
}
.result a:hover { border-color: var(--brass); transform: translateY(-2px); background: #24201a; }
.result .kind { display: flex; gap: 0.4rem; align-items: center; font: 400 0.6875rem var(--font-pixel); color: var(--ash); }
.result .kind i { width: 7px; height: 7px; border-radius: 2px; background: var(--ember); transform: rotate(45deg); }
.result .kind.fr i { background: var(--stamina); }
.result strong { font-weight: 600; font-size: 1.0625rem; }
.result span.d { font-size: 0.875rem; color: var(--ash); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result mark { background: var(--brass-glow); color: var(--ivory); border-radius: 3px; padding: 0 2px; }
.results-meta { font-size: 0.875rem; color: var(--ash); margin-top: 1rem; }

/* ---------- Why Otto ---------- */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.flapword { display: flex; gap: clamp(4px, 1vw, 10px); align-items: center; margin-bottom: 1.6rem; }
.flap {
  position: relative; width: clamp(56px, 9vw, 104px); aspect-ratio: 3 / 4; border-radius: 12px;
  background: linear-gradient(180deg, #24201a 0 49.6%, #0d0c0a 49.6% 50.4%, #1a1713 50.4% 100%);
  border: 1px solid var(--edge); display: grid; place-items: center; overflow: hidden;
  font: 800 clamp(2.4rem, 6.4vw, 4.6rem)/1 var(--font-display); color: var(--ivory);
  box-shadow: 0 20px 40px -20px #000;
}
.flap.brass { color: var(--brass-hi); }
.flap span { display: block; }
.flap.flipping span { animation: flip .5s cubic-bezier(.4,0,.2,1); }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); opacity: .2; } 100% { transform: rotateX(0); } }
.flapword .mirror { width: 3px; height: clamp(70px, 11vw, 130px); }
.why-copy { display: grid; gap: 1rem; color: var(--ash); max-width: 36rem; }
.why-copy .say { color: var(--ivory); font-weight: 600; }
.why-copy .pun { font: 600 1.35rem/1.35 var(--font-display); color: var(--ivory); letter-spacing: -0.01em; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 0.75rem 0 0; }
.facts div { border-top: 1px solid var(--edge); padding-top: 0.6rem; }
.facts dt { font-size: 0.75rem; color: var(--ash); }
.facts dd { margin: 0.15rem 0 0; color: var(--ivory); font-weight: 600; font-size: 0.9375rem; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.principles li {
  position: relative; overflow: hidden; padding: 1.25rem; border-radius: var(--radius); background: var(--soot); border: 1px solid var(--edge);
  display: grid; gap: 0.5rem; align-content: start;
}
.principles li::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(179,139,77,.18), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.principles li:hover::before { opacity: 1; }
.principles strong { font: 600 1.05rem/1.25 var(--font-display); letter-spacing: -0.01em; }
.principles span { color: var(--ash); font-size: 0.9375rem; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .principles, .facts { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.card { padding: 1.4rem; border-radius: var(--radius); background: var(--soot); border: 1px solid var(--edge); display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.card h3 { font: 600 1.15rem var(--font-display); letter-spacing: -0.01em; }
.card p { color: var(--ash); font-size: 0.9375rem; }
.addr { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.35rem; }
.addr code { font: 500 0.9375rem var(--font-mono); color: var(--brass-hi); user-select: all; overflow-wrap: anywhere; }
.copy { font: 600 0.75rem var(--font-text); color: var(--ivory); background: transparent; border: 1px solid var(--edge); border-radius: 999px; padding: 0.35rem 0.7rem; cursor: pointer; }
.copy:hover { border-color: var(--brass); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Signup ---------- */
.signup { display: grid; gap: 0.6rem; padding: 1.25rem; border-radius: var(--radius); background: rgba(30,27,22,.75); border: 1px solid var(--edge); max-width: 34rem; }
.signup label.l { font-weight: 600; }
.signup .hint { font-size: 0.875rem; color: var(--ash); }
.signup .row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.signup input[type=email] { flex: 1 1 14rem; min-width: 0; font: 500 1rem var(--font-text); color: var(--ivory); background: var(--ink); border: 1px solid var(--field-edge); border-radius: 999px; padding: 0.8rem 1.1rem; }
.signup input[type=email]:focus { outline: none; border-color: var(--brass-hi); box-shadow: 0 0 0 4px var(--brass-glow); }
.signup .status { font-size: 0.875rem; color: #d6f0b8; }
.signup .status.err { color: var(--danger); }
.signup fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.9375rem; }
.signup legend { font-size: 0.875rem; color: var(--ash); margin-bottom: 0.3rem; float: left; width: 100%; }
.signup fieldset label { display: inline-flex; gap: 0.4rem; align-items: center; }
.signup input[type=checkbox] { accent-color: var(--brass); width: 1.05rem; height: 1.05rem; }

/* ---------- Footer ---------- */
.foot { background: #090807; border-top: 1px solid var(--edge); padding-block: 3.5rem 2.5rem; color: var(--ash); font-size: 0.9375rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 2rem; }
.foot-brand { display: grid; gap: 0.8rem; align-content: start; }
.foot-brand img { width: 56px; height: 56px; }
.foot-brand strong { color: var(--ivory); display: block; }
.foot h2 { font: 600 0.875rem var(--font-text); color: var(--ivory); letter-spacing: 0; margin-bottom: 0.7rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.foot a { color: var(--ash); text-decoration: none; }
.foot a:hover { color: var(--brass-hi); text-decoration: underline; }
.legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--edge); display: grid; gap: 0.35rem; font-size: 0.8125rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Game pages ---------- */
.ghero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(2.5rem, 6vw, 5rem); }
.ghero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.ghero::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(180deg, transparent, var(--ink)); z-index: -1; }
.ghero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ghero-copy { display: grid; gap: 1.25rem; min-width: 0; }
.crumbs { font-size: 0.875rem; color: var(--ash); display: flex; gap: 0.5rem; }
.crumbs a { color: var(--ash); }
.ghero h1 { font-size: clamp(2.6rem, 7vw, 5.9rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.9; }
.ghero .tagline { font: 600 clamp(1.2rem, 2.2vw, 1.6rem)/1.25 var(--font-display); letter-spacing: -0.01em; }
.hk-page .tagline { color: var(--ember); }
.fr-page .tagline { color: var(--stamina); }
.ghero .intro { color: var(--ash); font-size: 1.125rem; max-width: 36rem; }
.status-pill { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--ivory); }
.ghero-phone { position: relative; display: grid; place-items: center; min-width: 0; }
.ghero-phone .phone { position: relative; top: auto; left: auto; transform: none; width: min(300px, 80%); max-width: 100%; }
.ghero-phone .halo { position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--halo, var(--ember-glow)), transparent 62%); z-index: -1; }
.fr-page .ghero-phone .halo { --halo: var(--stamina-glow); }
.carousel-dots { position: absolute; bottom: -2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.4rem; }
.carousel-dots button { width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.carousel-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--edge); transition: background .2s, transform .2s; }
.carousel-dots button[aria-current="true"]::before { background: var(--brass-hi); transform: scale(1.25); }
.phone .slides { position: relative; width: 100%; height: 100%; }
.phone .slides img { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; }
.phone .slides img.on { opacity: 1; }
@media (max-width: 860px) { .ghero-grid { grid-template-columns: 1fr; } .ghero-phone { padding-bottom: 2.5rem; } }

/* Gallery rail */
.rail { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.5rem 0 1.25rem; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; }
.rail li { list-style: none; flex: 0 0 clamp(180px, 22vw, 260px); scroll-snap-align: start; }
.rail { margin: 0; padding-left: 0; }
.rail button { padding: 0; border: 1px solid var(--edge); background: #000; border-radius: 22px; overflow: hidden; cursor: zoom-in; width: 100%; display: block; transition: transform .25s, border-color .25s; }
.rail button:hover { transform: translateY(-4px) rotate(-.6deg); border-color: var(--brass); }
.rail img { width: 100%; aspect-ratio: 440 / 957; object-fit: cover; }
.rail figcaption { font-size: 0.8125rem; color: var(--ash); padding-top: 0.6rem; }
.rail-nav { display: flex; gap: 0.5rem; }
.rail-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--edge); background: var(--soot); color: var(--ivory); cursor: pointer; font-size: 1.1rem; }
.rail-nav button:hover { border-color: var(--brass); }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.head-row .head { margin-bottom: 0; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 460px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(5,5,4,.88); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 24px; }
.lightbox p { color: var(--ivory); text-align: center; font-size: 0.9375rem; padding-top: 0.75rem; }
.lightbox .close { position: absolute; top: 0.6rem; right: 0.6rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(13,12,10,.8); color: var(--ivory); font-size: 1.3rem; cursor: pointer; }

/* Ladder (treasures, stages, mounts) */
.ladder { display: grid; gap: 1.25rem; }
.ladder-track { display: grid; grid-template-columns: repeat(var(--n, 12), minmax(0, 1fr)); gap: 0.35rem; }
.rung {
  display: grid; justify-items: center; gap: 0.35rem; padding: 0.6rem 0.2rem; border-radius: 12px; border: 1px solid transparent;
  background: none; color: var(--ash); cursor: pointer; font: 500 0.6875rem/1.2 var(--font-text); min-width: 0;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.rung img { width: min(48px, 100%); aspect-ratio: 1; object-fit: contain; transition: transform .25s, filter .25s; filter: grayscale(.6) brightness(.7); }
.rung.reached img { filter: none; }
.rung[aria-pressed="true"] { background: var(--soot); border-color: var(--brass); color: var(--ivory); }
.rung[aria-pressed="true"] img { transform: scale(1.18) translateY(-3px); }
.rung:hover img { transform: scale(1.12); }
.rung .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ladder input[type=range] { width: 100%; accent-color: var(--brass); }
.readout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: center; padding: 1.25rem 1.4rem; border-radius: 20px; background: var(--soot); border: 1px solid var(--edge); }
.readout img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,.6)); }
.readout .big { font: 700 clamp(1.4rem, 3.5vw, 2.2rem)/1.1 var(--font-display); letter-spacing: -0.02em; }
.readout .small { color: var(--ash); font-size: 0.9375rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .ladder-track { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ladder-track.n10 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .readout { grid-template-columns: 1fr; }
}

/* Dragon stage meter */
.stagebar { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; align-items: end; height: 150px; }
.stagebar button { border: 0; padding: 0; cursor: pointer; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--ember), #8f3a17); opacity: .35; transition: opacity .2s, filter .2s; min-width: 0; }
.stagebar button.on { opacity: 1; }
.stagebar button[aria-pressed="true"] { filter: brightness(1.25) drop-shadow(0 0 12px var(--ember-glow)); outline: 2px solid var(--brass-hi); outline-offset: 2px; }

/* Era timeline */
.eras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; counter-reset: era; }
.eras li { position: relative; padding: 1.1rem; border-radius: var(--radius); background: var(--soot); border: 1px solid var(--edge); display: grid; gap: 0.4rem; align-content: start; }
.eras li::before { counter-increment: era; content: "Era " counter(era); font: 400 0.6875rem var(--font-pixel); color: var(--brass-hi); }
.eras strong { font: 600 1.05rem/1.2 var(--font-display); }
.eras span { font-size: 0.875rem; color: var(--ash); }
.eras li:last-child { background: radial-gradient(120% 120% at 100% 0, rgba(120,140,255,.18), transparent 60%), var(--soot); }
@media (max-width: 860px) { .eras { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .eras { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.feature { padding: 1.5rem; border-radius: 22px; background: var(--soot); border: 1px solid var(--edge); display: grid; gap: 0.8rem; align-content: start; position: relative; overflow: hidden; }
.feature::before { content: ""; position: absolute; inset: 0; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), var(--fglow, rgba(179,139,77,.16)), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.feature:hover::before { opacity: 1; }
.hk-page .feature { --fglow: rgba(240,122,58,.16); }
.fr-page .feature { --fglow: rgba(154,210,91,.13); }
.feature h3 { font-size: 1.35rem; font-weight: 700; }
.feature ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; color: var(--ash); }
.feature li::marker { color: var(--brass); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* Notes, FAQ and help */
.notes { display: grid; gap: 0.5rem; color: var(--ash); font-size: 0.9375rem; max-width: 50rem; margin-top: 1.5rem; }
.notes strong { color: var(--ivory); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.faq details { border-bottom: 1px solid var(--edge); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font: 600 1.0625rem/1.35 var(--font-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--font-text); color: var(--brass-hi); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { color: var(--ash); padding-bottom: 1.1rem; overflow: hidden; }
.help { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); padding: 1.4rem; border-radius: 22px; background: var(--soot); border: 1px solid var(--edge); display: grid; gap: 1rem; }
.help h2 { font-size: 1.15rem; }
.help dl { margin: 0; display: grid; gap: 0.85rem; }
.help dt { font-size: 0.75rem; color: var(--ash); }
.help dd { margin: 0.1rem 0 0; }
.beta-card { display: grid; gap: 0.6rem; padding: 1.1rem; border-radius: 16px; background: linear-gradient(140deg, rgba(179,139,77,.22), rgba(179,139,77,.05)); border: 1px solid var(--brass); }
.beta-card p { font-size: 0.9375rem; color: var(--ivory); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } .help { position: static; } }

/* Fitness RPG: bosses */
.bosses { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.arena {
  position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; border: 1px solid var(--edge);
  background:
    linear-gradient(transparent 62%, rgba(154,210,91,.08) 62%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 32px),
    radial-gradient(80% 70% at 50% 30%, #2c2340, #120f18 70%);
  display: grid; place-items: center;
}
.arena img { height: 66%; width: auto; image-rendering: pixelated; filter: drop-shadow(0 14px 0 rgba(0,0,0,.35)); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.arena .hpbox { position: absolute; left: 1rem; right: 1rem; top: 1rem; display: grid; gap: 0.35rem; }
.arena .hpbox .nm { display: flex; justify-content: space-between; font: 400 0.75rem var(--font-pixel); color: var(--ivory); }
.arena .hp { height: 12px; border: 2px solid #000; background: #3a1414; image-rendering: pixelated; }
.arena .hp i { display: block; height: 100%; width: 100%; background: linear-gradient(180deg, #ff6b5a 0 50%, #d43d2c 50%); transition: width .35s steps(6); }
.arena .hit-fx { position: absolute; font: 400 1.4rem var(--font-pixel); color: #ffd36b; text-shadow: 2px 2px 0 #000; pointer-events: none; }
.arena .attack { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); }
.boss-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.boss-list button {
  width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; text-align: left;
  padding: 0.55rem 0.8rem; border-radius: 14px; border: 1px solid var(--edge); background: var(--soot); color: var(--ivory); cursor: pointer; font: inherit;
  transition: border-color .2s, background .2s;
}
.boss-list button:hover { border-color: var(--stamina); }
.boss-list button[aria-pressed="true"] { border-color: var(--stamina); background: rgba(154,210,91,.08); }
.boss-list img { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; }
.boss-list .t { display: grid; min-width: 0; }
.boss-list .t strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boss-list .t span { font-size: 0.8125rem; color: var(--ash); }
.boss-list .lv { font: 400 0.6875rem var(--font-pixel); color: var(--stamina); }
.boss-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin: 1rem 0 0; }
.boss-facts div { padding: 0.65rem; border-radius: 12px; background: var(--soot); border: 1px solid var(--edge); }
.boss-facts dt { font-size: 0.6875rem; color: var(--ash); }
.boss-facts dd { margin: 0.1rem 0 0; font: 400 0.9375rem var(--font-pixel); color: var(--ivory); }
@media (max-width: 860px) { .bosses { grid-template-columns: 1fr; } .boss-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Fitness RPG: mount slider */
.mounts { display: grid; gap: 1.25rem; }
.mount-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; }
.mount-track li { padding: 0.9rem 0.75rem; border-radius: 16px; border: 1px solid var(--edge); background: var(--soot); display: grid; gap: 0.3rem; transition: border-color .3s, background .3s, transform .3s; min-width: 0; }
.mount-track li .h { font: 400 0.6875rem var(--font-pixel); color: var(--ash); }
.mount-track li strong { font-weight: 600; font-size: 0.9375rem; }
.mount-track li .lock { font-size: 0.75rem; color: var(--ash); }
.mount-track li.got { border-color: var(--stamina); background: rgba(154,210,91,.08); transform: translateY(-3px); }
.mount-track li.got .lock { color: var(--stamina); }
.hours { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hours label { font-weight: 600; }
.hours input[type=range] { flex: 1 1 16rem; accent-color: var(--stamina); min-width: 0; }
.hours output { font: 400 1rem var(--font-pixel); color: var(--stamina); min-width: 7ch; }
@media (max-width: 860px) { .mount-track { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px) { .mount-track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Five skills */
.skills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.skills li { padding: 1rem; border-radius: 16px; background: var(--soot); border: 1px solid var(--edge); display: grid; gap: 0.6rem; }
.skills strong { font: 400 0.75rem var(--font-pixel); color: var(--ivory); }
.skills .xp { height: 8px; background: #0b0a08; border: 1px solid var(--edge); }
.skills .xp i { display: block; height: 100%; width: var(--w, 50%); background: var(--stamina); }
@media (max-width: 760px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Motion ---------- */
.reveal { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .hero h1 em { background-position: 50% 0; }
}

/* Fitness RPG: how it works */
.steps { position: relative; }
.steps-line { position: absolute; left: 0; right: 0; top: 22px; height: 4px; background: var(--edge); border-radius: 4px; overflow: hidden; }
.steps-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--stamina), var(--brass-hi)); transform-origin: left; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; position: relative; }
.step-list li { display: grid; gap: 0.5rem; align-content: start; }
.step-list .n { width: 48px; height: 48px; display: grid; place-items: center; font: 400 1rem var(--font-pixel); color: var(--ink); background: var(--stamina); border-radius: 10px; box-shadow: 0 0 0 6px var(--ink), 0 10px 30px -6px var(--stamina-glow); }
.step-list strong { font: 600 1.2rem var(--font-display); margin-top: 0.5rem; }
.step-list span:not(.n) { color: var(--ash); font-size: 0.9375rem; }
@media (max-width: 760px) {
  .step-list { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps-line { left: 22px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
  .steps-fill { transform-origin: top; }
  .step-list li { grid-template-columns: 48px minmax(0, 1fr); column-gap: 1rem; }
  .step-list li .n { grid-row: span 2; }
  .step-list strong { margin-top: 0; }
}

/* Fitness RPG: pixel title */
.fr-page .ghero h1 { font-family: var(--font-display); }
.fr-page .ghero h1 .line:last-child > span { font-family: var(--font-pixel); font-weight: 400; color: var(--stamina); letter-spacing: 0.02em; text-shadow: 4px 4px 0 #2b4a12; }
.hk-page .ghero h1 > .line > span { background: linear-gradient(180deg, #fff3d6, var(--brass-hi) 45%, var(--ember) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ghero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.ghero h1 .line > span { display: inline-block; }
/* Game wordmarks (2026-11-26): the title is the game's own logo image, alt text carries the name */
.ghero h1 .wordmark { display: block; height: auto; max-width: 100%; }
.ghero h1 .wordmark.pixel { image-rendering: pixelated; width: 342px; }
.hk-page .ghero h1 > .line > span:has(.wordmark) { background: none; color: inherit; }
@media (max-width: 520px) { .ghero h1 .wordmark.pixel { width: 228px; } }
.nav a.btn-brass, .nav a.btn-brass:hover { color: var(--ink); background: var(--brass); }
.nav a.btn-brass:hover { background: var(--brass-hi); }
/* Screenshot rail: the img width/height attributes must not fix the height (they cropped every shot) */
.rail img { height: auto; }
.rail li { flex-basis: clamp(160px, 46vw, 260px); }

/* Live launch-list form (signup.js) */
.signup .signup-status { font-size: 0.875rem; margin: 0; }
.signup .signup-status.is-ok { color: #d6f0b8; }
.signup .signup-status.is-error { color: var(--danger); }
.signup .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.signup .hint a, .help-t a { color: var(--brass-hi); }
.addr a { font: 500 0.9375rem var(--font-mono); color: var(--brass-hi); overflow-wrap: anywhere; text-decoration: none; }
.addr a:hover { text-decoration: underline; }
