/* Mazefall homepage, 5th cut (web/gate.md 5판; the look of 4판). The game is the picture: real game films and the
   approved art, large. The page itself stays out of the way: near-black ground, white letters, one warm
   gold accent from the key art's sunset, Pretendard, rounded media without frames. Pictures never grow
   and shrink (only opacity and a short rise on reveal). */

:root {
  --bg: #0b0a0f;
  --surface: #15131b;
  --surface-2: #1d1a25;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f5f1ea;
  --muted: #a9a2b3;
  --soft: #d6d0dc;
  --accent: #ffc94a;
  --accent-ink: #231703;
  --danger: #ff8f80;
  --ok: #9fe0a0;
  --gutter: 32px;
  --max: 1200px;
  --radius: 18px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.025em; }
p, li, summary { text-wrap: pretty; }   /* no word left alone on a paragraph's last line */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 860px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---- buttons ------------------------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  min-height: 54px; padding: 0 26px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.06); color: var(--text); font-size: 16px; font-weight: 700;
  text-decoration: none !important; white-space: nowrap; transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28); }
.btn-main { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-main:hover { background: #ffd673; border-color: #ffd673; }
.btn-ghost { background: rgba(10, 9, 14, 0.35); border-color: rgba(255, 255, 255, 0.4); backdrop-filter: blur(6px); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn-text {
  background: none; border: 0; padding: 6px 4px; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer;
}
.btn-text:hover { color: var(--text); text-decoration: underline; }
.btn-text.danger { color: var(--danger); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- header ------------------------------------------------------------------------------------ */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 40; transition: background-color 0.25s, border-color 0.25s; border-bottom: 1px solid transparent; }
.site-head.solid, body.page .site-head { background: rgba(11, 10, 15, 0.86); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.site-head .brand img { width: 108px; }
.site-head nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-head nav a { padding: 8px 14px; color: var(--soft); font-weight: 600; font-size: 15px; }
.site-head nav a:hover { color: var(--text); text-decoration: none; }
.site-head nav a.on { color: var(--text); }
.site-head nav .btn { margin-left: 12px; color: var(--accent-ink); }
.site-head nav .btn:hover { color: var(--accent-ink); }
.site-head.home .brand { transition: opacity 0.25s; }
.site-head.home:not(.solid):not(.open) .brand { opacity: 0; pointer-events: none; }
.menu-btn {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: rgba(11, 10, 15, 0.5); border-radius: 10px; cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: var(--text); margin: 0 auto; position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }

/* ---- first screen: the game's own film fills it; the logo and the two lines sit low on the left, clear of the field -- */
.hero { position: relative; height: 100svh; min-height: 620px; max-height: 1100px; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-film { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; background: #120f16; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 10, 15, 0.78) 0%, rgba(11, 10, 15, 0.46) 28%, rgba(11, 10, 15, 0) 56%),
    linear-gradient(180deg, rgba(11, 10, 15, 0.55) 0%, rgba(11, 10, 15, 0) 22%, rgba(11, 10, 15, 0) 58%, var(--bg) 100%);
}
.hero-inner { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: clamp(84px, 13vh, 150px); }
.hero-title { margin: 0 0 0 -14px; }
.hero-title img { width: clamp(230px, 23vw, 360px); filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.55)); }
.hero-kicker {
  margin: 6px 0 0; color: rgba(245, 241, 234, 0.78); font-size: clamp(14px, 1.1vw, 16px); font-weight: 600;
  letter-spacing: 0.02em; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}
.hero-line {
  margin: 12px 0 30px; font-size: clamp(22px, 2.25vw, 33px); font-weight: 800; line-height: 1.42; letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.6);
}
.hero-news {
  position: absolute; right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); bottom: 34px; display: flex; align-items: center; gap: 12px;
  max-width: calc(100% - 2 * var(--gutter)); padding: 10px 18px 10px 10px; border-radius: 999px;
  background: rgba(11, 10, 15, 0.62); border: 1px solid var(--line-2); backdrop-filter: blur(8px);
  color: var(--text); font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none !important;
}
.hero-news:hover { background: rgba(11, 10, 15, 0.8); }
.hero-news .t { overflow: hidden; text-overflow: ellipsis; }
.hero-news::after { content: "›"; color: var(--muted); font-size: 20px; line-height: 1; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: rgba(255, 201, 74, 0.14); color: var(--accent); font-size: 13px; font-weight: 700; line-height: 1.6; white-space: nowrap; }

/* ---- sections ------------------------------------------------------------------------------------ */
.section { position: relative; padding: 140px 0; }
.section + .section { padding-top: 40px; }
.sec-head { text-align: center; margin: 0 auto 64px; max-width: 760px; }
.sec-head h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.2; font-weight: 800; }
.sec-head p { margin: 16px 0 0; color: var(--muted); font-size: 18px; }
.sec-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; text-align: left; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head .more { color: var(--soft); font-weight: 600; font-size: 16px; }
.sec-head .more::after { content: " ›"; }
/* visible by default; common.js hides (.wait) only what is still below the window, and lets it rise in */
.reveal { transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .7, .3, 1); }
.reveal.wait { opacity: 0; transform: translateY(20px); }

