/*
 * The page's design system.
 *
 * SPACE: an 8px grid. Sections are 136px apart on a desktop and 88px on a phone.
 * TYPE: 13 / 15 / 17 / 20 / 24 / 32 / 44 / 60 / 84 px. Titles in Shippori Mincho B1, everything else in the
 *   system sans. Body 17px on 28px lines.
 * COLOUR: a night ink ground, washi-white text, gold for what is the game's, vermilion for what you press.
 * MOTIF: each section carries one kanji, large and faint behind its title, and a numbered label in the
 *   margin. Game art (the client's own portraits, icons and loading-screen art) appears in frames.
 */

@font-face { font-family: "Shippori"; font-weight: 600; font-display: swap; src: url("/webfonts/shippori-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Shippori"; font-weight: 800; font-display: swap; src: url("/webfonts/shippori-latin-800.woff2") format("woff2"); }
@font-face { font-family: "Shippori"; font-weight: 800; font-display: swap; src: url("/webfonts/shippori-kanji-800.woff2") format("woff2"); unicode-range: U+3000-9FFF; }

:root {
  --ink-0: #07080c;
  --ink-1: #0c0e15;
  --ink-2: #12151f;
  --ink-3: #1a1e2b;
  --ink-4: #252a3a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-gold: rgba(232, 190, 110, 0.32);
  --text: #f4efe6;
  --text-2: #cbc4b8;
  --muted: #8e887d;
  --gold: #e8be6e;
  --gold-hi: #ffdc95;
  --gold-lo: #a9792e;
  --red: #e2492f;
  --red-hi: #f4623f;
  --red-lo: #a92f1a;

  --display: "Shippori", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;

  --wrap: 1200px;
  --gutter: 32px;
  --section: 136px;
  --r-1: 8px;
  --r-2: 14px;
  --r-3: 22px;
  --bar: 68px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(255, 255, 255, 0.03) inset;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink-0); color: var(--text); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-hi); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
kbd, code { font: 600 0.85em var(--mono); padding: 2px 7px; border-radius: 6px; background: var(--ink-4); border: 1px solid var(--line-2); border-bottom-width: 2px; color: var(--text); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 8px 16px; border-radius: var(--r-1); background: var(--gold); color: var(--ink-0); font-weight: 700; }
.skip:focus { top: 16px; }

/* Type */
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; color: var(--text); text-wrap: balance; }
h2.display { font-size: 60px; line-height: 64px; }
h3 { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 32px; color: var(--text); text-wrap: balance; }
.lede { font-size: 20px; line-height: 32px; color: var(--text-2); max-width: 36em; text-wrap: pretty; }
p { text-wrap: pretty; }
.gold { color: var(--gold); }
.small { font-size: 15px; line-height: 24px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, color 120ms ease; }
.btn:active { transform: translateY(1px); }
.btn-red { color: #fff; background: var(--red); box-shadow: 0 10px 30px rgba(226, 73, 47, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-red:hover { background: var(--red-hi); color: #fff; }
.btn-line { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 50; height: var(--bar); background: rgba(7, 8, 12, 0.78); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .bar { background: rgba(7, 8, 12, 0.62); backdrop-filter: saturate(140%) blur(14px); } }
.bar .wrap { display: flex; align-items: center; gap: 32px; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font: 800 18px/1 var(--display); letter-spacing: 0.01em; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }
.bar .btn { min-height: 40px; padding: 0 18px; font-size: 14px; white-space: nowrap; }

/* Section frame: number label, kanji watermark, title block */
.section { position: relative; padding: var(--section) 0; isolation: isolate; }
.section + .section { border-top: 1px solid var(--line); }
.tint { background: var(--ink-1); }
.kanji { position: absolute; z-index: -1; top: 48px; right: max(16px, calc(50% - 640px)); font: 800 380px/1 var(--display); color: var(--gold); opacity: 0.045; pointer-events: none; user-select: none; }
.label { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; color: var(--gold); font: 700 17px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.label b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--red); color: #fff; font: 800 28px/1 var(--display); letter-spacing: 0; box-shadow: 0 8px 22px rgba(226, 73, 47, 0.35); }
.head { max-width: 760px; margin-bottom: 64px; }
.display + .lede, .head .lede { margin-top: 24px; }
.head-center { margin-left: auto; margin-right: auto; text-align: center; }
.head-center .label { justify-content: center; }
.head-center .lede { margin-left: auto; margin-right: auto; }

/* Frames for game imagery */
.frame { position: relative; border-radius: var(--r-2); overflow: hidden; background: #000; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.frame img, .frame video { width: 100%; }
.icon { width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--line-gold); box-shadow: 0 0 0 2px #000, 0 6px 16px rgba(0, 0, 0, 0.6); flex: none; }
.icon-sm { width: 36px; height: 36px; border-radius: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(880px, calc(100svh - var(--bar))); display: grid; align-items: center; padding: 120px 0 200px; overflow: hidden; text-align: center; }
.hero-art { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-art img { position: absolute; top: -6%; height: 112%; width: auto; max-width: none; }
/* Long, eased fades so the art melts into the page instead of stopping at an edge. */
.hero-art img:first-child { left: 0; --fade: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.92) 30%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.4) 68%, rgba(0,0,0,0.15) 84%, transparent 100%); mask-image: var(--fade); -webkit-mask-image: var(--fade); }
.hero-art img:last-child { right: 0; --fade: linear-gradient(270deg, #000 0%, rgba(0,0,0,0.92) 30%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.4) 68%, rgba(0,0,0,0.15) 84%, transparent 100%); mask-image: var(--fade); -webkit-mask-image: var(--fade); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(52% 72% at 50% 46%, rgba(7, 8, 12, 0.86) 0%, rgba(7, 8, 12, 0.78) 30%, rgba(7, 8, 12, 0.58) 50%, rgba(7, 8, 12, 0.34) 68%, rgba(7, 8, 12, 0.14) 84%, rgba(7, 8, 12, 0) 100%),
  linear-gradient(180deg, var(--ink-0) 0%, rgba(7, 8, 12, 0.55) 9%, rgba(7, 8, 12, 0.12) 22%, rgba(7, 8, 12, 0) 40%, rgba(7, 8, 12, 0.25) 60%, rgba(7, 8, 12, 0.65) 78%, rgba(7, 8, 12, 0.9) 90%, var(--ink-0) 100%); }
.hero-stamp { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; border: 1px solid var(--line-gold); background: rgba(7, 8, 12, 0.6); color: var(--text-2); font-size: 14px; font-weight: 500; }
.hero-stamp img { width: 28px; height: 28px; }
.hero h1 { margin: 32px auto 0; font-size: 84px; line-height: 88px; max-width: 11em; text-shadow: 0 4px 40px rgba(0, 0, 0, 0.8); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { margin: 28px auto 0; max-width: 32em; font-size: 21px; line-height: 34px; color: var(--text); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9); }
.hero .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.hero .facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin-top: 32px; color: var(--text-2); font-size: 15px; }
.hero .facts li { display: flex; align-items: center; gap: 8px; list-style: none; }
.hero .facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero .facts { padding: 0; }

