/* ヴォルターズ予想（プロトタイプ）
   ─────────────────────────────────────────────
   ブランドの決まり（ヴォルターズ検定と共通）
     モノクロ地に赤をワンポイント／角丸なし／欧文の数字は Anton／
     ロゴタイプ「VOLTERS」は他書体で組まない／ぼるたんは白地の上にだけ置く
   このアプリの演出
     阿蘇と水（チーム名の由来 Water × Volcano）。ポイント＝水位、的中＝噴火、選択＝水面の波紋。
     選手はふだんモノクロで、予想した選手にだけ色が灯る。
   ───────────────────────────────────────────── */

@font-face {
  font-family: 'Anton';
  src: url('fonts/anton-subset.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #c80012;          /* PANTONE 199C */
  --red-hi: #e50012;       /* PANTONE 192C */
  --red-deep: #680000;     /* PANTONE 7421C */
  --navy: #050051;         /* PANTONE 2765C */
  --water: #14218a;        /* ネイビーを明るくした水の色。そのままのネイビーは黒地に沈む */
  --water-hi: #3549d6;
  --bg: #08080a;
  --ink-1: #101013;
  --ink-2: #17171b;
  --ink-3: #202026;
  --line: #2a2a31;
  --line-hi: #44444d;
  --fg: #ffffff;
  --fg-2: #b4b4bb;
  --fg-3: #8e8e97;      /* 背景 #08080a に対して 6.1:1。以前の #74747d は 4.3:1 で WCAG AA 未達 */
  --display: 'Anton', 'Hiragino Sans', sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: 20px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: #040405; color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button { font: inherit; color: inherit; border: 0; margin: 0; padding: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.disp { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── PCで開いたときの舞台 ─────────────── */
.stage { display: none; }
@media (min-width: 980px) {
  .stage { display: block; position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
  .stage .w { position: absolute; font-family: var(--display); font-size: 21vw; line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07); white-space: nowrap; }
  .stage .w1 { left: -2vw; top: 4vh; }
  .stage .w2 { right: -3vw; bottom: 2vh; }
  .stage .cap { position: absolute; left: 40px; bottom: 40px; max-width: 260px; font-size: 12px; line-height: 1.8; color: var(--fg-3); letter-spacing: 0.08em; }
  .stage .cap b { display: block; color: var(--fg); font-size: 15px; letter-spacing: 0.1em; margin-bottom: 6px; }
  .stage .glow { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(200, 0, 18, 0.14), transparent); }
}

/* ── アプリの器 ───────────────────────── */
#app {
  position: relative;
  isolation: isolate;
  max-width: 430px;
  margin: 0 auto;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}
@media (min-width: 600px) { #app { box-shadow: 0 0 0 1px var(--line), 0 40px 120px rgba(0, 0, 0, 0.6); } }
/* フィルムの粒子。画面全体に薄く乗せて、黒ベタをデジタルっぽく見せない */
#app::after {
  content: ''; position: absolute; inset: -50%; z-index: 60; pointer-events: none;
  background: url('img/grain.png'); opacity: 0.07; mix-blend-mode: overlay;
  animation: grain 1.2s steps(5) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* 入場の振り付け。画面を開いたときだけ。その場の更新（.static）では動かさない */
.rv { animation: rv 0.9s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 70ms + 60ms); }
@keyframes rv { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rv-mask { display: inline-block; animation: rvmask 1.1s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 70ms + 60ms); }
@keyframes rvmask { from { clip-path: inset(0 0 100% 0); transform: translateY(24px); } to { clip-path: inset(0 0 0 0); transform: none; } }
#app.static .rv, #app.static .rv-mask { animation: none; }

