/* おれが軍師！ 試作UI */
:root {
  --bg: #0f1a14;
  --panel: #16241c;
  --panel-2: #1d2f25;
  --line: #2d4537;
  --text: #e8efe9;
  --muted: #8fa597;
  --accent: #f2c14e;      /* スコアボードの黄色 */
  --danger: #e5484d;
  --ok: #3fb97a;
  --zone-in: #2a4a37;
  --zone-out: #1a2b21;
  --led: #ffb43a;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  background-image: radial-gradient(circle at 50% -20%, #1e3a2a 0%, var(--bg) 60%);
  color: var(--text);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 14px;
  min-height: 100vh;
}
.hidden { display: none !important; }
.screen { max-width: 1280px; margin: 0 auto; padding: 16px; }

button { font-family: inherit; }
.btn {
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 14px; cursor: pointer; font-weight: 700;
}
.btn:hover:not(:disabled) { border-color: var(--accent); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- タイトル ---------- */
.title { text-align: center; padding: 32px 0 16px; }
.title h1 {
  font-family: "DotGothic16", monospace; font-size: clamp(40px, 9vw, 72px);
  color: var(--led); margin: 4px 0; letter-spacing: .08em;
  text-shadow: 0 0 18px rgba(255, 180, 58, .45);
}
.title-sub { color: var(--muted); margin: 0; }
.title-lead { margin: 8px 0 0; }
.select-bar { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 16px 0; }
select { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 6px; margin-left: 6px; }
.game-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.game-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; cursor: pointer; transition: transform .1s, border-color .1s;
}
.game-item:hover { transform: translateY(-2px); border-color: var(--accent); }
.game-item .date { color: var(--muted); font-size: 12px; }
.game-item .teams { font-size: 17px; font-weight: 900; margin: 6px 0; }
.game-item .after6 { font-family: "DotGothic16", monospace; color: var(--led); font-size: 20px; }