/* Stats ribbon, overlapping the hero's bottom edge */
.stats { position: relative; z-index: 2; margin-top: -112px; }
.stats ul { list-style: none; margin: 0; padding: 28px 32px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; border-radius: var(--r-3); background: linear-gradient(180deg, rgba(26, 30, 43, 0.92), rgba(18, 21, 31, 0.96)); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.stats li { display: grid; justify-items: center; gap: 10px; text-align: center; }
.stats .n { font: 800 32px/1 var(--display); color: var(--text); }
.stats .k { font-size: 13px; line-height: 18px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- Read: the compare ---------- */
.read { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: center; }
.read .points { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 24px; }
.read .points li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; }
.read .points h3 { font-size: 20px; line-height: 28px; margin-bottom: 4px; }
.read .points p { color: var(--text-2); font-size: 16px; line-height: 26px; }

.compare { --pos: 50; --fit: calc((100vh - var(--bar) - 170px) * 584 / 836); justify-self: center; width: 100%; max-width: clamp(220px, var(--fit), 460px); }
@supports (height: 100dvh) { .compare { --fit: calc((100dvh - var(--bar) - 170px) * 584 / 836); } }
.compare-view { display: flex; width: fit-content; margin: 0 auto 20px; padding: 4px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); }
.compare-view button { font: 600 14px/1 var(--sans); padding: 10px 18px; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; }
.compare-view button[aria-pressed="true"] { background: var(--ink-4); color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--line-gold); }
.compare-stage { position: relative; aspect-ratio: 584 / 836; border-radius: var(--r-2); overflow: hidden; background: #000; border: 1px solid var(--line-gold); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 120px rgba(232, 190, 110, 0.08); }
.slider-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.slider-top { clip-path: inset(0 calc(100% - var(--pos) * 1%) 0 0); }
.slider-handle { position: absolute; top: 0; bottom: 0; left: calc(var(--pos) * 1%); width: 2px; margin-left: -1px; background: var(--gold-hi); box-shadow: 0 0 18px rgba(255, 220, 149, 0.8); pointer-events: none; }
/* The slider's handle: a gold disc with two grip lines down the middle. */
.slider-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 44%, #2a1c0d 44% 47%, transparent 47% 53%, #2a1c0d 53% 56%, transparent 56%),
    radial-gradient(circle at 35% 30%, #fbe7a9, #c99f45);
  border: 2px solid #5b4218;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.slider-tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(7, 8, 12, 0.85); border: 1px solid var(--line-2); color: var(--text); font: 700 12px/1.4 var(--sans); pointer-events: none; }
.slider-tag-en { left: 12px; } .slider-tag-ja { right: 12px; }
.slider-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.slider-range::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 100vh; }
.slider-range::-moz-range-thumb { width: 48px; height: 100vh; border: 0; }
@media (hover: none), (pointer: coarse) {
  .slider-range { pointer-events: none; }
  .slider-range::-webkit-slider-thumb { pointer-events: auto; width: 64px; }
}
.compare-under { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.btn-hold { min-height: 48px; color: var(--ink-0); background: var(--gold); user-select: none; -webkit-user-select: none; touch-action: none; }
.btn-hold:hover { background: var(--gold-hi); color: var(--ink-0); }
.is-held .btn-hold { background: var(--gold-lo); }
.compare-under .small { flex: 1; }
.slider:not(.is-ready) .slider-range, .slider:not(.is-ready) .slider-handle, .slider:not(.is-ready) .compare-under, .slider:not(.is-ready) .compare-view { display: none; }

/* ---------- Bento: what you read ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; display: flex; flex-direction: column; border-radius: var(--r-3); background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line); overflow: hidden; }
.tile-body { padding: 32px; }
.tile-body > .icon { margin-bottom: 20px; }
.tile h3 { margin-bottom: 10px; }
.tile p { color: var(--text-2); font-size: 16px; line-height: 26px; }
.tile p + p { margin-top: 12px; }
.tile-art { margin-top: auto; padding: 0 32px; }
.tile-art .frame { border-bottom: 0; border-radius: var(--r-2) var(--r-2) 0 0; }
.t-dict { grid-column: span 4; }
.t-human { grid-column: span 2; }
.t-names { grid-column: span 2; }
.t-markers { grid-column: span 2; }
.t-settings { grid-column: span 4; }
.t-dui { grid-column: span 6; flex-direction: row; align-items: center; }
.t-dui .tile-body { flex: 1 1 40%; }
.t-dui .tile-art { flex: 1 1 60%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 32px; margin: 0; }
.t-dui .tile-art .frame { border-radius: var(--r-2); border-bottom: 1px solid var(--line-2); }
.t-dui .frame img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.t-dict .frame img { aspect-ratio: 16 / 7; object-fit: cover; }
.t-settings .frame img { aspect-ratio: 16 / 7; object-fit: cover; object-position: top; }
.marker { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r-1); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); margin-top: 16px; }
.marker code { align-self: flex-start; color: var(--gold-hi); }
.marker span { color: var(--text-2); font-size: 15px; line-height: 22px; }
.names { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.names span { padding: 4px 12px; border-radius: 999px; background: rgba(232, 190, 110, 0.08); border: 1px solid var(--line-gold); color: var(--gold-hi); font-size: 14px; }

/* ---------- Voice ---------- */
.voice { background: radial-gradient(70% 60% at 80% 0%, rgba(226, 73, 47, 0.12), transparent 60%), var(--ink-1); }
.voice-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: stretch; }
.player { display: flex; flex-direction: column; border-radius: var(--r-3); background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
.cast { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); }
.cast button { display: grid; justify-items: center; gap: 8px; padding: 16px 4px 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: 600 12px/1.2 var(--sans); cursor: pointer; }
.cast button:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.cast button[aria-selected="true"] { color: var(--gold-hi); border-bottom-color: var(--gold); background: rgba(232, 190, 110, 0.06); }
.cast img { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); filter: saturate(0.7) brightness(0.8); transition: filter 120ms ease; }
.cast button:hover img, .cast button[aria-selected="true"] img { filter: none; border-color: var(--gold); }
.line { flex: 1; display: flex; flex-direction: column; padding: 32px 36px 28px; }
.who { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.who img { width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--gold); box-shadow: 0 0 0 3px #000, 0 10px 24px rgba(0, 0, 0, 0.6); }
.who h3 { font-size: 24px; line-height: 30px; }
.who p { color: var(--muted); font-size: 14px; line-height: 20px; }
.ja { font: 500 28px/48px var(--mincho); color: var(--text); margin-bottom: 16px; }
.en { color: var(--muted); font-size: 16px; line-height: 26px; font-style: italic; }
.controls { display: flex; align-items: center; gap: 20px; margin-top: auto; padding-top: 28px; }
.play { flex: none; width: 60px; height: 60px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--red); color: #fff; cursor: pointer; box-shadow: 0 10px 26px rgba(226, 73, 47, 0.4); }
.play:hover { background: var(--red-hi); }
.play svg { width: 26px; height: 26px; fill: currentColor; }
.play .i-pause { display: none; }
.play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: block; }
.wave { flex: 1; height: 48px; display: flex; align-items: center; gap: 3px; cursor: pointer; }
.wave i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--ink-4); }
.wave i.on { background: var(--gold); }
.time { font: 600 14px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 88px; text-align: right; }
.voice-side { display: grid; gap: 20px; align-content: start; }
.voice-side .tile-body { padding: 28px; }

