/* ── Hockey Draft — styles.css ── v1 ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #020c16;
  --panel:     #071423;
  --panel-2:   #0b1e30;
  --rim:       rgba(14,165,233,.18);
  --rim-strong:rgba(14,165,233,.45);
  --ice:       #0ea5e9;
  --ice-lt:    #38bdf8;
  --ice-dim:   rgba(14,165,233,.55);
  --silver:    #94a3b8;
  --silver-lt: #cbd5e1;
  --text:      #e2e8f0;
  --text-dim:  rgba(226,232,240,.6);
  --text-muted:rgba(226,232,240,.32);
  --gold:      #f6bd55;
  --gold-dim:  rgba(246,189,85,.55);
  --red:       #ef4444;
  --green:     #22c55e;

  --fw-c:  #0ea5e9;
  --fw-lw: #38bdf8;
  --fw-rw: #7dd3fc;
  --fw-f:  #bae6fd;
  --def:   #94a3b8;
  --goal:  #f1f5f9;

  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-num:  'Orbitron', monospace;
  --font-card: 'Rajdhani', sans-serif;
}

html, body { height: 100%; background: var(--bg); color: var(--text); }
body {
  font-family: var(--font-body);
  display: flex; flex-direction: column;
  background:
    linear-gradient(180deg, rgba(2,12,22,.48) 0%, rgba(2,12,22,.86) 62%, rgba(1,10,18,.94) 100%),
    url("logo/RinkBG.svg") center center / cover no-repeat fixed;
  min-height: 100svh;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }
.hidden { display: none !important; }

/* ── Topbar ───────────────────────────────────────────────────────── */
.topbar {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(2,12,22,.92);
  border-bottom: 1px solid var(--rim);
  backdrop-filter: blur(12px);
  z-index: 30;
}

.brand-mark {
  font: 700 .82rem/1 var(--font-head);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); opacity: .8;
}

.nav-links {
  display: flex; align-items: center;
  gap: clamp(.7rem, 2vw, 1.6rem);
  font: 700 .72rem/1 var(--font-head);
  letter-spacing: .12em; text-transform: uppercase;
}

.nav-links a { color: var(--text-dim); transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ice); }

.nav-dropdown { position: relative; }

.nav-drop-btn {
  font: 700 .72rem/1 var(--font-head);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); transition: color .15s;
  display: flex; align-items: center; gap: .28em;
}
.nav-drop-btn:hover,
.nav-dropdown:focus-within .nav-drop-btn { color: var(--ice); }

.nav-drop-btn::after {
  content: ""; display: inline-block; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; transition: transform .2s;
}
.nav-dropdown:hover .nav-drop-btn::after,
.nav-dropdown:focus-within .nav-drop-btn::after { transform: rotate(180deg); }