/* ---------- スコアボード ---------- */
.scoreboard { overflow-x: auto; background: #0a120d; border: 2px solid #33503f; border-radius: 10px; padding: 8px; }
.scoreboard table { border-collapse: collapse; width: 100%; font-family: "DotGothic16", monospace; }
.scoreboard th, .scoreboard td { text-align: center; padding: 4px 6px; min-width: 28px; }
.scoreboard th { color: var(--muted); font-weight: 400; font-size: 12px; }
.scoreboard td { color: var(--led); font-size: 20px; }
.scoreboard td.team { text-align: left; color: var(--text); font-family: "Noto Sans JP"; font-size: 14px; font-weight: 700; white-space: nowrap; }
.scoreboard td.total { color: #fff; border-left: 1px solid #33503f; }
.scoreboard td.now { background: rgba(255, 180, 58, .15); }
.scoreboard td.mine { text-decoration: underline; text-underline-offset: 4px; }

.status-row { display: flex; gap: 20px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.inning { font-size: 22px; font-weight: 900; }
.bso { display: grid; grid-template-columns: auto auto; gap: 2px 8px; align-items: center; font-family: "DotGothic16", monospace; }
.bso .dots { display: flex; gap: 4px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #2b3b31; }
.dot.b { background: var(--ok); } .dot.s { background: var(--accent); } .dot.o { background: var(--danger); }
.bases { position: relative; width: 60px; height: 44px; }
.base { position: absolute; width: 16px; height: 16px; background: #2b3b31; transform: rotate(45deg); border: 1px solid #4a6655; }
.base.on { background: var(--accent); border-color: var(--accent); }
.base.b1 { right: 4px; top: 16px; } .base.b2 { left: 22px; top: 2px; } .base.b3 { left: 4px; top: 16px; }

/* ---------- 3カラム ---------- */
.main-grid { display: grid; grid-template-columns: 1fr minmax(320px, 400px) 1fr; gap: 12px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.sec-title { font-size: 13px; color: var(--muted); margin: 14px 0 6px; font-weight: 700; }

.tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.tab { flex: 1; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 6px; cursor: pointer; font-weight: 700; }
.tab.active { background: var(--panel-2); color: var(--text); border-color: var(--accent); }
.tab-body { max-height: 62vh; overflow-y: auto; }

/* スカウティング */
.scout-row { border-bottom: 1px solid var(--line); padding: 8px 2px; }
.scout-row.current { background: rgba(242, 193, 78, .08); border-radius: 6px; }
.scout-row .name { font-weight: 700; }
.scout-row .hand { color: var(--muted); font-size: 12px; margin-left: 4px; }
.ab-chip { display: inline-block; font-size: 12px; margin: 3px 4px 0 0; padding: 2px 6px; border-radius: 4px; background: var(--panel-2); }
.ab-chip.hit { background: #5a2a2a; } .ab-chip.out { background: #24402f; } .ab-chip.walk { background: #3a3a22; }
.ab-chip.mine { outline: 1px solid var(--accent); }
.ab-chip small { color: var(--muted); }

/* 1〜6回 */
.half { margin-bottom: 10px; }
.half h4 { margin: 6px 0; font-size: 13px; color: var(--accent); }
.replay-ab { font-size: 12px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.replay-ab .seq { color: var(--muted); }

/* 実況 */
.log-item { font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.log-item .aim { color: var(--accent); }

/* ---------- 配球 ---------- */
.batter-card { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.batter-card .name { font-size: 20px; font-weight: 900; }
.batter-card .meta { color: var(--muted); font-size: 12px; }
.zone-wrap { display: flex; align-items: stretch; justify-content: center; gap: 6px; }
.box-side { width: 34px; border-radius: 6px; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; font-size: 12px; color: var(--muted); }
.box-side.batter { background: repeating-linear-gradient(45deg, #2b3b31, #2b3b31 4px, #24332a 4px, #24332a 8px); color: var(--text); font-weight: 700; }
.zone { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; width: min(100%, 300px); aspect-ratio: 1 / 1.1; }
.cell { position: relative; background: var(--zone-out); border-radius: 4px; cursor: pointer; border: 1px solid transparent; }
.cell.sz { background: var(--zone-in); }
.cell.sz.top { border-top-color: #cfe3d6; } .cell.sz.bottom { border-bottom-color: #cfe3d6; }
.cell.sz.left { border-left-color: #cfe3d6; } .cell.sz.right { border-right-color: #cfe3d6; }
.cell:hover { outline: 2px solid rgba(242, 193, 78, .5); }
.cell.selected { outline: 3px solid var(--accent); z-index: 1; }
.mark {
  position: absolute; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; background: #fff; color: #111;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.mark.last { background: var(--accent); box-shadow: 0 0 0 3px rgba(242, 193, 78, .35); }
.zone-note { text-align: center; color: var(--muted); font-size: 11px; margin: 6px 0; }
.pitch-types { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0; }
.ptype { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: 6px 12px; cursor: pointer; font-weight: 700; }
.ptype small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.ptype.selected { background: var(--accent); color: #1a1a1a; border-color: var(--accent); }
.ptype.selected small { color: #444; }
.btn-throw { width: 100%; padding: 12px; font-size: 16px; background: var(--accent); color: #1a1a1a; border: none; }
.ab-log { margin-top: 10px; }
.pitch-row { display: grid; grid-template-columns: 22px 1fr; gap: 6px; font-size: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.pitch-row .n { font-weight: 900; color: var(--accent); }
.pitch-row .hint { color: #b7d7c3; font-style: italic; }
.pitch-row .dev { color: var(--danger); }

/* 難易度 */
.diff-box { max-width: 900px; margin: 8px auto 0; text-align: center; }
.diff-label { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.diff-options { display: inline-flex; gap: 6px; }
.diff-opt { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: 6px 16px; cursor: pointer; font-weight: 700; }
.diff-opt.selected { background: var(--accent); color: #1a1a1a; border-color: var(--accent); }
.diff-desc { color: var(--muted); font-size: 12px; margin: 6px 0 0; min-height: 1.5em; }
.diff-badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.diff-badge.easy { border-color: var(--ok); color: var(--ok); }
.diff-badge.hard { border-color: var(--danger); color: #ff8a80; }
.stance { color: #cfe3d6; font-size: 12px; margin: -4px 0 6px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-left: 4px; vertical-align: middle; }
.badge.hot { background: #5a2a2a; color: #ffb4ab; }
.badge.cold { background: #1f3550; color: #a8c8ff; }
.badge.pinch { background: #4a3d12; color: #f5d27a; }
.badge.gunshi { background: var(--accent); color: #111; }   /* 捕手＝軍々軍師 */
.best-pitch { font-size: 12px; color: var(--accent); font-weight: 700; margin: 2px 0 4px; }
.ptype.best { border-color: #8a6a1f; }
.traits { font-size: 11px; margin: 2px 0; }
.traits .good { color: #ff9d97; margin-right: 8px; }
.traits .bad { color: #9cc3ff; }
.runner-box { background: #1a2a36; border: 1px solid #36556b; border-radius: 8px; padding: 8px 10px; margin: 6px 0 8px; font-size: 12px; }
.runner-box .hint { margin-bottom: 6px; }
.runner-box .hint.active { color: #ffb4ab; font-weight: 700; }
.runner-box .btns { display: flex; gap: 6px; flex-wrap: wrap; }
.runner-box .btn { padding: 5px 10px; font-size: 12px; }
.defense-box { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.def-opt { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 3px 10px; cursor: pointer; font-size: 12px; }
.def-opt.selected { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.review { max-height: 45vh; overflow-y: auto; font-size: 12px; margin-top: 8px; }
.review-row { border-bottom: 1px solid var(--line); padding: 5px 0; }
.review-row .mark-good { color: var(--ok); font-weight: 700; }
.review-row .mark-bad { color: #ff8a80; font-weight: 700; }
.overlay-card.wide { max-width: 640px; }
.stance b { color: var(--accent); }
.aim-hint { background: #1f3a2b; border: 1px dashed var(--ok); color: #bfe8cf; border-radius: 6px; padding: 5px 8px; font-size: 12px; margin: -2px 0 8px; }

/* 試合画面上部（中断ボタン） */
.game-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.game-bar .meta { color: var(--muted); font-size: 12px; }
.link-btn { background: none; border: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 12px; padding: 4px 0; margin-top: 6px; }

/* 投手の注意 */
.pitcher-warn { border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; font-size: 12px; background: #3a2e14; border: 1px solid #8a6a1f; }
.pitcher-warn.danger { background: #3d1a1a; border-color: #a33a3a; }
.warn-title { font-weight: 900; font-size: 13px; margin-bottom: 2px; }
.warn-list { margin: 0; padding-left: 18px; }
.warn-list li { margin: 1px 0; }
.warn-list li.danger { color: #ff9d97; font-weight: 700; }
.warn-list li.warn { color: #f5d27a; }
.warn-list li.info { color: var(--muted); list-style: none; margin-left: -18px; }
.toast.warn { border-color: #e5484d; }

/* 前の打者 */
.last-ab { background: var(--panel-2); border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; font-size: 12px; }
.last-ab.hit { border-left-color: #d9665f; } .last-ab.out { border-left-color: var(--ok); } .last-ab.walk { border-left-color: var(--accent); }
.last-ab.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.last-ab .head { display: flex; justify-content: space-between; color: var(--muted); }
.last-ab .main { display: flex; align-items: baseline; gap: 8px; margin: 3px 0; flex-wrap: wrap; }
.last-ab .who { font-weight: 700; font-size: 14px; }
.last-ab .res { font-weight: 900; font-size: 16px; padding: 0 6px; border-radius: 4px; }
.last-ab.hit .res { background: #5a2a2a; } .last-ab.out .res { background: #24402f; } .last-ab.walk .res { background: #3a3a22; }
.last-ab .runs { color: #ff8a80; font-weight: 900; }
.last-ab .sit { color: var(--text); }
.last-ab .seq { color: var(--muted); margin-top: 3px; line-height: 1.6; }
.last-ab .aim { color: var(--accent); margin-top: 3px; }
.ab-title { font-size: 12px; color: var(--muted); margin: 12px 0 2px; }

/* ---------- 投手 ---------- */
.pcard .name { font-size: 18px; font-weight: 900; }
.pcard .meta { color: var(--muted); font-size: 12px; }
.meter { height: 8px; background: #2b3b31; border-radius: 4px; overflow: hidden; margin: 6px 0; }
.meter > div { height: 100%; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--panel-2); margin-right: 4px; }
.tag.warn { background: #5a3d1a; } .tag.bad { background: #5a2a2a; }
.bp-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.bp-item .name { font-weight: 700; }
.bp-item .meta { font-size: 11px; color: var(--muted); }
.bp-item .btn { padding: 4px 10px; font-size: 12px; }

.debug-toggle { display: block; margin-top: 14px; font-size: 12px; color: var(--muted); }

/* ---------- オーバーレイ ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; z-index: 10; padding: 16px; }
.overlay-card { background: var(--panel); border: 2px solid var(--accent); border-radius: 14px; padding: 20px; max-width: 460px; width: 100%; }
.overlay-card h2 { margin: 0 0 10px; font-family: "DotGothic16", monospace; color: var(--led); }
.overlay-card ul { padding-left: 18px; font-size: 13px; }
.overlay-card .btn { width: 100%; margin-top: 12px; background: var(--accent); color: #1a1a1a; border: none; padding: 12px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20;
  background: #0a120d; border: 2px solid var(--accent); border-radius: 12px; padding: 12px 18px;
  font-size: 16px; font-weight: 900; max-width: calc(100% - 32px); text-align: center;
}
.toast .sub { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 4px; }

/* ---------- タイトル・モード選択 ---------- */
.btn-primary { background: var(--accent); color: #1a1a1a; border: none; padding: 10px 18px; }
.mode-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; max-width: 900px; margin: 16px auto; }
.mode-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.mode-card h2 { margin: 0 0 8px; color: var(--led); font-family: "DotGothic16", monospace; }
.mode-card p { color: var(--muted); line-height: 1.6; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.save-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.screen-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.screen-head h2 { margin: 0; }

/* ---------- シーズン ---------- */
.season-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; align-items: start; }
.next-card { background: var(--panel-2); border: 2px solid var(--accent); border-radius: 12px; padding: 14px; }
.next-card .label { color: var(--muted); font-size: 12px; }
.next-card .vs { font-size: 22px; font-weight: 900; margin: 4px 0; }
.next-card .btn { width: 100%; margin-top: 10px; }
.ha { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 4px; margin-right: 6px; font-weight: 700; }
.ha.home { background: var(--accent); color: #1a1a1a; }
.ha.away { background: #3a4a41; }
.res-row { display: grid; grid-template-columns: 46px 1fr auto; gap: 8px; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--line); align-items: center; }
.res-row .o { font-weight: 900; text-align: center; border-radius: 4px; }
.res-row .o.win { background: #5a2a2a; } .res-row .o.lose { background: #24402f; } .res-row .o.draw { background: #3a3a22; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 5px 4px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.tbl .tag { margin-right: 0; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl th { color: var(--muted); font-weight: 400; }
.tbl tr.mine td { color: var(--accent); font-weight: 700; }
.stat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stat-tile { background: var(--panel-2); border-radius: 8px; padding: 10px; }
.stat-tile .v { font-family: "DotGothic16", monospace; font-size: 24px; color: var(--led); }
.stat-tile .k { font-size: 11px; color: var(--muted); }

/* 遊び方 */
.help-btn { margin-top: 10px; }
.game-bar .help-btn { margin-top: 0; }
#help { z-index: 25; }
.help-card { max-width: 720px; }
.help-body { max-height: 65vh; overflow-y: auto; font-size: 13px; line-height: 1.7; }
.help-body h3 { color: var(--accent); font-size: 14px; margin: 14px 0 4px; }
.help-body h3:first-child { margin-top: 0; }
.help-body ul, .help-body ol { padding-left: 20px; margin: 4px 0; }

/* 前の打者：折りたたみ */
.last-ab .head { cursor: pointer; }
.last-ab .toggle { color: var(--muted); font-size: 11px; margin-left: 6px; }
.last-ab.collapsed .sit, .last-ab.collapsed .seq, .last-ab.collapsed .aim { display: none; }

/* 攻撃 */
.off-sec { margin: 8px 0; }
.off-sec .lbl { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.off-opts { display: flex; flex-wrap: wrap; gap: 5px; }
.off-opt { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 5px 11px; cursor: pointer; font-weight: 700; font-size: 12px; }
.off-opt small { color: var(--muted); font-weight: 400; margin-left: 3px; }
.off-opt.selected { background: var(--accent); color: #1a1a1a; border-color: var(--accent); }
.off-opt.selected small { color: #444; }
.off-opt:disabled { opacity: .35; cursor: not-allowed; }
.off-banner { background: #1d2f45; border: 1px solid #3a5a7a; border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.forecast { background: #1f3a2b; border: 1px dashed var(--ok); border-radius: 6px; padding: 5px 8px; font-size: 12px; margin: 6px 0; color: #bfe8cf; }
.off-btns { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 10px; }
.off-btns .sub { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.off-zone { width: min(100%, 220px); margin: 8px auto 0; }
.off-zone .cell { cursor: default; }
.hit-yes { color: #7fd3a1; font-weight: 700; }
.hit-no { color: #ff8a80; }
.today-chips { margin-top: 3px; }

/* タイトル争い・個人成績 */
.season-wide { margin-top: 12px; }
.title-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.title-card { background: var(--panel-2); border-radius: 8px; padding: 8px 10px; }
.title-card h4 { margin: 0 0 4px; font-size: 13px; color: var(--accent); }
.title-card .row { display: grid; grid-template-columns: 16px 1fr auto; gap: 6px; font-size: 12px; padding: 2px 0; }
.title-card .row.mine { color: var(--accent); font-weight: 700; }
.title-card .row .v { font-family: "DotGothic16", monospace; }
.title-card .empty { color: var(--muted); font-size: 12px; }
.tbl-wrap { overflow-x: auto; }

/* ---------- 判定の詳細 ---------- */
.detail-box { margin-top: 8px; background: #0a120d; border-radius: 8px; padding: 10px; font-size: 12px; }
.detail-box h4 { margin: 10px 0 4px; font-size: 12px; color: var(--accent); }
.detail-box h4:first-child { margin-top: 0; }
.detail-box .note { color: var(--muted); font-size: 11px; margin: 2px 0 6px; }
.detail-box table { width: 100%; border-collapse: collapse; }
.detail-box td, .detail-box th { padding: 3px 2px; border-bottom: 1px solid #1d2f25; text-align: right; }
.detail-box th { color: var(--muted); font-weight: 400; }
.detail-box td:first-child, .detail-box th:first-child { text-align: left; }
.up { color: #ff8a80; } .down { color: #7fd3a1; }
.bar-row { display: grid; grid-template-columns: 90px 1fr 44px; gap: 6px; align-items: center; margin: 2px 0; }
.bar { height: 8px; background: #1d2f25; border-radius: 4px; overflow: hidden; }
.bar > div { height: 100%; background: var(--muted); }
.bar-row.picked .bar > div { background: var(--accent); }
.bar-row.hit .bar > div { background: #d9665f; }
.bar-row.picked { font-weight: 700; color: var(--text); }

/* ---------- 読み込み中 ---------- */
.loading { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; z-index: 30; }
.loading-card { background: var(--panel); border: 2px solid var(--accent); border-radius: 12px; padding: 18px 24px; font-weight: 700; }

/* ---------- スマホ ---------- */
@media (max-width: 960px) {
  .season-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .main-grid { grid-template-columns: 1fr; }
  /* スマホ・タブレット：配球 → 投手とブルペン → スカウティング の順（継投の判断をすぐ見られるように） */
  .pitch-panel { order: -2; }
  .mound-panel { order: -1; }
  .tab-body { max-height: 60vh; }
}
@media (max-width: 480px) {
  /* スコアボードを画面の幅に収める（計の列まで見えるように） */
  .scoreboard { padding: 6px 4px; }
  .scoreboard th, .scoreboard td { padding: 3px 2px; min-width: 0; }
  .scoreboard td { font-size: 16px; }
  .scoreboard td.team { font-size: 12px; }
}

/* 守備位置の印 */
.pos { display: inline-block; min-width: 1.4em; margin-right: 4px; padding: 0 3px; border-radius: 3px;
       background: var(--panel-2); font-size: 11px; text-align: center; }

/* ---------- オープニング（アニメ風） ---------- */
.opening { position: fixed; inset: 0; z-index: 100; background: #020403; color: #e8efe9; overflow: hidden;
           display: flex; align-items: center; justify-content: center; transition: background .25s, opacity .7s; }
.opening.op-out { opacity: 0; }
.opening.op-white { background: #f7f3e6; color: #111; animation: op-flash .6s ease-out; }
.opening.op-red { background: #0c0203; }
@keyframes op-flash { 0% { background: #fff; } 30% { background: #e5484d; } 100% { background: #f7f3e6; } }
/* 映画のような上下の黒帯 */
.op-letterbox { position: absolute; left: 0; right: 0; height: 0; background: #000; z-index: 3; transition: height .5s ease-out; }
.op-lb-top { top: 0; } .op-lb-bottom { bottom: 0; }
.opening.op-bars .op-letterbox { height: 7vh; }
.op-start { text-align: center; z-index: 4; }
.op-start-title { font-family: "DotGothic16", sans-serif; font-size: clamp(36px, 9vw, 64px); color: var(--accent);
                  letter-spacing: 4px; margin-bottom: 28px; text-shadow: 0 0 24px rgba(242, 193, 78, .35); }
.op-start-links { margin-top: 18px; display: flex; gap: 16px; justify-content: center; }
.op-body { width: min(760px, 100%); height: 100%; display: flex; flex-direction: column; justify-content: center;
           padding: 9vh 16px; cursor: pointer; user-select: none; z-index: 2; }
/* 絵を置く舞台（カメラ・演出・吹き出し・周辺減光・粒子を重ねる） */
.op-stage { position: relative; height: min(50vh, 380px); overflow: hidden; border-radius: 4px; }
.op-cam { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.op-art { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.op-svg { width: 100%; height: 100%; }
.cam-zoom-in { animation: cam-zoom 5s ease-out forwards; }
@keyframes cam-zoom { from { transform: scale(1.18); opacity: 0; } 12% { opacity: 1; } to { transform: scale(1); } }
.cam-pan-right { animation: cam-pan-r 6s ease-out forwards; }
@keyframes cam-pan-r { from { transform: translateX(-8%) scale(1.12); opacity: 0; } 10% { opacity: 1; } to { transform: translateX(3%) scale(1.12); } }
.cam-pan-left { animation: cam-pan-l 6s ease-out forwards; }
@keyframes cam-pan-l { from { transform: translateX(8%) scale(1.1); opacity: 0; } 10% { opacity: 1; } to { transform: translateX(-2%) scale(1.1); } }
.cam-dutch { animation: cam-dutch 5s ease-out forwards; }
@keyframes cam-dutch { from { transform: rotate(-9deg) scale(1.3); opacity: 0; } 15% { opacity: 1; } to { transform: rotate(-6deg) scale(1.12); } }
.cam-shake { animation: cam-shake .5s linear 3; }
@keyframes cam-shake { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-10px, 4px); } 40% { transform: translate(9px, -6px); }
                       60% { transform: translate(-6px, -3px); } 80% { transform: translate(6px, 5px); } }
/* 光の中へ歩き出す（ゆっくり近づく） */
.cam-walk { animation: cam-walk 5s ease-out forwards; }
@keyframes cam-walk { from { transform: scale(1); opacity: 0; } 12% { opacity: 1; } to { transform: scale(1.14) translateY(-3%); } }
.op-walk { animation: op-walk 5s ease-in-out forwards; transform-box: view-box; transform-origin: 200px 260px; }
@keyframes op-walk { from { transform: scale(1.1) translateY(6px); } to { transform: scale(.94) translateY(-2px); } }
.op-door { animation: op-door 2.4s ease-in-out infinite alternate; }
@keyframes op-door { from { opacity: .8; } to { opacity: 1; } }
.op-back-no { fill: var(--accent); font-size: 52px; font-weight: 900; font-family: "DotGothic16", sans-serif;
              filter: drop-shadow(0 0 6px rgba(242, 193, 78, .8)); }
.op-back-name { fill: #c9d3dc; font-size: 12px; letter-spacing: 3px; font-family: "Noto Sans JP", sans-serif; }
.op-fx { position: absolute; inset: 0; pointer-events: none; }
.op-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .75) 100%); }
.opening.op-white .op-vignette { background: radial-gradient(ellipse at center, transparent 55%, rgba(120, 20, 20, .35) 100%); }
.op-grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .08; pointer-events: none; mix-blend-mode: screen; }
/* 集中線 */
.op-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .16; animation: op-lines .12s steps(2) infinite; }
@keyframes op-lines { 50% { transform: rotate(.6deg) scale(1.01); } }
/* キラッ */
.op-glint { position: absolute; width: 60px; height: 60px; transform: translate(-50%, -50%) scale(0); animation: op-glint 1s ease-out .5s forwards; }
.op-glint::before, .op-glint::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 50%;
                                      box-shadow: 0 0 12px #fff, 0 0 24px #f2c14e; transform: translate(-50%, -50%); }
.op-glint::before { width: 60px; height: 4px; } .op-glint::after { width: 4px; height: 60px; }
@keyframes op-glint { 0% { transform: translate(-50%, -50%) scale(0) rotate(0); } 40% { transform: translate(-50%, -50%) scale(1.2) rotate(45deg); opacity: 1; }
                      100% { transform: translate(-50%, -50%) scale(.2) rotate(90deg); opacity: 0; } }
/* 名前の札（斜めに差し込む） */
.op-namecard { position: absolute; left: 4%; bottom: 10%; transform: skewX(-12deg); animation: op-nc .6s cubic-bezier(.2, 1.3, .4, 1) 1s both; }
.op-namecard > div { transform: skewX(12deg); }
.op-nc-role { display: inline-block; background: #e5484d; color: #fff; font-weight: 900; padding: 2px 12px; font-size: 13px; }
.op-nc-name { background: var(--accent); color: #111; font-weight: 900; font-size: clamp(24px, 6vw, 36px); padding: 2px 18px; letter-spacing: 4px; }
.op-nc-en { color: var(--accent); font-size: 11px; letter-spacing: 5px; margin-top: 4px; }
@keyframes op-nc { from { transform: skewX(-12deg) translateX(-120%); } to { transform: skewX(-12deg) translateX(0); } }
/* 擬音 */
.op-sfx { position: absolute; font-weight: 900; font-style: italic; color: #fff; -webkit-text-stroke: 2px #000; paint-order: stroke; }
.op-gogo { font-size: clamp(26px, 6vw, 44px); color: #b9a4ff; opacity: 0; letter-spacing: -2px; animation: op-gogo 1.4s ease-in-out .6s infinite; }
@keyframes op-gogo { 0% { opacity: 0; transform: translateY(8px); } 30% { opacity: .95; } 50% { transform: translate(2px, -3px); } 70% { transform: translate(-2px, 2px); } 100% { opacity: 0; transform: translateY(-10px); } }
.op-don { left: 50%; top: 50%; font-size: clamp(56px, 16vw, 120px); color: #e5484d; -webkit-text-stroke: 3px #111; transform: translate(-50%, -50%) rotate(-8deg);
          animation: op-don .45s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes op-don { from { transform: translate(-50%, -50%) rotate(-8deg) scale(3); opacity: 0; } to { transform: translate(-50%, -50%) rotate(-8deg) scale(1); opacity: 1; } }
/* レンズフレア */
.op-flare { position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(255, 244, 200, .9) 0, rgba(255, 210, 120, .35) 6%, transparent 22%),
            radial-gradient(circle at 45% 55%, rgba(242, 193, 78, .25) 0, transparent 8%), radial-gradient(circle at 30% 70%, rgba(120, 180, 255, .18) 0, transparent 6%);
            animation: op-flare 2.5s ease-out both; mix-blend-mode: screen; }
@keyframes op-flare { from { opacity: 0; transform: translateX(-12%); } 30% { opacity: 1; } to { opacity: .7; transform: translateX(0); } }
/* 吹き出し */
.op-say { position: absolute; right: 6%; top: 10%; max-width: 70%; background: #fff; color: #111; font-weight: 900; font-size: clamp(16px, 4vw, 22px);
          padding: 10px 18px; border-radius: 50% / 40%; border: 3px solid #111; }
.op-say::after { content: ""; position: absolute; left: 22%; bottom: -16px; border: 10px solid transparent; border-top: 16px solid #111; }
.op-say[data-at="left"] { right: auto; left: 6%; top: 6%; }
.op-say[data-at="top"] { right: auto; left: 50%; top: 6%; translate: -50% 0; }
.op-say.op-pop { animation: op-pop .35s cubic-bezier(.2, 1.6, .4, 1) .3s both; }
@keyframes op-pop { from { transform: scale(0); } to { transform: scale(1); } }
/* 絵の中の動き */
.op-caption { fill: #cfd9d2; font-size: 13px; letter-spacing: 3px; font-family: "Noto Sans JP", sans-serif; }
.op-note-title { font-size: 16px; font-weight: 900; fill: #2a2418; font-family: "Noto Sans JP", sans-serif; }
.op-note-small { font-size: 11px; fill: #e5484d; font-weight: 700; font-family: "Noto Sans JP", sans-serif; }
.op-write { stroke-dasharray: 90; stroke-dashoffset: 90; animation: op-write .5s ease-out forwards; }
@keyframes op-write { to { stroke-dashoffset: 0; } }
.op-board-n { fill: #8fa597; font-size: 14px; font-family: "DotGothic16", sans-serif; }
.op-board-off { fill: #2d4537; font-size: 20px; }
.op-board-lit { fill: #ffb43a; font-size: 22px; font-family: "DotGothic16", sans-serif; opacity: 0; animation: op-on .2s steps(2) forwards; }
.op-lit { animation: op-lit 1.2s ease-in-out infinite alternate; }
@keyframes op-on { to { opacity: 1; } }
@keyframes op-lit { from { fill: #3a2a0a; } to { fill: #8a5e12; } }
.op-eye { animation: op-blink 1.6s ease-in-out infinite; }
@keyframes op-blink { 0%, 80%, 100% { opacity: 1; } 90% { opacity: .1; } }
.op-pulse { animation: op-pulse 1.1s ease-in-out infinite; transform-origin: 200px 110px; }
@keyframes op-pulse { 0%, 100% { opacity: .75; transform: scale(1); } 15% { opacity: 1; transform: scale(1.05); } }
.op-aim { animation: op-aim 1s ease-in-out infinite alternate; }
@keyframes op-aim { from { fill: #2a4a37; } to { fill: #e5484d; } }
.op-mark { fill: #fff; font-size: 16px; font-weight: 900; font-family: "Noto Sans JP", sans-serif; }
.op-ball { opacity: 0; animation: op-on .1s 1.1s forwards; }
.op-streak { stroke-dasharray: 320; stroke-dashoffset: 320; animation: op-streak .45s ease-in .7s forwards; }
@keyframes op-streak { to { stroke-dashoffset: 0; } }
.op-crack { stroke-dasharray: 160; stroke-dashoffset: 160; animation: op-streak .25s ease-out forwards; }
.op-logo { text-align: center; animation: op-zoom 1.2s cubic-bezier(.2, 1.4, .4, 1); position: relative; }
@keyframes op-zoom { from { transform: scale(.2) rotate(-6deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.op-logo-sub { color: #cfd9d2; letter-spacing: 3px; margin-bottom: 8px; }
.op-logo-main { font-family: "DotGothic16", sans-serif; font-size: clamp(44px, 12vw, 92px); letter-spacing: 6px;
                background: linear-gradient(100deg, #f2c14e 40%, #fffbe8 50%, #f2c14e 60%); background-size: 300% 100%;
                -webkit-background-clip: text; background-clip: text; color: transparent;
                filter: drop-shadow(0 0 18px rgba(242, 193, 78, .55)); animation: op-shine 2.2s ease-in-out 1s infinite; }
@keyframes op-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
/* 語り（字幕） */
.op-textbox { min-height: 92px; margin-top: 12px; display: flex; align-items: center; justify-content: center; padding: 10px 8px; }
.op-text { margin: 0; font-size: clamp(16px, 4vw, 22px); line-height: 1.7; text-align: center; font-weight: 900;
           color: #fff; text-shadow: 0 0 2px #000, 2px 2px 0 #000, -2px 2px 0 #000, 2px -2px 0 #000, -2px -2px 0 #000; }
.opening.op-white .op-text { color: #111; text-shadow: none; }
/* 区切りのかたまり（この中では折り返さない）。行の長さもそろえる */
.op-text { text-wrap: balance; line-break: strict; }
.op-ph { display: inline-block; max-width: 100%; }   /* 画面より長いかたまりだけは中で折り返す */
.op-text.op-big { font-size: clamp(22px, 6vw, 36px); color: var(--accent); letter-spacing: 2px; }
.op-footer { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 12px; color: #8fa597; }
.op-bar { flex: 1; height: 3px; background: #1d2f25; border-radius: 2px; overflow: hidden; }
#op-progress { height: 100%; width: 0; background: var(--accent); transition: width .4s; }
.op-hint { white-space: nowrap; }
/* サブタイトルの札 */
.op-episode { z-index: 2; font-weight: 900; font-size: clamp(22px, 6vw, 40px); letter-spacing: 6px; color: #fff; padding: 16px 28px;
              border-top: 3px solid var(--accent); border-bottom: 3px solid var(--accent); animation: op-ep 2.6s ease-out both; cursor: pointer; }
@keyframes op-ep { 0% { opacity: 0; letter-spacing: 20px; } 25% { opacity: 1; letter-spacing: 6px; } 85% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 480px) { .op-hint { display: none; } .op-say { right: 3%; } }
@media (prefers-reduced-motion: reduce) { .op-cam, .op-lines, .op-sfx, .op-glint { animation: none !important; } }

/* ポストシーズン */
.post-label { color: var(--accent); }
.post-box { margin-top: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.post-row { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 4px 0; font-size: 13px; }
.post-row.mine { color: var(--accent); }
.post-name { width: 100%; font-size: 12px; color: var(--muted); }   /* シリーズ名は1行目、対戦成績は2行目 */
.post-row .meta { width: 100%; font-size: 11px; }
.post-row.mine .post-name { color: var(--accent); }
.post-win { margin-left: auto; }

/* はじめての人向けの案内 */
.tutorial { position: fixed; inset: 0; z-index: 90; }
.tut-hole { position: fixed; border-radius: 8px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .7); border: 2px solid var(--accent);
            transition: all .25s ease; pointer-events: none; }
.tut-box { position: fixed; background: var(--panel); border: 1px solid var(--accent); border-radius: 10px; padding: 12px 14px;
           box-shadow: 0 8px 30px rgba(0, 0, 0, .6); transition: top .25s, left .25s; }
.tut-head { display: flex; justify-content: space-between; align-items: baseline; color: var(--accent); }
.tut-box p { margin: 8px 0 10px; line-height: 1.6; font-size: 14px; }
.tut-btns { display: flex; justify-content: space-between; align-items: center; }

/* 実績 */
.ach-toast { position: fixed; top: 12px; right: 12px; z-index: 95; display: flex; gap: 10px; align-items: center; max-width: min(340px, calc(100vw - 24px));
             background: var(--panel); border: 2px solid var(--accent); border-radius: 10px; padding: 10px 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.ach-toast.ach-in { animation: ach-in .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes ach-in { from { transform: translateX(120%); } to { transform: translateX(0); } }
.ach-head { color: var(--accent); font-size: 12px; font-weight: 900; }
.ach-icon { font-size: 28px; }
.ach-list { max-height: 60vh; overflow: auto; margin-bottom: 12px; }
.ach-row { display: flex; gap: 12px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.ach-row.locked { opacity: .5; }
/* シェア */
.share-img { width: 100%; border-radius: 8px; border: 1px solid var(--line); margin: 8px 0; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.share-btns a.btn { text-decoration: none; display: inline-flex; align-items: center; }

/* 特別な演出（野手登板など） */
.opening.op-rain { background: #04070b; }
.cn-name { fill: #fff; font-size: 22px; font-weight: 900; font-family: "Noto Sans JP", sans-serif; }
.cn-team { fill: #e8efe9; font-size: 14px; font-weight: 700; font-family: "Noto Sans JP", sans-serif; }
.cn-big-run { fill: #ff5a5a; font-size: 30px; font-family: "DotGothic16", sans-serif; animation: cn-pop .6s cubic-bezier(.2, 1.6, .4, 1) .5s both; }
@keyframes cn-pop { from { opacity: 0; transform: scale(3); transform-origin: center; } to { opacity: 1; transform: scale(1); } }
.cn-sweat { animation: cn-sweat 1.2s ease-in infinite; }
@keyframes cn-sweat { from { transform: translateY(0); opacity: 1; } to { transform: translateY(14px); opacity: 0; } }
.cn-arc { animation: op-streak .55s ease-out forwards; }
.cn-ball { opacity: 0; animation: op-on .1s forwards; }
.cn-rain { animation: cn-rain .7s linear infinite; }
@keyframes cn-rain { from { transform: translateY(-20px); } to { transform: translateY(30px); } }
.cn-final { text-align: center; animation: op-zoom 1.2s cubic-bezier(.2, 1.4, .4, 1); }
.cn-final-big { font-weight: 900; font-size: clamp(36px, 10vw, 72px); letter-spacing: 4px; }
.cn-final.lose .cn-final-big { color: #c9d3dc; text-shadow: 0 0 20px rgba(120, 140, 170, .5); }
.cn-final.win .cn-final-big { color: var(--accent); text-shadow: 0 0 24px rgba(242, 193, 78, .6); }
.cn-final-score { margin-top: 10px; font-family: "DotGothic16", sans-serif; font-size: clamp(18px, 5vw, 28px); color: #ffb43a; }

/* 得意（赤）・苦手（青）の色分け：コースの表・球種のボタン・攻撃の狙い */
.cell.trait-good { background: rgba(229, 72, 77, .35); }
.cell.sz.trait-good { background: rgba(229, 72, 77, .45); }
.cell.trait-bad { background: rgba(80, 140, 230, .32); }
.cell.sz.trait-bad { background: rgba(80, 140, 230, .42); }
.ptype.trait-good, .off-opt.trait-good { border-color: #e5484d; box-shadow: inset 0 0 0 1px #e5484d; color: #ffb4ab; }
.ptype.trait-bad, .off-opt.trait-bad { border-color: #5a8de6; box-shadow: inset 0 0 0 1px #5a8de6; color: #a8c8ff; }
/* 走力 */
.speed { font-weight: 700; }
.speed.fast { color: #ffb43a; }
.speed.slow { color: #8fa597; }
.def-opt:disabled { opacity: .4; cursor: not-allowed; }

/* 軍々軍師の打席（読みの軍師） */
.badge.gunshi { background: #12324a; color: #8fd0ff; }
.gunshi-bat { margin: 4px 0; padding: 4px 8px; border-left: 3px solid #8fd0ff; background: rgba(143, 208, 255, .08);
  font-size: 12px; color: #cfe8ff; }

/* 試合後の振り返り */
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.sum-box { border: 1px solid #2d4537; border-radius: 6px; padding: 8px; background: rgba(255, 255, 255, .03); }
.sum-h { font-size: 12px; color: #8fa597; margin-bottom: 2px; }
.turning { margin-top: 8px; text-align: left; border-left: 3px solid #ffb43a; padding: 6px 10px; background: rgba(255, 180, 58, .08); }
.turn-kind { font-weight: 900; color: #ffb43a; }
.gunshi-today { margin-top: 8px; text-align: left; border-left: 3px solid #8fd0ff; padding: 6px 10px; background: rgba(143, 208, 255, .08); }
.tips { text-align: left; margin: 8px 0; padding-left: 20px; font-size: 13px; }
@media (max-width: 600px) { .summary-grid { grid-template-columns: 1fr; } }
/* 軍々軍師の通算成績（実績の画面） */
.career { border: 1px solid #2d4537; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
.career h3 { margin: 0 0 6px; font-size: 15px; color: #f2c14e; }
.career-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.career-grid > div { display: flex; flex-direction: column; background: rgba(255, 255, 255, .03); border-radius: 6px; padding: 6px; }
.career-grid b { font-size: 18px; }
.career-grid small { font-size: 11px; color: #8fa597; }
@media (max-width: 600px) { .career-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 1球の演出 ---------- */
.anim-setting { font-size: 12px; color: var(--muted); }
.anim-setting select { font-size: 12px; background: #142019; color: var(--text); border: 1px solid #2d4537; border-radius: 4px; padding: 1px 4px; }
.pa-layer { position: absolute; inset: 0; z-index: 5; pointer-events: auto; cursor: pointer; overflow: visible; }
.pa-layer.pa-out { opacity: 0; transition: opacity .12s; }
.pa-ball {
  position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #e8e8e8 55%, #bdbdbd);
  box-shadow: 0 0 10px rgba(255, 255, 255, .55), 0 2px 4px rgba(0, 0, 0, .5);
  will-change: transform;
}
.pa-ball::after { /* 縫い目 */
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  border-left: 2px solid #d4483e; border-right: 2px solid #d4483e; opacity: .8;
}
.pa-target {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  border: 2px dashed rgba(242, 193, 78, .9);
}
.pa-target.missed { border-color: rgba(255, 255, 255, .55); }
.pa-miss { position: absolute; left: 0; top: 0; pointer-events: none; }
.pa-miss line { stroke: rgba(255, 255, 255, .6); stroke-width: 2; stroke-dasharray: 4 3; }
.pa-type {
  position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  background: rgba(0, 0, 0, .65); color: #fff; font-weight: 900; font-size: 13px; padding: 2px 10px; border-radius: 10px;
  white-space: nowrap;
}
.pa-ring {
  position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  border: 3px solid #fff; animation: pa-ring .45s ease-out forwards;
}
@keyframes pa-ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.pa-result {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: rgba(0, 0, 0, .78); border-radius: 8px; padding: 4px 12px; white-space: nowrap;
  animation: pa-pop .18s ease-out;
}
.pa-result b { font-size: 20px; font-weight: 900; }
.pa-result small { font-size: 11px; color: #cfd8d2; }
@keyframes pa-pop { from { transform: translateX(-50%) scale(.6); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
/* 結果の色：ストライク・空振り・アウト＝黄、ボール・四死球＝水色、ファウル＝橙、安打＝赤 */
.pa-result.strike b, .pa-result.whiff b, .pa-result.out b { color: #f2c14e; }
.pa-result.ball b, .pa-result.walk b { color: #8fd0ff; }
.pa-result.foul b { color: #ffb43a; }
.pa-result.hit b { color: #ff6b6b; }
.pa-ring.hit { border-color: #ff6b6b; } .pa-ring.ball, .pa-ring.walk { border-color: #8fd0ff; }
.pa-ring.strike, .pa-ring.whiff, .pa-ring.out { border-color: #f2c14e; } .pa-ring.foul { border-color: #ffb43a; }
@media (max-width: 600px) { .pa-result b { font-size: 17px; } .anim-setting { order: 9; } }

/* ---------- 投球に集中できる画面（情報は引き出しにしまう） ---------- */
.status-row { display: none; }   /* カウント・走者はコースの表の上（.situ）に大きく出す */
.main-grid { display: block; }
.pitch-panel { max-width: 560px; margin: 0 auto; }
.focus-bar { display: flex; gap: 6px; margin-bottom: 8px; }
.focus-bar .drawer-btn { flex: 1; font-size: 13px; padding: 6px 8px; }
.drawer-btn.active { border-color: var(--accent); color: var(--accent); }
.drawer-btn.alert { border-color: var(--danger); color: #ffb4ab; }
.drawer {
  position: fixed; top: 0; bottom: 0; width: min(400px, 92vw); z-index: 15; overflow-y: auto;
  margin: 0; border-radius: 0; transition: transform .22s ease; box-shadow: 0 0 24px rgba(0, 0, 0, .6);
}
.drawer.no-anim { transition: none; }
.drawer-left { left: 0; transform: translateX(-102%); }
.drawer-right { right: 0; transform: translateX(102%); }
.drawer.open { transform: none; }
.drawer-close { display: block; margin: 0 0 8px auto; font-size: 12px; padding: 4px 10px; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 14; }
.mini-pitcher {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer;
  font-size: 12px; color: var(--muted); padding: 4px 8px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 6px;
}
.mini-pitcher b { color: var(--text); }
.mini-pitcher .mini-open { color: var(--accent); white-space: nowrap; }
.mini-pitcher.warn { border-color: var(--danger); color: #ffb4ab; }

/* カウント・アウト・走者（大きく） */
.situ { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 4px 0 8px; flex-wrap: wrap; }
.situ-inn { font-size: 22px; font-weight: 900; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.situ-inn small { font-size: 11px; color: var(--muted); font-weight: 700; }
.situ-bso { display: grid; grid-template-columns: auto auto; gap: 3px 8px; align-items: center; font-family: "DotGothic16", monospace; font-size: 15px; }
.situ-bso .dots { display: flex; gap: 5px; }
.situ-bso .dot { width: 16px; height: 16px; }
.situ-bases { position: relative; width: 76px; height: 60px; }
.situ-bases .base { width: 20px; height: 20px; }
.situ-bases .base.b2 { left: 28px; top: 2px; } .situ-bases .base.b3 { left: 6px; top: 22px; } .situ-bases .base.b1 { right: 6px; top: 22px; }
.situ-bases .base.home { left: 30px; top: 42px; width: 14px; height: 14px; background: #cfe3d6; border-color: #cfe3d6; }
.situ-score { font-size: 12px; color: var(--muted); }
.situ-score b { color: var(--text); font-size: 15px; }

/* 配球の流れ（番号＋球種、投げた順の線） */
.mark { z-index: 2; }
.mark-type {
  position: absolute; right: 2px; bottom: 1px; z-index: 2; font-size: 9px; font-weight: 700; line-height: 1.2;
  color: #fff; background: rgba(0, 0, 0, .55); border-radius: 3px; padding: 0 2px; pointer-events: none;
}
.pitch-seq { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 1; overflow: visible; }
.pitch-seq line { stroke: rgba(255, 255, 255, .55); stroke-width: 2; stroke-dasharray: 5 3; }
.pitch-seq line.last { stroke: #f2c14e; stroke-dasharray: none; }

/* イニングの切り替えのカットイン */
.cutin { position: fixed; left: 0; right: 0; top: 38%; z-index: 22; pointer-events: none; opacity: 0; }
.cutin.show { animation: cutin-in 1.5s ease forwards; }
.cutin-band {
  margin: 0 auto; padding: 14px 16px; text-align: center; color: #fff;
  background: linear-gradient(90deg, transparent, rgba(10, 18, 13, .95) 15%, rgba(10, 18, 13, .95) 85%, transparent);
  border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
}
.cutin.off .cutin-band { border-color: #8fd0ff; }
.cutin-title { font-family: "DotGothic16", sans-serif; font-size: clamp(32px, 8vw, 52px); letter-spacing: 6px; color: var(--accent); }
.cutin.off .cutin-title { color: #8fd0ff; }
.cutin-sub { font-size: 14px; font-weight: 700; margin-top: 2px; }
@keyframes cutin-in {
  0% { opacity: 0; transform: translateX(-30%) skewX(-12deg); }
  15% { opacity: 1; transform: translateX(0) skewX(0); }
  80% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(20%); }
}

/* 三振・得点・本塁打の大きな文字 */
.burst {
  position: fixed; left: 50%; top: 42%; z-index: 22; pointer-events: none; opacity: 0;
  transform: translate(-50%, -50%); text-align: center; display: flex; flex-direction: column; align-items: center;
}
.burst b { font-size: clamp(40px, 11vw, 72px); font-weight: 900; letter-spacing: 2px; -webkit-text-stroke: 2px #000; text-shadow: 0 4px 16px rgba(0, 0, 0, .8); }
.burst small { font-size: 16px; font-weight: 700; background: rgba(0, 0, 0, .7); padding: 2px 12px; border-radius: 10px; margin-top: 4px; }
.burst.gold b { color: #f2c14e; } .burst.good b { color: #7ee08a; } .burst.bad b { color: #ff6b6b; }
.burst.show { animation: burst-pop 1.3s ease forwards; }
@keyframes burst-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  25% { transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -60%) scale(1); }
}
/* 点が入った回の数字を光らせる */
.scoreboard td.flash { animation: score-flash 1.6s ease; }
@keyframes score-flash { 0%, 40%, 80% { background: rgba(242, 193, 78, .7); color: #000; } 20%, 60%, 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .cutin.show, .burst.show { animation-duration: .8s; } }

/* シーズン：ホーム試合のおまかせ */
.auto-row { display: flex; gap: 6px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.auto-row .btn { font-size: 12px; padding: 5px 10px; }
.res-row .tag { margin-left: 6px; font-size: 11px; }

/* 疲れの注意：ふだんは1行（押すと詳しく） */
.pitcher-warn.compact { padding: 5px 10px; }
.pitcher-warn.compact .warn-title { cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.pitcher-warn.compact .toggle { color: var(--muted); font-weight: 400; white-space: nowrap; }
.pitcher-warn.compact .warn-body { display: none; margin-top: 6px; }
.pitcher-warn.compact.open .warn-body { display: block; }
.pitcher-warn.compact .warn-body .btn { margin-top: 6px; font-size: 12px; padding: 4px 10px; }

/* 設定のメニュー */
.settings-wrap { position: relative; }
.settings-pop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 16; min-width: 240px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); font-size: 13px;
}
.settings-pop.hidden { display: none; }
.settings-pop label { display: flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.settings-pop select { font-size: 12px; background: #142019; color: var(--text); border: 1px solid #2d4537; border-radius: 4px; padding: 1px 4px; }

/* 1〜6回のダイジェスト */
.digest { position: fixed; inset: 0; z-index: 21; background: rgba(2, 4, 3, .9); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; padding: 16px; cursor: pointer; }
.digest.hidden { display: none; }
.digest-card { width: min(520px, 100%); text-align: center; border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  padding: 18px 12px; background: linear-gradient(90deg, transparent, rgba(30, 58, 42, .9) 15%, rgba(30, 58, 42, .9) 85%, transparent);
  animation: digest-in .35s ease; }
.digest-card.away { border-color: #8fd0ff; }
.digest-card.final { border-color: #fff; }
.digest-kicker { font-size: 11px; color: var(--muted); letter-spacing: 2px; }
.digest-head { font-size: clamp(22px, 6vw, 32px); font-weight: 900; margin: 6px 0 8px; }
.digest-line { font-size: 15px; margin-top: 4px; opacity: 0; animation: digest-line .3s ease forwards; }
.digest-line:nth-child(4) { animation-delay: .35s; } .digest-line:nth-child(5) { animation-delay: .7s; } .digest-line:nth-child(6) { animation-delay: 1.05s; }
.digest-skip { font-size: 12px; padding: 5px 14px; }
@keyframes digest-in { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes digest-line { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.auto-row { align-items: center; }
.auto-row label { font-size: 13px; }
.auto-row input[type="number"] { width: 4.2em; font-size: 14px; padding: 2px 4px; background: #142019; color: var(--text);
  border: 1px solid #2d4537; border-radius: 4px; text-align: right; }
.auto-row .meta { font-size: 11px; width: 100%; text-align: center; }

/* ---------- 1球ごとの記録（球種・コース・結果・反応／読み） ---------- */
.prow-main { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.prow-main .zone-txt { font-size: 13px; }
.prow-main .cnt { font-size: 11px; color: var(--muted); margin-left: auto; font-family: "DotGothic16", monospace; }
.prow-main .dev { font-size: 11px; color: #ffb4ab; }
.prow-read { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 3px; }
.prow-read .meta { font-size: 11px; }
.pitch-row .hint { margin-top: 2px; font-size: 12px; color: #cfe3d6; }
.tpill { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 9px; background: #2b3b31; color: #fff; white-space: nowrap; }
.tpill.t0 { background: #8a3b3b; } .tpill.t1 { background: #8a5a2b; } .tpill.t2 { background: #2b5f8a; } .tpill.t3 { background: #5b3b8a; }
.tpill.t4 { background: #2b7a5a; } .tpill.t5 { background: #6a6a2b; } .tpill.t6 { background: #8a2b6a; }
.rbadge { font-size: 12px; font-weight: 900; padding: 1px 6px; border-radius: 4px; border: 1px solid currentColor; white-space: nowrap; }
.rbadge.strike, .rbadge.whiff, .rbadge.out { color: #f2c14e; } .rbadge.ball, .rbadge.walk { color: #8fd0ff; }
.rbadge.foul { color: #ffb43a; } .rbadge.hit { color: #ff6b6b; } .rbadge.neutral { color: var(--muted); }
.read { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 9px; white-space: nowrap; }
.read.ok { background: rgba(126, 224, 138, .18); color: #7ee08a; } .read.ng { background: rgba(255, 107, 107, .15); color: #ff9b9b; }
.read.perfect { background: #f2c14e; color: #000; } .read.na { background: #2b3b31; color: var(--muted); }
.pa-result em { font-style: normal; font-size: 12px; font-weight: 700; color: #f2c14e; margin-top: 1px; }
.reads-total { font-size: 12px; font-weight: 700; color: #f2c14e; margin-top: 3px; }
.chip-read { display: block; color: #f2c14e; }
/* 攻撃のスカウティング：相手投手の配球 */
.scout-pitcher { margin-bottom: 10px; }
.mix-row { display: grid; grid-template-columns: 6em 1fr 3em; align-items: center; gap: 6px; font-size: 12px; margin: 2px 0; }
.mix-bar { height: 8px; background: #2b3b31; border-radius: 4px; overflow: hidden; }
.mix-bar i { display: block; height: 100%; background: var(--accent); }
.mix-p { text-align: right; color: var(--muted); }
.mix-sub { font-size: 12px; color: #cfe3d6; margin-top: 4px; }

/* 色だけに頼らない「得」「苦」の印 */
.tmark { position: absolute; left: 2px; top: 1px; font-size: 9px; font-weight: 900; line-height: 1; color: #fff; opacity: .85; pointer-events: none; }
.tmark-inline { display: inline-block; font-size: 10px; font-weight: 900; margin-right: 3px; padding: 0 3px; border-radius: 3px; background: rgba(0, 0, 0, .35); }
.trait-good .tmark-inline { color: #ffb4ab; } .trait-bad .tmark-inline { color: #a8c8ff; }
/* お知らせの帯（相手の投手交代など） */
.notice {
  position: fixed; left: 50%; top: 12px; z-index: 23; transform: translate(-50%, -150%); opacity: 0; pointer-events: none;
  background: rgba(10, 18, 13, .96); border: 1px solid #8fd0ff; border-radius: 10px; padding: 8px 16px; text-align: center;
  display: flex; flex-direction: column; gap: 2px; max-width: calc(100vw - 24px); transition: transform .3s ease, opacity .3s ease;
}
.notice.show { transform: translate(-50%, 0); opacity: 1; }
.notice b { color: #8fd0ff; font-size: 15px; }
.notice span { font-size: 12px; color: #cfe3d6; }
/* 引き継ぎ */
.transfer-code { margin: 8px 0; text-align: center; }
.transfer-code .code { font-family: "DotGothic16", monospace; font-size: 28px; letter-spacing: 3px; color: var(--accent); user-select: all; }
.transfer-row { display: flex; gap: 6px; }
.transfer-row input { flex: 1; font-size: 16px; padding: 6px 8px; background: #142019; color: var(--text); border: 1px solid #2d4537;
  border-radius: 6px; text-transform: uppercase; letter-spacing: 2px; }

/* 打球の傾向（引っ張り・センター・流し） */
.spray { font-size: 11px; color: #cfe3d6; margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.spray b { color: var(--text); }
.spray-bar { display: inline-flex; width: 60px; height: 7px; border-radius: 4px; overflow: hidden; background: #2b3b31; }
.spray-bar i { display: block; height: 100%; }
.spray-bar .pull { background: #e5a54d; } .spray-bar .center { background: #9fb3a6; } .spray-bar .oppo { background: #5a8de6; }
/* 打球の行方（1球の演出の結果の中の小さな球場の図） */
.pa-res-row { display: flex; align-items: center; gap: 8px; }
.pa-res-text { display: flex; flex-direction: column; align-items: flex-start; }
.pa-field { width: 64px; height: 52px; flex: none; }
.pf-grass { fill: #1e4a2c; stroke: #cfe3d6; stroke-width: 1; }
.pf-infield { fill: #6b4f2a; stroke: #cfe3d6; stroke-width: .8; }
.pf-arrow { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: pf-draw .45s ease-out forwards; }
.pf-dot { fill: #fff; opacity: 0; animation: pf-dot .2s .4s ease-out forwards; }
.pf-arrow.hit { stroke: #ff6b6b; } .pf-dot.hit { fill: #ff6b6b; }
.pf-arrow.out { stroke: #f2c14e; } .pf-dot.out { fill: #f2c14e; }
@keyframes pf-draw { to { stroke-dashoffset: 0; } }
@keyframes pf-dot { to { opacity: 1; } }

/* 守備のおまかせ */
.auto-def { display: flex; gap: 6px; margin: 6px 0 2px; }
.auto-def .btn { flex: 1; font-size: 12px; padding: 5px 8px; }
/* 最近の試合 */
.recent-box { max-width: 900px; margin: 0 auto 14px; }
.recent-games { display: flex; flex-direction: column; gap: 4px; }
.recent-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; }
.recent-item:hover { border-color: var(--accent); }
.recent-item .o { font-weight: 900; width: 1.6em; text-align: center; }
.recent-item .o.win { color: #7ee08a; } .recent-item .o.lose { color: #ff6b6b; } .recent-item .o.draw { color: var(--muted); }
.ri-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ri-main small { color: var(--muted); font-size: 11px; }
.ri-when { font-size: 11px; color: var(--muted); white-space: nowrap; }
#history-card .scoreboard { margin: 8px 0; overflow-x: auto; }

/* 遊び方：タブと目次 */
.help-tabs { display: flex; gap: 4px; flex-wrap: wrap; position: sticky; top: 0; z-index: 1; background: var(--panel); padding: 4px 0 6px; }
.help-pane.hidden { display: none; }
.help-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.help-toc a { font-size: 12px; color: var(--accent); text-decoration: none; border: 1px solid #4a6655; border-radius: 12px; padding: 2px 10px; }
.help-toc a:hover { border-color: var(--accent); }
.help-sec { scroll-margin-top: 44px; }

/* ---------- 文字を大きく（設定）：13px以下の文字を2pxずつ大きくする ---------- */
html.big-text .game-item .date { font-size: 14px; }
html.big-text .scoreboard th { font-size: 14px; }
html.big-text .sec-title { font-size: 15px; }
html.big-text .scout-row .hand { font-size: 14px; }
html.big-text .ab-chip { font-size: 14px; }
html.big-text .half h4 { font-size: 15px; }
html.big-text .replay-ab { font-size: 14px; }
html.big-text .log-item { font-size: 14px; }
html.big-text .batter-card .meta { font-size: 14px; }
html.big-text .box-side { font-size: 14px; }
html.big-text .mark { font-size: 13px; }
html.big-text .zone-note { font-size: 13px; }
html.big-text .pitch-row { font-size: 14px; }
html.big-text .diff-label { font-size: 14px; }
html.big-text .diff-desc { font-size: 14px; }
html.big-text .diff-badge { font-size: 14px; }
html.big-text .stance { font-size: 14px; }
html.big-text .badge { font-size: 13px; }
html.big-text .best-pitch { font-size: 14px; }
html.big-text .traits { font-size: 13px; }
html.big-text .runner-box { font-size: 14px; }
html.big-text .runner-box .btn { font-size: 14px; }
html.big-text .defense-box { font-size: 14px; }
html.big-text .def-opt { font-size: 14px; }
html.big-text .review { font-size: 14px; }
html.big-text .aim-hint { font-size: 14px; }
html.big-text .game-bar .meta { font-size: 14px; }
html.big-text .link-btn { font-size: 14px; }
html.big-text .pitcher-warn { font-size: 14px; }
html.big-text .warn-title { font-size: 15px; }
html.big-text .last-ab { font-size: 14px; }
html.big-text .ab-title { font-size: 14px; }
html.big-text .pcard .meta { font-size: 14px; }
html.big-text .kv { font-size: 14px; }
html.big-text .tag { font-size: 13px; }
html.big-text .bp-item .meta { font-size: 13px; }
html.big-text .bp-item .btn { font-size: 14px; }
html.big-text .debug-toggle { font-size: 14px; }
html.big-text .overlay-card ul { font-size: 15px; }
html.big-text .toast .sub { font-size: 14px; }
html.big-text .save-item { font-size: 15px; }
html.big-text .next-card .label { font-size: 14px; }
html.big-text .ha { font-size: 13px; }
html.big-text .res-row { font-size: 15px; }
html.big-text .tbl { font-size: 15px; }
html.big-text .stat-tile .k { font-size: 13px; }
html.big-text .help-body { font-size: 15px; }
html.big-text .last-ab .toggle { font-size: 13px; }
html.big-text .off-sec .lbl { font-size: 14px; }
html.big-text .off-opt { font-size: 14px; }
html.big-text .off-banner { font-size: 15px; }
html.big-text .forecast { font-size: 14px; }
html.big-text .title-card h4 { font-size: 15px; }
html.big-text .title-card .row { font-size: 14px; }
html.big-text .title-card .empty { font-size: 14px; }
html.big-text .detail-box { font-size: 14px; }
html.big-text .detail-box h4 { font-size: 14px; }
html.big-text .detail-box .note { font-size: 13px; }
html.big-text .scoreboard td.team { font-size: 14px; }
html.big-text .pos { font-size: 13px; }
html.big-text .op-back-name { font-size: 14px; }
html.big-text .op-nc-role { font-size: 15px; }
html.big-text .op-nc-en { font-size: 13px; }
html.big-text .op-caption { font-size: 15px; }
html.big-text .op-note-small { font-size: 13px; }
html.big-text .op-footer { font-size: 14px; }
html.big-text .post-row { font-size: 15px; }
html.big-text .post-name { font-size: 14px; }
html.big-text .post-row .meta { font-size: 13px; }
html.big-text .ach-head { font-size: 14px; }
html.big-text .gunshi-bat { font-size: 14px; }
html.big-text .sum-h { font-size: 14px; }
html.big-text .tips { font-size: 15px; }
html.big-text .career-grid small { font-size: 13px; }
html.big-text .anim-setting { font-size: 14px; }
html.big-text .anim-setting select { font-size: 14px; }
html.big-text .pa-type { font-size: 15px; }
html.big-text .pa-result small { font-size: 13px; }
html.big-text .focus-bar .drawer-btn { font-size: 15px; }
html.big-text .drawer-close { font-size: 14px; }
html.big-text .mini-pitcher { font-size: 14px; }
html.big-text .situ-inn small { font-size: 13px; }
html.big-text .situ-score { font-size: 14px; }
html.big-text .mark-type { font-size: 11px; }
html.big-text .auto-row .btn { font-size: 14px; }
html.big-text .res-row .tag { font-size: 13px; }
html.big-text .pitcher-warn.compact .warn-body .btn { font-size: 14px; }
html.big-text .settings-pop { font-size: 15px; }
html.big-text .settings-pop select { font-size: 14px; }
html.big-text .digest-kicker { font-size: 13px; }
html.big-text .digest-skip { font-size: 14px; }
html.big-text .auto-row label { font-size: 15px; }
html.big-text .auto-row .meta { font-size: 13px; }
html.big-text .prow-main .zone-txt { font-size: 15px; }
html.big-text .prow-main .cnt { font-size: 13px; }
html.big-text .prow-main .dev { font-size: 13px; }
html.big-text .prow-read .meta { font-size: 13px; }
html.big-text .pitch-row .hint { font-size: 14px; }
html.big-text .tpill { font-size: 13px; }
html.big-text .rbadge { font-size: 14px; }
html.big-text .read { font-size: 13px; }
html.big-text .pa-result em { font-size: 14px; }
html.big-text .reads-total { font-size: 14px; }
html.big-text .mix-row { font-size: 14px; }
html.big-text .mix-sub { font-size: 14px; }
html.big-text .tmark { font-size: 11px; }
html.big-text .tmark-inline { font-size: 12px; }
html.big-text .notice span { font-size: 14px; }
html.big-text .spray { font-size: 13px; }
html.big-text .auto-def .btn { font-size: 14px; }
html.big-text .ri-main small { font-size: 13px; }
html.big-text .ri-when { font-size: 13px; }
html.big-text .help-toc a { font-size: 14px; }
/* 今日の一戦 */
.daily-box { margin: 12px auto 16px; padding: 14px 16px; border: 2px solid var(--accent, #f0b429); border-radius: 12px;
  background: rgba(240, 180, 41, .07); max-width: 760px; }
.daily-box h2 { margin: 0 0 8px; font-size: 18px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.daily-date { font-size: 14px; color: var(--accent, #f0b429); }
.daily-streak { font-size: 12px; font-weight: 400; color: var(--muted, #8a9a8a); }
.daily-game { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; margin-bottom: 6px; }
.daily-result { margin: 8px 0 10px; }
.daily-rank { margin: 4px 0; font-size: 15px; }
.daily-dist { margin: 4px 0 8px; font-size: 12px; }
.daily-dist-row { display: grid; grid-template-columns: 4.5em 1fr 6.5em; gap: 6px; align-items: center; }
.daily-dist-row .bar { background: rgba(128, 128, 128, .2); height: 8px; border-radius: 4px; overflow: hidden; }
.daily-dist-row .bar i { display: block; height: 100%; background: var(--muted, #8a9a8a); }
.daily-dist-row.mine { font-weight: 700; color: var(--accent, #f0b429); }
.daily-dist-row.mine .bar i { background: var(--accent, #f0b429); }
.daily-finish { margin: 12px 0; text-align: left; }

/* 広告（タイトル画面の下・試合終了の画面の下。ボタンと離すため上に余白） */
.ad-box { margin: 48px auto 8px; max-width: 760px; min-height: 60px; }
#ad-result { margin-top: 72px; padding-top: 16px; border-top: 1px solid rgba(128,128,128,.3); }
.ad-label { font-size: 10px; color: var(--muted, #8a9a8a); text-align: center; margin-bottom: 2px; }
.ad-preview { height: 100px; border: 1px dashed #888; display: flex; align-items: center; justify-content: center; color: #888; font-size: 12px; }
.title-foot { text-align: center; font-size: 11px; color: var(--muted, #8a9a8a); margin: 16px 0 24px; }
.title-foot a { color: inherit; }
.def-fit { margin-left: 4px; font-size: 10px; padding: 0 5px; border-radius: 8px; background: #2e7d32; color: #fff; }
.def-fit.bad { background: #8d6e63; }