/* Video poster button */
.vid { position: relative; }
.vid button { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55)); cursor: pointer; }
.vid button span { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--red); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6), 0 0 0 8px rgba(226, 73, 47, 0.25); transition: transform 150ms ease; }
.vid button:hover span { transform: scale(1.06); }
.vid button svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.vid button em { position: absolute; left: 16px; bottom: 14px; font: 600 13px/1 var(--sans); font-style: normal; color: #fff; padding: 6px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.65); }
.vid.is-playing button { display: none; }

/* ---------- Learn ---------- */
.learn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.learn .tile-body { padding: 36px 36px 28px; }
.learn .tile-art { padding: 0 36px; }
.t-english { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.t-english .tile-body { flex: 1 1 46%; }
.learn .t-english .tile-art { flex: 1 1 54%; padding: 36px; margin: 0; }
.t-english .tile-art .frame { border-radius: var(--r-2); border-bottom: 1px solid var(--line-2); }
.duo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.duo .frame { border-radius: var(--r-1) var(--r-1) 0 0; }
.duo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.how { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.how li { display: flex; gap: 12px; color: var(--text-2); font-size: 15px; line-height: 24px; }
.how li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--red); }

/* ---------- Band ---------- */
.band { position: relative; isolation: isolate; min-height: 560px; display: grid; align-items: center; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 8, 12, 0.95) 0%, rgba(7, 8, 12, 0.7) 38%, rgba(7, 8, 12, 0) 70%); }
.band h2 { font-size: 60px; line-height: 64px; max-width: 8em; }
.band p { margin-top: 20px; max-width: 26em; font-size: 20px; line-height: 32px; color: var(--text-2); }

