@font-face { font-family: "EndZone"; src: url("/fonts/endzone.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "EndZone"; font-style: italic; src: url("/fonts/endzone-italic.otf") format("opentype"); font-display: swap; }

/* Night game under the northern lights. Square blocks, no slants. Spacing runs on one scale. */
:root {
  --night: #030b0f;
  --glass: rgba(9, 30, 38, .86);
  --glass-2: rgba(16, 48, 59, .9);
  --field: rgba(2, 12, 16, .9);
  --line: rgba(105, 189, 199, .22);
  --deep: #0e4752;
  --teal: #158fa3;
  --ice: #69bdc7;
  --frost: #dddedf;
  --aurora: #2bb66f;
  --aurora-hi: #5fe3a0;
  --gold: #e9b949;
  --loss: #e0705f;
  --text: #e8eff1;
  --dim: #8fb0b8;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --cond: "Hanken Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --s1: 6px; --s2: 10px; --s3: 14px; --s4: 20px; --s5: 28px; --s6: 40px;
  --tap: 50px;
  --r: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--night); color: var(--text); font: 500 16px/1.45 var(--body); }
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--ice); text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1 { font: 800 44px/.95 var(--display); text-transform: uppercase; text-shadow: 3px 3px 0 var(--deep); }
h2 { width: fit-content; margin-bottom: var(--s3); padding: 7px 12px 6px; background: var(--teal); color: #fff; border-radius: var(--r);
  font: 800 14px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; }
small { display: block; margin-top: 2px; color: var(--dim); font-size: 13px; font-weight: 500; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--aurora-hi); outline-offset: 2px; }

/* sky */
#sky { position: fixed; inset: 0 0 auto 0; width: 100%; height: 82vh; z-index: -4; filter: blur(9px) saturate(1.3); opacity: .85; pointer-events: none; transform: scale(1.12); }
body::before { content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none; background: linear-gradient(180deg, rgba(3, 11, 15, .1) 0%, rgba(3, 11, 15, .5) 45%, var(--night) 80%); }
body::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 46vh; z-index: -3; pointer-events: none; background: linear-gradient(180deg, #06181f, var(--night) 60%);
  clip-path: polygon(0 38%, 7% 26%, 13% 34%, 21% 12%, 28% 30%, 34% 22%, 41% 36%, 49% 8%, 56% 28%, 63% 18%, 70% 34%, 78% 14%, 85% 30%, 92% 20%, 100% 32%, 100% 100%, 0 100%); }
#snow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
#snow i { position: absolute; top: -12px; border-radius: 50%; background: #fff; animation: fall linear infinite; }
@keyframes fall { to { transform: translate(var(--drift), 106vh); } }

/* frame */
#top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: calc(var(--s2) + env(safe-area-inset-top)) var(--s4) var(--s2); background: rgba(3, 11, 15, .84); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.brand-fox { height: 40px; }
.brand-word { height: 22px; min-width: 0; object-fit: contain; object-position: left; }
#sound-btn { flex: none; padding: 9px 14px 8px; background: var(--deep); color: #fff; border-radius: var(--r); font: 800 13px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; }
#sound-btn.live { background: var(--aurora); color: #03130b; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .7; } }
#main { max-width: 640px; margin: 0 auto; padding: var(--s5) var(--s4) calc(120px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: var(--s6); }
#main > section, #main > form { display: flex; flex-direction: column; }
#nav { position: fixed; left: var(--s3); right: var(--s3); bottom: calc(var(--s3) + env(safe-area-inset-bottom)); z-index: 20; display: flex; gap: 4px; max-width: 600px; margin: 0 auto; padding: 5px;
  background: rgba(6, 24, 31, .94); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 8px; }
#nav a { flex: 1; display: grid; place-items: center; height: 46px; border-radius: var(--r); color: var(--dim); font: 800 12.5px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; transition: color .2s, background .2s; }
#nav a.on { background: var(--aurora); color: #03130b; animation: tab .3s cubic-bezier(.2, 1.4, .3, 1); }
@keyframes tab { from { transform: scale(.85); } }
.signed-out #nav, .signed-out #top { display: none; }

/* pages ease in once per visit to a screen */
#main.fresh > * { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
#main.fresh > *:nth-child(2) { animation-delay: .06s; }
#main.fresh > *:nth-child(3) { animation-delay: .12s; }
#main.fresh > *:nth-child(n + 4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.back { width: 100%; margin-bottom: var(--s1); font: 700 13px/1 var(--cond); letter-spacing: .01em; }
.back::before { content: "‹ "; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s3); }
.sec-head h2 { margin: 0; }
.muted { color: var(--dim); font-size: 14px; }
.center { text-align: center; }
.empty { color: var(--dim); text-align: center; padding: var(--s4) var(--s3); font-size: 15px; }
.gold { color: var(--gold); letter-spacing: 1px; }
.row { display: flex; align-items: center; gap: var(--s2); }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
section > .list + form, section > form + .list, section > .list + .list { margin-top: var(--s3); }
section > .muted { margin: var(--s3) 0 0; }
section > h2 + .muted { margin: 0 0 var(--s3); }

/* home */
.hero { position: relative; display: grid; gap: var(--s4); padding-top: var(--s2); }
.hero-fox { position: absolute; right: -70px; top: 0; height: 290px; z-index: 0; pointer-events: none; animation: prowl 7s ease-in-out infinite;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .7)) drop-shadow(0 0 30px rgba(21, 143, 163, .45)); }
@keyframes prowl { 50% { transform: translate(-8px, 10px) rotate(-2deg); } }
.record { position: relative; z-index: 1; display: flex; align-items: center; margin-left: -6px; font: 800 clamp(128px, 46vw, 230px)/.82 var(--display); letter-spacing: -.03em; color: #fff;
  text-shadow: 5px 5px 0 var(--deep), 10px 10px 0 rgba(21, 143, 163, .4), 0 0 60px rgba(43, 182, 111, .35); }
