/* ドラ1の答え合わせ: 見た目はアプリ(public/hakkyu-nenkan/style.css)の色・文字・角の値をそのまま使う。ここで新しく決めるのは、
   引退記事のカード(.np)と、早送りの年表(.tl)の形だけ。 */
@font-face { font-family: "M PLUS Rounded 1c"; src: url("/fonts/mplus-rounded-500.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "M PLUS Rounded 1c"; src: url("/fonts/mplus-rounded-800.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "M PLUS Rounded 1c"; src: url("/fonts/mplus-rounded-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Dela Gothic One"; src: url("/fonts/dela-gothic-one.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DotGothic16"; src: url("/fonts/dotgothic16.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #f8fbff; --card: #ffffff; --paper2: #e6efff; --rule: #c9dbfc;
  --navy: #1c2337; --navy-deep: #141a2a; --on-navy2: #c9d0e0;
  --ink: #1c2337; --ink2: #4f5d76;
  --pop: #ff5a36; --shu: #c93a17; --shu-deep: #a92e10; --shu-soft: #ffeee8;
  --sun: #ffc93c; --sun-deep: #e0a91c; --mine: #fff3c9;
  --good: #1f7a4d; --good-soft: #e3f2e9; --sky: #dff3ff;
  --card-radius: 18px; --card-radius-sm: 14px; --card-shadow: 0 2px 0 var(--rule);
  --slant: 14px; --slant-s: 8px;
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --num: "Outfit", var(--round);
  --display: "Dela Gothic One", var(--round);
  --dot: "DotGothic16", ui-monospace, monospace;
  --team: var(--navy); --team-ink: #fff;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body { font-family: var(--round); font-weight: 500; font-size: 15px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; line-break: strict; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
.nb { white-space: nowrap; }
.num { font-family: var(--num); font-weight: 700; font-variant-numeric: tabular-nums; }

#app { max-width: 480px; margin: 0 auto; padding: 0 16px calc(96px + env(safe-area-inset-bottom, 0px)); min-height: 100vh; }

/* ---- the top bar: the navy of the broadcast's graphics, the game's name ---- */
.bar { display: flex; align-items: center; gap: 10px; margin: 0 -16px 16px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: var(--navy); color: #fff; }
.bar-t { font-family: var(--display); font-size: 17px; letter-spacing: 0.02em; transform: skewX(-8deg); white-space: nowrap; }
.bar-s { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--on-navy2); white-space: nowrap; }

/* ---- the buttons (the app's: the coral main, the white plain, cut corners) ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 20px; border: 0; border-radius: 14px; background: var(--card); box-shadow: 0 3px 0 var(--rule); font-weight: 900; font-size: 16px; color: var(--ink); text-decoration: none; text-align: center; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--rule); }
.btn.main { background: var(--shu); color: #fff; box-shadow: 0 3px 0 var(--shu-deep); }
.btn.main:active { box-shadow: 0 1px 0 var(--shu-deep); }
.btn:disabled { background: var(--paper2); color: var(--ink2); box-shadow: 0 3px 0 var(--rule); transform: none; cursor: default; }
.btn.dark { background: var(--navy); color: #fff; box-shadow: 0 3px 0 var(--navy-deep); }
.btn.x { background: #000; color: #fff; box-shadow: 0 3px 0 #444; }
.btn.wide { width: 100%; }
.btn small { font-weight: 800; font-size: 11px; opacity: 0.85; }
.btn.stack { flex-direction: column; gap: 0; line-height: 1.25; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(rgba(248, 251, 255, 0), var(--paper) 30%); }
.dock > * { max-width: 448px; margin: 0 auto; display: flex; }
.dock .btn { width: 100%; }

/* ---- the plate: a heading on a navy band with a slanted end (the app's heading plate) ---- */
.plate { display: inline-block; margin: 4px 0 10px; padding: 4px 22px 4px 12px; background: var(--navy); color: #fff; font-weight: 900; font-size: 13px; clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant-s)) 100%, 0 100%); }
.lead { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.muted { color: var(--ink2); }
.small { font-size: 12px; }

/* ---- the opening ---- */
.hero { margin: 8px 0 18px; text-align: center; }
.hero-k { display: inline-block; padding: 3px 14px; border-radius: 999px; background: var(--sun); font-weight: 900; font-size: 12px; }
.hero-t { margin: 12px 0 4px; font-family: var(--display); font-size: clamp(38px, 12.5vw, 54px); line-height: 1.12; letter-spacing: 0.01em; }
.hero-t span { display: inline-block; transform: skewX(-8deg); }
.hero-t em { font-style: normal; color: var(--shu); }
.hero-s { font-size: 13px; font-weight: 800; color: var(--ink2); }
.club { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--card-radius); background: var(--card); box-shadow: var(--card-shadow); }
.mark { flex: none; display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--c, var(--navy)); color: var(--ci, #fff); font-weight: 900; font-size: 28px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18); }
.mark.s { width: 22px; height: 22px; border-radius: 6px; font-size: 13px; box-shadow: none; }
.club-n { font-size: 20px; font-weight: 900; line-height: 1.25; }
.club-l { font-size: 12px; font-weight: 800; color: var(--ink2); }
.steps { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.steps li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; font-weight: 700; }
.steps b { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-family: var(--num); }

/* ---- the candidates: one card each ---- */
.cands { display: grid; gap: 10px; }
.cand { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; width: 100%; padding: 12px 12px 12px; border: 3px solid transparent; border-radius: var(--card-radius); background: var(--card); box-shadow: var(--card-shadow); text-align: left; }
.cand[aria-pressed="true"] { border-color: var(--shu); background: var(--shu-soft); }
.cand-face { grid-row: span 3; width: 64px; height: 64px; }
.face { display: block; overflow: hidden; border-radius: 12px; background: #e9e2d2; }
.face svg { display: block; width: 100%; height: 100%; }
.cand-top { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.cand-n { font-size: 18px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cand-p { flex: none; font-size: 12px; font-weight: 800; color: var(--ink2); }
.cand-s { font-size: 12px; font-weight: 700; color: var(--ink2); }
.cand-note { grid-column: 1 / -1; margin-top: 4px; padding: 6px 10px; border-radius: 10px; background: var(--paper2); font-size: 13px; font-weight: 800; }
.cand-note::before { content: "スカウト"; margin-right: 6px; padding: 1px 6px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 10px; vertical-align: 1px; }
.cand-r { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.rt { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px 2px 3px; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--rule); font-size: 11px; font-weight: 800; white-space: nowrap; }
.rt b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 3px; border-radius: 6px; background: var(--g, var(--paper2)); color: var(--gi, var(--ink)); font-family: var(--num); font-weight: 900; font-size: 12px; }
.rt.hide b { background: transparent; color: var(--ink2); box-shadow: inset 0 0 0 1.5px var(--rule); }
.rt.big { font-size: 12px; }
.rt.big b { min-width: 24px; height: 24px; font-size: 14px; }
.buzz { position: absolute; top: -8px; right: 10px; padding: 2px 10px; border-radius: 999px; background: var(--sun); font-size: 11px; font-weight: 900; box-shadow: 0 2px 0 var(--sun-deep); }

/* ---- the draft meeting: the bids read out, then the lottery ---- */
.bids { margin: 0; padding: 0; list-style: none; border-radius: var(--card-radius); background: var(--card); box-shadow: var(--card-shadow); overflow: hidden; }
.bids li { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border-top: 1px solid var(--paper2); font-size: 14px; font-weight: 800; opacity: 0; transform: translateX(-8px); transition: opacity 0.2s, transform 0.2s; }
.bids li:first-child { border-top: 0; }
.bids li.on { opacity: 1; transform: none; }
.bids li.me { background: var(--mine); }
.bids li.same .bid-n { color: var(--shu); }
.bid-c { width: 7em; flex: none; font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bid-n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.verdict { margin: 16px 0; padding: 14px 16px; border-radius: var(--card-radius); background: var(--navy); color: #fff; text-align: center; }
.verdict b { display: block; font-family: var(--display); font-size: 26px; line-height: 1.25; }
.verdict.win { background: var(--shu); }
.verdict span { font-size: 13px; font-weight: 800; opacity: 0.9; }
.lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 12px 0; }
.lot { position: relative; height: 108px; border-radius: 12px; background: var(--card); box-shadow: 0 3px 0 var(--rule); display: grid; place-items: center; text-align: center; font-size: 12px; font-weight: 900; padding: 8px 4px; }
.lot .mark { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; }
.lot.shake { animation: shake 0.5s ease-in-out infinite; }
.lot.won { background: var(--sun); box-shadow: 0 3px 0 var(--sun-deep); }
.lot.won::after { content: "交渉権確定"; position: absolute; left: 4px; right: 4px; bottom: 6px; font-size: 11px; color: var(--shu); }
.lot.mine { outline: 3px solid var(--shu); outline-offset: 2px; }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }

/* ---- the years: the yearbook turned a page a year ---- */
.who { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; margin: 0 -16px 10px; padding: 10px 16px; background: var(--paper); box-shadow: 0 2px 0 var(--rule); }
.who .face { flex: none; width: 48px; height: 48px; }
.who-t { min-width: 0; flex: 1; }
.who-n { font-size: 17px; font-weight: 900; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-s { font-size: 12px; font-weight: 800; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tot { flex: none; text-align: right; }
.tot-v { font-family: var(--dot); font-size: 22px; line-height: 1; }
.tot-l { font-size: 10px; font-weight: 800; color: var(--ink2); }
.tl { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.yr { display: grid; grid-template-columns: 52px 1fr; gap: 2px 10px; padding: 8px 12px; border-radius: var(--card-radius-sm); background: var(--card); box-shadow: var(--card-shadow); animation: page 0.35s ease-out; }
.yr.farm { background: var(--paper2); box-shadow: none; }
.yr-y { grid-row: span 2; font-family: var(--dot); font-size: 18px; line-height: 1.1; }
.yr-y small { display: block; font-family: var(--round); font-size: 11px; font-weight: 800; color: var(--ink2); }
.yr-l { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; font-weight: 800; }
.yr-l .lv { flex: none; padding: 0 6px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 11px; }
.yr.farm .lv { background: var(--ink2); }
.yr-l .st { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yr-e { display: flex; flex-wrap: wrap; gap: 4px; }
.ev { padding: 1px 8px; border-radius: 999px; background: var(--paper2); font-size: 12px; font-weight: 800; }
.ev.title, .ev.mile { background: var(--sun); }
.ev.award { background: var(--shu); color: #fff; }
.ev.champ { background: var(--navy); color: var(--sun); }
.ev.inc { background: var(--ink); color: #fff; }
.ev.press { background: var(--ink2); color: #fff; }
.ev.fa, .ev.move, .ev.trade { background: var(--sky); }
.ev.end { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink2); }
@keyframes page { from { opacity: 0; transform: translateY(10px) rotateX(-30deg); } to { opacity: 1; transform: none; } }

/* ---- the incident: the ticker stops, the sheet comes up ---- */
.flash { margin: 6px 0 12px; padding: 4px 12px; background: var(--shu); color: #fff; font-weight: 900; font-size: 13px; text-align: center; letter-spacing: 0.2em; animation: blink 0.8s steps(2) 3; }
@keyframes blink { 50% { opacity: 0.35; } }
.sheet { padding: 16px; border-radius: var(--card-radius); background: var(--card); box-shadow: var(--card-shadow); }
.sheet-tag { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 900; }
.sheet-t { margin: 6px 0 4px; font-size: 20px; font-weight: 900; line-height: 1.35; }
.sheet-x { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--ink2); }
.choices { display: grid; gap: 8px; }
.choice { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 12px; border: 0; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--rule), 0 3px 0 var(--rule); text-align: left; font-weight: 900; font-size: 15px; }
.choice:active { transform: translateY(2px); }
.choice .k { display: grid; place-items: center; height: 28px; border-radius: 8px; font-size: 12px; color: #fff; background: var(--navy); }
.choice.risk .k { background: var(--shu); }
.choice.strict .k { background: var(--ink); }
.choice small { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink2); }
.press-pic { display: block; width: 100%; max-width: 260px; margin: 0 auto 10px; image-rendering: pixelated; }
.say { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--paper2); font-size: 14px; font-weight: 700; }
.qa { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; }
.qa li { padding: 10px 12px; border-radius: 12px; background: var(--card); box-shadow: var(--card-shadow); font-size: 13.5px; animation: page 0.3s ease-out; }
.qa .q { font-weight: 800; color: var(--ink2); }
.qa .a { margin-top: 4px; font-weight: 900; word-break: normal; }
.qa .r { margin-top: 4px; font-size: 12px; font-weight: 800; color: var(--shu); }
.paper-head { margin: 12px 0; padding: 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 2px var(--ink); text-align: center; }
.paper-head small { display: block; font-size: 11px; font-weight: 900; color: var(--ink2); }
.paper-head b { font-family: var(--display); font-size: 21px; line-height: 1.3; }

/* ---- the card: a sports paper's retirement story ---- */
.np { position: relative; overflow: hidden; border-radius: 6px; background: #fffdf7; color: var(--ink); box-shadow: 0 0 0 1px rgba(28, 35, 55, 0.14), 0 10px 24px -12px rgba(28, 35, 55, 0.45); }
.np-mast { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--navy); color: #fff; }
.np-mast b { font-family: var(--display); font-size: 16px; transform: skewX(-8deg); white-space: nowrap; }
.np-mast span { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--on-navy2); white-space: nowrap; }
.np-band { height: 6px; background: var(--team); }
.np-in { padding: 12px 14px 14px; }
.np-head { margin: 2px 0 10px; font-family: var(--display); font-size: clamp(25px, 7.6vw, 34px); line-height: 1.2; letter-spacing: -0.01em; }
.np-head span { background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.np-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; background: var(--shu); color: #fff; clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }
.np-title small { flex: none; writing-mode: vertical-rl; font-size: 11px; font-weight: 900; letter-spacing: 0.15em; opacity: 0.9; }
.np-title b { font-family: var(--display); font-size: clamp(26px, 8.4vw, 36px); line-height: 1.1; }
.np-who { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.np-who .face { width: 96px; height: 96px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(28, 35, 55, 0.2); }
.np-n { font-size: 22px; font-weight: 900; line-height: 1.2; }
.np-p { margin-top: 2px; font-size: 12px; font-weight: 800; color: var(--ink2); }
.np-d { margin-top: 6px; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; }
.np-stat { margin: 12px 0 0; padding: 10px 0 8px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); text-align: center; }
.np-stat small { display: block; font-size: 11px; font-weight: 900; color: var(--ink2); }
.np-main { font-family: var(--num); font-weight: 800; font-size: 34px; line-height: 1.1; }
.np-main.ja { font-family: var(--round); font-weight: 900; font-size: 30px; }
.np-sub { font-size: 14px; font-weight: 800; }
.np-rows { margin: 10px 0 0; display: grid; gap: 6px; font-size: 13px; }
.np-row { display: grid; grid-template-columns: 5.2em 1fr; gap: 8px; align-items: start; }
.np-row > span { font-size: 11px; font-weight: 900; color: var(--ink2); padding-top: 2px; }
.np-row > div { display: flex; flex-wrap: wrap; gap: 4px; font-weight: 800; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 2px; border-radius: 8px; background: var(--paper2); font-size: 12px; font-weight: 800; white-space: nowrap; }
.chip.t { padding-left: 8px; background: var(--mine); }
.np-rank { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 800; font-size: 13px; }
.np-rank span { white-space: nowrap; line-height: 1.3; }
.np-rank small { display: block; font-size: 11px; color: var(--on-navy2); }
.np-rank b { flex: none; font-family: var(--num); font-size: 30px; color: var(--sun); line-height: 1; white-space: nowrap; }
.np-press { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px; border-radius: 10px; background: var(--paper2); font-size: 12px; font-weight: 800; }
.np-press svg { flex: none; width: 96px; image-rendering: pixelated; }
.np-foot { display: flex; justify-content: space-between; gap: 8px; padding: 6px 14px; border-top: 1px solid rgba(28, 35, 55, 0.15); font-size: 11px; font-weight: 800; color: var(--ink2); }
.after { display: grid; gap: 10px; margin: 16px 0; }
.after .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 374px) { .after .row2 { grid-template-columns: 1fr; } }
.after .row2 .btn { padding: 10px 8px; font-size: 15px; }
.cls { margin: 18px 0 0; }
.cls ol { margin: 0; padding: 0; list-style: none; border-radius: var(--card-radius); background: var(--card); box-shadow: var(--card-shadow); overflow: hidden; }
.cls li { display: grid; grid-template-columns: 26px 22px 1fr auto; gap: 8px; align-items: center; min-height: 40px; padding: 6px 12px; border-top: 1px solid var(--paper2); font-size: 13px; font-weight: 800; }
.cls li:first-child { border-top: 0; }
.cls li.me { background: var(--mine); }
.cls .rk { font-family: var(--num); font-weight: 900; text-align: center; }
.cls .nm { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cls .nm small { color: var(--ink2); margin-left: 4px; }
.cls .wr { font-family: var(--num); font-weight: 700; font-size: 12px; color: var(--ink2); white-space: nowrap; }
details.years { margin: 14px 0 0; }
details.years summary { padding: 10px 0; font-weight: 900; cursor: pointer; }
.note { margin: 20px 0 0; font-size: 11px; color: var(--ink2); line-height: 1.6; }
.toast { position: fixed; left: 50%; bottom: 100px; z-index: 30; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