/* ---------- Install ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; padding: 36px 32px 32px; border-radius: var(--r-3); background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line); }
.step .num { position: absolute; top: 28px; right: 28px; font: 800 64px/1 var(--display); color: var(--gold); opacity: 0.62; }
.step h3 { margin: 20px 0 12px; }
.step p, .step li { color: var(--text-2); font-size: 16px; line-height: 26px; }
.step ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.step li::marker { color: var(--gold); font-weight: 700; }
.step .btn { margin-top: auto; align-self: flex-start; }
.step .frame { margin-top: 20px; }
.step > :last-child.btn { margin-top: 28px; }
.byhand { margin-top: 24px; border-radius: var(--r-2); border: 1px solid var(--line); background: var(--ink-2); }
.byhand summary { padding: 22px 28px; cursor: pointer; font: 800 20px/28px var(--display); list-style: none; display: flex; align-items: center; gap: 14px; }
.byhand summary::-webkit-details-marker { display: none; }
.byhand summary::after { content: "+"; margin-left: auto; font: 400 28px/1 var(--sans); color: var(--gold); transition: transform 150ms ease; }
.byhand[open] summary::after { transform: rotate(45deg); }
.byhand ol { margin: 0; padding: 0 28px 28px 52px; display: grid; gap: 10px; color: var(--text-2); }
.byhand li::marker { color: var(--gold); font-weight: 700; }

/* ---------- Help translate ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.flow li { display: flex; flex-direction: column; gap: 20px; }
.flow .frame { aspect-ratio: 4 / 3; }
.flow .frame img { height: 100%; object-fit: cover; object-position: top left; }
.flow h3 { display: flex; align-items: center; gap: 12px; font-size: 20px; line-height: 28px; }
.flow h3 b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font: 800 15px/1 var(--display); flex: none; }
.flow p { color: var(--text-2); font-size: 16px; line-height: 26px; margin-top: 8px; }
.collect { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 0; margin-top: 64px; border-radius: var(--r-3); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); }
.collect .tile-body { padding: 44px; }
.collect ol { margin: 20px 0 0; padding-left: 22px; display: grid; gap: 10px; color: var(--text-2); font-size: 16px; line-height: 26px; }
.collect li::marker { color: var(--gold); font-weight: 700; }
.collect .art { display: grid; align-content: center; gap: 16px; padding: 44px; background: rgba(0, 0, 0, 0.3); border-left: 1px solid var(--line); }
.collect .note { margin-top: 20px; }

/* ---------- Community ---------- */
.duo-cards { margin-top: 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.duo-cards .tile-body { padding: 40px; }
.duo-cards ol { margin: 16px 0 0; padding-left: 22px; display: grid; gap: 8px; color: var(--text-2); font-size: 16px; line-height: 26px; }
.duo-cards ul { margin: 6px 0 0; padding-left: 18px; }
.duo-cards li::marker { color: var(--gold); }
.duo-cards .btn { margin-top: 28px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery figure { display: grid; gap: 14px; }
.gallery .frame { cursor: zoom-in; transition: transform 200ms ease, border-color 200ms ease; }
.gallery .frame:hover { transform: translateY(-4px); border-color: var(--line-gold); }
.gallery figcaption { font-size: 15px; line-height: 22px; color: var(--muted); }
.gallery figcaption b { display: block; color: var(--text); font: 800 17px/24px var(--display); margin-bottom: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--r-2); border: 1px solid var(--line); background: var(--ink-2); }
.faq details[open] { border-color: var(--line-2); background: var(--ink-3); }
.faq summary { padding: 22px 28px; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 16px; font: 600 18px/26px var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font: 400 26px/1 var(--sans); color: var(--gold); transition: transform 150ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 28px 24px; color: var(--text-2); font-size: 16px; line-height: 26px; display: grid; gap: 10px; }
.faq .a ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* ---------- Final call ---------- */
.final { position: relative; isolation: isolate; padding: 160px 0; text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.final .hero-art img { opacity: 0.85; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 75% at 50% 50%, rgba(7, 8, 12, 0.94) 40%, rgba(7, 8, 12, 0.3)), linear-gradient(180deg, var(--ink-0), transparent 25%, transparent 75%, var(--ink-0)); }
.final h2 { font-size: 60px; line-height: 64px; }
.final .lede { margin: 20px auto 0; }
.final .cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; }