/* ── 帯とヘッダー ─────────────────────── */
.proto { position: relative; z-index: 6; flex-shrink: 0; display: flex; justify-content: center; gap: 10px; padding: 5px 16px; padding-top: max(5px, env(safe-area-inset-top)); background: #fff; color: #0a0a0b; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; }
.proto b { font-family: var(--display); font-weight: 400; letter-spacing: 0.16em; color: var(--red); }
.hdr { position: relative; z-index: 5; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 var(--gutter); background: rgba(8, 8, 10, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 26px; height: 24px; object-fit: contain; }
.brand i { width: 1px; height: 18px; background: var(--line-hi); }
.brand b { font-size: 15px; font-weight: 900; letter-spacing: 0.12em; }
.wallet { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-hi); }
.wallet svg { color: var(--water-hi); }
.wallet b { font-family: var(--display); font-weight: 400; font-size: 16px; letter-spacing: 0.04em; }
.wallet small { font-family: var(--display); font-size: 11px; color: var(--fg-2); letter-spacing: 0.12em; }

/* ── スクロール領域と共通部品 ─────────── */
.main { position: relative; z-index: 1; flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior: contain; }
.main::-webkit-scrollbar { display: none; }
.pad { padding: 0 var(--gutter); }
.block { padding: 36px var(--gutter) 0; }
.eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.eyebrow .kk { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.eyebrow .k { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 13px; letter-spacing: 0.22em; white-space: nowrap; }
.eyebrow .ja { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--fg-2); white-space: nowrap; }
.eyebrow .k::before { content: ''; width: 18px; height: 2px; background: var(--red-hi); }
.eyebrow .m { font-size: 11px; color: var(--fg-3); letter-spacing: 0.08em; }
.eyebrow a.m { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg-2); font-weight: 700; white-space: nowrap; }
.note { font-size: 11px; line-height: 1.7; color: var(--fg-3); }
.pulse { width: 6px; height: 6px; background: var(--red-hi); display: inline-block; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 10px; background: #fff; color: #0a0a0b; font-size: 11px; font-weight: 900; letter-spacing: 0.14em; }
.chip.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-hi); }
.chip.red { background: var(--red-hi); color: #fff; }

.btn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 18px; background: var(--red-hi); color: #fff; font-size: 15px; font-weight: 900; letter-spacing: 0.12em; transition: background 0.2s; }
.btn:active { background: var(--red); }
.btn.sub { background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-hi); }
.btn.off { background: var(--ink-3); color: var(--fg-3); cursor: default; }
.btn-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
/* 主導線の光沢。押したくなる程度に、4秒に1回だけ */
.shine::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent); transform: skewX(-20deg); animation: shine 4s var(--ease) 1.2s infinite; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* ── 阿蘇の稜線・噴煙・噴火 ───────────── */
.aso { position: absolute; left: 0; right: 0; pointer-events: none; }
.aso svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.smoke { position: absolute; left: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: rgba(180, 180, 187, 0.28); opacity: 0; filter: blur(1px); animation: smoke 3.6s ease-out infinite; }
.smoke.s2 { animation-delay: 1.2s; }
.smoke.s3 { animation-delay: 2.4s; }
@keyframes smoke { 0% { opacity: 0; transform: translate(0, 0) scale(0.5); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(18px, -44px) scale(2.6); } }
.glow { animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
.crater { position: absolute; left: calc(50% - 30px); width: 60px; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(229, 0, 18, 0.95), rgba(229, 0, 18, 0)); }
.ep { position: absolute; left: calc(50% - 3px); width: 6px; height: 6px; opacity: 0; }
.ep1 { background: #e50012; animation: ep1 1.6s cubic-bezier(.2,.7,.4,1) .35s both; }
.ep2 { background: #fff; animation: ep2 1.6s cubic-bezier(.2,.7,.4,1) .4s both; }
.ep3 { background: #e50012; animation: ep3 1.6s cubic-bezier(.2,.7,.4,1) .45s both; }
.ep4 { background: #c80012; animation: ep4 1.6s cubic-bezier(.2,.7,.4,1) .3s both; }
.ep5 { background: #fff; animation: ep5 1.6s cubic-bezier(.2,.7,.4,1) .35s both; }
.ep6 { background: #e50012; animation: ep6 1.6s cubic-bezier(.2,.7,.4,1) .4s both; }
.ep7 { background: #c80012; animation: ep7 1.6s cubic-bezier(.2,.7,.4,1) .45s both; }
.ep8 { background: #e50012; animation: ep8 1.6s cubic-bezier(.2,.7,.4,1) .3s both; }
.ep9 { background: #fff; animation: ep9 1.6s cubic-bezier(.2,.7,.4,1) .35s both; }
.ep10 { background: #e50012; animation: ep10 1.6s cubic-bezier(.2,.7,.4,1) .4s both; }
.ep11 { background: #c80012; animation: ep11 1.6s cubic-bezier(.2,.7,.4,1) .45s both; }
.ep12 { background: #e50012; animation: ep12 1.6s cubic-bezier(.2,.7,.4,1) .3s both; }
@keyframes ep1 { 0% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-56px, -78px) scale(.3); } }
@keyframes ep2 { 0% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-34px, -106px) scale(.3); } }
@keyframes ep3 { 0% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-12px, -120px) scale(.3); } }
@keyframes ep4 { 0% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -114px) scale(.3); } }
@keyframes ep5 { 0% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(32px, -102px) scale(.3); } }
@keyframes ep6 { 0% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(54px, -80px) scale(.3); } }
@keyframes ep7 { 0% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-76px, -48px) scale(.3); } }
@keyframes ep8 { 0% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(76px, -52px) scale(.3); } }
@keyframes ep9 { 0% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-22px, -74px) scale(.3); } }
@keyframes ep10 { 0% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(22px, -72px) scale(.3); } }
@keyframes ep11 { 0% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-44px, -124px) scale(.3); } }
@keyframes ep12 { 0% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(44px, -128px) scale(.3); } }

/* ── 水面（映り込み・きらめき） ───────── */
.water-plane { position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; background: linear-gradient(180deg, rgba(20, 33, 138, 0.55), rgba(5, 0, 81, 0.25) 45%, rgba(8, 8, 10, 0) 100%); }
.water-plane::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 7px); mask-image: linear-gradient(180deg, #000, transparent 80%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); animation: ripples 5s linear infinite; }
@keyframes ripples { from { background-position: 0 0; } to { background-position: 0 28px; } }
.reflect { transform: scaleY(-1); opacity: 0.34; filter: blur(1.2px) saturate(0.6); mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent 55%); -webkit-mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent 55%); }
.wobble { animation: wobble 4s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: scaleY(-1) skewX(0deg); } 50% { transform: scaleY(-1) skewX(1.4deg); } }