.record b { font-weight: 400; animation: slam .6s cubic-bezier(.2, 1.5, .3, 1) both; }
.record b:last-child { animation-delay: .12s; color: var(--ice); }
.record i { width: .18em; height: .09em; margin: 0 .06em; background: var(--aurora); box-shadow: 0 0 20px var(--aurora); }
@keyframes slam { from { transform: scale(2.4) translateY(-20px); opacity: 0; } }
.hero-facts { position: relative; z-index: 1; display: flex; gap: var(--s5); margin-top: var(--s2); }
.hero-facts dt { font: 700 11px/1 var(--cond); letter-spacing: .01em; color: var(--ice); margin-bottom: 4px; }
.hero-facts dd { font: 800 30px/1 var(--display); }
.marks { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.spark { width: 16px; height: 16px; fill: var(--gold); flex: none; vertical-align: -2px; }
.sparks { display: inline-flex; gap: 1px; margin-left: 4px; vertical-align: -2px; }
.mark { width: 26px; height: 26px; animation: pop .45s cubic-bezier(.2, 1.8, .4, 1) both; }
.mark:nth-child(2) { animation-delay: .06s; } .mark:nth-child(3) { animation-delay: .12s; } .mark:nth-child(4) { animation-delay: .18s; } .mark:nth-child(n + 5) { animation-delay: .24s; }
.mark.w { fill: var(--aurora-hi); filter: drop-shadow(0 0 6px rgba(95, 227, 160, .7)); }
.mark.l { fill: none; stroke: var(--loss); stroke-width: 1.5; }
i.mark { width: 8px; height: 8px; margin: 0 9px; background: var(--line); border-radius: 50%; }
@keyframes pop { from { transform: scale(0) rotate(-60deg); } }
.next-opp { font: 800 clamp(34px, 11vw, 56px)/.95 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.next-opp.long { font-size: clamp(24px, 7.4vw, 44px); }
.next-opp em, .game em, .sheet-body h2 em { font: 700 .42em/1 var(--cond); font-style: normal; letter-spacing: .01em; color: var(--dim); vertical-align: middle; margin-right: 4px; }
.game em { font-size: 12px; }

/* blocks */
.card, .panel { background: var(--glass); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--r); padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.card h2, .panel h2 { margin: 0 0 2px; }
.next, .finish { border-left-color: var(--aurora); }
.list { display: flex; flex-direction: column; gap: var(--s1); }
.game, .line, .player, .prospect, .off, .alert { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); }
.game { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 64px; padding: var(--s3) var(--s4) var(--s3) var(--s3); text-align: left; border-left: 5px solid var(--line); transition: transform .15s; }
.game.W { border-left-color: var(--aurora); background: linear-gradient(90deg, rgba(43, 182, 111, .2), var(--glass) 55%); }
.game.L { border-left-color: var(--loss); background: linear-gradient(90deg, rgba(224, 112, 95, .16), var(--glass) 55%); }
.game:active, .player a:active, a.line:active { transform: translateX(5px); }
.wk { font: 700 13px/1 var(--cond); letter-spacing: .01em; color: var(--dim); width: 30px; flex: none; }
.who { flex: 1; min-width: 0; font-weight: 600; }
.score { font: 800 23px/1 var(--display); white-space: nowrap; }
.score b { font-weight: 400; margin-right: 5px; }
.game.W .score b { color: var(--aurora-hi); }
.game.L .score b { color: var(--loss); }
.enter { padding: 9px 13px; border-radius: var(--r); background: var(--aurora); color: #03130b; font: 700 13px/1 var(--cond); letter-spacing: .01em; white-space: nowrap; }
.rk { color: var(--gold); font-weight: 700; }
.tag { display: inline-block; margin-left: 6px; padding: 3px 6px; border-radius: 3px; background: var(--glass-2); color: var(--ice); font: 700 11px/1 var(--cond); font-style: normal; letter-spacing: .01em; vertical-align: 2px; }
.tag.rival { background: rgba(224, 112, 95, .2); color: #f3a092; }
.line { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 58px; padding: var(--s3) var(--s4); }
.line .val { font: 800 21px/1 var(--display); white-space: nowrap; color: #fff; }
.line .x { margin-right: -10px; }
.alert { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border-left: 4px solid var(--ice); margin-bottom: var(--s1); }
.alert.warn { border-left-color: var(--gold); }
.log { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--dim); }
.log li { padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.log b { color: var(--text); }
.log time { float: right; font-size: 12px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: var(--s1); }
.stats div { padding: var(--s3) var(--s1); background: var(--glass); border: 1px solid var(--line); border-bottom: 3px solid var(--teal); border-radius: var(--r); text-align: center; }
.stats b { display: block; font: 800 28px/1 var(--display); color: #fff; }
.stats span { display: block; margin-top: 6px; font: 700 11px/1.2 var(--cond); letter-spacing: .01em; color: var(--dim); }
.stats.tight { grid-template-columns: repeat(auto-fit, minmax(52px, 1fr)); }
.stats.tight b { font-size: 22px; }
.stats.tight div { background: var(--field); padding: var(--s2) 2px; }

/* controls */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  width: 100%; min-height: var(--tap); padding: 12px 14px; background: var(--field); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--aurora); box-shadow: 0 0 0 3px rgba(43, 182, 111, .25); }
input[type="file"] { font-size: 14px; color: var(--dim); }
textarea { resize: vertical; font-size: 15px; }
select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--ice) 50%), linear-gradient(135deg, var(--ice) 50%, transparent 50%);
  background-position: calc(100% - 19px) 22px, calc(100% - 14px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
input::placeholder, textarea::placeholder { color: #5f8189; }
.field { display: flex; flex-direction: column; gap: var(--s1); }
.field > span { font: 700 12px/1 var(--cond); letter-spacing: .01em; color: var(--dim); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.grid3 { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: var(--s2); }
.picker { width: auto !important; min-height: 42px !important; padding-top: 8px !important; padding-bottom: 8px !important; font-weight: 600; background-position: calc(100% - 19px) 18px, calc(100% - 14px) 18px !important; }
.inline { display: flex; gap: var(--s2); }
.inline input { flex: 1; min-width: 0; width: auto !important; }

.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 0 var(--s4); border: 0; border-radius: var(--r);
  background: #1c4755; color: var(--text); font: 700 15px/1 var(--cond); letter-spacing: .01em; white-space: nowrap; transition: transform .12s; }
.btn:active { transform: scale(.96); }
.btn.primary { background: linear-gradient(100deg, #1f9659, var(--aurora) 45%, var(--aurora-hi)); color: #03130b; }
.btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn.small { min-height: 38px; padding: 0 var(--s3); font-size: 13px; }
.btn.wide { width: 100%; }
.btn.danger { background: rgba(224, 112, 95, .16); color: var(--loss); }
.btn.on { background: var(--aurora); color: #03130b; }
.btn.file { cursor: pointer; }
.btn.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.link { background: none; border: 0; padding: var(--s2) 0; color: var(--ice); font-size: 14px; text-align: center; }
.link.danger { color: var(--loss); }
.x { background: none; border: 0; color: var(--dim); width: 40px; height: 40px; font-size: 14px; flex: none; }

.seg { display: flex; gap: var(--s1); }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span, .seg.mini button { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 4px; border: 1px solid var(--line); border-radius: var(--r); background: var(--field);
  font: 700 14px/1 var(--cond); letter-spacing: .01em; color: var(--dim); cursor: pointer; text-align: center; transition: background .15s, color .15s; }
.seg input:checked + span, .seg.mini button.on { background: var(--aurora); border-color: var(--aurora); color: #03130b; }
.seg input:focus-visible + span { outline: 2px solid var(--aurora-hi); outline-offset: 2px; }
.seg.mini button { flex: 1; min-height: 40px; font-size: 13px; }
.depart .seg { flex-wrap: wrap; }
.depart .seg label { flex: 1 1 22%; }
.check { display: flex; align-items: center; gap: var(--s2); min-height: var(--tap); cursor: pointer; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--aurora); flex: none; }
details summary { color: var(--ice); cursor: pointer; padding: var(--s2) 0; font-size: 14px; }
details[open] { display: flex; flex-direction: column; gap: var(--s3); }

.add { gap: var(--s3); }
.add-top { display: flex; gap: var(--s2); }
.add-top input:not(.wk-in) { flex: 1; min-width: 0; width: auto !important; }
.add-top .wk-in { width: 66px !important; text-align: center; flex: none; padding-left: 4px !important; padding-right: 4px !important; }
.add-top select { width: 112px !important; flex: none; }
.add-row { display: flex; gap: var(--s3); align-items: center; }
.add-row > * { flex: 1; }
.add-row > input, .add-row > select { width: auto !important; min-width: 0; }
.add-row .check { flex: none; }
form:has(input[name="type"][value="regular"]:checked) .post-label { display: none; }
form:has(input[name="type"]:checked):not(:has(input[name="type"][value="regular"]:checked)) .reg-only { display: none; }
form:has(select[name="kind"] option:not([value="player"]):checked) .award-player { display: none; }
.if-pro, .if-transfer { display: none; }
.depart:has(input[value="pro"]:checked) .if-pro, .depart:has(input[value="transferred"]:checked) .if-transfer { display: flex; flex-direction: column; gap: var(--s2); }

.scoreline { display: flex; gap: var(--s2); align-items: flex-end; }
.scoreline label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--s1); }
.scoreline label span { font: 700 12px/1 var(--cond); letter-spacing: .01em; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scoreline input { font: 800 30px/1 var(--display) !important; text-align: center; min-height: 62px !important; padding: 4px !important; }
.scoreline .btn { min-height: 62px; }
.scoreline.tall input { min-height: 80px !important; font-size: 42px !important; }

/* protected numbers: just the numbers. Dim outline while open, lit once earned. */
.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: var(--s2); }
.num { display: grid; justify-items: center; gap: var(--s2); padding: var(--s4) var(--s1) var(--s3); background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); text-align: center; color: var(--dim); transition: transform .15s; }
.num:active { transform: scale(.96); }
.num b { font: 800 clamp(54px, 17vw, 76px)/.9 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(105, 189, 199, .45); }
.num span { font: 700 12px/1.2 var(--cond); letter-spacing: .01em; }
.num.held { border-color: var(--aurora); background: linear-gradient(180deg, rgba(14, 71, 82, .95), rgba(8, 36, 44, .95)); color: var(--text); }
.num.held b, .big-no, .sacred-n { -webkit-text-stroke: 0; color: transparent !important; text-shadow: none !important;
  background: linear-gradient(110deg, #5fe3a0, #69bdc7 30%, #ffffff 50%, #2bb66f 70%, #5fe3a0) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; animation: aurora-text 5s linear infinite; }
@keyframes aurora-text { to { background-position: 300% 0; } }
.lineage-head { display: grid; justify-items: center; gap: var(--s2); text-align: center; }
.big-no { font: 800 clamp(170px, 58vw, 300px)/.85 var(--display); padding-right: .08em; }

/* roster */
.row.gap .search { flex: 1; width: auto !important; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--s4) * -1); padding: 0 var(--s4) 4px; scrollbar-width: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--r); background: var(--field); color: var(--dim);
  font: 700 13px/1 var(--cond); letter-spacing: .01em; white-space: nowrap; transition: background .15s, color .15s; }
.chip.on { background: var(--aurora); border-color: var(--aurora); color: #03130b; }
.chip .x { width: 26px; height: 26px; margin-right: -8px; color: inherit; }
.player { display: flex; align-items: stretch; }
.player a { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--s3); min-height: 64px; padding: var(--s2) var(--s2) var(--s2) var(--s3); color: var(--text); transition: transform .15s; }
.player.gone { opacity: .5; }
.no { font: 800 28px/1 var(--display); width: 46px; text-align: center; flex: none; color: var(--frost); }
.ovr { font: 800 20px/1 var(--display); color: var(--ice); }
.star-btn { width: 56px; background: none; border: 0; border-left: 1px solid var(--line); display: grid; place-items: center; }
.star-btn .spark { width: 24px; height: 24px; fill: none; stroke: #3d6474; stroke-width: 1.5; transition: transform .2s; }
.star-btn.on .spark { fill: var(--gold); stroke: var(--gold); filter: drop-shadow(0 0 8px rgba(233, 185, 73, .7)); animation: pop .4s cubic-bezier(.2, 2, .4, 1); }

/* player card */
.pcard { position: relative; overflow: hidden; min-height: 230px; padding: var(--s4); display: flex; align-items: flex-end; border: 1px solid var(--line); border-left: 6px solid var(--teal); border-radius: var(--r);
  background: linear-gradient(155deg, #17414e, #071c23 75%); }
.pcard.star { border-left-color: var(--gold); background: linear-gradient(155deg, #4a4420, #071c23 70%); }
.pcard.legend { border-left-color: var(--aurora); background: linear-gradient(155deg, #0f6b4a, #071c23 70%); }
.pcard.star::before, .pcard.legend::before, .trophy.ours::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(104deg, transparent 40%, rgba(255, 255, 255, .2) 50%, transparent 60%) 0 0 / 300% 100%; animation: sweep 4.5s ease-in-out infinite; }
@keyframes sweep { 0%, 55% { background-position: 130% 0; } 100% { background-position: -60% 0; } }
.pcard-fox { position: absolute; right: -30px; bottom: -40px; height: 240px; opacity: .1; animation: prowl 8s ease-in-out infinite; }
.pcard-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.pcard-no { position: absolute; right: var(--s3); top: -10px; font: 800 160px/1 var(--display); color: transparent; -webkit-text-stroke: 2px rgba(221, 222, 223, .28); padding-right: .08em; }
.pcard-info { position: relative; z-index: 2; display: flex; flex-direction: column; gap: var(--s1); }
.pcard h1 { font-size: clamp(34px, 10vw, 54px); }
.pcard-tier { font: 700 13px/1 var(--cond); letter-spacing: .01em; color: var(--gold); }
.pcard.legend .pcard-tier { color: var(--aurora-hi); }
.pcard .left { color: #f3a092; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: calc(var(--s4) * -1); }
.actions .btn { flex: 1 1 auto; }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { font: 700 12px/1 var(--cond); letter-spacing: .01em; color: var(--dim); text-align: left; padding: var(--s2) var(--s3); }
.table td { padding: var(--s3); border-top: 1px solid var(--line); }
.table-wrap, section > .table { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); }
.table-wrap { overflow-x: auto; }
.compare th:first-child { position: sticky; left: 0; background: #0b242d; text-transform: none; letter-spacing: 0; font: 500 14px/1.2 var(--body); color: var(--text); white-space: nowrap; }
.compare td, .compare thead th:not(:first-child) { text-align: center; white-space: nowrap; }
.compare td { font: 800 18px/1 var(--display); }
.compare thead th:not(:first-child) { color: var(--ice); }
.compare td:last-child { color: var(--aurora-hi); }

.tabs { display: flex; gap: var(--s1); }
.tabs button { flex: 1; min-height: 46px; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); color: var(--dim); font: 700 14px/1 var(--cond); letter-spacing: .01em; }
.tabs button.on { background: var(--aurora); border-color: var(--aurora); color: #03130b; }
.prospect { padding: var(--s3) var(--s4); display: flex; flex-direction: column; gap: var(--s2); }
.prospect.lost { opacity: .5; }
.prospect.signed { border-left: 4px solid var(--aurora); }
.p-top { display: flex; justify-content: space-between; align-items: flex-start; }
.p-top .x { margin: -8px -10px 0 0; }
.off { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); }
.off .who { flex: 1 1 45%; }
.off select { width: 150px !important; flex: none; }
.off input { width: 100% !important; }
.off.leaving { border-left: 4px solid var(--gold); }

/* trophy case */
.case { display: grid; gap: var(--s3); }
.trophy { position: relative; overflow: hidden; display: flex; gap: var(--s4); align-items: center; padding-right: var(--s4); background: #0a0a0a; border: 1px solid #3a3320; border-radius: var(--r); color: var(--text); }
.trophy img, .trophy-blank { width: 120px; height: 170px; object-fit: cover; flex: none; filter: grayscale(.9) brightness(.55); }
.trophy-blank { display: grid; place-items: center; background: #151515; color: #444; font: 400 60px var(--display); }
.trophy.ours { border-color: var(--gold); box-shadow: 0 0 34px rgba(233, 185, 73, .2); }
.trophy.ours img { filter: none; animation: glint 3.5s ease-in-out infinite; }
@keyframes glint { 50% { filter: brightness(1.25) saturate(1.2); } }
.trophy h3 { font: 800 24px/1.05 var(--display); text-transform: uppercase; color: var(--gold); margin-bottom: var(--s1); }
.trophy .holder { font: 700 13px/1.2 var(--cond); letter-spacing: .01em; margin: var(--s1) 0 2px; color: var(--dim); }
.trophy.ours .holder { color: var(--aurora-hi); }
.photo { width: 100%; border-radius: var(--r); border: 1px solid var(--line); }
.photo.trophy { max-width: 220px; margin: 0 auto; padding: 0; display: block; }

/* sounds */
.td-btn { position: relative; overflow: hidden; width: 100%; min-height: 116px; border: 0; border-radius: var(--r); color: #03130b; font: 800 clamp(38px, 12vw, 68px)/1 var(--display); text-transform: uppercase;
  background: linear-gradient(100deg, #1f9659, var(--aurora) 40%, #b9ffd9 50%, var(--aurora) 60%, #1f9659) 0 0 / 250% 100%; animation: aurora-text 3s linear infinite, throb 1.8s ease-in-out infinite; }
@keyframes throb { 50% { transform: scale(1.02); } }
.td-btn:active { transform: scale(.95); animation: none; }
.pads { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.pad { min-height: 96px; padding: var(--s3) var(--s4); border: 1px solid var(--line); border-bottom: 4px solid var(--teal); border-radius: var(--r); background: var(--glass); color: var(--text); text-align: left;
  display: flex; flex-direction: column; justify-content: space-between; transition: transform .12s; }
.pad:active { transform: scale(.95); }
.pad b { font: 800 20px/1 var(--display); text-transform: uppercase; }
.pad span { font: 700 12px/1 var(--cond); letter-spacing: .01em; color: var(--dim); }
.pad.live { background: var(--aurora); border-color: var(--aurora); border-bottom-color: #0b5a34; color: #03130b; animation: pulse 1s ease-in-out infinite; }
.pad.live span { color: #03130b; }
.pad.stop { border-bottom-color: var(--loss); }

/* sign in */
.auth { min-height: calc(100dvh - 80px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s4); }
.auth-crest { width: 190px; filter: drop-shadow(0 14px 40px rgba(21, 143, 163, .5)); animation: prowl 6s ease-in-out infinite; }
.auth-ftf { width: 190px; }
.auth .card { width: 100%; max-width: 380px; }

/* entry */
#gate { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: var(--s5); text-align: center; transition: opacity .7s, transform .7s; overflow: hidden;
  background: radial-gradient(90% 55% at 50% -5%, rgba(43, 182, 111, .5), transparent 70%), radial-gradient(70% 45% at 10% 5%, rgba(21, 143, 163, .55), transparent 70%),
    radial-gradient(70% 45% at 95% 0%, rgba(105, 189, 199, .3), transparent 70%), #020809; background-size: 160% 160%; animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { from { background-position: 0% 0%; } to { background-position: 100% 30%; } }
#gate.on { display: grid; }
#gate.out { opacity: 0; transform: scale(1.12); pointer-events: none; }
.gate-in { display: grid; justify-items: center; gap: var(--s3); width: 100%; max-width: 360px; margin-top: -6vh; }
.gate-fox { width: min(62vw, 250px); filter: drop-shadow(0 0 50px rgba(95, 227, 160, .55)) drop-shadow(0 20px 40px rgba(0, 0, 0, .7)); animation: emerge 1.4s cubic-bezier(.2, 1.2, .3, 1) both, prowl 6s 1.4s ease-in-out infinite; }
@keyframes emerge { from { transform: scale(.4) translateY(40px); opacity: 0; filter: blur(14px) brightness(2); } }
.gate-ftf { width: min(74vw, 310px); margin-top: var(--s2); animation: rise .8s .7s both; }
.gate-in p { font: 800 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--frost); animation: rise .8s .95s both; }
.gate-in .btn { width: 100%; min-height: 60px; margin-top: var(--s4); font-size: 18px; animation: rise .8s 1.2s both; }
.gate-in .link { animation: rise .8s 1.4s both; }
#gate.playing { padding: 0; background: #dfe6e8; animation: none; }
#gate video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#gate .skip { position: absolute; right: var(--s4); bottom: calc(var(--s4) + env(safe-area-inset-bottom)); color: #0e4752; font-weight: 700; }

/* sheet and toast */
#sheet { position: fixed; inset: 0; z-index: 40; display: none; }
#sheet.open { display: block; }
.sheet-back { position: absolute; inset: 0; background: rgba(2, 9, 12, .74); backdrop-filter: blur(3px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet-body { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; margin: 0 auto; max-width: 640px; background: #0a242d; border-top: 5px solid var(--aurora); border-radius: 10px 10px 0 0;
  padding: var(--s5) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom)); animation: up .26s cubic-bezier(.2, .9, .2, 1); }
.sheet-body, .sheet-body form { display: flex; flex-direction: column; gap: var(--s3); }
.sheet-body h2 { width: auto; margin: 0; padding: 0 48px 0 0; background: none; font: 800 26px/1.05 var(--display); letter-spacing: 0; }
.sheet-x { position: absolute; right: var(--s2); top: var(--s3); width: 44px; height: 44px; background: none; border: 0; color: var(--dim); font-size: 18px; }
.review { max-height: 46dvh; overflow-y: auto; }
@keyframes up { from { transform: translateY(60px); opacity: 0; } }
#toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 95; opacity: 0; pointer-events: none; max-width: 90vw; text-align: center;
  padding: 12px 20px; border-radius: var(--r); background: var(--aurora); color: #03130b; font-weight: 700; transition: .22s cubic-bezier(.2, 1.4, .3, 1); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--loss); color: #200905; }

/* big moments */
#fx { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; text-align: center; overflow: hidden; cursor: pointer;
  background: radial-gradient(90% 60% at 50% 40%, rgba(43, 182, 111, .42), transparent 70%), rgba(2, 9, 12, .92); }
#fx.on { display: grid; animation: fade .25s; }
#fx.out { opacity: 0; transition: opacity .35s; }
#fx.win::before { content: ""; position: absolute; inset: 0; background: #eafff4; animation: flash .7s ease-out forwards; pointer-events: none; }
@keyframes flash { from { opacity: .95; } to { opacity: 0; } }
.fx-card { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: var(--s1); padding: 0 var(--s3); }
#fx.win .fx-card { animation: shake .5s .28s; }
@keyframes shake { 20% { transform: translate(-9px, 5px) rotate(-1deg); } 40% { transform: translate(8px, -6px) rotate(1deg); } 60% { transform: translate(-5px, 3px); } 80% { transform: translate(4px, -2px); } }
.fx-fox { width: min(44vw, 220px); margin-bottom: -10px; filter: drop-shadow(0 0 40px rgba(95, 227, 160, .8)); animation: slam .55s cubic-bezier(.2, 1.4, .3, 1) both, prowl 3s .6s ease-in-out infinite; }
.fx-big { display: block; font: 800 clamp(62px, 20.5vw, 180px)/.82 var(--display); text-transform: uppercase; letter-spacing: -.02em; color: #fff;
  text-shadow: 5px 5px 0 var(--deep), 10px 10px 0 rgba(21, 143, 163, .5), 0 0 80px rgba(95, 227, 160, .7); animation: slam .5s cubic-bezier(.2, 1.6, .3, 1) both; }
.fx-big.s2 { animation-delay: .16s; color: var(--aurora-hi); }
.fx-score { margin-top: var(--s3); font: 800 clamp(60px, 18vw, 120px)/1 var(--display); color: #fff; animation: slam .5s .4s cubic-bezier(.2, 1.6, .3, 1) both; }
.fx-score i { font-style: normal; color: var(--aurora); margin: 0 6px; }
.fx-card small { margin-top: var(--s2); font: 800 17px/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--frost); animation: rise .5s .6s both; }
.fx-card em { margin-top: var(--s3); padding: 9px 16px 8px; border-radius: var(--r); background: var(--gold); color: #1c1400; font: 800 15px/1 var(--display); text-transform: uppercase; animation: rise .5s .8s both; }
#fx.loss { background: rgba(4, 12, 18, .95); }
#fx.loss .fx-score { color: transparent; -webkit-text-stroke: 2px #9fc6d6; animation: rise .8s both; }
.fx-name { font: 800 clamp(44px, 13vw, 100px)/.9 var(--display); text-transform: uppercase; color: #fff; text-shadow: 4px 4px 0 var(--deep); animation: slam .5s .25s cubic-bezier(.2, 1.6, .3, 1) both; }
.fx-spark { width: 130px; height: 130px; fill: var(--aurora-hi); filter: drop-shadow(0 0 40px rgba(95, 227, 160, .9)); animation: spin-in .7s cubic-bezier(.2, 1.4, .3, 1) both; }
#fx.gold { background: radial-gradient(90% 60% at 50% 40%, rgba(233, 185, 73, .38), transparent 70%), rgba(2, 9, 12, .92); }
#fx.gold .fx-spark { fill: var(--gold); filter: drop-shadow(0 0 40px rgba(233, 185, 73, .9)); }
#fx.gold .fx-name { text-shadow: 4px 4px 0 #5b430a; }
.fx-sparks { display: flex; align-items: center; gap: 4px; }
.fx-sparks .spark { width: 64px; height: 64px; fill: var(--aurora-hi); animation: spin-in .7s .2s cubic-bezier(.2, 1.4, .3, 1) both; }
.fx-sparks .fx-spark { width: 130px; height: 130px; animation-delay: 0s; }
@keyframes spin-in { from { transform: scale(0) rotate(-200deg); } }
.fx-number b { display: block; padding-right: .08em; font: 800 clamp(170px, 56vw, 280px)/.85 var(--display); color: transparent;
  background: linear-gradient(110deg, #5fe3a0, #69bdc7 30%, #ffffff 50%, #2bb66f 70%, #5fe3a0) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text;
  animation: drop .7s cubic-bezier(.3, 1.4, .4, 1) both, aurora-text 3s linear infinite; }
@keyframes drop { from { transform: translateY(-100vh); } }
#fx-burst { position: absolute; left: 50%; top: 42%; z-index: 1; }
#fx-burst i { position: absolute; border-radius: 50%; }
#fx-burst i:nth-child(3n) { border-radius: 0; }

@media (min-width: 700px) { .hero-fox { right: -10px; height: 340px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
#main > .hero, #main > .lineage-head { display: grid; }
#main > .pcard { flex-direction: row; }
#gate { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.gate-in p { font-size: 13px; letter-spacing: .06em; }
#nav a { font: 700 13px/1 var(--cond); letter-spacing: .01em; }
.num b { font-size: clamp(46px, 14vw, 68px); padding-right: .12em; }
#main { gap: 32px; }
.row.gap + .chips { margin-top: -16px; }
.chips + .list { margin-top: -14px; }
.stats + section, .page-head + .stats { margin-top: -8px; }
.fx-big { font-size: clamp(58px, 19vw, 180px); padding-right: .06em; }

/* phone fixes */
html, body { overflow-x: clip; }
* { -webkit-tap-highlight-color: transparent; }
textarea, input, select { font-size: 16px !important; }
.scoreline input { font-size: 30px !important; }
.scoreline.tall input { font-size: 42px !important; }
.pcard-info { min-width: 0; max-width: 100%; }
.pcard h1, .fx-name, h1 { overflow-wrap: anywhere; }
.pcard h1.long { font-size: clamp(26px, 7.4vw, 40px); }
.who { overflow-wrap: anywhere; }
.chip .x { width: 38px; height: 38px; margin-right: -12px; }
#top { padding-left: max(var(--s4), env(safe-area-inset-left)); padding-right: max(var(--s4), env(safe-area-inset-right)); }

/* gem or bust */
.gem { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; font: 700 11px/1 var(--cond); letter-spacing: .01em; color: var(--aurora-hi); vertical-align: 1px; }
.gem svg { width: 15px; height: 12px; fill: var(--aurora); stroke: var(--frost); stroke-width: 7; stroke-linejoin: round; }
.gem .facet { fill: none; stroke-width: 5; }
.gem.bust { color: var(--loss); }
.gem.bust svg { fill: #3a2a28; stroke: var(--loss); }
.scout { display: flex; align-items: center; gap: var(--s1); }
.scout span { flex: 1; font: 700 12px/1 var(--cond); letter-spacing: .01em; color: var(--dim); }
.scout button { min-width: 84px; min-height: 40px; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); color: var(--dim); font: 700 13px/1 var(--cond); letter-spacing: .01em; }
.scout button.on.gem { margin: 0; background: var(--aurora); border-color: var(--aurora); color: #03130b; }
.scout button.on.bust { margin: 0; background: var(--loss); border-color: var(--loss); color: #200905; }
.stats.tight { grid-template-columns: repeat(3, 1fr); }
/* the record uses a real hyphen so it lines up with the numerals */
.record i { width: auto; height: auto; margin: 0 .02em; background: none; box-shadow: none; font-style: italic; color: var(--aurora); text-shadow: 5px 5px 0 var(--deep), 0 0 30px rgba(43, 182, 111, .6); animation: slam .6s .06s cubic-bezier(.2, 1.5, .3, 1) both; }

/* player card: room for the tier line and name, and the whole number in view */
.pcard { min-height: 270px; padding: var(--s5) var(--s4) var(--s4); }
.pcard-no { top: var(--s3); right: var(--s3); font-size: 124px; line-height: .9; padding: 0 .14em 0 0; }
.pcard-info { gap: var(--s2); }
.pcard-tier { display: flex; align-items: center; gap: var(--s1); margin-bottom: 2px; }
.pcard-tier .sparks { margin-left: 0; }
.pcard h1 { line-height: 1.02; padding-right: .08em; }
.pcard-info p { line-height: 1.3; }
/* number sits in its own row at the top right, so it never runs behind the name */
#main > .pcard { flex-direction: column; align-items: stretch; justify-content: flex-end; }
.pcard { min-height: 0; padding: var(--s4); }
.pcard-no { position: relative; top: auto; right: auto; z-index: 2; align-self: flex-end; font-size: 104px; line-height: .95; padding: 0 .14em 0 0; margin-bottom: var(--s2); }
/* card numbers are solid: no outline-only parts. Padding keeps the slanted edges inside the color fill. */
.pcard-no { -webkit-text-stroke: 0; color: rgba(221, 222, 223, .26); padding: .06em .2em 0 .06em; line-height: 1; }
.pcard-no.sacred-n { -webkit-text-stroke: 0; }
.num.held b, .big-no, .fx-number b { padding: .06em .2em 0 .06em; line-height: 1; }

/* jersey number quick entry */
.numlist { display: flex; flex-direction: column; gap: var(--s1); max-height: 56dvh; overflow-y: auto; margin: 0 calc(var(--s2) * -1); padding: 0 var(--s2); }
.numlist label { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s1) 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.numlist input { width: 84px !important; flex: none; text-align: center; font: 800 22px/1 var(--display) !important; }
.row.gap + .row.gap { margin-top: -18px; }
.row.gap:empty { display: none; }

/* dev trait badge on the player card */
.pcard-tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-bottom: 2px; }
.pcard-tags .pcard-tier { margin-bottom: 0; }
.dev { display: inline-block; padding: 5px 8px 4px; border: 1px solid var(--line); border-radius: var(--r); font: 700 12px/1 var(--cond); letter-spacing: .01em; color: var(--frost); }
.dev-impact { border-color: var(--teal); color: var(--ice); }
.dev-star { border-color: var(--ice); background: rgba(105, 189, 199, .16); color: var(--frost); }
.dev-elite { border-color: var(--aurora); background: var(--aurora); color: #03130b; }

/* abilities, team ratings, record lines */
.abil { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.abil > div { padding: var(--s3); background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); }
.abil h3 { margin: 0 0 var(--s2); font: 700 12px/1 var(--cond); letter-spacing: .01em; color: var(--ice); }
.abil ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s1); }
.abil li { font-weight: 600; }
.abil p { margin: 0; }
.ratings { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); padding: var(--s3) var(--s4); background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
  font: 700 12px/1 var(--cond); letter-spacing: .01em; color: var(--dim); }
.ratings b { margin-right: 4px; font: 800 22px/1 var(--display); color: #fff; letter-spacing: 0; vertical-align: -2px; }
button.rec-line { width: 100%; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.year-head { margin: var(--s4) 0 var(--s2); font: 800 26px/1 var(--display); color: var(--ice); }
.sec-head + .year-head { margin-top: var(--s2); }

/* switches in place of plain checkboxes */
.check { justify-content: space-between; gap: var(--s3); min-height: var(--tap); padding: 0 var(--s3); background: var(--field); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s; }
.check:has(input:checked) { border-color: var(--aurora); }
.check span { flex: 1; min-width: 0; }
.check input { order: 2; appearance: none; -webkit-appearance: none; position: relative; width: 46px; height: 26px; margin: 0; flex: none; cursor: pointer;
  background: #0a1f26; border: 1px solid var(--line); border-radius: var(--r); transition: background .18s, border-color .18s; }
.check input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 2px; background: var(--dim); transition: transform .18s cubic-bezier(.3, 1.4, .5, 1), background .18s; }
.check input:checked { background: var(--aurora); border-color: var(--aurora); }
.check input:checked::after { transform: translateX(20px); background: #03130b; }
.check input:focus-visible { outline: 2px solid var(--aurora-hi); outline-offset: 2px; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .check input, .check input::after { transition: none; } }

/* expandable sections */
details summary { display: flex; align-items: center; justify-content: space-between; min-height: var(--tap); padding: 0 var(--s3); list-style: none; border: 1px dashed var(--line); border-radius: var(--r);
  font: 700 13px/1 var(--cond); letter-spacing: .01em; color: var(--ice); }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font: 400 22px/1 var(--body); color: var(--ice); }
details[open] summary { border-style: solid; }
details[open] summary::after { content: "\2212"; }

/* fit and spacing fixes */
.td-btn { font-size: clamp(30px, 10.5vw, 68px); padding: 0 var(--s3); }
details > :not(summary) { margin-top: var(--s3); }
.depart .seg label { flex: 1 1 45%; }
.hero-facts { flex-wrap: wrap; gap: var(--s3) var(--s5); max-width: 58%; }
@media (min-width: 700px) { .hero-facts { max-width: 70%; } }
.next-opp { line-height: 1.08; }
.next-opp .rk { font-size: .62em; vertical-align: .22em; margin-right: 2px; }
#nav a { flex: 1 1 auto; padding: 0 7px; letter-spacing: .05em; }
.stack { display: flex; flex-direction: column; gap: var(--s3); }

/* tap-to-pick bowl names and playoff rounds */
.post-label { display: flex; flex-direction: column; gap: var(--s2); }
.picks { display: none; flex-wrap: wrap; gap: var(--s1); }
.picks .chip { min-height: 40px; cursor: pointer; font: 700 13px/1 var(--cond); letter-spacing: .01em; }
form:has(input[name="type"][value="bowl"]:checked) .picks.for-bowl,
form:has(input[name="type"][value="playoff"]:checked) .picks.for-playoff { display: flex; }

/* ---------- game night ---------- */
.board { padding: var(--s4); background: linear-gradient(160deg, #0f3d47, #061b22 75%); border: 1px solid var(--line); border-top: 4px solid var(--aurora); border-radius: var(--r); display: flex; flex-direction: column; gap: var(--s3); }
.board.final { border-top-color: var(--gold); }
.board-sub { margin: 0; font: 700 12px/1 var(--cond); letter-spacing: .01em; color: var(--ice); }
.board-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.side { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; }
.side span { font: 700 14px/1.1 var(--cond); letter-spacing: .01em; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side b { font: 800 clamp(64px, 22vw, 110px)/.9 var(--display); color: #fff; }
.side.them { text-align: right; }
.side.them b { color: var(--ice); }
.quarters button { cursor: pointer; }
.pad-group { gap: var(--s2); }
.live-td { min-height: 92px; }
.pad4, .pad5 { display: grid; gap: var(--s1); }
.pad4 { grid-template-columns: repeat(4, 1fr); }
.pad5 { grid-template-columns: repeat(5, 1fr); }
.pad-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 68px; padding: var(--s1) 2px; background: var(--glass-2); border: 1px solid var(--line); border-bottom: 3px solid var(--aurora); border-radius: var(--r); color: #fff; cursor: pointer; transition: transform .1s; }
.pad-btn:active { transform: scale(.94); }
.pad-btn b { font: 800 26px/1 var(--display); }
.pad-btn span { font: 700 10.5px/1.1 var(--cond); letter-spacing: .01em; color: var(--dim); text-align: center; }
.pad-btn.them { border-bottom-color: var(--loss); min-height: 56px; }
.live-tools .btn { flex: 1; padding-left: 4px; padding-right: 4px; }
.btn.off { opacity: .45; }
.night-btn { margin-top: var(--s1); }
.who-sheet { display: flex; flex-direction: column; gap: var(--s3); }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s1); }
.who-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 66px; padding: var(--s2); background: var(--field); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); text-align: left; cursor: pointer; min-width: 0; }
.who-btn.on { border-color: var(--aurora); background: rgba(43, 182, 111, .18); }
.who-btn b { font: 800 22px/1 var(--display); color: var(--ice); }
.who-btn span { font-weight: 700; font-size: 14px; line-height: 1.1; overflow-wrap: anywhere; }
.who-btn small { font: 700 10.5px/1 var(--cond); letter-spacing: .01em; color: var(--dim); }
.slog .line { min-height: 52px; }
.recap { width: 100%; max-width: 440px; height: auto; align-self: center; border: 1px solid var(--line); border-radius: var(--r); background: #030b0f; }

/* ---------- depth chart ---------- */
.depth { display: flex; flex-direction: column; gap: var(--s1); margin-bottom: var(--s3); }
.depth h3 { margin: 0; font: 800 22px/1 var(--display); color: var(--ice); }
.depth-row { gap: var(--s2); padding: var(--s2) var(--s3); min-height: 54px; }
.depth-row.first { border-left: 4px solid var(--aurora); }
.depth-row .slot { width: 22px; font: 800 20px/1 var(--display); color: var(--dim); flex: none; }
.depth-row .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: inherit; }
.depth-row .who small { color: var(--dim); font-size: 13px; }
.moves { display: flex; gap: 4px; flex: none; }
.mv { width: 42px; height: 42px; background: var(--glass-2); border: 1px solid var(--line); border-radius: var(--r); color: var(--ice); font-size: 13px; cursor: pointer; }
.mv:disabled { opacity: .25; cursor: default; }

/* ---------- rankings, rivalry, tables ---------- */
.rank-chart { padding: var(--s3); background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); }
.rank-chart svg { display: block; width: 100%; height: auto; }
.rank-chart .grid { stroke: var(--line); stroke-width: 1; }
.rank-chart .ax { fill: var(--dim); font: 700 9px var(--cond); letter-spacing: .01em; }
.rank-chart .nr { fill: var(--dim); font: 700 8px var(--cond); }
.rank-chart .ln { fill: none; stroke: var(--aurora); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.rank-chart .pt { fill: #fff; stroke: var(--aurora); stroke-width: 2; }
.rank-chart .pt.best { fill: var(--gold); stroke: var(--gold); }
.rank-chart p { margin: var(--s2) 0 0; }
.rivalry { display: flex; flex-direction: row !important; align-items: center; gap: var(--s4); padding: var(--s4); background: linear-gradient(155deg, #3a1f1a, #071c23 70%); border: 1px solid var(--line); border-left: 6px solid var(--loss); border-radius: var(--r); }
.rivalry.ours { background: linear-gradient(155deg, #0f6b4a, #071c23 70%); border-left-color: var(--aurora); }
.rivalry img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r); flex: none; }
.rivalry h2 { background: none; padding: 0; margin: 4px 0; font: 800 26px/1.05 var(--display); }
.rivalry p { margin: 0; color: var(--dim); }
tr.tap { cursor: pointer; }
.page-head h1.long { font-size: clamp(30px, 9vw, 52px); }

/* drag handle on the depth chart */
.grip { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 34px; height: 44px; margin-left: -6px; padding: 0 8px; background: none; border: 0; cursor: grab; touch-action: none; flex: none; }
.grip i { display: block; height: 2px; border-radius: 1px; background: var(--dim); }
.depth-row { transition: box-shadow .15s; }
.depth-row.dragging { position: relative; z-index: 5; background: var(--glass-2); border-color: var(--aurora); box-shadow: 0 10px 28px rgba(0, 0, 0, .55); }
.depth-row.dragging .grip { cursor: grabbing; }
.depth-row.dragging .grip i { background: var(--aurora-hi); }


/* ================= softer, more open look ================= */
h1 { text-shadow: none; letter-spacing: .01em; }
h2 { width: auto; padding: 0; background: none; border-radius: 0; color: #fff; font: 800 26px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.sheet-body h2 { font: 800 30px/1.02 var(--display); }
h3 { letter-spacing: .02em; }

/* cards lose their outline and side bar */
.card, .panel { border: 0; border-radius: 20px; background: rgba(9, 30, 38, .72); }
.pcard { border: 0; border-radius: 22px; }
.board { border: 0; border-radius: 22px; }
.ratings, .rank-chart, .abil > div, .rivalry { border: 0; border-radius: 18px; }
.rivalry { border-left: 0; }

/* lists sit open on the page with thin dividers */
.list { gap: 0; }
.game, .line, .player, .prospect, .off, .alert, .game.W, .game.L { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.list > :last-child { border-bottom: 0; }
.game { padding-left: 0; padding-right: 0; }
.line { padding-left: 0; padding-right: 0; }
.player a { padding-left: 0; }
.prospect, .off { padding-left: 0; padding-right: 0; }
.prospect.signed, .off.leaving { border-left: 0; }
.off.leaving .who { color: var(--gold); }
.alert { border: 0; border-radius: 16px; background: rgba(105, 189, 199, .12); padding: var(--s3) var(--s4); }
.alert.warn { background: rgba(233, 185, 73, .12); }
.depth-row, .depth-row.first { border-left: 0; padding-left: 0; padding-right: 0; }
.depth-row.first .slot { color: var(--aurora-hi); }
.depth-row.dragging { border-radius: 14px; padding-left: var(--s2); padding-right: var(--s2); border-bottom-color: transparent; }
.who-btn, .pad-btn, .mv { border: 0; }
.pad-btn { border-bottom: 0; background: rgba(16, 48, 59, .8); }
.pad-btn.them { background: rgba(224, 112, 95, .16); }

/* stat rows without boxes */
.stats { gap: 0; }
.stats div { background: none; border: 0; border-radius: 0; border-left: 1px solid var(--line); padding: var(--s2) var(--s1); }
.stats div:first-child { border-left: 0; }
.stats.tight div:nth-child(3n + 1) { border-left: 0; }
.stats.tight { row-gap: var(--s3); }
.table-wrap, section > .table { background: none; border: 0; }

/* controls */
.btn { border-radius: 999px; }
.chip, .seg span, .seg.mini button { border-radius: 999px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea { border-radius: 14px; }
.check { border: 0; border-radius: 16px; background: rgba(2, 12, 16, .55); }
.check input { border-radius: 999px; }
.check input::after { border-radius: 50%; }
details summary { border: 0; border-radius: 16px; background: rgba(2, 12, 16, .4); }
#nav { border-radius: 999px; padding: 6px; }
#nav a { border-radius: 999px; }
.sheet-body { border-radius: 26px 26px 0 0; border-top-width: 0; }
.num { border: 0; border-radius: 18px; }
.td-btn { border-radius: 22px; }
.trophy { border-radius: 20px; }
.recap { border: 0; border-radius: 20px; }
#sound-btn { border-radius: 999px; }

/* bottom menu: icons over labels, a lit marker on the current tab */
#nav { left: 0; right: 0; bottom: 0; max-width: none; gap: 0; padding: 8px max(10px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; border: 0; border-top: 1px solid var(--line);
  background: rgba(4, 18, 23, .86); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); justify-content: space-around; }
#nav a { position: relative; flex: 1 1 0; max-width: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; height: 54px; padding: 0 2px; border-radius: 16px; background: none;
  color: var(--dim); font: 600 11px/1 var(--body); letter-spacing: .01em; text-transform: none; animation: none; }
#nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.2, 1.5, .4, 1); }
#nav a.on { background: none; color: #fff; }
#nav a.on svg { stroke: var(--aurora-hi); fill: rgba(95, 227, 160, .16); transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 0 8px rgba(95, 227, 160, .55)); }
#nav a::before { content: ""; position: absolute; top: -8px; left: 50%; width: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--aurora-hi); transform: translateX(-50%); transition: width .25s; }
#nav a.on::before { width: 26px; }
#nav a:active svg { transform: scale(.9); }
#main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { #nav svg, #nav a::before { transition: none; } }
.pair > * { flex: 1; padding-left: var(--s2); padding-right: var(--s2); }
.hero-facts { max-width: 46%; }

/* the page itself never zooms: scroll only, no pinch or double-tap zoom */
html, body { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* record dash: a drawn bar centered on the numerals, since the font's own hyphen sits low */
.record { align-items: center; }
.record b { font-weight: 800; }
.record i { display: block; flex: none; width: .2em; height: .07em; margin: 0 .07em; border-radius: 999px; background: var(--aurora); box-shadow: 0 0 24px rgba(43, 182, 111, .6);
  color: transparent; text-shadow: none; overflow: hidden; text-indent: -9em; line-height: 0; transform: translateY(-.02em); }