/* ---------- Footer ---------- */
.foot { padding: 80px 0 64px; background: var(--ink-0); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 64px; }
.foot h3 { font-size: 20px; margin-bottom: 12px; }
.foot p { color: var(--muted); font-size: 15px; line-height: 24px; }
.foot p + p { margin-top: 12px; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.foot ul a { color: var(--text-2); text-decoration: none; }
.foot ul a:hover { color: var(--gold-hi); }
.legal { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 20px; }

/* Picture enlarged over the page */
img[data-zoom] { cursor: zoom-in; }
.zoom { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; }
.zoom::backdrop { background: rgba(0, 0, 0, 0.88); }
.zoom img { max-width: 94vw; max-height: 92vh; width: auto; border-radius: var(--r-1); cursor: zoom-out; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .bar .btn { margin-left: auto; }
  .stats ul { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 28px; }
  .read { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .voice-grid { grid-template-columns: minmax(0, 1fr); }
  .voice-side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --section: 88px; --gutter: 20px; }
  h2.display, .band h2, .final h2 { font-size: 40px; line-height: 46px; }
  .hero { padding: 72px 0 168px; }
  .hero h1 { font-size: 48px; line-height: 54px; }
  .hero .lede { font-size: 18px; line-height: 29px; }
  .hero-art img { opacity: 0.45; }
  .kanji { font-size: 220px; top: 24px; }
  .head { margin-bottom: 44px; }
  .lede { font-size: 18px; line-height: 29px; }
  .bento, .learn, .steps, .flow, .duo-cards, .gallery, .collect, .foot-grid, .voice-side { grid-template-columns: minmax(0, 1fr); }
  .bento > * { grid-column: auto; }
  .t-dui { flex-direction: column; align-items: stretch; }
  .t-dui .tile-art { padding: 0 24px 24px; }
  .t-english { flex-direction: column; align-items: stretch; }
  .learn .t-english .tile-art { padding: 0 24px 24px; }
  .tile-body, .learn .tile-body, .collect .tile-body, .duo-cards .tile-body { padding: 28px 24px; }
  .tile-art, .learn .tile-art { padding: 0 24px; }
  .collect .art { padding: 24px; border-left: 0; border-top: 1px solid var(--line); }
  .cast { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .line { padding: 24px 22px; }
  .ja { font-size: 22px; line-height: 38px; }
  .time { min-width: 0; }
  .band { min-height: 480px; }
  .band::before { background: linear-gradient(180deg, rgba(7, 8, 12, 0.2), rgba(7, 8, 12, 0.92) 65%); }
  .band .wrap { align-self: end; padding-bottom: 48px; }
  .stats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px 16px; }
  .stats li:last-child { grid-column: 1 / -1; }
  .brand span { display: none; }
  .final { padding: 104px 0; }
}
@media (max-width: 420px) {
  .brand span { font-size: 15px; }
  .hero h1 { font-size: 40px; line-height: 46px; }
  .hero .cta .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Community hub ---------- */
.hub { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 20px; }
.hub .tile-body { padding: 32px; display: flex; flex-direction: column; height: 100%; }
.hub .btn { margin-top: auto; align-self: flex-start; }
.hub-discord { background: radial-gradient(120% 80% at 0% 0%, rgba(226, 73, 47, 0.16), transparent 60%), linear-gradient(180deg, var(--ink-3), var(--ink-2)); border-color: rgba(226, 73, 47, 0.35); }
.support { flex-direction: row; align-items: center; gap: 24px; margin-top: 20px; }
.support .tile-body { flex: 1 1 auto; }
.support > .btn { flex: none; margin-right: 32px; }
@media (max-width: 860px) { .support { flex-direction: column; align-items: flex-start; gap: 0; } .support .tile-body { padding: 32px 32px 28px; } .support > .btn { margin: 0 32px 32px; } }
.channels { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.channels li { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-1); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.channels code { justify-self: start; color: var(--gold-hi); }
.channels span { color: var(--text-2); font-size: 15px; line-height: 22px; }
.mini { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); font-size: 15px; line-height: 24px; }
.mini li::marker { color: var(--gold); font-weight: 700; }
.subhead { max-width: 720px; margin: 104px 0 40px; padding-top: 56px; border-top: 1px solid var(--line); }
.subhead h3 { font-size: 40px; line-height: 46px; }
.subhead p { margin-top: 16px; color: var(--text-2); font-size: 18px; line-height: 29px; }
.final .hero-art img { top: 0; height: 100%; }
@media (max-width: 1100px) { .hub { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .hub-discord { grid-column: 1 / -1; } }
@media (max-width: 860px) { .hub { grid-template-columns: minmax(0, 1fr); } .subhead { margin-top: 72px; } .subhead h3 { font-size: 30px; line-height: 36px; } }

/* A short sentence kept on one line. */
.keep { white-space: nowrap; }
@media (max-width: 860px) { .label { font-size: 15px; gap: 12px; } .label b { width: 40px; height: 40px; font-size: 23px; } }

/* No title, question or button ends on a single word: buttons never wrap, titles balance their lines,
   questions and card titles avoid a short last line. */
.btn { white-space: nowrap; }
h3, .faq summary, .gallery figcaption b { text-wrap: balance; }
@media (max-width: 480px) { h2.display, .band h2, .final h2 { font-size: 34px; line-height: 40px; } .faq summary { font-size: 17px; } }
/* The waveform shrinks with the player instead of pushing past it. */
.wave { min-width: 0; overflow: hidden; }
.wave i { min-width: 1px; }
@media (max-width: 480px) { .wave { gap: 2px; } .controls { gap: 12px; } .time { font-size: 12px; } }

/* Optional extras under the install steps: one card per extra, as many as there are. */
.extras { margin-top: 48px; }
.extras-title { font-size: 20px; line-height: 28px; color: var(--gold); margin-bottom: 16px; }
.extras-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.extra { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding: 28px; border-radius: var(--r-2); border: 1px dashed var(--line-gold); background: rgba(232, 190, 110, 0.03); }
.extra h4 { font: 800 20px/28px var(--display); color: var(--text); margin-bottom: 8px; }
.extra p { color: var(--text-2); font-size: 15px; line-height: 24px; }
.extra .btn { margin-top: 18px; min-height: 44px; }
@media (max-width: 480px) { .extras-row { grid-template-columns: minmax(0, 1fr); } .extra { padding: 22px 20px; gap: 14px; grid-template-columns: 40px minmax(0, 1fr); } .extra .icon { width: 40px; height: 40px; } }

/* The one extra worth getting: solid frame, a warm glow and a tag. */
.extra { position: relative; }
.extra-pick { border: 1px solid rgba(226, 73, 47, 0.7); background: radial-gradient(120% 90% at 0% 0%, rgba(226, 73, 47, 0.16), transparent 60%), var(--ink-2); box-shadow: 0 0 0 4px rgba(226, 73, 47, 0.08), 0 18px 40px rgba(0, 0, 0, 0.45); }
.tag { position: absolute; top: -13px; right: 24px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--red); color: #fff; font: 800 12px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; box-shadow: 0 6px 16px rgba(226, 73, 47, 0.45); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* ---------- Gallery: one picture at a time, its caption under it, a row of thumbnails ---------- */
.carousel { max-width: 1080px; margin: 0 auto; outline: none; }
.carousel:focus-visible .slide img { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
/* --pic is the picture's height, so the arrows sit on the picture's middle, not on picture plus caption. */
.car-stage { position: relative; touch-action: pan-y; user-select: none; --pic: calc(min(1080px, 100vw - 2 * var(--gutter)) * 9 / 16); }
.slide { margin: 0; }
.slide[hidden] { display: none; }
.slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; cursor: zoom-in; -webkit-user-drag: none; border-radius: var(--r-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); background: #000; }
.slide figcaption { padding: 18px 4px 0; color: var(--text-2); font-size: 16px; line-height: 24px; }
.slide figcaption b { display: block; color: var(--text); font: 800 24px/30px var(--display); margin-bottom: 4px; }
.slide.is-on img { animation: car-in 260ms ease; }
@keyframes car-in { from { opacity: 0.4; } to { opacity: 1; } }
.car-arrow { position: absolute; top: calc(var(--pic) / 2 - 28px); width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; cursor: pointer;
  background: rgba(7, 8, 12, 0.72); color: var(--text); transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease; }
.car-arrow:hover { background: var(--red); border-color: var(--red); color: #fff; }
.car-arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.car-prev { left: 20px; } .car-next { right: 20px; }
/* The thumbnail row scrolls sideways with an arrow at each end; the shown picture is outlined in gold. */
.car-under { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px; margin-top: 20px; }
.car-thumbs { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; padding: 8px 4px; scrollbar-width: none; }
.car-thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: none; width: 208px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; opacity: 0.55; transition: opacity 120ms ease, border-color 120ms ease, transform 120ms ease; }
.thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.thumb:hover { opacity: 0.85; }
.thumb[aria-current="true"] { opacity: 1; border-color: var(--gold); transform: translateY(-2px); }
.row-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--ink-3); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease; }
.row-arrow:hover { background: var(--red); border-color: var(--red); color: #fff; }
.row-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.car-count { margin-top: 12px; text-align: center; font: 700 15px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.car-count .car-n { color: var(--gold-hi); }
@media (max-width: 860px) {
  .car-arrow { width: 44px; height: 44px; top: calc(var(--pic) / 2 - 22px); }
  .car-prev { left: 10px; } .car-next { right: 10px; }
  .slide figcaption { padding: 14px 2px 0; }
  .slide figcaption b { font-size: 20px; line-height: 26px; }
  .car-under { gap: 8px; }
  .thumb { width: 132px; }
}
@media (prefers-reduced-motion: reduce) { .car-thumbs { scroll-behavior: auto; } }

/* Short leads balance their lines, so none ends on a single word. */
.lede { text-wrap: balance; }

/* ---------- Two languages ---------- */
/* One language at a time; without the script the page stays in English. */
html:not([data-lang="ja"]) [data-t][lang="ja"],
html[data-lang="ja"] [data-t][lang="en"] { display: none !important; }
html:not(.has-lang) .lang { display: none; }
.lang { display: flex; flex: none; padding: 3px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line-2); }
.lang-btn { font: 600 13px/1 var(--sans); padding: 8px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); cursor: pointer; }
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] { background: var(--ink-4); color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--line-gold); }
/* Japanese: a full Japanese serif for titles (the bundled title face carries only a few kanji), longer lines,
   and line breaks that keep phrases together. */