/* ── 01 ホーム：ヒーロー ─────────────── */
.hero { position: relative; height: 460px; overflow: hidden; background: radial-gradient(90% 55% at 60% 78%, rgba(200, 0, 18, 0.32), transparent 70%), linear-gradient(180deg, #0c0c10, #08080a 70%); }
.hero-num { position: absolute; left: 50%; top: 74px; transform: translate(-50%, calc(var(--sy, 0) * 0.25px)); font-family: var(--display); font-size: 150px; line-height: 0.8; letter-spacing: -0.01em; color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.26); white-space: nowrap; }
.hero .aso { bottom: 100px; height: 86px; }
.hero .water-plane { height: 100px; }
.hero-fig { position: absolute; left: 50%; bottom: 100px; height: 300px; transform: translate(-8%, calc(var(--sy, 0) * -0.12px)); }
.hero-fig img { height: 100%; width: auto; }
.hero-fig .reflect { position: absolute; top: 100%; left: 0; height: 100%; }
.hero-fig .fig { animation: figin 1.4s var(--ease-out) 0.15s both; }
@keyframes figin { from { opacity: 0; transform: translateY(40px) scale(0.96); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
#app.static .hero-fig .fig { animation: none; }
.hero-top { position: absolute; left: var(--gutter); right: var(--gutter); top: 20px; display: flex; justify-content: space-between; align-items: center; }
.hero-top .m { font-family: var(--display); font-size: 11px; letter-spacing: 0.2em; color: var(--fg-2); }
.hero-side { position: absolute; left: var(--gutter); top: 196px; display: flex; flex-direction: column; gap: 4px; }
.hero-side .day { font-family: var(--display); font-size: 15px; letter-spacing: 0.24em; color: var(--fg-2); }
.hero-side .time { font-family: var(--display); font-size: 50px; line-height: 0.9; }
.hero-side .tip { font-family: var(--display); font-size: 11px; letter-spacing: 0.3em; color: var(--red-hi); }
.hero-tag { position: absolute; right: var(--gutter); top: 176px; max-height: 176px; overflow: hidden; writing-mode: vertical-rl; display: flex; gap: 10px; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: 0.24em; color: var(--fg-2); }
.hero-tag b { font-family: var(--display); font-weight: 400; font-size: 13px; color: var(--fg); letter-spacing: 0.16em; }
.hero-tag i { width: 1px; height: 28px; background: var(--line-hi); }
.hero-bottom { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 12px; }
.hero-bottom .team { font-size: 15px; font-weight: 900; letter-spacing: 0.06em; line-height: 1.35; }
.hero-bottom .team small { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--fg-3); letter-spacing: 0.1em; }
.hero-bottom .vs { font-family: var(--display); font-size: 18px; letter-spacing: 0.16em; color: var(--red-hi); padding-bottom: 18px; }
.hero-bottom .away { text-align: right; color: var(--fg-2); }

.countdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.countdown > div { padding: 12px 0 10px; text-align: center; }
.countdown > div + div { border-left: 1px solid var(--line); }
.countdown b { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { display: block; margin-top: 6px; font-family: var(--display); font-size: 11px; letter-spacing: 0.3em; color: var(--fg-3); }
.cd-head { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter) 8px; font-size: 12px; font-weight: 700; color: var(--fg-2); letter-spacing: 0.1em; }
.cd-head span { display: flex; align-items: center; gap: 8px; }
.cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; min-height: 78px; margin: 14px var(--gutter) 0; padding: 0 22px; background: var(--red-hi); color: #fff; }
.cta b { display: block; font-size: 22px; font-weight: 900; letter-spacing: 0.14em; }
.cta small { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; opacity: 0.88; }
.cta .arrow { width: 44px; height: 44px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); transition: transform 0.3s var(--ease); }
.cta:active .arrow { transform: translateX(4px); }
.cta.done { background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-hi); }
.cta.done .faces { display: flex; }
.cta .faces { display: none; margin-top: 10px; gap: 3px; }
.cta .faces img { width: 26px; height: 26px; object-fit: cover; }

