/* FearlessBoard landing. Colors come from theme.css (dark wine); blue/red are reserved for the two teams.
   Motion-only rules live under .motion (added by landing.js), so the page reads fine without JS or with reduced motion. */
:root {
    --void: var(--background);
    --panel: var(--surface);
    --line: var(--border);
    --ink: var(--foreground);
    --mute: var(--muted-foreground);
    --blue: var(--team-blue);
    --red: var(--team-red);
    --display: 'Unbounded', system-ui, sans-serif;
    --body: 'Chakra Petch', system-ui, sans-serif;
    --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--void);
    color: var(--ink);
    font: 400 17px/1.55 var(--body);
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--primary); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 16px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border: 0; border-radius: var(--radius); cursor: pointer;
    font: 600 16px/1 var(--body); letter-spacing: .02em; text-decoration: none;
    transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-signal { background: var(--primary); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(212, 154, 154, .35), 0 10px 30px rgba(186, 52, 112, .5); }
.btn-signal:hover { background: var(--primary-hover); box-shadow: inset 0 0 0 1px rgba(212, 154, 154, .6), 0 12px 36px rgba(186, 52, 112, .65); }
.btn-ghost { background: rgba(242, 218, 206, .07); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: rgba(242, 218, 206, .14); }

/* ---------- Header ---------- */
.hd {
    position: fixed; inset: 0 0 auto; z-index: 100; height: 68px;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    padding: 0 var(--gutter);
    transition: background-color .3s, box-shadow .3s;
}
.hd.is-solid { background: rgba(38, 9, 27, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.hd-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 15px/1 var(--display); letter-spacing: .04em; justify-self: start; }
.hd-brand img { width: 36px; height: auto; }
.hd-brand b { font-weight: 400; color: var(--accent); }
.hd-nav { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.hd-nav a { position: relative; padding: 8px 0; text-decoration: none; font-weight: 500; color: var(--mute); transition: color .2s; }
.hd-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .3s; }
.hd-nav a:hover, .hd-nav a.is-active { color: var(--ink); }
.hd-nav a.is-active::after { transform: scaleX(1); }
.hd-explore {
    justify-self: end; display: inline-flex; align-items: center; gap: 12px;
    padding: 6px 6px 6px 18px; border-radius: var(--radius); text-decoration: none;
    background: var(--primary); color: var(--ink); font: 600 15px/1 var(--body);
    box-shadow: inset 0 0 0 1px rgba(212, 154, 154, .35);
    transition: background-color .2s;
}
.hd-explore:hover { background: var(--primary-hover); }
.hd-explore-icon { position: relative; width: 30px; height: 30px; border-radius: calc(var(--radius) - 2px); background: var(--void); }
.hd-explore-icon i { position: absolute; left: 9px; right: 9px; top: 14px; height: 2px; border-radius: 2px; background: var(--accent); transition: transform .35s cubic-bezier(.6, 0, .2, 1); }
.hd-explore-icon i + i { transform: rotate(90deg); }
.hd-explore.is-open .hd-explore-icon i { transform: rotate(45deg); }
.hd-explore.is-open .hd-explore-icon i + i { transform: rotate(-45deg); }

/* ---------- Explore popup ---------- */
.gate {
    width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
    padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: calc(var(--radius) * 2);
    background: rgba(53, 16, 42, .96); color: var(--ink);
    box-shadow: 0 40px 120px rgba(0, 0, 0, .7), 0 0 0 1px rgba(212, 154, 154, .08);
}
.gate::backdrop { background: rgba(26, 6, 18, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gate[open] { animation: gate-in .4s cubic-bezier(.2, .8, .2, 1); }
.gate[open]::backdrop { animation: fade .3s ease; }
@keyframes gate-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
.gate-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.gate-head h2 { font: 700 clamp(24px, 3vw, 32px)/1.1 var(--display); letter-spacing: -.02em; }
.gate-close { position: relative; width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; cursor: pointer; transition: background-color .2s; }
.gate-close:hover { background: var(--surface-2); }
.gate-close i { position: absolute; left: 11px; right: 11px; top: 19px; height: 2px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.gate-close i + i { transform: rotate(-45deg); }
.gate-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gate-option { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.5); background: var(--void); text-decoration: none; transition: border-color .25s, transform .25s, box-shadow .25s; }
.gate-option:hover, .gate-option:focus-visible { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 20px 50px rgba(124, 14, 68, .35); outline: 0; }
.gate-art { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 20%; transition: transform .6s; }
.gate-option:hover .gate-art { transform: scale(1.05); }
.gate-body { position: relative; display: grid; gap: 8px; padding: 18px 20px 20px; background: linear-gradient(transparent, var(--void) 30%); margin-top: -40px; }
.gate-name { font: 700 22px/1.15 var(--display); letter-spacing: -.02em; }
.gate-note { color: var(--mute); font-size: 15px; }
.gate-go { justify-self: start; margin-top: 8px; padding: 10px 16px; border-radius: var(--radius); background: var(--primary); font-weight: 600; font-size: 15px; box-shadow: inset 0 0 0 1px rgba(212, 154, 154, .35); }
.gate-go.is-secondary { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.gate-foot { margin-top: 18px; color: var(--mute); font-size: 14px; text-align: center; }

/* ---------- Hero ---------- */
.hero-stage { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; align-items: center; padding: 100px var(--gutter) 160px; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 40%, transparent 0 30%, rgba(38, 9, 27, .78) 80%), linear-gradient(to top, var(--void), transparent 30%); }
.hero-art { position: absolute; right: -4vw; bottom: 0; height: min(88vh, 920px); width: auto; max-width: none; object-fit: contain; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); }
.hero-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(242, 218, 206, .025) 0 1px, transparent 1px 4px); mix-blend-mode: screen; }
.hero-copy { position: relative; z-index: 2; max-width: 860px; }
.hero-title { font: 900 clamp(52px, 10.4vw, 172px)/.86 var(--display); letter-spacing: -.045em; text-shadow: 0 10px 50px rgba(38, 9, 27, .6); }
.hero-line { display: block; white-space: nowrap; }
.hero-line + .hero-line { padding-left: .55em; }
.hero-lede { max-width: 30em; margin-top: 28px; font-size: clamp(17px, 1.5vw, 20px); color: #F7DED5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-clock, .hero-duel { display: none; }

/* Turn timer: horizontal HUD bar along the bottom-left, clear of the mascot art. */
.gauge { position: absolute; z-index: 3; left: var(--gutter); bottom: 28px; width: min(640px, calc(100% - 2 * var(--gutter))); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 28px; padding: 14px 22px; background: rgba(38, 9, 27, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.5); }
.gauge-read { display: flex; align-items: center; gap: 14px; }
.gauge-val { min-width: 2.4em; font: 300 40px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.gauge-val small { font-size: 14px; margin-left: 3px; }
.gauge-label { color: var(--mute); font-size: 13px; }
.gauge-turn { font-weight: 600; font-size: 14px; color: var(--blue); min-width: 8.5em; white-space: nowrap; }
.gauge-turn.is-red { color: var(--red); }
.gauge-track { --p: 0; position: relative; display: flex; justify-content: space-between; align-items: flex-end; height: 26px; padding: 0 10px; }
.gauge-track::before, .gauge-track::after { content: ''; position: absolute; left: 10px; bottom: 0; height: 2px; border-radius: 2px; }
.gauge-track::before { right: 10px; background: rgba(242, 218, 206, .12); }
.gauge-track::after { width: calc((100% - 20px) * var(--p)); background: linear-gradient(90deg, var(--primary), var(--accent)); box-shadow: 0 0 10px rgba(212, 154, 154, .6); }
.gauge-track i { display: block; width: 1px; height: 8px; background: rgba(242, 218, 206, .4); }
.gauge-track i.is-major { height: 16px; background: var(--ink); }
.gauge-marker { position: absolute; left: 10px; bottom: -5px; width: 3px; height: 34px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.gauge-ends { display: flex; justify-content: space-between; padding: 6px 10px 0; font: 600 12px/1 var(--body); color: var(--mute); font-variant-numeric: tabular-nums; }
.hero-cue { position: absolute; z-index: 3; right: var(--gutter); bottom: 26px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; color: var(--mute); font-size: 14px; text-shadow: 0 1px 10px rgba(38, 9, 27, .95), 0 0 2px rgba(38, 9, 27, .9); }
.hero-cue i { width: 1px; height: 36px; background: linear-gradient(var(--accent), transparent); animation: cue 2s infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.motion .hero-stage { height: 100vh; height: 100svh; }
.motion .hero-clock { display: grid; justify-items: center; text-align: center; gap: 18px; position: absolute; inset: 0; z-index: 2; align-content: center; padding: 0 var(--gutter); opacity: 0; pointer-events: none; }
.hero-clock-num { font: 300 clamp(120px, 26vw, 400px)/.8 var(--display); letter-spacing: -.06em; font-variant-numeric: tabular-nums; color: var(--ink); text-shadow: 0 0 80px rgba(186, 52, 112, .65); }
.hero-clock-num small { font-size: .2em; letter-spacing: 0; margin-left: .1em; color: var(--accent); }
.hero-clock-copy { max-width: 24em; font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; color: var(--accent); }
.motion .hero-duel { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.duel-side { position: absolute; inset: 0; }
.duel-side img { width: 100%; height: 100%; object-fit: cover; }
.duel-side figcaption { position: absolute; bottom: 12vh; font: 700 clamp(22px, 3vw, 44px)/1.05 var(--display); letter-spacing: -.02em; max-width: 9em; }
.duel-blue { clip-path: polygon(0 0, 56% 0, 44% 100%, 0 100%); }
.duel-blue::after, .duel-red::after { content: ''; position: absolute; inset: 0; }
.duel-blue::after { background: linear-gradient(90deg, rgba(0, 148, 238, .55), rgba(38, 9, 27, .2) 60%); mix-blend-mode: multiply; }
.duel-red::after { background: linear-gradient(270deg, rgba(233, 29, 60, .55), rgba(38, 9, 27, .2) 60%); mix-blend-mode: multiply; }
.duel-blue figcaption { left: var(--gutter); color: #8FD3FF; z-index: 1; }
.duel-red { clip-path: polygon(56% 0, 100% 0, 100% 100%, 44% 100%); }
.duel-red figcaption { right: calc(var(--gutter) + 160px); text-align: right; color: #FF9AAA; z-index: 1; }
.duel-vs { position: absolute; left: 50%; top: 50%; width: 120px; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 0 24px rgba(212, 154, 154, .65)); }

/* ---------- Statement ---------- */
.state { position: relative; overflow: hidden; padding: clamp(120px, 20vh, 220px) var(--gutter); text-align: center; background: radial-gradient(ellipse at 50% 35%, #4D1335, var(--void) 70%); }
.state-ring { position: absolute; left: 50%; top: 34%; width: min(80vw, 760px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.state-ring i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(170, 94, 122, .4); }
.state-ring i:nth-child(2) { inset: 12%; border-color: rgba(212, 154, 154, .35); border-style: dashed; }
.state-ring i:nth-child(3) { inset: 26%; border: 0; background: conic-gradient(from 0deg, transparent 0 70%, rgba(212, 154, 154, .55) 85%, transparent); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); }
.state-title { position: relative; font: 900 clamp(46px, 9vw, 150px)/.9 var(--display); letter-spacing: -.045em; }
.state-title span { display: block; }
.state-copy { position: relative; max-width: 34em; margin: 32px auto 0; color: #F7DED5; font-size: clamp(17px, 1.4vw, 19px); }
.state-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 860px; margin: 64px auto 0; border-top: 1px solid var(--line); }
.state-stats div { padding: 28px 12px 0; }
.state-stats div + div { border-left: 1px solid var(--line); }
.state-stats dt { color: var(--mute); font-size: 14px; }
.state-stats dd { margin-top: 6px; font: 700 clamp(30px, 3.6vw, 48px)/1 var(--display); font-variant-numeric: tabular-nums; }

/* ---------- Modes ---------- */
.modes { background: var(--void); }
.modes-intro { padding: clamp(100px, 16vh, 180px) var(--gutter) 48px; text-align: center; }
.modes-title { font: 900 clamp(40px, 7vw, 112px)/.92 var(--display); letter-spacing: -.045em; color: var(--accent); max-width: 11em; margin: 0 auto; }
.modes-intro p { margin-top: 20px; color: var(--mute); }
.modes-stage { position: relative; }
.modes-bg { display: none; }
.modes-board { display: none; }
.modes-index { display: none; }
.mode { position: relative; padding: 48px var(--gutter); text-align: center; border-top: 1px solid var(--line); }
.mode-name { font: 900 clamp(48px, 9.6vw, 150px)/.9 var(--display); letter-spacing: -.05em; }
.mode-line { margin-top: 18px; font-weight: 600; font-size: clamp(17px, 1.5vw, 20px); }
.mode-copy { max-width: 32em; margin: 10px auto 0; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.chips li { padding: 7px 14px; border: 1px solid var(--secondary); border-radius: 999px; font-size: 14px; font-weight: 500; background: rgba(38, 9, 27, .55); }

.motion .modes-stage { height: 100vh; height: 100svh; overflow: hidden; }
.motion .modes-bg { display: block; position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.motion .modes-bg.is-active { opacity: 1; }
.motion .modes-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(1.1) brightness(.5); transform: scale(1.06); }
.motion .modes-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, rgba(38, 9, 27, .35), var(--void) 85%), linear-gradient(rgba(124, 14, 68, .3), transparent 45%); }
.motion .modes-board { position: absolute; left: 50%; top: 15vh; transform: translateX(-50%); display: grid; grid-template-columns: repeat(20, 1fr); gap: 6px; width: min(80vw, 720px); }
.modes-board i { height: 34px; border: 1px solid rgba(242, 218, 206, .25); border-radius: 3px; transition: background-color .4s, border-color .4s, box-shadow .4s; }
.modes-board i.ban { height: 22px; align-self: end; }
.modes-board i.on.b { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 12px rgba(0, 148, 238, .7); }
.modes-board i.on.r { background: var(--red); border-color: var(--red); box-shadow: 0 0 12px rgba(233, 29, 60, .7); }
.motion .modes-index { display: flex; flex-direction: column; gap: 22px; position: absolute; z-index: 3; right: var(--gutter); top: 50%; transform: translateY(-50%); text-align: right; }
.modes-index li { position: relative; padding-right: 18px; }
.modes-index li::after { content: ''; position: absolute; right: 0; top: 50%; width: 2px; height: 16px; margin-top: -8px; background: rgba(242, 218, 206, .3); transition: height .3s, background-color .3s, margin-top .3s; }
.modes-index li.is-active::after { height: 34px; margin-top: -17px; background: var(--accent); }
.modes-index button { background: none; border: 0; padding: 4px 0; color: var(--mute); font: 600 15px/1.2 var(--body); cursor: pointer; transition: color .3s; }
.modes-index li.is-active button { color: var(--ink); }
.motion .mode { position: absolute; z-index: 2; left: 0; right: 0; bottom: 12vh; border: 0; padding-top: 0; padding-bottom: 0; opacity: 0; visibility: hidden; transform: translateY(30px); transition: opacity .5s, transform .5s, visibility .5s; }
.motion .mode.is-active { opacity: 1; visibility: visible; transform: none; }

/* ---------- Mode comparison ---------- */
.compare-wrap { padding: clamp(64px, 10vh, 120px) var(--gutter); background: var(--void); }
.compare { width: 100%; max-width: 980px; margin: 0 auto; border-collapse: separate; border-spacing: 0; font-size: 15px; background: var(--panel); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.5); overflow: hidden; }
.compare caption { text-align: left; font: 700 clamp(22px, 2.4vw, 30px)/1.2 var(--display); letter-spacing: -.02em; margin-bottom: 18px; }
.compare th, .compare td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { color: var(--mute); font-weight: 600; background: var(--surface-2); }
.compare tbody th { text-align: left; font-weight: 500; color: #F7DED5; }
.compare td { font-weight: 600; }

/* ---------- Champion pool ---------- */
.pool { position: relative; overflow: hidden; padding: clamp(100px, 16vh, 180px) 0 clamp(80px, 12vh, 140px); background: linear-gradient(var(--void), #30102A 18%, #3C1230 80%, var(--void)); text-align: center; }
.pool-word { font: 300 clamp(64px, 17vw, 290px)/.85 var(--display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(242, 218, 206, .55); white-space: nowrap; }
.pool-word span { display: inline-block; }
.pool-sub { max-width: 34em; margin: 26px auto 0; padding: 0 var(--gutter); color: #F7DED5; }
.pool-roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); max-width: 1240px; margin: 72px auto 0; padding: 0 var(--gutter); }
.role-card { position: relative; aspect-ratio: 3 / 4; overflow: hidden; transform: rotate(var(--tilt)); background: var(--panel); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.5); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.role-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; transition: opacity .3s, transform .5s; }
.role-card:hover .role-face { opacity: .85; transform: scale(1.05); }
.role-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(38, 9, 27, .94)); }
.role-card figcaption { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; text-align: left; align-items: center; }
.role-card figcaption img { grid-row: 1 / 3; width: 30px; height: 30px; }
.role-name { font: 700 clamp(15px, 1.4vw, 20px)/1.1 var(--display); }
.role-count { color: var(--accent); font-weight: 600; font-size: 14px; }
.pool-rail { margin-top: 80px; display: grid; gap: 14px; }
.rail-row { display: flex; gap: 14px; width: max-content; padding: 0 14px; }
.rail-row:nth-child(2) { margin-left: -200px; }
.rail-row img { width: 72px; height: 72px; border-radius: var(--radius); border: 1px solid var(--line); filter: saturate(.85); transition: filter .2s, transform .2s, border-color .2s; }
.rail-row img:hover { filter: none; transform: translateY(-4px); border-color: var(--accent); }

/* ---------- Flow ---------- */
.flow { background: var(--void); padding: clamp(80px, 12vh, 140px) 0; }
.flow-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 0 var(--gutter); margin-bottom: 40px; }
.flow-title { font: 700 clamp(34px, 4.6vw, 64px)/1 var(--display); letter-spacing: -.035em; position: relative; padding-bottom: 18px; }
.flow-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 120px; height: 3px; border-radius: 2px; background: var(--accent); }
.flow-head p { max-width: 24em; color: var(--mute); }
.flow-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.flow-viewport::-webkit-scrollbar { display: none; }
.flow-track { display: flex; gap: 22px; width: max-content; padding: 0 var(--gutter); }
.step { width: clamp(260px, 24vw, 330px); scroll-snap-align: start; }
.step-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.5); background: var(--panel); }
.step-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.step:hover .step-img img { transform: scale(1.06); }
.step-num { position: absolute; left: 12px; top: 12px; font: 700 14px/1 var(--display); color: var(--ink); background: rgba(38, 9, 27, .75); border: 1px solid var(--line); border-radius: calc(var(--radius) - 2px); padding: 8px 10px; }
.step h3 { margin-top: 18px; font: 700 19px/1.2 var(--display); letter-spacing: -.01em; }
.step p { margin-top: 8px; color: var(--mute); font-size: 15px; }
.step-stat { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: 14px; }
.motion .flow { padding-bottom: 0; }
@media (min-width: 761px) { .motion .flow-viewport { overflow: hidden; scroll-snap-type: none; } }

/* ---------- Seats ---------- */
.seats { padding: clamp(100px, 16vh, 180px) var(--gutter); background: radial-gradient(ellipse at 50% 0%, #47132F, var(--void) 60%); text-align: center; overflow: hidden; }
.seats-word { font: 300 clamp(60px, 13vw, 220px)/.88 var(--display); letter-spacing: -.05em; color: var(--accent); }
.seats-word span { display: block; }
.seats-sub { max-width: 30em; margin: 24px auto 0; color: #F7DED5; }
.seats-ui { max-width: 1120px; margin: 64px auto 0; }
.seats-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(53, 16, 42, .6); }
.seat-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--mute); font: 600 15px/1 var(--body); cursor: pointer; transition: background-color .25s, color .25s; }
.seat-tab i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.seat-tab-blue i { background: var(--blue); }
.seat-tab-red i { background: var(--red); }
.seat-tab-spectator i { background: var(--accent); }
.seat-tab[aria-selected="true"] { background: var(--ink); color: var(--void); }
.seats-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: 48px; text-align: left; }
.seats-board { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding: 28px; background: rgba(53, 16, 42, .75); border: 1px solid var(--line); border-radius: calc(var(--radius) * 2); }
.sb-col { display: grid; gap: 10px; transition: opacity .4s, filter .4s; }
.sb-col span { aspect-ratio: 16 / 7; background-size: cover; background-position: center 25%; border-radius: calc(var(--radius) - 2px); border-left: 3px solid; }
.sb-blue span { border-color: var(--blue); }
.sb-red span { border-color: var(--red); border-left: 0; border-right: 3px solid var(--red); }
.sb-mid { display: grid; justify-items: center; gap: 6px; min-width: 88px; text-align: center; }
.sb-mid b { font: 300 48px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--accent); }
.sb-mid small { font-size: 12px; color: var(--mute); max-width: 7em; }
.seats-body[data-active="blue"] .sb-red, .seats-body[data-active="red"] .sb-blue { opacity: .35; filter: grayscale(1); }
.seats-body[data-active="blue"] .sb-blue { filter: drop-shadow(0 0 18px rgba(0, 148, 238, .45)); }
.seats-body[data-active="red"] .sb-red { filter: drop-shadow(0 0 18px rgba(233, 29, 60, .45)); }
.seat-panel h3 { font: 700 clamp(30px, 3.4vw, 46px)/1.05 var(--display); letter-spacing: -.03em; }
.seat-line { margin-top: 10px; color: #F7DED5; font-size: 18px; }
.seat-meter-label { margin-top: 24px; color: var(--mute); font-size: 14px; }
.seat-meter { display: flex; gap: 6px; margin-top: 8px; }
.seat-meter i { width: 36px; height: 6px; border-radius: 3px; background: rgba(242, 218, 206, .15); }
.seat-meter i.on { background: var(--accent); }
.seat-can { margin: 22px 0 28px; display: grid; gap: 10px; }
.seat-can li { position: relative; padding-left: 22px; }
.seat-can li::before { content: ''; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--accent); }
.seat-panel.is-in { animation: rise .45s both cubic-bezier(.2, .7, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Footer ---------- */
.ft { padding: clamp(80px, 14vh, 160px) var(--gutter) 32px; text-align: center; background: radial-gradient(ellipse at 50% 0%, #3F1129, var(--void) 55%); border-top: 1px solid var(--line); }
.ft-mark { width: 120px; height: 110px; margin: 0 auto; display: block; }
.ft-mark path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.ft-tag { margin: 28px auto; max-width: 12em; font: 700 clamp(26px, 3.4vw, 44px)/1.08 var(--display); letter-spacing: -.03em; color: var(--accent); }
.ft-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); justify-content: center; gap: 32px; margin: 80px auto 0; text-align: left; }
.ft-cols h3 { margin-bottom: 14px; font: 600 14px/1 var(--body); color: var(--mute); }
.ft-cols a { display: block; padding: 5px 0; text-decoration: none; }
.ft-cols a:hover { color: var(--accent); }
.ft-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1080px; margin: 64px auto 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; }
.ft-bar .hd-brand img { width: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hd-nav { display: none; }
    .hd { grid-template-columns: 1fr auto; }
    .pool-roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .seats-body { grid-template-columns: 1fr; }
    .duel-red figcaption { right: var(--gutter); }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .hd { height: 60px; }
    .hd-brand span { display: none; }
    .hero-stage { align-items: flex-end; padding-bottom: 120px; }
    .hero-art { right: -30vw; height: 70vh; opacity: .55; }
    .hero-line + .hero-line { padding-left: 0; }
    .gauge { display: none; }
    .duel-side figcaption { font-size: 24px; max-width: 7.5em; }
    .duel-blue figcaption { bottom: auto; top: 14vh; }
    .duel-red figcaption { bottom: 14vh; }
    .gate-options { grid-template-columns: 1fr; }
    .gate-art { aspect-ratio: 21 / 9; }
    .state-stats { grid-template-columns: 1fr; }
    .state-stats div + div { border-left: 0; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
    .motion .modes-index { top: auto; bottom: 24px; right: 0; left: 0; transform: none; flex-direction: row; justify-content: center; gap: 14px; text-align: center; }
    .modes-index li { padding: 0 0 12px; }
    .modes-index li::after { top: auto; bottom: 0; right: 50%; width: 16px; height: 2px; margin: 0 -8px 0 0; }
    .modes-index li.is-active::after { width: 30px; height: 2px; margin: 0 -15px 0 0; }
    .modes-index button { font-size: 13px; }
    .motion .mode { bottom: 90px; }
    .motion .modes-board { top: 12vh; width: calc(100vw - 32px); gap: 3px; }
    .modes-board i { height: 22px; }
    .modes-board i.ban { height: 14px; }
    .compare { font-size: 13px; }
    .compare th, .compare td { padding: 12px 6px; }
    .pool-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pool-roles .role-card:last-child { grid-column: 1 / -1; width: 50%; justify-self: center; }
    .flow-head { flex-direction: column; align-items: start; }
    .seats-board { padding: 16px; gap: 10px; }
    .sb-mid { min-width: 64px; }
    .sb-mid b { font-size: 34px; }
    .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ft-bar { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
