/* RallyLog 랜딩(ko·en 공통) — site.css 위에 얹는다. 구조·스크롤 연출은 라이브 에디토리얼판 그대로,
   겉모습만 픽셀 B: 계단 모서리 카드, 2px 잉크 테두리, 점선 구분선, 남색 밤 구역, 그림자·그라데이션·유리 없음. */
h1, h2, h3 { font-family: var(--dot); font-weight: 700; letter-spacing: 0; }
section { scroll-margin-top: 72px; }
.statement { margin: 0; font: 700 34px/1.33 var(--dot); text-wrap: balance; }
@media (min-width: 900px) { .statement { font-size: 48px; } }
.lead { margin: 16px 0 0; max-width: 34em; font-size: 17px; color: var(--ink-muted); text-wrap: pretty; }
.dark { background: var(--night); color: #fff; }
.dark .lead { color: var(--night-muted); }

/* 섹션 머리줄: 번호 꼬리표 + 오른쪽 낱말, 아래 점선 */
.sec-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: clamp(28px, 4vw, 44px); font: 400 14px/1.5 var(--mono); color: var(--faint);
  background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px) bottom / 100% 2px no-repeat; }
.sec-bar .idx { display: inline-flex; align-items: center; gap: 10px; font: 400 12px/1.6 var(--game); color: var(--ink); }
.sec-bar .idx::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--me); }
.dark .sec-bar { color: var(--night-muted); background-image: repeating-linear-gradient(90deg, var(--night-well) 0 4px, transparent 4px 8px); }
.dark .sec-bar .idx { color: #fff; }

/* 언어 스위치 KR | EN */
.lang-switch { --u: 2px; --f: var(--well); --b: var(--ink); display: inline-flex; gap: 2px; padding: 4px; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 30px; padding: 0 8px;
  font: 400 12px/1 var(--game); text-decoration: none; color: var(--ink-muted); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { background: var(--ink); color: #fff; }
.drawer .drawer-lang { display: flex; align-items: center; gap: 8px; padding: 14px 0; }
.drawer-lang span { margin-right: 6px; font: 400 14px/1 var(--mono); color: var(--faint); }
.drawer .drawer-lang a { display: inline-flex; justify-content: center; width: auto; min-width: 52px; padding: 10px 12px; border: 2px solid var(--ink); font: 400 12px/1 var(--game); }
.drawer .drawer-lang a::before { content: none; }
.drawer .drawer-lang a.active { background: var(--ink); color: #fff; }

/* 출시 준비중 배지 */
.btn .soon { position: relative; z-index: 0; padding: 4px 5px; background: var(--ink); color: #fff; font: 400 10px/1 var(--game); }

/* ── 히어로 스크롤: 1) 밤 체육관 픽셀 장면 → 2) 장면 속 탁구대가 미니맵으로 이동·바운드 → 3) 지표 막대 ── */
.hero-scroll { position: relative; height: 390vh; background: var(--night-deep); }
.hero { position: sticky; top: 68px; isolation: isolate; height: calc(100vh - 68px); min-height: 600px; display: flex; flex-direction: column; overflow: hidden; background: var(--ink); }
.hero-camera { position: absolute; inset: 0; z-index: -1; transform-origin: 50% 50%; will-change: transform; }
.hero-media { position: absolute; inset: 0; }
/* 장면 상자 — JS가 이 상자의 offset과 --pos-x/--pos-y로 탁구대 네 모서리를 계산한다 */
.hero-img { --pos-x: .5; --pos-y: .5; position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background: url("img/hero-stage.png") calc(var(--pos-x) * 100%) calc(var(--pos-y) * 100%) / cover no-repeat;
  image-rendering: pixelated; image-rendering: crisp-edges; }
.hero-zoom-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: rgba(27, 31, 71, .88); will-change: opacity; }

.hero-hud-bar { position: relative; z-index: 3; background: var(--night-deep); border-bottom: 2px solid var(--night-well); will-change: opacity; pointer-events: none; }
.hud-inner { display: flex; align-items: center; justify-content: space-between; height: 44px; gap: 16px; color: #fff; }
.hud-left, .hud-right { display: flex; align-items: center; gap: 18px; }
.hud-tag { display: inline-flex; align-items: center; gap: 8px; font: 400 12px/1 var(--game); }
.hud-tag i { width: 8px; height: 8px; background: var(--me); animation: blink 1.2s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hud-spec { font: 400 14px/1 var(--mono); color: var(--night-muted); }
.hud-score { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 var(--dot); }
.hud-score b { padding: 4px 6px; background: var(--night-well); font: 400 16px/1 var(--mono); }
.hud-score .me { color: var(--me); } .hud-score .op { color: #93A8FA; }
.hud-score .n { font: 400 14px/1 var(--mono); color: var(--night-muted); }
.hud-stroke { display: inline-flex; align-items: center; gap: 10px; padding-left: 18px; font: 700 14px/1 var(--dot);
  background: repeating-linear-gradient(0deg, var(--night-well) 0 4px, transparent 4px 8px) left / 2px 100% no-repeat; }
.hud-stroke small { font: 400 14px/1 var(--mono); color: var(--gold); }

.hero-copy { position: relative; z-index: 3; margin-top: auto; padding-bottom: 84px; width: 100%; pointer-events: none; will-change: opacity, transform; }
.hero-editorial { --f: var(--card); pointer-events: auto; max-width: 560px; padding: 24px 24px 26px; }
.kicker { margin: 0 0 14px; font: 400 12px/1.6 var(--game); color: var(--me-ink); }
.hero-h1 { margin: 0; font-size: 34px; line-height: 1.3; }
@media (min-width: 640px) { .hero-h1 { font-size: 44px; } }
@media (min-width: 1100px) { .hero-h1 { font-size: 52px; } }
.rot { display: inline-block; height: 1.3em; overflow: hidden; vertical-align: bottom; color: var(--me-ink); }
.rot-list { display: flex; flex-direction: column; animation: rot 12s steps(1, end) infinite; }
.rot-list span { display: block; height: 1.3em; white-space: nowrap; }
@keyframes rot { 0% { transform: translateY(0); } 25% { transform: translateY(-1.3em); } 50% { transform: translateY(-2.6em); } 75% { transform: translateY(-3.9em); } 100% { transform: translateY(0); } }
.hero-lede { margin: 14px 0 20px; max-width: 30em; font-size: 16px; color: var(--ink-muted); }
.scroll-cue { display: flex; align-items: center; gap: 10px; margin-top: 18px; font: 400 14px/1.4 var(--mono); color: var(--faint); }
.scroll-cue i { flex: none; width: 8px; height: 8px; background: var(--me); animation: blink 1s steps(1, end) infinite; }

/* 장면 속 탁구대 → 미니맵 (호모그래피로 움직이는 단일 SVG) */
.morph-table { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; overflow: visible; }
.court-fill-group { opacity: 0; will-change: opacity; }
.b-dot { opacity: 0; }
.b-dot.on { opacity: 1; }
.b-ripple { opacity: 0; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.b-ripple.ping { animation: dotPing .6s steps(4, end) forwards; }
@keyframes dotPing { 0% { opacity: 1; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.4); } }

.analysis-stage { position: absolute; inset: 64px 0 76px; z-index: 4; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.analysis-stage.active { pointer-events: auto; }
.analysis-wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px);
  display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: stretch; }
.minimap-card, .stats-panel { --f: var(--card); color: var(--ink); opacity: 0; will-change: opacity, transform; }
.minimap-card { padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; }
.minimap-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px;
  background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px) bottom / 100% 2px no-repeat; }
.minimap-title { font: 700 15px/1.4 var(--dot); }
.minimap-title small { display: block; margin-top: 4px; font: 400 12px/1.4 var(--mono); color: var(--faint); }
.minimap-counter { display: flex; align-items: baseline; gap: 4px; font: 400 14px/1 var(--mono); color: var(--faint); white-space: nowrap; }
.minimap-counter b { font: 400 32px/.9 var(--mono); color: var(--me-ink); }
.minimap-slot-wrap { display: flex; justify-content: center; align-items: center; padding: 10px 0; }
.minimap-slot-anchor { width: 232px; height: 400px; position: relative; }
.legend4 { display: grid; grid-template-columns: repeat(4, max-content); justify-content: space-between; gap: 6px 10px; padding-top: 12px;
  font: 600 14px/1.2 var(--body); color: var(--ink-muted);
  background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px) top / 100% 2px no-repeat; }
.legend4 span, .legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend4 i, .legend i { flex: none; width: 10px; height: 10px; }

.stats-panel { padding: clamp(18px, 2.4vw, 28px); display: flex; flex-direction: column; justify-content: space-between; }
.stats-top-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 14px;
  background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px) bottom / 100% 2px no-repeat; }
.stats-eyebrow { font: 400 12px/1.6 var(--game); color: var(--me-ink); }
.stats-head { margin: 6px 0 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.33; }
.stats-sub { margin: 0; font-size: 14px; color: var(--ink-muted); text-align: right; }
.metric-list { display: grid; }
.metric-item { padding: 12px 0; }
.metric-item + .metric-item { background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px) top / 100% 2px no-repeat; }
.metric-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.metric-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: 15px; font-weight: 600; }
.metric-idx { font: 400 14px/1 var(--mono); color: var(--me-ink); }
.metric-meta { font: 400 13px/1 var(--mono); color: var(--faint); }
.metric-val { display: flex; align-items: baseline; gap: 2px; font: 400 30px/.9 var(--mono); }
.metric-val small { font-size: 15px; color: var(--faint); }
.metric-track { height: 12px; background: var(--well); border: 2px solid var(--ink); }
.metric-fill { display: block; height: 100%; width: 0%; will-change: width; }
.stats-insight { margin-top: 12px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--night); color: #fff; font-size: 15px; opacity: 0; will-change: opacity, transform; }
.stats-insight b { margin-right: 8px; font: 400 12px/1 var(--game); color: var(--gold); }
.stats-insight .score { flex: none; font: 400 14px/1 var(--mono); color: var(--night-muted); }

