:root {
  color-scheme: dark;
  --ink: #eef4ef;
  --muted: #92a198;
  --night: #07100d;
  --surface: #0d1915;
  --surface-2: #14221d;
  --line: rgba(238, 244, 239, 0.14);
  --green: #d7ff38;
  --green-deep: #153a26;
  --orange: #ff6846;
  --blue: #58a6ff;
  --pitch: #153f2a;
  font-family: "Arial Narrow", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 80% 0%, rgba(37, 88, 58, .22), transparent 32rem), var(--night); }
button, input { font: inherit; }
button { color: inherit; }
.site-header { height: 68px; padding: 0 clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; background: rgba(7,16,13,.92); backdrop-filter: blur(16px); }
.brand { border: 0; background: none; padding: 0; display: flex; gap: 12px; align-items: center; cursor: pointer; font-weight: 900; letter-spacing: .08em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--night); background: var(--green); transform: skew(-8deg); font-size: 1.25rem; }
.header-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .72rem; letter-spacing: .14em; font-weight: 800; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(215,255,56,.12); }
main { min-height: calc(100vh - 120px); }
.screen { display: none; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: clamp(48px, 7vw, 94px) 0 72px; overflow-anchor: none; }
.screen.is-active { display: block; animation: enter .4s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
.start-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); min-height: 630px; border: 1px solid var(--line); }
.intro-panel { position: relative; overflow: hidden; padding: clamp(44px, 7vw, 88px); display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, rgba(215,255,56,.08), transparent 48%); }
.intro-panel::after { content: "11"; position: absolute; right: -2rem; bottom: -7rem; color: transparent; -webkit-text-stroke: 1px rgba(215,255,56,.14); font-size: clamp(18rem, 32vw, 31rem); line-height: 1; font-weight: 900; letter-spacing: -.12em; pointer-events: none; }
.eyebrow { margin: 0 0 16px; color: var(--green); letter-spacing: .18em; font-weight: 900; font-size: .73rem; }
.intro-panel h1, .result-heading h1 { margin: 0; font-size: clamp(3.2rem, 7vw, 6.4rem); line-height: .98; letter-spacing: -.065em; max-width: 780px; }
.intro-panel h1 span { color: var(--green); }
.intro-copy { position: relative; z-index: 1; max-width: 570px; margin: 32px 0 24px; color: #b5c2ba; font-size: 1.05rem; line-height: 1.9; }
.data-coverage { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 570px); margin: 0 0 28px; border: 1px solid var(--line); background: rgba(7,16,13,.55); }
.data-coverage div { padding: 14px 16px; border-right: 1px solid var(--line); }
.data-coverage div:last-child { border-right: 0; }
.data-coverage strong { display: block; color: var(--green); font-size: 1.35rem; line-height: 1; }
.data-coverage span { display: block; margin-top: 7px; color: var(--muted); font-size: .68rem; line-height: 1.35; }
.primary-button { position: relative; z-index: 1; width: min(100%, 330px); min-height: 64px; border: 0; padding: 0 22px; background: var(--green); color: #0b1511; display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 1rem; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(215,255,56,.14); }
.rules-panel { padding: clamp(32px, 4vw, 54px); border-left: 1px solid var(--line); background: rgba(13,25,21,.72); }
.panel-heading { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-heading h2 { font-size: 1.6rem; margin: 0 0 18px; }
.rules-list { padding: 0; margin: 0; list-style: none; }
.rules-list li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rules-list li span { color: var(--green); font: 900 1.05rem/1 monospace; }
.rules-list li p { margin: 0; line-height: 1.65; color: #c7d2cb; }
.division-options { margin-top: 30px; }
.division-options > p { color: var(--muted); font-size: .78rem; letter-spacing: .08em; }
.division-options label { display: inline-flex; align-items: center; margin: 7px 8px 0 0; cursor: pointer; }
.division-options input { position: absolute; opacity: 0; }
.division-options span { display: block; min-width: 68px; padding: 11px 18px; text-align: center; background: var(--surface-2); border: 1px solid var(--line); font-weight: 900; transition: .2s; }
.division-options input:checked + span { background: var(--green); color: var(--night); border-color: var(--green); }
.disclaimer { margin: 22px auto 0; max-width: 820px; text-align: center; color: #65736a; line-height: 1.7; font-size: .76rem; }
.draft-screen { width: min(1240px, calc(100% - 40px)); }
.draft-topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 32px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.draft-topbar h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; }
.progress-block { min-width: 210px; text-align: center; }
.progress-block strong { display: block; font-size: 2.8rem; line-height: 1; }
.progress-block small { color: var(--muted); font-size: 1rem; }
.progress-track { height: 4px; margin-top: 12px; background: var(--surface-2); overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; background: var(--green); transition: width .35s ease; }
.pass-counter { justify-self: end; border: 1px solid rgba(255,104,70,.3); background: rgba(255,104,70,.08); color: #ffad9b; padding: 13px 18px; font-size: .88rem; }
.pass-counter strong { color: var(--orange); font-size: 1.2rem; }
.game-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 30px; margin-top: 30px; }
.game-grid > *, .player-card-head > * { min-width: 0; }
.player-card { min-height: 470px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(215,255,56,.05), transparent 44%), var(--surface); padding: clamp(24px, 4vw, 42px); }
.player-card-head { display: grid; grid-template-columns: 86px 1fr auto; gap: 22px; align-items: center; }
.shirt-number { height: 96px; display: grid; place-items: center; color: var(--green); background: var(--green-deep); border: 1px solid rgba(215,255,56,.18); font: 900 2.5rem/1 monospace; clip-path: polygon(10% 0, 90% 0, 100% 16%, 87% 30%, 87% 100%, 13% 100%, 13% 30%, 0 16%); }
.position-row { display: flex; align-items: center; gap: 8px; }
.position-row span, .position-row em { padding: 5px 9px; font-size: .7rem; line-height: 1; font-style: normal; font-weight: 900; }
.position-row span { color: var(--night); background: var(--green); }
.position-row em { color: var(--muted); border: 1px solid var(--line); }
.player-card h2 { margin: 9px 0 4px; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.04em; }
.player-card-head p { margin: 0; color: var(--muted); }
.overall { display: flex; flex-direction: column; text-align: center; }
.overall span { color: var(--muted); font-size: .65rem; letter-spacing: .13em; font-weight: 900; }
.overall strong { color: var(--green); font-size: 3rem; line-height: 1; }
.profile-strip { display: flex; gap: 8px; flex-wrap: wrap; margin: 30px 0 18px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-strip span { padding-right: 14px; border-right: 1px solid var(--line); color: #c5d0c8; font-size: .82rem; }
.performance-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.performance-strip div { padding: 13px 14px; border: 1px solid var(--line); background: #101e19; }
.performance-strip span { display: block; margin-bottom: 6px; color: var(--green); font-size: .66rem; font-weight: 900; letter-spacing: .08em; }
.performance-strip strong { font-size: .88rem; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.stat { background: #101e19; border: 1px solid var(--line); padding: 14px 8px; text-align: center; }
.stat span { display: block; color: var(--muted); font-size: .7rem; margin-bottom: 7px; }
.stat strong { font-size: 1.55rem; }
.personal-records { margin-top: 12px; border: 1px solid var(--line); background: #0a1511; }
.personal-records summary { padding: 15px 16px; color: var(--green); cursor: pointer; font-size: .78rem; font-weight: 900; letter-spacing: .08em; list-style-position: inside; }
.personal-records[open] summary { border-bottom: 1px solid var(--line); }
.personal-records-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.personal-records-grid div { min-width: 0; padding: 14px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.personal-records-grid div:nth-child(4n) { border-right: 0; }
.personal-records-grid span { display: block; color: var(--muted); font-size: .65rem; }
.personal-records-grid strong { display: inline-block; margin-top: 7px; font-size: 1.2rem; }
.personal-records-grid small { margin-left: 4px; color: var(--muted); font-size: .6rem; }
.player-note { margin-top: 22px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.player-note span { color: var(--green); font-size: .63rem; font-weight: 900; letter-spacing: .12em; }
.player-note p { margin: 0; color: #aab8af; font-size: .86rem; line-height: 1.65; }
.decision-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; margin-top: 12px; }
.decision-row button { min-height: 88px; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: filter .2s, transform .2s; }
.decision-row button:hover { filter: brightness(1.08); transform: translateY(-2px); }
.decision-row span { font-size: 1.25rem; font-weight: 900; }
.decision-row small { margin-top: 6px; opacity: .7; }
.pass-button { color: #ffd0c6; background: #613326; }
.pass-button:disabled { cursor: not-allowed; opacity: .35; transform: none; }
.take-button { color: #0c1712; background: var(--green); }
.squad-panel { border: 1px solid var(--line); background: var(--surface); padding: 24px; }
.squad-heading { display: flex; align-items: start; justify-content: space-between; }
.squad-heading h2 { margin: 0 0 20px; font-size: 1.7rem; }
.text-button { border: 0; padding: 5px 0; background: transparent; color: var(--muted); text-decoration: underline; cursor: pointer; }
.mini-pitch, .final-pitch { position: relative; overflow: hidden; background-color: var(--pitch); background-image: linear-gradient(90deg, rgba(255,255,255,.028) 50%, transparent 50%); background-size: 25% 100%; border: 1px solid rgba(255,255,255,.5); }
.mini-pitch { aspect-ratio: 3 / 4; }
.mini-pitch::before, .final-pitch::before { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px solid rgba(255,255,255,.48); }
.mini-pitch::after, .final-pitch::after { content: ""; position: absolute; width: 25%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.48); border-radius: 50%; left: 37.5%; top: 50%; transform: translateY(-50%); }
.slot { position: absolute; z-index: 2; transform: translate(-50%, -50%); width: 25%; min-height: 40px; padding: 6px 4px; text-align: center; background: rgba(7,16,13,.82); border: 1px solid rgba(255,255,255,.18); }
.slot.is-filled { color: var(--night); background: var(--green); border-color: var(--green); }
.slot b { display: block; font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot span { display: block; margin-top: 2px; font-size: .56rem; opacity: .72; }
.position-needs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.position-need { padding: 9px 5px; text-align: center; border: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.position-need strong { color: var(--ink); }
.result-screen { width: min(1180px, calc(100% - 40px)); }
.result-heading { margin-bottom: 36px; }
.result-heading h1 { max-width: none; font-size: clamp(3rem, 5.4vw, 5rem); }
.result-heading > p:last-child { color: var(--muted); }
.result-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
.final-pitch { min-height: 700px; }
.final-pitch .slot { width: 21%; min-height: 54px; padding: 9px 5px; }
.final-pitch .slot b { font-size: .85rem; }
.team-report { padding: clamp(28px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); }
.team-rating { display: flex; align-items: end; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 25px; }
.team-rating span { color: var(--muted); font-size: .77rem; letter-spacing: .12em; }
.team-rating strong { color: var(--green); font-size: 5rem; line-height: .8; }
.report-bars { margin: 30px 0; }
.report-item { display: grid; grid-template-columns: 88px 1fr 30px; gap: 12px; align-items: center; margin: 18px 0; font-size: .78rem; }
.report-item div { height: 7px; background: #1b2a24; }
.report-item i { display: block; height: 100%; background: var(--green); }
.team-identity { margin: 34px 0; padding: 24px; background: var(--green-deep); border-left: 3px solid var(--green); }
.team-identity span { color: var(--green); font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.team-identity h2 { margin: 9px 0; font-size: 1.7rem; }
.team-identity p { margin: 0; color: #adbbb2; line-height: 1.7; }
.result-actions, .season-actions { display: grid; gap: 10px; }
.result-actions .primary-button, .season-actions .primary-button { width: 100%; }
.secondary-button { min-height: 52px; padding: 0 18px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-weight: 800; cursor: pointer; transition: border-color .2s, background .2s; }
.secondary-button:hover { border-color: var(--green); background: rgba(215,255,56,.05); }
.season-screen { width: min(1180px, calc(100% - 40px)); }
.season-hero { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.season-hero h1 { margin: 0; font-size: clamp(3rem, 6vw, 5.4rem); line-height: .95; letter-spacing: -.06em; }
.season-hero > div > p:last-child { margin: 18px 0 0; color: var(--muted); }
.rank-badge { min-width: 190px; text-align: right; }
.rank-badge > span { color: var(--muted); font-size: .7rem; font-weight: 900; letter-spacing: .14em; }
.rank-badge strong { display: block; color: var(--green); line-height: .82; }
.rank-badge b { font-size: clamp(5rem, 10vw, 8rem); }
.rank-badge small { margin-left: 4px; font-size: 1.1rem; }
.season-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 28px; margin-top: 28px; }
.season-grid > * { min-width: 0; }
.season-summary { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); background: var(--surface); }
.season-summary div { padding: 20px 10px; text-align: center; border-right: 1px solid var(--line); }
.season-summary div:last-child { border-right: 0; }
.season-summary span { display: block; color: var(--muted); font-size: .7rem; }
.season-summary strong { display: block; margin-top: 7px; font-size: 1.65rem; }
.season-highlight { margin-top: 18px; padding: 34px; background: var(--green-deep); border-left: 3px solid var(--green); }
.season-highlight h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.season-highlight > p:not(.eyebrow) { margin: 0; color: #b8c7bd; line-height: 1.8; }
.mvp-row { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(215,255,56,.2); }
.mvp-row span { color: var(--green); font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.standings-card { padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.standings-heading { display: flex; justify-content: space-between; align-items: baseline; }
.standings-heading span { color: var(--muted); font-size: .72rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 500px; border-collapse: collapse; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: right; font-size: .82rem; }
th { color: var(--muted); font-size: .65rem; font-weight: 800; }
th:nth-child(2), td:nth-child(2) { text-align: left; }
tbody tr.is-user { background: var(--green); color: var(--night); font-weight: 900; }
tbody tr.is-user td { border-bottom-color: rgba(7,16,13,.15); }
.season-actions { grid-template-columns: 1fr 1fr; max-width: 650px; margin: 28px auto 0; }
footer { height: 52px; border-top: 1px solid var(--line); display: grid; place-items: center; color: #59665e; font-size: .67rem; letter-spacing: .14em; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 30; padding: 13px 20px; background: var(--ink); color: var(--night); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; font-size: .84rem; font-weight: 800; transition: .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
button:focus-visible, input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }

@media (max-width: 900px) {
  .start-grid, .game-grid, .result-grid, .season-grid { grid-template-columns: 1fr; }
  .start-grid { min-height: 0; }
  .intro-panel { justify-content: flex-start; }
  .rules-panel { border-left: 0; border-top: 1px solid var(--line); }
  .draft-topbar { grid-template-columns: 1fr auto; }
  .progress-block { order: 3; grid-column: 1 / -1; width: 100%; }
  .pass-counter { align-self: center; }
  .squad-panel { max-width: 620px; width: 100%; margin: 0 auto; }
  .final-pitch { min-height: 640px; }
}

@media (max-width: 580px) {
  .site-header { height: 58px; padding: 0 16px; }
  .brand { font-size: .78rem; }
  .brand-mark { width: 30px; height: 30px; }
  .header-meta { display: none; }
  .screen, .draft-screen, .result-screen, .season-screen { width: min(100% - 24px, 1180px); padding-top: 34px; }
  .intro-panel { padding: 38px 24px 48px; }
  .intro-panel h1 { font-size: 3.1rem; }
  .data-coverage div { padding: 12px 10px; }
  .data-coverage strong { font-size: 1.1rem; }
  .data-coverage span { font-size: .61rem; }
  .rules-panel { padding: 30px 24px; }
  .draft-topbar { gap: 14px; }
  .draft-topbar h1 { font-size: 1.8rem; }
  .pass-counter { padding: 10px; font-size: .72rem; }
  .player-card { padding: 20px; min-height: 0; }
  .player-card-head { grid-template-columns: 62px 1fr auto; gap: 12px; }
  .shirt-number { height: 72px; font-size: 1.8rem; }
  .player-card h2 { font-size: 1.75rem; }
  .overall strong { font-size: 2.1rem; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .personal-records-grid { grid-template-columns: repeat(2, 1fr); }
  .personal-records-grid div:nth-child(4n) { border-right: 1px solid var(--line); }
  .personal-records-grid div:nth-child(2n) { border-right: 0; }
  .performance-strip { grid-template-columns: 1fr; }
  .player-note { grid-template-columns: 1fr; gap: 8px; }
  .decision-row { grid-template-columns: 1fr 1.2fr; }
  .decision-row button { min-height: 78px; }
  .decision-row span { font-size: 1rem; }
  .mini-pitch { min-height: 0; }
  .slot { width: 28%; }
  .final-pitch { min-height: 560px; }
  .final-pitch .slot { width: 25%; }
  .result-heading h1 { font-size: 3rem; }
  .season-hero { align-items: start; }
  .season-hero h1 { font-size: 2.8rem; }
  .rank-badge { min-width: 92px; }
  .rank-badge b { font-size: 4.5rem; }
  .season-summary { grid-template-columns: repeat(5, 1fr); }
  .season-summary div { padding: 16px 7px; }
  .season-summary strong { font-size: 1.3rem; }
  .season-highlight, .standings-card { padding: 24px 20px; }
  .season-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