.nav-drop-menu {
  position: absolute; top: calc(100% + .55rem); left: 50%;
  transform: translateX(-50%) translateY(-6px); min-width: 186px;
  background: linear-gradient(160deg, #071a2e 0%, #030d1a 100%);
  border: 1px solid var(--rim);
  border-top: 2px solid var(--rim-strong);
  border-radius: 10px; padding: .42rem 0 .5rem;
  box-shadow: 0 20px 52px rgba(0,0,0,.9), 0 4px 14px rgba(0,0,0,.4);
  backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s, visibility .2s, transform .2s;
}
.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown:focus-within .nav-drop-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.drop-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; padding: .48rem 1rem;
  font: 700 .66rem/1 var(--font-head);
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(226,232,240,.75); transition: background .1s, color .1s;
  white-space: nowrap; position: relative;
}
a.drop-item:hover { background: rgba(14,165,233,.08); color: var(--ice); }
a.drop-item:hover::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--ice); border-radius: 0 2px 2px 0;
}
.drop-item.drop-soon { color: rgba(226,232,240,.22); cursor: default; }
.drop-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,.16), transparent);
  margin: .35rem .6rem;
}
.drop-tag {
  font: 800 .44rem/1 var(--font-head);
  letter-spacing: .14em; text-transform: uppercase;
  padding: .2rem .5rem; border-radius: 100px;
}
.drop-tag.live { background: rgba(34,197,94,.15); color: #4ade80; box-shadow: 0 0 8px rgba(34,197,94,.2); }
.drop-tag.beta { background: rgba(14,165,233,.14); color: var(--ice); }
.drop-tag.soon { background: none; color: rgba(226,232,240,.2); font-style: italic; padding: 0; }

/* ── Visit Strip ──────────────────────────────────────────────────── */
.visit-strip {
  flex-shrink: 0;
  text-align: center;
  padding: .18rem;
  font: 600 .6rem/1 var(--font-num);
  letter-spacing: .1em; color: var(--text-muted);
  background: rgba(14,165,233,.03);
  border-bottom: 1px solid var(--rim);
}

/* ── Game Shell ──────────────────────────────────────────────────── */
.game-shell {
  flex: 1; display: flex;
  gap: 0; min-height: 0;
  overflow: hidden;
}

/* ── Roll Panel ──────────────────────────────────────────────────── */
.roll-panel {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  padding: clamp(1rem, 3vw, 2rem);
  overflow-y: auto;
  border-right: 1px solid var(--rim);
  background: linear-gradient(90deg, rgba(2,12,22,.44), rgba(2,12,22,.18));
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.primary-btn {
  padding: .52rem 1.5rem;
  background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 50%, #0284c7 100%);
  border-top: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  box-shadow: 0 4px 0 #075985, 0 8px 24px rgba(14,165,233,.25);
  color: #001820;
  font: 800 .76rem/1 var(--font-head);
  letter-spacing: .08em; text-transform: uppercase;
  transition: filter .14s, transform .08s;
}
.primary-btn:hover:not(:disabled) { filter: brightness(1.1); }
.primary-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 #075985, 0 4px 12px rgba(14,165,233,.2); }
.primary-btn:disabled { opacity: .4; cursor: not-allowed; }

.secondary-btn {
  padding: .5rem 1.2rem;
  background: rgba(14,165,233,.1);
  border: 1px solid var(--rim);
  border-radius: 8px;
  color: var(--ice-lt);
  font: 700 .72rem/1 var(--font-head);
  letter-spacing: .08em; text-transform: uppercase;
  transition: background .14s, border-color .14s;
}
.secondary-btn:hover { background: rgba(14,165,233,.18); border-color: var(--rim-strong); }

/* ── Mode Hero ───────────────────────────────────────────────────── */
.mode-hero {
  display: flex; flex-direction: column;
  align-items: center; gap: 1.2rem;
  padding: clamp(1rem, 4svh, 2.5rem) 0;
  text-align: center;
}

.mode-main-logo {
  width: clamp(150px, 26vw, 260px);
  height: auto;
  filter: drop-shadow(0 8px 28px rgba(14,165,233,.48)) drop-shadow(0 2px 10px rgba(0,0,0,.5));
}

.mode-hero-title {
  font: 900 clamp(2.4rem, 6vw, 4.2rem)/.9 var(--font-head);
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--text);
  text-shadow: 0 2px 0 #000;
}

.ice-accent { color: var(--ice); }

.mode-hero-sub {
  max-width: 42ch;
  font-size: clamp(.82rem, 1.2vw, .96rem);
  line-height: 1.6; color: var(--text-dim);
}

.mode-select-group {
  display: flex; gap: .8rem; flex-wrap: wrap;
  justify-content: center; width: 100%;
}

.mode-tile { cursor: pointer; }
.mode-tile input { position: absolute; opacity: 0; pointer-events: none; }

.mode-tile-inner {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: .7rem .85rem .8rem;
  background: linear-gradient(180deg, rgba(7,20,35,.94), rgba(2,12,22,.94));
  border: 1px solid var(--rim);
  border-radius: 8px; min-width: 132px;
  transition: background .14s, border-color .14s, transform .1s;
  box-shadow: 0 10px 28px rgba(0,0,0,.32);
}
.mode-tile:hover .mode-tile-inner { border-color: var(--ice-dim); }
.mode-tile input:checked ~ .mode-tile-inner {
  background: rgba(14,165,233,.1);
  border-color: var(--ice);
  box-shadow: 0 0 0 1px var(--ice) inset, 0 6px 20px rgba(14,165,233,.15);
}

.mode-tile-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 5px 14px rgba(0,0,0,.5));
}