/* ── 水位タンク ───────────────────────── */
.tank { position: relative; height: 76px; overflow: hidden; background: #0b0b12; box-shadow: inset 0 0 0 1px var(--line-hi); }
.tank.tall { height: 180px; }
.water { position: absolute; left: 1px; right: 1px; bottom: 1px; max-height: calc(100% - 2px); background: linear-gradient(180deg, var(--water), #0c1466); transition: height 0.9s var(--ease-out); }
.water.fill { animation: fill 1.6s var(--ease-out) 0.3s both; }
@keyframes fill { from { height: 0; } }
#app.static .water.fill { animation: none; }
.water svg { position: absolute; left: 0; bottom: calc(100% - 1px); width: 200%; display: block; }
.wave { height: 9px; animation: wave 6s linear infinite; }
.wave2 { height: 13px; opacity: 0.5; animation: wave 9s linear infinite reverse; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.bubble { position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); opacity: 0; animation: bubble 4.5s ease-in infinite; }
@keyframes bubble { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 90% { opacity: 0.6; } 100% { opacity: 0; transform: translateY(-64px); } }
.tank.tall .bubble { animation-name: bubble-tall; }
@keyframes bubble-tall { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 90% { opacity: 0.6; } 100% { opacity: 0; transform: translateY(-120px); } }
.level { position: absolute; left: 12px; font-family: var(--display); font-size: 11px; letter-spacing: 0.2em; color: var(--fg-2); }
.level b { font-weight: 400; font-size: 15px; color: #fff; letter-spacing: 0.04em; margin-left: 4px; }
.tick { position: absolute; left: 1px; right: 1px; border-top: 1px dashed rgba(255, 255, 255, 0.18); }
.tick span { position: absolute; right: 10px; top: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--fg-3); }
.tick.ok { border-top-color: rgba(255, 255, 255, 0.55); }
.tick.ok span { color: #fff; }
.tick.ok span::after { content: '交換OK'; margin-left: 8px; padding: 1px 5px; background: #fff; color: var(--water); font-size: 10px; letter-spacing: 0.08em; }
.scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; color: var(--fg-3); letter-spacing: 0.06em; }
.balance { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.balance .big { font-family: var(--display); font-size: 56px; line-height: 0.86; letter-spacing: 0; }
.balance .big small { font-size: 20px; margin-left: 6px; color: var(--water-hi); letter-spacing: 0.1em; }
.balance .side { text-align: right; font-size: 11px; color: var(--fg-3); line-height: 1.6; letter-spacing: 0.06em; }
.balance .side b { display: block; font-size: 15px; color: #fff; letter-spacing: 0.04em; }

/* ── みんなの予想（ホーム） ───────────── */
.hots { border-top: 1px solid var(--line); }
.hot { display: grid; grid-template-columns: 34px 52px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px; row-gap: 10px; padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.hot .q { font-family: var(--display); font-size: 15px; letter-spacing: 0.08em; color: var(--fg-2); }
.hot .ph { position: relative; width: 52px; height: 52px; }
.hot .ph img { width: 100%; height: 100%; object-fit: cover; }
.hot .ph b { position: absolute; left: 0; top: 0; width: 18px; height: 18px; display: grid; place-items: center; background: var(--red-hi); font-family: var(--display); font-weight: 400; font-size: 11px; }
.hot .who { min-width: 0; }
.hot .who > b { display: block; font-size: 15px; font-weight: 900; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot .subs { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 5px; }
.hot .subs span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--fg-3); white-space: nowrap; }
.hot .subs i { width: 13px; height: 13px; display: grid; place-items: center; font-family: var(--display); font-style: normal; font-size: 10px; background: var(--ink-3); color: var(--fg-2); }
.hot .subs em { font-style: normal; font-family: var(--display); color: var(--fg-2); letter-spacing: 0.04em; }
.hot .pc { text-align: right; }
.hot .pc b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; }
.hot .pc small { font-family: var(--display); font-size: 12px; color: var(--fg-2); margin-left: 1px; }
.hot .hbar { grid-column: 2 / -1; display: flex; gap: 2px; height: 3px; background: var(--ink-2); }
.hbar i, .crowd-bar i { display: block; height: 100%; }
.hbar .s1, .crowd-bar .s1 { background: var(--red-hi); }
.hbar .s2, .crowd-bar .s2 { background: #fff; }
.hbar .s3, .crowd-bar .s3 { background: var(--fg-3); }
.crowd-bar .s0 { background: var(--ink-3); }

/* ── みんなの予想（予想画面の一覧の上） ─ */
.crowd { padding: 14px var(--gutter) 2px; }
.crowd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.crowd-head .k { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 900; letter-spacing: 0.1em; }
.crowd-head .k::before { content: ''; width: 14px; height: 2px; background: var(--red-hi); }
.sort { min-height: 44px; padding: 0 12px; box-shadow: inset 0 0 0 1px var(--line-hi); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--fg-2); transition: background 0.2s, color 0.2s; }
.sort[aria-pressed="true"] { background: #fff; color: #0a0a0b; box-shadow: none; }
.crowd-bar { display: flex; gap: 2px; height: 8px; margin-top: 10px; }
.crowd-bar i { transition: width 0.6s var(--ease-out); }
.crowd-top { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.crowd-top li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 6px; background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); }
.crowd-top li::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; }
.crowd-top li.s1::before { background: var(--red-hi); }
.crowd-top li.s2::before { background: #fff; }
.crowd-top li.s3::before { background: var(--fg-3); }
.crowd-top img { grid-row: span 2; width: 34px; height: 34px; object-fit: cover; }
.crowd-top .r { position: absolute; left: 6px; top: 6px; width: 14px; height: 14px; display: grid; place-items: center; background: rgba(8, 8, 10, 0.85); font-family: var(--display); font-size: 10px; }
.crowd-top .w { min-width: 0; }
.crowd-top .w b { font-family: var(--display); font-weight: 400; font-size: 13px; letter-spacing: 0.04em; }
.crowd-top .w small { display: block; font-size: 10px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crowd-top em { font-style: normal; font-family: var(--display); font-size: 16px; line-height: 1; }
.crowd-top em small { font-size: 10px; color: var(--fg-2); }
.card .rank { position: absolute; z-index: 2; left: 10px; top: 54px; padding: 2px 6px; font-size: 11px; font-weight: 900; letter-spacing: 0.06em; background: #fff; color: #0a0a0b; }
.card .rank.r1 { background: var(--red-hi); color: #fff; }
.card .rank[hidden] { display: none; }

/* ── 日程 ─────────────────────────────── */
.sched { border-top: 1px solid var(--line); }
.game { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.game.next::before { content: ''; position: absolute; left: calc(var(--gutter) * -1); top: 12px; bottom: 12px; width: 3px; background: var(--red-hi); }
.game .dt b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; }
.game .dt small { display: block; margin-top: 4px; font-family: var(--display); font-size: 11px; letter-spacing: 0.24em; color: var(--fg-3); }
.game.next .dt small { color: var(--red-hi); }
.game .vsn { min-width: 0; }
.game .vsn em { display: inline-block; padding: 1px 6px; font-family: var(--display); font-style: normal; font-size: 10px; letter-spacing: 0.18em; vertical-align: 2px; }
.game .vsn em.home { background: #fff; color: #0a0a0b; }
.game .vsn em.away { box-shadow: inset 0 0 0 1px var(--line-hi); color: var(--fg-2); }
.game .vsn b { margin-left: 8px; font-size: 15px; font-weight: 900; letter-spacing: 0.04em; }
.game .vsn small { display: block; margin-top: 5px; font-size: 11px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game .tm { text-align: right; }
.game .tm b { display: block; font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1; }
.game .tm small { display: block; margin-top: 5px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--fg-3); }
.game.next .tm small { color: var(--red-hi); }

/* ── ロスターの帯（流れる） ───────────── */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 8px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mini { position: relative; flex: 0 0 104px; height: 138px; overflow: hidden; background: var(--ink-2); }
.mini img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(0.86); transition: filter 0.5s var(--ease); }
.mini:hover img { filter: none; }
.mini::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(8, 8, 10, 0.85)); }
.mini b { position: absolute; z-index: 1; left: 8px; bottom: 22px; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1; }
.mini span { position: absolute; z-index: 1; left: 8px; right: 6px; bottom: 7px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── ぼるたんの白帯 ───────────────────── */
.band { display: flex; align-items: center; gap: 16px; margin-top: 36px; padding: 16px var(--gutter); background: #fff; color: #0a0a0b; border-bottom: 4px solid var(--red); }
.band img { flex: 0 0 78px; width: 78px; height: 106px; object-fit: contain; }
.band .t { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 900; letter-spacing: 0.16em; color: var(--red); }
.band .t::before { content: ''; width: 16px; height: 2px; background: var(--red); }
.band p { margin-top: 8px; font-size: 14px; font-weight: 700; line-height: 1.65; }

/* ── 遊び方 ───────────────────────────── */
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step b { grid-row: span 2; font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 0.9; color: transparent; -webkit-text-stroke: 1px var(--fg-2); }
.step strong { font-size: 16px; font-weight: 900; letter-spacing: 0.06em; }
.step span { font-size: 12px; color: var(--fg-2); line-height: 1.6; }
.foot { padding: 32px var(--gutter) 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.foot img { width: 30px; height: 28px; object-fit: contain; opacity: 0.6; }

/* ── 02 予想する ──────────────────────── */
.pred-head { position: relative; z-index: 2; flex-shrink: 0; padding: 12px var(--gutter) 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.pred-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: 0.08em; color: var(--fg-2); }
.pred-meta b { font-family: var(--display); font-weight: 400; font-size: 13px; color: #fff; letter-spacing: 0.08em; }
.rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.slot { position: relative; height: 56px; transition: height 0.35s var(--ease-out); overflow: hidden; background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); display: flex; align-items: flex-end; justify-content: center; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8, 8, 10, 0.9)); }
.slot small { position: relative; z-index: 1; padding-bottom: 6px; font-family: var(--display); font-size: 12px; letter-spacing: 0.14em; color: var(--fg-2); }
.slot.empty { box-shadow: inset 0 0 0 1px var(--line-hi); background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255, 255, 255, 0.03) 6px 7px), var(--ink-1); align-items: center; }
.slot.empty::after { display: none; }
.slot.empty small { padding: 0; }
.slot[aria-selected="true"] { box-shadow: inset 0 0 0 2px var(--red-hi); }
.slot[aria-selected="true"] small { color: #fff; }
.slot[aria-selected="true"]::before { content: ''; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red-hi); }
.question { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 12px; transition: margin 0.35s var(--ease-out); }
.question .qn { transition: font-size 0.35s var(--ease-out); font-family: var(--display); font-size: 52px; line-height: 0.82; color: transparent; -webkit-text-stroke: 1.2px #fff; }
.question .qn.top { font-size: 34px; line-height: 0.9; }
.question .tag { display: flex; gap: 8px; align-items: center; font-family: var(--display); font-size: 11px; letter-spacing: 0.18em; color: var(--red-hi); }
.question .tag span { color: var(--fg-3); }
.question h1 { margin-top: 6px; font-size: 18px; font-weight: 900; line-height: 1.45; letter-spacing: 0.02em; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px var(--gutter) 20px; }
.card { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--ink-2); text-align: left; box-shadow: inset 0 0 0 1px var(--line); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.card .mono { filter: grayscale(1) contrast(1.12) brightness(0.78); }
.card .color { clip-path: circle(0% at var(--x, 50%) var(--y, 50%)); }
.card[aria-pressed="true"] .color { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }
.card.just .color { animation: colorin 0.9s var(--ease-out) both; }
@keyframes colorin { from { clip-path: circle(0% at var(--x, 50%) var(--y, 50%)); } to { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); } }
.card:active img { transform: scale(1.03); }
.card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 8, 10, 0.25) 0%, transparent 28%, transparent 48%, rgba(8, 8, 10, 0.92) 100%); }
.card .no { position: absolute; left: 10px; top: 8px; font-family: var(--display); font-size: 44px; line-height: 0.9; color: transparent; -webkit-text-stroke: 1.2px #fff; }
.card[aria-pressed="true"] .no { color: #fff; -webkit-text-stroke: 0; }
.card .meta { position: absolute; left: 10px; right: 10px; bottom: 30px; }
.card .meta b { display: block; font-size: 14px; font-weight: 900; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta small { display: block; margin-top: 2px; font-family: var(--display); font-size: 11px; letter-spacing: 0.16em; color: var(--fg-2); }
.card .pct { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px; }
.card .pct i { flex: 1; height: 2px; background: rgba(255, 255, 255, 0.18); }
.card .pct i em { display: block; height: 100%; background: #fff; transition: width 0.6s var(--ease-out); }
.card .pct b { font-family: var(--display); font-weight: 400; font-size: 14px; letter-spacing: 0.04em; min-width: 36px; text-align: right; }
.card .pct b small { font-size: 10px; }
/* 枠は写真より手前に描く（box-shadow だけだと写真の下に隠れる） */
.card::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); transition: box-shadow 0.35s var(--ease-out); }
.card[aria-pressed="true"]::after { box-shadow: inset 0 0 0 3px var(--red-hi); }
.card .check, .card .meta, .card .pct, .card .no { z-index: 2; }
.card .meta small:empty { display: none; }
.card[aria-pressed="true"] .pct i em { background: var(--red-hi); }
.card .check { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; display: grid; place-items: center; background: var(--red-hi); transform: scale(0); transition: transform 0.4s var(--ease-out); }
.card[aria-pressed="true"] .check { transform: scale(1); }
.ripple { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid rgba(255, 255, 255, 0.8); border-radius: 50%; opacity: 0; pointer-events: none; animation: ripple 1s ease-out both; }
.ripple.r2 { animation-delay: 0.16s; }
.ripple.r3 { animation-delay: 0.32s; border-width: 1px; }
@keyframes ripple { 0% { opacity: 1; transform: scale(0.4); } 100% { opacity: 0; transform: scale(9); } }
.submit-bar { position: relative; z-index: 3; flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 10px var(--gutter); background: rgba(16, 16, 19, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.submit-bar .count small { display: block; font-size: 11px; letter-spacing: 0.12em; color: var(--fg-3); }
.submit-bar .count b { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; }
.submit-bar .count b small { display: inline; font-size: 14px; color: var(--fg-3); letter-spacing: 0; }
.submit-bar .btn { flex: 1; }

/* 予想完了 */
.overlay { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; background: var(--bg); animation: ovin 0.5s var(--ease-out) both; }
@keyframes ovin { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.overlay .hero-w { position: relative; display: flex; flex-direction: column; align-items: center; padding: 34px 24px 22px; padding-top: max(34px, calc(env(safe-area-inset-top) + 20px)); background: #fff; color: #0a0a0b; text-align: center; border-bottom: 4px solid var(--red); }
.overlay .hero-w img { width: 108px; height: 148px; object-fit: contain; animation: hop 0.8s var(--ease-out) 0.2s both; }
@keyframes hop { 0% { transform: translateY(20px) scale(0.9); opacity: 0; } 60% { transform: translateY(-6px) scale(1.02); opacity: 1; } 100% { transform: none; } }
.overlay .hero-w .t { margin-top: 12px; font-family: var(--display); font-size: 12px; letter-spacing: 0.3em; color: var(--red); }
.overlay .hero-w b { margin-top: 4px; font-size: 26px; font-weight: 900; letter-spacing: 0.1em; }
.overlay .hero-w p { margin-top: 6px; font-size: 12px; line-height: 1.7; color: #4a4a52; }
.lineup { flex: 1; overflow-y: auto; padding: 20px var(--gutter); }
.lineup-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.lu { position: relative; aspect-ratio: 3 / 4.4; overflow: hidden; background: var(--ink-2); animation: rv 0.8s var(--ease-out) both; animation-delay: calc(var(--d) * 90ms + 300ms); }
.lu img { width: 100%; height: 100%; object-fit: cover; }
.lu::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 8, 10, 0.92)); }
.lu small { position: absolute; z-index: 1; left: 0; right: 0; top: 0; padding: 4px 0; background: var(--red-hi); text-align: center; font-family: var(--display); font-size: 11px; letter-spacing: 0.14em; }
.lu b { position: absolute; z-index: 1; left: 0; right: 0; bottom: 6px; text-align: center; font-family: var(--display); font-weight: 400; font-size: 18px; }
.lineup-list { margin-top: 14px; border-top: 1px solid var(--line); }
.lineup-list div { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.lineup-list small { flex: 0 0 34px; font-family: var(--display); font-size: 11px; letter-spacing: 0.14em; color: var(--fg-3); }
.lineup-list b { flex: 0 0 40px; font-family: var(--display); font-weight: 400; font-size: 16px; }
.overlay .foot-btns { padding: 12px var(--gutter); padding-bottom: max(28px, env(safe-area-inset-bottom)); }

/* ── 03 結果 ──────────────────────────── */
.seg { display: grid; padding: 3px; background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { position: relative; min-height: 44px; color: var(--fg-2); font-size: 12px; font-weight: 900; letter-spacing: 0.12em; transition: color 0.3s; }
.seg button[aria-selected="true"] { background: #fff; color: #0a0a0b; }
.score { position: relative; height: 300px; overflow: hidden; background: radial-gradient(70% 50% at 50% 88%, rgba(200, 0, 18, 0.28), transparent 70%); }
.score .aso { bottom: 62px; height: 92px; }
.score .water-plane { height: 62px; }
.score .crater { top: 14px; }
.score .ep { top: 22px; }
.score .smoke { top: 18px; }
.score-in { position: relative; z-index: 1; padding-top: 22px; text-align: center; }
.board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; margin-top: 14px; padding: 0 var(--gutter); }
.board b { display: block; font-family: var(--display); font-weight: 400; font-size: 92px; line-height: 0.82; font-variant-numeric: tabular-nums; }
.board small { display: block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.board .away { color: var(--fg-3); }
.board .away small { color: var(--fg-3); }
.board .dash { width: 20px; height: 2px; background: var(--line-hi); }
.status { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px; background: #fff; color: #0a0a0b; font-family: var(--display); font-size: 12px; letter-spacing: 0.24em; }
.status.live { background: var(--red-hi); color: #fff; }
.status.live .pulse { background: #fff; }
.mvp { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); min-height: 236px; margin: 0 var(--gutter); overflow: hidden; background: linear-gradient(180deg, var(--ink-1), var(--ink-2)); box-shadow: inset 0 0 0 1px var(--line); }
.mvp .fig { position: relative; overflow: hidden; }
.mvp .fig .water-plane { height: 44px; }
.mvp .fig img.f { position: absolute; left: 50%; bottom: 44px; height: 176px; width: auto; transform: translateX(-50%); }
.mvp .fig img.reflect { position: absolute; left: 50%; top: calc(100% - 44px); height: 176px; width: auto; transform: translateX(-50%) scaleY(-1); }
.mvp .info { padding: 18px 16px 16px 4px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.mvp .who { font-size: 15px; font-weight: 900; letter-spacing: 0.04em; margin-top: 10px; }
.mvp .who span { font-family: var(--display); font-weight: 400; margin-right: 8px; }
.mvp .pts { font-family: var(--display); font-size: 84px; line-height: 0.8; }
.mvp .pts small { font-size: 18px; letter-spacing: 0.16em; color: var(--fg-2); margin-left: 6px; }
.mvp .mine { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--fg-2); }
.mvp .mine b { color: #fff; }
.mvp .num-bg { position: absolute; right: -10px; top: -18px; font-family: var(--display); font-size: 180px; line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07); pointer-events: none; }
.earned { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 16px; margin: 8px var(--gutter) 0; padding: 16px; background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); }
.earned .face { width: 64px; height: 64px; background: #fff; padding: 4px; }
.earned small { display: block; font-size: 11px; letter-spacing: 0.14em; color: var(--fg-3); }
.earned .v { font-family: var(--display); font-size: 44px; line-height: 1; }
.earned .v small { display: inline; font-size: 16px; color: var(--water-hi); letter-spacing: 0.1em; margin-left: 4px; }
.earned .hits { text-align: right; }
.earned .hits b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; }
.earned .hits b small { display: inline; font-size: 14px; color: var(--fg-3); letter-spacing: 0; }
.prow { display: grid; grid-template-columns: 56px 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prow .tag { height: 56px; display: grid; place-items: center; font-family: var(--display); font-size: 13px; letter-spacing: 0.12em; background: var(--ink-2); color: var(--fg-3); }
.prow.hit .tag { background: #fff; color: #0a0a0b; }
.prow.miss .tag { color: var(--red-hi); box-shadow: inset 0 0 0 1px var(--line-hi); background: transparent; }
.prow img { width: 56px; height: 56px; object-fit: cover; filter: grayscale(1) brightness(0.7); }
.prow.hit img { filter: none; }
.prow .body small { display: block; font-family: var(--display); font-size: 11px; letter-spacing: 0.16em; color: var(--fg-3); }
.prow .body b { display: block; margin-top: 3px; font-size: 14px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .body span { display: block; margin-top: 3px; font-size: 11px; line-height: 1.5; color: var(--fg-3); }
.prow .p { font-family: var(--display); font-size: 18px; color: var(--fg-3); text-align: right; min-width: 64px; }
.prow.hit .p { color: #fff; }
.picks { border-top: 1px solid var(--line); }

/* ── 04 ランキング ────────────────────── */
.rk-head { position: relative; z-index: 2; flex-shrink: 0; padding: 18px var(--gutter) 12px; background: var(--bg); }
.rk-title { position: relative; height: 56px; }
.rk-title .bg { position: absolute; right: -8px; top: -6px; font-family: var(--display); font-size: 84px; line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1); pointer-events: none; }
.rk-title h1 { position: relative; font-size: 26px; font-weight: 900; letter-spacing: 0.08em; padding-top: 10px; }
.rk-cap { margin-top: 10px; font-size: 11px; color: var(--fg-3); letter-spacing: 0.06em; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 6px; padding: 18px var(--gutter) 0; }
.pod { display: flex; flex-direction: column; justify-content: space-between; padding: 12px 10px; background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); }
.pod.p1 { height: 190px; background: var(--red-hi); box-shadow: none; }
.pod.p2 { height: 158px; }
.pod.p3 { height: 136px; }
.pod .r { font-family: var(--display); font-size: 52px; line-height: 0.82; }
.pod.p2 .r, .pod.p3 .r { color: transparent; -webkit-text-stroke: 1.2px #fff; }
.pod .n { font-size: 12px; font-weight: 900; line-height: 1.4; letter-spacing: 0.02em; word-break: break-all; }
.pod .a { font-size: 11px; color: rgba(255, 255, 255, 0.7); margin-top: 2px; letter-spacing: 0.06em; }
.pod .v { font-family: var(--display); font-size: 20px; line-height: 1; margin-top: 8px; }
.pod .v small { font-size: 11px; letter-spacing: 0.12em; margin-left: 2px; opacity: 0.75; }
.ranks { padding: 10px var(--gutter) 20px; }
.rrow { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line); }
.rrow .r { font-family: var(--display); font-size: 20px; color: var(--fg-3); }
.rrow b { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrow small { display: block; margin-top: 2px; font-size: 11px; color: var(--fg-3); letter-spacing: 0.06em; }
.rrow .v { font-family: var(--display); font-size: 18px; }
.rrow .v small, .me .v small { display: inline; font-size: 11px; color: var(--fg-2); letter-spacing: 0.12em; margin-left: 2px; }
.area { position: relative; padding: 14px 0; border-bottom: 1px solid var(--line); }
.area .top { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.area .r { font-family: var(--display); font-size: 26px; line-height: 1; color: var(--fg-3); }
.area.first .r { color: #fff; }
.area .nm { font-size: 16px; font-weight: 900; letter-spacing: 0.06em; }
.area .nm em { margin-left: 8px; padding: 2px 6px; background: var(--red-hi); font-size: 11px; font-style: normal; letter-spacing: 0.1em; vertical-align: 2px; }
.area .avg { text-align: right; }
.area .avg b { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1; }
.area .avg b small { font-size: 11px; color: var(--fg-2); letter-spacing: 0.12em; margin-left: 2px; }
.area .avg span { display: block; margin-top: 3px; font-size: 11px; color: var(--fg-3); }
.area .bar { position: relative; height: 10px; margin: 12px 0 0 48px; overflow: hidden; background: var(--ink-2); }
.area .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #0c1466, var(--water)); animation: barin 1.2s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 80ms + 200ms); }
.area .bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: shimmer 3s linear infinite; }
@keyframes barin { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
@keyframes shimmer { from { background-position: -100% 0; } to { background-position: 200% 0; } }
.area.mine .bar i { background: linear-gradient(90deg, var(--red-deep), var(--red-hi)); }
#app.static .area .bar i { animation: none; }
.me { position: relative; z-index: 3; flex-shrink: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 62px; padding: 0 var(--gutter); background: #fff; color: #0a0a0b; border-top: 3px solid var(--red); }
.me .r { font-family: var(--display); font-size: 24px; }
.me .r small { font-size: 11px; margin-left: 2px; }
.me b { display: block; font-size: 14px; font-weight: 900; }
.me .who small { display: block; margin-top: 2px; font-size: 11px; color: #6e6e76; letter-spacing: 0.06em; }
.me .v { font-family: var(--display); font-size: 22px; }
.me .v small { color: #6e6e76; }

/* ── 05 交換 ──────────────────────────── */
.prize { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prize .thumb { position: relative; width: 92px; height: 116px; overflow: hidden; background: var(--ink-2); display: grid; place-items: center; }
.prize .thumb img { width: 100%; height: 100%; object-fit: cover; }
.prize .thumb.white { background: #fff; }
.prize .thumb.white img { object-fit: contain; padding: 8px; }
.prize .thumb.mono img { filter: grayscale(1) contrast(1.1) brightness(0.85); }
.prize .thumb .ex { position: absolute; left: 0; bottom: 0; padding: 2px 6px; background: rgba(8, 8, 10, 0.8); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--fg-2); }
.prize .info { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.prize .kind { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--fg-3); letter-spacing: 0.06em; }
.prize .kind span:first-child { padding: 2px 6px; font-weight: 900; letter-spacing: 0.1em; background: var(--ink-3); color: var(--fg-2); }
.prize .kind span.digital { background: #fff; color: #0a0a0b; }
.prize .name { margin-top: 6px; font-size: 15px; font-weight: 900; line-height: 1.45; }
.prize .buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prize .cost { font-family: var(--display); font-size: 24px; line-height: 1; }
.prize .cost small { font-size: 11px; color: var(--water-hi); letter-spacing: 0.12em; margin-left: 2px; }
.prize .btn { min-height: 44px; min-width: 108px; padding: 0 12px; font-size: 12px; letter-spacing: 0.08em; }
.prize .btn.off { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.sheet-wrap { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(4, 4, 5, 0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade 0.3s ease both; }
@keyframes fade { from { opacity: 0; } }
.sheet { display: flex; flex-direction: column; gap: 14px; padding: 22px var(--gutter); padding-bottom: max(32px, env(safe-area-inset-bottom)); background: var(--ink-1); border-top: 3px solid var(--red-hi); animation: sheetin 0.5s var(--ease-out) both; }
@keyframes sheetin { from { transform: translateY(100%); } }
.sheet .lbl { font-family: var(--display); font-size: 11px; letter-spacing: 0.24em; color: var(--fg-3); }
.sheet .name { font-size: 19px; font-weight: 900; line-height: 1.45; }
.calc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc div { padding: 12px 0; text-align: center; }
.calc div + div { border-left: 1px solid var(--line); }
.calc small { display: block; font-size: 11px; color: var(--fg-3); letter-spacing: 0.1em; }
.calc b { display: block; margin-top: 4px; font-family: var(--display); font-weight: 400; font-size: 24px; }
.qr { align-self: center; padding: 12px; background: #fff; }
.qr div { display: grid; grid-template-columns: repeat(21, 8px); grid-auto-rows: 8px; }
.qr i { display: block; }
.qr i.d { background: #0a0a0b; }
.center { text-align: center; }
.wallpaper { align-self: center; width: 150px; height: 300px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--ink-3); animation: hop 0.8s var(--ease-out) both; }
.wallpaper img { width: 108px; height: auto; }

/* ── 下部タブ ─────────────────────────── */
.nav { position: relative; z-index: 6; flex-shrink: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: rgba(8, 8, 10, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 11px 0 6px; color: var(--fg-3); transition: color 0.3s; }
.nav a::before { content: ''; position: absolute; top: -1px; left: 50%; width: 0; height: 2px; background: var(--red-hi); transform: translateX(-50%); transition: width 0.4s var(--ease-out); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::before { width: 28px; }
.nav span { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; }

/* ── 画面の切り替え（View Transitions に対応したブラウザだけ） ── */
::view-transition-old(root) { animation: vt-out 0.28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.5s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; }
  #app::after, .marquee-track, .smoke, .ep, .bubble { animation: none !important; }
  .ep, .smoke, .bubble { display: none; }
}

/* ── レビュー対応で足したもの ──────────── */
.dim { color: var(--fg-3); letter-spacing: 0.2em; }

/* 予想画面：スクロール中は見出しを1行に縮める */
.pred-meta { transition: opacity 0.25s; }
.pred-head.compact { padding-bottom: 10px; }
.pred-head.compact .pred-meta { display: none; }
.pred-head.compact .rail { margin-top: 0; }
.pred-head.compact .slot { height: 40px; }
.pred-head.compact .slot small { padding-bottom: 3px; font-size: 11px; }
.pred-head.compact .question { margin-top: 8px; }
.pred-head.compact .question .qn { font-size: 26px; }
.pred-head.compact .question .qn.top { font-size: 15px; }
.pred-head.compact .question .tag { display: none; }
.pred-head.compact .question h1 { margin-top: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.card .pct[hidden] { display: none; }
.crowd-lock { margin-top: 10px; padding: 12px; font-size: 12px; color: var(--fg-2); background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); }
.hot.locked { grid-template-columns: 34px minmax(0, 1fr); }
.hot.locked .who > b { color: var(--fg-2); }

/* 選手を選んだら、次にすべきボタンを一度だけ軽く揺らして知らせる */
.btn.nudge { animation: nudge 0.6s var(--ease-out) 0.15s both; }
@keyframes nudge { 0% { transform: translateY(0); } 30% { transform: translateY(-3px); } 60% { transform: translateY(1px); } 100% { transform: none; } }

/* ホーム：大きな「予想する」が見えないあいだだけ出る小さなボタン */
.dock { position: absolute; z-index: 7; left: var(--gutter); right: var(--gutter); bottom: calc(72px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; background: var(--red-hi); color: #fff; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); transform: translateY(16px); opacity: 0; pointer-events: none; transition: transform 0.45s var(--ease-out), opacity 0.3s; }
.dock.show { transform: none; opacity: 1; pointer-events: auto; }
.dock b { font-size: 15px; font-weight: 900; letter-spacing: 0.12em; }
.dock span { flex: 1; text-align: right; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; opacity: 0.9; }
.dock em { font-style: normal; font-family: var(--display); font-size: 15px; letter-spacing: 0.06em; margin-left: 4px; }

/* 試合中・日程なしの表示 */
.closed { display: flex; align-items: flex-start; gap: 14px; padding: 18px var(--gutter) 4px; border-top: 1px solid var(--line); }
.closed p { font-size: 12px; line-height: 1.7; color: var(--fg-2); }
.closed p b { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.locked { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 48px var(--gutter) 8px; }
.locked h1 { font-size: 24px; font-weight: 900; line-height: 1.4; letter-spacing: 0.04em; }
.locked p { font-size: 13px; line-height: 1.8; color: var(--fg-2); }
.locked .btn { align-self: stretch; margin-top: 8px; }

/* 景品のピクトグラム */
.prize .thumb.picto { color: #fff; background: radial-gradient(80% 60% at 50% 100%, rgba(20, 33, 138, 0.55), transparent 70%), var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
