:root {
  color-scheme: dark;
  --bg: #07111d;
  --panel: rgba(13, 29, 47, 0.94);
  --panel-2: #102940;
  --line: rgba(147, 197, 253, 0.22);
  --text: #eef6ff;
  --muted: #a8bdd1;
  --accent: #46b3ff;
  --accent-2: #70e0bd;
  --danger: #ff8f9f;
  font-family: Inter, "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
}

/* Offseason camp / VLB2 growth */
.camp-summary { display:grid; justify-items:end; }
.camp-summary strong { color:#fde68a; font-size:1.45rem; }
.camp-summary span { color:#94a3b8; font-size:.72rem; }
.camp-form { display:grid; gap:16px; margin-top:16px; }
.camp-group { overflow:hidden; border:1px solid #334155; border-radius:12px; background:rgba(15,23,42,.55); }
.camp-group > header { display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:1px solid #334155; background:rgba(30,41,59,.78); }
.camp-group > header small { color:#38bdf8; font-size:.65rem; font-weight:900; letter-spacing:.14em; }
.camp-group > header h3 { margin:2px 0 0; }
.camp-group > header > strong { color:#cbd5e1; }
.camp-player-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.camp-player { display:grid; grid-template-columns:40px minmax(100px,1fr) minmax(150px,210px); align-items:center; gap:9px; min-height:64px; padding:9px 12px; border-bottom:1px solid rgba(71,85,105,.55); }
.camp-player:nth-child(odd) { border-right:1px solid rgba(71,85,105,.55); }
.camp-number { display:grid; width:34px; height:34px; place-items:center; border:1px solid #475569; border-radius:50%; color:#e2e8f0; font-size:.75rem; font-weight:900; }
.camp-player > div { display:grid; gap:2px; min-width:0; }
.camp-player > div strong { overflow:hidden; color:#f8fafc; text-overflow:ellipsis; white-space:nowrap; }
.camp-player > div small, .camp-player label span { color:#94a3b8; font-size:.67rem; }
.camp-player label { display:grid; gap:3px; }
.camp-player select { width:100%; min-width:0; }
.camp-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px; border:1px solid #a16207; border-radius:10px; background:rgba(120,53,15,.16); }
.camp-actions p { margin:0; color:#fde68a; font-weight:800; }
.camp-result-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:18px 0; }
.camp-result-player, .camp-report-player { display:grid; grid-template-columns:minmax(110px,.65fr) 1.35fr; align-items:center; gap:10px; padding:10px 12px; border:1px solid #334155; border-radius:9px; background:rgba(15,23,42,.58); }
.camp-result-player > div:first-child, .camp-report-name { display:grid; }
.camp-result-player small, .camp-report-name small { color:#94a3b8; font-size:.7rem; }
.camp-result-player > div:last-child, .camp-report-changes { display:flex; flex-wrap:wrap; gap:4px; }
.camp-change { padding:3px 7px; border:1px solid #475569; border-radius:999px; color:#cbd5e1; font-size:.68rem; white-space:nowrap; }
.camp-change.is-up { border-color:#15803d; color:#86efac; background:rgba(21,128,61,.12); }
.camp-change.is-down { border-color:#b91c1c; color:#fca5a5; background:rgba(185,28,28,.12); }
.camp-change.is-position { border-color:#a16207; color:#fde68a; background:rgba(161,98,7,.12); }
.camp-report .camp-group { margin-top:16px; }
.camp-report-player { grid-template-columns:40px minmax(110px,.55fr) 1.45fr; border:0; border-bottom:1px solid rgba(71,85,105,.55); border-radius:0; }

@media (max-width: 820px) {
  .camp-player-list, .camp-result-list { grid-template-columns:1fr; }
  .camp-player:nth-child(odd) { border-right:0; }
}
@media (max-width: 560px) {
  .camp-player { grid-template-columns:36px minmax(90px,1fr); }
  .camp-player label { grid-column:2; }
  .camp-actions { align-items:stretch; flex-direction:column; }
  .camp-result-player { grid-template-columns:1fr; }
  .camp-report-player { grid-template-columns:36px 1fr; }
  .camp-report-changes { grid-column:2; }
}

.game-replay { margin: 18px 0; padding: 18px; border: 1px solid #2c3947; border-radius: 14px; background: #0d151e; }
.game-replay > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.game-replay h3, .game-replay p { margin: 0; }
.game-replay ol { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; max-height: 360px; overflow: auto; }
.game-replay li { display: grid; grid-template-columns: 58px minmax(0, 1fr) 52px 62px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: #121e29; }
.game-replay li[hidden] { display: none; }
.game-replay time, .game-replay small { color: #8fa7bb; }
.game-replay li > strong { text-align: right; color: #7dd3fc; }
@media (max-width: 620px) {
  .game-replay li { grid-template-columns: 48px minmax(0, 1fr) 54px; }
  .game-replay li > small { display: none; }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(43, 150, 211, .22), transparent 34rem),
    radial-gradient(circle at 85% 85%, rgba(26, 138, 111, .18), transparent 32rem),
    linear-gradient(145deg, #050b12, var(--bg));
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 32px 32px;
}
a { color: #8dd4ff; }
.shell { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0; position: relative; }
.shell--narrow { width: min(610px, calc(100% - 32px)); }
.shell--wide { width: min(1100px, calc(100% - 32px)); }
.card {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
  backdrop-filter: blur(12px);
}
.eyebrow { margin: 0 0 8px; color: var(--accent-2); font-size: .78rem; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.1; }
.lead { color: var(--muted); margin: 12px 0 32px; }
.form { display: grid; gap: 20px; }
label, legend { font-size: .88rem; font-weight: 700; color: #d7e9fa; }
input {
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid rgba(161, 205, 241, .28);
  border-radius: 10px;
  color: var(--text);
  background: rgba(3, 12, 21, .8);
  font: inherit;
}
input:focus { outline: 2px solid rgba(70, 179, 255, .45); border-color: var(--accent); }
input[aria-invalid="true"] { border-color: var(--danger); }
button, .button-link {
  border: 0;
  border-radius: 10px;
  padding: 13px 18px;
  color: #04101b;
  background: linear-gradient(135deg, var(--accent), #8bd8ff);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
button:hover, .button-link:hover { filter: brightness(1.08); }
button.secondary { color: var(--text); background: #223d54; }
.subnav { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; font-size: .9rem; }
.back { display: inline-block; margin-bottom: 28px; text-decoration: none; }
.notice { margin: 18px 0 24px; padding: 15px 17px; border-radius: 10px; }
.notice p { margin: 8px 0 0; }
.notice--error { color: #ffe8eb; border: 1px solid rgba(255, 112, 133, .35); background: rgba(105, 25, 42, .48); }
.notice--success { color: #e3fff6; border: 1px solid rgba(77, 216, 171, .34); background: rgba(16, 81, 65, .46); }
.field-error { display: block; margin-top: 7px; color: var(--danger); font-size: .8rem; font-weight: 600; }
.password-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.color { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.color-main { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.color-main input[type="color"] { width: 58px; height: 44px; margin: 0; padding: 3px; }
.swatch { display: inline-block; width: 22px; height: 22px; margin-right: 8px; border: 2px solid #fff; border-radius: 50%; background: var(--team-color); vertical-align: middle; }
.rgb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rgb label { display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 8px; }
.rgb input { margin: 0; min-width: 0; }
.guide { padding: 18px; border-left: 3px solid var(--accent-2); background: rgba(25, 65, 79, .38); color: var(--muted); }
.guide strong { color: var(--text); }
.guide p { margin: 6px 0 10px; }
.summary { margin: 28px 0; }
.summary div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 800; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.actions form, .actions button { width: 100%; }
.dashboard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0; }
.status-grid div { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.status-grid span { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 7px; }
code { padding: 3px 7px; border-radius: 5px; color: #fff; background: #07101a; font-size: 1.05em; }
.button-link { display: inline-block; margin-top: 22px; }
.ready-action { margin-top: 24px; }
.roster-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 24px 0 8px; padding: 16px 18px; border: 1px solid rgba(77, 216, 171, .34); border-radius: 12px; background: rgba(16, 81, 65, .32); }
.roster-summary span { color: var(--muted); }
.roster-note { margin-bottom: 20px; }
.roster { margin-top: 24px; }
.roster header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.roster h2 { margin: 0; font-size: 1.2rem; }
.roster header strong { color: var(--accent-2); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.roster table { width: 100%; border-collapse: collapse; min-width: 780px; }
.roster th, .roster td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.roster th { color: var(--muted); background: rgba(16, 41, 64, .9); font-size: .78rem; }
.roster th:nth-child(2), .roster td:nth-child(2) { text-align: left; }
.roster th:nth-child(3), .roster td:nth-child(3) { text-align: center; }
.roster tbody tr:last-child td { border-bottom: 0; }
.player-name-cell { min-width: 180px; white-space: normal !important; }
.player-name-cell input { min-width: 150px; margin: 0; padding: 8px 10px; }
.player-name-cell .field-error { max-width: 220px; white-space: normal; }
.name-form .ready-action { display: flex; justify-content: center; margin-top: 28px; }

/* Authenticated VLB2-style shell. */
.game-shell { width: min(1220px, calc(100% - 24px)); min-height: 100vh; margin: 0 auto; padding: 14px 0 40px; position: relative; }
.game-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(135deg, rgba(24, 54, 79, .98), rgba(8, 20, 32, .98)); box-shadow: 0 15px 42px rgba(0,0,0,.28); }
.game-brand h1 { font-size: clamp(1.65rem, 4vw, 2.45rem); overflow-wrap: anywhere; }
.game-brand p:last-child { margin: 7px 0 0; color: var(--muted); }
.game-calendar { display: grid; grid-template-columns: auto auto; align-items: center; justify-items: end; gap: 2px 13px; white-space: nowrap; }
.game-calendar strong { font-size: 1.05rem; }
.game-calendar span { color: var(--accent-2); font-weight: 800; }
.game-calendar form { grid-column: 1 / -1; margin-top: 7px; }
button.compact { min-height: 0; padding: 7px 11px; font-size: .82rem; }
.game-nav { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.game-nav a, .game-nav button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 14px; border: 1px solid rgba(160, 201, 235, .32); border-radius: 8px; color: var(--text); background: #1b344a; font-size: .9rem; font-weight: 800; text-decoration: none; }
.game-nav a:hover { border-color: var(--accent); background: #274a67; }
.game-nav a.is-active { color: #dff8ff; border-color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
.game-nav button[disabled] { color: #7f94a7; background: #122435; cursor: not-allowed; opacity: .78; }
.game-nav small, .side-menu small { color: #7592a8; font-size: .65rem; }
.game-layout { display: grid; grid-template-columns: 292px minmax(0, 1fr); gap: 12px; align-items: start; }
.game-sidebar { display: grid; gap: 10px; min-width: 0; }
.game-workspace { display: grid; gap: 12px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: rgba(4, 13, 22, .68); }
.team-card, .side-menu, .workspace-panel, .status-notice { border: 1px solid var(--line); border-radius: 12px; background: rgba(13, 29, 47, .96); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.team-card { padding: 14px; }
.team-card h2 { margin: 0 0 12px; text-align: center; font-size: 1.22rem; overflow-wrap: anywhere; }
.team-card-body { display: grid; grid-template-columns: 100px 1fr; gap: 12px; }
.team-card-body img, .icon-placeholder { width: 100px; height: 100px; border: 1px solid var(--line); border-radius: 10px; object-fit: contain; background: #091521; }
.icon-placeholder { display: grid; place-items: center; color: var(--muted); font-weight: 900; letter-spacing: .08em; }
.team-card dl { min-width: 0; margin: 0; }
.team-card dl div { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; font-size: .79rem; }
.team-card dt { color: var(--muted); }
.team-card dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.rank--promotion { color: #ffe66b; }
.rank--danger { color: var(--danger); }
.side-menu { padding: 7px; }
.side-menu summary { padding: 7px; color: #dff6ff; font-weight: 900; cursor: pointer; }
.side-menu > div { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding-top: 5px; }
.side-menu a, .side-menu span { min-width: 0; padding: 8px; border-radius: 7px; font-size: .75rem; text-align: center; text-decoration: none; background: #172f44; }
.side-menu span { color: #829bad; background: #102435; }
.workspace-panel { min-width: 0; padding: clamp(16px, 3vw, 24px); }
.workspace-panel > h2 { margin: 0 0 14px; font-size: 1.12rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.65rem); }
.section-head .eyebrow { margin-bottom: 4px; }
.workspace-lead { margin: 0 0 18px; color: var(--muted); line-height: 1.65; }
.phase-badge, .season-mark, .pending-label { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border: 1px solid rgba(91, 215, 177, .32); border-radius: 999px; color: var(--accent-2); background: rgba(25, 93, 77, .32); font-size: .75rem; font-weight: 900; }
.phase-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; padding: 15px 17px; border-left: 3px solid var(--accent-2); background: rgba(25, 65, 79, .38); }
.phase-action p { margin: 5px 0 0; color: var(--muted); font-size: .88rem; }
.phase-action .button-link { flex: 0 0 auto; margin: 0; }
.operation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.operation { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.operation h3 { margin: 0; font-size: .95rem; }
.operation p { margin: 4px 0 0; color: var(--muted); font-size: .75rem; }
.operation .pending-label { flex: 0 0 auto; color: #8da2b5; border-color: var(--line); background: #122334; }
.operation--link { color: var(--text); text-decoration: none; }
.operation--link:hover { border-color: var(--accent); background: #173752; }
.text-link { font-size: .84rem; font-weight: 800; text-decoration: none; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.metric-grid--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.metric span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .72rem; }
.metric strong { display: block; overflow-wrap: anywhere; font-size: 1rem; }
.metric--promotion strong { color: #ffe66b; }
.metric--danger strong { color: var(--danger); }
.status-notices { display: grid; gap: 8px; }
.status-notice { padding: 13px 15px; border-color: rgba(84, 168, 193, .35); background: rgba(26, 55, 67, .82); }
.status-notice--warning { border-color: rgba(255, 143, 159, .36); background: rgba(87, 34, 45, .68); }
.status-notice--mail { border-color: rgba(70, 179, 255, .4); background: rgba(21, 66, 94, .75); }
.status-notice h2 { margin: 0 0 4px; font-size: .93rem; }
.status-notice p { margin: 0; color: #d0deea; font-size: .82rem; line-height: 1.55; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-list { margin: 0; }
.detail-list div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.detail-list div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; text-align: right; font-weight: 800; }
.data-note { margin: 13px 0 0; color: var(--muted); font-size: .75rem; }

.trade-actions,.trade-tabs{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}.button-link{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 14px;border-radius:8px;background:var(--accent);color:#071018!important;font-weight:800;text-decoration:none}.button-link.secondary{background:var(--panel-2);color:var(--text)!important;border:1px solid var(--line)}.trade-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.trade-card>header,.trade-card>footer,.trade-messages article header,.trade-history article>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.trade-card h3{margin:2px 0}.trade-card footer{margin-top:13px;padding-top:11px;border-top:1px solid var(--line)}.trade-members{display:grid;gap:5px;margin:12px 0}.trade-members>div{display:grid;grid-template-columns:24px minmax(100px,1fr) auto;gap:7px;align-items:center;padding:6px 8px;border:1px solid var(--line);border-radius:7px;background:var(--panel-2)}.trade-members span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:rgba(45,212,191,.15);color:var(--accent)}.trade-members small{color:var(--muted)}.trade-comment{min-height:2.7em;padding:10px;border-left:3px solid var(--accent);background:var(--panel-2);white-space:normal}.trade-group{margin:16px 0}.trade-group .is-disabled{opacity:.55}.trade-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.trade-compare>section{padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--panel-2)}.trade-messages{display:grid;gap:8px;margin:12px 0}.trade-messages article,.trade-history>article{padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--panel-2)}.trade-messages p{margin:8px 0 0}.trade-history{display:grid;gap:12px}.trade-history time{margin-left:auto;color:var(--muted);font-size:.78rem}.pagination{display:flex;flex-wrap:wrap;gap:6px;margin:15px 0}.pagination a{min-width:32px;padding:6px;text-align:center;border:1px solid var(--line);border-radius:6px;text-decoration:none}.pagination a[aria-current=page]{background:var(--accent);color:#071018}.inline-form{display:inline-flex}.inline-form .danger,button.danger{background:#b33b45}.empty-state{color:var(--muted)}
@media(max-width:760px){.trade-card-grid,.trade-compare{grid-template-columns:1fr}.trade-members>div{grid-template-columns:24px 1fr}.trade-members small{grid-column:2}.trade-history article>header{flex-wrap:wrap}}
.standings .table-scroll { border-radius: 9px; }
.standings table { width: 100%; min-width: 690px; border-collapse: collapse; }
.standings th, .standings td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.standings th { color: var(--muted); background: #102940; font-size: .73rem; }
.standings th:nth-child(2), .standings td:nth-child(2) { text-align: left; }
.standings tr.is-current td { background: rgba(70, 179, 255, .13); font-weight: 900; }
.standings tbody tr:last-child td { border-bottom: 0; }

/* Personal records, league ranking and title race. */
.records-panel { overflow: hidden; }
.record-tabs { display: flex; gap: 7px; margin: 0 0 12px; }
.record-tabs a { min-width: 92px; padding: 8px 15px; border: 1px solid #41627d; border-radius: 8px; color: var(--text); background: #172f44; font-size: .8rem; font-weight: 900; text-align: center; text-decoration: none; }
.record-tabs a.is-current, .record-tabs a[aria-current="page"] { border-color: var(--accent-2); color: #d9fff3; background: #126557; box-shadow: inset 0 -2px #70e0bd; }
.record-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(4,16,27,.45); }
.record-filter label { display: grid; gap: 4px; color: var(--muted); font-size: .68rem; }
.record-filter select { min-width: 135px; min-height: 36px; padding: 5px 9px; border: 1px solid #52677d; border-radius: 7px; color: var(--text); background: #0b1825; font: inherit; }
.record-filter button { min-height: 36px; padding: 7px 15px; }
.record-qualification { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 9px; color: var(--muted); font-size: .74rem; }
.record-qualification strong { color: #fde68a; }
.record-table { border-radius: 9px; }
.record-table table { width: 100%; min-width: 900px; border-collapse: collapse; }
.record-table th, .record-table td { padding: 8px 9px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-size: .76rem; }
.record-table th { position: sticky; top: 0; z-index: 1; color: var(--muted); background: #102940; font-size: .68rem; }
.record-table th:nth-child(2), .record-table td:nth-child(2), .record-table .record-team { text-align: left; }
.record-table tbody tr:last-child td { border-bottom: 0; }
.record-table tr.is-current td { background: rgba(70,179,255,.13); font-weight: 900; }
.record-table tr.is-leader td { box-shadow: inset 0 1px rgba(251,191,36,.28), inset 0 -1px rgba(251,191,36,.28); }
.record-player { color: #eafff8; font-weight: 900; }
.record-team { max-width: 220px; overflow: hidden; text-overflow: ellipsis; font-weight: 800; }
.record-focus { color: #fde68a; font-weight: 950; }
.role-chip { display: inline-flex; padding: 3px 7px; border: 1px solid #41627d; border-radius: 999px; color: #b9e8ff; background: rgba(23,47,68,.8); font-size: .65rem; font-weight: 900; }
.record-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 13px; }
.record-pagination span, .record-pagination a { padding: 7px 11px; border: 1px solid var(--line); border-radius: 7px; font-size: .75rem; font-weight: 900; }
.record-pagination span { color: var(--muted); background: #0b1c2c; }
.record-pagination a { color: var(--text); background: #1b344a; text-decoration: none; }

/* VLB2-compatible consecutive-click roster organization. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.roster-organizer { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: rgba(13, 29, 47, .96); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.organizer-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(105deg, rgba(45, 212, 191, .15), rgba(14, 31, 49, .96) 58%); }
.organizer-heading h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.organizer-heading p:last-child { margin: 7px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.organizer-summary { display: grid; flex: 0 0 auto; justify-items: end; gap: 3px; }
.organizer-summary strong { color: var(--accent-2); font-size: 1.25rem; }
.organizer-summary span { color: var(--muted); font-size: .72rem; }
.organizer-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #0b1c2c; }
.organizer-tabs a { padding: 8px 15px; border: 1px solid #41627d; border-radius: 7px; color: var(--text); background: #1b344a; font-size: .78rem; font-weight: 900; text-decoration: none; }
.organizer-tabs a.is-current { border-color: var(--accent-2); background: #126557; box-shadow: inset 0 -2px #70e0bd; }
.organizer-form { display: grid; gap: 9px; padding: 10px; }
.organizer-toolbar { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto; align-items: center; gap: 12px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: #10283d; }
.move-mode { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.move-mode input { width: 20px; height: 20px; margin: 0; padding: 0; accent-color: var(--accent-2); }
.move-mode span { display: grid; gap: 1px; }
.move-mode strong { font-size: .76rem; }
.move-mode small { color: var(--muted); font-size: .62rem; }
.organizer-toolbar > p { margin: 0; color: #dff6ff; font-size: .76rem; }
.organizer-actions { display: flex; gap: 6px; }
.organizer-actions button[disabled] { cursor: not-allowed; opacity: .48; }
.pitcher-role-guide { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: #10283d; }
.pitcher-role-guide span { padding: 4px 7px; border: 1px solid rgba(148, 197, 223, .2); border-radius: 999px; color: var(--muted); font-size: .65rem; }
.pitcher-role-guide b { margin-right: 4px; color: #ffe66b; }
.usage-guide { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #10283d; }
.usage-guide > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border-bottom: 1px solid var(--line); }
.usage-guide > header strong { color: #ffe66b; font-size: .78rem; }
.usage-guide > header a { color: #8bdcff; font-size: .66rem; font-weight: 900; }
.usage-guide > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; padding: 7px; }
.usage-guide > div span { display: grid; gap: 2px; min-width: 0; padding: 6px 8px; border: 1px solid rgba(148,197,223,.18); border-radius: 6px; background: rgba(4,16,27,.35); }
.usage-guide b { color: #dff6ff; font-size: .68rem; }
.usage-guide small { color: var(--muted); font-size: .58rem; line-height: 1.4; }
.usage-guide > p { margin: 0; padding: 0 10px 8px; color: var(--muted); font-size: .61rem; line-height: 1.55; }
.organizer-board { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 8px; }
.organizer-board.is-pitcher .is-starter { grid-column: 1; grid-row: 1; }
.organizer-board.is-pitcher .is-relief { grid-column: 2; grid-row: 1 / 3; }
.organizer-board.is-pitcher .is-closer { grid-column: 1; grid-row: 2; }
.organizer-board .is-farm { grid-column: 1 / -1; }
.pitcher-usage-board { grid-template-columns: repeat(2,minmax(0,1fr)); }
.pitcher-usage-board .is-starter { grid-column: 1; grid-row: 1 / 4; }
.pitcher-usage-board .is-long { grid-column: 2; grid-row: 1; }
.pitcher-usage-board .is-utility { grid-column: 2; grid-row: 2; }
.pitcher-usage-board .is-bridge { grid-column: 2; grid-row: 3; }
.pitcher-usage-board .is-setup { grid-column: 1; grid-row: 4; }
.pitcher-usage-board .is-closer { grid-column: 2; grid-row: 4; }
.pitcher-usage-board .is-farm { grid-column: 1 / -1; grid-row: 5; }
.organizer-zone { --zone: #fbbf24; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(155deg, #101f31, #152b40); }
.organizer-zone.is-bench, .organizer-zone.is-relief { --zone: #70e0bd; }
.organizer-zone.is-long { --zone: #38bdf8; }
.organizer-zone.is-utility { --zone: #a78bfa; }
.organizer-zone.is-bridge { --zone: #34d399; }
.organizer-zone.is-setup { --zone: #fb923c; }
.organizer-zone.is-closer { --zone: #f472b6; }
.organizer-zone.is-farm { --zone: #46b3ff; }
.organizer-zone > header { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 7px 10px; border-bottom: 1px solid color-mix(in srgb, var(--zone) 45%, transparent); box-shadow: inset 4px 0 var(--zone); background: rgba(11, 27, 42, .72); }
.organizer-zone > header small { display: block; color: var(--zone); font-size: .57rem; font-weight: 900; letter-spacing: .14em; }
.organizer-zone > header h3 { margin: 2px 0 0; font-size: .9rem; }
.organizer-zone > header > span { padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; color: #dcecf8; font-size: .67rem; }
.organizer-list { display: grid; align-content: start; gap: 3px; min-height: 42px; padding: 5px; }
.organizer-zone.is-farm .organizer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.organizer-player { display: grid; grid-template-columns: 28px 24px minmax(105px, 1fr) 74px minmax(215px, 1.5fr) 95px 18px; align-items: center; gap: 5px; min-width: 0; min-height: 46px; padding: 4px 5px; border: 1px solid rgba(147, 197, 253, .17); border-radius: 7px; background: rgba(5, 16, 27, .55); cursor: pointer; transition: border-color .12s, background .12s, transform .12s; }
.organizer-board.is-pitcher .organizer-player { grid-template-columns: 28px 24px minmax(105px, 1fr) 100px minmax(215px, 1.5fr) 95px 18px; }
.organizer-zone.is-farm .organizer-player { grid-template-columns: 28px 24px minmax(98px, 1fr) 68px minmax(190px, 1.35fr) 90px 18px; }
.organizer-player:hover, .organizer-player:focus { outline: 0; border-color: var(--zone); background: rgba(30, 66, 91, .55); }
.organizer-player.is-selected { border-color: #ffe66b; background: rgba(111, 84, 15, .48); box-shadow: 0 0 0 2px rgba(255, 230, 107, .16); }
.organizer-player.is-drop-target { border-color: var(--accent-2); transform: translateY(1px); }
.organizer-player.is-dragging { opacity: .5; }
.organizer-player.is-injured { background: rgba(78, 26, 40, .52); }
.player-select { min-width: 0; padding: 5px 3px; border: 1px solid #60809a; border-radius: 5px; color: #dff6ff; background: #1c3a52; font-size: .67rem; }
.roster-slot { color: var(--zone); font-size: .67rem; font-weight: 900; text-align: center; }
.player-identity { min-width: 0; }
.player-identity strong, .player-identity small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.player-identity strong { font-size: .78rem; }
.player-identity strong i { display: inline-block; min-width: 26px; margin-right: 3px; color: #9fdcff; font-size: .68rem; font-style: normal; }
.player-identity small { margin-top: 2px; color: var(--muted); font-size: .61rem; }
.fielder-position select { width: 100%; height: 28px; margin: 0; padding: 2px 5px; border: 1px solid #5b7b94; border-radius: 5px; color: #fff; background: #0c2031; font: 900 .72rem inherit; }
.fielder-position select:disabled { color: #8da2b5; opacity: .65; }
.pitcher-role { overflow: hidden; color: #dff6ff; font-size: .66rem; font-weight: 900; white-space: nowrap; text-overflow: ellipsis; }
.player-abilities { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; min-width: 0; }
.player-abilities span { min-width: 0; padding: 2px; border-radius: 4px; text-align: center; background: rgba(37, 74, 101, .48); }
.player-abilities small, .player-abilities b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.player-abilities small { color: var(--muted); font-size: .52rem; }
.player-abilities b { margin-top: 1px; font-size: .69rem; }
.player-state { min-width: 0; text-align: right; }
.player-state strong, .player-state small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.player-state strong { font-size: .65rem; }
.player-state small { margin-top: 2px; color: var(--muted); font-size: .57rem; }
.player-state .is-good { color: #9df3d5; }
.player-state .is-bad { color: #ff9dac; }
.drag-handle { color: #7694aa; text-align: center; cursor: grab; user-select: none; }
.organizer-player.is-reserve .roster-slot { color: #a7bac8; }
.pitcher-usage-board .organizer-player { grid-template-columns: 28px 24px minmax(105px,1fr) 100px 95px 18px; }
.pitcher-usage-board .player-abilities { display: none; }
.tactics-guide { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #10283d; }
.tactics-guide strong { margin-right: 3px; color: #ffe66b; font-size: .72rem; }
.tactics-guide span { padding: 3px 8px; border: 1px solid rgba(148,197,223,.22); border-radius: 999px; color: #dff6ff; font-size: .66rem; }
.tactics-guide small { margin-left: auto; color: var(--muted); font-size: .63rem; }
.tactics-board { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); gap: 8px; }
.tactics-board .is-starter, .tactics-board .is-lineup { grid-column: 1; grid-row: 1; }
.tactics-board .is-relief, .tactics-board .is-bench { grid-column: 2; grid-row: 1 / 3; }
.tactics-board .is-closer { grid-column: 1; grid-row: 2; }
.tactics-board .is-farm { grid-column: 1 / -1; }
.tactics-list { display: grid; gap: 3px; padding: 5px; }
.tactics-columns, .tactics-player { display: grid; grid-template-columns: minmax(150px,1fr) minmax(82px,110px) minmax(82px,110px); align-items: center; gap: 7px; }
.tactics-board.is-pitcher .tactics-columns, .tactics-board.is-pitcher .tactics-player { grid-template-columns: minmax(150px,1fr) minmax(90px,120px); }
.training-board .tactics-columns, .training-board .tactics-player { grid-template-columns: minmax(150px,1fr) minmax(118px,150px); }
.tactics-columns { min-height: 24px; padding: 0 7px; color: var(--muted); font-size: .58rem; font-weight: 900; text-align: center; }
.tactics-columns span:first-child { text-align: left; }
.tactics-player { min-height: 47px; padding: 5px 7px; border: 1px solid rgba(147,197,253,.17); border-radius: 7px; background: rgba(5,16,27,.55); }
.tactics-player.is-injured { background: rgba(78,26,40,.52); }
.tactics-player-name { min-width: 0; }
.tactics-player-name strong, .tactics-player-name small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tactics-player-name strong { font-size: .76rem; }
.tactics-player-name strong i { display: inline-block; min-width: 28px; margin-right: 4px; color: #9fdcff; font-size: .66rem; font-style: normal; }
.tactics-player-name small { margin-top: 2px; color: var(--muted); font-size: .59rem; }
.tactics-player-name small b { font-weight: 900; }
.tactics-player-name .is-good { color: #9df3d5; }
.tactics-player-name .is-bad { color: #ff9dac; }
.tactics-player label { min-width: 0; }
.tactics-player select { width: 100%; height: 31px; margin: 0; padding: 3px 6px; border: 1px solid #5b7b94; border-radius: 5px; color: #fff; background: #0c2031; font-size: .7rem; font-weight: 900; }
.tactics-player select:disabled { color: #8da2b5; opacity: .65; }
.training-adjustment { display: grid; place-items: center; min-height: 31px; border: 1px solid rgba(148,197,223,.2); border-radius: 5px; color: #9fb3c3; background: rgba(5,16,27,.34); font-size: .7rem; font-weight: 900; }
.training-player.is-adjustment { opacity: .78; }
.tactics-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: #10283d; }
.tactics-actions p { margin: 0; color: var(--muted); font-size: .67rem; }
.tactics-actions button { flex: 0 0 auto; }
.tactics-actions button:disabled { cursor: not-allowed; opacity: .48; }
.pregame { display: grid; gap: 10px; }
.pregame-heading, .pregame-matchup, .pregame-controls, .pregame-alert, .pregame-strength, .pregame-roster { border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(155deg, rgba(16,31,49,.97), rgba(19,43,64,.94)); }
.pregame-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; }
.pregame-heading h2, .pregame-heading p { margin: 0; }
.pregame-heading > div > p:last-child { margin-top: 5px; color: var(--muted); font-size: .78rem; }
.pregame-record { text-align: right; white-space: nowrap; }
.pregame-record strong, .pregame-record span { display: block; }
.pregame-record strong { color: var(--accent-2); font-size: 1.2rem; }
.pregame-record span { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.pregame-matchup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 15px; text-align: center; }
.pregame-matchup > b { color: var(--accent-2); font-size: 1.1rem; }
.pregame-matchup article { display: grid; gap: 4px; min-width: 0; }
.pregame-matchup small { color: var(--muted); font-size: .65rem; font-weight: 900; letter-spacing: .12em; }
.pregame-matchup strong { overflow-wrap: anywhere; font-size: 1.08rem; }
.pregame-matchup span { color: var(--muted); font-size: .7rem; }
.pregame-matchup span b { color: #cbd5e1; }
.pregame-matchup span .is-win { color: #70e0bd; }
.pregame-matchup span .is-loss { color: #ff9dac; }
.pregame-alert { padding: 14px 16px; border-color: rgba(255,112,133,.42); background: rgba(83,24,39,.66); }
.pregame-alert h3 { margin: 0 0 7px; font-size: .95rem; }
.pregame-alert ul { margin: 0; padding-left: 20px; color: #ffe8eb; font-size: .78rem; }
.pregame-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; }
.pregame-controls > div, .pregame-controls > label { display: grid; min-width: 105px; gap: 2px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(4,16,27,.5); }
.pregame-controls small { color: var(--muted); font-size: .59rem; }
.pregame-controls strong { font-size: .82rem; }
.pregame-controls select { min-height: 30px; padding: 3px 7px; }
.pregame-controls button { margin-left: auto; padding: 10px 14px; }
.pregame-controls button[disabled] { color: #8ba0b3; background: #172b3d; cursor: not-allowed; }
.notice--pending { color: #fff3c4; border: 1px solid rgba(251,191,36,.32); background: rgba(92,64,13,.38); }
.pregame-rule-note { margin: 0; color: var(--muted); font-size: .7rem; text-align: center; }
.pregame-strength { overflow: hidden; }
.pregame-strength > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(70,179,255,.14), transparent); }
.pregame-strength h3, .pregame-roster h3 { margin: 0; font-size: .94rem; }
.pregame-strength dl { display: flex; gap: 6px; margin: 0; }
.pregame-strength dl div { min-width: 80px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; text-align: center; }
.pregame-strength dt { color: var(--muted); font-size: .56rem; }
.pregame-strength dd { margin: 1px 0 0; font-size: .88rem; font-weight: 900; }
.pregame-strength-bars { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 18px; padding: 13px; }
.pregame-strength-bar p { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin: 0 0 4px; }
.pregame-strength-bar span { font-size: .76rem; font-weight: 900; }
.pregame-strength-bar small { margin-left: 6px; color: var(--muted); font-size: .5rem; letter-spacing: .1em; }
.pregame-strength-bar strong { color: #a5f3fc; font-size: .9rem; }
.pregame-strength-bar i { display: block; height: 7px; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: rgba(3,12,21,.7); }
.pregame-strength-bar i b { display: block; width: var(--score); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2dd4bf, #60a5fa 62%, #c084fc); }
.pregame-strength .data-note { margin: 0; padding: 0 13px 12px; }
.pregame-rosters { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; align-items: start; }
.pregame-roster-column { display: grid; gap: 7px; min-width: 0; }
.pregame-roster { --roster-accent: #60a5fa; min-width: 0; overflow: hidden; }
.pregame-roster.is-lineup { --roster-accent: #fbbf24; }
.pregame-roster.is-bench { --roster-accent: #34d399; }
.pregame-roster.is-starter { --roster-accent: #fb7185; }
.pregame-roster.is-waiting { --roster-accent: #38bdf8; }
.pregame-roster.is-relief { --roster-accent: #a78bfa; }
.pregame-roster.is-closer { --roster-accent: #f472b6; }
.pregame-roster.is-farm { --roster-accent: #2dd4bf; grid-column: 1 / -1; }
.pregame-roster > header { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 5px 9px; border-bottom: 1px solid color-mix(in srgb, var(--roster-accent) 45%, transparent); box-shadow: inset 4px 0 var(--roster-accent); }
.pregame-roster > header small { display: block; color: var(--roster-accent); font-size: .52rem; font-weight: 900; letter-spacing: .14em; }
.pregame-roster > header span { padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; font-size: .62rem; }
.pregame-player-list { display: grid; gap: 2px; padding: 4px; }
.pregame-roster.is-farm .pregame-player-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
.pregame-player { display: grid; grid-template-columns: 72px minmax(110px,1fr) minmax(130px,1.2fr) 88px; align-items: center; gap: 5px; min-width: 0; min-height: 39px; padding: 3px 5px; border: 1px solid rgba(147,197,253,.14); border-radius: 6px; background: rgba(4,16,27,.45); }
.pregame-player.is-injured { background: rgba(78,26,40,.52); }
.pregame-role { overflow: hidden; color: var(--roster-accent); font-size: .61rem; font-weight: 900; white-space: nowrap; text-overflow: ellipsis; }
.pregame-player-name { min-width: 0; }
.pregame-player-name strong, .pregame-player-name small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pregame-player-name strong { font-size: .71rem; }
.pregame-player-name strong i { display: inline-block; min-width: 24px; color: #9fdcff; font-size: .61rem; font-style: normal; }
.pregame-player-name small { margin-top: 2px; color: var(--muted); font-size: .54rem; }
.pregame-abilities { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 2px; }
.pregame-abilities span { min-width: 0; padding: 2px; text-align: center; background: rgba(37,74,101,.48); }
.pregame-abilities small, .pregame-abilities b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pregame-abilities small { color: var(--muted); font-size: .48rem; }
.pregame-abilities b { font-size: .63rem; }
.pregame-condition { min-width: 0; text-align: right; }
.pregame-condition strong, .pregame-condition small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pregame-condition strong { color: #9df3d5; font-size: .6rem; }
.pregame-player.is-injured .pregame-condition strong { color: #ff9dac; }
.pregame-condition small { color: #fbd38d; font-size: .5rem; }
.pregame-empty { margin: 0; padding: 10px; color: var(--muted); font-size: .7rem; }
.game-start-result { display: grid; gap: 10px; }
.game-start-result > header, .game-start-matchup, .game-final-score, .game-linescore, .game-decisions, .game-highlights, .game-boxscores details, .game-start-summary { border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(155deg, rgba(16,31,49,.97), rgba(19,43,64,.94)); }
.game-start-result > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 17px; }
.game-start-result > header h2, .game-start-result > header p { margin: 0; }
.game-start-result > header div > p:last-child { margin-top: 5px; color: var(--muted); font-size: .76rem; }
.game-start-result > header > span { padding: 6px 10px; border: 1px solid #70e0bd; border-radius: 999px; color: #70e0bd; font-size: .68rem; font-weight: 900; letter-spacing: .12em; }
.game-start-matchup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 18px; text-align: center; }
.game-start-matchup article { display: grid; gap: 4px; min-width: 0; }
.game-start-matchup small { color: var(--muted); font-size: .62rem; font-weight: 900; letter-spacing: .15em; }
.game-start-matchup strong { overflow-wrap: anywhere; font-size: 1.12rem; }
.game-start-matchup p { margin: 0; color: var(--muted); font-size: .72rem; }
.game-final-score { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 18px; padding: 18px; text-align: center; }
.game-final-score article { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; min-width: 0; }
.game-final-score article small, .game-final-score article p { grid-column: 1; }
.game-final-score article small { color: var(--muted); font-size: .58rem; font-weight: 900; letter-spacing: .16em; }
.game-final-score article strong { grid-column: 1; overflow-wrap: anywhere; font-size: 1.05rem; }
.game-final-score article b { grid-column: 2; grid-row: 1 / 4; color: #fff; font-size: clamp(2.5rem,7vw,4.5rem); line-height: .9; }
.game-final-score article p { margin: 3px 0 0; color: var(--muted); font-size: .68rem; }
.game-final-score > i { color: var(--accent-2); font-size: .64rem; font-style: normal; font-weight: 900; letter-spacing: .18em; }
.game-linescore { overflow: hidden; }
.game-linescore > div, .game-boxscores details > div { overflow-x: auto; }
.game-linescore table, .game-boxscores table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.game-linescore th, .game-linescore td, .game-boxscores th, .game-boxscores td { padding: 7px 9px; border-bottom: 1px solid rgba(147,197,253,.13); text-align: right; font-size: .68rem; }
.game-linescore thead th, .game-boxscores thead th { color: var(--muted); font-size: .56rem; letter-spacing: .05em; }
.game-linescore tr > :first-child, .game-boxscores tr > :nth-child(2) { min-width: 120px; text-align: left; }
.game-decisions { padding: 9px 12px; }
.game-decisions ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
.game-decisions li { display: flex; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: rgba(4,16,27,.5); }
.game-decisions small { color: #fbbf24; font-weight: 900; }
.game-decisions strong { font-size: .7rem; }
.game-highlights { padding: 13px 15px; }
.game-highlights h3, .game-highlights p { margin: 0; }
.game-highlights h3 { margin-bottom: 8px; font-size: .9rem; }
.game-highlights p { color: var(--muted); font-size: .72rem; }
.game-highlights ol { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.game-highlights li { display: grid; grid-template-columns: 44px minmax(0,1fr) 52px; gap: 8px; padding: 5px 7px; border-radius: 5px; background: rgba(4,16,27,.38); font-size: .68rem; }
.game-highlights time { color: #8bdcff; font-weight: 900; }
.game-highlights li > strong { text-align: right; }
.game-boxscores { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.game-boxscores details { min-width: 0; overflow: hidden; }
.game-boxscores summary { padding: 10px 12px; cursor: pointer; font-size: .76rem; font-weight: 900; }
.game-boxscores h4 { margin: 5px 9px; color: var(--accent-2); font-size: .68rem; }
.game-boxscores th, .game-boxscores td { padding: 5px 7px; }
.game-start-summary { display: grid; grid-template-columns: minmax(240px,.8fr) minmax(320px,1.2fr); gap: 15px; padding: 14px; }
.game-start-summary dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; margin: 0; }
.game-start-summary dl div { padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: rgba(4,16,27,.46); }
.game-start-summary dt { color: var(--muted); font-size: .58rem; }
.game-start-summary dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: .78rem; font-weight: 900; }
.game-start-summary h3 { margin: 0 0 7px; font-size: .9rem; }
.game-start-summary ul { margin: 0; padding-left: 20px; color: #d9f7ef; font-size: .72rem; line-height: 1.7; }
.game-start-actions { display: flex; justify-content: center; }
.rookie-switch { display: flex; gap: 5px; margin: 10px 0; }
.rookie-switch a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: .74rem; font-weight: 900; text-decoration: none; }
.rookie-switch a.is-active { border-color: var(--accent-2); background: rgba(139,220,255,.12); color: var(--accent-2); }
.rookie-totals { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; color: var(--muted); font-size: .7rem; }
.rookie-totals strong { color: #fef3c7; }
.rookie-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(4,16,27,.38); }
.rookie-filter label { display: grid; gap: 3px; color: var(--muted); font-size: .62rem; font-weight: 800; }
.rookie-filter label:has(input[type="radio"]) { display: flex; align-items: center; min-height: 34px; }
.rookie-filter select { min-width: 88px; height: 34px; border: 1px solid #52677d; border-radius: 6px; background: #0b1825; color: var(--text); padding: 4px 7px; }
.rookie-filter button { min-height: 34px; padding: 5px 10px; }
.rookie-acquire { display: grid; gap: 9px; }
.rookie-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.rookie-candidate { position: relative; display: grid; grid-template-columns: 24px 34px minmax(68px,.7fr) minmax(145px,1.5fr); align-items: center; gap: 6px; min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: linear-gradient(90deg,rgba(45,212,191,.06),rgba(17,35,50,.86)); cursor: pointer; }
.rookie-candidate:has(input:checked) { border-color: #fbbf24; box-shadow: inset 3px 0 #fbbf24; background: linear-gradient(90deg,rgba(251,191,36,.15),rgba(17,35,50,.9)); }
.rookie-candidate input { width: 17px; height: 17px; margin: 0; accent-color: #fbbf24; }
.rookie-rank { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #6f8195; border-radius: 50%; color: #fde68a; font-size: .9rem; font-weight: 950; }
.rookie-candidate-title { overflow: hidden; color: #d9f7ef; font-size: .73rem; font-weight: 900; white-space: nowrap; text-overflow: ellipsis; }
.rookie-summary, .rookie-abilities { display: grid; margin: 0; }
.rookie-summary { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px; }
.rookie-abilities { grid-column: 2 / 5; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 3px; }
.rookie-summary div, .rookie-abilities div { min-width: 0; text-align: center; }
.rookie-summary dt, .rookie-abilities dt { color: var(--muted); font-size: .55rem; }
.rookie-summary dd, .rookie-abilities dd { overflow: hidden; margin: 1px 0 0; color: var(--text); font-size: .68rem; font-weight: 900; white-space: nowrap; text-overflow: ellipsis; }
.rookie-acquire footer { display: flex; align-items: end; justify-content: center; gap: 12px; padding: 10px; border-top: 1px solid var(--line); }
.rookie-acquire footer > label { display: grid; gap: 3px; color: var(--muted); font-size: .65rem; font-weight: 900; }
.rookie-acquire footer input { width: 190px; height: 36px; }
.rookie-acquire footer > div { display: flex; gap: 6px; }
.rookie-result { text-align: center; }
.rookie-result-abilities { width: min(100%,520px); margin: 15px auto; text-align: left; }
.settings-current { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:16px 0 0; }
.settings-current div { padding:10px; border:1px solid var(--line); border-radius:8px; background:rgba(255,255,255,.025); }
.settings-current dt { color:var(--muted); font-size:.7rem; }
.settings-current dd { margin:3px 0 0; font-weight:900; }
.settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.setting-card h3 { margin:0; }
.setting-card > p { color:var(--muted); font-size:.75rem; }
.compact-form { gap:10px; }
.setting-pair { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.identity-form { max-width:720px; margin:auto; }
.identity-compare { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:16px 0; }
.identity-compare > section { padding:12px; border:1px solid var(--line); border-radius:10px; }
.exhibition-form { display:grid; gap:12px; }
.exhibition-tools { display:flex; align-items:end; justify-content:space-between; gap:10px; }
.exhibition-tools label, .exhibition-controls label { display:grid; gap:4px; color:var(--muted); font-size:.68rem; font-weight:900; }
.exhibition-tools input { width:min(360px,72vw); }
.exhibition-team-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; max-height:480px; overflow:auto; padding:3px; }
.exhibition-team { display:grid; grid-template-columns:22px minmax(0,1fr); align-items:center; gap:7px; min-width:0; padding:10px; border:1px solid var(--line); border-radius:8px; background:rgba(4,16,27,.46); cursor:pointer; }
.exhibition-team:has(input:checked) { border-color:#fbbf24; box-shadow:inset 3px 0 #fbbf24; background:rgba(251,191,36,.1); }
.exhibition-team input { width:17px; height:17px; margin:0; accent-color:#fbbf24; }
.exhibition-team i { width:11px; height:22px; border-radius:3px; box-shadow:0 0 0 1px rgba(255,255,255,.22); }
.exhibition-team span { min-width:0; }
.exhibition-team strong, .exhibition-team small { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.exhibition-team strong { font-size:.74rem; }
.exhibition-team small { margin-top:2px; color:var(--muted); font-size:.6rem; }
.exhibition-controls { display:flex; align-items:end; justify-content:center; flex-wrap:wrap; gap:9px; padding-top:12px; border-top:1px solid var(--line); }
.exhibition-controls select { min-width:120px; }
.exhibition-history .table-wrap { margin-top:12px; }
.history-table table { width:100%; border-collapse:collapse; white-space:nowrap; }
.history-table th,.history-table td { padding:10px 12px; border-bottom:1px solid var(--line); text-align:right; font-size:.78rem; }
.history-table th { color:var(--muted); background:#102940; }
.history-table :is(th,td):nth-child(2),.history-table :is(th,td):nth-child(3) { text-align:left; }
.history-team { display:inline-flex; align-items:center; gap:7px; font-weight:800; color:var(--text); }
.history-team i { width:9px; height:17px; flex:0 0 auto; border:1px solid #8194a8; border-radius:2px; }
.history-panel > .section-head p:last-child { color:var(--muted); font-size:.8rem; line-height:1.6; }
.triple-crown-tabs { flex-wrap:wrap; }
.triple-crown-panel .section-head p:last-child { color:var(--muted); font-size:.8rem; line-height:1.6; }
.triple-crown-list { display:grid; gap:14px; }
.triple-crown-record { padding:18px; border:1px solid rgba(251,191,36,.35); border-radius:10px; background:linear-gradient(125deg,rgba(93,69,22,.2),var(--panel-2) 65%); }
.triple-crown-record > header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.triple-crown-record h3 { margin:7px 0; font-size:1.25rem; overflow-wrap:anywhere; }
.triple-crown-emblem { color:#fde68a; white-space:nowrap; letter-spacing:.14em; }
.triple-crown-record .history-team { font-size:.8rem; }
.triple-crown-metrics,.triple-crown-extra { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:18px 0; }
.triple-crown-metrics > div { min-width:0; padding:12px; border:1px solid var(--line); border-radius:7px; background:rgba(0,0,0,.15); }
.triple-crown-metrics dt,.triple-crown-extra dt { color:var(--muted); font-size:.72rem; }
.triple-crown-metrics dd { margin:5px 0 0; color:#fde68a; font-weight:900; font-size:clamp(1.1rem,3vw,1.6rem); overflow-wrap:anywhere; }
.triple-crown-extra dd { margin:4px 0 0; font-weight:800; }
.triple-crown-record summary { color:var(--muted); font-size:.8rem; cursor:pointer; }
.milestone-record { border-color:rgba(94,234,212,.35); background:linear-gradient(125deg,rgba(20,105,94,.2),var(--panel-2) 65%); }
.milestone-emblem { color:#99f6e4; font-size:.8rem; font-weight:900; white-space:nowrap; }
.milestone-record .triple-crown-metrics dd { color:#99f6e4; }
.milestone-guide { margin-bottom:12px; }
.career-panel { margin-bottom:16px; }
.normal-history-tabs { flex-wrap:wrap; }
.career-panel .record-tabs { flex-wrap:wrap; }
.career-panel .section-head { flex-wrap:wrap; }
.career-panel .section-head p:last-child { color:var(--muted); font-size:.8rem; }
.career-table table { min-width:760px; }
.career-table tbody th { text-align:left; }
.career-table small { display:block; color:var(--muted); font-weight:400; margin-top:5px; }
.career-table:focus-visible { outline:2px solid var(--accent-2); outline-offset:3px; }
.milestone-record .history-team { overflow-wrap:anywhere; }
@media(max-width:560px) { .milestone-panel .section-head,.milestone-record > header { flex-wrap:wrap; } .milestone-panel .trade-tabs { flex-wrap:wrap; } }
@media(max-width:560px) { .triple-crown-record { padding:12px; } .triple-crown-metrics { gap:6px; } .triple-crown-metrics > div { padding:8px; } .triple-crown-extra { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.champion-hero { border-color:rgba(251,191,36,.5); background:linear-gradient(130deg,#332b1b,#0d1d2f 65%); }
.champion-hero .section-head p:last-child { color:var(--muted); font-size:.8rem; }
.champion-crown { display:flex; align-items:center; gap:18px; margin:25px 0; }
.champion-crown > span { display:grid; place-items:center; width:64px; height:64px; flex:0 0 auto; border:1px solid #d2a145; border-radius:50%; color:#fde68a; font-size:2rem; background:rgba(251,191,36,.09); }
.champion-crown h3 { margin:4px 0; font-size:clamp(1.3rem,4vw,2rem); overflow-wrap:anywhere; }
.champion-crown p { margin:0; color:#e7c582; font-size:.8rem; }
.champion-awards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.champion-awards article { min-width:0; padding:16px; border:1px solid var(--line); border-radius:9px; background:var(--panel-2); overflow-wrap:anywhere; }
.champion-awards p { margin:0 0 6px; color:var(--muted); font-size:.75rem; }
.champion-awards h3 { margin:0; font-size:1rem; }
.champion-awards article > strong { display:block; margin:8px 0; color:#fde68a; font-size:1.2rem; }
.champion-awards .history-team { font-size:.75rem; }
.champion-seasons summary { cursor:pointer; color:var(--accent); }
.champion-seasons > div { display:flex; flex-wrap:wrap; gap:7px; width:220px; padding:10px 0; }
@media (max-width:560px) { .champion-awards { grid-template-columns:1fr; } .champion-crown { gap:10px; } .champion-crown > span { width:44px; height:44px; font-size:1.5rem; } }
.allstar-news-list { display:grid; gap:10px; }
.allstar-news-item { padding:14px; border:1px solid var(--line); border-radius:10px; background:linear-gradient(135deg,rgba(16,38,57,.96),rgba(8,22,35,.96)); }
.allstar-news-item.is-champion { border-color:rgba(251,191,36,.5); background:linear-gradient(135deg,rgba(91,63,15,.44),rgba(13,29,47,.98)); }
.allstar-news-item > header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.allstar-news-item > header span { padding:4px 8px; border:1px solid rgba(112,224,189,.38); border-radius:999px; color:var(--accent-2); font-size:.66rem; font-weight:900; }
.allstar-news-item > header time { color:var(--muted); font-size:.7rem; }
.allstar-news-item > p { margin:11px 0; color:#e7f5ff; font-size:.83rem; line-height:1.65; }
.allstar-news-score { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:13px; padding:11px; border-radius:8px; background:rgba(4,16,27,.56); text-align:center; }
.allstar-news-score strong { overflow-wrap:anywhere; font-size:.88rem; }
.allstar-news-score b { color:#fff; font-size:1.35rem; white-space:nowrap; }
.allstar-news-score i { padding:0 8px; color:var(--muted); font-size:.75rem; font-style:normal; }
.allstar-news-champion { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px; border-radius:8px; background:rgba(4,16,27,.46); }
.allstar-news-champion > div { display:grid; gap:2px; }
.allstar-news-champion small,.allstar-news-champion span { color:var(--muted); font-size:.68rem; }
.allstar-news-champion strong { overflow-wrap:anywhere; font-size:1.15rem; }
.allstar-news-champion > b { color:#fde68a; white-space:nowrap; }
@media (max-width: 650px) {
  .shell { padding: 24px 0; }
  .password-grid, .actions, .status-grid { grid-template-columns: 1fr; }
  .settings-current, .settings-grid, .identity-compare, .setting-pair { grid-template-columns:1fr; }
  .dashboard-head { display: grid; }
  .allstar-news-champion { align-items:flex-start; flex-direction:column; }
  .summary div { grid-template-columns: 1fr; gap: 5px; }
}
@media (max-width: 880px) {
  .game-layout { grid-template-columns: 1fr; }
  .game-sidebar { grid-template-columns: minmax(270px, 1fr) minmax(260px, 1fr); }
  .game-sidebar .team-card { grid-row: span 3; }
  .side-menu > div { grid-template-columns: repeat(3, 1fr); }
  .organizer-board, .organizer-board.is-pitcher { grid-template-columns: 1fr; }
  .organizer-board.is-pitcher .is-starter, .organizer-board.is-pitcher .is-relief, .organizer-board.is-pitcher .is-closer, .organizer-board .is-farm { grid-column: auto; grid-row: auto; }
  .pitcher-usage-board { grid-template-columns: 1fr; }
  .pitcher-usage-board .is-starter, .pitcher-usage-board .is-long, .pitcher-usage-board .is-utility, .pitcher-usage-board .is-bridge, .pitcher-usage-board .is-setup, .pitcher-usage-board .is-closer, .pitcher-usage-board .is-farm { grid-column: auto; grid-row: auto; }
  .organizer-zone.is-farm .organizer-list { grid-template-columns: 1fr; }
  .tactics-board { grid-template-columns: 1fr; }
  .tactics-board .is-starter, .tactics-board .is-lineup, .tactics-board .is-relief, .tactics-board .is-bench, .tactics-board .is-closer, .tactics-board .is-farm { grid-column: auto; grid-row: auto; }
  .pregame-player { grid-template-columns: 65px minmax(100px,1fr) minmax(125px,1fr) 80px; }
  .game-boxscores { grid-template-columns: 1fr; }
  .rookie-list { grid-template-columns: 1fr; }
  .exhibition-team-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .metric-grid, .metric-grid--six, .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operation-grid { grid-template-columns: 1fr; }
  .organizer-heading { align-items: flex-start; }
  .organizer-toolbar { grid-template-columns: 1fr; }
  .organizer-actions { justify-content: stretch; }
  .organizer-actions button { flex: 1 1 0; }
  .usage-guide > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tactics-guide small { flex-basis: 100%; margin-left: 0; }
  .tactics-actions { align-items: stretch; flex-direction: column; }
  .tactics-actions button { width: 100%; }
  .organizer-player, .organizer-board.is-pitcher .organizer-player, .organizer-zone.is-farm .organizer-player { grid-template-columns: 28px 22px minmax(90px, 1fr) 68px 18px; }
  .player-abilities { grid-column: 3 / 6; }
  .player-state { grid-column: 3 / 5; grid-row: 2; text-align: left; }
  .drag-handle { grid-column: 5; grid-row: 1; }
  .pregame-rosters { grid-template-columns: 1fr; }
  .pregame-roster.is-farm { grid-column: auto; }
  .pregame-roster.is-farm .pregame-player-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .game-shell { width: min(100% - 12px, 1220px); padding-top: 6px; }
  .game-header { align-items: flex-start; padding: 14px; }
  .game-calendar { grid-template-columns: 1fr; gap: 2px; }
  .game-calendar form { grid-column: auto; }
  .game-nav a, .game-nav button { flex: 1 1 calc(33.333% - 7px); justify-content: center; padding: 7px 8px; }
  .game-layout { gap: 8px; }
  .game-sidebar { grid-template-columns: 1fr; }
  .game-sidebar .team-card { grid-row: auto; }
  .side-menu > div { grid-template-columns: repeat(2, 1fr); }
  .game-workspace { padding: 7px; }
  .phase-action { align-items: stretch; flex-direction: column; }
  .metric-grid, .metric-grid--six, .detail-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; }
  .organizer-heading { display: grid; }
  .organizer-summary { justify-items: start; }
  .organizer-tabs a { flex: 1 1 calc(50% - 3px); text-align: center; }
  .usage-guide > header { align-items: flex-start; flex-direction: column; }
  .usage-guide > div { grid-template-columns: 1fr; }
  .pitcher-usage-board .organizer-player { grid-template-columns: 28px 22px minmax(90px,1fr) 88px 18px; }
  .pitcher-usage-board .player-state { grid-column: 3 / 5; grid-row: 2; text-align: left; }
  .pitcher-usage-board .drag-handle { grid-column: 5; grid-row: 1; }
  .tactics-columns, .tactics-player { grid-template-columns: minmax(120px,1fr) minmax(78px,92px) minmax(78px,92px); gap: 4px; }
  .tactics-board.is-pitcher .tactics-columns, .tactics-board.is-pitcher .tactics-player { grid-template-columns: minmax(120px,1fr) minmax(88px,108px); }
  .training-board .tactics-columns, .training-board .tactics-player { grid-template-columns: minmax(120px,1fr) minmax(105px,125px); }
  .pregame-heading { align-items: flex-start; }
  .pregame-matchup { grid-template-columns: 1fr; }
  .pregame-matchup > b { transform: rotate(90deg); }
  .pregame-controls > div, .pregame-controls > label { flex: 1 1 calc(33.333% - 8px); min-width: 80px; }
  .pregame-controls button { width: 100%; margin-left: 0; }
  .pregame-strength > header { align-items: flex-start; flex-direction: column; }
  .pregame-strength-bars { grid-template-columns: 1fr; }
  .pregame-player { grid-template-columns: 62px minmax(100px,1fr) 74px; }
  .pregame-abilities { grid-column: 2 / 4; }
  .game-start-result > header { align-items: flex-start; }
  .game-start-matchup, .game-final-score, .game-start-summary { grid-template-columns: 1fr; }
  .game-start-matchup > b { transform: rotate(90deg); }
  .rookie-filter { align-items: stretch; flex-direction: column; }
  .rookie-filter label:has(input[type="radio"]) { min-height: 24px; }
  .rookie-candidate { grid-template-columns: 24px 34px minmax(60px,.7fr) minmax(120px,1.3fr); }
  .rookie-abilities { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .rookie-acquire footer { align-items: stretch; flex-direction: column; }
  .rookie-acquire footer input { width: 100%; }
  .rookie-acquire footer > div { display: grid; grid-template-columns: 1fr 1fr; }
  .record-tabs a { flex: 1 1 0; min-width: 0; }
  .record-filter { align-items: stretch; flex-direction: column; }
  .record-filter select, .record-filter button { width: 100%; }
  .record-qualification { align-items: flex-start; flex-direction: column; }
  .game-final-score > i { order: 2; }
  .game-final-score article:last-child { order: 3; }
  .exhibition-tools { align-items:stretch; flex-direction:column; }
  .exhibition-tools input { width:100%; }
  .exhibition-team-list { grid-template-columns:1fr; max-height:420px; }
  .exhibition-controls { align-items:stretch; flex-direction:column; }
  .exhibition-controls button, .exhibition-controls select { width:100%; }
}
:root { --recruitment-accent: #79dec9; }
.recruitment-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.recruitment-card { min-width: 0; border-top: 3px solid var(--recruitment-accent); }
.recruitment-card h3 { margin: 5px 0; }
.recruitment-price strong { color: var(--recruitment-accent); font-size: 1.35rem; }
.recruitment-card form { display: grid; gap: 10px; margin-top: 16px; }
.recruitment-card label { display: grid; gap: 4px; }
.recruitment-card input,.recruitment-card select { width: 100%; min-width: 0; box-sizing: border-box; }
.recruitment-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.recruitment-facts > div { flex: 1 0 65px; padding: 7px; background: #17212e; border-radius: 6px; }
.recruitment-facts dt { color: #abb9cb; font-size: .75rem; }
.recruitment-facts dd { margin: 4px 0 0; color: #f2f6fb; font-weight: 700; }
.recruitment-card details > summary { cursor: pointer; padding: 8px 0; }
.recruitment-confirmation { max-width: 900px; }
.recruitment-confirmation li { margin: 10px 0; }
@media(max-width: 700px) { .recruitment-grid { grid-template-columns: 1fr; } }
.team-image-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin:20px 0; }
.team-image-preview { display:flex; align-items:center; justify-content:center; min-height:140px; padding:20px; border:1px solid #315466; border-radius:12px; background:#10212c; }
.team-image-preview img { width:100px; height:auto; max-height:200px; object-fit:contain; }
.team-image-panel label { display:block; margin:16px 0; }
.team-image-panel input[type=file] { display:block; width:100%; max-width:100%; margin-top:12px; }
.team-image-panel form + form { margin-top:12px; }
.team-image-panel .button-secondary { background:#173043; color:#eef6ff; border:1px solid #315466; }
.legend-abilities { display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:12px; margin:18px 0 28px; }
.legend-abilities div { padding:14px; border:1px solid #315466; border-radius:10px; background:#10212c; }
.legend-abilities dt { color:#a9bfcd; font-size:13px; }
.legend-abilities dd { margin:8px 0 0; font-size:22px; font-variant-numeric:tabular-nums; }
@media(max-width:700px) { .team-image-layout { grid-template-columns:1fr; } }
.community { min-width:0; }
.community-post { margin:18px 0; padding:20px; border:1px solid #315466; border-radius:12px; }
.community-post h3,.community-post p { overflow-wrap:anywhere; }
.community-body { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.8; margin:16px 0; }
.community form { display:grid; gap:16px; margin:20px 0; max-width:760px; }
.community label { display:grid; gap:8px; }
.community textarea,.community select,.community input { width:100%; min-width:0; box-sizing:border-box; }
.community textarea { background:#10212c; color:#eef6ff; border:1px solid #315466; border-radius:8px; padding:12px; font:inherit; resize:vertical; }
.community button { justify-self:start; }
.community dl dd { overflow-wrap:anywhere; }
/* Community attachments remain readable without JavaScript, including narrow screens. */
.community-image { margin: 1rem 0; padding: .75rem; border: 1px solid #d8e1e8; border-radius: .75rem; background: #f6f9fb; }
.community-image img { display: block; max-width: 100%; max-height: 420px; width: auto; height: auto; object-fit: contain; margin: auto; }
.community-image figcaption { margin-top: .6rem; color: #536475; font-size: .8rem; overflow-wrap: anywhere; }
.community-player { margin: 1rem 0; padding: 1rem; border-left: 4px solid #16827e; border-radius: .5rem; background: #edf7f6; color: #183636; }
.community-player h4 { margin: .25rem 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.community-player .eyebrow { color: #12605d; }
.community-player dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: .8rem 0; }
.community-player dt { font-size: .75rem; color: #526b6a; }
.community-player dd { margin: .25rem 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.community-player small { color: #526b6a; }
.community-like { margin: .8rem 0; }
.login-evidence-notice { padding: .9rem; border: 1px solid #446277; border-radius: .5rem; }
.login-evidence-notice summary { cursor: pointer; }
.form .evidence-option { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; }
.form .evidence-option input[type="checkbox"] { width: 1.15rem; height: 1.15rem; flex: 0 0 1.15rem; margin: .2rem 0 0; }
.community-like button[aria-pressed="true"] { border-color: #16827e; background: #edf7f6; color: #12605d; }
.community-attachments { margin: 1rem 0; padding: 1rem; border: 1px solid #d8e1e8; border-radius: .75rem; min-width: 0; }
.community-attachments input, .community-attachments select { max-width: 100%; min-width: 0; }
.community-attachments select { width: 100%; padding: .7rem; border: 1px solid #294459; background: #0c202f; color: #d9e7ef; border-radius: .5rem; font: inherit; }
@media (max-width: 480px) { .community-player dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