.mode-tile-placeholder {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(14,165,233,.1); border: 1px solid var(--rim);
  font: 800 1.1rem/1 var(--font-num); color: var(--ice-dim);
}
.mode-tile-name {
  font: 800 .78rem/1 var(--font-head);
  letter-spacing: .1em; text-transform: uppercase; color: var(--text);
}
.mode-tile-desc { font-size: .64rem; color: var(--text-dim); }

.draft-note { font-size: .68rem; color: var(--text-muted); letter-spacing: .04em; }

.dc-header-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin-right: .35rem;
  filter: drop-shadow(0 3px 9px rgba(0,0,0,.55));
}

/* ── Team Card ───────────────────────────────────────────────────── */
.team-card {
  display: flex; flex-direction: column;
  flex: 1; min-height: 0; gap: .8rem;
}

.team-card-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .6rem; color: var(--text-muted);
}
.team-card-empty-ico { font-size: 2.4rem; }

.team-card-content { flex: 1; display: flex; flex-direction: column; gap: .6rem; overflow-y: auto; }

.team-card-header {
  background: linear-gradient(135deg, #0b1e30 0%, #071423 100%);
  border: 1px solid var(--rim); border-radius: 10px;
  padding: .8rem 1rem;
}

.team-card-meta {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .25rem;
}

.team-year {
  font: 800 .7rem/1 var(--font-num);
  color: var(--ice); letter-spacing: .08em;
}

.team-conf {
  font: 600 .62rem/1 var(--font-head);
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em;
}

.team-name {
  font: 900 clamp(1.3rem, 2.8vw, 2rem)/.95 var(--font-head);
  text-transform: uppercase; letter-spacing: .04em; color: var(--text);
}

.team-record {
  margin-top: .3rem;
  font: 600 .68rem/1 var(--font-head);
  color: var(--text-dim); letter-spacing: .06em;
}
.team-card-record-item { color: var(--ice-lt); }

.team-hint-bar { min-height: 1.4rem; }
.team-hint { font-size: .72rem; color: var(--text-dim); font-style: italic; }

/* ── Position Filters ────────────────────────────────────────────── */
.player-filters {
  display: flex; flex-wrap: wrap; gap: .35rem;
}

.pos-filter-chip {
  padding: .22rem .65rem;
  background: rgba(14,165,233,.08);
  border: 1px solid var(--rim);
  border-radius: 100px;
  font: 700 .62rem/1 var(--font-head);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); transition: all .12s;
}
.pos-filter-chip:hover { border-color: var(--ice-dim); color: var(--ice); }
.pos-filter-chip--active {
  background: rgba(14,165,233,.18); border-color: var(--ice);
  color: var(--ice-lt);
}

.pos-filter-select {
  width: 100%; padding: .4rem .6rem;
  background: var(--panel); border: 1px solid var(--rim);
  border-radius: 7px; color: var(--text); font: 600 .74rem/1 var(--font-body);
}

/* ── Player List ─────────────────────────────────────────────────── */
.player-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  overflow-y: auto;
}

.player-col { display: flex; flex-direction: column; gap: .5rem; }

.pos-section { border-radius: 8px; overflow: hidden; }
.pos-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .32rem .65rem;
  background: rgba(14,165,233,.08);
  border-left: 3px solid var(--sec-color, var(--ice));
  font: 700 .62rem/1 var(--font-head);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); cursor: pointer;
  list-style: none;
}
.pos-section-head::-webkit-details-marker { display: none; }
.pos-section-count {
  background: rgba(14,165,233,.15);
  border-radius: 100px; padding: .1rem .4rem;
  font: 700 .58rem/1 var(--font-num); color: var(--ice);
}
.pos-section-body { display: flex; flex-direction: column; gap: .3rem; padding: .3rem 0; }

