/* Build & Prove Games: portal styles. Self-hosted fonts only (CSP: font-src 'self'). */

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat-Black.ttf') format('truetype');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens: Last Defense sunset palette ---------------------------------------- */
:root {
  color-scheme: light dark;
  --bg: #fff8ee;
  --bg-tint: #ffefdc;
  --surface: #ffffff;
  --surface-2: #fff4e6;
  --ink: #22113d;
  --ink-soft: #57476e;
  --line: #f1dcc3;
  --link: #6a1fb5;
  --accent: #ff7a1a;
  --accent-ink: #a84300;
  --gold: #ffc83d;
  --purple: #7b2cbf;
  --good: #137a3b;
  --bad: #b3261e;
  --focus: #6a1fb5;
  --chip-bg: #f6e8ff;
  --chip-ink: #4b1a85;
  --shadow-sm: 0 2px 6px rgb(70 30 10 / 0.08);
  --shadow: 0 10px 28px rgb(70 30 10 / 0.14);
  --shadow-lg: 0 18px 40px rgb(70 30 10 / 0.2);
  --play-grad: linear-gradient(180deg, #ffe066 0%, #ffb02e 55%, #ff8a1f 100%);
  --play-ink: #2a1046;
  --radius: 20px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #150b26;
    --bg-tint: #1d1035;
    --surface: #23143f;
    --surface-2: #2c1a4f;
    --ink: #fff3e6;
    --ink-soft: #cdbde3;
    --line: #3b285f;
    --link: #ffcf5a;
    --accent: #ff9a3c;
    --accent-ink: #ffb35c;
    --good: #5fd68b;
    --bad: #ff8a80;
    --focus: #ffd23f;
    --chip-bg: #34205a;
    --chip-ink: #f3e3ff;
    --shadow-sm: 0 2px 6px rgb(0 0 0 / 0.3);
    --shadow: 0 10px 28px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 18px 40px rgb(0 0 0 / 0.5);
  }
}

/* ---- Base ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; outline: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 900; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem); }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }

.icon { width: 1.35em; height: 1.35em; flex: none; }
.icon-sm { width: 1em; height: 1em; }

/* ---- Header ----------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); border-radius: 14px; padding: 4px; }
.logo-mark { width: 44px; height: 44px; border-radius: 12px; box-shadow: var(--shadow-sm); transition: transform 0.2s ease; }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.06); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-top { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.logo-bottom { font-size: 1.45rem; font-weight: 900; letter-spacing: 0.01em; text-transform: uppercase; }
.site-nav { display: flex; gap: 6px; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; font-weight: 800; text-decoration: none; color: var(--ink);
}
.nav-link:hover { background: var(--bg-tint); }
.nav-link[aria-current='page'] { background: var(--ink); color: var(--bg); }

/* ---- Buttons, badges, chips -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: 800 1rem/1.1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-xl { min-height: 58px; padding: 0 28px; font-size: 1.15rem; }
.btn-block { display: flex; width: 100%; }
.btn-play {
  background: var(--play-grad); color: var(--play-ink);
  box-shadow: 0 4px 0 #c45a00, 0 10px 24px rgb(255 122 26 / 0.35);
}
.btn-play:hover { box-shadow: 0 6px 0 #c45a00, 0 16px 30px rgb(255 122 26 / 0.45); }
.btn-play:active { box-shadow: 0 1px 0 #c45a00, 0 6px 14px rgb(255 122 26 / 0.3); }
.btn-ghost { color: #fff; border-color: rgb(255 255 255 / 0.75); background: rgb(30 10 50 / 0.35); }
.btn-ghost:hover { background: rgb(30 10 50 / 0.55); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--accent); }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.02em; line-height: 1.2;
}
.badge-age { background: #2a1046; color: #ffd23f; }
.badge-new { background: #d01f55; color: #fff; }
.badge-free { background: rgb(255 255 255 / 0.92); color: #2a1046; }
.badge-lg { font-size: 1rem; padding: 8px 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--chip-bg); color: var(--chip-ink); font: 700 0.95rem/1 var(--font);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.chip:hover { border-color: var(--purple); transform: translateY(-1px); }
.chip[aria-current='page'], .chip[aria-pressed='true'] { background: var(--purple); color: #fff; }
.mini-chip { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--chip-bg); color: var(--chip-ink); font-size: 0.75rem; font-weight: 700; }

/* ---- Home hero --------------------------------------------------------------------- */
.hero, .game-hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: #2a1046; }
.hero { min-height: clamp(440px, 62vh, 620px); display: flex; align-items: flex-end; }
.hero-art, .game-hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero::before, .game-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(28 8 52 / 0.9) 0%, rgb(28 8 52 / 0.62) 38%, rgb(28 8 52 / 0) 70%),
    linear-gradient(0deg, rgb(28 8 52 / 0.92) 0%, rgb(28 8 52 / 0) 55%);
}
.hero-content { padding-block: clamp(32px, 6vw, 72px); }
.hero-content > * { max-width: 36rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 6px 12px;
  border-radius: 999px; background: rgb(255 210 63 / 0.95); color: #2a1046;
  font-size: 0.8rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-title, .game-title {
  font-size: clamp(2.6rem, 1.6rem + 5vw, 5rem); font-weight: 900; line-height: 0.95; margin: 0 0 12px;
  text-transform: uppercase; letter-spacing: 0.005em;
  color: #ffd23f;
  text-shadow: 0 3px 0 #b34700, 0 5px 6px rgb(0 0 0 / 0.35);
}
.hero-tagline, .game-tagline { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem); font-weight: 700; margin: 0 0 18px; text-shadow: 0 1px 2px rgb(0 0 0 / 0.7); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 20px; }
.hero-actions-center { justify-content: center; }