html[data-lang="ja"] body { line-height: 1.85; }
html[data-lang="ja"] :is(h1, h2, h3, h4, .who h3, .faq summary, .gallery figcaption b, .slide figcaption b) { font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; letter-spacing: 0.02em; }
html[data-lang="ja"] :is(h1, h2, h3, h4, p, li, summary, figcaption, .btn) { word-break: auto-phrase; line-break: strict; }
html[data-lang="ja"] .hero h1 { font-size: 72px; line-height: 92px; }
html[data-lang="ja"] h2.display { font-size: 52px; line-height: 70px; }
html[data-lang="ja"] .label { letter-spacing: 0.08em; }
@media (max-width: 860px) {
  html[data-lang="ja"] .hero h1 { font-size: 40px; line-height: 54px; }
  html[data-lang="ja"] h2.display, html[data-lang="ja"] .band h2, html[data-lang="ja"] .final h2 { font-size: 32px; line-height: 44px; }
  .lang-btn { padding: 7px 9px; font-size: 12px; }
  .bar .wrap { gap: 12px; }
}

/* Short windows (a laptop with its browser bars, a small phone): the hero tightens so the CurseForge button is in the first screen. */
@media (max-height: 760px) and (min-width: 861px) {
  .hero { padding-top: 48px; }
  .hero h1 { margin-top: 20px; font-size: 68px; line-height: 72px; }
  html[data-lang="ja"] .hero h1 { font-size: 60px; line-height: 76px; }
  .hero .lede { margin-top: 18px; }
  .hero .cta { margin-top: 26px; }
}
@media (max-height: 700px) and (max-width: 860px) {
  .hero { padding-top: 32px; }
  .hero h1 { margin-top: 18px; }
  .hero .lede { margin-top: 16px; font-size: 17px; line-height: 27px; }
  .hero .cta { margin-top: 24px; gap: 10px; }
}
@media (max-height: 600px) and (max-width: 860px) {
  .hero { padding-top: 20px; }
  .hero-stamp { display: none; }
  .hero h1 { margin-top: 0; font-size: 34px; line-height: 40px; }
  html[data-lang="ja"] .hero h1 { font-size: 32px; line-height: 44px; }
  .hero .lede { margin-top: 12px; font-size: 16px; line-height: 25px; }
  .hero .cta { margin-top: 20px; }
}