.player-row {
  display: flex; align-items: center; gap: .55rem;
  padding: .42rem .6rem;
  background: rgba(14,165,233,.04);
  border: 1px solid transparent;
  border-left: 4px solid var(--team-color, #1a2a3a);
  border-radius: 0 6px 6px 0;
  text-align: left; width: 100%;
  transition: background .1s, border-color .1s;
}
.player-row:hover {
  background: rgba(14,165,233,.1);
  border-color: var(--ice-dim);
  border-left-color: var(--team-color, #0ea5e9);
}

.player-row-pos {
  flex-shrink: 0; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font: 800 .58rem/1 var(--font-head); letter-spacing: .04em;
  color: #000; background: var(--team-color, #0ea5e9);
}

.player-row-name {
  font: 700 .8rem/1.1 var(--font-card);
  color: var(--text);
  display: flex; align-items: center; gap: .3rem;
}

.player-award-badge {
  width: 18px; height: 18px; object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}

.player-row-stats {
  font: 500 .6rem/1.3 var(--font-body);
  color: var(--text-dim); margin-top: .1rem;
}
.psc strong { color: var(--text); font-weight: 700; }

.no-match-msg {
  text-align: center; padding: 1rem;
  font: 400 .8rem/1.5 var(--font-body);
  color: var(--text-muted); font-style: italic;
}

/* ── Roll Controls ───────────────────────────────────────────────── */
.roll-controls {
  display: flex; align-items: center; justify-content: center;
  gap: .7rem; flex-shrink: 0;
  padding: .6rem 0 .2rem;
  border-top: 1px solid var(--rim);
}

.pc-stack { display: flex; align-items: center; gap: .5rem; }

.play-clock-wrap {
  position: relative; width: 44px; height: 44px;
}
.play-clock-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.pcr-track { fill: none; stroke: rgba(14,165,233,.15); stroke-width: 3; }
.pcr-fill  {
  fill: none; stroke: var(--ice); stroke-width: 3;
  stroke-dasharray: 113; stroke-dashoffset: 0;
  stroke-linecap: round;
  transition: stroke-dashoffset .9s linear, stroke .3s;
}
.pcr-fill.urgent { stroke: var(--red); }
.play-clock-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font: 800 .88rem/1 var(--font-num); color: var(--ice);
}
.play-clock-num.urgent { color: var(--red); }

/* ── Depth Chart Panel ───────────────────────────────────────────── */
.depth-chart-panel {
  flex-shrink: 0; width: clamp(200px, 26vw, 280px);
  display: flex; flex-direction: column;
  background: var(--panel);
  overflow-y: auto;
}

.dc-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: .45rem;
  padding: .7rem .9rem .5rem;
  border-bottom: 1px solid var(--rim); flex-shrink: 0;
}
.dc-title {
  font: 800 .72rem/1 var(--font-head);
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim);
}
.dc-progress {
  font: 700 .72rem/1 var(--font-num); color: var(--ice);
}

.dc-slots { padding: .5rem .6rem; display: flex; flex-direction: column; gap: .2rem; }

.dc-group-label {
  font: 700 .58rem/1 var(--font-head);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted); padding: .5rem .3rem .2rem;
}

.dc-row {
  display: flex; align-items: center; gap: .5rem;
  padding: .38rem .5rem;
  border-radius: 6px;
  border-left: 3px solid transparent;
  transition: all .15s;
}
.dc-row.dc-empty { border-left-color: rgba(148,163,184,.2); background: rgba(148,163,184,.04); }
.dc-row.dc-filled { background: rgba(14,165,233,.08); }
.dc-row.dc-forward.dc-filled { border-left-color: var(--ice); }
.dc-row.dc-defense.dc-filled { border-left-color: var(--def); }
.dc-row.dc-goalie.dc-filled  { border-left-color: var(--goal); }

.dc-slot-label {
  flex-shrink: 0; width: 26px;
  font: 800 .6rem/1 var(--font-head);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted);
}
.dc-row.dc-filled .dc-slot-label { color: var(--ice-lt); }