.platforms { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.platform { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; }
.hero .platform { background: rgb(20 6 40 / 0.55); color: #fff; }
.panel .platform { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }

/* ---- Sections, cards, rails ------------------------------------------------------ */
.section { margin-block: clamp(36px, 5vw, 56px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.see-all { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 800; text-decoration: none; }
.see-all:hover { text-decoration: underline; }

.grid { list-style: none; display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card { position: relative; }
.card-link {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink);
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-link:hover, .card-link:focus-visible { transform: translateY(-6px) rotate(-0.4deg); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 630 / 500; overflow: hidden; background: var(--bg-tint); }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.card-link:hover .card-img { transform: scale(1.06); }
.card-badges { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.card-play {
  position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%; background: var(--play-grad); color: var(--play-ink);
  box-shadow: 0 4px 0 #c45a00, 0 8px 18px rgb(0 0 0 / 0.3);
  opacity: 0; transform: translateY(8px) scale(0.9); transition: opacity 0.2s ease, transform 0.2s ease;
}
.card-link:hover .card-play, .card-link:focus-visible .card-play { opacity: 1; transform: none; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.card-title { font-size: 1.2rem; margin: 0; font-weight: 900; }
.card-tagline { font-size: 0.92rem; line-height: 1.45; color: var(--ink-soft); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
@media (hover: none) { .card-play { opacity: 1; transform: none; } }

.rail {
  list-style: none; display: grid; grid-auto-flow: column; gap: 18px;
  grid-auto-columns: minmax(min(86%, 520px), 620px);
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: -4px;
  scrollbar-width: thin;
}
.feature-card { scroll-snap-align: start; }
.feature-link {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none;
  aspect-ratio: 16 / 9; box-shadow: var(--shadow); background: #2a1046;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-link:hover, .feature-link:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.feature-link:hover .feature-img { transform: scale(1.04); }
.feature-link::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(28 8 52 / 0.92) 0%, rgb(28 8 52 / 0) 60%); }
.feature-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.feature-title { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); text-transform: uppercase; color: #ffd23f; text-shadow: 0 2px 0 #b34700, 0 4px 5px rgb(0 0 0 / 0.35); }
.feature-tagline { font-weight: 700; font-size: 0.95rem; text-shadow: 0 1px 2px rgb(0 0 0 / 0.7); }

/* ---- Promise / safety strip ------------------------------------------------------- */
.safe-strip {
  display: grid; gap: 24px; padding: clamp(22px, 4vw, 40px); border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(120% 140% at 100% 0%, rgb(255 200 61 / 0.35) 0%, transparent 55%),
    linear-gradient(135deg, #3a1466 0%, #6a1fb5 55%, #b2457c 100%);
  color: #fff; box-shadow: var(--shadow);
}
.safe-head h2 { color: #ffd23f; }
.safe-head p { font-weight: 600; }
@media (min-width: 900px) { .safe-strip { grid-template-columns: 1fr 1.6fr; align-items: center; } }
.promise { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.promise-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.safe-strip .promise-item { background: rgb(255 255 255 / 0.12); color: #fff; border-color: rgb(255 255 255 / 0.22); box-shadow: none; }
.promise-item > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 0.93rem; line-height: 1.45; }
.promise-item strong { font-size: 1.05rem; font-weight: 900; }
.promise-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--play-grad); color: #2a1046; flex: none; }

/* ---- Generic pages ----------------------------------------------------------------- */
.page { padding-block: clamp(28px, 5vw, 56px); }
.page-narrow { max-width: 880px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { margin-bottom: 10px; }
.lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--ink-soft); font-weight: 600; max-width: 46rem; }
.prose { max-width: 46rem; }
.prose-section { margin-bottom: 28px; }
.prose-section h2 { margin-top: 8px; }
.bullets { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 32px; }
.bullets li::before {
  content: ''; position: absolute; left: 4px; top: 0.45em; width: 14px; height: 14px; border-radius: 4px;
  background: var(--play-grad); transform: rotate(45deg); box-shadow: 0 2px 0 #c45a00;
}
.page .promise { margin-bottom: 36px; }

.crumbs { font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; color: rgb(255 255 255 / 0.9); }
.crumbs a { color: #fff; }
.crumbs-dark { color: var(--ink-soft); }
.crumbs-dark a { color: var(--link); }

/* ---- Filter (/games/) -------------------------------------------------------------- */
.filter { display: grid; gap: 14px; margin-bottom: 18px; }
.filter[hidden] { display: none; }
.search {
  display: flex; align-items: center; gap: 10px; max-width: 520px; min-height: 54px; padding: 0 18px;
  border-radius: 999px; background: var(--surface); border: 2px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink-soft);
}
.search:focus-within { border-color: var(--purple); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 600 1.05rem var(--font); outline: none; padding: 12px 0; }
.search input::placeholder { color: var(--ink-soft); opacity: 0.85; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-status { min-height: 1.4em; font-weight: 700; color: var(--ink-soft); margin-bottom: 14px; }
.empty { padding: 28px; text-align: center; border-radius: var(--radius); background: var(--surface-2); font-weight: 700; }
.card[hidden] { display: none; }

/* ---- Game page --------------------------------------------------------------------- */
.game-hero { min-height: clamp(320px, 46vw, 520px); display: flex; align-items: flex-end; }
.game-hero-content { padding-block: 28px clamp(24px, 4vw, 40px); }
.game-hero-content > * { max-width: 40rem; }
.game-hero .hero-actions { margin-bottom: 0; }
.game-layout { display: grid; gap: clamp(20px, 3vw, 40px); padding-bottom: 56px; }
@media (min-width: 980px) {
  .game-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .game-aside { margin-top: 40px; }
}
@media (max-width: 979px) { .game-aside { margin-top: 8px; } }
.game-main .section:first-child { margin-top: 40px; }
.game-aside { display: grid; gap: 18px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.panel h2 { font-size: 1.3rem; }
.panel h3 { font-size: 1rem; margin: 16px 0 4px; }
.panel p { font-size: 0.95rem; line-height: 1.55; }
.panel > :last-child { margin-bottom: 0; }
.play-panel { display: grid; gap: 12px; background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%); }
.play-note, .play-hint { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); text-align: center; }
.play-panel .platforms { justify-content: center; }
.parents { border: 2px solid var(--purple); }
.facts { list-style: none; display: grid; gap: 8px; margin-bottom: 4px; }
.facts li { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.fact-yes .icon { color: var(--good); }
.fact-no .icon { color: var(--bad); }
.panel-links { font-weight: 700; }
.details { display: grid; gap: 0; margin: 0; }
.details > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.details dt { font-weight: 700; color: var(--ink-soft); }
.details dd { margin: 0; font-weight: 800; text-align: right; }
.panel-sub { margin-top: 18px !important; }
.panel .chips { gap: 8px; }
.also { list-style: none; display: grid; gap: 8px; }
.also a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 800; }

.gallery { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery li:first-child { grid-column: 1 / -1; }
.shot { display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: var(--bg-tint); }
.shot-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.3s ease; }
.shot:hover .shot-img { transform: scale(1.04); }

.lightbox { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 56px 12px; }
.lightbox:target { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgb(12 4 24 / 0.92); }
.lightbox-figure { position: relative; margin: 0; max-width: min(1280px, 100%); color: #fff; text-align: center; }
.lightbox-img { max-height: calc(100vh - 160px); width: auto; margin: 0 auto; border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgb(0 0 0 / 0.6); }
.lightbox-figure figcaption { margin-top: 12px; font-weight: 600; font-size: 0.95rem; }
.lightbox-close, .lightbox-nav {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: rgb(255 255 255 / 0.95); color: #2a1046; text-decoration: none; font: 900 2rem/1 var(--font); box-shadow: var(--shadow);
}
.lightbox-close { top: 12px; right: 12px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
@media (max-width: 640px) { .lightbox-nav { top: auto; bottom: 12px; transform: none; } }

.controls { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.controls-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.controls-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 16px 10px; font-size: 1.05rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.controls-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.controls-table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); padding: 10px 16px 6px; }
.controls-table td { padding: 8px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.controls-table td:last-child { text-align: right; }
.controls-table th:last-child { text-align: right; }
.controls-table td:first-child { font-weight: 600; }
.key { display: inline-block; padding: 2px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 3px; font-weight: 800; font-size: 0.85rem; }

/* ---- About / 404 ------------------------------------------------------------------- */
.contact { margin-top: 12px; text-align: left; }
.contact .btn { margin-top: 4px; }
.not-found { text-align: center; }
.not-found .lead { margin-inline: auto; }
.big-404 {
  font-size: clamp(6rem, 4rem + 12vw, 12rem); font-weight: 900; line-height: 1; margin: 0 0 8px;
  background: var(--play-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 rgb(196 90 0 / 0.5));
}

/* ---- Footer ------------------------------------------------------------------------ */
.site-footer { margin-top: 40px; background: #1c0b33; color: #f3e6ff; }
.footer-inner { display: grid; gap: 18px; padding-block: 32px; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } }
.footer-name { font-weight: 900; font-size: 1.1rem; margin: 0; color: #ffd23f; }
.footer-note { margin: 4px 0 0; font-size: 0.9rem; opacity: 0.85; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: #fff; font-weight: 700; border-radius: 999px; text-decoration: none; }
.footer-nav a:hover { background: rgb(255 255 255 / 0.1); text-decoration: underline; }
.site-footer :focus-visible { outline-color: #ffd23f; }
.copyright { margin: 0; font-size: 0.85rem; opacity: 0.8; grid-column: 1 / -1; }

/* ---- Small screens ----------------------------------------------------------------- */
@media (max-width: 480px) {
  .logo-bottom { font-size: 1.2rem; }
  .logo-top { font-size: 0.62rem; }
  .logo-mark { width: 38px; height: 38px; }
  .nav-link { padding: 0 12px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .btn-xl { padding: 0 20px; }
}
@media (max-width: 360px) {
  .logo-text { display: none; }
}

/* ---- Reduced motion ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card-link:hover, .card-link:focus-visible, .feature-link:hover, .feature-link:focus-visible,
  .btn:hover, .btn:active, .chip:hover, .logo:hover .logo-mark { transform: none; }
  .card-link:hover .card-img, .feature-link:hover .feature-img, .shot:hover .shot-img { transform: none; }
  .card-play { opacity: 1; transform: none; }
}

/* ---- Forced colors (Windows high contrast) ---------------------------------------- */
@media (forced-colors: active) {
  .btn, .chip, .card-link, .panel { border: 2px solid CanvasText; }
}

/* The "turn your phone" hint only matters on touch screens. */
@media (hover: hover) and (pointer: fine) { .play-hint { display: none; } }