/* ---- the game, a row a scene: the real film on one side, a few words on the other, the sides taking turns -- */
.story { display: grid; gap: clamp(88px, 12vh, 136px); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 104px var(--gutter) 88px; }
.panel { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(36px, 4.4vw, 64px); align-items: center; }
.panel .media { order: -1; }
.panel:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.panel:nth-of-type(even) .media { order: 0; }
.nb { white-space: nowrap; }   /* a phrase that must not leave its last word alone on a phone */
.panel h2 { margin: 0; font-size: clamp(25px, 2.15vw, 33px); line-height: 1.34; font-weight: 800; }
.panel p { margin: 18px 0 0; color: var(--soft); font-size: 17px; }
.panel p a { color: var(--text); font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.panel p a:hover { text-decoration-color: var(--text); }
/* what happens in the film, in its order, under the words; home.js lights the step the film is on */
.steps { list-style: none; counter-reset: step; margin: 26px 0 0; padding: 0; }
.steps li { counter-increment: step; display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--soft); font-size: 16px; font-weight: 600; line-height: 1.5; transition: color 0.3s; }
.steps li::before { content: counter(step); color: var(--muted); font-weight: 800; font-variant-numeric: tabular-nums; transition: color 0.3s; }
.steps.sync li { color: var(--muted); }
.steps.sync li.on { color: var(--text); }
.steps.sync li.on::before { color: var(--accent); }
.tac-film { margin: 72px auto 0; max-width: 960px; }
.panel .media, .tac-film {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 24px 56px rgba(0, 0, 0, 0.42);
}
.panel .media img, .panel .media video,
.tac-film img, .tac-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel .media video, .tac-film video { opacity: 0; transition: opacity 0.4s; }
.panel .media video.on, .tac-film video.on { opacity: 1; }
}