.stage-steps { --f: var(--card); position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 6; display: flex; gap: 4px; padding: 6px; }
.stage-step-btn { --u: 2px; --bw: 0px; --f: transparent; --b: transparent; border: 0; padding: 10px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-muted); font: 700 14px/1 var(--dot); white-space: nowrap; }
.stage-step-btn b { font: 400 14px/1 var(--mono); color: var(--me-ink); }
.stage-step-btn.on { --f: var(--ink); --b: var(--ink); color: #fff; }
.stage-step-btn.on b { color: var(--me); }

/* ── 사실 띠 ── */
.facts { padding-block: clamp(40px, 5vw, 64px); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fact { --f: var(--card); padding: clamp(18px, 2.2vw, 26px); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.fact-tag { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; font: 400 14px/1.4 var(--mono); color: var(--faint); }
.fact-tag span { color: var(--me-ink); }
.fact b { display: block; font: 400 clamp(40px, 4.6vw, 60px)/1 var(--mono); }
.fact b small { font-size: .45em; margin-left: 4px; color: var(--me-ink); }
.fact b.game { font: 400 clamp(24px, 2.6vw, 34px)/1.4 var(--game); color: var(--gold-ink); }
.fact p { margin: 0; font-size: 15px; color: var(--ink-muted); }

/* ── 기능 벤토: 실제 앱 화면 ── */
.bento-sec { padding-block: clamp(24px, 3vw, 40px) clamp(56px, 7vw, 96px); }
.bento-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.bento-head .lead { margin: 0; justify-self: end; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { --f: var(--card); padding: clamp(20px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px;
  background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px) bottom / 100% 2px no-repeat; }
.where { margin: 0; font: 400 14px/1.4 var(--mono); color: var(--faint); }
.tile-num { flex: none; font: 400 12px/1 var(--game); color: var(--me-ink); }
.tile h3 { margin: 14px 0 0; font-size: 24px; line-height: 1.33; text-wrap: balance; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.shot { --b: var(--ink); --f: var(--lilac); padding: 2px; flex: 1; min-height: 320px; contain: size; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; clip-path: inherit; }
.t-bounce { grid-column: span 7; grid-row: span 2; }
.t-bounce .shot { contain: none; flex: none; min-height: 0; aspect-ratio: 660 / 1434; }
.t-course, .t-skill { grid-column: span 5; }
.t-rally, .t-insight { grid-column: span 6; }
.t-insight { --f: var(--night); color: #fff; }
.t-insight .tile-top { background-image: repeating-linear-gradient(90deg, var(--night-well) 0 4px, transparent 4px 8px); }
.t-insight .where { color: var(--night-muted); }
.t-insight .tile-num { color: var(--gold); }
.t-insight .shot { --b: var(--night-muted); }
.rx { margin: 0; padding: 14px 16px; background: var(--night-well); display: flex; gap: 10px; font-size: 16px; line-height: 1.6; }
.rx::before { content: "▶"; flex: none; color: var(--me); font-size: 14px; line-height: 1.8; }
.rx em { font-style: normal; color: var(--gold); font-family: var(--mono); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { --u: 2px; --f: var(--night-deep); padding: 6px 10px; font-size: 14px; font-weight: 600; color: var(--night-muted); }

/* ── 하이라이트 TOP 5 ── */
.top5 { padding-block: clamp(56px, 7vw, 96px); }
.top5-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.top5-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.top5-tags span { --b: var(--night-well); --f: var(--night-deep); display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; font: 700 15px/1 var(--dot); }
.top5-tags b { padding: 6px 8px; font: 400 16px/1 var(--mono); color: #fff; }
.rail-wrap { overflow-x: auto; scrollbar-width: none; margin-top: clamp(28px, 4vw, 48px); }
.rail-wrap::-webkit-scrollbar { display: none; }
.rail { list-style: none; margin-block: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.rail li { --b: var(--night-muted); --f: var(--night-deep); display: flex; flex-direction: column; min-width: 0; padding: 12px; }
.rail-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 10px; margin-bottom: 10px;
  background: repeating-linear-gradient(90deg, var(--night-well) 0 4px, transparent 4px 8px) bottom / 100% 2px no-repeat; }
.rank { font: 400 14px/1 var(--game); color: var(--gold); white-space: nowrap; }
.rank::before { content: "CLIP "; font-size: 12px; color: var(--night-muted); }
.rail li:first-child .rank::after { content: " ★"; font-family: var(--dot); }
.set { font: 400 14px/1 var(--mono); color: var(--night-muted); white-space: nowrap; }
.poster { position: relative; aspect-ratio: 2 / 3; background: var(--ink); }
.poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.p-meta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: baseline; padding: 8px 10px; background: var(--night-deep); }
.p-meta b { font: 400 24px/1 var(--mono); }
.p-meta b small { margin-left: 2px; font: 700 14px var(--dot); color: var(--me); }
.p-meta span { font: 400 14px/1 var(--mono); color: var(--night-muted); }

/* ── 과정 ── */
.steps { padding-block: clamp(56px, 7vw, 96px); }
.step-grid { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.step { --f: var(--card); padding: 18px 18px 24px; display: flex; flex-direction: column; gap: 12px; }
.step-n { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 12px; font: 400 14px/1 var(--game); color: var(--me-ink);
  background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px) bottom / 100% 2px no-repeat; }
.step-n::after { content: "RALLYLOG PROTOCOL"; font: 400 12px/1 var(--mono); color: var(--faint); }
.step .shot { flex: none; height: 380px; margin-block: 4px; }
.step .shot.scene img { object-position: center; image-rendering: pixelated; image-rendering: crisp-edges; }
.step h3 { margin: 4px 0 0; font-size: 20px; line-height: 1.4; }
.step p { margin: 0; color: var(--ink-muted); }

/* ── FAQ ── */
.faq { padding-block: clamp(56px, 7vw, 96px) 0; }
.faq-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.faq-list { --f: var(--card); color: var(--ink); padding: 4px clamp(16px, 2.4vw, 28px); }
.faq details + details { background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px) top / 100% 2px no-repeat; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; padding: 20px 0; font: 700 18px/1.5 var(--dot); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "▶"; flex: none; font-size: 14px; color: var(--faint); }
.faq details[open] summary::before { content: "▼"; color: var(--me-ink); }
.faq summary:hover::before { color: var(--me-ink); }
.faq details p { margin: 0; padding: 0 0 22px 26px; color: var(--ink-muted); max-width: 44em; }

/* ── 마지막 CTA ── */
.cta { padding-top: clamp(40px, 5vw, 64px); }
.cta-grid { --b: var(--night-muted); --f: var(--night-deep); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; padding: clamp(24px, 4vw, 48px); }
.cta .kicker { color: var(--gold); }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; justify-self: end; }
.cta .signup-link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 0; background: none; border: 0; color: #fff;
  font: 700 15px/1.4 var(--dot); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; text-align: left; }
.cta-img { display: block; width: 100%; height: clamp(130px, 22vw, 320px); margin-top: clamp(32px, 5vw, 56px); object-fit: cover; object-position: center 70%; image-rendering: pixelated; image-rendering: crisp-edges; }
.marks { display: inline-flex; gap: 4px; }
.marks i { display: grid; place-items: center; width: 30px; height: 30px; }
.marks .logo { width: 17px; height: 17px; }
.m-google { background: #fff; } .m-kakao { background: #FEE500; }
.m-apple { background: #000; color: #fff; box-shadow: inset 0 0 0 2px var(--night-muted); }
.m-apple .logo-apple { margin-top: -2px; }

.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }

/* ── 회원가입 창 ── */
.signup { width: min(400px, calc(100vw - 32px)); padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.signup::backdrop { background: rgba(28, 26, 51, .6); }
.signup-win { --f: var(--card); padding: 28px 24px 20px; }
.signup h2 { margin: 0 0 4px; font-size: 24px; line-height: 1.33; }
.signup p { margin: 0 0 20px; color: var(--ink-muted); font-size: 15px; }
.signup form { display: grid; gap: 10px; }
.auth { --u: 3px; height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; font: 600 16px/1 var(--body); cursor: pointer; }
.auth:active { transform: translateY(2px); }
.auth.google { --b: var(--ink); --f: #fff; color: #1F1F1F; }
.auth.kakao { --b: var(--ink); --f: #FEE500; color: #191600; }
.auth.apple { --b: #000; --f: #000; color: #fff; }
.auth.close { --b: var(--well); --f: var(--well); color: var(--ink); font-family: var(--dot); font-weight: 700; }
.auth .logo { flex: none; width: 20px; height: 20px; }
.auth .logo-apple { margin-top: -2px; }

/* ── 출시 준비중 토스트 ── */
.toast { --f: var(--card); position: fixed; left: 16px; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 200; margin-inline: auto;
  display: flex; align-items: center; gap: 12px; width: fit-content; max-width: calc(100vw - 32px); padding: 14px 18px; color: var(--ink);
  font: 600 15px/1.45 var(--body); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s steps(2, end), transform .2s steps(2, end); }
.toast.show { opacity: 1; transform: none; }
.toast b { flex: none; font: 700 15px/1 var(--dot); color: var(--me-ink); }

/* ── 반응형 ── */
@media (max-width: 980px) {
  .links > a:not(.btn) { display: none; }
  .burger { display: flex; }
  .hud-right { display: none; }
  .bento-head, .faq-layout, .cta-grid { grid-template-columns: minmax(0, 1fr); }
  .bento-head .lead, .cta-actions { justify-self: start; }
  .rail { display: flex; width: max-content; }
  .rail li { width: 220px; flex: none; }
  .t-bounce, .t-course, .t-skill, .t-rally, .t-insight { grid-column: span 12; grid-row: auto; }
  .t-bounce .shot { aspect-ratio: auto; height: 520px; contain: size; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-grid { grid-template-columns: minmax(0, 1fr); }
  .analysis-wrap { grid-template-columns: minmax(0, 1fr); gap: 10px; max-height: calc(100vh - 220px); overflow-y: auto; padding-block: 4px; }
  .minimap-card { padding: 12px 14px; }
  .minimap-slot-anchor { width: 148px; height: 255px; }
  .stats-panel { padding: 14px 16px; }
  .metric-item { padding: 8px 0; }
  .metric-val { font-size: 22px; }
  .stats-sub, .stats-insight { display: none; }
}
@media (max-width: 640px) {
  .lang-switch a { min-width: 30px; padding: 0 6px; }
  .links { gap: 8px; }
  .links .btn { padding: 0 10px; white-space: nowrap; }
  .hero-h1 { font-size: 30px; }
  .brand { gap: 6px; font-size: 10px; }
  .brand img { width: 28px; height: 28px; }
  .burger { width: 40px; padding: 11px 9px; }
  .hud-inner { height: 38px; }
  .hud-spec { display: none; }
  .hero-img { height: 60%; --pos-x: .68; }
  .hero-copy { padding-bottom: 76px; }
  .hero-editorial { padding: 18px 18px 20px; }
  .kicker { margin-bottom: 10px; }
  .hero-lede { margin: 10px 0 16px; font-size: 15px; }
  .scroll-cue { display: none; }
  .btns .btn { flex: 1 1 100%; min-width: 0; min-height: 48px; padding: 0 12px; gap: 8px; font-size: 15px; white-space: nowrap; }
  .btns { gap: 10px; }
  .cta-actions, .cta-actions .btns { width: 100%; }
  .cta-actions .btns .btn { flex-basis: 100%; }
  .toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .stage-steps { bottom: calc(10px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); justify-content: space-between; }
  .stage-step-btn { flex: 1; justify-content: center; padding: 10px 4px; gap: 5px; }
  .ss-long { display: none; }
  .analysis-stage { inset: 52px 0 70px; }
  .analysis-wrap { max-height: calc(100svh - 68px - 52px - 70px); }
  .minimap-head { padding-bottom: 8px; }
  .minimap-counter b { font-size: 26px; }
  .minimap-slot-wrap { padding: 6px 0; }
  .minimap-slot-anchor { width: 116px; height: 200px; }
  .legend4 { grid-template-columns: repeat(2, max-content); justify-content: start; gap: 6px 20px; padding-top: 8px; }
  .stats-top-row { padding-bottom: 10px; }
  .stats-head { font-size: 18px; }
  .metric-top { margin-bottom: 6px; }
  .metric-name { font-size: 14px; }
  .metric-meta { display: none; }
  .metric-val { font-size: 20px; }
  .metric-track { height: 10px; }
  .sec-bar > span:not(.idx) { display: none; }
  .fact { gap: 10px; }
  .fact b { font-size: 40px; }
  .fact p { font-size: 14px; }
  .tile { padding: 20px 16px; }
  .tile h3 { font-size: 20px; }
  .shot, .t-bounce .shot { height: 440px; min-height: 0; flex: none; }
  .top5-tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .top5-tags span { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; font-size: 14px; }
  .rail-wrap { scroll-snap-type: x mandatory; scroll-padding-inline: 16px; }
  .rail li { width: 64vw; max-width: 240px; scroll-snap-align: start; }
  .step .shot { height: 360px; }
  .faq summary { padding: 18px 0; font-size: 16px; }
  .cta-grid { padding: 22px 18px; gap: 24px; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 370px) {
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rot-list, .hud-tag i, .scroll-cue i { animation: none; }
  .b-ripple.ping { animation: none; }
  .toast { transition: none; }
  .btn:active, .auth:active { transform: none; }
}