.dc-player-name {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dc-player-main {
  display: block;
  font: 600 .74rem/1.1 var(--font-card); color: var(--text);
}
.dc-player-team {
  display: block;
  font: 500 .58rem/1 var(--font-body); color: var(--text-muted);
}
.dc-player-ovr {
  flex-shrink: 0;
  font: 700 .6rem/1 var(--font-num); color: var(--silver);
}

/* ── Assign Dialog ───────────────────────────────────────────────── */
.assign-dialog {
  margin: auto;
  max-width: min(92vw, 480px); width: 100%;
  background: linear-gradient(160deg, #0b1e30 0%, #040e1a 100%);
  border: 1px solid var(--rim);
  border-top: 2px solid var(--rim-strong);
  border-radius: 14px;
  color: var(--text);
  padding: 0;
  box-shadow: 0 30px 80px rgba(0,0,0,.9);
}
.assign-dialog::backdrop { background: rgba(1,6,12,.8); backdrop-filter: blur(6px); }

.assign-dialog-inner { padding: 1.2rem 1.3rem 1.4rem; position: relative; }

.assign-close {
  position: absolute; top: .9rem; right: .9rem;
  color: var(--text-muted); font-size: .88rem;
  transition: color .14s;
}
.assign-close:hover { color: var(--text); }

.assign-player-header {
  display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem;
}
.assign-pos-badge {
  flex-shrink: 0; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--assign-team-color, var(--ice));
  font: 800 .72rem/1 var(--font-head); letter-spacing: .04em; color: #000;
}
.assign-player-name {
  font: 800 1.1rem/1.1 var(--font-card); color: var(--text);
}
.assign-player-meta {
  font: 500 .7rem/1 var(--font-body); color: var(--text-muted); margin-top: .2rem;
}

.assign-stats {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-bottom: .9rem;
}
.assign-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: .35rem .6rem;
  background: rgba(14,165,233,.06); border: 1px solid var(--rim);
  border-radius: 7px; min-width: 60px;
}
.assign-stat-label { font: 600 .54rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.assign-stat-value { font: 700 .9rem/1.2 var(--font-num); color: var(--ice-lt); margin-top: .15rem; }

.assign-formation-label {
  font: 700 .62rem/1 var(--font-head);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: .55rem;
}

.assign-formation { display: flex; flex-direction: column; gap: .45rem; }

.formation-row { display: flex; gap: .45rem; justify-content: center; }

.pos-node {
  display: flex; flex-direction: column; align-items: center;
  gap: .2rem; padding: .45rem .55rem; flex: 1; max-width: 90px;
  border: 1px solid var(--rim); border-radius: 8px;
  background: rgba(14,165,233,.04);
  transition: all .14s;
}
.pos-node--wide { max-width: 100%; }

.pos-node.pos-eligible {
  border-color: var(--ice);
  background: rgba(14,165,233,.12);
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--ice) inset;
}
.pos-node.pos-eligible:hover {
  background: rgba(14,165,233,.22);
  transform: translateY(-1px);
}
.pos-node.pos-filled {
  border-color: rgba(148,163,184,.3);
  background: rgba(148,163,184,.06);
  cursor: not-allowed;
}
.pos-node.pos-ineligible {
  opacity: .3; cursor: not-allowed;
}

