/* benakama.com — Direction A "Arcade Night".
   Near-black, bright red, chunky display type. Calm by default.
   Lexend, relaxed letter/word/line spacing (BDA Style Guide 2023 values from game-theme.css),
   cream background, no hard shadows. */

@font-face { font-family: 'Lilita One'; src: url('../fonts/lilita-one.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lexend'; src: url('../fonts/lexend.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
    --bg: #0E0E11;
    --surface: #17171C;
    --surface2: #24242B;
    --ink: #FFFFFF;
    --muted: #BDBDC7;
    --accent: #FF4D4D;
    --btn: #E10600;
    --btn-ink: #FFFFFF;
    --btn-shadow: #7A0000;
    --line: #34343D;
    --ok: #5BD16B;
    --focus: #FFD166;
    --display: 'Lilita One', 'Lexend', sans-serif;
    --body: 'Lexend', sans-serif;
    --ls: 0;
    --ws: 0;
    --lh: 1.55;
    --shadow-btn: 0 5px 0 var(--btn-shadow);
    --shadow-card: 0 10px 0 rgba(0, 0, 0, 0.25);
    --radius: 22px;
    --gutter: clamp(16px, 4vw, 32px);
}



*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; /* clip, not hidden: hidden makes body a scroll container and stops the sticky header sticking */ }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 18px;
    line-height: var(--lh);
    letter-spacing: var(--ls);
    word-spacing: var(--ws);
    min-height: 100vh;
    overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
p { margin: 0; max-width: 70ch; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.05; }
h1, h2 { font-family: var(--display); }
h3, h4 { font-family: var(--body); font-weight: 700; line-height: 1.25; }
ul, ol { margin: 0; }
button { font: inherit; letter-spacing: inherit; word-spacing: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; letter-spacing: inherit; word-spacing: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

.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: 16px; top: -60px; z-index: 2000;
    background: var(--btn); color: var(--btn-ink); padding: 12px 18px; border-radius: 12px;
    font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--btn-ink); }

