:root {
  --sans: "Afacad Flux", sans-serif;
  --condensed: "Anybody", sans-serif;
  --mono: "Fragment Mono", monospace;
  --serif: "Fraunces", serif;
  --accent: #d9ff45;
  --danger: #ff5b45;
  --bg: #0c0f0e;
  --surface: #141817;
  --surface-2: #1b211f;
  --line: #303735;
  --text: #f2f4ed;
  --muted: #b4beb9;
  --panel-radius: 2px;
  --header-height: 68px;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  letter-spacing: 0;
  overflow-x: hidden;
}

button, a { color: inherit; font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #006ac6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mobile-viewbar, .mobile-drawer, .mobile-scrim { display: none; }
[hidden] { display: none !important; }

/* Game shell */
.game-screen { position: relative; min-height: 100svh; overflow: hidden; color: #f4ead7; background: #17100c; }
.menu-backdrop, .intro-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu-backdrop { object-position: 60% center; filter: sepia(.15) saturate(.85) contrast(1.08) brightness(.6); }
.menu-patina { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,11,7,.98) 0 36%, rgba(20,11,7,.75) 52%, rgba(8,12,12,.12) 82%), repeating-linear-gradient(92deg, transparent 0 35px, rgba(197,161,91,.035) 36px, transparent 40px); }
.menu-masthead { position: absolute; z-index: 2; inset: 0 0 auto; height: 68px; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 18px; padding: 0 28px 0 18px; border-bottom: 1px solid rgba(224,189,115,.35); font: 10px var(--mono); text-transform: uppercase; }
.menu-masthead strong { color: #e0bd73; font-weight: 400; }
.menu-insignia { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.game-logo { display: block; width: min(640px, 82vw); aspect-ratio: 2172 / 300; object-fit: cover; filter: invert(1) hue-rotate(180deg) drop-shadow(0 6px 22px rgba(0,0,0,.7)); }
.intro-logo { display: block; width: min(560px, 80vw); margin: 0 auto 28px; aspect-ratio: 2172 / 300; object-fit: cover; filter: invert(1) hue-rotate(180deg); }
.league-mark { float: left; width: 58px; height: 58px; margin: -4px 14px 0 0; object-fit: contain; filter: drop-shadow(0 2px 5px rgba(0,0,0,.45)); }
.championship-league-mark { display: block; width: 84px; height: 84px; margin: 0 auto 8px; object-fit: contain; }
.rules-toc-logo { display: block; width: 130px; height: 130px; margin: 0 auto 14px; object-fit: contain; filter: sepia(.35) saturate(.8) drop-shadow(0 3px 6px rgba(60,40,15,.35)); }
.brand-logo { width: 38px; height: 38px; object-fit: contain; }
.menu-content { position: relative; z-index: 2; width: min(580px, 48vw); min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 100px clamp(28px, 5vw, 86px) 80px; }
.menu-kicker { color: #c5a15b; font: 10px var(--mono); text-transform: uppercase; }
.menu-content h1 { margin: 18px 0 22px; color: #fff5e3; font: italic 800 clamp(64px, 8vw, 116px)/.72 var(--condensed); text-transform: uppercase; }
.menu-content > p { max-width: 430px; color: #d6c8ae; font-size: 15px; line-height: 1.65; }
.menu-actions { width: min(430px, 100%); display: grid; gap: 7px; margin-top: 28px; }
.menu-action { min-height: 66px; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: 1fr 1fr; align-items: end; padding: 10px 24px 10px 16px; color: #d8cbb3; background: rgba(39,25,17,.88); border: 0; box-shadow: inset 0 0 0 1px #765a42, inset 5px 0 #765a42; text-align: left; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.menu-action > span { grid-row: 1 / 3; align-self: center; color: #b99a60; font: 10px var(--mono); }
.menu-action strong { font: 700 17px var(--condensed); text-transform: uppercase; }
.menu-action i { align-self: start; color: #b9aa91; font: normal 10px var(--mono); }
.menu-action.primary { color: #221710; background: #c5a15b; box-shadow: inset 0 0 0 1px #f0d18f, inset 5px 0 #6c4d27; }
.menu-action.primary span, .menu-action.primary i { color: #4d3923; }
.menu-footer { position: absolute; z-index: 2; inset: auto 0 0; min-height: 38px; display: flex; justify-content: space-between; align-items: center; padding: 0 24px; color: #a99b83; background: rgba(18,11,8,.78); border-top: 1px solid rgba(224,189,115,.2); font: 9px var(--mono); text-transform: uppercase; }

.load-screen { min-height: 100svh; color: #2b2119; background-color: #2a190f; background-image: repeating-linear-gradient(92deg, transparent 0 31px, rgba(255,255,255,.025) 32px, rgba(0,0,0,.1) 35px, transparent 40px); }
.load-header { min-height: 104px; display: flex; align-items: center; gap: 22px; padding: 18px clamp(18px, 4vw, 64px); color: #f2e5cf; background: #352117; border-bottom: 1px solid #75543d; }
.load-header h1 { margin: 3px 0 0; font: italic 800 38px/1 var(--condensed); }
.manual-save-button { min-height: 44px; margin-left: auto; padding: 0 16px; color: #271a11; background: #c7a45d; font: 700 11px var(--sans); }
.manual-save-button:disabled { cursor: default; opacity: .42; }
.back-button { width: 48px; height: 48px; color: #f2e5cf; background: transparent; border: 1px solid #85664d; font-size: 23px; }
.save-workspace { min-height: calc(100svh - 104px); display: grid; grid-template-columns: minmax(420px, 1fr) minmax(280px, .38fr); grid-template-rows: 56px 1fr; margin: 0 clamp(18px, 4vw, 64px); background: #e6dac2; }
.save-ledger-header { grid-column: 1; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; border-bottom: 1px solid #aa987b; font: 11px var(--mono); text-transform: uppercase; }
.save-list { grid-column: 1; overflow-y: auto; }
.save-entry { min-height: 106px; display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 15px; padding: 12px 18px; border-bottom: 1px solid #b5a489; }
.save-entry > img { width: 66px; height: 66px; object-fit: contain; }
.save-entry span { color: #736451; font: 8px var(--mono); text-transform: uppercase; }.save-entry h2 { margin: 5px 0 2px; font: italic 800 20px var(--condensed); text-transform: uppercase; }.save-entry p { margin: 0; color: #655846; font-size: 10px; }
.save-actions { display: flex; gap: 4px; }
.save-actions button { min-height: 38px; padding: 0 12px; color: #554737; background: transparent; border: 1px solid #9e896b; font: 9px var(--mono); text-transform: uppercase; }
.save-actions button:first-child { color: #f1e5cf; background: #203a30; }.save-actions button:last-child { color: #8f2f24; }
.empty-saves { grid-column: 1; display: grid; place-items: center; align-content: center; padding: 40px; text-align: center; }
.empty-file { color: #a89168; font: 700 70px var(--condensed); opacity: .45; }
.empty-saves h2, .storage-note h2 { margin: 8px 0; font: 700 24px var(--condensed); text-transform: uppercase; }
.empty-saves p { max-width: 480px; color: #5c5042; line-height: 1.6; }
.load-actions { display: flex; gap: 8px; margin-top: 14px; }
.import-button, .load-actions button { min-height: 46px; display: inline-grid; place-items: center; padding: 0 18px; color: #fff5e3; background: #8f2f24; font: 700 12px var(--sans); cursor: pointer; }
.load-actions button { color: #2c2118; background: transparent; border: 1px solid #8c775b; }
.storage-note { grid-column: 2; grid-row: 1 / 3; padding: clamp(30px, 5vw, 68px) 30px; color: #f1e5cf; background: #203a30; border-left: 5px solid #c5a15b; }
.storage-note p { color: #d1c5af; font-size: 13px; line-height: 1.7; }
.storage-note .load-actions { display: grid; grid-template-columns: 1fr; }
.storage-note .load-actions button { color: #f1e5cf; border-color: #c5a15b; }
.storage-note .load-actions button:hover { color: #203a30; background: #c5a15b; }

.intro-screen { background: #020505; }
.rules-screen { min-height: 100svh; color: #f0e4ce; background-color: #24150e; background-image: repeating-linear-gradient(93deg, transparent 0 38px, rgba(255,255,255,.022) 39px, rgba(0,0,0,.12) 43px, transparent 48px), radial-gradient(ellipse at 50% 40%, #3a2417, #1a0f09 75%); }
.rules-header { min-height: 78px; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px; padding: 12px 28px; background: #342117; border-bottom: 1px solid #76533b; }
.rules-header h1 { margin: 4px 0 0; font: italic 800 38px/.9 var(--condensed); text-transform: uppercase; }
.rules-header > button:last-child { min-height: 42px; padding: 0 14px; color: #25180f; background: #c7a45d; font: 700 10px var(--mono); text-transform: uppercase; }
.rules-stage { min-height: calc(100svh - 78px); display: grid; place-items: center; padding: 34px 20px 44px; }
.rules-book { --paper: #e8d8b5; position: relative; width: min(1140px, 96vw); display: grid; grid-template-columns: 270px 1fr; color: #2e2216; font-family: Georgia, "Times New Roman", serif; box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px #5a3c24, 0 0 0 7px #4a2d1a, 0 0 0 8px #2a190e; }
.rules-toc, .rules-page { position: relative; background-color: var(--paper); background-image: radial-gradient(circle at 18% 12%, rgba(125,85,35,.16), transparent 32%), radial-gradient(circle at 82% 88%, rgba(110,70,25,.2), transparent 30%), radial-gradient(circle at 70% 25%, rgba(140,100,50,.08), transparent 18%), radial-gradient(ellipse at center, transparent 58%, rgba(95,62,28,.34) 100%), repeating-linear-gradient(0deg, rgba(90,60,25,.025) 0 1px, transparent 1px 3px); }
.rules-toc { padding: 38px 26px; background-color: #e2d0a8; box-shadow: inset -22px 0 30px -18px rgba(70,45,20,.45); }
.rules-page { min-width: 0; display: flex; flex-direction: column; padding: 38px 48px 30px; box-shadow: inset 22px 0 30px -18px rgba(70,45,20,.45); }
.rules-toc-title { display: block; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 3px double #8a6a45; color: #7a2a20; font: 700 22px Georgia, serif; font-variant: small-caps; letter-spacing: .08em; text-align: center; }
.rules-toc ol { margin: 0; padding: 0; list-style: none; }
.rules-toc button { width: 100%; display: flex; align-items: baseline; gap: 6px; padding: 8px 4px; color: #3e2e1d; background: transparent; font: 15px Georgia, serif; text-align: left; }
.rules-toc button span { flex: 0 1 auto; }
.rules-toc button::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted #8a6a45; transform: translateY(-4px); }
.rules-toc button b { order: 2; font: italic 400 14px Georgia, serif; color: #6a5236; }
.rules-toc button:hover span, .rules-toc button.active span { color: #8f2f24; text-decoration: underline; text-underline-offset: 3px; }
.rules-toc button.active { font-weight: 700; }
.rules-slide { display: none; flex: 1; }
.rules-slide.active { display: block; animation: panel-in .25s ease both; }
.rules-slide .menu-kicker { color: #8a6a45; font: italic 14px Georgia, serif; letter-spacing: .04em; }
.rules-slide h2 { margin: 8px 0 18px; padding-bottom: 12px; border-bottom: 1px solid #b89c72; color: #2e2216; font: 700 clamp(28px, 4vw, 42px)/1.05 Georgia, serif; font-variant: small-caps; }
.rules-slide p { max-width: 680px; color: #4a3a28; font-size: 17px; line-height: 1.7; }
.rules-slide p b { color: #2e2216; }
.rules-slide p strong { display: block; margin-bottom: 4px; color: #8f2f24; font: italic 700 17px Georgia, serif; }
.rules-art { display: block; width: 100%; margin: 0 0 22px; aspect-ratio: 1408 / 768; object-fit: cover; filter: sepia(.28) contrast(.95); border: 1px solid #8a6a45; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px #b89c72, 3px 5px 10px rgba(60,40,15,.3); }
.rules-list { margin: 8px 0 16px; padding: 0; list-style: none; border-top: 1px solid #b89c72; }
.rules-list li { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid #c9b18a; color: #4a3a28; font-size: 16px; line-height: 1.55; }
.rules-list b { color: #7a2a20; font: 700 15px/1.55 Georgia, serif; font-variant: small-caps; letter-spacing: .03em; }
.rules-keys { margin-top: 18px; padding-top: 12px; border-top: 1px solid #b89c72; color: #7a2a20 !important; font: italic 15px Georgia, serif !important; }
.rules-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 16px; border-top: 3px double #8a6a45; }
.rules-nav span { color: #6a5236; font: italic 15px Georgia, serif; }
.rules-next, .rules-prev { min-width: 150px; min-height: 46px; padding: 0 18px; font: 700 14px Georgia, serif; font-variant: small-caps; letter-spacing: .05em; }
.rules-next { color: #f2e6cc; background: #6e2a1f; border: 1px solid #4a1a12; }
.rules-prev { color: #4a3a28; background: transparent; border: 1px solid #8a6a45; }
.rules-prev:disabled { opacity: .35; cursor: default; }
@media (max-width: 860px) { .rules-header { grid-template-columns: 44px 1fr auto; padding: 10px; }.rules-header h1 { font-size: 29px; }.rules-stage { padding: 16px 10px 28px; }.rules-book { grid-template-columns: 1fr; }.rules-toc { padding: 20px 18px 12px; box-shadow: inset 0 -18px 24px -18px rgba(70,45,20,.45); }.rules-toc ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }.rules-toc button { padding: 6px 2px; font-size: 14px; }.rules-page { padding: 24px 20px 22px; box-shadow: none; }.rules-slide p, .rules-list li { font-size: 15px; }.rules-list li { grid-template-columns: 1fr; gap: 2px; }.rules-next, .rules-prev { min-width: 0; flex: 1; } }
.intro-backdrop { filter: saturate(.65) brightness(.48); }
.intro-controls { position: fixed; z-index: 5; inset: 0 0 auto; min-height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; background: rgba(2,5,5,.75); border-bottom: 1px solid rgba(197,161,91,.28); font: 9px var(--mono); text-transform: uppercase; }
.intro-controls div { display: flex; gap: 7px; }
.intro-controls button { min-height: 40px; padding: 0 14px; color: #f1e5cf; background: rgba(26,36,32,.85); border: 1px solid #786849; font: 10px var(--mono); text-transform: uppercase; }
.intro-fade { position: fixed; z-index: 2; inset: 59px 0 auto; height: 18vh; pointer-events: none; background: linear-gradient(#020505 12%, transparent); }
.crawl-viewport { position: relative; z-index: 1; height: 100svh; overflow-y: auto; overflow-x: hidden; perspective: 760px; }
.intro-crawl { width: min(760px, 86vw); margin: 0 auto; padding: 100svh 0 20vh; color: #eaddc5; text-align: center; animation: briefing-crawl 34s linear forwards; transform-origin: 50% 100%; }
.intro-crawl.manual { animation: none; transform: none; }
.intro-crawl.paused { animation-play-state: paused; }
.intro-date, .intro-crawl section > span, .intro-final > span { color: #c5a15b; font: 15px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.intro-crawl > h1 { margin: 20px 0 30px; color: #fff6e7; font: italic 800 clamp(42px, 6vw, 70px)/.9 var(--condensed); }
.intro-lead { font-size: clamp(18px, 2.4vw, 25px); line-height: 1.65; }
.intro-crawl section { margin: 100px 0; padding-top: 25px; border-top: 1px solid rgba(197,161,91,.35); }
.intro-crawl h2 { margin: 13px 0 20px; color: #fff5e3; font: 700 clamp(26px, 4vw, 38px)/1 var(--condensed); text-transform: uppercase; }
.intro-crawl p { color: #ddd1bb; font-size: 16px; line-height: 1.75; }
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.rule-grid p { margin: 0; padding: 16px; background: rgba(25,44,36,.7); border-left: 2px solid #c5a15b; font-size: 13px; }
.rule-grid b { display: block; margin-bottom: 4px; color: #efd28f; font-family: var(--mono); }
.intro-final { display: grid; place-items: center; gap: 10px; margin-top: 120px; }
.intro-final strong { font: italic 800 clamp(34px, 5vw, 60px) var(--condensed); text-transform: uppercase; }
.intro-final button { min-width: 220px; min-height: 54px; margin-top: 20px; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; color: #21150f; background: #c5a15b; font-weight: 700; }
.intro-final .intro-secondary { margin-top: 0; justify-content: center; color: #eaddc5; background: transparent; border: 1px solid #786849; }
@keyframes briefing-crawl { from { transform: translateY(0) rotateX(8deg); } to { transform: translateY(calc(-100% + 82vh)) rotateX(3deg); } }

/* Franchise selection */
.franchise-screen { min-height: 100svh; overflow-y: auto; color: #ede2ce; background: #21140e; }
.franchise-header { min-height: 94px; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px; padding: 12px clamp(16px, 4vw, 58px); background-color: #342117; background-image: repeating-linear-gradient(92deg, transparent 0 40px, rgba(255,255,255,.025) 42px, rgba(0,0,0,.13) 45px, transparent 50px); border-bottom: 1px solid #77563e; }
.franchise-header h1 { margin: 5px 0 0; font: italic 800 clamp(30px, 4vw, 48px)/.9 var(--condensed); text-transform: uppercase; }
.team-count-label { color: #c7b99f; font: 10px var(--mono); text-transform: uppercase; }
.conference-tabs { display: flex; border-bottom: 1px solid #8b6d4d; }
.conference-tab { min-height: 44px; padding: 0 18px; color: #c7b99f; background: transparent; font: 10px var(--mono); text-transform: uppercase; }
.conference-tab.active { color: #24170f; background: #c7a45d; clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px); }
.franchise-layout { min-height: calc(100svh - 94px); display: grid; grid-template-columns: 1fr minmax(300px, .34fr); }
.franchise-grid { display: grid; grid-template-columns: repeat(5, 1fr); align-content: start; gap: 1px; background: #684b38; }
.franchise-choice { min-width: 0; min-height: 244px; display: grid; grid-template-rows: 154px auto auto auto; align-content: start; padding: 0 15px 15px; color: #2b2119; background: #e7dbc4; text-align: left; position: relative; }
.franchise-choice::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: transparent; }
.franchise-choice:hover, .franchise-choice.active { background: #f0e6d3; }
.franchise-choice.active::after { background: #b43b29; }
.franchise-choice img { width: 100%; height: 146px; padding: 15px; object-fit: contain; filter: drop-shadow(0 8px 6px rgba(0,0,0,.2)); }
.franchise-choice span { color: #8b3025; font: 8px var(--mono); text-transform: uppercase; }
.franchise-choice strong { margin-top: 4px; font: italic 800 19px/.95 var(--condensed); text-transform: uppercase; }
.franchise-choice small { margin-top: 5px; color: #675a48; font: 9px var(--mono); }
.franchise-dossier { position: sticky; top: 0; height: calc(100svh - 94px); padding: clamp(25px, 4vw, 50px); color: #f1e5cf; background-color: #203a30; background-image: repeating-linear-gradient(55deg, rgba(255,255,255,.017) 0 1px, transparent 1px 4px); border-left: 5px solid #c7a45d; }
.selected-logo-stage { width: min(100%, 310px); aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto 25px; }
.selected-logo-stage img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 13px 9px rgba(0,0,0,.27)); }
.franchise-dossier h2 { margin: 8px 0 20px; font: italic 800 clamp(32px, 4vw, 48px)/.88 var(--condensed); text-transform: uppercase; }
.franchise-dossier dl { margin: 0; border-top: 1px solid #52695f; }
.franchise-dossier dl div { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid #52695f; }
.franchise-dossier dt { color: #c5b9a2; font: 9px var(--mono); text-transform: uppercase; }.franchise-dossier dd { margin: 0; text-align: right; font-size: 12px; }
.confirm-franchise { width: 100%; min-height: 54px; margin-top: 24px; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; color: #25180f; background: #c7a45d; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); font-weight: 700; }

/* Records office */
.records-screen { min-height: 100svh; overflow-y: auto; color: #2b2119; background-color: #281810; background-image: repeating-linear-gradient(92deg, transparent 0 35px, rgba(255,255,255,.025) 36px, rgba(0,0,0,.1) 40px, transparent 45px); }
.records-header { min-height: 88px; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 16px; padding: 12px clamp(16px, 3vw, 42px); color: #f4ead7; background: #332017; border-bottom: 1px solid #76543d; }
.records-header h1 { margin: 4px 0 0; font: italic 800 35px/1 var(--condensed); text-transform: uppercase; }
.records-season { min-width: 180px; padding-left: 20px; border-left: 1px solid #76543d; text-align: right; }
.records-season span, .records-season small { display: block; color: #c7b99f; font: 9px var(--mono); text-transform: uppercase; }
.records-season strong { color: #efd28f; font: 700 24px var(--mono); }
.records-tabs { min-height: 50px; display: flex; padding-inline: clamp(16px, 3vw, 42px); color: #d2c4ab; background: #1e342b; border-bottom: 3px solid #c7a45d; }
.records-tab { min-width: 140px; padding: 0 16px; color: inherit; background: transparent; font: 700 10px var(--sans); text-transform: uppercase; }
.records-tab.active { color: #25180f; background: #c7a45d; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.records-workspace { min-height: calc(100svh - 138px); margin: 0 clamp(12px, 4vw, 62px); background-color: #e8dcc5; background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(88,67,44,.045) 32px); box-shadow: 0 8px 25px rgba(12,6,3,.3); }
.records-table-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid #9f8a6b; box-shadow: inset 7px 0 #c7a45d; }
.records-table-header h2 { margin: 3px 0 0; font: italic 800 22px var(--condensed); text-transform: uppercase; }
.records-sort { display: grid; grid-template-columns: auto minmax(160px, 220px); align-items: center; gap: 10px; color: #615441; font: 9px var(--mono); text-transform: uppercase; }
.records-sort select { height: 40px; padding: 0 28px 0 10px; color: #f0e4cf; background: #203a30; border: 1px solid #6b806f; border-radius: 0; font: 11px var(--sans); }
.records-table-wrap { overflow-x: auto; }
.records-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.records-table th { padding: 11px 13px; color: #665846; background: #d4c4a7; font: 9px var(--mono); text-align: left; text-transform: uppercase; }
.records-table td { min-height: 46px; padding: 10px 13px; border-bottom: 1px solid #c4b398; }
.records-table td:first-child, .records-table td:nth-child(3), .records-table td:nth-child(4), .records-table td:nth-child(5) { font-family: var(--mono); }
.records-table td strong, .records-table td small { display: block; }.records-table td small { margin-top: 2px; color: #6a5d4a; font: 8px var(--mono); text-transform: uppercase; }.records-table td b { color: #8f2f24; }
.record-book { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #9e896a; }
.ranked-record-card { min-height: 260px; padding: 18px; background: #e8dcc5; color: #2b2119; }
.ranked-record-card > span { color: #8f2f24; font: 9px var(--mono); text-transform: uppercase; }
.ranked-record-card h3 { margin: 7px 0 12px; font: italic 800 21px var(--condensed); text-transform: uppercase; }
.ranked-record-card ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid #b29e7f; }
.ranked-record-card li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px dotted #b29e7f; font-size: 11px; }
.ranked-record-card li b { color: #8f2f24; font-family: var(--mono); }
.ranked-record-card li strong { color: #8f2f24; font-family: var(--mono); }
.ranked-record-card li small { display: block; margin-top: 2px; color: #6b5a47; font: 9px var(--mono); text-transform: uppercase; }
.record-book article { min-height: 190px; padding: 22px; background: #e8dcc5; border-top: 4px solid #203a30; }
.record-book article:nth-child(3n+2) { border-color: #8f2f24; }.record-book article:nth-child(3n+3) { border-color: #c7a45d; }
.record-book span { color: #6b5c48; font: 8px var(--mono); text-transform: uppercase; }.record-book h3 { margin: 13px 0 3px; font: italic 700 18px var(--condensed); text-transform: uppercase; }.record-book strong { color: #8f2f24; font: 800 40px var(--condensed); }.record-book p { margin: 4px 0 0; font-size: 12px; }
.history-list { padding: 18px; }
.history-list article { min-height: 94px; display: grid; grid-template-columns: 72px 70px 1fr; align-items: center; gap: 15px; padding: 10px 15px; border-bottom: 1px solid #b7a589; }
.history-list article > span { color: #8f2f24; font: 9px var(--mono); text-transform: uppercase; }.history-list img { width: 64px; height: 64px; object-fit: contain; }.history-list h3 { margin: 0; font: italic 800 22px var(--condensed); text-transform: uppercase; }.history-list p { margin: 4px 0 0; color: #655845; font-size: 11px; }
.records-empty { min-height: 350px; display: grid; place-content: center; padding: 40px; text-align: center; }.records-empty strong { font: italic 800 25px var(--condensed); text-transform: uppercase; }.records-empty p { max-width: 480px; color: #655845; line-height: 1.6; }

/* Playoff bracket */
.playoffs-screen { min-height: 100svh; overflow-y: auto; color: #2b2119; background: #21140e; }
.playoffs-header { min-height: 90px; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 16px; padding: 12px clamp(16px, 3vw, 42px); color: #f3e7d1; background-color: #342117; background-image: repeating-linear-gradient(92deg, transparent 0 41px, rgba(255,255,255,.024) 43px, rgba(0,0,0,.13) 46px, transparent 51px); border-bottom: 3px solid #c7a45d; }
.playoffs-header h1 { margin: 4px 0 0; font: italic 800 36px/1 var(--condensed); text-transform: uppercase; }
.playoff-status { min-width: 200px; padding-left: 20px; border-left: 1px solid #76543d; text-align: right; }.playoff-status span { display: block; color: #c7b99f; font: 9px var(--mono); text-transform: uppercase; }.playoff-status strong { color: #efd28f; font: 700 16px var(--condensed); text-transform: uppercase; }
.playoffs-layout { min-height: calc(100svh - 90px); display: grid; grid-template-columns: minmax(680px, 1fr) minmax(290px, .3fr); }
.bracket-board { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 1px; overflow-x: auto; background: #80664f; }
.bracket-round { min-width: 180px; padding-bottom: 20px; background: #e8dcc5; }
.bracket-round > header { min-height: 60px; display: flex; justify-content: space-between; align-items: center; padding: 10px 13px; color: #f0e5d1; background: #203a30; border-bottom: 3px solid #c7a45d; }
.bracket-round > header span { font: italic 700 15px var(--condensed); text-transform: uppercase; }.bracket-round > header b { color: #c8baa1; font: 8px var(--mono); }
.bracket-round > div { display: grid; gap: 15px; padding: 18px 9px; }
.bracket-round:nth-child(2) > div { padding-top: 64px; gap: 62px; }.bracket-round:nth-child(3) > div { padding-top: 145px; gap: 130px; }.bracket-round:nth-child(4) > div { padding-top: 227px; }
.bracket-round > div > p { color: #7a6b56; font: 9px var(--mono); text-align: center; text-transform: uppercase; }
.bracket-game { background: #d6c6a9; border-left: 3px solid #9c8769; box-shadow: 0 3px 7px rgba(36,24,15,.14); }
.bracket-game.pending { border-color: #8f2f24; }.bracket-game > span { display: block; padding: 5px 7px; color: #705f4b; font: 7px var(--mono); text-transform: uppercase; }
.bracket-team { min-height: 42px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 6px; padding: 5px 8px; border-top: 1px solid #b8a688; }
.bracket-team img { width: 28px; height: 28px; object-fit: contain; }.bracket-team strong { font-size: 9px; }.bracket-team b { font: 700 11px var(--mono); }.bracket-team.winner { color: #f5ead7; background: #203a30; }
.playoff-command { position: sticky; top: 0; height: calc(100svh - 90px); padding: clamp(24px, 4vw, 48px) 25px; color: #f1e5cf; background-color: #47231d; background-image: radial-gradient(circle at 30% 12%, rgba(255,255,255,.055), transparent 38%); border-left: 5px solid #c7a45d; }
.playoff-command h2 { margin: 10px 0 6px; font: italic 800 clamp(30px, 4vw, 45px)/.88 var(--condensed); text-transform: uppercase; }.playoff-command > p { color: #d5c5aa; font-size: 11px; line-height: 1.6; }
.playoff-champion-logo { width: min(220px, 80%); aspect-ratio: 1; display: block; margin: 20px auto; object-fit: contain; filter: drop-shadow(0 12px 9px rgba(0,0,0,.3)); }
.playoff-command > button, .playoff-actions button { min-height: 50px; padding: 0 15px; color: #281a11; background: #c7a45d; font-weight: 700; }
.playoff-command > button { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }.playoff-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 20px; }.playoff-actions button:last-child { color: #f2e6d0; background: #203a30; }
.award-reel { max-height: 190px; overflow-y: auto; margin-top: 18px; border-top: 1px solid #754a39; }.award-reel span { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; color: #cdbda3; font-size: 9px; border-bottom: 1px solid #754a39; }.award-reel b { color: #efd28f; }

/* Interactive offseason */
.offseason-screen { min-height: 100svh; overflow-y: auto; color: #2b2119; background-color: #281810; background-image: repeating-linear-gradient(92deg, transparent 0 35px, rgba(255,255,255,.025) 36px, rgba(0,0,0,.1) 40px, transparent 45px); }
.offseason-header { min-height: 90px; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 16px; padding: 12px clamp(16px, 3vw, 42px); color: #f2e6d0; background: #332017; border-bottom: 3px solid #c7a45d; }
.offseason-header h1 { margin: 4px 0 0; font: italic 800 36px/1 var(--condensed); text-transform: uppercase; }
.offseason-status { min-width: 180px; padding-left: 20px; border-left: 1px solid #76543d; text-align: right; }.offseason-status span { display: block; color: #c6b89f; font: 9px var(--mono); text-transform: uppercase; }.offseason-status strong { color: #efd28f; font: 700 22px var(--mono); }
.offseason-layout { min-height: calc(100svh - 90px); display: grid; grid-template-columns: minmax(650px, 1fr) minmax(290px, .32fr); }
.offseason-board { background: #e8dcc5; }
.offseason-board > header { min-height: 68px; display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid #a89475; }.offseason-board h2 { margin: 3px 0 0; font: italic 800 22px var(--condensed); text-transform: uppercase; }.offseason-board > header > span { color: #6c5e4a; font: 9px var(--mono); text-transform: uppercase; }
.offseason-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #a89475; }
.protection-card { min-width: 0; min-height: 230px; display: grid; grid-template-rows: 130px auto auto 1fr; padding: 0 15px 15px; color: #2b2119; background: #e8dcc5; text-align: left; position: relative; }
.protection-card img { width: 100%; height: 125px; padding: 12px; object-fit: cover; filter: grayscale(.8) sepia(.25); mix-blend-mode: multiply; }
.protection-card > span, .renewal-card > span { color: #8f2f24; font: 8px var(--mono); text-transform: uppercase; }.protection-card > strong, .renewal-card > strong { margin-top: 4px; font: italic 800 17px/.95 var(--condensed); text-transform: uppercase; }.protection-card > div, .renewal-card > div { align-self: end; display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }.protection-card b, .renewal-card b { font: 800 21px var(--condensed); }.protection-card em, .renewal-card small { color: #675946; font: 9px var(--mono); font-style: normal; }.protection-card em.up { color: #287158; }.protection-card em.down { color: #9a3023; }
.protection-card.selected { color: #f2e6d0; background: #203a30; box-shadow: inset 0 0 0 4px #c7a45d; }.protection-card.selected > span, .protection-card.selected em { color: #efcf83; }
.renewal-card { min-width: 0; min-height: 112px; display: grid; grid-template-rows: auto auto 1fr; padding: 15px; color: #2b2119; background: #e8dcc5; text-align: left; }
.renewal-card:hover:not(.complete) { color: #f2e6d0; background: #203a30; }.renewal-card:hover:not(.complete) > span, .renewal-card:hover:not(.complete) small { color: #e8cd90; }
.renewal-card.complete { cursor: default; }
.offseason-grid.renewal-mode { display: block; background: #e8dcc5; }
.renewal-filters { position: sticky; top: 0; z-index: 3; display: flex; overflow-x: auto; background: #d9caa9; border-bottom: 1px solid #a89475; }
.renewal-filters button { flex: 1 0 auto; min-height: 40px; padding: 0 12px; color: #4b3b2b; background: transparent; border-right: 1px solid #b29e7f; font: 9px var(--mono); text-transform: uppercase; }
.renewal-filters button b { color: #8f2f24; }
.renewal-filters button.active { color: #f2e6d0; background: #203a30; }.renewal-filters button.active b { color: #efcf83; }
.renewal-table { overflow-x: auto; }
.renewal-row { width: 100%; min-width: 640px; display: grid; grid-template-columns: minmax(200px, 2fr) 100px 60px 60px minmax(180px, 1.6fr); align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; color: #2b2119; background: #e8dcc5; border-bottom: 1px dotted #b29e7f; text-align: left; font: 10px var(--mono); }
.renewal-row > span, .renewal-row > b { text-align: center; }
.renewal-row > b { color: #8f2f24; font-size: 13px; }
.renewal-row small { color: #6b5a47; font: 9px var(--mono); }
.renewal-row .renewal-name { display: flex; align-items: center; gap: 9px; min-width: 0; text-align: left; }
.renewal-row .renewal-name img { width: 28px; height: 36px; flex: 0 0 28px; object-fit: cover; filter: grayscale(1); }
.renewal-row .renewal-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 14px var(--condensed); text-transform: uppercase; }
.renewal-row:not(.renewal-head):not(.full):hover, .renewal-row.active { color: #f2e6d0; background: #203a30; }
.renewal-row.active > b, .renewal-row:not(.renewal-head):not(.full):hover > b { color: #efcf83; }
.renewal-row.active small, .renewal-row:not(.renewal-head):not(.full):hover small { color: #cbbda4; }
.renewal-row.full { opacity: .45; cursor: default; }
.renewal-head { position: sticky; top: 40px; z-index: 2; min-height: 34px; background: #d2c19f; }
.renewal-head button, .renewal-head span { padding: 0; color: #5a4836; background: transparent; font: 9px var(--mono); text-transform: uppercase; text-align: center; }
.renewal-head button:first-child { text-align: left; }
.renewal-head button.active { color: #8f2f24; font-weight: 700; }
.renewal-empty { padding: 24px; color: #6b5a47; font: 10px var(--mono); }
.offseason-command { overflow-y: auto; }
.offseason-command > button[data-offseason-action="draft-pick"] { color: #271a11; background: #c7a45d; border: 0; }
.renewal-board-list { max-height: 300px; margin-top: 10px; overflow-y: auto; }
.renewal-board-list > div { display: grid; grid-template-columns: 38px 1fr; gap: 2px 8px; padding: 7px 0; border-bottom: 1px dotted #52695f; font: 9px var(--mono); }
.renewal-board-list > div span { grid-row: span 2; color: #b8aa91; }
.renewal-board-list > div strong { color: #cbbda4; font-weight: 400; text-transform: uppercase; }
.renewal-board-list > div b { color: #f0e2c9; font: 700 13px var(--condensed); text-transform: uppercase; }
.renewal-board-list > div small { display: none; }
.renewal-board-list > div.mine b, .renewal-board-list > div.mine strong { color: #efd28f; }
.offseason-command { position: sticky; top: 0; height: calc(100svh - 90px); padding: clamp(25px, 4vw, 45px) 24px; color: #f1e5cf; background-color: #203a30; background-image: repeating-linear-gradient(55deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px); border-left: 5px solid #c7a45d; }
.offseason-command h2 { margin: 9px 0 8px; font: italic 800 34px/.9 var(--condensed); text-transform: uppercase; }.offseason-command > p { color: #cbbda4; font-size: 11px; line-height: 1.55; }.offseason-command > button { width: 100%; min-height: 48px; display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 0 14px; color: #271a11; background: #c7a45d; font-weight: 700; }.offseason-command > button:first-of-type { color: #f1e5cf; background: transparent; border: 1px solid #71877d; }.offseason-command > button:disabled { opacity: .42; cursor: default; }
.protected-list { margin: 18px 0; border-top: 1px solid #52695f; }.protected-list > span { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid #52695f; font-size: 10px; }.protected-list b { color: #efd28f; font: 8px var(--mono); }.protected-list p { color: #cbbda4; font-size: 11px; }
.protection-warning { padding: 12px; color: #dfcfb4 !important; background: #47231d; border-left: 3px solid #8f2f24; }
.renewal-draft-board { margin: 18px 0; padding: 12px; color: #e7d9c1; background: #172d25; border: 1px solid #52695f; }.renewal-draft-board header { display: flex; justify-content: space-between; gap: 10px; font: 9px var(--mono); text-transform: uppercase; }.renewal-draft-board header b { color: #efd28f; }.renewal-draft-board p { margin: 8px 0 0; color: #b8aa91; font: 9px var(--mono); }.renewal-progress { height: 6px; margin-top: 10px; background: #3b5147; }.renewal-progress i { display: block; height: 100%; background: #c7a45d; }.renewal-needs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 18px 0; }.renewal-needs span { display: flex; justify-content: space-between; padding: 8px; color: #e7d9c1; background: #354d43; font-size: 9px; }.renewal-needs span.filled { opacity: .5; }.renewal-needs b { color: #efd28f; font-family: var(--mono); }
.player-history-link { padding: 0; color: inherit; background: transparent; text-align: left; }
.player-history-link:hover strong { color: #8f2f24; text-decoration: underline; text-underline-offset: 3px; }
.player-history-panel { position: fixed; z-index: 60; inset: 0 0 0 auto; width: min(470px, 92vw); padding: 48px 28px 30px; overflow-y: auto; color: #f0e4cf; background-color: #203a30; background-image: repeating-linear-gradient(55deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px); border-left: 5px solid #c7a45d; box-shadow: -25px 0 60px rgba(0,0,0,.42); }
.player-history-panel > button { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; color: #f0e4cf; background: transparent; border: 1px solid #71877d; font-size: 24px; }
.player-history-panel h2 { margin: 9px 0 4px; font: italic 800 39px/.9 var(--condensed); text-transform: uppercase; }
.history-role { color: #cabda5; font: 10px var(--mono); text-transform: uppercase; }
.player-history-panel section { margin-top: 28px; }
.player-history-panel section h3 { padding-bottom: 8px; font: 700 15px var(--condensed); text-transform: uppercase; border-bottom: 1px solid #5c7168; }
.player-history-panel section > p { color: #c9bda7; font-size: 11px; }
.profile-tabs { display: flex; gap: 4px; margin: 22px 0 18px; border-bottom: 1px solid #52685f; }
.profile-tabs button { min-height: 38px; padding: 0 10px; color: #c5b9a1; background: transparent; border-bottom: 2px solid transparent; font: 9px var(--mono); text-transform: uppercase; }
.profile-tabs button.active { color: #efd28f; border-bottom-color: #c7a45d; }
.profile-overview { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-block: 1px solid #52685f; }
.profile-career-total { display: grid; gap: 3px; padding-right: 14px; border-right: 1px solid #52685f; }
.profile-career-total strong { color: #efd28f; font: 800 38px/.8 var(--condensed); }.profile-career-total b { margin-top: 10px; color: #f1e5cf; font: 700 18px var(--mono); }.profile-career-total span { color: #c5b9a1; font: 9px var(--mono); text-transform: uppercase; }
.profile-career-copy { color: #c5b9a1; font-size: 11px; line-height: 1.6; }.profile-career-copy p { margin: 0 0 8px; }
.profile-season-card { margin-bottom: 10px; padding: 13px; background: rgba(16,35,28,.6); border-left: 3px solid #c7a45d; }.profile-season-card header { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; }.profile-season-card header strong { color: #efd28f; font: 700 16px var(--condensed); }.profile-season-card header span { color: #c5b9a1; font: 9px var(--mono); text-align: right; }.player-season-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }.player-season-stats span { color: #c5b9a1; font: 8px var(--mono); }.player-season-stats b { display: block; color: #f1e5cf; font-size: 11px; }.profile-accolades .accolade-summary { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 10px; padding: 15px; margin-bottom: 14px; background: rgba(16,35,28,.6); }.accolade-summary strong { color: #efd28f; font: 800 31px var(--condensed); }.accolade-summary span { color: #c5b9a1; font: 9px var(--mono); text-transform: uppercase; }.profile-accolades ol { margin: 0; padding: 0; list-style: none; }.profile-accolades li { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid #52685f; }.profile-accolades li b { color: #f1e5cf; font-size: 12px; }.profile-accolades li span { color: #c5b9a1; font: 9px var(--mono); }
.award-history, .team-history { margin: 0; padding: 0; list-style: none; }
.award-history li, .team-history li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid #52685f; }
.award-history b, .team-history b { color: #f2dfb2; font-size: 12px; }.award-history span, .team-history span, .team-history em { color: #c5b9a1; font: 9px var(--mono); }.team-history em { grid-column: 1 / -1; }
.trophy-room-summary { min-height: 90px; display: flex; align-items: baseline; gap: 12px; padding: 22px; color: #f1e5cf; background: #203a30; border-bottom: 4px solid #c7a45d; }
.trophy-room-summary strong { color: #efd187; font: 800 50px/.8 var(--condensed); }.trophy-room-summary span { font: 10px var(--mono); text-transform: uppercase; }
.trophy-tier > header { min-height: 48px; display: flex; align-items: center; gap: 14px; padding: 9px 20px; background: #d2c1a2; border-bottom: 1px solid #a48f70; }
.trophy-tier > header span { min-width: 70px; color: #8f2f24; font: 9px var(--mono); text-transform: uppercase; }.trophy-tier > header strong { font: italic 800 18px var(--condensed); text-transform: uppercase; }
.trophy-tier > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #aa9677; }
.achievement { min-height: 164px; display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 14px; padding: 17px; background: #e8dcc5; }
.achievement.locked { filter: grayscale(1); opacity: .56; }
.achievement-emblem { width: 68px; height: 76px; display: block; position: relative; }
.achievement-emblem.trophy { background: #c7a45d; clip-path: polygon(16% 0,84% 0,78% 48%,60% 65%,60% 81%,82% 88%,82% 100%,18% 100%,18% 88%,40% 81%,40% 65%,22% 48%); box-shadow: inset 0 0 0 6px #7c5d29; }
.achievement-emblem.trophy::after { content: ""; position: absolute; inset: 15px 22px 35px; border-radius: 50%; background: #f3df9e; }
.achievement-emblem.banner { height: 82px; background: #8f2f24; clip-path: polygon(5% 0,95% 0,95% 80%,50% 100%,5% 80%); box-shadow: inset 0 0 0 5px #c7a45d; }
.achievement-emblem.plaque { height: 58px; margin-block: 9px; background: #533428; border: 5px double #c7a45d; box-shadow: 0 4px 7px rgba(0,0,0,.24); }
.achievement-emblem.badge { width: 62px; height: 62px; margin: 7px 3px; border-radius: 50%; background: #203a30; border: 7px double #c7a45d; }
.achievement span { color: #8f2f24; font: 8px var(--mono); text-transform: uppercase; }.achievement h3 { margin: 5px 0; font: italic 800 17px/.95 var(--condensed); text-transform: uppercase; }.achievement p { margin: 0; color: #625544; font-size: 10px; line-height: 1.45; }
.achievement.earned { background: #f0e4cd; box-shadow: inset 0 4px #c7a45d; }

/* Season schedule */
.season-screen { min-height: 100svh; overflow-y: auto; color: #2b2119; background-color: #281810; background-image: repeating-linear-gradient(92deg, transparent 0 35px, rgba(255,255,255,.025) 36px, rgba(0,0,0,.1) 40px, transparent 45px); }
.season-header { min-height: 86px; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 16px; padding: 12px clamp(16px, 3vw, 42px); color: #f4ead7; background: #332017; border-bottom: 1px solid #76543d; }
.season-header > div { min-width: 0; }
.season-header .menu-kicker { display: block; max-width: none; white-space: nowrap; }
.season-header.season-active { grid-template-columns: minmax(0, 1fr) auto; }
.season-header h1 { margin: 3px 0 0; font: italic 800 35px/1 var(--condensed); text-transform: uppercase; }
.season-record { min-width: 210px; padding-left: 22px; border-left: 1px solid #76543d; text-align: right; }
.season-record span, .season-record small { display: block; color: #c7b99f; font: 10px var(--mono); text-transform: uppercase; }
.season-record strong { display: block; margin: 2px 0; color: #efd28f; font: 700 23px var(--mono); }
.season-workspace { display: grid; grid-template-columns: minmax(330px, .82fr) minmax(440px, 1.15fr) minmax(220px, .55fr); gap: 12px; padding: 12px; }
.season-subnav { grid-column: 1 / -1; display: flex; min-height: 47px; background: #1f342b; border-bottom: 3px solid #c7a45d; }
.season-view-button { min-width: 150px; padding: 0 20px; color: #cbbda5; background: transparent; font: 700 11px var(--sans); text-transform: uppercase; position: relative; }
.season-view-button.active { color: #25180f; background: #c7a45d; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.standings-panel { grid-column: 1 / 3; min-width: 0; background: #e8dcc5; color: #2b2119; border: 1px solid #897359; box-shadow: inset 7px 0 #c7a45d, 0 6px 18px rgba(18,9,5,.28); }
.conference-standings { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #a79375; }
.conference-standings section { min-width: 0; background: #e8dcc5; }
.conference-standings h3 { margin: 0; padding: 15px 17px; font: italic 800 19px var(--condensed); text-transform: uppercase; border-bottom: 1px solid #a79375; }
.standings-table-wrap { overflow-x: auto; }
.conference-standings table { width: 100%; border-collapse: collapse; font-size: 11px; }
.conference-standings th { padding: 8px 7px; color: #665847; background: #d5c5a8; font: 8px var(--mono); text-align: right; text-transform: uppercase; }
.conference-standings th:nth-child(2) { text-align: left; }
.conference-standings td { height: 40px; padding: 5px 7px; text-align: right; border-bottom: 1px solid #c5b599; font-family: var(--mono); }
.conference-standings td:nth-child(2) { min-width: 155px; display: flex; align-items: center; gap: 7px; text-align: left; font-family: var(--sans); }
.conference-standings td img { width: 27px; height: 27px; object-fit: contain; }
.conference-standings .user-standing { color: #fff0d5; background: #203a30; }
.conference-standings .playoff-cutoff td { height: 18px; padding: 0 7px; border: 0; background: transparent; }
.conference-standings .playoff-cutoff td::before { content: ""; display: block; border-top: 2px solid #8f2f24; }
.conference-standings .playoff-cutoff span { position: relative; top: -8px; padding-right: 7px; color: #8f2f24; background: #e8dcc5; font: 8px var(--mono); text-transform: uppercase; }
.standings-empty { padding: 30px; color: #665847; }
.schedule-panel, .game-detail-panel, .season-side-panel { min-width: 0; color: #2b2119; background: #e8dcc5; border: 1px solid #897359; box-shadow: 0 6px 18px rgba(18,9,5,.28); }
.season-panel-header, .game-detail-header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #aa987a; }
.season-panel-header h2, .game-detail-header h2 { margin: 0; font: italic 700 20px var(--condensed); text-transform: uppercase; }
.season-panel-header > span { color: #665846; font: 10px var(--mono); text-transform: uppercase; }
.schedule-list { max-height: calc(100svh - 180px); overflow-y: auto; }
.schedule-game { width: 100%; min-height: 70px; display: grid; grid-template-columns: 38px 42px 1fr auto; align-items: center; gap: 9px; padding: 7px 13px; color: #5d5040; background: transparent; border-bottom: 1px solid #c2b296; text-align: left; }
.schedule-team-logo { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(0,0,0,.17)); }
.schedule-game:hover { background: rgba(197,161,91,.14); }
.schedule-game.active { color: #fff3de; background: #203a30; box-shadow: inset 4px 0 #c5a15b; }
.schedule-game.current { border-left: 3px solid #8f2f24; }
.schedule-week { color: #8f2f24; font: 9px var(--mono); text-transform: uppercase; }
.schedule-game.active .schedule-week { color: #e6c473; }
.schedule-opponent strong, .schedule-opponent small { display: block; }
.schedule-opponent strong { color: #2b2119; font: 700 13px var(--sans); }
.schedule-game.active .schedule-opponent strong { color: #fff3de; }
.schedule-opponent small { margin-top: 2px; font: 9px var(--mono); }
.schedule-result { min-width: 52px; text-align: right; font: 700 12px var(--mono); }
.schedule-result.win { color: #27654f; }.schedule-result.loss { color: #9b3022; }.schedule-game.active .schedule-result { color: #e8d9bd; }
.game-detail-panel { min-height: 600px; }
.game-detail-score { padding: 28px 20px 22px; text-align: center; border-bottom: 1px solid #aa987a; }
.game-detail-score > span { color: #675a48; font: 10px var(--mono); text-transform: uppercase; }
.detail-scoreline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 20px 0 8px; }
.detail-scoreline div { font: italic 800 24px var(--condensed); text-transform: uppercase; }
.detail-scoreline div img { width: 52px; height: 52px; display: block; margin: 0 auto 7px; object-fit: contain; }
.detail-scoreline div:first-child { text-align: right; }.detail-scoreline div:last-child { text-align: left; }
.detail-scoreline strong { color: #8f2f24; font: 700 38px var(--mono); }
.detail-scoreline small { display: block; color: #6b5e4c; font: 9px var(--mono); }
.game-result-tag { display: inline-block; padding: 5px 9px; color: #f7ead4; background: #203a30; font: 9px var(--mono); text-transform: uppercase; }
.game-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 18px; }
.game-actions button { min-height: 52px; padding: 0 15px; font: 700 12px var(--sans); }
.watch-live { color: #fff4df; background: #8f2f24; }.quick-sim { color: #f5ead6; background: #203a30; }
.game-actions button span { display: block; margin-top: 2px; opacity: .78; font: 8px var(--mono); }
.schedule-box { padding: 0 16px 18px; }
.schedule-box h3 { margin: 17px 0 8px; font: 700 13px var(--condensed); text-transform: uppercase; }
.schedule-box table { width: 100%; border-collapse: collapse; font-size: 11px; }
.schedule-box th { padding: 7px 5px; color: #695b48; font: 8px var(--mono); text-align: left; text-transform: uppercase; border-bottom: 1px solid #aa987a; }
.schedule-box td { padding: 8px 5px; border-bottom: 1px solid #c9baa0; }
.schedule-box td:nth-child(n+3) { text-align: right; font-family: var(--mono); }
.upcoming-brief { padding: 24px 20px; }
.brief-opponent-logo { width: 130px; height: 130px; float: right; margin: -5px 0 15px 20px; object-fit: contain; filter: drop-shadow(0 8px 7px rgba(0,0,0,.18)); }
.upcoming-brief h2 { margin: 8px 0 10px; font: italic 800 30px var(--condensed); text-transform: uppercase; }
.upcoming-brief p { color: #5e5140; font-size: 12px; line-height: 1.6; }
.matchup-facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; border: 1px solid #aa987a; }
.matchup-facts div { padding: 12px; border-right: 1px solid #aa987a; }
.matchup-facts div:last-child { border: 0; }
.matchup-facts span, .matchup-facts strong { display: block; }.matchup-facts span { color: #6a5c49; font: 8px var(--mono); text-transform: uppercase; }.matchup-facts strong { margin-top: 5px; font-size: 12px; }
.season-side-panel { background: #d7c7a9; }
.season-side-panel section { padding: 19px 17px; border-bottom: 1px solid #a89374; }
.standing-rank { display: flex; align-items: baseline; gap: 7px; margin-top: 10px; }
.standing-rank strong { color: #8f2f24; font: 800 48px/.8 var(--condensed); }.standing-rank span { color: #665947; font: 10px var(--mono); }
.season-side-panel p { margin: 10px 0 0; color: #5e5140; font-size: 11px; line-height: 1.5; }
.postseason-control h3 { margin: 9px 0 5px; font: italic 800 20px var(--condensed); text-transform: uppercase; }
.postseason-control img { width: 92px; height: 92px; display: block; margin: 12px auto; object-fit: contain; }
.postseason-control button { width: 100%; min-height: 45px; display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 0 13px; color: #f5e8d1; background: #8f2f24; font: 700 11px var(--sans); }
.season-leaders { margin: 10px 0 0; }
.season-leaders div { display: grid; grid-template-columns: 1fr auto; padding: 9px 0; border-bottom: 1px dotted #a18d6f; }
.season-leaders dt { color: #675947; font-size: 10px; }.season-leaders dd { margin: 0; font-size: 11px; }.season-leaders b { margin-left: 5px; color: #8f2f24; font-family: var(--mono); }

/* Pregame strategy */
.strategy-screen { min-height: 100svh; overflow-y: auto; color: #2b2119; background-color: #291910; background-image: repeating-linear-gradient(92deg, transparent 0 34px, rgba(255,255,255,.025) 35px, rgba(0,0,0,.1) 38px, transparent 43px); }
.strategy-header { min-height: 84px; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 16px; padding: 12px clamp(16px, 3vw, 42px); color: #f4ead7; background: #332017; border-bottom: 1px solid #76543d; }
.strategy-header h1 { margin: 3px 0 0; font: italic 800 34px/1 var(--condensed); text-transform: uppercase; }
.strategy-opponent { min-width: 220px; padding-left: 20px; border-left: 1px solid #76543d; text-align: right; }
.strategy-opponent span, .strategy-opponent small { display: block; color: #c7b99f; font: 10px var(--mono); text-transform: uppercase; }
.strategy-opponent strong { display: block; margin: 3px 0; font: 700 15px var(--condensed); text-transform: uppercase; }
.strategy-workspace { display: grid; grid-template-columns: minmax(230px, .62fr) minmax(500px, 1.4fr) minmax(250px, .68fr); gap: 12px; padding: 12px; }
.strategy-board, .game-plan, .plan-analysis { min-width: 0; box-shadow: 0 6px 18px rgba(18,9,5,.3); }
.strategy-board { color: #f0e4ce; background-color: #203a30; background-image: repeating-linear-gradient(55deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px); border: 4px solid #6d4b34; box-shadow: inset 0 0 24px rgba(5,14,10,.35), 0 6px 18px rgba(18,9,5,.3); }
.game-plan { color: #2b2119; background-color: #e8dcc5; background-image: linear-gradient(90deg, transparent 49.8%, rgba(101,78,49,.09) 50%, transparent 50.2%), repeating-linear-gradient(0deg, transparent 0 29px, rgba(88,67,44,.045) 30px); border-block: 1px solid #8d765a; }
.plan-analysis { color: #f1e5cf; background-color: #47231d; background-image: radial-gradient(circle at 30% 12%, rgba(255,255,255,.055), transparent 38%), repeating-linear-gradient(105deg, transparent 0 6px, rgba(0,0,0,.035) 7px, transparent 9px); border: 1px solid #7a4a39; clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%); }
.strategy-board > header, .game-plan > header, .plan-analysis > header { min-height: 68px; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #aa987a; }
.strategy-board h2, .game-plan h2, .plan-analysis h2 { margin: 0; font: italic 700 20px var(--condensed); text-transform: uppercase; }
.strategy-board > header button { min-height: 38px; padding: 0 12px; color: #21150f; background: #c7a45d; border: 1px solid #efd28f; font: 800 10px var(--mono); text-transform: uppercase; }
.strategy-board > header > strong { color: #8f2f24; font: 700 16px var(--mono); }
.strategy-lineup { padding: 7px 14px 14px; }
.strategy-player { width: 100%; min-height: 53px; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 9px; color: #f0e4ce; background: transparent; border: 0; border-bottom: 1px solid #4e665b; text-align: left; }
.strategy-player.selected { background: #2f5445; box-shadow: inset 4px 0 #c5a15b; }
.strategy-lineup .bench-divider { margin: 12px 0 4px; padding: 7px 8px; color: #efd28f; background: #182c24; border-top: 2px solid #c5a15b; border-bottom: 1px solid #4e665b; font: 10px var(--mono); text-transform: uppercase; }
.strategy-player > span:first-child { width: 42px; height: 31px; display: grid; place-items: center; color: #f5ead7; background: #203a30; font: 700 9px var(--mono); white-space: nowrap; clip-path: polygon(50% 0, 100% 17%, 90% 84%, 50% 100%, 10% 84%, 0 17%); }
.strategy-player small, .strategy-player strong { display: block; }
.strategy-player small { color: #625544; font: 10px var(--mono); text-transform: uppercase; }
.strategy-player strong { margin-top: 2px; font-size: 12px; }
.strategy-player > b { color: #8f2f24; font: 700 13px var(--mono); }
.strategy-board .menu-kicker, .strategy-board .strategy-player small { color: #c7baa2; }
.strategy-board > header > strong { color: #efcb7f; }
.strategy-board .strategy-player { border-color: #4e665b; }
.strategy-board .strategy-player > b { color: #efcb7f; }
.strategy-reserves { margin: 0 14px 14px; padding: 13px; color: #eee1ca; background: #203a30; border-left: 3px solid #c5a15b; }
.strategy-reserves > div { display: grid; gap: 5px; margin-top: 8px; }
.reserve-player { display: flex; justify-content: space-between; gap: 10px; color: #d2c5ad; font-size: 10px; }
.reserve-player b { color: #efd28f; font-family: var(--mono); }
.game-plan { padding-bottom: 16px; }
.game-plan fieldset { min-width: 0; margin: 0; padding: 16px; border: 0; border-bottom: 1px solid #aa987a; }
.game-plan legend { padding: 0; color: #3d3025; font: 700 12px var(--sans); }
.game-plan legend span { margin-right: 8px; color: #8f2f24; font: 10px var(--mono); }
.formation-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.formation-options label, .segment-control label { cursor: pointer; }
.formation-options input, .segment-control input { position: absolute; opacity: 0; pointer-events: none; }
.formation-options label > span { min-height: 78px; display: flex; flex-direction: column; justify-content: center; padding: 10px; color: #594c3c; background: #d8c9ad; border: 1px solid transparent; }
.formation-options b, .formation-options small { display: block; }
.formation-options b { color: #2b2119; font: 700 13px var(--condensed); text-transform: uppercase; }
.formation-options small { margin-top: 4px; font-size: 10px; line-height: 1.35; }
.formation-options input:checked + span { color: #e9ddc7; background: #203a30; border-color: #c5a15b; box-shadow: inset 4px 0 #c5a15b; }
.formation-options input:checked + span b { color: #fff4de; }
.formation-options input:focus-visible + span, .segment-control input:focus-visible + span { outline: 3px solid #006ac6; outline-offset: 2px; }
.plan-row { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.plan-row fieldset { border-right: 1px solid #aa987a; border-bottom: 0; }
.plan-row fieldset:last-child { border-right: 0; }
.segment-control { display: grid; gap: 4px; margin-top: 10px; }
.segment-control label > span { min-height: 36px; display: grid; place-items: center; color: #5b4e3d; background: #d8c9ad; border: 1px solid transparent; font-size: 11px; }
.segment-control input:checked + span { color: #fff4de; background: #8f2f24; }
.plan-meters { padding: 15px 16px; }
.plan-meters > div { display: grid; grid-template-columns: 1fr auto; gap: 7px; padding: 10px 0; }
.plan-meters span { color: #5d5142; font-size: 11px; }.plan-meters strong { font: 700 12px var(--mono); }
.plan-meters i { grid-column: 1 / -1; height: 5px; background: #b7a58a; }.plan-meters b { display: block; height: 100%; background: #203a30; transition: width .25s ease; }
.plan-analysis .menu-kicker, .plan-analysis .plan-meters span { color: #d2bea0; }
.plan-analysis .plan-meters i { background: #6f4437; }
.plan-analysis .plan-meters b { background: #d4ad61; }
.plan-analysis .opponent-card { background: #1f352c; }
.opponent-card { margin: 4px 16px 16px; padding: 15px; color: #eee1ca; background: #48251e; border-top: 2px solid #c5a15b; }
.opponent-card span { color: #d2bea0; font: 9px var(--mono); text-transform: uppercase; }.opponent-card strong { display: block; margin-top: 7px; font: italic 700 18px var(--condensed); text-transform: uppercase; }.opponent-card p { margin: 5px 0 0; color: #d2bea0; font-size: 10px; }
.plan-note { min-height: 76px; margin: 0; padding: 15px 16px; color: #dfcfb4; border-block: 1px solid #754a39; font-size: 11px; line-height: 1.55; }
.launch-match { width: calc(100% - 32px); min-height: 52px; margin: 16px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; color: #fff4df; background: #8f2f24; font-weight: 700; }
.launch-match span { font-size: 20px; }

.app-shell { min-height: 100vh; padding-bottom: 38px; }

.topbar {
  height: var(--header-height);
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 15, 14, .94);
  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 24px;
  text-decoration: none;
  border-right: 1px solid var(--line);
}

.brand-mark { width: 31px; height: 31px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 4px; border: 1px solid var(--accent); transform: rotate(45deg); }
.brand-mark i { display: block; background: var(--accent); }
.brand-mark i:nth-child(1) { grid-row: 1 / 3; }
.brand-mark i:nth-child(2) { grid-column: 2; grid-row: 1; }
.brand-mark i:nth-child(3) { grid-column: 2; grid-row: 2; background: transparent; border: 1px solid var(--accent); }
.brand b { display: block; font-family: var(--condensed); font-variation-settings: "wdth" 110; font-size: 17px; line-height: 17px; }
.brand small { color: var(--muted); font: 10px var(--mono); text-transform: uppercase; }

.main-nav { display: flex; justify-content: center; height: 100%; }
.nav-item { min-width: 110px; padding: 12px 22px 0; background: transparent; color: var(--muted); font: 500 13px var(--sans); position: relative; }
.nav-item::before { content: attr(data-index); position: absolute; top: 9px; left: 22px; color: var(--muted); font: 9px var(--mono); }
.nav-item.active { color: var(--text); }
.nav-item.active::after { content: ""; position: absolute; inset: auto 22px 7px; height: 1px; background: var(--accent); box-shadow: 5px 3px 0 var(--accent), 10px 6px 0 var(--accent); }
.season-status { padding: 0 24px; display: flex; align-items: flex-end; justify-content: center; flex-direction: column; border-left: 1px solid var(--line); }
.season-status span { color: var(--muted); font: 10px var(--mono); text-transform: uppercase; }
.season-status strong { margin-top: 3px; font: 700 14px var(--condensed); }

.brief-strip {
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 250px auto;
  align-items: center;
  gap: 20px;
  padding: 16px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.eyebrow { display: flex; align-items: center; gap: 7px; color: var(--muted); font: 400 10px var(--mono); margin-bottom: 6px; }
.eyebrow::before { content: ""; width: 13px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font: 700 32px/.9 var(--condensed); font-variation-settings: "wdth" 110; }
h2 { margin-bottom: 0; font: 650 17px/1 var(--condensed); font-variation-settings: "wdth" 75; }
.draft-clock, .pick-status { border-left: 1px solid var(--line); padding-left: 20px; }
.draft-clock span, .pick-status span { display: block; color: var(--muted); font: 10px var(--mono); text-transform: uppercase; }
.draft-clock strong { color: var(--accent); font: 600 25px var(--mono); }
.auto-draft-button { min-width: 132px; min-height: 44px; padding: 0 14px; color: #21150f; background: #c7a45d; border: 1px solid #efd28f; font: 800 10px var(--mono); text-transform: uppercase; }
.auto-draft-button span { margin-left: 10px; color: #21150f; font-size: 16px; }
.pick-status strong { display: block; margin-top: 6px; font: 600 13px var(--sans); }

.theme-switcher { display: flex; height: 48px; gap: 4px; }
.theme-button { min-width: 112px; padding: 0 11px; display: grid; grid-template-columns: 13px auto 1fr; gap: 7px; align-items: center; color: var(--muted); background: var(--surface-2); font: 600 12px var(--sans); text-align: left; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.theme-button:last-child { border: 0; }
.theme-button i { width: 10px; height: 20px; display: block; background: repeating-linear-gradient(0deg, currentColor 0 2px, transparent 2px 5px); opacity: .5; }
.theme-button span { font: 9px var(--mono); opacity: .8; }
.theme-button.active { background: var(--accent); color: #0c100c; transform: translateY(-3px); }

.workspace { display: grid; grid-template-columns: minmax(230px, .72fr) minmax(500px, 1.75fr) minmax(250px, .78fr); gap: 1px; background: var(--line); }
.panel { min-width: 0; background: var(--surface); }
.panel-header { height: 70px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--line); position: relative; }
.panel-header::after { content: ""; position: absolute; right: 20px; bottom: -1px; width: 28px; height: 3px; background: repeating-linear-gradient(90deg, var(--accent) 0 3px, transparent 3px 6px); }
.capacity { color: var(--accent); font: 500 11px var(--mono); }
.roster-team-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.roster-team-heading img { width: 34px; height: 34px; flex: 0 0 34px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.18)); }
.roster-team-heading h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.roster-panel { display: flex; flex-direction: column; }
.roster-list { padding: 9px 14px; flex: 1; }
.roster-slot { min-height: 54px; display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 9px; padding: 6px; border-bottom: 1px solid var(--line); }
.roster-avatar { width: 34px; height: 34px; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.roster-avatar.empty { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font: 13px var(--mono); border: 1px dashed var(--line); }
.roster-slot small { display: block; color: var(--muted); font: 10px var(--mono); text-transform: uppercase; }
.roster-slot strong { display: block; margin-top: 2px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roster-rating { color: var(--accent); font: 500 12px var(--mono); }
.roster-slot.open strong { color: var(--muted); font-weight: 500; }
.chemistry-summary { margin: 12px; padding: 16px; display: flex; gap: 13px; align-items: center; background: var(--surface-2); border-block: 1px solid var(--line); position: relative; }
.chemistry-summary::before { content: "TEAM COHESION"; position: absolute; right: 8px; top: -6px; padding-inline: 5px; color: var(--muted); background: var(--surface-2); font: 9px var(--mono); }
.chemistry-dial { flex: 0 0 auto; width: 48px; height: 56px; display: grid; place-content: center; text-align: center; background: linear-gradient(to top, var(--accent) calc(var(--score) * 1%), transparent 0); border: 1px solid var(--accent); clip-path: polygon(0 0, 100% 0, 100% 77%, 50% 100%, 0 77%); }
.chemistry-dial strong { font: 600 13px var(--mono); }
.chemistry-dial span { color: currentColor; font: 9px var(--mono); text-transform: uppercase; }
.chemistry-summary > div:last-child > strong { font: 700 12px var(--condensed); text-transform: uppercase; }
.chemistry-summary p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

.prospect-stage { padding-bottom: 16px; }
.stage-header { padding-right: 16px; }
.view-tools { display: flex; gap: 5px; }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 16px; }
.icon-button.active { color: var(--accent); border-color: var(--accent); }
.prospect-card { display: grid; grid-template-columns: minmax(210px, .86fr) minmax(280px, 1.14fr); min-height: 500px; }
.portrait-wrap { min-height: 500px; position: relative; overflow: hidden; background: #212725; }
.portrait-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(9,12,11,.85)); pointer-events: none; }
.portrait-backdrop { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 45px, rgba(217,255,69,.06) 46px 47px), linear-gradient(145deg, transparent 49%, var(--accent) 49.2% 49.7%, transparent 50%); }
.portrait-wrap img { width: 100%; height: 100%; object-fit: contain; object-position: center; mix-blend-mode: luminosity; filter: contrast(1.08) brightness(.85); }
.prospect-number { position: absolute; left: 17px; top: 11px; z-index: 2; color: rgba(255,255,255,.1); font: 800 120px/1 var(--condensed); }
.era-tag { position: absolute; z-index: 2; inset: auto 16px 15px; color: var(--text); font: 10px var(--mono); text-transform: uppercase; }
.prospect-info { padding: 28px 30px 22px; position: relative; }
.prospect-info::before { content: ""; width: 36px; height: 4px; position: absolute; top: 0; left: 30px; background: var(--accent); }
.rank { color: var(--accent); font: 10px var(--mono); text-transform: uppercase; }
.prospect-info h3 { margin: 11px 0 15px; font: 750 47px/.82 var(--condensed); font-variation-settings: "wdth" 75; }
.prospect-summary { max-width: 520px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.attribute-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; padding: 19px 0; margin: 17px 0; border-block: 1px solid var(--line); }
.attribute-grid div { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px; }
.attribute-grid span { color: var(--muted); font: 10px var(--mono); text-transform: uppercase; }
.attribute-grid strong { font: 600 13px var(--mono); }
.attribute-grid i { grid-column: 1 / -1; height: 3px; background: var(--line); position: relative; }
.attribute-grid i::after { content: ""; display: block; height: 100%; width: var(--value); background: var(--accent); }
.traits { display: flex; flex-wrap: wrap; gap: 5px; }
.traits span { padding: 7px 10px 7px 18px; color: var(--muted); font: 10px var(--mono); position: relative; background: linear-gradient(90deg, transparent 0 8px, var(--surface-2) 8px); }
.traits span::before { content: "/"; position: absolute; left: 5px; color: var(--accent); }
.fit-callout { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.fit-grade { width: 46px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; color: #10140e; background: var(--accent); font: 750 21px var(--condensed); clip-path: polygon(50% 0, 100% 14%, 92% 86%, 50% 100%, 8% 86%, 0 14%); }
.fit-callout strong { font: 700 12px var(--sans); }
.fit-callout p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.draft-actions { display: grid; grid-template-columns: 110px 1fr; gap: 7px; }
.watch-button, .draft-button { min-height: 48px; font: 700 13px var(--sans); }
.watch-button { background: transparent; border: 1px solid var(--line); }
.watch-button.saved { color: var(--accent); border-color: var(--accent); }
.draft-button { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: var(--accent); color: #11140f; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.draft-button span { font-size: 18px; }
.draft-button:disabled { cursor: default; opacity: .48; }
.draft-pool-toolbar { display: grid; grid-template-columns: minmax(170px, .8fr) minmax(330px, 1.4fr) auto; gap: 8px; align-items: center; margin: 0 16px 9px; }
.draft-pool-toolbar input { width: 100%; height: 38px; padding: 0 11px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 0; font: 11px var(--sans); }
.draft-pool-toolbar input::placeholder { color: var(--muted); opacity: 1; }
.role-filters { display: flex; min-width: 0; }
.role-filter { min-width: 40px; height: 38px; flex: 1; padding: 0 6px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-right: 0; font: 9px var(--mono); }
.role-filter:last-child { border-right: 1px solid var(--line); }
.role-filter.active { color: #11170f; background: var(--accent); }
.draft-pool-toolbar > span { color: var(--muted); font: 9px var(--mono); white-space: nowrap; }
.candidate-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0 16px; background: var(--line); border: 1px solid var(--line); }
.candidate-rail { display: block; max-height: 390px; overflow: auto; }
.candidate-table-head, .candidate-row { display: grid; grid-template-columns: minmax(190px, 2fr) 82px 64px repeat(var(--stat-count), 74px); align-items: center; gap: 8px; }
.candidate-table-head { position: sticky; top: 0; z-index: 2; min-height: 34px; padding: 0 10px; color: var(--muted); background: var(--surface-2); font: 9px var(--mono); text-transform: uppercase; }
.candidate-row { width: 100%; min-height: 52px; padding: 0 10px; border: 0; border-bottom: 1px solid var(--line); color: var(--text); background: var(--surface); text-align: left; font: 10px var(--mono); }
.candidate-row:hover, .candidate-row.active { background: #f0e4c9; color: #1d211a; }
.candidate-row > span, .candidate-row > b { text-align: center; }
.candidate-row .candidate-name { display: flex; align-items: center; gap: 8px; min-width: 0; text-align: left; }
.candidate-row .candidate-name img { width: 30px; height: 38px; object-fit: cover; filter: grayscale(1); }
.candidate-row .candidate-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13px var(--condensed); text-transform: uppercase; }
.candidate-row > b { color: var(--accent); font-size: 12px; }
.draft-board { margin: 12px 16px 0; border: 1px solid #9a733d; background: #21140f; color: #f0e2c9; }
.draft-board header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; border-bottom: 1px solid #76553c; }
.draft-board h2 { color: #f1cf7e; }
.draft-board header button { min-height: 40px; padding: 0 12px; color: #24170f; background: #c7a45d; font: 700 10px var(--mono); text-transform: uppercase; }
.draft-board-list { max-height: 220px; overflow: auto; }
.draft-board-list > div { display: grid; grid-template-columns: 36px 1fr 1.4fr 100px; gap: 10px; align-items: center; min-height: 34px; padding: 0 16px; border-bottom: 1px dotted #5f4936; font: 10px var(--mono); }
.draft-board-list > div span, .draft-board-list > div small { color: #bca98a; }
.draft-board-list > div b { color: #f0e2c9; font: 700 14px var(--condensed); text-transform: uppercase; }
.app-shell.cpu-turn .prospect-card { display: none; }
.app-shell.cpu-turn .draft-pool-toolbar { margin-top: 14px; }
.app-shell.draft-board-view .prospect-card, .app-shell.draft-board-view .draft-pool-toolbar, .app-shell.draft-board-view .candidate-rail { display: none; }
.app-shell.draft-board-view .draft-board { min-height: 420px; margin-top: 14px; }
.nav-current { display: grid; place-items: center; min-width: 120px; height: 100%; padding: 0 18px; color: #cbbc9e; background: transparent; border: 0; border-bottom: 2px solid transparent; font: 600 13px var(--sans); }
.nav-current.active { color: #fff4de; border-bottom-color: var(--brass); }
.candidate { height: 62px; min-width: 0; display: grid; grid-template-columns: 42px 1fr; text-align: left; align-items: center; padding: 0 8px 0 0; background: var(--surface-2); }
.candidate.active { box-shadow: inset 4px 0 var(--accent); transform: translateY(-3px); }
.candidate img { width: 36px; height: 62px; object-fit: cover; filter: grayscale(1); }
.candidate span { padding-left: 8px; overflow: hidden; }
.candidate strong, .candidate small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.candidate strong { font: 700 12px var(--condensed); text-transform: uppercase; }
.candidate small { color: var(--muted); font: 9px var(--mono); text-transform: uppercase; margin-top: 3px; }

/* Draft pool rows use a fixed data grid rather than the original card layout. */
.candidate-row { display: grid; grid-template-columns: minmax(190px, 2fr) 82px 64px repeat(var(--stat-count), 74px); width: max-content; min-width: 100%; height: 50px; min-height: 50px; padding: 0 10px; align-items: center; }
.candidate-row > span, .candidate-row > b { padding-left: 0; text-align: center; }
.candidate-row .candidate-name { display: flex; align-items: center; gap: 8px; padding-left: 0; text-align: left; }
.candidate-row .candidate-name img { width: 28px; height: 38px; flex: 0 0 28px; object-fit: cover; }
.candidate-row .candidate-name strong { display: block; padding-left: 0; }
.candidate-row > b { display: block; }
body[data-theme="broadcast"] .prospect-card { min-height: 360px; }
body[data-theme="broadcast"] .portrait-wrap { min-height: 360px; height: 360px; }
body[data-theme="broadcast"] .prospect-info { padding: 22px 26px 18px; }
body[data-theme="broadcast"] .prospect-info h3 { font-size: 42px; }
body[data-theme="broadcast"] .prospect-number { font-size: 110px; }

.intel-panel { padding-bottom: 16px; }
.live-dot { color: var(--accent); font: 10px var(--mono); text-transform: uppercase; }
.live-dot::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: 5px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.intel-block { padding: 19px 20px; border-bottom: 1px solid var(--line); }
.intel-block h3 { margin-bottom: 12px; font: 700 14px var(--condensed); text-transform: uppercase; }
.link-map { height: 123px; position: relative; margin-bottom: 10px; background-image: radial-gradient(var(--line) .7px, transparent .7px); background-size: 10px 10px; }
.link-node { position: absolute; width: 34px; height: 34px; z-index: 2; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font: 10px var(--mono); }
.link-node.central { left: calc(50% - 20px); top: 43px; width: 40px; height: 40px; color: #10140e; background: var(--accent); border: 0; }
.node-one { left: 8%; top: 10px; }.node-two { right: 7%; top: 8px; }.node-three { right: 13%; bottom: 3px; }
.link-line { position: absolute; height: 1px; transform-origin: left center; left: 48%; top: 58%; background: var(--line); }
.line-one { width: 43%; transform: rotate(207deg); background: var(--accent); }.line-two { width: 42%; transform: rotate(-42deg); }.line-three { width: 39%; transform: rotate(25deg); background: var(--danger); }
.synergy-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); font-size: 12px; border-bottom: 1px dotted var(--line); }
.synergy-row strong { font-family: var(--mono); }.synergy-row.positive strong { color: var(--accent); }.synergy-row.negative strong { color: var(--danger); }
.biome-row { display: grid; grid-template-columns: 92px 1fr 35px; align-items: center; gap: 7px; padding: 8px 0; font-size: 11px; }
.biome-row i { height: 4px; background: var(--line); }.biome-row b { display: block; height: 100%; background: var(--accent); }.biome-row strong { color: var(--muted); font: 9px var(--mono); text-transform: uppercase; }
.scout-note { margin: 16px; padding: 16px; background: var(--surface-2); border-top: 2px solid var(--accent); }
.scout-note span { color: var(--accent); font: 10px var(--mono); text-transform: uppercase; }
.scout-note p { margin: 8px 0 0; color: var(--muted); font: italic 13px/1.55 var(--serif); }

.ticker { position: fixed; inset: auto 0 0; z-index: 20; height: 38px; display: grid; grid-template-columns: 120px 1fr 160px; align-items: center; border-top: 1px solid var(--line); background: #090b0a; font: 10px var(--mono); text-transform: uppercase; }
.ticker-label { height: 100%; display: grid; place-items: center; background: var(--accent); color: #10140e; font-weight: 500; }
.ticker-track { display: flex; gap: 50px; padding: 0 22px; white-space: nowrap; overflow: hidden; color: var(--muted); }
.ticker-track b { color: var(--text); }.connection { text-align: right; padding-right: 18px; color: var(--accent); }
.toast { position: fixed; right: 22px; bottom: 55px; z-index: 50; transform: translateY(15px); padding: 12px 16px; opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); font: 600 11px var(--mono); text-transform: uppercase; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

/* Match simulation */
.match-screen { min-height: 100svh; overflow-y: auto; color: #ede2ce; background-color: #24150e; background-image: repeating-linear-gradient(92deg, transparent 0 35px, rgba(255,255,255,.02) 36px, rgba(0,0,0,.1) 39px, transparent 44px); }
.match-completion-actions { position: sticky; top: 0; z-index: 25; display: flex; justify-content: center; padding: 12px 16px; background: rgba(20,10,6,.96); border-bottom: 1px solid #9f7b45; }
.match-completion-actions button { min-width: 260px; min-height: 52px; padding: 0 18px; color: #21150f; background: #c7a45d; font: 700 13px var(--sans); text-transform: uppercase; }
.match-completion-actions button span { float: right; font-size: 18px; }
.bracket-game[role="button"] { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.bracket-game[role="button"]:hover, .bracket-game[role="button"]:focus-visible { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(0,0,0,.25); outline: 2px solid #c7a45d; outline-offset: 2px; }
.playoff-boxscore { max-height: 480px; overflow-y: auto; margin: 18px 0; }
.playoff-boxscore h3 { margin: 14px 0 4px; color: #efd28f; font: 700 15px var(--condensed); text-transform: uppercase; }
.playoff-boxscore p { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; margin: 0; border-bottom: 1px dotted #52695f; font-size: 11px; }
.playoff-boxscore p span { color: #c7b99f; font: 9px var(--mono); text-align: right; }
.playoff-boxscore-modal { position: fixed; z-index: 70; inset: 5vh 5vw; overflow: auto; color: #f0e4ce; background: #203a30; border: 2px solid #c7a45d; box-shadow: 0 24px 80px rgba(0,0,0,.65); }
.playoff-boxscore-modal > header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; background: #2d2117; border-bottom: 1px solid #76533b; }
.playoff-boxscore-modal > header h2 { margin: 5px 0 0; color: #f3d688; font-size: 27px; }.playoff-boxscore-modal > header button { width: 44px; height: 44px; color: #f3d688; background: transparent; border: 1px solid #a4804d; font-size: 28px; }
.playoff-boxscore-modal #playoffBoxscoreContent { padding: 24px; }.playoff-boxscore-summary { display: flex; align-items: baseline; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid #52695f; }.playoff-boxscore-summary strong { color: #f3d688; font: 800 42px var(--condensed); }.playoff-boxscore-summary span { color: #c7b99f; font: 10px var(--mono); text-transform: uppercase; }
.playoff-boxscore-modal .playoff-boxscore { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-height: none; margin: 18px 0 0; }.playoff-boxscore-modal .playoff-boxscore h3 { padding-bottom: 8px; border-bottom: 2px solid #c7a45d; }.playoff-boxscore-modal .playoff-boxscore p { min-height: 40px; align-items: center; }
@media (max-width: 760px) { .playoff-boxscore-modal { inset: 2vh 2vw; }.playoff-boxscore-modal .playoff-boxscore { grid-template-columns: 1fr; gap: 12px; }.playoff-boxscore-summary { display: block; }.playoff-boxscore-summary span { display: block; margin-top: 6px; } }
.championship-modal { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(16, 10, 7, .82); overflow: hidden; }
.championship-card { position: relative; z-index: 1; width: min(560px, 100%); padding: 46px 34px 34px; color: #f4ead7; background: #203a30; border: 2px solid #c7a45d; box-shadow: 0 24px 90px rgba(0,0,0,.7); text-align: center; animation: championship-enter .45s ease both; }
.championship-card h2 { margin: 12px 0 8px; color: #f3d688; font: italic 800 46px/.9 var(--condensed); text-transform: uppercase; }.championship-card p { color: #d7c7ab; font-size: 12px; }.championship-card img { width: 112px; height: 112px; margin-top: 22px; object-fit: contain; }.championship-card > button:last-child { width: 100%; min-height: 48px; margin-top: 20px; color: #24170f; background: #c7a45d; font-weight: 800; }.championship-close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; color: #f3d688; background: transparent; border: 1px solid #8e744d; font-size: 24px; }.confetti { position: absolute; inset: 0; opacity: .9; background-image: radial-gradient(circle, #f3d688 0 4px, transparent 5px), radial-gradient(circle, #8f2f24 0 3px, transparent 4px), radial-gradient(circle, #789b8a 0 4px, transparent 5px); background-size: 83px 97px, 121px 139px, 157px 113px; animation: confetti-fall 4s linear infinite; }
@keyframes championship-enter { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } } @keyframes confetti-fall { from { transform: translateY(-90px) rotate(0); } to { transform: translateY(90px) rotate(12deg); } }
.season-award-reel { display: grid; gap: 6px; margin: 12px 0; }
.season-award-reel span { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dotted currentColor; font-size: 11px; }
.season-award-reel b { color: #e4c574; font-family: var(--condensed); text-transform: uppercase; }
.awards-screen { min-height: 100vh; color: #f0e4ce; background: #24150e; }
.awards-header { min-height: 92px; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px; padding: 12px 28px; background: #342117; border-bottom: 1px solid #76533b; }
.awards-header h1 { margin: 5px 0 0; font: italic 800 42px/.9 var(--condensed); text-transform: uppercase; }
.awards-phase { padding-left: 18px; border-left: 1px solid #9b7749; color: #e3c477; font: 11px var(--mono); text-transform: uppercase; }
.awards-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; padding: 24px; }
.awards-board { min-height: 600px; padding: 22px; background: #e9dec7; color: #2b2119; }
.awards-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #9b866b; }
.awards-list article { min-height: 106px; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 18px; background: #f2e7d0; border-left: 4px solid #8f2f24; }
.awards-list article span { color: #8f2f24; font: 10px var(--mono); text-transform: uppercase; }
.awards-list article strong { font: 700 24px var(--condensed); text-transform: uppercase; }
.awards-list article small { color: #675946; font: 10px var(--mono); text-transform: uppercase; }
.awards-command { min-height: 380px; padding: 28px; background: #203a30; border-left: 5px solid #c5a15b; }
.awards-command h2 { margin: 8px 0 14px; color: #f3d688; font-size: 34px; }
.awards-command p { color: #d8cbb4; line-height: 1.6; }
.awards-command button { width: 100%; min-height: 52px; margin-top: 22px; padding: 0 16px; color: #25180f; background: #c7a45d; font-weight: 800; text-transform: uppercase; }
.awards-champion-logo { width: 150px; height: 150px; margin: 25px auto 12px; display: block; object-fit: contain; }
.progression-screen { min-height: 100vh; color: #f0e4ce; background: #24150e; }
.progression-header { min-height: 92px; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px; padding: 12px 28px; background: #342117; border-bottom: 1px solid #76533b; }
.progression-header h1 { margin: 5px 0 0; font: italic 800 42px/.9 var(--condensed); text-transform: uppercase; }
.progression-status { color: #e3c477; font: 10px var(--mono); text-transform: uppercase; }
.progression-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; padding: 24px; }
.progression-board { min-height: 600px; color: #2b2119; background: #e9dec7; }
.progression-board > header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid #aa987a; }
.progression-board h2 { font-size: 25px; }
.progression-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #aa9677; }
.progression-card { min-height: 112px; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 12px; padding: 12px; background: #f1e5ce; border-left: 4px solid #9b866b; }
.progression-card img { width: 70px; height: 84px; object-fit: cover; object-position: center 20%; background: #d8c7aa; }
.progression-card > div > span { color: #8f2f24; font: 9px var(--mono); text-transform: uppercase; }
.progression-card h3 { margin: 5px 0; font: 700 19px var(--condensed); text-transform: uppercase; }
.progression-card small { color: #675946; font: 9px var(--mono); }
.progression-card.up { border-left-color: #287158; }.progression-card.down { border-left-color: #9b3023; }.progression-card.steady { border-left-color: #9b866b; }
.form-shift { min-width: 58px; text-align: right; }.form-shift b { display: block; font: 800 25px var(--condensed); }.form-shift span { font: 9px var(--mono); }
.progression-card.up .form-shift { color: #287158; }.progression-card.down .form-shift { color: #9b3023; }.progression-card.steady .form-shift { color: #675946; }
.progression-command { min-height: 300px; padding: 28px; color: #f0e4ce; background: #203a30; border-left: 5px solid #c5a15b; }
.progression-command h2 { margin: 9px 0; color: #efd28f; font-size: 34px; }.progression-command p { color: #d0c4ac; line-height: 1.6; }.progression-command button { width: 100%; min-height: 52px; margin-top: 22px; color: #25180f; background: #c7a45d; font-weight: 800; text-transform: uppercase; }
@media (max-width: 760px) { .progression-header { grid-template-columns: 44px 1fr; padding: 10px; }.progression-header h1 { font-size: 31px; }.progression-status { grid-column: 2; padding-top: 8px; border-top: 1px solid #76533b; }.progression-layout { display: flex; flex-direction: column; padding: 8px; }.progression-grid { grid-template-columns: 1fr; }.progression-card { grid-template-columns: 58px 1fr auto; }.progression-card img { width: 58px; height: 72px; } }
.award-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid #a89374; }
.award-tab { min-height: 42px; padding: 0 13px; color: #675946; background: transparent; border-bottom: 3px solid transparent; font: 10px var(--mono); text-transform: uppercase; }
.award-tab.active { color: #8f2f24; border-bottom-color: #8f2f24; background: #f6ecd9; }
.award-dossiers { display: grid; gap: 12px; }
.award-dossier { display: grid; grid-template-columns: 190px 1fr; min-height: 230px; background: #f6ecd9; border: 1px solid #b9a787; box-shadow: 0 5px 14px rgba(55,39,27,.12); }
.award-dossier > img { width: 190px; height: 230px; object-fit: cover; object-position: center 20%; background: #d8c7aa; }
.award-dossier > div { padding: 24px; }
.award-dossier span { color: #8f2f24; font: 10px var(--mono); text-transform: uppercase; }
.award-dossier h2 { margin: 7px 0 4px; font-size: 34px; }
.award-dossier strong { font: 700 17px var(--condensed); text-transform: uppercase; }
.award-dossier p { margin: 8px 0 15px; color: #675946; }
.award-dossier dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; }
.award-dossier dt { color: #675946; font: 9px var(--mono); text-transform: uppercase; }
.award-dossier dd { margin: 4px 0 0; color: #8f2f24; font: 700 20px var(--condensed); }
.award-depth-chart { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-areas: "general general general general" "runner-a runner-a runner-b runner-b" "bruiser-a bruiser-a bruiser-b bruiser-b" "cannon-a cannon-a cannon-b cannon-b" "visual visual musical musical"; gap: 12px; max-width: 850px; margin: 30px auto; padding: 34px; background: #203a30; border: 5px solid #b79454; box-shadow: inset 0 0 0 1px #d5b96f; }
.depth-slot { min-height: 100px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 12px; background: #e9dec7; color: #2b2119; border: 1px solid #b9a787; text-align: center; }
.depth-slot span { color: #8f2f24; font: 10px var(--mono); text-transform: uppercase; }
.depth-slot strong { margin-top: 7px; font: 700 21px var(--condensed); text-transform: uppercase; }
.depth-slot small { margin-top: 4px; color: #675946; font: 9px var(--mono); }
.depth-slot.slot-0 { grid-area: general; }.depth-slot.slot-1 { grid-area: runner-a; }.depth-slot.slot-2 { grid-area: runner-b; }.depth-slot.slot-3 { grid-area: bruiser-a; }.depth-slot.slot-4 { grid-area: bruiser-b; }.depth-slot.slot-5 { grid-area: cannon-a; }.depth-slot.slot-6 { grid-area: cannon-b; }.depth-slot.slot-7 { grid-area: visual; }.depth-slot.slot-8 { grid-area: musical; }
@media (max-width: 760px) {
  .awards-header { grid-template-columns: 44px 1fr; padding: 10px; }
  .awards-header h1 { font-size: 31px; }
  .awards-phase { grid-column: 2; padding: 8px 0 0; border-left: 0; border-top: 1px solid #76533b; }
  .awards-layout { display: flex; flex-direction: column; padding: 8px; }
  .awards-board { min-height: 0; padding: 12px; }
  .awards-list { grid-template-columns: 1fr; }
  .award-dossier { grid-template-columns: 110px 1fr; }
  .award-dossier > img { width: 110px; height: 180px; }
  .award-dossier > div { padding: 14px; }
  .award-dossier dl { grid-template-columns: 1fr 1fr; }
  .award-depth-chart { grid-template-columns: 1fr 1fr; grid-template-areas: "general general" "runner-a runner-b" "bruiser-a bruiser-b" "cannon-a cannon-b" "visual musical"; padding: 14px; }
}
.match-topbar { min-height: 76px; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 14px; padding: 8px 18px; background-color: #2c1b13; background-image: repeating-linear-gradient(91deg, transparent 0 42px, rgba(255,255,255,.022) 44px, rgba(0,0,0,.12) 47px, transparent 52px); border-bottom: 3px solid #17100b; box-shadow: inset 0 -1px #826047; }
.match-back { width: 44px; height: 44px; color: #f4ead7; background: #1d120d; border: 1px solid #80634b; font-size: 21px; clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%); }
.match-topbar span { display: block; color: #bdaa8c; font: 9px var(--mono); text-transform: uppercase; }
.match-topbar strong { display: block; margin-top: 3px; font: italic 700 17px var(--condensed); text-transform: uppercase; }
.match-controls { display: flex; align-items: center; gap: 12px; }
.transport-control { width: 54px; height: 54px; display: grid; place-content: center; gap: 1px; color: #f3e6ce; background: radial-gradient(circle, #39271d 48%, #1d120d 50% 61%, #987947 63% 66%, #21140e 68%); border-radius: 50%; box-shadow: inset 0 1px rgba(255,255,255,.1), 0 2px 5px #130b07; }
.transport-control b { font: 700 15px var(--sans); }.transport-control span { font: 9px var(--mono); text-transform: uppercase; }
.speed-console { min-width: 250px; height: 56px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 16px 1fr; padding: 5px 8px 7px; background: #1d2e27; border: 1px solid #886b43; clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%, 0 8px); box-shadow: inset 0 0 12px rgba(0,0,0,.35); }
.console-label { grid-column: 1 / -1; color: #c6b99f !important; font-size: 9px !important; text-align: center; }
.speed-console button { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; color: #c9bea8; background: transparent; border: 0; border-right: 1px solid #46594f; font: 9px var(--mono); text-transform: uppercase; }
.speed-console button:last-child { border: 0; }
.speed-console i { width: 7px; height: 7px; border-radius: 50%; background: #53655d; box-shadow: inset 0 1px 2px rgba(0,0,0,.6); }
.speed-console .active { color: #fff0ce; background: transparent; }
.speed-console .active i { background: #e2bd65; box-shadow: 0 0 9px rgba(226,189,101,.7); }
.resolve-control { min-width: 132px; height: 52px; display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 4px; padding: 0 20px 0 12px; color: #2b1c12; background: linear-gradient(105deg, #b38d49, #dfbd71); clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%, 7px 50%); text-align: left; }
.resolve-control b { font-size: 24px; line-height: 1; }.resolve-control span { font: 800 13px var(--sans); text-transform: uppercase; white-space: nowrap; }
.match-topbar .resolve-control, .match-topbar .resolve-control b, .match-topbar .resolve-control span { color: #1a0f08; }
.match-topbar .resolve-control span { display: inline; font: 800 13px var(--sans); letter-spacing: .04em; }
.reset-control { width: 42px; height: 42px; padding: 0; color: #cdbb9d; background: transparent; border: 1px dashed #84674e; border-radius: 50%; font-size: 21px; }
.score-ribbon { min-height: 108px; display: grid; grid-template-columns: 1fr minmax(220px, .65fr) 1fr; align-items: stretch; color: #2a2017; background: #e8dcc5; border-bottom: 1px solid #9d8768; }
.score-team { display: grid; grid-template-columns: 58px auto auto; align-content: center; align-items: center; gap: 0 14px; padding: 13px clamp(20px, 5vw, 70px); }
.score-team img { grid-row: 1 / 3; width: 54px; height: 54px; object-fit: contain; }
.score-team span { align-self: end; font: italic 800 30px var(--condensed); }
.score-team strong { grid-column: 3; grid-row: 1 / 3; font: 800 67px/.8 var(--condensed); }
.score-team small { color: #625645; font: 10px var(--mono); text-transform: uppercase; }
.team-away { grid-template-columns: auto auto 58px; justify-content: end; text-align: right; }
.team-away img { grid-column: 3; }.team-away strong { grid-column: 1; }.team-away span { grid-column: 2; }.team-away small { grid-column: 2; }
.match-clock { display: grid; place-content: center; text-align: center; background: #203a30; color: #f0e4ce; clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%); }
.match-clock span, .match-clock small { color: #cec1a9; font: 9px var(--mono); text-transform: uppercase; }
.match-clock strong { margin: 4px 0; color: #efd28f; font: 700 34px var(--mono); }
.match-workspace { display: grid; grid-template-columns: minmax(560px, 1.65fr) minmax(280px, .65fr); gap: 12px; padding: 12px; }
.field-panel, .commentary-panel, .box-score-panel { color: #2c2118; box-shadow: 0 5px 18px rgba(15,8,5,.26); }
.field-panel { overflow: hidden; background: #e8dcc5; border: 1px solid #a78958; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
.commentary-panel { background: #211813; border: 1px solid #75543d; border-top: 4px solid #8f2f24; }
.box-score-panel { background-color: #e8dcc5; background-image: repeating-linear-gradient(0deg, transparent 0 29px, rgba(88,67,44,.055) 30px); border: 1px solid #856f54; box-shadow: inset 7px 0 #c5a15b, 0 5px 18px rgba(15,8,5,.26); }
.field-heading, .commentary-panel > header, .box-score-header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid #a79375; }
.commentary-panel > header { color: #f0e3cc; border-color: #674a39; }
.field-heading h2, .commentary-panel h2, .box-score-header h2 { margin: 0; font: italic 700 19px var(--condensed); text-transform: uppercase; }
.field-legend { display: flex; gap: 13px; color: #655947; font: 9px var(--mono); }
.field-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 5px; }
.field-legend .home-key::before { background: #d85338; }.field-legend .away-key::before { background: #4dcca1; }.field-legend .grunt-key::before { border: 1px solid #655947; border-radius: 50%; }
.field-frame { position: relative; min-height: 490px; background: #172d25; overflow: hidden; }
#matchCanvas { display: block; width: 100%; height: 490px; touch-action: none; }
.zone-readout { position: absolute; inset: 10px 10px auto auto; width: 142px; padding: 8px; color: #e8ddc7; background: rgba(13,27,22,.86); border: 1px solid rgba(210,185,127,.45); backdrop-filter: blur(5px); }
.zone-readout > div { display: grid; grid-template-columns: 1fr auto; gap: 5px; padding: 6px 3px; }
.zone-readout span, .zone-readout strong { font: 8px var(--mono); text-transform: uppercase; }.zone-readout strong { color: #d8c9a8; }
.zone-readout i { grid-column: 1 / -1; height: 3px; background: #3d5149; }.zone-readout b { display: block; width: 0; height: 100%; background: #c5a15b; transition: width .25s linear; }
.force-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 13px 16px 16px; }
.force-bars div { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.force-bars span { color: #625645; font: 9px var(--mono); text-transform: uppercase; }.force-bars strong { font: 700 14px var(--mono); }
.force-bars i { grid-column: 1 / -1; height: 6px; background: #b7a68b; }.force-bars b { display: block; height: 100%; transition: width .4s ease; }
.force-bars div:first-child b { background: #b83b29; }.force-bars div:last-child b { background: #21785e; }
.commentary-panel { min-height: 610px; }
.live-pulse { color: #9a2f22; font: 9px var(--mono); text-transform: uppercase; }.live-pulse::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #a72f22; box-shadow: 0 0 0 4px rgba(167,47,34,.12); }
#commentaryFeed { max-height: 544px; margin: 0; padding: 6px 16px 20px; list-style: none; overflow-y: auto; }
#commentaryFeed li { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid #594136; color: #d5c8b3; font-size: 12px; line-height: 1.45; }
#commentaryFeed time { color: #e1b764; font: 9px var(--mono); }
#commentaryFeed li.major { color: #fff2dc; font-weight: 700; }
#commentaryFeed li.major::after { content: "MAJOR EVENT"; grid-column: 2; color: #e1b764; font: 8px var(--mono); }
.box-score-panel { grid-column: 1 / -1; }
.box-tabs { display: flex; border: 1px solid #9e896c; }
.box-tab { min-height: 38px; padding: 0 16px; color: #5b4e3d; background: transparent; font: 10px var(--mono); text-transform: uppercase; }
.box-tab.active { color: #f5ead8; background: #203a30; }
.box-table-wrap { overflow-x: auto; }
.box-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.box-table th { padding: 10px 14px; color: #675946; background: #d6c7aa; font: 9px var(--mono); text-align: left; text-transform: uppercase; }
.box-table td { padding: 11px 14px; border-top: 1px solid #c4b498; }
.box-table td:nth-child(3), .box-table td:nth-child(4) { font-family: var(--mono); font-weight: 700; }
.box-table .rating-elite { color: #8f2f24; }

/* Concept 02: coach's war room */
body[data-theme="broadcast"] {
  --sans: "Manrope", sans-serif; --condensed: "Barlow Condensed", sans-serif;
  --accent: #8f2f24; --brass: #c5a15b; --felt: #203a30;
  --bg: #281810; --surface: #e9dec7; --surface-2: #d8c7aa; --line: #9b866b; --text: #281e17; --muted: #5c5042; --panel-radius: 0;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(92deg, transparent 0 31px, rgba(255,255,255,.025) 32px, rgba(0,0,0,.09) 34px, transparent 38px), linear-gradient(180deg, #321e14, #21130d);
}
body[data-theme="broadcast"] .topbar { grid-template-columns: 240px 1fr 240px; color: #f0e4ce; border-color: #76533b; background-color: #2b1a12; background-image: repeating-linear-gradient(93deg, transparent 0 47px, rgba(255,255,255,.025) 49px, rgba(0,0,0,.14) 52px, transparent 57px), linear-gradient(180deg, #3a2519, #24150f); box-shadow: inset 0 -3px #17100b, 0 4px 12px rgba(20,11,7,.3); }
body[data-theme="broadcast"] .brand, body[data-theme="broadcast"] .season-status { border-color: #76533b; }
body[data-theme="broadcast"] .brand small, body[data-theme="broadcast"] .season-status span { color: #cbbc9e; }
body[data-theme="broadcast"] .nav-item { color: #cbbc9e; }
body[data-theme="broadcast"] .nav-item::before { color: #cbbc9e; }
body[data-theme="broadcast"] .nav-item.active { color: #fff4de; }
body[data-theme="broadcast"] .brand-mark { border-color: var(--brass); }
body[data-theme="broadcast"] .brand-mark i, body[data-theme="broadcast"] .nav-item.active::after { background: var(--brass); }
body[data-theme="broadcast"] .brand-mark i:nth-child(3) { background: transparent; border-color: var(--brass); }
body[data-theme="broadcast"] .main-nav { justify-content: flex-start; }
body[data-theme="broadcast"] .brief-strip { grid-template-columns: 1fr 150px 240px auto; color: #f4ead7; border: 0; border-bottom: 1px solid #1d110d; background-color: #4a211c; background-image: radial-gradient(ellipse at 25% 20%, rgba(255,255,255,.06), transparent 42%), repeating-linear-gradient(105deg, transparent 0 5px, rgba(0,0,0,.035) 6px, transparent 8px), linear-gradient(180deg, #572820, #3c1916); box-shadow: inset 0 1px rgba(255,255,255,.08), inset 0 -4px rgba(20,8,7,.3); }
body[data-theme="broadcast"] h1, body[data-theme="broadcast"] h2 { font-style: italic; }
body[data-theme="broadcast"] .brief-strip .eyebrow, body[data-theme="broadcast"] .draft-clock span, body[data-theme="broadcast"] .pick-status span { color: #d4c1a4; }
body[data-theme="broadcast"] .draft-clock, body[data-theme="broadcast"] .pick-status { border-color: rgba(231,208,170,.35); }
body[data-theme="broadcast"] .draft-clock strong { color: #f1cf7e; }
body[data-theme="broadcast"] .theme-switcher { border-color: rgba(232,211,177,.35); }
body[data-theme="broadcast"] .theme-button { color: #dfceb2; background: rgba(30,13,11,.32); }
body[data-theme="broadcast"] .theme-button.active { color: #21150f; background: var(--brass); }
body[data-theme="broadcast"] .workspace { grid-template-columns: minmax(540px, 1.7fr) minmax(260px, .7fr); grid-template-areas: "stage roster" "stage intel"; gap: 14px; padding: 14px; background-color: var(--bg); background-image: repeating-linear-gradient(91deg, transparent 0 38px, rgba(255,255,255,.025) 39px, rgba(0,0,0,.13) 42px, transparent 48px), linear-gradient(90deg, #2e1b12, #432719 48%, #28170f); }
body[data-theme="broadcast"] .prospect-stage { grid-area: stage; }
body[data-theme="broadcast"] .roster-panel { grid-area: roster; }
body[data-theme="broadcast"] .intel-panel { grid-area: intel; }
body[data-theme="broadcast"] .panel { border: 1px solid #7e6b55; background-color: var(--surface); background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(75,55,34,.035) 28px); box-shadow: 0 5px 16px rgba(19,10,6,.28), inset 0 0 0 1px rgba(255,255,255,.26); }
body[data-theme="broadcast"] .prospect-card { grid-template-columns: 1.15fr .85fr; }
body[data-theme="broadcast"] .panel-header { background: rgba(246,235,213,.34); }
body[data-theme="broadcast"] .portrait-wrap { min-height: 560px; background: #29443a; }
body[data-theme="broadcast"] .portrait-wrap img { mix-blend-mode: luminosity; filter: grayscale(.7) sepia(.28) contrast(1.16) brightness(.82); }
body[data-theme="broadcast"] .portrait-backdrop { background: linear-gradient(165deg, transparent 42%, rgba(197,161,91,.82) 42.2% 64%, transparent 64.2%), repeating-linear-gradient(90deg, transparent 0 39px, rgba(238,226,201,.1) 40px), radial-gradient(circle at 70% 20%, rgba(255,255,255,.08), transparent 34%); }
body[data-theme="broadcast"] .prospect-number { color: rgba(225,199,139,.2); font-size: 160px; }
body[data-theme="broadcast"] .era-tag { color: #fff4de; background: rgba(23,38,32,.82); padding: 5px 7px; }
body[data-theme="broadcast"] .prospect-info h3 { font-size: 58px; color: #25392f; font-weight: 800; }
body[data-theme="broadcast"] .prospect-info::before { background: var(--accent); }
body[data-theme="broadcast"] .rank, body[data-theme="broadcast"] .capacity, body[data-theme="broadcast"] .live-dot { color: var(--accent); }
body[data-theme="broadcast"] .attribute-grid i::after, body[data-theme="broadcast"] .biome-row b { background: var(--felt); }
body[data-theme="broadcast"] .fit-grade, body[data-theme="broadcast"] .draft-button { background: var(--accent); color: #fff; }
body[data-theme="broadcast"] .roster-list { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 12px; }
body[data-theme="broadcast"] .roster-slot { grid-template-columns: 33px 1fr; }
body[data-theme="broadcast"] .roster-avatar { filter: grayscale(.8) sepia(.32) contrast(1.08); }
body[data-theme="broadcast"] .roster-rating { display: none; }
body[data-theme="broadcast"] .chemistry-summary { margin-top: 4px; color: #f4ead7; border: 1px solid #13271f; background-color: var(--felt); background-image: repeating-linear-gradient(55deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px), linear-gradient(180deg, #294a3d, #1b3229); box-shadow: inset 0 0 16px rgba(4,15,10,.28); }
body[data-theme="broadcast"] .chemistry-summary .eyebrow, body[data-theme="broadcast"] .chemistry-summary p { color: #c8c1ad; }
body[data-theme="broadcast"] .chemistry-summary::before { color: #d8c9a8; background: var(--felt); }
body[data-theme="broadcast"] .chemistry-dial { color: #1b271f; background: linear-gradient(to top, var(--brass) calc(var(--score) * 1%), #496457 0); border-color: var(--brass); }
body[data-theme="broadcast"] .intel-panel { display: grid; grid-template-columns: 1fr 1fr; }
body[data-theme="broadcast"] .intel-panel > .panel-header { grid-column: 1 / -1; }
body[data-theme="broadcast"] .intel-block { border-right: 1px solid var(--line); }
body[data-theme="broadcast"] .scout-note { grid-column: 1 / -1; border-color: var(--accent); background: #ded0b6; box-shadow: inset 4px 0 var(--accent); }
body[data-theme="broadcast"] .synergy-row.negative strong { color: var(--accent); }
body[data-theme="broadcast"] .ticker-label { background: var(--accent); color: white; }
body[data-theme="broadcast"] .ticker { color: #f2e6d0; border: 0; background-color: #1d3229; background-image: repeating-linear-gradient(55deg, rgba(255,255,255,.015) 0 1px, transparent 1px 4px); }
body[data-theme="broadcast"] .ticker-track { color: #d8cfbd; }
body[data-theme="broadcast"] .ticker-track b { color: #fff4de; }
body[data-theme="broadcast"] .connection { color: #e0bd73; }

/* Concept 03: private owner archive */
body[data-theme="archive"] {
  --accent: #9f3826; --bg: #241b15; --surface: #e9e1d0; --surface-2: #d7ccb9; --line: #a99b83; --text: #272119; --muted: #5f5649; --panel-radius: 3px;
  background-color: #251b15;
  background-image: linear-gradient(90deg, rgba(255,255,255,.025) 50%, transparent 50%), linear-gradient(rgba(0,0,0,.08) 50%, transparent 50%);
  background-size: 7px 100%, 100% 5px;
  font-family: var(--serif);
}
body[data-theme="archive"] .app-shell { max-width: 1480px; margin: 0 auto; box-shadow: 0 0 80px rgba(0,0,0,.5); }
body[data-theme="archive"] .topbar { margin-top: 13px; grid-template-columns: 240px 1fr 240px; background: #3d2a20; color: #f3e8d5; border: 0; border-top: 3px solid #1c1210; box-shadow: inset 0 -1px #725241; }
body[data-theme="archive"] .brand, body[data-theme="archive"] .season-status { border-color: #725241; }
body[data-theme="archive"] .brand-mark i { background: #c9a75d; }
body[data-theme="archive"] .brand-mark i:nth-child(3) { background: transparent; border-color: #c9a75d; }
body[data-theme="archive"] .nav-item { font-family: var(--serif); font-size: 13px; text-transform: none; color: #bba896; }
body[data-theme="archive"] .nav-item.active::after { inset: auto 34px 0; height: 1px; background: #c9a75d; }
body[data-theme="archive"] .brief-strip { grid-template-columns: 1fr 150px 250px auto; margin: 0; padding-inline: 28px; background: #efe7d7; border-bottom: 1px solid #a99b83; }
body[data-theme="archive"] h1, body[data-theme="archive"] h2 { font-family: var(--serif); text-transform: none; }
body[data-theme="archive"] h1 { font-size: 34px; font-weight: 600; }
body[data-theme="archive"] .theme-switcher { border-color: #9b8e77; }
body[data-theme="archive"] .theme-button { font-family: var(--serif); font-size: 11px; text-transform: none; border: 1px solid #9b8e77; clip-path: none; transform: rotate(-.35deg); }
body[data-theme="archive"] .theme-button.active { background: #3d2a20; color: #f3e8d5; }
body[data-theme="archive"] .workspace { grid-template-columns: minmax(260px, .75fr) minmax(550px, 1.6fr) minmax(260px, .72fr); gap: 16px; padding: 18px; background: #6e4b32; background-image: repeating-linear-gradient(92deg, transparent 0 35px, rgba(0,0,0,.08) 36px, rgba(255,255,255,.025) 37px, transparent 40px); }
body[data-theme="archive"] .panel { border: 1px solid #998b74; border-radius: 3px; box-shadow: 0 5px 14px rgba(31,20,14,.28); }
body[data-theme="archive"] .panel-header { height: 74px; }
body[data-theme="archive"] .panel-header h2 { font-size: 19px; font-style: italic; }
body[data-theme="archive"] .prospect-card { grid-template-columns: .9fr 1.1fr; min-height: 510px; }
body[data-theme="archive"] .portrait-wrap { margin: 18px 0 18px 18px; min-height: 474px; border: 8px solid #f4eddf; outline: 1px solid #afa28c; transform: rotate(-.6deg); background: #b7ab96; }
body[data-theme="archive"] .portrait-wrap img { mix-blend-mode: multiply; filter: grayscale(1) sepia(.25) contrast(1.05); }
body[data-theme="archive"] .portrait-backdrop { background: linear-gradient(145deg, transparent 69%, rgba(184,71,47,.55) 69.2% 70%, transparent 70.2%); }
body[data-theme="archive"] .prospect-number { color: rgba(72,53,39,.12); font-family: var(--serif); font-style: italic; }
body[data-theme="archive"] .era-tag { color: #eee3d2; font-family: var(--mono); }
body[data-theme="archive"] .prospect-info { padding-top: 34px; background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(93,78,59,.09) 28px); }
body[data-theme="archive"] .prospect-info::before { width: 54px; height: 2px; background: var(--accent); }
body[data-theme="archive"] .prospect-info h3 { margin-top: 12px; font: 600 45px/.9 var(--serif); text-transform: none; }
body[data-theme="archive"] .prospect-summary { font: 12px/1.55 var(--serif); color: #5e5548; }
body[data-theme="archive"] .attribute-grid span, body[data-theme="archive"] .traits span, body[data-theme="archive"] .fit-callout strong { font-family: var(--serif); text-transform: none; font-size: 11px; }
body[data-theme="archive"] .attribute-grid i::after, body[data-theme="archive"] .biome-row b { background: var(--accent); }
body[data-theme="archive"] .fit-grade { color: #f7ecdc; background: var(--accent); border-radius: 50%; transform: rotate(-5deg); font-family: var(--serif); }
body[data-theme="archive"] .draft-button { background: #3d2a20; color: #f6ebdc; font-family: var(--serif); text-transform: none; font-size: 13px; clip-path: none; box-shadow: inset 0 0 0 1px #725241, inset 0 0 0 4px #3d2a20, inset 0 0 0 5px #725241; }
body[data-theme="archive"] .watch-button { font-family: var(--serif); text-transform: none; font-size: 12px; }
body[data-theme="archive"] .candidate-rail { background: #b7aa94; }
body[data-theme="archive"] .candidate { background: #ded4c2; }
body[data-theme="archive"] .candidate.active { box-shadow: inset 0 -3px var(--accent); }
body[data-theme="archive"] .roster-slot { grid-template-columns: 35px 1fr auto; }
body[data-theme="archive"] .roster-avatar { border-radius: 50%; filter: grayscale(1) sepia(.25); }
body[data-theme="archive"] .chemistry-summary { background: #d8cbb5; border-color: var(--accent); }
body[data-theme="archive"] .chemistry-summary::before { color: #766957; background: #d8cbb5; }
body[data-theme="archive"] .chemistry-dial { color: var(--accent); background: transparent; border: 3px double var(--accent); border-radius: 50%; clip-path: none; transform: rotate(-7deg); }
body[data-theme="archive"] .link-map { background-image: radial-gradient(#aaa08d .7px, transparent .7px); }
body[data-theme="archive"] .link-node { border-radius: 2px; }
body[data-theme="archive"] .scout-note { background: #f4ecd9; border: 0; transform: rotate(.5deg); box-shadow: 1px 2px 5px rgba(55,39,27,.14); }
body[data-theme="archive"] .scout-note p { color: #51473b; font-size: 12px; }
body[data-theme="archive"] .ticker { position: static; background: #3d2a20; color: #e9ddcc; border-color: #725241; }
body[data-theme="archive"] .ticker-label { background: #b8472f; color: #fff3e5; }
body[data-theme="archive"] .connection { color: #c9a75d; }

@media (max-width: 1100px) {
  .franchise-grid { grid-template-columns: repeat(3, 1fr); }
  .topbar { grid-template-columns: 190px 1fr 160px; }
  .nav-item { min-width: 80px; padding-inline: 12px; }
  .brief-strip, body[data-theme="broadcast"] .brief-strip, body[data-theme="archive"] .brief-strip { grid-template-columns: 1fr 130px auto; }
  .pick-status { display: none; }
  .workspace, body[data-theme="archive"] .workspace { grid-template-columns: 230px minmax(470px, 1fr); }
  .intel-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .intel-panel .panel-header { display: none; }
  .intel-block { border-right: 1px solid var(--line); }
  .scout-note { align-self: center; }
  body[data-theme="broadcast"] .workspace { grid-template-columns: 1fr; grid-template-areas: "stage" "roster" "intel"; }
  body[data-theme="broadcast"] .roster-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .playoffs-header { grid-template-columns: 44px 1fr; padding: 10px; }
  .playoff-status { grid-column: 1 / -1; min-width: 0; padding: 8px 0 0; border: 0; border-top: 1px solid #76543d; text-align: left; }
  .playoffs-layout { display: flex; flex-direction: column-reverse; }
  .playoff-command { position: static; height: auto; border-left: 0; border-bottom: 5px solid #c7a45d; }
  .playoff-champion-logo { width: 140px; margin-block: 12px; }
  .bracket-board { min-height: 530px; grid-template-columns: repeat(4, 190px); }
  .records-header { grid-template-columns: 44px 1fr; padding: 10px; }
  .records-season { grid-column: 1 / -1; min-width: 0; padding: 8px 0 0; border: 0; border-top: 1px solid #76543d; text-align: left; }
  .records-season strong { display: inline-block; margin-right: 8px; }
  .records-tabs { padding: 0; overflow-x: auto; }
  .records-tab { min-width: 125px; flex: 0 0 auto; }
  .records-workspace { margin: 0; min-height: calc(100svh - 188px); }
  .records-table-header { align-items: flex-end; gap: 12px; }
  .records-sort { grid-template-columns: 1fr; gap: 3px; }
  .records-sort select { width: 145px; }
  .records-table { min-width: 720px; }
  .record-book { grid-template-columns: 1fr 1fr; }
  .trophy-tier > div { grid-template-columns: 1fr; }
  .achievement { min-height: 130px; }
  .player-history-panel { width: 100%; }
  .history-list article { grid-template-columns: 58px 54px 1fr; padding-inline: 8px; }
  .history-list img { width: 50px; height: 50px; }
  .franchise-header { grid-template-columns: 44px 1fr; padding: 10px; }
  .conference-tabs { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .franchise-layout { display: flex; flex-direction: column-reverse; }
  .franchise-dossier { position: static; height: auto; padding: 22px; border-left: 0; border-bottom: 5px solid #c7a45d; }
  .selected-logo-stage { width: 155px; margin-bottom: 12px; }
  .franchise-dossier dl { display: grid; grid-template-columns: 1fr 1fr; }
  .franchise-dossier dl div { display: block; padding: 9px; }
  .franchise-dossier dl div:last-child { grid-column: 1 / -1; }
  .franchise-dossier dd { margin-top: 4px; text-align: left; }
  .franchise-grid { grid-template-columns: 1fr 1fr; }
  .franchise-choice { min-height: 220px; grid-template-rows: 135px auto auto auto; padding-inline: 12px; }
  .franchise-choice img { height: 130px; }
  .strategy-header { grid-template-columns: 44px 1fr; padding: 10px; }
  .strategy-opponent { grid-column: 1 / -1; min-width: 0; padding: 9px 0 0; border: 0; border-top: 1px solid #76543d; text-align: left; }
  .strategy-workspace { display: flex; flex-direction: column; padding: 6px; }
  .game-plan { order: 1; }.plan-analysis { order: 2; }.strategy-board { order: 3; }
  .formation-options { grid-template-columns: 1fr 1fr; }
  .plan-row { grid-template-columns: 1fr; }
  .plan-row fieldset { border-right: 0; border-bottom: 1px solid #aa987a; }
  .segment-control { grid-template-columns: repeat(3, 1fr); }
  .strategy-lineup { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
  :root { --header-height: 58px; }
  .topbar, body[data-theme="broadcast"] .topbar, body[data-theme="archive"] .topbar { grid-template-columns: 1fr auto; }
  .brand { padding-inline: 14px; border: 0; }
  .main-nav { position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; height: 48px; background: #0e1210; border-top: 1px solid #333; }
  .nav-item { flex: 1; min-width: 0; padding: 8px 0 0; color: #aeb8b2; font-size: 11px; }
  .nav-item::before { top: 3px; left: 50%; transform: translateX(-50%); font-size: 8px; }
  .season-status { padding-inline: 14px; }
  .brief-strip, body[data-theme="broadcast"] .brief-strip, body[data-theme="archive"] .brief-strip { grid-template-columns: 1fr auto; gap: 10px; padding: 14px; }
  .brief-strip > div:first-child { grid-column: 1; }
  .draft-clock { grid-column: 2; grid-row: 1; }
  .auto-draft-button { grid-column: 1 / -1; }
  .theme-switcher { display: none; }
  .mobile-viewbar { position: sticky; top: 0; z-index: 24; height: 52px; display: grid; grid-template-columns: repeat(3, 1fr) 48px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
  .mobile-view { padding: 5px 4px 0; background: transparent; color: var(--muted); font: 600 12px var(--sans); position: relative; }
  .mobile-view span { display: block; margin-bottom: 2px; font: 9px var(--mono); opacity: .8; }
  .mobile-view b { margin-left: 3px; color: var(--accent); font: 9px var(--mono); }
  .mobile-view.active { color: var(--text); }
  .mobile-view.active::after { content: ""; position: absolute; inset: auto 12px 0; height: 3px; background: var(--accent); }
  .mobile-menu-button { display: grid; place-content: center; gap: 3px; background: var(--accent); }
  .mobile-menu-button i { display: block; width: 16px; height: 1px; background: var(--bg); }
  .workspace, body[data-theme="broadcast"] .workspace, body[data-theme="archive"] .workspace { display: flex; flex-direction: column; padding: 0; gap: 1px; }
  .workspace > .panel { display: none; }
  body[data-mobile-view="prospect"] .prospect-stage { display: block; }
  body[data-mobile-view="roster"] .roster-panel { display: flex; }
  body[data-mobile-view="intel"] .intel-panel, body[data-theme="broadcast"][data-mobile-view="intel"] .intel-panel { display: block; }
  body[data-mobile-view="intel"] .intel-panel .panel-header { display: flex; }
  .prospect-card, body[data-theme="broadcast"] .prospect-card, body[data-theme="archive"] .prospect-card { grid-template-columns: 1fr; }
  .portrait-wrap, body[data-theme="broadcast"] .portrait-wrap, body[data-theme="archive"] .portrait-wrap { height: 340px; min-height: 340px; margin: 0; border-width: 0; outline: 0; transform: none; }
  .prospect-info { padding: 25px 20px 20px; }
  .prospect-info h3, body[data-theme="broadcast"] .prospect-info h3, body[data-theme="archive"] .prospect-info h3 { font-size: 43px; }
  .candidate-rail { margin-inline: 10px; }
  .candidate-table-head, .candidate-row { grid-template-columns: minmax(150px, 2fr) 65px 64px repeat(var(--stat-count), 74px); min-width: 760px; }
  .draft-board { margin-inline: 10px; }
  .draft-board-list > div { grid-template-columns: 30px 1fr 1.2fr 80px; }
  .roster-list, body[data-theme="broadcast"] .roster-list { display: grid; grid-template-columns: 1fr 1fr; }
  .ticker { display: none; }
  .app-shell { padding-bottom: 48px; }
  .mobile-scrim { position: fixed; inset: 0; z-index: 39; background: rgba(6,8,7,.68); backdrop-filter: blur(3px); }
  .mobile-scrim.open { display: block; }
  .mobile-drawer { position: fixed; z-index: 40; inset: 0 0 48px auto; width: min(88vw, 380px); padding-bottom: 24px; overflow-y: auto; display: block; color: var(--text); background: var(--surface); border-left: 1px solid var(--line); transform: translateX(101%); transition: transform .24s ease; box-shadow: -20px 0 50px rgba(0,0,0,.3); }
  .mobile-drawer.open { transform: translateX(0); }
  .mobile-drawer > header { height: 78px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .drawer-close { width: 44px; height: 44px; color: var(--text); background: transparent; border: 1px solid var(--line); font: 26px/1 var(--sans); }
  .drawer-status { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .drawer-status div { min-height: 68px; padding: 13px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .drawer-status div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .drawer-status span, .drawer-status strong { display: block; }
  .drawer-status span { color: var(--muted); font: 9px var(--mono); }
  .drawer-status strong { margin-top: 6px; font: 600 12px var(--sans); }
  .drawer-status .secure-status { color: var(--accent); font-family: var(--mono); font-size: 10px; }
  .drawer-section, .drawer-wire { padding: 20px 16px; border-bottom: 1px solid var(--line); }
  .mobile-concepts { display: grid; gap: 6px; margin-top: 10px; }
  .mobile-concept { min-height: 58px; display: grid; grid-template-columns: 32px 1fr; grid-template-rows: 1fr 1fr; align-items: end; padding: 9px 12px; text-align: left; color: var(--muted); background: var(--surface-2); border-left: 2px solid transparent; }
  .mobile-concept > span { grid-row: 1 / 3; align-self: center; font: 10px var(--mono); }
  .mobile-concept strong { color: var(--text); font: 600 13px var(--sans); }
  .mobile-concept small { align-self: start; font: 10px var(--mono); }
  .mobile-concept.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface-2)); }
  .drawer-wire p { display: grid; grid-template-columns: 1fr auto; margin: 0; padding: 11px 0; color: var(--muted); font-size: 12px; border-bottom: 1px dotted var(--line); }
  .drawer-wire b { color: var(--text); font-weight: 600; }
  .drawer-wire em { font: 9px var(--mono); color: var(--accent); }
  body[data-theme="archive"] .mobile-drawer { color: var(--text); background: var(--surface); }
  body[data-theme="broadcast"] .main-nav { background-color: #281810; background-image: repeating-linear-gradient(93deg, transparent 0 47px, rgba(255,255,255,.025) 49px, rgba(0,0,0,.14) 52px, transparent 57px); border-color: #76533b; }
  body[data-theme="broadcast"] .mobile-menu-button i { background: #f6dfaa; }
  body[data-theme="archive"] .mobile-viewbar { background: #3d2a20; color: #f3e8d5; }
  body[data-theme="archive"] .mobile-view.active { color: #f3e8d5; }
  body[data-theme="archive"] .mobile-menu-button { background: var(--accent); }
}

@media (prefers-reduced-motion: no-preference) {
  .panel { animation: panel-in .45s ease both; }
  .panel:nth-child(2) { animation-delay: .05s; }.panel:nth-child(3) { animation-delay: .1s; }
  @keyframes panel-in { from { opacity: 0; transform: translateY(7px); } }
}

@media (max-width: 760px) {
  .match-topbar { grid-template-columns: 44px 1fr; padding-inline: 10px; }
  .match-controls { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .score-ribbon { min-height: 92px; grid-template-columns: 1fr 118px 1fr; }
  .score-team { gap: 2px 7px; padding: 10px; }
  .score-team { grid-template-columns: 32px 1fr auto; }
  .score-team img { width: 31px; height: 31px; }
  .score-team span { font-size: 20px; }
  .score-team strong { font-size: 48px; }
  .score-team small { display: none; }
  .team-away { grid-template-columns: auto 1fr 32px; }
  .match-clock span { font-size: 6px; }
  .match-clock strong { font-size: 25px; }
  .match-clock small { max-width: 100px; font-size: 6px; }
  .match-workspace { display: block; padding: 6px; }
  .field-panel, .commentary-panel, .box-score-panel { margin-bottom: 7px; }
  .field-heading { align-items: flex-start; }
  .field-legend { display: grid; gap: 3px; }
  .field-frame { min-height: 360px; }
  #matchCanvas { height: 360px; }
  .zone-readout { width: 114px; }
  .force-bars { gap: 12px; padding-inline: 10px; }
  .commentary-panel { min-height: 0; }
  #commentaryFeed { max-height: 280px; }
  .box-score-header { align-items: flex-end; }
  .box-table { min-width: 660px; }
  .draft-pool-toolbar { grid-template-columns: 1fr; margin-inline: 10px; }
  .role-filters { overflow-x: auto; }
  .role-filter { min-width: 48px; flex: 0 0 auto; }
  .draft-pool-toolbar > span { display: none; }
  .menu-backdrop { object-position: 70% center; }
  .menu-patina { background: linear-gradient(180deg, rgba(20,11,7,.82), rgba(20,11,7,.94) 72%), repeating-linear-gradient(92deg, transparent 0 35px, rgba(197,161,91,.035) 36px, transparent 40px); }
  .menu-masthead { grid-template-columns: 48px 1fr; padding-inline: 13px; gap: 12px; }
  .menu-masthead > strong { display: none; }
  .menu-insignia { width: 40px; height: 40px; }
  .menu-content { width: 100%; justify-content: flex-end; padding: 92px 18px 78px; }
  .menu-content h1 { font-size: clamp(60px, 22vw, 86px); }
  .menu-content > p { font-size: 13px; }
  .menu-footer { padding-inline: 14px; }
  .menu-footer span:last-child { display: none; }
  .load-header { min-height: 88px; padding: 12px 16px; }
  .manual-save-button { padding-inline: 10px; }
  .save-workspace { min-height: calc(100svh - 88px); display: block; margin: 0; }
  .save-ledger-header { height: 52px; }
  .empty-saves { min-height: 53svh; padding: 28px 18px; }
  .save-list { max-height: 58svh; }
  .save-entry { grid-template-columns: 52px 1fr; padding: 11px; }
  .save-entry > img { width: 48px; height: 48px; }
  .save-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); }
  .load-actions { width: 100%; flex-direction: column; }
  .storage-note { min-height: 240px; padding: 30px 20px 80px; border-left: 0; border-top: 4px solid #c5a15b; }
  .intro-controls { align-items: flex-start; padding: 9px 10px; }
  .intro-controls > span { max-width: 120px; line-height: 1.4; }
  .intro-controls button { min-height: 44px; padding-inline: 10px; }
  .intro-crawl { width: 88vw; }
  .intro-crawl > h1 { font-size: 42px; }
  .intro-lead { font-size: 17px; }
  .intro-crawl section { margin-block: 75px; }
  .intro-crawl p { font-size: 14px; }
  .rule-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .crawl-viewport { overflow-y: auto; perspective: none; }
  .intro-crawl { padding: 110px 0 80px; animation: none; transform: none; }
  .intro-fade { display: none; }
}

@media (max-width: 1100px) {
  .season-workspace { grid-template-columns: minmax(300px, .75fr) minmax(420px, 1.25fr); }
  .season-side-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .season-side-panel section:first-child { border-right: 1px solid #a89374; }
  .season-side-panel .postseason-control { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .season-header { grid-template-columns: 44px 1fr; padding: 10px; }
  .season-record { grid-column: 1 / -1; min-width: 0; padding: 9px 0 0; border: 0; border-top: 1px solid #76543d; text-align: left; }
  .season-record strong { display: inline-block; margin-right: 8px; }
  .season-workspace { display: flex; flex-direction: column; padding: 6px; }
    .season-subnav { flex: 0 0 47px; }
    .season-view-button { flex: 1; min-width: 0; }
  .schedule-list { max-height: 42svh; }
  .game-detail-panel { min-height: 0; }
  .detail-scoreline { gap: 8px; }
  .detail-scoreline div { font-size: 18px; }
  .detail-scoreline strong { font-size: 28px; }
  .game-actions { grid-template-columns: 1fr; }
  .schedule-box { overflow-x: auto; }
  .schedule-box table { min-width: 510px; }
  .season-side-panel { display: block; }
  .season-side-panel section:first-child { border-right: 0; }
  .conference-standings { grid-template-columns: 1fr; }
  .standings-panel { width: 100%; }
}

@media (max-width: 760px) {
  .offseason-header { grid-template-columns: 44px 1fr; padding: 10px; }
  .offseason-status { grid-column: 1 / -1; min-width: 0; padding: 8px 0 0; border: 0; border-top: 1px solid #76543d; text-align: left; }
  .offseason-layout { display: flex; flex-direction: column-reverse; }
  .offseason-command { position: static; height: auto; border-left: 0; border-bottom: 5px solid #c7a45d; }
  .offseason-grid { grid-template-columns: 1fr 1fr; }
  .protection-card { min-height: 210px; grid-template-rows: 112px auto auto 1fr; padding-inline: 11px; }
  .protection-card img { height: 108px; }
}

.squad-screen { min-height: 100vh; padding: 28px; background: radial-gradient(circle at 48% 0%, rgba(117, 82, 39, .18), transparent 38%), linear-gradient(120deg, #120e0b, #21150f 50%, #0c1713); color: var(--paper); }
.squad-header { min-height: 82px; display: grid; grid-template-columns: 52px 1fr auto; gap: 20px; align-items: center; border-bottom: 1px solid rgba(202, 163, 82, .45); }
.squad-header h1 { margin: 2px 0 16px; font-family: "Barlow Condensed", sans-serif; font-size: 42px; text-transform: uppercase; letter-spacing: 0; }
.transaction-limit { min-width: 132px; padding: 10px 14px; border-left: 2px solid var(--brass); }
.transaction-limit span { display: block; font-size: 11px; text-transform: uppercase; color: #cbbf9f; }
.transaction-limit strong { font-family: "Barlow Condensed", sans-serif; font-size: 24px; color: #f3d688; }
.squad-layout { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.15fr) minmax(280px, .72fr); gap: 18px; max-width: 1560px; margin: 24px auto 0; align-items: start; }
.squad-roster-panel, .free-agent-panel { min-height: 650px; background: #e6dbc0; color: #201912; border: 1px solid #b99a61; box-shadow: 0 18px 50px #0008; }
.squad-roster-panel > header, .free-agent-panel > header { display: flex; align-items: end; justify-content: space-between; gap: 16px; min-height: 84px; padding: 16px 18px; border-bottom: 3px double #6d5532; background: linear-gradient(#f0e5ca, #d7c8a8); }
.squad-roster-panel h2, .free-agent-panel h2, .transaction-desk h2 { margin: 2px 0 0; font: 700 28px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.free-agent-panel input { width: 150px; min-height: 44px; border: 1px solid #76603d; border-radius: 0; background: #fff9e8; padding: 0 12px; color: #201912; }
.squad-player-list, .free-agent-list { display: grid; gap: 1px; max-height: 650px; overflow: auto; background: #aa956e; }
.squad-management-player { position: relative; min-height: 70px; display: grid; grid-template-columns: 36px 80px 1fr 64px; grid-template-rows: auto auto; align-items: center; gap: 2px 10px; padding: 9px 12px; border: 0; border-left: 5px solid transparent; border-radius: 0; background: #ece2c8; color: #231c15; text-align: left; cursor: pointer; }
.squad-management-player:hover { background: #f8efd9; }
.squad-management-player.selected { border-left-color: #7d1f24; background: #fff5d8; box-shadow: inset 0 0 0 2px #b3832f; }
.squad-management-player img { grid-row: 1 / 3; width: 34px; height: 34px; object-fit: contain; filter: sepia(1) brightness(.55); }
.squad-management-player > span { font-size: 10px; color: #6a5238; text-transform: uppercase; }
.squad-management-player > strong { grid-column: 3; font: 700 17px/1.1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.squad-management-player > small { grid-column: 2 / 4; font-size: 10px; color: #5b4a38; }
.squad-management-player > b { grid-column: 4; grid-row: 1 / 3; font: 700 27px "Barlow Condensed", sans-serif; text-align: right; color: #672127; }
.squad-management-player.free-agent { grid-template-columns: 86px 1fr 62px; }
.squad-management-player.free-agent > strong { grid-column: 2; }
.squad-management-player.free-agent > small { grid-column: 1 / 3; }
.squad-management-player.free-agent > b { grid-column: 3; }
.transaction-desk { position: sticky; top: 20px; padding: 24px; border: 1px solid #a88035; background: linear-gradient(135deg, #4d1218, #280c0f); color: #f0e3c8; box-shadow: inset 0 0 0 5px #1b090a, 0 18px 50px #000a; }
.transaction-desk h2 { margin: 5px 0 20px; color: #f3d688; }
.transaction-swap { display: grid; gap: 10px; }
.transaction-swap section { min-height: 88px; padding: 13px; border: 1px solid #936c34; background: #180d0bbb; }
.transaction-swap section span, .transaction-swap section small { display: block; color: #c6ae83; font-size: 10px; text-transform: uppercase; }
.transaction-swap section strong { display: block; margin: 8px 0; font: 700 19px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.transaction-swap > i { height: 20px; color: #d7b65b; font-style: normal; font-size: 22px; line-height: 20px; text-align: center; }
.transaction-desk > button { width: 100%; min-height: 50px; margin-top: 20px; border: 1px solid #f0d47e; background: #bd9338; color: #180c08; font-weight: 800; text-transform: uppercase; }
.transaction-desk > button:disabled { border-color: #766348; background: #4c4031; color: #a8997d; cursor: not-allowed; }
.transaction-history { margin-top: 25px; padding-top: 18px; border-top: 1px solid #735930; }
.transaction-history h3 { margin: 0 0 12px; font: 700 16px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.transaction-history p { margin: 0; padding: 9px 0; border-bottom: 1px dotted #735930; font-size: 11px; }
.transaction-history p b, .transaction-history p span { display: block; }
.transaction-history p span { margin-top: 4px; color: #bfad8b; }

@media (max-width: 1100px) {
  .squad-layout { grid-template-columns: 1fr 1fr; }
  .transaction-desk { position: static; grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .squad-screen { padding: 16px; }
  .squad-header { grid-template-columns: 46px 1fr; }
  .squad-header h1 { font-size: 31px; }
  .transaction-limit { grid-column: 2; margin-top: -16px; margin-bottom: 10px; }
  .squad-layout { grid-template-columns: 1fr; }
  .squad-roster-panel, .free-agent-panel { min-height: 0; }
  .squad-player-list, .free-agent-list { max-height: 520px; }
  .transaction-desk { grid-column: auto; }
  .squad-management-player { grid-template-columns: 30px 68px 1fr 48px; }
}

@media (min-width: 761px) {
  body[data-theme="broadcast"] .prospect-card { min-height: 300px; }
  body[data-theme="broadcast"] .portrait-wrap { min-height: 300px; height: 300px; }
  body[data-theme="broadcast"] .prospect-info { padding: 16px 22px 14px; }
  body[data-theme="broadcast"] .prospect-info h3 { margin: 8px 0 10px; font-size: 38px; }
  body[data-theme="broadcast"] .prospect-summary { font-size: 11px; line-height: 1.35; }
  body[data-theme="broadcast"] .attribute-grid { gap: 9px 16px; padding: 11px 0; margin: 10px 0; }
  body[data-theme="broadcast"] .fit-callout { margin: 10px 0; }
}

/* Final draft-room sizing overrides. */
body[data-theme="broadcast"] .prospect-card { grid-template-columns: minmax(250px, .72fr) minmax(0, 1fr); }
body[data-theme="broadcast"] .portrait-wrap { min-height: 300px; height: 300px; aspect-ratio: 1 / 1; }
body[data-theme="broadcast"] .portrait-wrap img { object-fit: cover; object-position: center 20%; }
.candidate-rail { --stat-count: 8; overflow: auto; }
.candidate-table-head, .candidate-row { grid-template-columns: minmax(190px, 2fr) 82px 64px repeat(var(--stat-count), 74px); }
.candidate-row { width: max-content; min-width: 100%; }
.renewal-detail { display: none; }

/* Phone layout for franchise select and the inaugural draft. Desktop is unaffected. */
@media (max-width: 760px) {
  .team-count-label { display: none; }
  .franchise-layout { display: block; min-height: 0; padding-bottom: 92px; }
  .franchise-grid { grid-template-columns: repeat(3, 1fr); }
  .franchise-choice { min-height: 0; grid-template-rows: 78px auto auto auto; padding: 0 8px 10px; }
  .franchise-choice img { height: 74px; padding: 8px; }
  .franchise-choice strong { font-size: 14px; }
  .franchise-choice small { font-size: 8px; }
  .franchise-dossier { position: fixed; z-index: 20; inset: auto 0 0; height: auto; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 2px 12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border: 0; border-top: 3px solid #c7a45d; box-shadow: 0 -10px 24px rgba(0,0,0,.4); }
  .franchise-dossier .selected-logo-stage { grid-row: 1 / 3; width: 52px; height: 52px; margin: 0; }
  .franchise-dossier .menu-kicker { grid-column: 2; grid-row: 1; font-size: 9px; }
  .franchise-dossier h2 { grid-column: 2; grid-row: 2; margin: 0; font-size: 20px; line-height: 1; }
  .franchise-dossier dl { display: none; }
  .confirm-franchise { grid-column: 3; grid-row: 1 / 3; width: auto; min-height: 48px; margin: 0; gap: 10px; padding: 0 14px; font-size: 13px; }

  body[data-theme] .app-shell .topbar { height: 56px; grid-template-columns: 1fr; }
  body[data-theme] .app-shell .season-status { display: none; }
  .app-shell .main-nav .nav-current { flex: 1; min-width: 0; height: 48px; padding: 0; font-size: 12px; border-bottom: 0; border-top: 2px solid transparent; }
  .app-shell .main-nav .nav-current.active { border-top-color: var(--brass); }
  body[data-theme] .app-shell .brief-strip { min-height: 0; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 10px 12px; }
  .app-shell .brief-strip > div:first-child { display: none; }
  .app-shell .brief-strip .pick-status { display: block; grid-column: 1; grid-row: 1; padding-left: 0; border: 0; }
  .app-shell .brief-strip .pick-status strong { margin-top: 2px; font-size: 14px; }
  .app-shell .brief-strip .draft-clock { grid-column: 2; grid-row: 1; padding-left: 12px; text-align: right; }
  .app-shell .brief-strip .draft-clock strong { font-size: 20px; }
  .app-shell .brief-strip .auto-draft-button { grid-column: 1 / -1; grid-row: 2; min-height: 38px; }

  body[data-theme] .app-shell .workspace { display: flex; flex-direction: column; gap: 10px; padding: 10px 8px; }
  body[data-theme] .app-shell .workspace > .prospect-stage { display: block; order: 1; }
  body[data-theme] .app-shell .workspace > .roster-panel { display: flex; order: 2; }
  body[data-theme] .app-shell .workspace > .intel-panel { display: none; }
  .app-shell .stage-header { height: 46px; padding: 0 12px; }
  .app-shell .stage-header h2 { font-size: 15px; }

  body[data-theme] .app-shell .prospect-card { min-height: 0; grid-template-columns: 104px minmax(0, 1fr); }
  body[data-theme] .app-shell .portrait-wrap { height: auto; min-height: 150px; aspect-ratio: auto; margin: 0; border: 0; outline: 0; transform: none; }
  .app-shell .portrait-wrap .era-tag { display: none; }
  body[data-theme] .app-shell .prospect-info { padding: 12px 12px 12px 14px; }
  .app-shell .prospect-info::before { left: 14px; }
  body[data-theme] .app-shell .prospect-info h3 { margin: 6px 0 4px; font-size: 26px; line-height: .9; }
  .app-shell .prospect-summary, .app-shell .traits, .app-shell .fit-callout { display: none; }
  body[data-theme] .app-shell .attribute-grid { gap: 7px 12px; padding: 8px 0; margin: 8px 0 10px; }
  .app-shell .attribute-grid span { font-size: 9px; }
  .app-shell .draft-actions { grid-template-columns: 44px 1fr; }
  .app-shell .watch-button { font-size: 0; }
  .app-shell .watch-button span { font-size: 16px; }
  .app-shell .draft-button { min-height: 44px; padding: 0 12px; font-size: 12px; }

  .app-shell .draft-pool-toolbar { grid-template-columns: 1fr; margin: 10px 10px 8px; }
  .app-shell .draft-pool-toolbar > span { display: none; }
  .app-shell .candidate-rail { max-height: 58svh; margin: 0 10px; }
  .app-shell .candidate-table-head, .app-shell .candidate-row { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr) 84px 40px; gap: 8px; }
  .app-shell .candidate-table-head > span:nth-child(n+4), .app-shell .candidate-row > span:nth-child(n+4) { display: none; }
  .app-shell .candidate-row { min-height: 50px; }
  .app-shell .candidate-row > span:nth-child(2) { font-size: 9px; text-align: left; }
  .app-shell .draft-board { margin: 10px 10px 0; }
  .app-shell .draft-board header { flex-wrap: wrap; }
  .app-shell .draft-board-list > div { grid-template-columns: 28px 1fr; gap: 2px 8px; padding: 6px 12px; }
  .app-shell .draft-board-list > div b { grid-column: 2; }
  .app-shell .draft-board-list > div small { grid-column: 2; }

  .app-shell .roster-list { grid-template-columns: 1fr 1fr; column-gap: 8px; padding: 6px 10px; }
  .app-shell .roster-slot { min-height: 46px; grid-template-columns: 30px 1fr auto; gap: 6px; }
  .app-shell .roster-avatar { width: 30px; height: 30px; }
  .app-shell .chemistry-summary { margin: 8px 10px 10px; padding: 12px; }

  .season-workspace .season-subnav { flex: 0 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; min-height: 0; padding: 0; background: #52695f; }
  .season-workspace .season-view-button { min-width: 0; min-height: 46px; padding: 6px 4px; color: #efe3cc; background: #1f342b; font-size: 11px; line-height: 1.15; letter-spacing: .02em; text-align: center; white-space: normal; clip-path: none; }
  .season-workspace .season-view-button.active { color: #25180f; background: #c7a45d; clip-path: none; }

  .match-topbar .match-controls { grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
  .match-topbar .speed-console { min-width: 0; }
  .match-topbar .resolve-control { grid-column: 1 / -1; width: 100%; min-width: 0; height: 46px; justify-content: center; grid-template-columns: auto auto; clip-path: none; }

  .awards-layout .awards-command, .progression-layout .progression-command { order: -1; min-height: 0; }

  .renewal-row small { display: none; }
  .renewal-row, .renewal-head { min-width: 0; grid-template-columns: minmax(0, 1fr) 76px 38px 38px; gap: 6px; padding: 0 10px; }
  .renewal-head > span { display: none; }
  .renewal-row > span:nth-child(2) { font-size: 9px; text-align: left; }
  .renewal-detail { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px 12px; padding: 12px; color: #f2e6d0; background: #203a30; border-bottom: 3px solid #c7a45d; }
  .renewal-detail img { width: 64px; height: 80px; object-fit: cover; filter: grayscale(.6) sepia(.2); }
  .renewal-detail span { display: block; color: #efd28f; font: 9px var(--mono); text-transform: uppercase; }
  .renewal-detail strong { display: block; margin: 3px 0; font: 700 19px var(--condensed); text-transform: uppercase; }
  .renewal-detail small { display: block; color: #cbbda4; font: 9px var(--mono); }
  .renewal-detail dl { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 8px 0 0; }
  .renewal-detail dl div { display: flex; justify-content: space-between; border-bottom: 1px dotted #52695f; }
  .renewal-detail dt { color: #cbbda4; font: 9px var(--mono); text-transform: uppercase; }
  .renewal-detail dd { margin: 0; font: 700 11px var(--mono); }
  .renewal-detail button { grid-column: 1 / -1; min-height: 46px; display: flex; justify-content: space-between; align-items: center; padding: 0 14px; color: #25180f; background: #c7a45d; font-weight: 800; text-transform: uppercase; }
  .renewal-detail button:disabled { opacity: .45; }
}