.pos-label {
  font: 800 .6rem/1 var(--font-head);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
}
.pos-node.pos-eligible .pos-label { color: var(--ice); }
.pos-player-name {
  font: 600 .56rem/1 var(--font-body);
  color: var(--text-dim); text-align: center;
  max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Roll Spinner ────────────────────────────────────────────────── */
.roll-spinner {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.5rem;
  background: rgba(2,12,22,.92); backdrop-filter: blur(12px);
}

.spinner-logo-wrap {
  animation: pulseScale .8s ease-in-out infinite alternate;
}
.spinner-logo {
  width: clamp(110px, 18vw, 180px);
  filter: drop-shadow(0 8px 26px rgba(14,165,233,.45));
}

@keyframes pulseScale {
  from { transform: scale(.95); opacity: .8; }
  to   { transform: scale(1.05); opacity: 1; }
}

.spinner-puck {
  width: 36px; height: 10px;
  background: var(--silver); border-radius: 100px;
  animation: puckSlide 1s ease-in-out infinite alternate;
}
@keyframes puckSlide {
  from { transform: translateX(-30px); opacity: .6; }
  to   { transform: translateX(30px);  opacity: 1; }
}

/* ── Result Overlay ──────────────────────────────────────────────── */
.result-overlay {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(2,12,22,.9); backdrop-filter: blur(14px);
  overflow-y: auto;
}

.result-card {
  background: linear-gradient(160deg, #0b1e30 0%, #040e1a 100%);
  border: 1px solid var(--rim); border-top: 2px solid var(--ice);
  border-radius: 16px; padding: 1.6rem 1.4rem 1.8rem;
  width: 100%; max-width: 520px;
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.9), 0 0 60px rgba(14,165,233,.06);
}

.result-logo {
  width: clamp(110px, 20vw, 170px);
  filter: drop-shadow(0 4px 14px rgba(14,165,233,.4));
}

.result-tier {
  font: 900 clamp(1rem, 3.5vw, 1.5rem)/.95 var(--font-head);
  text-transform: uppercase; letter-spacing: .06em;
  text-align: center; color: var(--text);
}
.result-tier.tier-perfect { color: var(--gold); }
.result-tier.tier-champ   { color: var(--ice-lt); }
.result-tier.tier-finals  { color: var(--silver-lt); }
.result-tier.tier-conf    { color: var(--silver); }
.result-tier.tier-2nd     { color: rgba(226,232,240,.55); }
.result-tier.tier-1st     { color: rgba(226,232,240,.38); }
.result-tier.tier-miss    { color: var(--red); }

.result-record {
  font: 700 2rem/1 var(--font-num);
  color: var(--ice);
  letter-spacing: .04em;
}

.result-score {
  font: 600 .72rem/1 var(--font-body);
  color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase;
}

.result-categories {
  display: flex; flex-wrap: wrap; gap: .4rem;
  justify-content: center; width: 100%;
}
.result-cat {
  display: flex; flex-direction: column; align-items: center;
  padding: .4rem .7rem;
  background: rgba(14,165,233,.06); border: 1px solid var(--rim);
  border-radius: 8px; min-width: 80px;
}
.result-cat-label { font: 600 .52rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.result-cat-val   { font: 700 1.1rem/1.2 var(--font-num); color: var(--ice-lt); margin-top: .18rem; }

.result-roster {
  display: grid; grid-template-columns: 1fr 1fr; gap: .35rem;
  width: 100%;
}
.result-roster-row {
  display: flex; align-items: center; gap: .5rem;
  padding: .3rem .5rem;
  background: rgba(14,165,233,.04); border: 1px solid var(--rim);
  border-radius: 6px;
}
.result-roster-slot { flex-shrink: 0; width: 24px; font: 700 .6rem/1 var(--font-head); letter-spacing: .06em; color: var(--silver); text-transform: uppercase; }
.result-roster-name { font: 600 .72rem/1.1 var(--font-card); color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-roster-ovr  { font: 700 .62rem/1 var(--font-num); color: var(--silver); }

.result-actions {
  display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center;
}

.result-lb-section {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  width: 100%;
  padding-top: .6rem; border-top: 1px solid var(--rim);
}

.lb-name-input {
  width: 100%; max-width: 280px; padding: .5rem .75rem;
  background: rgba(14,165,233,.06); border: 1px solid var(--rim);
  border-radius: 8px; color: var(--text);
  font: 500 .84rem/1 var(--font-body);
  outline: none; transition: border-color .14s;
}
.lb-name-input:focus { border-color: var(--ice); }
.lb-name-input::placeholder { color: var(--text-muted); }

.lb-status { font: 400 .7rem/1.4 var(--font-body); color: var(--text-muted); text-align: center; }
.lb-status.ok  { color: var(--green); }
.lb-status.err { color: var(--red); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .game-shell { flex-direction: column; overflow: visible; }
  .roll-panel { border-right: none; border-bottom: 1px solid var(--rim); overflow: visible; }
  .depth-chart-panel { width: 100%; flex-shrink: 0; }
  .player-list { grid-template-columns: 1fr; }
  .nav-links { gap: .6rem; font-size: .64rem; }
  .assign-dialog { max-width: 100vw; border-radius: 12px 12px 0 0; margin-bottom: 0; }
}