/* ---- tabs (the heroes' 소속 | 역할) ----------------------------------------------- */
.tabs { display: flex; justify-content: center; gap: 6px; margin: 0 auto 34px; padding: 5px; width: fit-content; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.tabs button {
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  color: var(--muted); font-size: 16px; font-weight: 700; transition: background-color 0.15s, color 0.15s;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.tabs.small { margin-bottom: 18px; }
.tabs.small button { min-height: 38px; padding: 0 18px; font-size: 15px; }

/* ---- home: the call to the test after the scenes ---------------------------------------------- */
.cta-band {
  display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: center; max-width: 1040px; margin: 0 auto;
  padding: 40px 56px; border-radius: 28px; background: var(--surface);
  border: 1px solid var(--line);
}
.guide-line { margin: 0; text-align: center; color: var(--soft); font-size: 18px; }
.cta-mascot { width: 100%; border-radius: 20px; }
.cta-copy h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.3; font-weight: 800; }
.cta-copy p { margin: 12px 0 0; color: var(--soft); font-size: 17px; }
.cta-copy .plan { margin: 22px 0 28px; max-width: 420px; }

/* ---- heroes ---------------------------------------------------------------------------------------- */
.traits { display: flex; flex-direction: column; align-items: center; margin: 64px auto 0; padding-top: 40px; border-top: 1px solid var(--line); }
.traits + .roster { margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: none; color: var(--soft); font-size: 15px; font-weight: 700;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.chip .n { color: var(--muted); font-size: 13px; font-weight: 600; }
.chip:hover { border-color: rgba(255, 255, 255, 0.32); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--c, var(--text)); border-color: var(--c, var(--text)); color: #120f16; }
.chip[aria-pressed="true"] .n { color: rgba(18, 15, 22, 0.65); }
.picked-info .cost { color: var(--muted); font-size: 16px; font-weight: 700; }
.picked-info .more { display: inline-block; margin-top: 22px; color: var(--soft); font-size: 15px; font-weight: 600; }
.picked-info .more::after { content: " ›"; }
.hero-traits { margin: 22px 0 0; display: grid; gap: 10px; max-width: 34em; }
.hero-traits div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.hero-traits dt { color: var(--muted); font-size: 14px; font-weight: 600; }
.hero-traits dd { margin: 0; color: var(--soft); font-size: 16px; line-height: 1.6; }
.hero-traits b { margin-right: 8px; color: var(--text); font-weight: 800; }
.hero-traits b.f { color: var(--c, var(--accent)); }
.picked { scroll-margin-top: 96px; display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 64px; align-items: center; min-height: 520px; }
.picked-card { border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 40px 80px rgba(0, 0, 0, 0.5); }
.picked-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.picked-info .who { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.picked-info .name { margin: 0; font-size: clamp(38px, 4.4vw, 60px); line-height: 1.1; font-weight: 800; }
.picked-info .tagline { font-size: 16px; font-weight: 700; color: var(--c, var(--accent)); }
.moves { margin: 30px 0 0; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 24px; max-width: 34em; }
.move dt { font-size: 14px; color: var(--muted); font-weight: 600; }
.move dt b { display: block; color: var(--text); font-size: 22px; font-weight: 800; margin-top: 2px; }
.move dd { margin: 6px 0 0; color: var(--soft); font-size: 17px; line-height: 1.7; }
.picked.swap .picked-card, .picked.swap .picked-info { opacity: 0; }
.picked-card, .picked-info { transition: opacity 0.18s; }
.roster { margin-top: 56px; display: grid; gap: 40px; }
.roster-group h3 { margin: 0 0 18px; text-align: center; font-size: 16px; font-weight: 700; color: var(--soft); }
.roster-group h3 .n { margin-left: 8px; color: var(--muted); font-weight: 600; }
.roster-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.picked-info .state { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; }
.move.tbd dd { color: var(--muted); }
.picked-card { position: relative; }
.picked-card.noart::after, .face.noart::before {
  content: "원화 미정"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 700;
}
.picked-card.noart::after { font-size: 20px; }
.face { position: relative; }
.face.noart::before { inset: 0 0 auto 0; height: 76px; font-size: 12px; z-index: 1; }
.face {
  width: 76px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--muted);
  display: grid; gap: 6px; justify-items: center; font-size: 13px; font-weight: 600;
}
.face img {
  width: 76px; height: 76px; border-radius: 14px; object-fit: cover; object-position: 50% 12%;
  box-shadow: 0 0 0 2px transparent; filter: saturate(0.7) brightness(0.75); transition: filter 0.15s, box-shadow 0.15s;
}
.face:hover { color: var(--text); }
.face:hover img { filter: none; }
.face[aria-pressed="true"] { color: var(--text); }
.face[aria-pressed="true"] img { filter: none; box-shadow: 0 0 0 2px var(--c, var(--accent)); }

/* ---- tacticians ------------------------------------------------------------------------------------ */
.does { list-style: none; margin: 40px auto 0; padding: 0; max-width: 960px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; }
.does li { display: grid; align-content: start; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.does b { font-size: 17px; font-weight: 800; }
.does span { color: var(--soft); font-size: 15px; line-height: 1.6; }
/* the select: the store's square portrait large, the line and the tactician's own emotes; faces under it */
.tac-pick { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 64px; align-items: center; max-width: 1040px; margin: 0 auto; }
.tac-portrait { border-radius: 28px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 40px 80px rgba(0, 0, 0, 0.5); }
.tac-portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tac-kind { display: inline-block; color: var(--accent); font-size: 15px; font-weight: 800; }
.tac-info .name { margin: 6px 0 0; font-size: clamp(38px, 4.4vw, 56px); line-height: 1.1; font-weight: 800; }
.tac-about { margin: 14px 0 0; color: var(--soft); font-size: 18px; }
.tac-emotes-h { margin: 34px 0 12px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600; }
.tac-emotes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 5px; }
.tac-emotes li { width: 66px; display: grid; justify-items: center; gap: 6px; }
.tac-emotes img { height: 60px; width: auto; max-width: 66px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45)); }
.tac-emotes span { color: var(--soft); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tac-pick.swap .tac-portrait, .tac-pick.swap .tac-info { opacity: 0; }
.tac-portrait, .tac-info { transition: opacity 0.18s; }
.tac-faces { margin: 48px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.tac-face { width: 80px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; gap: 7px; justify-items: center; font-size: 13px; font-weight: 600; }
.tac-face img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px transparent; filter: saturate(0.75) brightness(0.8); transition: filter 0.15s, box-shadow 0.15s; }
.tac-face:hover { color: var(--text); }
.tac-face:hover img { filter: none; }
.tac-face[aria-pressed="true"] { color: var(--text); }
.tac-face[aria-pressed="true"] img { filter: none; box-shadow: 0 0 0 3px var(--accent); }

/* ---- news ------------------------------------------------------------------------------------------ */
.news-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.news-grid .empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--muted); }
.news-card { display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none !important; }
.news-card .thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.news-card:hover .thumb img { opacity: 0.82; }
.news-card .body { display: grid; gap: 8px; padding: 18px 2px 0; }
.news-card .meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.news-card .title { font-size: 20px; font-weight: 700; line-height: 1.45; }
.news-card:hover .title { text-decoration: underline; text-underline-offset: 4px; }
.news-card .sum { color: var(--muted); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- channels (under the news) ------------------------------------------------------------------- */
.channels { margin-top: 72px; }
.channels-h { margin: 0 0 18px; font-size: 20px; font-weight: 800; }
.channel-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.channel {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 20px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none !important;
  transition: border-color 0.15s, background-color 0.15s;
}
.channel:hover { border-color: rgba(255, 255, 255, 0.28); background: var(--surface-2); }
.ch-body { display: grid; gap: 2px; min-width: 0; }
.ch-body b { font-size: 17px; }
.ch-body span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.ch-go { color: var(--soft); font-size: 14px; font-weight: 600; white-space: nowrap; }
.ch-go::after { content: " ›"; }
.channel.soon { cursor: default; }
.channel.soon:hover { border-color: var(--line); background: var(--surface); }
.channel.soon .ch-icon { opacity: 0.55; }
.ch-soon { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.ch-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(255, 255, 255, 0.08) center / 26px no-repeat; }
.ch-icon.threads { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f1ea' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M16.5 11.2c-.5-2.7-2.4-3.9-4.6-3.9-2.6 0-4.4 1.8-4.4 4.6 0 3 1.9 4.8 4.6 4.8 2.4 0 3.9-1.5 3.9-3.4 0-1.7-1.2-2.8-3.1-2.8-1.6 0-2.7.9-2.7 2.1 0 1.1.9 1.9 2.2 1.9 2.2 0 3.6-1.6 3.6-4.6 0-4.3-2.8-6.6-6.3-6.6C5.8 3.3 3 6.3 3 12s2.9 8.7 7.9 8.7c3.2 0 5.6-1.3 6.9-3.6'/%3E%3C/svg%3E"); }
.ch-icon.youtube { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='5' width='20' height='14' rx='4' fill='%23ff4e45'/%3E%3Cpath d='M10 9v6l5-3z' fill='%23fff'/%3E%3C/svg%3E"); }
.ch-icon.discord { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%237f8cff' d='M19.3 5.3A16.6 16.6 0 0 0 15.2 4l-.5 1a15.3 15.3 0 0 0-5.4 0l-.5-1a16.6 16.6 0 0 0-4.1 1.3C2.1 9.2 1.4 13 1.7 16.7a16.8 16.8 0 0 0 5 2.5l1.1-1.7a10.7 10.7 0 0 1-1.7-.8l.4-.3a11.9 11.9 0 0 0 11 0l.4.3c-.5.3-1.1.6-1.7.8l1.1 1.7a16.8 16.8 0 0 0 5-2.5c.4-4.3-.7-8-3-11.4zM8.7 14.4c-1 0-1.8-.9-1.8-2s.8-2 1.8-2 1.8.9 1.8 2-.8 2-1.8 2zm6.6 0c-1 0-1.8-.9-1.8-2s.8-2 1.8-2 1.8.9 1.8 2-.8 2-1.8 2z'/%3E%3C/svg%3E"); }

/* ---- FAQ ------------------------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px; cursor: pointer;
  font-size: 19px; font-weight: 700; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--muted); font-size: 26px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: -6px 0 26px; padding: 0 4px; color: var(--soft); font-size: 17px; }

/* ---- tester ---------------------------------------------------------------------------------------- */
.tester-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.tester-side { position: sticky; top: 110px; }
.mascot { width: 100%; border-radius: 24px; box-shadow: 0 0 0 1px var(--line), 0 40px 80px rgba(0, 0, 0, 0.5); }
.tester-main h1, .tester-main h2 { margin: 0 0 18px; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.25; font-weight: 800; }
.tester-main .lede { margin: 0; color: var(--soft); font-size: 18px; }
/* the schedule as plain rows: when, then what (no row of equal boxes) */
.plan { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.plan li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.plan .when { color: var(--accent); font-weight: 800; font-size: 15px; }
.plan + .small { margin: 12px 0 0; }
.join { margin: 30px 0 0; display: grid; gap: 14px; }
.join div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; }
.join dt { color: var(--muted); font-weight: 700; font-size: 15px; }
.join dd { margin: 0; color: var(--soft); font-size: 16px; }
.form-card { margin-top: 40px; padding: 34px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }

/* ---- forms ------------------------------------------------------------------------------------- */
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field > label, .field > .label { font-weight: 700; font-size: 15px; }
.field .opt { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 2px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 12px 15px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line-2); color: var(--text);
}
.input::placeholder { color: rgba(169, 162, 179, 0.6); }
textarea.input { min-height: 240px; resize: vertical; line-height: 1.65; }
.input:focus { outline: none; border-color: var(--accent); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice span {
  display: inline-block; padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--soft);
  background: var(--bg); border: 1px solid var(--line-2); transition: background-color 0.15s, color 0.15s;
}
.choice:hover span { border-color: rgba(255, 255, 255, 0.3); }
.choice input:checked + span { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { margin: 8px 0 20px; padding: 16px 18px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.consent label { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 700; color: var(--text); cursor: pointer; }
.consent input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; }
.consent dl { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; }
.consent dt { color: rgba(169, 162, 179, 0.8); }
.consent dd { margin: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-msg { min-height: 22px; margin: 12px 0 0; font-weight: 600; font-size: 15px; }
.form-msg.err { color: var(--danger); }
.form-msg.ok { color: var(--ok); }
.done { text-align: center; padding: 30px 6px; }
.done img { width: 120px; margin: 0 auto 12px; }
.done b { display: block; font-size: 22px; margin-bottom: 6px; }
.done p { margin: 0; color: var(--muted); }
.human { margin: 2px 0 14px; }

/* ---- board list (home and board pages) --------------------------------------------------------- */
.board-lede { margin: -16px 0 28px; color: var(--muted); }
.blist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.blist li { border-bottom: 1px solid var(--line); }
.blist a { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px 8px; color: var(--text); text-decoration: none; }
.blist a:hover { background: rgba(255, 255, 255, 0.03); }
.blist .t { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blist .t em { font-style: normal; color: var(--accent); font-weight: 700; margin-left: 6px; font-size: 14px; }
.blist .m { color: var(--muted); font-size: 14px; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.blist li.pinned { background: rgba(255, 201, 74, 0.05); }
.blist li.pinned .t { color: var(--accent); }
.blist li.hidden-row .t { color: var(--muted); text-decoration: line-through; }
.blist .empty { padding: 44px 8px; color: var(--muted); text-align: center; }
.cat { font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; white-space: nowrap; }
.cat.notice { color: var(--accent); }
.cat.bug { color: #ffab98; }
.dev { display: inline-block; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 800; line-height: 20px; color: var(--accent-ink); background: var(--accent); }

/* ---- inner pages (board, news, privacy, admin) ---------------------------------------------------- */
body.page main { padding: 128px 0 120px; min-height: 72vh; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.page-head .grow { flex: 1; }
.page-head h1 { margin: 0; font-size: clamp(32px, 3.6vw, 46px); font-weight: 800; }
.page-head.center { justify-content: center; text-align: center; margin-bottom: 8px; }
.page-head.center p { max-width: 40em; margin: 12px auto 0; font-size: 17px; }
body.page .section.first { padding-top: 56px; }
body.page .story { padding-top: 40px; }
.page-head p { margin: 8px 0 0; color: var(--muted); }
.cats { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.cats button {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 16px; margin-bottom: -1px; cursor: pointer;
  color: var(--muted); font-weight: 600; font-size: 15px;
}
.cats button:hover { color: var(--text); }
.cats button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--accent); }
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 32px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: none; cursor: pointer; color: var(--muted); font-weight: 600; }
.pager button[aria-current="page"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 36px; }
.post-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; }
.post-meta .cat { text-align: left; }
.sheet h1 { margin: 8px 0 18px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.4; }
.post-body { white-space: pre-wrap; padding: 24px 0 28px; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.85; min-height: 90px; }
.post-tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.pw-box { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; margin-top: 10px; }
.pw-box .input { width: 180px; min-height: 42px; }
.list-link, .back-link { display: inline-block; margin-bottom: 18px; color: var(--muted); font-weight: 600; }
.back-link::before { content: "‹ "; }
.comments { margin-top: 36px; }
.comments h2 { font-size: 19px; margin: 0 0 12px; }
.clist { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line-2); }
.clist > li { padding: 16px 6px; border-bottom: 1px solid var(--line); }
.clist .who { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.clist .who b { font-weight: 700; }
.clist .who time { color: var(--muted); }
.clist .who .grow { flex: 1; }
.clist .body { white-space: pre-wrap; margin-top: 4px; }
.clist .gone { color: var(--muted); margin-top: 4px; }
.clist li.dev-c { background: rgba(255, 201, 74, 0.05); }
.comment-form .row-2 { margin-bottom: 8px; }
.comment-form textarea.input { min-height: 100px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.small { color: var(--muted); font-size: 14px; }
.admin-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 20px; border-radius: 12px; background: rgba(255, 201, 74, 0.08); border: 1px solid rgba(255, 201, 74, 0.25); font-size: 14px; }
.admin-bar .grow { flex: 1; }
#desk .sheet { margin-top: 18px; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.prose { max-width: 860px; }
.prose h2 { font-size: 22px; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--soft); }
.prose ul { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose strong { color: var(--text); }
.prose figure { margin: 26px 0; }
.prose figure img { width: 100%; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 10px 0; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: rgba(255, 255, 255, 0.04); white-space: nowrap; }

/* a news article */
.article { max-width: 860px; }
.article-meta { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: 15px; }
.article h1 { margin: 14px 0 30px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.3; font-weight: 800; }
.article-cover { width: 100%; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); margin-bottom: 40px; }
.article-body { font-size: 18px; line-height: 1.85; }
.more-news { margin-top: 110px; }
.more-news h2 { margin: 0 0 26px; font-size: 26px; font-weight: 800; }

/* ---- footer ------------------------------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 64px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; gap: 20px 36px; flex-wrap: wrap; align-items: center; }
.site-foot img { width: 96px; }
.site-foot nav { display: flex; gap: 22px; flex-wrap: wrap; flex: 1; }
.site-foot nav a { color: var(--muted); white-space: nowrap; }
.site-foot nav a:hover { color: var(--text); }
.site-foot nav a.strong { color: var(--text); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.wait { opacity: 1; transform: none; transition: none; }
  .picked-card, .picked-info, .tac-portrait, .tac-info { transition: none; }
}

/* ---- narrow screens ----------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .picked { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; }
  .does { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; gap: 20px 24px; }
  .tac-film { margin-top: 44px; }
  .story { gap: 72px; padding-top: 72px; }
  .panel, .panel:nth-of-type(even) { grid-template-columns: 1fr; gap: 26px; }
  .panel .media, .panel:nth-of-type(even) .media { order: 0; }
  .tester-grid { grid-template-columns: 1fr; gap: 40px; }
  .tester-side { position: static; max-width: 420px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .menu-btn { display: block; }
  .site-head nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    padding: 8px 18px 20px; background: rgba(11, 10, 15, 0.97); border-bottom: 1px solid var(--line);
  }
  .site-head.open nav { display: flex; }
  .site-head.open { background: rgba(11, 10, 15, 0.97); }
  .site-head nav a { padding: 14px 6px; font-size: 16px; }
  .site-head nav .btn { margin: 10px 0 0; }
  .site-head .brand img { width: 120px; }
  .section { padding: 96px 0; }
  .section + .section { padding-top: 24px; }
  .sec-head { margin-bottom: 40px; }
  .sec-head p { font-size: 16px; }
  /* phone: the film on top, the words under it on the page's own ground (nothing written over the maze) */
  .hero { display: block; height: auto; min-height: 0; max-height: none; text-align: center; }
  .hero-film { position: relative; height: 56svh; min-height: 300px; }
  .hero-shade { inset: 0 0 auto 0; height: 56svh; min-height: 300px; background: linear-gradient(180deg, rgba(11, 10, 15, 0.55) 0%, rgba(11, 10, 15, 0) 24%, rgba(11, 10, 15, 0) 70%, var(--bg) 100%); }
  .hero-inner { align-items: center; margin-top: -84px; padding-bottom: 0; }
  .hero-title { margin: 0; }
  .hero-title img { width: min(62vw, 300px); }
  .hero-kicker { font-size: 13px; }
  .hero-line { font-size: 21px; line-height: 1.45; margin: 12px 0 26px; }
  .cta-band { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px; }
  .cta-mascot { width: min(60vw, 240px); margin: 0 auto; }
  .cta-copy h2 { font-size: 26px; }
  .cta-copy p { font-size: 16px; }
  body.page .section.first { padding-top: 36px; }
  .story { gap: 60px; padding: 56px var(--gutter) 40px; }
  .panel, .panel:nth-of-type(even) { gap: 22px; }
  .panel h2 { font-size: 25px; }
  .panel p { margin-top: 12px; font-size: 16px; }
  .steps { margin-top: 16px; }
  .steps li { padding: 10px 0; font-size: 15px; }
  .tabs button { padding: 0 16px; font-size: 15px; }
  .traits { margin-top: 44px; padding-top: 32px; }
  .chip { min-height: 36px; padding: 0 13px; font-size: 14px; }
  .hero-traits dd { font-size: 15px; }
  .does b { font-size: 17px; }
  .channels { margin-top: 56px; }
  .channel { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; padding: 16px; }
  .ch-icon { width: 44px; height: 44px; }
  .ch-go { display: none; }
  .join div { grid-template-columns: 1fr; gap: 2px; }
  .hero .actions { flex-direction: column; width: min(100%, 320px); }
  .hero-news { position: static; width: fit-content; margin: 26px auto 8px; font-size: 14px; }
  .picked { grid-template-columns: 1fr; gap: 26px; min-height: 0; }
  .picked-card { width: min(70vw, 300px); margin: 0 auto; }
  .roster { margin-top: 36px; gap: 28px; }
  .roster-row { gap: 10px; }
  .face.noart::before { height: 60px; font-size: 11px; }
  .face { width: 60px; font-size: 12px; }
  .face img { width: 60px; height: 60px; border-radius: 12px; }
  .tac-pick { grid-template-columns: 1fr; gap: 24px; }
  .tac-portrait { width: min(72vw, 300px); margin: 0 auto; }
  .tac-about { font-size: 16px; }
  .tac-emotes { gap: 12px 4px; }
  .tac-emotes li { width: 58px; }
  .tac-emotes img { height: 50px; max-width: 58px; }
  .tac-emotes span { font-size: 12px; }
  .tac-faces { margin-top: 36px; gap: 10px; }
  .tac-face { width: 64px; font-size: 12px; }
  .tac-face img { width: 58px; height: 58px; }
  .news-grid { grid-template-columns: 1fr; gap: 34px; }
  .faq summary { font-size: 17px; padding: 20px 2px; }
  .plan li { grid-template-columns: 110px minmax(0, 1fr); }
  .form-card { padding: 24px 18px; }
  .row-2 { grid-template-columns: 1fr; }
  .sheet { padding: 24px 20px; }
  .blist a { grid-template-columns: 56px minmax(0, 1fr); padding: 16px 4px; }
  .blist .m { grid-column: 2; }
  .pw-box .input { width: 100%; }
  .site-foot .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-foot nav { gap: 8px 20px; }
  .article-body { font-size: 17px; }
}