/* ---------- Layout ---------- */
.wrap { max-width: 1320px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); min-width: 0; }
.hero__title { overflow-wrap: anywhere; }
.section { padding: clamp(56px, 8vw, 88px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 12px; }
.section-title { font-size: clamp(34px, 3.6vw, 52px); }
.section-intro { font-size: 20px; color: var(--muted); max-width: 52ch; margin-bottom: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--surface2); color: var(--ink); }
.eyebrow--hot { background: var(--btn); color: var(--btn-ink); font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 56px; padding: 14px 26px; border-radius: 16px; border: 2px solid transparent;
    font-weight: 700; font-size: 18px; text-decoration: none; cursor: pointer; text-align: center;
    transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary { background: var(--btn); color: var(--btn-ink); box-shadow: var(--shadow-btn); }
.btn-primary:hover { color: var(--btn-ink); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(3px); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-play { font-family: var(--display); font-weight: 400; font-size: 20px; min-height: 44px; padding: 10px 22px; border-radius: 14px; box-shadow: 0 4px 0 var(--btn-shadow); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .6; cursor: not-allowed; }

/* Pills: small toggles */
.pill {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px;
    border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink);
    font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.pill:hover { border-color: var(--ink); }
.pill__icon { width: 30px; height: 30px; border-radius: 999px; background: var(--surface2); display: inline-flex; align-items: center; justify-content: center; flex: none; letter-spacing: 0; word-spacing: 0; font-weight: 700; font-size: 15px; }
.pill__icon--hot { background: var(--btn); color: #FFFFFF; }
.pill[aria-pressed="true"] { border-color: var(--accent); }
.pill[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.switch { width: 40px; height: 24px; border-radius: 999px; padding: 3px; display: inline-flex; align-items: center; background: var(--line); flex: none; transition: background .15s ease; }
.switch::after { content: ''; width: 18px; height: 18px; border-radius: 999px; background: #FFFFFF; transition: transform .15s ease; }
[aria-pressed="true"] > .switch { background: var(--btn); }
[aria-pressed="true"] > .switch::after { transform: translateX(16px); }
.switch--lg { width: 48px; height: 28px; }
.switch--lg::after { width: 22px; height: 22px; }
[aria-pressed="true"] > .switch--lg::after { transform: translateX(20px); }


/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 36px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand__name { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--ink); letter-spacing: 0; word-spacing: 0; }
.brand:hover .brand__name { color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; font-weight: 500; flex: 1 1 auto; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav-menu { display: none; }
.nav-menu summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 12px; font-weight: 600; cursor: pointer; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { border-color: var(--accent); }

@media (max-width: 960px) {
    .site-header .wrap { gap: 8px 12px; }
    .site-nav { display: none; }
    .battle__arena .slime-stage { --s: 4.5 !important; }
    .hero { min-height: 0; }
    .nav-menu { display: block; order: 3; }
    .brand { order: 1; margin-right: auto; }
    .header-actions { order: 2; margin-left: 0; }
    .nav-menu__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; display: flex; flex-direction: column; gap: 4px; }
    .nav-menu__panel a { color: var(--ink); text-decoration: none; padding: 12px 0; min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
/* The hero fills the first screen: wider than the other sections, headline up to 92px, and at least the viewport height minus the header. */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(48px, 6vw, 72px); max-width: 1440px; min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); }
.hero__copy { flex: 1 1 min(560px, 100%); min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 24px; }
.hero__copy > .eyebrow { align-self: flex-start; /* the pill hugs its text instead of stretching across the column */ }
.hero__title { font-size: clamp(42px, 5.6vw, 92px); line-height: 1; }
.hero__sub { font-size: clamp(18px, 1.5vw, 23px); color: var(--muted); max-width: 46ch; }
.hero__media { flex: 1 1 min(520px, 100%); min-width: 0; max-width: 100%; }
.reassure { font-size: 15px; color: var(--muted); }

/* Cohort XP bar */
.cohort-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); max-width: 560px; }
.cohort-bar__name { font-family: var(--display); font-size: 18px; color: var(--accent); }
.xp { flex: 1 1 140px; height: 12px; border-radius: 999px; background: var(--surface2); overflow: hidden; display: flex; }
.xp__fill { background: var(--accent); border-radius: 999px; height: 100%; }
.xp--thick { height: 14px; }
.cohort-bar__count { font-size: 14px; color: var(--muted); }

/* ---------- Mini-battle ---------- */
.battle { background: var(--surface); border: 2px solid var(--line); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-card); }
.battle__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--muted); }
.year-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface2); max-width: 100%; }
.year-switch button { min-width: 44px; min-height: 36px; padding: 4px 9px; white-space: nowrap; border-radius: 999px; border: 2px solid transparent; background: transparent; color: var(--ink); font-weight: 700; font-size: 14px; }
.year-switch button[aria-checked="true"] { background: var(--btn); color: #FFFFFF; }
.battle__arena { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 20px 12px; border-radius: 18px; background: var(--surface2); min-height: 210px; }
.battle__monster { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; width: min(280px, 100%); }
.battle__monster-name { font-family: var(--display); font-size: 24px; line-height: 1; }
.hp { width: 100%; height: 16px; border-radius: 999px; background: var(--bg); border: 2px solid var(--line); overflow: hidden; display: flex; }
.hp__fill { background: var(--ok); height: 100%; transition: width .3s ease; }
.battle__question { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--bg); border: 2px solid var(--line); }
.battle__question p { font-size: 24px; font-weight: 700; line-height: 1.3; }
.speak {
    width: 52px; height: 52px; flex: none; border-radius: 14px; border: none; background: var(--btn); color: #FFFFFF;
    display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 0 var(--btn-shadow);
}
.speak[aria-pressed="true"] { animation: speak-pulse 1s ease-in-out infinite; }
@keyframes speak-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, .45); } 50% { box-shadow: 0 0 0 8px rgba(255, 77, 77, 0); } }
.answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.answers button { min-height: 58px; border-radius: 14px; background: var(--surface2); color: var(--ink); font-size: 22px; font-weight: 700; border: 3px solid var(--line); }
.answers button:hover { border-color: var(--ink); }
.answers button[data-state="right"] { border-color: var(--ok); }
.answers button[data-state="nearly"] { border-color: var(--accent); }
.battle__tools { display: flex; justify-content: flex-end; }
/* Dyslexia-friendly mode in the battle: the same typeface, spacing and softer background pupils get in the game (BDA Style Guide values, as in the reading demo). */
.battle[data-mode="dyslexia"] .battle__question, .battle[data-mode="dyslexia"] .answers { letter-spacing: 0.175em; word-spacing: 0.36em; }
.battle[data-mode="dyslexia"] .battle__question, .battle[data-mode="dyslexia"] .answers button { background: #FBF3E4; color: #1F1D1A; border-color: #DCCDB1; }
.battle[data-mode="dyslexia"] .battle__question p { line-height: 1.875; font-size: 22px; }
.battle[data-mode="dyslexia"] .answers button { line-height: 1.6; }
.battle[data-mode="dyslexia"] .answers button:hover { border-color: #1F1D1A; }
.battle[data-mode="dyslexia"] .answers button[data-state="right"] { border-color: var(--ok); }
.battle[data-mode="dyslexia"] .answers button[data-state="nearly"] { border-color: var(--accent); }
.battle__feedback { min-height: 26px; font-size: 16px; font-weight: 600; color: var(--accent); }
.battle__victory { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; padding: 8px 0; }
.battle__victory h3 { font-family: var(--display); font-weight: 400; font-size: 30px; }
.battle__note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }
.battle__nojs { padding: 16px; border-radius: 16px; background: var(--bg); border: 2px dashed var(--line); font-size: 16px; }
html.js .battle__nojs { display: none; }

/* Sprite: 64px frames from the game's sprite sheets, scaled with pixel edges kept. */
/* Frames are 64x64 but the slime sits in the bottom 36 rows (the splat in the die sheet is the widest), so the stage crops the empty top. */
.slime-stage { width: calc(64px * var(--s, 3)); height: calc(32px * var(--s, 3)); flex: none; position: relative; }
.slime {
    position: absolute; left: 0; top: calc(-32px * var(--s, 3)); width: 64px; height: 64px;
    background-repeat: no-repeat; background-size: auto 64px; background-position: 0 0;
    image-rendering: pixelated; image-rendering: crisp-edges;
    transform: scale(var(--s, 3)); transform-origin: top left;
    pointer-events: none; /* the scaled frame box spills above the stage and must never catch clicks */
}
.slime[data-anim="idle"] { background-image: var(--idle); animation: slime-idle .98s steps(7) infinite; }
.slime[data-anim="hit"] { background-image: var(--hit); animation: slime-hit .36s steps(3) forwards; }
.slime[data-anim="die"] { background-image: var(--die); animation: slime-die 1.21s steps(10) forwards; }
.slime[data-anim="defeated"] { background-image: var(--die); background-position: -192px 0; }
.slime[data-anim="still"] { background-image: var(--idle); }
@keyframes slime-idle { to { background-position: -448px 0; } }
@keyframes slime-hit { to { background-position: -192px 0; } }
@keyframes slime-die { to { background-position: -640px 0; } }
.slime--peek { position: absolute; pointer-events: none; }
/* Golem: 90x64 frames, 8-frame idle loop. The figure occupies x 19-63, y 24-63 of each frame, so the stage crops to that box. */
.golem-stage { width: calc(47px * var(--s, 3)); height: calc(41px * var(--s, 3)); flex: none; position: relative; overflow: hidden; }
.golem {
    position: absolute; left: calc(-18px * var(--s, 3)); top: calc(-23px * var(--s, 3)); width: 90px; height: 64px;
    background-image: var(--idle); background-repeat: no-repeat; background-size: auto 64px; background-position: 0 0;
    image-rendering: pixelated; image-rendering: crisp-edges;
    transform: scale(var(--s, 3)); transform-origin: top left;
    animation: golem-idle 1.12s steps(8) infinite;
    pointer-events: none;
}
@keyframes golem-idle { to { background-position: -720px 0; } }

/* ---------- Proof strip ---------- */
.proof { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; padding-top: 32px; padding-bottom: 32px; }
.proof__stat { flex: 1 1 min(380px, 100%); display: flex; gap: 16px; align-items: center; }
.proof__number { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--accent); }
.proof__line { flex: 1 1 min(220px, 100%); font-size: 18px; font-weight: 600; }
/* Logo carousel: a CSS marquee. The list is duplicated so the loop is seamless; it pauses on hover and stops under reduced motion. */
.logos { padding-bottom: 32px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.logos__caption { font-size: 14px; color: var(--muted); }
.logos__viewport { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos__track { display: flex; gap: 20px; width: max-content; animation: logos-scroll 32s linear infinite; will-change: transform; }
.logos__viewport:hover .logos__track, .logos__viewport:focus-within .logos__track { animation-play-state: paused; }
.logos__list { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.logos__list li { flex: none; display: flex; align-items: center; justify-content: center; height: 80px; padding: 10px 20px; background: #FFFFFF; border-radius: 14px; }
.logos__list img { display: block; height: 56px; max-width: 200px; object-fit: contain; }
@keyframes logos-scroll { to { transform: translateX(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) {
    .logos__track { animation: none; width: 100%; justify-content: center; }
    .logos__viewport { mask-image: none; -webkit-mask-image: none; }
    .logos__list { flex-wrap: wrap; justify-content: center; }
    .logos__list--copy { display: none; }
}

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card__demo { background: var(--surface2); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 132px; justify-content: center; }
.card__demo--center { align-items: center; }
.card h3 { font-size: 20px; }
.card p { font-size: 16px; color: var(--muted); }
.demo-row { display: flex; justify-content: space-between; gap: 8px; background: var(--bg); border-radius: 10px; padding: 10px 12px; font-weight: 700; }
.demo-caption { font-size: 13px; color: var(--muted); text-align: center; }
.demo-bar { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.demo-bar > span:first-child { width: 64px; }
.demo-bar .bar { flex: 1; height: 10px; border-radius: 999px; background: var(--bg); display: flex; }
.demo-bar .bar > span { border-radius: 999px; height: 100%; }
.demo-bar .bar--low > span { background: var(--accent); }
.demo-bar .bar--ok > span { background: var(--ok); }

/* Reading-mode demo: one question and its answers, default look vs dyslexia-friendly */
.reading-demo { display: flex; flex-direction: column; gap: 10px; }
/* Both looks are rendered in the same grid cell, so the card is always as tall as the larger one and never jumps on toggle. */
.reading-demo__stage { display: grid; }
.reading-demo__view { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 8px; transition: opacity .2s ease; }
.reading-demo__q { background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 700; font-size: 18px; line-height: 1.4; font-family: Arial, Helvetica, sans-serif; letter-spacing: 0; word-spacing: 0; }
.reading-demo__a { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.reading-demo__a span { background: var(--bg); border: 2px solid var(--line); border-radius: 10px; padding: 8px; text-align: center; font-weight: 700; font-family: Arial, Helvetica, sans-serif; font-size: 16px; }
.reading-demo__view--dyslexia .reading-demo__q, .reading-demo__view--dyslexia .reading-demo__a span { font-family: 'Lexend', sans-serif; letter-spacing: 0.175em; word-spacing: 0.36em; line-height: 1.875; background: #FBF3E4; color: #1F1D1A; border-color: #DCCDB1; }
.reading-demo[data-mode="default"] .reading-demo__view--dyslexia, .reading-demo[data-mode="dyslexia"] .reading-demo__view--default { visibility: hidden; opacity: 0; }
.reading-demo__toggle { align-self: center; }

/* Why a game */
.why { display: flex; flex-direction: column; gap: 8px; }
.why__n { font-family: var(--display); font-size: 40px; color: var(--accent); line-height: 1; }
.why h3 { font-size: 20px; }
.why p { color: var(--muted); }

/* ---------- Cohort ---------- */
.cohort { border: 3px solid var(--accent); border-radius: 28px; background: var(--surface); padding: clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 40px; position: relative; overflow: hidden; }
.cohort__main { flex: 1 1 min(520px, 100%); min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cohort__side { flex: 1 1 min(360px, 100%); min-width: 0; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.cohort__monster { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.cohort__monster figcaption { max-width: none; }
.cohort__cta { display: flex; flex-direction: column; gap: 12px; }
/* The golem fills the side column: 9x (423px wide) when the column is wide enough, smaller below that so it never overflows. */
@media (max-width: 1120px) { .cohort__monster .golem-stage { --s: 6.5 !important; } }
@media (max-width: 400px) { .cohort__monster .golem-stage { --s: 5.5 !important; } }
.cohort__title { font-size: clamp(36px, 4vw, 58px); line-height: 1.02; }
.cohort__sub { font-size: 19px; color: var(--muted); max-width: 48ch; }
.loot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.loot__card { background: var(--surface2); border-radius: 18px; padding: 18px; border: 2px solid var(--line); }
.loot__title { font-family: var(--display); font-size: 22px; color: var(--accent); margin-bottom: 6px; }
.loot__card p { font-size: 15px; color: var(--ink); }
.sketch { display: flex; align-items: center; gap: 12px; }
.sketch__box { flex: 1; aspect-ratio: 1; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 12px; text-align: center; background: var(--surface2); }
.sketch__box--paper { background: var(--bg); border: 3px dashed var(--line); color: var(--muted); }
.sketch__arrow { flex: none; color: var(--accent); }
.panel { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.panel__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; }

/* ---------- Levels ---------- */
.levels { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.levels li { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.level-badge { flex: none; width: 64px; height: 64px; border-radius: 16px; background: var(--surface2); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--display); line-height: 1; letter-spacing: 0; word-spacing: 0; }
.level-badge--hot { background: var(--btn); color: var(--btn-ink); }
.level-badge small { font-size: 12px; }
.level-badge strong { font-size: 28px; font-weight: 400; }
.levels strong.t { display: block; font-size: 18px; }
.levels .muted { font-size: 16px; }

/* ---------- Price ---------- */
.price { background: var(--surface); border: 2px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px; align-self: flex-start; }
.price__label { font-size: 14px; font-weight: 700; color: var(--accent); }
/* What is included: a receipt-style grid, text left and price right-aligned, one rule between rows */
.price__items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.price__items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.4; }
.price__items li:last-child { border-bottom: 0; }
.price__value { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; min-width: 3.2em; }
.price__value--included { font-weight: 600; color: var(--muted); font-size: 14px; padding-top: 2px; }
.price__total { font-size: 16px; }
.price__amount { margin-top: -4px; }
.price__amount { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price__amount strong { font-family: var(--display); font-weight: 400; font-size: 72px; line-height: 1; }
.price ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.calc { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.calc output { font-size: 16px; font-weight: 700; display: block; min-height: 1.5em; }
.two-col { display: flex; flex-wrap: wrap; gap: 32px; }
.two-col > :first-child { flex: 1 1 min(520px, 100%); min-width: 0; }
.two-col > :last-child { flex: 1 1 min(380px, 100%); min-width: 0; }

/* ---------- Our story ---------- */
.story { display: flex; flex-direction: column; align-items: center; text-align: center; }
.story .section-intro { margin: 0 auto 32px; }
.story__video { width: 100%; max-width: 960px; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #000; border: 2px solid var(--line); box-shadow: var(--shadow-card); }
.story__video video, .story__video iframe { width: 100%; height: 100%; display: block; border: 0; }

/* ---------- Questions ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 16px 0; min-height: 44px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); font-size: 26px; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--ink); }
.site-footer .legal { flex: 1 1 100%; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
/* Centred form section: heading, intro and the form block sit in the middle; fields stay left-aligned inside the form */
.form-section .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.form-section .section-intro { margin-left: auto; margin-right: auto; }
.form-section .form { width: 100%; text-align: left; }
.form-section .form-actions { justify-content: center; }
.form-section .form > p { text-align: center; }
.form-section .form .small { max-width: none; }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.form legend { font-family: var(--display); font-size: 26px; margin-bottom: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: 16px; font-weight: 600; }
.field .hint { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea { font-size: 18px; padding: 12px 14px; min-height: 48px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field .error { color: var(--accent); font-size: 15px; font-weight: 600; }
.field[data-invalid="true"] input, .field[data-invalid="true"] select { border-color: var(--accent); }
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); min-height: 44px; cursor: pointer; }
.choice input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--btn); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-status { font-size: 16px; font-weight: 600; min-height: 1.5em; }
.form-status[data-kind="error"] { color: var(--accent); }
.form-status[data-kind="ok"] { color: var(--ok); }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Consent banner ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1500; max-width: 640px; margin: 0 auto; background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-card); }
.consent p { font-size: 15px; }
.consent .cluster .btn { flex: 1 1 160px; }

/* ---------- Prose pages ---------- */
.prose { max-width: 72ch; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 24px; }
.prose h3 { font-size: 20px; margin-top: 8px; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }

/* ---------- Motion ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.bob { animation: bob 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    .slime[data-anim="idle"] { animation: none !important; background-position: 0 0; }
    .slime[data-anim="hit"] { animation: none !important; background-position: 0 0; }
    .slime[data-anim="die"] { animation: none !important; background-position: -192px 0; }
    .golem { animation: none !important; background-position: 0 0; }
    .bob { animation: none !important; }
}

/* ---------- Blazor error UI (kept minimal) ---------- */
#blazor-error-ui { display: none; }