/* Very short windows at any width (a phone held sideways): the hero at its most compact. */
@media (max-height: 520px) {
  .hero { padding-top: 16px; }
  .hero-stamp { display: none; }
  .hero h1 { margin-top: 0; font-size: 34px; line-height: 40px; }
  html[data-lang="ja"] .hero h1 { font-size: 32px; line-height: 44px; }
  .hero .lede { margin-top: 10px; font-size: 16px; line-height: 24px; }
  .hero .cta { margin-top: 16px; }
}
@media (max-height: 360px) {
  .hero { padding-top: 10px; }
  .hero h1 { font-size: 30px; line-height: 36px; }
  html[data-lang="ja"] .hero h1 { font-size: 28px; line-height: 38px; }
  .hero .lede { font-size: 15px; line-height: 22px; }
  .hero .cta { margin-top: 12px; }
}
/* With no samples to play (no script, or the data failed) the side cards take the whole row. */
.voice-grid:has(> .player[hidden]) { grid-template-columns: minmax(0, 1fr); }
html:not(.has-lang) .voice-grid { grid-template-columns: minmax(0, 1fr); }

/* ---------- The page for a wrong address (404.html) ---------- */
.bar-row { display: flex; align-items: center; gap: 24px; height: 100%; }
.bar-row .lang { margin-left: auto; }
.brand-name { font: 800 18px/1 var(--display); color: var(--text); }
.narrow { max-width: 780px; }
.lost { padding: 136px 0; }
.lost .card { padding: 48px; border-radius: var(--r-3); background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.lost h1 { font: 800 44px/52px var(--display); margin-bottom: 16px; }
.lost p { color: var(--text-2); }
.panel-cta { margin-top: 28px; }
.btn-main { color: #fff; background: var(--red); }
.btn-main:hover { background: var(--red-hi); color: #fff; }
@media (max-width: 860px) { .lost { padding: 88px 0; } .lost .card { padding: 28px 22px; } .lost h1 { font-size: 30px; line-height: 38px; } }

/* ---------- Players say ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 32px; border-radius: var(--r-3); background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line); position: relative; }
.quote::before { content: "“"; position: absolute; top: 6px; left: 22px; font: 800 72px/1 var(--display); color: var(--red); opacity: 0.55; }
.quote blockquote { margin: 18px 0 0; }
.quote blockquote p { font: 500 18px/30px var(--sans); color: var(--text); }
.quote figcaption { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: 14px; }
.quote figcaption b { color: var(--gold); font: 800 17px/1 var(--display); }
.quotes-note { margin-top: 20px; }
/* ---------- Watch ---------- */
.shorts { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); gap: 28px; }
.short { display: grid; gap: 14px; color: var(--text); text-decoration: none; }
.short-pic { position: relative; display: block; border-radius: var(--r-3); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); transition: transform 180ms ease, border-color 180ms ease; }
.short-pic img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.short:hover .short-pic { transform: translateY(-4px); border-color: var(--line-gold); }
.short-play { position: absolute; left: 50%; bottom: 22px; width: 56px; height: 56px; margin-left: -28px; border-radius: 50%; display: grid; place-items: center; background: var(--red); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6); }
.short-play svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.short-title { font: 800 18px/26px var(--display); text-wrap: balance; }
.short:hover .short-title { color: var(--gold-hi); }
.shorts-more { margin-top: 32px; }
@media (max-width: 860px) {
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .quote { padding: 28px 22px; }
  .shorts { grid-template-columns: repeat(3, minmax(150px, 1fr)); overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .shorts::-webkit-scrollbar { display: none; }
  .short-title { font-size: 15px; line-height: 22px; }
}
/* Sections kept in the source but not shown yet, and a player with nothing to play, carry the hidden attribute. */
.section[hidden], .player[hidden] { display: none; }

/* Commands may break inside list text on a narrow phone rather than push the page sideways. */
li code, .collect code { white-space: normal; overflow-wrap: anywhere; }
/* Controls that only work with the page's script stay out of sight without it (lang.js marks the page). */
html:not(.has-lang) :is(#player, .vid button, .car-arrow, .car-under, .car-count, .lang) { display: none; }
/* Without the script the gallery has no way to turn, so every picture is shown, one under another. */
html:not(.has-lang) .slide[hidden] { display: block; }
html:not(.has-lang) .slide + .slide { margin-top: 24px; }
/* The slider's note may shrink and wrap beside its button, and goes under it on a narrow phone. */
.compare-under .small { min-width: 0; }
@media (max-width: 420px) { .compare-under { flex-wrap: wrap; } }
