/* â”€â”€ A Perfect Draft: Basketball â€” styles.css v3 â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* â”€â”€ Variables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

:root {
  --navy:      #071528;
  --red:       #c8102e;
  --red-hi:    #e8324a;
  --blue:      #1a4fa8;
  --blue-hi:   #2d6fd6;
  --white:     #f5f7fa;
  --paper:     #fdfcf5;
  --field:     #1a3d1b;
  --field-mid: #234f25;
  --green-ok:  #2a7028;
  --muted:     #6a7a8a;
  /* accent = red for CTAs/highlights throughout Basketball UI */
  --accent:    #c8102e;
  --accent-hi: #e8324a;
  --gold:      #c98a20;   /* kept for score/OVR numbers only */
  --gold-hi:   #f5c842;
  --line:      rgba(200,16,46,.25);
  --line-soft: rgba(200,16,46,.12);
  --line-blue: rgba(26,79,168,.3);
  --shadow:    rgba(0,0,0,.5);
}

/* â”€â”€ Reset â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--navy);
  color: var(--paper);
  min-height: 100svh;
  overflow-x: hidden;
}

button  { cursor: pointer; font-family: inherit; }
dialog  { border: none; padding: 0; }
dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }

.hidden { display: none !important; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HOME SCREEN
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.home-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 3rem 1.25rem 3.5rem;
  background:
    linear-gradient(180deg, rgba(10,14,26,.55) 0%, rgba(10,14,26,.72) 100%),
    url('logo/CourtBG.svg') center center / cover no-repeat fixed;
  gap: 2.25rem;
}

/* Hero */

.home-hero {
  text-align: center;
  max-width: 520px;
}

.home-main-logo {
  display: block;
  width: clamp(180px, 38vw, 300px);
  height: auto;
  margin: 0 auto .25rem;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,.55));
}

.home-target-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1rem, 3.5vw, 1.45rem);
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(245,247,250,.45);
  margin-top: .55rem;
}

.home-target-num {
  color: var(--red);
  font-weight: 600;
}

.home-desc {
  font-family: 'Barlow', sans-serif;
  font-size: .9rem;
  line-height: 1.6;
  color: rgba(245,247,250,.5);
  margin-top: 1rem;
}

/* Mode cards */

.mode-cards {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 760px;
}

.mode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.5)) drop-shadow(0 2px 5px rgba(0,0,0,.28));
  transition: filter .18s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  text-align: center;
}

.mode-card:hover, .mode-card:focus-visible {
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.65)) drop-shadow(0 3px 8px rgba(0,0,0,.32));
  outline: none;
}

.mode-logo-wrap {
  width: clamp(120px, min(18vw, 34svh), 220px);
  height: clamp(120px, min(18vw, 34svh), 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease;
}

.mode-card:hover .mode-logo-wrap,
.mode-card:focus-visible .mode-logo-wrap { transform: scale(1.06); }

.mode-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mode-card-blurb {
  font-family: 'Barlow', sans-serif;
  font-size: .8rem;
  line-height: 1.5;
  color: rgba(245,247,250,.5);
  max-width: 180px;
}

.home-footnote {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(253,252,245,.22);
  text-align: center;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   GAME SCREEN
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.game-screen {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(10,14,26,.35) 0%, rgba(10,14,26,.50) 100%),
    url('logo/CourtBG.svg') center center / cover no-repeat;
  background-attachment: scroll;
}

/* Main game layout: depth chart left, draft panel right */

.game-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: .75rem;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: .75rem .75rem 1.5rem;
  flex: 1;
  align-items: start;
}

.depth-chart-panel {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  position: sticky;
  top: .75rem;
  overflow: hidden;
}

.dc-filler {
  display: block;
  width: 100%;
  min-height: 0;
  flex-shrink: 1;
  object-fit: contain;
  object-position: top;
  margin-top: auto;
  overflow: hidden;
  opacity: .72;
}
.dc-panel-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(253,252,245,.35);
  padding: .1rem .5rem;
}
.dc-sep {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: .15rem .3rem;
}

/* Header */

.game-header {
  display: none !important;
}

.game-header-center {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .6rem;
  justify-content: center;
}

.game-header-logo {
  display: block;
  height: 44px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}

.game-header-mode {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245,247,250,.45);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 3px;
  padding: .15rem .5rem;
}

.game-header-slots {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  letter-spacing: .05em;
  color: var(--white);
  min-width: 56px;
  text-align: right;
}

.header-home-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: none;
  border: 1.5px solid rgba(200,16,46,.3);
  color: rgba(200,16,46,.6);
  border-radius: 4px;
  padding: .28rem .65rem;
  transition: color .13s, border-color .13s;
  flex-shrink: 0;
}

.header-home-btn:hover { color: var(--red-hi); border-color: var(--red); }

/* â”€â”€ Roll button pulse â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

@keyframes roll-pulse {
  0%   { box-shadow: 0 4px 0 #8a0a1e, 0 0 0 0 rgba(232,50,74,.0); }
  50%  { box-shadow: 0 4px 0 #8a0a1e, 0 0 0 10px rgba(232,50,74,.25); }
  100% { box-shadow: 0 4px 0 #8a0a1e, 0 0 0 18px rgba(232,50,74,.0); }
}

.roll-btn--pulse { animation: roll-pulse .7s ease-out; }

/* â”€â”€ Roll modal overlay â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

@keyframes logo-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.roll-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(7,21,40,.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.roll-modal.hidden { display: none; }

.roll-modal-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  animation: logo-spin .65s linear infinite;
  filter: drop-shadow(0 0 24px rgba(201,138,32,.55));
}

/* â”€â”€ Team panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.team-panel {
  display: flex;
  flex-direction: column;
  padding: .9rem;
  gap: .65rem;
  overflow-y: auto;
  background: rgba(7,21,40,.78);
  border: 1.5px solid rgba(255,255,255,.08);
  border-top: 3px solid rgba(200,16,46,.5);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
}

/* Team card */

.team-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
}

.team-card-empty {
  text-align: center;
  padding: 2.25rem 1.5rem;
}

.team-card-empty-icon {
  font-size: 2.4rem;
  opacity: .2;
  margin-bottom: .6rem;
  display: block;
}

.team-card-empty-text {
  font-family: 'Barlow', sans-serif;
  font-style: italic;
  font-size: .85rem;
  color: rgba(253,252,245,.28);
}

#teamCardContent {
  padding: 1rem 1.15rem .9rem;
}

.team-card-head {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  margin-bottom: .4rem;
}

.team-card-year {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2rem;
  letter-spacing: .05em;
  color: var(--gold);
  line-height: 1;
}

.team-card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--paper);
  line-height: 1.05;
}

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

.team-card-records {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .5rem;
  align-items: center;
}
.team-card-record-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: rgba(253,252,245,.5);
}

.team-card-record-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(253,252,245,.4);
}

.team-card-conf {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 3px;
  padding: .12rem .4rem;
}

.team-card-conf--afc {
  color: #7ab3e0;
  background: rgba(122,179,224,.1);
  border: 1px solid rgba(122,179,224,.25);
}

.team-card-conf--nfc {
  color: #e07a7a;
  background: rgba(224,122,122,.1);
  border: 1px solid rgba(224,122,122,.25);
}

.team-card-hint {
  font-family: 'Barlow', sans-serif;
  font-style: italic;
  font-size: .78rem;
  color: rgba(253,252,245,.32);
}

/* Position filter chips â€” lives inside draft-nav-left */

.player-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.pos-filter-chip {
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.7);
  font: 700 11px/1.4 'Barlow Condensed', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.pos-filter-chip:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

.pos-filter-chip--active {
  background: var(--chip-color, rgba(255,255,255,.85));
  color: #fff;
  border-color: var(--chip-color, rgba(255,255,255,.85));
}

.pos-filter-chip--active[data-pos="ALL"] {
  background: rgba(255,255,255,.85);
  color: #111;
  border-color: #fff;
}

.pos-filter-count {
  font-weight: 400;
  opacity: .75;
}

/* Player list â€” vertical stack of position sections, no gaps */

.player-list {
  display: flex;
  flex-direction: column;
}

/* Position sections */

.pos-section {
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.pos-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: .58rem .85rem;
  background: color-mix(in srgb, var(--sec-color) 22%, rgba(0,0,0,.55));
  cursor: pointer;
  list-style: none;
  user-select: none;
  border-left: 6px solid var(--sec-color);
  transition: background .15s;
}

.pos-section-head::-webkit-details-marker { display: none; }

.pos-section-head:hover {
  background: color-mix(in srgb, var(--sec-color) 35%, rgba(0,0,0,.45));
}

.pos-section-label {
  font: 800 1.45rem/1 'Barlow Condensed', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}

.pos-section-count {
  font: 700 .82rem/1 'Barlow Condensed', sans-serif;
  color: rgba(255,255,255,.55);
  background: rgba(0,0,0,.3);
  padding: .18rem .48rem;
  border-radius: 10px;
}

.pos-section-head::after {
  content: "â–¾";
  margin-left: auto;
  color: rgba(255,255,255,.45);
  font-size: 11px;
  transition: transform .2s;
}

details.pos-section:not([open]) .pos-section-head::after {
  transform: rotate(-90deg);
}

.pos-section-head::after {
  font-size: .82rem;
}

.pos-section-body {
  display: flex;
  flex-direction: column;
}

.player-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid rgba(200,16,46,.15);
  border-radius: 7px;
  padding: .5rem .7rem;
  cursor: pointer;
  transition: background .1s, border-color .1s, box-shadow .1s;
  width: 100%;
  text-align: left;
}

.player-row:hover, .player-row:focus-visible {
  background: #fff8f9;
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(200,16,46,.25);
  outline: none;
}

.player-row:active { box-shadow: none; }

.player-row-pos {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  background: rgba(200,16,46,.08);
  border: 1px solid rgba(200,16,46,.2);
  border-radius: 4px;
  padding: .28rem .3rem;
  min-width: 38px;
}

.player-row-info {
  min-width: 0;
  flex: 1;
}

.player-row-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0e1a2a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.player-row-archetype {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(14,26,42,.38);
}

.player-row-team {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(14,26,42,.45);
  margin-top: .05rem;
}

.player-row-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
  margin-top: .18rem;
}
.psc {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .7rem;
  font-weight: 400;
  color: rgba(14,26,42,.48);
  background: none;
  border-radius: 0;
  padding: 0;
  white-space: nowrap;
  letter-spacing: .01em;
}
.psc strong {
  font-weight: 600;
  color: rgba(14,26,42,.68);
}

/* Award tier badges */
.player-badge {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .1rem .28rem;
  border-radius: 3px;
  vertical-align: middle;
  flex-shrink: 0;
}
.player-badge.award {
  background: rgba(201,138,32,.12);
  color: #9a650f;
  border: 1px solid rgba(201,138,32,.46);
}

.player-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .1rem;
}

.player-row-ovr {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: .03em;
  color: var(--gold);
}

.player-row-ovr[data-tier="elite"]   { color: #56d95a; }
.player-row-ovr[data-tier="poor"]    { color: rgba(253,252,245,.38); }

/* Roll controls */

.roll-controls {
  display: flex;
  gap: .6rem;
  align-items: stretch;
  flex-shrink: 0;
}

.roll-btn {
  flex: 1;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--red-hi) 0%, var(--red) 100%);
  color: var(--white);
  border: none;
  border-top: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: .8rem 1.25rem;
  box-shadow: 0 4px 0 #7a0619, 0 6px 18px rgba(200,16,46,.35);
  transition: filter .1s, transform .07s, box-shadow .07s;
}

.roll-btn:hover  { filter: brightness(1.1); }
.roll-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #7a0619, 0 2px 8px rgba(200,16,46,.2);
}
.roll-btn:disabled {
  opacity: .35;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.reroll-btn-icon {
  display: block;
  object-fit: contain;
}

.reroll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 2px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity .15s, filter .15s;
}

.reroll-btn:hover:not(:disabled) { filter: brightness(1.15) drop-shadow(0 0 4px rgba(255,255,255,.3)); }
.reroll-btn:disabled { opacity: .25; cursor: default; filter: grayscale(1); }

.no-match-msg {
  font-family: 'Barlow', sans-serif;
  font-style: italic;
  font-size: .8rem;
  color: rgba(253,252,245,.3);
  text-align: center;
  padding: .25rem 0;
}



/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   DIALOGS
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.slot-picker-btn:hover { background: rgba(201,138,32,.14); border-color: var(--gold); }

/* â”€â”€ Result dialog â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

@keyframes result-in {
  from { opacity: 0; transform: scale(.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.result-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  background: var(--navy);
  border: 2px solid rgba(201,138,32,.35);
  border-radius: 14px;
  width: min(580px, calc(100vw - 1.5rem));
  max-height: calc(100svh - 2rem);
  overflow-y: auto;
  color: var(--paper);
  padding: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.result-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: result-in .3s cubic-bezier(.22,1,.36,1) both;
}

.result-header {
  background: linear-gradient(180deg, rgba(35,79,37,.7) 0%, transparent 100%),
              var(--field);
  border-bottom: 2px solid var(--line);
  padding: 1.15rem 1.5rem 1.5rem;
  text-align: center;
  flex-shrink: 0;
  transition: background .3s;
}

/* Perfect season gets a special gold-tinted header */
.result-header:has([data-tier="perfect"]) {
  background: linear-gradient(180deg, rgba(201,138,32,.35) 0%, transparent 100%),
              var(--field);
}

.result-brand-logo {
  display: block;
  width: clamp(58px, 13vw, 92px);
  height: clamp(58px, 13vw, 92px);
  object-fit: contain;
  margin: 0 auto .35rem;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.38));
}

.result-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(253,252,245,.35);
  margin-bottom: .5rem;
}

.result-record {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  letter-spacing: .05em;
  color: var(--gold);
  line-height: .95;
}

/* Tier text â€” color varies by outcome */
.result-tier {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-top: .4rem;
  color: rgba(253,252,245,.55);
}

.result-tier[data-tier="perfect"]   { color: var(--gold-hi); }
.result-tier[data-tier="champion"]  { color: var(--gold); }
.result-tier[data-tier="contender"] { color: rgba(253,252,245,.7); }
.result-tier[data-tier="rebuilding"]{ color: rgba(253,252,245,.4); }
.result-tier[data-tier="bust"]      { color: rgba(196,21,25,.75); }

.result-score-pill {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--navy);
  background: var(--gold);
  border-radius: 20px;
  padding: .22rem .85rem;
  margin-top: .85rem;
}

/* Result body */

.result-body {
  padding: 1.15rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.result-section { }

.result-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(201,138,32,.55);
  margin-bottom: .6rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--line-soft);
}

/* Score breakdown bars */

.score-breakdown {
  display: flex;
  flex-direction: column;
  gap: .38rem;
}

.score-row {
  display: grid;
  grid-template-columns: 148px 1fr 40px;
  align-items: center;
  gap: .55rem;
}

.score-row-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(253,252,245,.5);
  white-space: nowrap;
}

.score-bar-track {
  height: 6px;
  background: rgba(255,255,255,.07);
  border-radius: 3px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .5s ease;
}

.score-row-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  color: var(--gold);
  text-align: right;
}

/* Result roster */

.result-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .5rem 1rem;
}

.result-roster-col {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.result-roster-col-head {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .55;
  padding-bottom: .25rem;
  margin-bottom: .15rem;
  border-bottom: 1px solid rgba(201,138,32,.18);
}

.result-roster-row {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  min-width: 0;
}

.result-roster-slot {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold);
  min-width: 34px;
  flex-shrink: 0;
}

.result-roster-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .74rem;
  font-weight: 600;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.result-roster-year {
  font-family: 'Barlow', sans-serif;
  font-size: .62rem;
  color: rgba(253,252,245,.32);
  white-space: nowrap;
  flex-shrink: 0;
}

.result-roster-ovr {
  font-family: 'Rajdhani', sans-serif;
  font-size: .68rem;
  font-weight: 800;
  color: var(--gold-hi);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Actions */

.result-actions {
  display: flex;
  gap: .65rem;
  padding: .85rem 1.25rem 1.25rem;
  flex-shrink: 0;
  border-top: 1px solid var(--line-soft);
}

.play-again-btn {
  flex: 1;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--red-hi) 0%, var(--red) 100%);
  color: var(--white);
  border: none;
  border-top: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: .75rem 1rem;
  box-shadow: 0 4px 0 #7a0619;
  transition: filter .12s, transform .07s, box-shadow .07s;
}

.play-again-btn:hover  { filter: brightness(1.1); }
.play-again-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #7a0619;
}

.share-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: none;
  border: 1.5px solid rgba(26,79,168,.45);
  color: var(--blue-hi);
  border-radius: 8px;
  padding: .75rem 1.15rem;
  transition: background .12s, border-color .12s, color .12s;
  flex-shrink: 0;
}

.share-btn:hover {
  background: rgba(26,79,168,.12);
  border-color: var(--blue-hi);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RESPONSIVE
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

@media (max-width: 680px) {
  .game-layout { padding: .5rem .5rem 1rem; gap: .5rem; grid-template-columns: 1fr; }
  .player-list { flex-direction: column; }
  .result-roster-grid { grid-template-columns: 1fr; }
  .score-row { grid-template-columns: 115px 1fr 36px; }
  .result-body { padding: .9rem 1rem .85rem; }
}

/* â”€â”€ Mobile home screen: compact, no-scroll, 3-across cards â”€â”€ */
@media (max-width: 760px) {
  .home-screen {
    height: 100svh;
    min-height: unset;
    overflow: hidden;
    padding: clamp(.75rem, 3svh, 1.5rem) 1rem clamp(.75rem, 2.5svh, 1.25rem);
    gap: 0;
    justify-content: space-between;
    align-items: center;
  }

  .home-hero {
    flex-shrink: 0;
  }

  .home-main-logo {
    width: clamp(160px, 52vw, 280px);
  }

  .home-target-score {
    margin-top: .25rem;
    font-size: .9rem;
  }

  .home-desc { display: none; }

  .mode-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(.3rem, 2vw, .75rem);
    max-width: 100%;
    width: 100%;
    flex-shrink: 0;
  }

  .mode-logo-wrap {
    width: min(100%, 26vw);
    height: min(100%, 26vw);
  }

  .mode-card-blurb { display: none; }

  .home-visit-count {
    display: block;
    margin-top: .25rem;
    font-size: .55rem;
  }

  .home-footer-links {
    flex-shrink: 0;
    padding-bottom: 0;
    gap: 1rem;
    margin-top: 0;
  }

  .home-footer-links .nav-logo-btn img {
    width: 56px;
    height: 56px;
    object-fit: contain;
  }

  .home-footer-links .footer-link-btn {
    font-size: .65rem;
  }
}

@media (max-width: 420px) {
  .home-screen { padding: .6rem .75rem .65rem; }
  .home-main-logo { width: clamp(140px, 58vw, 220px); }
  .home-footer-links .nav-logo-btn img { width: 48px; height: 48px; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   WELCOME DIALOG
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.welcome-dialog { display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(420px, calc(100vw - 1rem));
  border: 2px solid #1f4c97;
  border-radius: 10px;
  background: #f7f9fc;
  color: #071528;
  box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 6px 16px rgba(0,0,0,.3);
  padding: 0;
  overflow: hidden;
}

.welcome-dialog::backdrop {
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(5px);
}

.welcome-hero {
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(245,248,252,.84)),
    linear-gradient(90deg, rgba(191,13,29,.12), transparent 52%, rgba(31,76,151,.16)),
    #fff;
  border-bottom: 3px solid #1f4c97;
  padding: 1rem 1.5rem .75rem;
  text-align: center;
}
.welcome-logo {
  display: block;
  width: min(62%, 190px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 5px 12px rgba(7,21,40,.22));
}

.welcome-body { padding: .9rem 1.1rem .8rem; background: #fff; text-align: center; }
.welcome-pitch {
  font-family: 'Barlow', sans-serif;
  font-size: .82rem;
  line-height: 1.5;
  color: rgba(7,21,40,.72);
  font-style: italic;
  margin: 0 0 .75rem;
}
.welcome-pitch strong { color: #bf0d1d; font-style: normal; }

.welcome-modes {
  border: 1px solid rgba(7,21,40,.12);
  border-radius: 6px;
  overflow: hidden;
  background: #f7f9fc;
}
.wm-item {
  display: grid;
  grid-template-columns: 44px auto 1fr;
  align-items: center;
  column-gap: .7rem;
  padding: .5rem .65rem;
  border-bottom: 1px solid rgba(7,21,40,.1);
}
.wm-item:last-child { border-bottom: none; }
.wm-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(7,21,40,.2));
}
.wm-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .92rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: .03em;
  white-space: nowrap;
}
.wm-desc {
  font-family: 'Barlow', sans-serif;
  font-size: .72rem;
  line-height: 1.3;
  color: rgba(7,21,40,.62);
  font-style: italic;
}

.welcome-footer {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .6rem 1.1rem .65rem;
  background: #f7f9fc;
  border-top: 1px solid rgba(7,21,40,.12);
}
.welcome-footer-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.welcome-play-btn {
  background: linear-gradient(180deg, #e8213a 0%, var(--red) 100%);
  color: #fff;
  border: none;
  border-top: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  padding: .65rem 1.1rem;
  box-shadow: 0 4px 0 #7a0a1a, 0 6px 18px rgba(200,16,46,.4);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  flex: 1;
  transition: filter .12s, transform .08s, box-shadow .08s;
}
.welcome-play-btn:hover { filter: brightness(1.08); }
.welcome-play-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #7a0a1a, 0 3px 8px rgba(200,16,46,.3);
}

.welcome-skip-label {
  display: flex;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .62rem;
  letter-spacing: .04em;
  color: rgba(7,21,40,.55);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .15s;
}
.welcome-skip-label:hover { color: #071528; }
.welcome-skip-label input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 24px; height: 14px;
  background: rgba(7,21,40,.18);
  border-radius: 7px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: background .22s;
}
.welcome-skip-label input[type="checkbox"]::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  top: 2px; left: 2px;
  transition: transform .22s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 1px 3px rgba(0,0,0,.28);
}
.welcome-skip-label input[type="checkbox"]:checked { background: var(--red); }
.welcome-skip-label input[type="checkbox"]:checked::after { transform: translateX(10px); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HOME FOOTER LINKS & VISIT COUNT
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.home-footer-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  margin-top: 1rem;
}
.footer-link-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245,247,250,.4);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: .1rem .2rem;
  transition: color .15s;
}
.footer-link-btn:hover { color: var(--red); }
.footer-link-sep { color: rgba(245,247,250,.2); font-size: .7rem; }
.home-visit-count {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245,247,250,.18);
}

/* â”€â”€ Game header help button â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.game-header-right {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.header-htp-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: rgba(245,247,250,.5);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.header-htp-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* â”€â”€ Icon button (close X) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.icon-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  color: rgba(245,247,250,.5);
  font-size: .8rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HOW TO PLAY DIALOG
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.htp-dialog { display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(500px, calc(100vw - 1rem));
  max-height: min(640px, calc(100svh - 1rem));
  background: #0d1220;
  border: 1.5px solid rgba(200,16,46,.35);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;

  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}

.htp-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
.htp-box { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.htp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem;
  background: linear-gradient(160deg, #0d1428 0%, #1a0a14 100%);
  border-bottom: 2px solid rgba(200,16,46,.3);
  flex-shrink: 0;
}
.htp-head-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
.htp-body { overflow-y: auto; flex: 1; padding: .5rem .75rem .75rem; }
.htp-accord { border-bottom: 1px solid rgba(255,255,255,.07); }
.htp-accord-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--red);
  padding: .65rem .25rem; cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: .5rem;
}
.htp-accord-title::before { content: "â–¶"; font-size: .55rem; color: rgba(200,16,46,.5); transition: transform .2s; }
.htp-accord[open] .htp-accord-title::before { transform: rotate(90deg); }
.htp-accord-body {
  padding: 0 .25rem .75rem;
  font-family: 'Barlow', sans-serif;
  font-size: .82rem; line-height: 1.5; color: rgba(245,247,250,.6);
}
.htp-accord-body ul { padding-left: 1.1rem; }
.htp-accord-body li { margin-bottom: .35rem; }
.htp-accord-body strong { color: rgba(245,247,250,.88); font-weight: 600; }
.htp-accord-body p { margin-bottom: .45rem; }
.htp-roster-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }
.htp-chip {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  border-radius: 4px; padding: .15rem .45rem;
}
.htp-chip-off { background: rgba(200,16,46,.2); color: #e8324a; border: 1px solid rgba(200,16,46,.3); }
.htp-chip-def { background: rgba(26,79,168,.2); color: #2d6fd6; border: 1px solid rgba(26,79,168,.3); }
.htp-chip-spec { background: rgba(201,138,32,.18); color: var(--gold-hi); border: 1px solid rgba(201,138,32,.35); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LEADERBOARD DIALOG
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.htp-dialog {
  background: #f7f9fc;
  border-color: rgba(7,21,40,.22);
}

.htp-head {
  gap: .75rem;
  padding: .65rem .85rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(245,248,252,.84)),
    linear-gradient(90deg, rgba(191,13,29,.12), transparent 56%, rgba(31,76,151,.14)),
    #fff;
  border-bottom: 3px solid #1f4c97;
}

.htp-head-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 3px 7px rgba(7,21,40,.22));
  flex: 0 0 auto;
}

.htp-head-title {
  color: #071528;
  font-weight: 800;
  margin-right: auto;
}

.htp-body {
  padding: .7rem .8rem .85rem;
}

.htp-accord {
  background: #fff;
  border: 1px solid rgba(7,21,40,.12);
  border-radius: 6px;
  margin-bottom: .55rem;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(7,21,40,.04);
}

.htp-accord-title {
  padding: .72rem .8rem;
  background: #fff;
  font-size: .92rem;
  font-weight: 800;
}

.htp-accord-body {
  padding: 0 .9rem .85rem 2rem;
  color: rgba(7,21,40,.72);
  font-size: .86rem;
  line-height: 1.55;
}

.htp-accord-body strong {
  color: #071528;
  font-weight: 700;
}

.welcome-dialog .icon-btn,
.htp-dialog .icon-btn {
  background: rgba(7,21,40,.06);
  border-color: rgba(7,21,40,.18);
  color: rgba(7,21,40,.58);
}

.lb-dialog { display: none;
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%); margin: 0;
  width: min(640px, calc(100vw - 1rem));
  max-height: min(680px, calc(100svh - 1rem));
  background: #0d1220;
  border: 1.5px solid rgba(200,16,46,.35); border-radius: 10px;
  padding: 0; overflow: hidden;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}

.lb-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
.lb-box { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.lb-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem;
  background: linear-gradient(160deg, #0d1428 0%, #1a0a14 100%);
  border-bottom: 2px solid rgba(200,16,46,.3);
  flex-shrink: 0; gap: .75rem;
}
.lb-head-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #fff; flex: 1;
}
.lb-head-actions { display: flex; align-items: center; gap: .5rem; }
.lb-mode-select {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px; color: rgba(245,247,250,.7); padding: .25rem .5rem; cursor: pointer;
}
.lb-body { overflow-y: auto; flex: 1; padding: .5rem; }
.lb-loading, .lb-empty {
  font-family: 'Barlow', sans-serif; font-size: .82rem;
  color: rgba(245,247,250,.35); text-align: center; padding: 2rem;
}
.lb-table { width: 100%; border-collapse: collapse; font-family: 'Barlow', sans-serif; font-size: .8rem; }
.lb-table thead tr { background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.1); }
.lb-table th {
  font-family: 'Barlow Condensed', sans-serif; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(245,247,250,.35);
  padding: .4rem .5rem; text-align: left;
}
.lb-table td { padding: .38rem .5rem; border-bottom: 1px solid rgba(255,255,255,.05); color: rgba(245,247,250,.72); }
.lb-table tbody tr:hover td { background: rgba(200,16,46,.06); }
.lb-row-perfect td { color: var(--red); font-weight: 600; }
.lb-rank { color: rgba(245,247,250,.3); font-size: .72rem; }
.lb-name { font-weight: 600; color: rgba(245,247,250,.9); }
.lb-record { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; }
.lb-score { font-family: 'Orbitron', monospace; font-size: .72rem; color: var(--gold); }
.lb-mode { font-size: .68rem; color: rgba(245,247,250,.3); text-transform: uppercase; letter-spacing: .06em; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   NAME PROMPT DIALOG
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.name-prompt-dialog { display: none;
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%); margin: 0;
  width: min(360px, calc(100vw - 1rem));
  background: #0d1220;
  border: 1.5px solid rgba(200,16,46,.4); border-radius: 10px;
  padding: 0; box-shadow: 0 24px 64px rgba(0,0,0,.6);
}

.name-prompt-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
.np-inner { padding: 1.25rem 1.25rem 1.1rem; }
.np-record {
  font-family: 'Orbitron', monospace; font-size: .75rem;
  color: var(--red); margin-bottom: .3rem; letter-spacing: .06em;
}
.np-title {
  font-family: 'Rajdhani', sans-serif; font-size: 1.3rem; font-weight: 700;
  color: #fff; margin-bottom: .9rem; letter-spacing: .04em;
}
.np-input {
  width: 100%; background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.15); border-radius: 6px;
  color: #fff; font-family: 'Barlow', sans-serif; font-size: .9rem;
  padding: .55rem .75rem; margin-bottom: .55rem; outline: none; transition: border-color .15s;
}
.np-input:focus { border-color: var(--red); }
.np-error { font-family: 'Barlow', sans-serif; font-size: .72rem; color: var(--red); margin-bottom: .4rem; }
.np-actions { display: flex; gap: .5rem; }
.np-submit-btn {
  flex: 1;
  background: linear-gradient(180deg, #e8213a 0%, var(--red) 100%);
  color: #fff; border: none; border-radius: 6px;
  font-family: 'Barlow Condensed', sans-serif; font-size: .85rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: .6rem .8rem;
  cursor: pointer; box-shadow: 0 3px 0 #7a0a1a; transition: filter .12s;
}
.np-submit-btn:hover:not(:disabled) { filter: brightness(1.08); }
.np-submit-btn:disabled { opacity: .6; cursor: default; }
.np-skip-btn {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px; color: rgba(245,247,250,.45);
  font-family: 'Barlow Condensed', sans-serif; font-size: .8rem; font-weight: 600;
  letter-spacing: .06em; padding: .6rem .9rem; cursor: pointer;
  transition: background .15s, color .15s;
}
.np-skip-btn:hover { background: rgba(255,255,255,.1); color: rgba(245,247,250,.8); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CHANGELOG DIALOG
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.changelog-dialog { display: none;
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%); margin: 0;
  width: min(480px, calc(100vw - 1rem));
  max-height: min(560px, calc(100svh - 1rem));
  background: #0d1220;
  border: 1.5px solid rgba(200,16,46,.35); border-radius: 10px;
  padding: 0; overflow: hidden;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}

.changelog-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
.changelog-box { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.changelog-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem;
  background: linear-gradient(160deg, #0d1428 0%, #1a0a14 100%);
  border-bottom: 2px solid rgba(200,16,46,.3); flex-shrink: 0;
}
.changelog-head-title {
  font-family: 'Rajdhani', sans-serif; font-size: 1.4rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
.changelog-body { overflow-y: auto; flex: 1; padding: .75rem 1rem; }
.cl-entry {
  display: grid; grid-template-columns: 80px auto 1fr;
  gap: .35rem .65rem; align-items: start;
  padding: .65rem 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.cl-entry:last-child { border-bottom: none; }
.cl-date {
  font-family: 'Barlow Condensed', sans-serif; font-size: .68rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: rgba(245,247,250,.28); padding-top: .12rem;
}
.cl-tag {
  font-family: 'Barlow Condensed', sans-serif; font-size: .6rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; border-radius: 3px; padding: .12rem .38rem;
  align-self: start; margin-top: .1rem;
}
.cl-tag-new { background: var(--red); color: #fff; }
.cl-tag-fix { background: rgba(26,79,168,.7); color: #fff; }
.cl-tag-update { background: rgba(201,138,32,.7); color: #fff; }
.cl-text { font-family: 'Barlow', sans-serif; font-size: .8rem; line-height: 1.45; color: rgba(245,247,250,.6); }

/* Dialog open-state display overrides */
.welcome-dialog[open]      { display: block; }
.htp-dialog[open]          { display: flex; }
.lb-dialog[open]           { display: flex; }
.changelog-dialog[open]    { display: flex; }
.name-prompt-dialog[open]  { display: block; }
.result-dialog[open]       { display: flex; }

/* Draft depth chart and assignment modal */
@keyframes dc-gold-pulse {
  0%, 100% { box-shadow: inset 4px 0 0 rgba(245,200,66,.65); }
  50%      { box-shadow: inset 7px 0 0 rgba(245,200,66,1), 0 0 16px rgba(245,200,66,.18); }
}

.game-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  background: #061323;
  border-bottom: 3px solid var(--gold);
  padding: .45rem .85rem;
}

.game-header-logo { height: 50px; }
.game-header-center { justify-content: center; }
.game-header-mode {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  color: var(--paper);
  border-color: rgba(201,138,32,.48);
  background: rgba(201,138,32,.08);
}
.header-home-btn { border-color: rgba(201,138,32,.42); color: rgba(253,252,245,.72); }
.header-home-btn:hover { color: var(--gold-hi); border-color: var(--gold); }
.header-htp-btn:hover { background: var(--gold); color: #071528; border-color: var(--gold); }

.team-card {
  background: linear-gradient(135deg, #071528 0%, #10243f 100%);
  border: 1px solid rgba(255,255,255,.09);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.team-card-head {
  flex-direction: column;
  align-items: flex-start;
  gap: .18rem;
}
.team-card-mode-logo {
  display: none;
}
.team-card-year {
  font-size: .86rem;
  font-weight: 700;
  color: rgba(253,252,245,.42);
  text-transform: uppercase;
}
.team-card-name {
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  letter-spacing: .015em;
}

.depth-chart {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  padding: .35rem;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
}
.dc-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: .3rem;
  min-height: 28px;
  padding: .28rem .42rem;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.045);
}
.dc-row:nth-child(even) { background: rgba(255,255,255,.075); }
.dc-offense { border-left: 3px solid rgba(232,50,74,.75); }
.dc-defense { border-left: 3px solid rgba(45,111,214,.75); }
.dc-special { border-left: 3px solid rgba(201,138,32,.85); }
.dc-slot-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: rgba(253,252,245,.78);
}
.dc-player-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Barlow', sans-serif;
  font-size: .68rem;
  color: rgba(253,252,245,.76);
}
.dc-player-ovr {
  font-family: 'Rajdhani', sans-serif;
  font-size: .7rem;
  font-weight: 800;
  color: var(--gold-hi);
  white-space: nowrap;
}
.dc-empty .dc-player-name { color: rgba(253,252,245,.3); }

.assign-dialog {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(560px, calc(100vw - 1rem));
  max-height: min(720px, calc(100svh - 1rem));
  overflow: hidden;
  background: #071528;
  border: 2px solid rgba(201,138,32,.45);
  border-radius: 12px;
  color: var(--paper);
  box-shadow: 0 24px 70px rgba(0,0,0,.68);
}
.assign-dialog[open] { display: flex; flex-direction: column; }
.assign-close-btn {
  position: absolute;
  top: .6rem;
  right: .6rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
  color: rgba(253,252,245,.7);
  font-size: 1.1rem;
  line-height: 1;
  z-index: 2;
}
.assign-close-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.assign-player-card {
  padding: 1.12rem 4.25rem 1rem 1.25rem;
  background:
    linear-gradient(105deg, var(--assign-team-color, #bf0d1d) 0%, #071528 78%),
    #071528;
  border-bottom: 3px solid var(--assign-team-color, #bf0d1d);
}
.assign-player-top { display: flex; align-items: center; gap: .7rem; margin-bottom: .28rem; }
.assign-player-pos {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.assign-player-pos { color: #fff; }
.assign-player-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.45rem, 6vw, 3.55rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  margin-bottom: .18rem;
}
.assign-player-meta {
  margin-bottom: .75rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(.98rem, 2.2vw, 1.28rem);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(255,255,255,.76);
}
.assign-player-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .38rem; }
.assign-stat {
  min-height: 50px;
  padding: .28rem .48rem .32rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 5px;
  background: rgba(255,255,255,.055);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.assign-stat-label,
.assign-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(253,252,245,.42);
}
.assign-stat-value {
  display: block;
  margin-top: .04rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(.95rem, 2.2vw, 1.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--paper);
}
.assign-section-title { margin-bottom: .45rem; }
.assign-formation { padding: .7rem .85rem .85rem; overflow: hidden; }

/* â”€â”€ Formation diagram â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.formation-diagram {
  background: rgba(7,21,40,.72);
  border: 2px solid rgba(255,255,255,.1);
  border-top: 3px solid var(--red);
  border-bottom: 3px solid var(--blue);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  flex-shrink: 0;
}
.formation-field {
  position: relative;
  width: 100%;
  height: 300px;
  padding-top: 8px;
  box-sizing: border-box;
  background: repeating-linear-gradient(90deg, transparent 0%, transparent calc(10% - 1px), rgba(255,255,255,.04) calc(10% - 1px), rgba(255,255,255,.04) 10%);
}
.los-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 44%;
  height: 1px;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.los-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  background: rgba(7,21,40,.65);
  padding: 0 .6rem;
}
@keyframes eligible-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245,200,66,.7); }
  70%  { box-shadow: 0 0 0 10px rgba(245,200,66,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,200,66,0); }
}
.pos-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  background: none;
  border: none;
  padding: 0;
  cursor: default;
}
.pos-shape {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.72);
  background: rgba(5,14,30,.84);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s, box-shadow .15s;
  overflow: hidden;
}
.pos-sym {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1;
  color: rgba(253,252,245,.92);
  transition: color .15s;
}
.pos-player-name {
  display: none;
}

/* Pos-node states */
.pos-node.pos-eligible { cursor: pointer; }
.pos-node.pos-eligible .pos-shape {
  border-color: var(--gold-hi);
  background: rgba(245,200,66,.12);
  animation: eligible-pulse 1.4s ease-in-out infinite;
}
.pos-node.pos-eligible .pos-sym { color: var(--gold-hi); }
.pos-node.pos-eligible:hover .pos-shape { background: rgba(245,200,66,.28); }

.pos-node.pos-filled .pos-shape {
  border-color: rgba(255,255,255,.4);
  background: rgba(5,14,30,.5);
}
.pos-node.pos-filled .pos-sym { color: rgba(253,252,245,.45); }

.pos-node.pos-ineligible { opacity: .28; }
.pos-node.pos-ineligible .pos-shape { border-color: rgba(255,255,255,.25); }

@media (max-width: 680px) {
  .game-layout { grid-template-columns: 1fr; }
  .depth-chart-panel { position: static; order: 2; }
  .team-panel { order: 1; }
  .assign-player-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .28rem;
  }
  .assign-stat {
    flex: 0 0 auto;
    min-height: unset;
    min-width: 68px;
    padding: .18rem .42rem .2rem;
  }
  .game-header { grid-template-columns: auto 1fr auto; padding: .42rem .55rem; }
  .game-header-logo { height: 42px; }
}

/* Baseball-style Basketball draft board pass */

.game-screen::before-DISABLED {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 46svh;
  pointer-events: none;
  background:
    linear-gradient(18deg, transparent 0 47%, rgba(255,255,255,.34) 48% 49%, transparent 50%),
    linear-gradient(162deg, transparent 0 48%, rgba(255,255,255,.28) 49% 50%, transparent 51%),
    linear-gradient(0deg, rgba(255,232,145,.3), transparent 62%);
  opacity: .55;
}

.game-header {
  position: relative;
  z-index: 2;
  min-height: 76px;
  background:
    linear-gradient(90deg, rgba(191,13,29,.22), transparent 22%, transparent 78%, rgba(31,76,151,.22)),
    #061323;
  border-bottom: 4px solid #c49a45;
  box-shadow: 0 8px 22px rgba(0,0,0,.24);
}

.game-header-logo {
  height: 80px;
  max-width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.6));
}

.game-header-mode {
  font-size: 1.18rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 -2px 0 rgba(191,13,29,.35);
}

.header-home-btn,
.header-htp-btn {
  background: #f8f2e4;
  color: #071528;
  border-color: #c49a45;
  box-shadow: 0 2px 0 rgba(7,21,40,.5);
}

.header-htp-btn { font-size: .95rem; }
.header-home-btn:hover,
.header-htp-btn:hover {
  background: #bf0d1d;
  color: #fff;
  border-color: #bf0d1d;
}

.game-layout {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(230px, 286px) minmax(0, 850px);
  width: min(1180px, calc(100% - 1.5rem));
  gap: .85rem;
  padding-top: 1rem;
}

.depth-chart-panel,
.team-panel {
  background:
    repeating-linear-gradient(0deg, rgba(16,58,105,.08) 0 1px, transparent 1px 31px),
    linear-gradient(90deg, rgba(255,255,255,.78), rgba(255,252,243,.96)),
    #fbf4e3;
  border: 1px solid rgba(7,21,40,.22);
  border-radius: 7px;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  color: #071528;
}

.depth-chart-panel {
  gap: 0;
  overflow: hidden;
}

.dc-panel-title {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .8rem .5rem .65rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: none;
  color: #071528;
  text-shadow: 0 2px 0 #fff, 0 3px 0 rgba(191,13,29,.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.2)),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(31,76,151,.16) 31px 32px);
  border-bottom: 1px solid rgba(7,21,40,.16);
}

.depth-chart {
  padding: .75rem .72rem .85rem;
  border: none;
  border-radius: 0;
  background: transparent;
  gap: .55rem;
}

.dc-row {
  grid-template-columns: 45px minmax(0, 1fr) auto;
  min-height: 33px;
  padding: .32rem .38rem;
  border: 1px solid rgba(7,21,40,.16);
  border-radius: 3px;
  background: rgba(255,251,239,.68);
}

.dc-row:nth-child(even) { background: rgba(246,236,212,.72); }
.dc-sep {
  margin: .18rem 0 .05rem;
  height: 22px;
  background: linear-gradient(90deg, #061323 0%, #061323 72%, #bf0d1d 72%, #bf0d1d 100%);
  border-radius: 2px;
  border: 1px solid rgba(7,21,40,.2);
}
.dc-sep::before {
  content: "DEFENSE";
  display: block;
  padding: .22rem .45rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: #fff;
}

.dc-offense { border-left: 4px solid #bf0d1d; }
.dc-defense { border-left: 4px solid #1f4c97; }
.dc-special { border-left: 4px solid #c98a20; }
.dc-slot-label {
  color: #bf0d1d;
  font-size: .82rem;
}
.dc-defense .dc-slot-label { color: #1f4c97; }
.dc-special .dc-slot-label { color: #9a650f; }
.dc-player-name {
  color: #071528;
  font-size: .76rem;
  font-style: italic;
}
.dc-player-main,
.dc-player-team {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dc-player-main {
  flex: 0 1 auto;
}
.dc-player-team {
  flex: 0 0 auto;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .68rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(7,21,40,.58);
}
.dc-empty .dc-player-name {
  color: rgba(7,21,40,.54);
}
.dc-player-ovr {
  color: #8a5b10;
  font-size: .78rem;
}

.team-panel {
  padding: .85rem;
  border-top: 1px solid rgba(7,21,40,.22);
  backdrop-filter: none;
  overflow: visible;
}

.team-card {
  order: 1;
  min-height: 112px;
  background:
    linear-gradient(90deg, transparent 0 70%, rgba(191,13,29,.08)),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(31,76,151,.14) 31px 32px),
    rgba(255,252,243,.78);
  border: none;
  border-left: 0;
  border-radius: 3px;
  box-shadow: none;
  color: #071528;
}

#teamCardContent {
  position: relative;
  padding: .95rem 120px .8rem 1rem;
}

.team-card-empty {
  padding: 2.15rem 1rem;
}

.team-card-empty-icon {
  color: #bf0d1d;
  opacity: .22;
}

.team-card-empty-text,
.team-card-hint {
  color: rgba(7,21,40,.56);
}

.team-card-head {
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .08rem .8rem;
  margin-bottom: .36rem;
}

.team-card-head-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .08rem .8rem;
}

.team-card-mode-logo {
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 110px;
  height: auto;
  object-fit: contain;
  object-position: right center;
}

.team-card-head::before {
  content: "CURRENT TEAM";
  flex: 0 0 100%;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: #bf0d1d;
}

.team-card-year {
  font-size: clamp(2.85rem, 5vw, 4.25rem);
  line-height: .82;
  color: #c98218;
}

.team-card-name {
  display: inline;
  font-size: clamp(2.45rem, 4.6vw, 4rem);
  line-height: .86;
  color: #071528;
}

.team-card-meta {
  margin-bottom: .35rem;
}

.team-card-records {
  gap: .25rem .65rem;
}

.team-card-record-text {
  color: rgba(7,21,40,.48);
}

.team-card-conf {
  border-radius: 2px;
  background: #061323;
  color: #fff;
  border-color: #061323;
}

.player-list {
  order: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}

.player-col {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  min-width: 0;
}

.player-col-head {
  margin: 0;
  padding: .35rem .55rem;
  color: #fff;
  background: #061323;
  border: 1px solid rgba(7,21,40,.25);
  border-radius: 3px 3px 0 0;
}

.player-col:nth-child(2) .player-col-head {
  background: #1f4c97;
}

.player-row {
  min-height: 52px;
  border-radius: 3px;
  border-color: rgba(7,21,40,.17);
  background: rgba(255,252,243,.86);
  box-shadow: inset 0 -1px 0 rgba(7,21,40,.08);
}

.player-row:hover,
.player-row:focus-visible {
  background: #fff;
  border-color: #bf0d1d;
  box-shadow: inset 4px 0 0 #bf0d1d, 0 0 0 1px rgba(191,13,29,.16);
}

.player-row-pos {
  color: #fff;
  background: #1f4c97;
  border-color: #1f4c97;
  border-radius: 2px;
}

.player-col:first-child .player-row-pos {
  background: #bf0d1d;
  border-color: #bf0d1d;
}

.player-row-name {
  color: #071528;
  font-size: .88rem;
}

.player-row-stats .psc {
  color: rgba(7,84,141,.6);
}
.player-row-stats .psc strong { color: #07548d; }

.player-row-archetype {
  color: rgba(7,21,40,.48);
}

.roll-controls {
  order: 2;
  padding: .55rem;
  margin: .05rem 0 .1rem;
  border-radius: 4px;
  background: #061323;
  border-bottom: 3px solid #c49a45;
}

.roll-btn {
  border-radius: 4px;
  background: linear-gradient(180deg, #d7192a 0%, #a70d19 100%);
  box-shadow: 0 4px 0 #620711, 0 6px 16px rgba(167,13,25,.28);
}

/* reroll-btn icon-only: no overrides needed here */

.no-match-msg {
  order: 4;
  color: rgba(7,21,40,.54);
}

.assign-dialog {
  background:
    repeating-linear-gradient(0deg, rgba(31,76,151,.08) 0 1px, transparent 1px 32px),
    #fbf4e3;
  border-color: #c49a45;
  color: #071528;
}

.assign-player-card {
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.2), transparent 28%),
    linear-gradient(105deg, var(--assign-team-color, #bf0d1d) 0%, color-mix(in srgb, var(--assign-team-color, #bf0d1d) 50%, #071528) 42%, #071528 100%),
    #061323;
  border-bottom-color: var(--assign-team-color, #bf0d1d);
  color: #fff;
}

.assign-player-name {
  color: #fff;
}

.assign-section-title,
.assign-stat-label {
  color: rgba(7,21,40,.48);
}

.assign-stat {
  background: rgba(255,255,255,.8);
  border-color: rgba(7,21,40,.16);
}

.assign-stat-value {
  color: #071528;
}

.assign-formation {
  background: rgba(255,252,243,.74);
}

.formation-diagram {
  background:
    linear-gradient(90deg, rgba(255,255,255,.08), transparent 22%, transparent 78%, rgba(255,255,255,.08)),
    #183f23;
  border-color: rgba(7,21,40,.25);
  border-top-color: #bf0d1d;
  border-bottom-color: #1f4c97;
}

.formation-field {
  background:
    repeating-linear-gradient(90deg, transparent 0%, transparent calc(10% - 1px), rgba(255,255,255,.14) calc(10% - 1px), rgba(255,255,255,.14) 10%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 8px, transparent 8px 16px);
}

.pos-offense .pos-shape {
  border-color: #bf0d1d;
  background: rgba(25,5,8,.86);
}

.pos-defense .pos-shape {
  border-color: #1f4c97;
  background: rgba(5,10,28,.86);
}

@media (max-width: 760px) {
  .game-layout {
    width: min(100%, calc(100% - .8rem));
    grid-template-columns: 1fr;
    padding: .55rem 0 1rem;
  }
  .team-panel { order: 1; }
  .depth-chart-panel { order: 2; position: static; }
  .player-list { grid-template-columns: 1fr; }
}

/* Whiteboard / clipboard Basketball styling pass */


.depth-chart-panel,
.team-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.98)),
    #fff;
  border: 1px solid rgba(7,21,40,.18);
  box-shadow: 0 18px 42px rgba(0,0,0,.34), inset 0 1px 0 #fff;
}

.depth-chart-panel::before,
.team-panel::before {
  content: "";
  display: block;
  height: 10px;
  margin: -1px -1px 0;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(90deg, #bf0d1d 0 30%, #fff 30% 34%, #1f4c97 34% 100%);
}

.dc-panel-title {
  min-height: 74px;
  padding: .45rem .55rem .35rem;
  color: #071528;
  text-shadow: none;
  background:
    linear-gradient(0deg, rgba(31,76,151,.11) 0 1px, transparent 1px 100%),
    #fff;
}

.dc-panel-logo {
  display: block;
  width: min(92%, 240px);
  max-height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(7,21,40,.18));
}

.depth-chart {
  background: #fff;
}

.dc-row {
  background: #fff;
  border-color: rgba(7,21,40,.16);
  box-shadow: 0 1px 0 rgba(7,21,40,.05);
}

.dc-row.dc-filled {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--dc-team-color, #1f4c97) 18%, #fff) 0%, #fff 72%),
    #fff;
  border-color: color-mix(in srgb, var(--dc-team-color, #1f4c97) 46%, rgba(7,21,40,.16));
  box-shadow:
    inset 5px 0 0 var(--dc-team-color, #1f4c97),
    0 1px 0 rgba(7,21,40,.05);
}

.dc-row.dc-filled .dc-player-name {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  color: #071528;
}

.dc-row.dc-filled .dc-player-ovr {
  color: color-mix(in srgb, var(--dc-team-color, #1f4c97) 68%, #071528);
}

.dc-row:nth-child(even) {
  background: #f5f8fc;
}

.dc-row.dc-filled:nth-child(even) {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--dc-team-color, #1f4c97) 20%, #f5f8fc) 0%, #f5f8fc 72%),
    #f5f8fc;
}

.dc-sep {
  background: linear-gradient(90deg, #071528, #12294a);
  border: none;
}

.team-panel {
  gap: .75rem;
}

.team-card {
  background:
    linear-gradient(90deg, rgba(31,76,151,.08) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(31,76,151,.14) 0 1px, transparent 1px 32px),
    #fff;
  border: 1px solid rgba(7,21,40,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
}

.team-card-head::before {
  color: #bf0d1d;
}

.team-card-year {
  color: #bf0d1d;
}

.team-card-name {
  color: #071528;
}

.team-card-conf {
  background: #1f4c97;
  border-color: #1f4c97;
}

@media (max-width: 520px) {
  .team-card-head {
    gap: .06rem .5rem;
  }
  .team-card-year {
    font-size: clamp(2.25rem, 16vw, 3rem);
  }
  .team-card-name {
    font-size: clamp(2rem, 14vw, 2.7rem);
  }
}

.roll-controls {
  background: #071528;
  border: 1px solid rgba(7,21,40,.22);
  border-bottom: 4px solid #1f4c97;
}

.player-col-head {
  background: #071528;
  border: none;
}

.player-col:nth-child(2) .player-col-head {
  background: #1f4c97;
}

.player-row {
  background: #fff;
  border: 1px solid rgba(7,21,40,.16);
  box-shadow: 0 1px 0 rgba(7,21,40,.06);
}

.player-row:nth-of-type(even) {
  background: #f6f8fb;
}

.player-row:hover,
.player-row:focus-visible {
  background: #fff;
  border-color: #bf0d1d;
  box-shadow: inset 5px 0 0 #bf0d1d, 0 3px 12px rgba(7,21,40,.12);
}

.player-row-stats .psc {
  color: rgba(31,76,151,.6);
}
.player-row-stats .psc strong { color: #1f4c97; }

.assign-dialog {
  background: #f7f9fc;
  border-color: rgba(7,21,40,.28);
  box-shadow: 0 26px 76px rgba(0,0,0,.62);
}

.assign-dialog::before {
  content: "";
  display: block;
  height: 8px;
  background: var(--assign-team-color, #bf0d1d);
}

.assign-player-card {
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.2), transparent 28%),
    linear-gradient(105deg, var(--assign-team-color, #bf0d1d) 0%, color-mix(in srgb, var(--assign-team-color, #bf0d1d) 50%, #071528) 42%, #071528 100%),
    #071528;
  border-bottom-color: var(--assign-team-color, #bf0d1d);
}

.assign-formation {
  background: #f7f9fc;
}

.formation-diagram {
  background:
    linear-gradient(90deg, rgba(255,255,255,.16) 0 1px, transparent 1px 10%),
    linear-gradient(0deg, rgba(255,255,255,.14) 0 1px, transparent 1px 18%),
    #0f4a2c;
  border-top-color: #bf0d1d;
  border-bottom-color: #1f4c97;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 10px 28px rgba(7,21,40,.18);
}

.pos-shape {
  background: rgba(255,255,255,.08);
}

.pos-node.pos-eligible .pos-shape {
  background: rgba(255,255,255,.16);
  border-color: #f5c842;
}

/* Draft board action nav */
.draft-nav {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .35rem .85rem;
  margin: .05rem 0 .1rem;
  background:
    linear-gradient(90deg, rgba(191,13,29,.18), transparent 28%, transparent 72%, rgba(31,76,151,.22)),
    #071528;
  border: 1px solid rgba(7,21,40,.28);
  border-bottom: 4px solid #1f4c97;
  border-radius: 4px;
}

.draft-nav-left,
.draft-nav-right {
  display: flex;
  align-items: stretch;
  gap: .7rem;
  min-width: 0;
}

.draft-nav-left {
  flex: 1;
  align-items: center;
}

.draft-nav-right {
  flex-shrink: 0;
  margin-left: auto;
}

.draft-nav-btn,
.draft-nav .roll-btn {
  min-height: 34px;
  border-radius: 999px;
  padding: .42rem .85rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.draft-nav-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.86);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.06);
}

.nav-logo-btn {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
  transition: filter .15s, transform .15s;
}
.nav-logo-btn:hover { filter: drop-shadow(0 3px 10px rgba(0,0,0,.6)) brightness(1.08); transform: scale(1.06); }
.nav-logo-btn img { display: block; object-fit: contain; }

.draft-nav .nav-logo-btn img {
  width: 68px;
  height: 68px;
}

.draft-nav .player-filters {
  flex-wrap: nowrap;
  justify-content: center;
  align-content: center;
  gap: .22rem;
  padding: .12rem .3rem;
  overflow: hidden;
}

.draft-nav .pos-filter-chip {
  min-width: 0;
  min-height: 38px;
  padding: .3rem .72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  font-size: .92rem;
  line-height: 1;
}

.player-award-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: .25rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
}

.draft-nav-btn:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.48);
  color: #fff;
}

.nav-new-game-btn {
  color: #fff;
  border-color: rgba(245,200,66,.64);
  background: rgba(191,13,29,.28);
}

.draft-nav .roll-btn {
  flex: 1;
  max-width: 260px;
  background: linear-gradient(180deg, #d7192a 0%, #a70d19 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 3px 0 #620711, 0 6px 14px rgba(167,13,25,.26);
}

.draft-nav .roll-btn:disabled {
  opacity: .46;
  box-shadow: none;
  transform: none;
}

/* draft-nav .reroll-btn is icon-only â€” no border/bg/color needed */

@media (max-width: 760px) {
  .draft-nav {
    align-items: stretch;
    flex-direction: column;
  }
  .draft-nav-left,
  .draft-nav-right {
    width: 100%;
    flex-wrap: wrap;
  }
  .draft-nav .roll-btn {
    max-width: none;
  }
  .draft-nav-btn {
    flex: 1;
  }
}

/* â”€â”€ Play Clock + Challenge corner stack â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.fb-pc-stack {
  position: absolute;
  bottom: 1.5rem;
  right: 0;
  transform: translateX(calc(100% + 12px));
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  pointer-events: none;
  user-select: none;
}

.fb-pc-stack.hidden { display: none; }

.reroll-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  pointer-events: auto;
}

.reroll-wrap.hidden { display: none; }

.reroll-pips {
  display: none;
}

.reroll-pip {
  display: block;
  width: 11px;
  height: 11px;
  background: #f0c040;
  border: 1.5px solid rgba(255,255,255,.3);
  transform: rotate(45deg);
  border-radius: 2px;
  transition: background .2s, border-color .2s;
  position: relative;
}

.reroll-pip--used {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
}

.reroll-pip--used::after {
  content: "Ã—";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  color: #bf0d1d;
}

.fb-pc-stack .reroll-btn {
  pointer-events: auto;
  min-width: 152px;
  min-height: 152px;
  transition: opacity .15s, filter .15s, transform .12s;
}

.fb-pc-stack .reroll-btn-icon {
  width: 144px;
  height: 144px;
}

.fb-pc-stack .reroll-btn:hover:not(:disabled) {
  transform: scale(1.08);
  filter: brightness(1.15) drop-shadow(0 0 6px rgba(255,255,255,.3));
}

.fb-pc-stack .reroll-btn:active:not(:disabled) { transform: scale(.94); }

/* Play clock panel */

.fb-pc-panel {
  pointer-events: none;
  background: rgba(4,8,18,.95);
  border: 2px solid rgba(255,255,255,.28);
  border-radius: 10px;
  padding: .72rem 1.05rem .58rem;
  box-shadow: 0 6px 26px rgba(0,0,0,.68), inset 0 1px 0 rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .38rem;
  width: 130px;
}

.fb-pc-header {
  display: flex;
  align-items: center;
  gap: .32rem;
  width: 100%;
  justify-content: center;
}

.fb-pc-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  white-space: nowrap;
}

.fb-pc-dot {
  display: none;
}

.fb-pc-screen {
  background: rgba(0,0,0,.45);
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 2px 8px rgba(0,0,0,.7);
  padding: .24rem .75rem .16rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-pc-digits {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.55rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: rgba(240,240,240,.95);
  text-shadow: 0 0 8px rgba(255,255,255,.28);
  transition: color .2s, text-shadow .2s;
}

.fb-pc-digits.warning {
  color: #f5a000;
  text-shadow: 0 0 4px rgba(245,160,0,.9), 0 0 14px rgba(245,160,0,.5);
}

.fb-pc-digits.urgent {
  color: #ff2200;
  text-shadow: 0 0 4px rgba(255,34,0,1), 0 0 14px rgba(255,34,0,.8);
  animation: fb-pc-urgent-pulse .5s ease-in-out infinite alternate;
}

@keyframes fb-pc-urgent-pulse {
  from { opacity: 1; }
  to   { opacity: .5; }
}

.fb-pc-drain-track {
  width: 100%;
  height: 5px;
  background: rgba(200,16,46,.18);
  border-radius: 2px;
  overflow: hidden;
}

.fb-pc-drain-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,.7), rgba(200,200,200,.5));
  width: 100%;
  transform-origin: left;
  border-radius: 2px;
  animation: fb-pc-drain 40s linear forwards;
}

.fb-pc-drain-fill.warning { background: linear-gradient(90deg, #f5a000, #d98800); }
.fb-pc-drain-fill.urgent  { background: linear-gradient(90deg, #ff2200, #ff5500); }

@keyframes fb-pc-drain {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* Play clock penalty dialog */

.fb-pc-penalty-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  border: none;
  border-radius: 16px;
  padding: 0;
  background: #071528;
  color: var(--white);
  max-width: 420px;
  width: min(92vw, 420px);
  box-shadow: 0 18px 64px rgba(0,0,0,.84);
}

.fb-pc-penalty-dialog[open] {
  display: block;
}

.fb-pc-penalty-dialog::backdrop {
  background: rgba(0,0,0,.72);
}

.fb-pc-penalty-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.7rem 1.5rem 1.5rem;
  text-align: center;
}

.fb-pc-penalty-logo-wrap {
  width: min(220px, 68vw);
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-pc-penalty-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fb-pc-penalty-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  color: rgba(245,247,250,.55);
  letter-spacing: .04em;
}

.fb-pc-penalty-card {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: #fff;
  border: 1px solid rgba(200,16,46,.25);
  border-radius: 10px;
  padding: .85rem 1rem;
  width: 100%;
  border-left: 4px solid var(--red);
}

.fb-pc-penalty-pos {
  font: 700 1.15rem/1 'Barlow Condensed', sans-serif;
  letter-spacing: .08em;
  background: var(--red);
  color: #fff;
  padding: .35rem .55rem;
  border-radius: 5px;
  flex-shrink: 0;
  min-width: 44px;
  text-align: center;
}

.fb-pc-penalty-info {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  text-align: left;
  min-width: 0;
  flex: 1;
}

.fb-pc-penalty-name {
  font: 700 1.2rem/1.1 'Barlow Condensed', sans-serif;
  color: #0e1a2a;
}

.fb-pc-penalty-team {
  font: 400 .8rem/1 'Barlow', sans-serif;
  color: rgba(14,26,42,.5);
}

.fb-pc-penalty-slot {
  margin-left: auto;
  font: 800 1.05rem/1 'Barlow Condensed', sans-serif;
  color: var(--red);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .04em;
}

.fb-pc-penalty-ok-btn {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .7rem 2rem;
  font: 700 1rem/1 'Barlow Condensed', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: filter .12s;
}

.fb-pc-penalty-ok-btn:hover { filter: brightness(1.12); }

/* â”€â”€ Basketball mobile bottom nav â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.fb-mobile-nav {
  display: none; /* shown via JS on â‰¤760px game screen */
}

@media (max-width: 760px) {
  /* â”€â”€ Bottom nav bar â”€â”€ */
  .fb-mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: #071528;
    border-top: 2px solid #bf0d1d;
    height: 72px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .fb-mobile-nav.hidden { display: none !important; }

  /* â”€â”€ Compact game header on mobile â”€â”€ */
  .game-header {
    min-height: 50px;
    padding: .3rem .55rem;
    border-bottom-width: 2px;
  }

  .game-header-logo { height: 36px; max-width: 72px; }

  .game-header-mode {
    font-size: .9rem;
    padding: .2rem .55rem;
  }

  .header-home-btn { display: none; }

  .game-header-slots {
    font-size: .8rem;
  }

  .fb-mbn-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0 6px;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s;
    min-height: 44px;
  }

  .fb-mbn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .fb-mbn-icon img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    opacity: 0.5;
    transition: opacity .15s;
  }

  .fb-mbn-tab--active { background: rgba(191,13,29,.1); }
  .fb-mbn-tab--active .fb-mbn-icon img { opacity: 1; }

  .fb-mbn-action .fb-mbn-icon img {
    width: 64px;
    height: 64px;
    opacity: 0.85;
  }

  /* â”€â”€ Game layout: full-screen single-panel â”€â”€ */
  .game-screen {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    max-width: 100vw;
  }

  .game-screen .game-layout {
    flex: 1;
    display: flex !important;
    flex-direction: column;
    grid-template-columns: 1fr !important;
    padding: .4rem .4rem 0 !important;
    gap: .4rem;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Prevent any child from blowing out the viewport */
  .team-panel,
  .depth-chart-panel,
  .roll-controls.draft-nav,
  .player-list {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Pos filter chips: scrollable row, no wrapping */
  .draft-nav .player-filters {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .draft-nav .player-filters::-webkit-scrollbar { display: none; }
  .draft-nav .pos-filter-chip { flex-shrink: 0; }

  /* Compact team card on mobile */
  #teamCardContent { padding: .5rem .75rem .45rem !important; }
  .team-card { min-height: auto !important; }
  .team-card-year { font-size: clamp(1.5rem, 11vw, 2rem) !important; }
  .team-card-name { font-size: clamp(1.35rem, 9.5vw, 1.85rem) !important; }
  .team-card-hint { font-size: .78rem; margin-top: .15rem; }
  .team-card-meta { margin-bottom: .15rem; }
  .team-card-empty { padding: 1.2rem 1rem !important; }

  /* Default: show draft panel only; depth chart via tab */
  .depth-chart-panel { display: none !important; }
  body.fb-tab-depth .depth-chart-panel {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 1 / -1;
  }
  body.fb-tab-depth .team-panel { display: none !important; }

  /* Hide in-game nav buttons â€” they live in the bottom nav on mobile */
  .draft-nav .nav-new-game-btn,
  .draft-nav-right { display: none !important; }

  /* draft-nav row: just roll btn + pos filters */
  .roll-controls.draft-nav {
    flex-wrap: wrap;
    gap: .35rem;
    padding: .4rem .5rem;
  }

  .draft-nav-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
  }

  /* Flat panels on mobile â€” no floating card effect */
  .team-panel,
  .depth-chart-panel {
    box-shadow: none !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }

  /* Play clock: fixed on mobile, overlays player list above bottom nav */
  .fb-pc-stack {
    position: fixed;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    right: 10px;
    transform: none;
  }
}

@media (max-width: 480px) {
  .fb-pc-stack .reroll-btn { min-width: 64px; min-height: 64px; }
  .fb-pc-stack .reroll-btn-icon { width: 60px; height: 60px; }
  .fb-pc-panel { width: 90px; padding: .4rem .6rem .32rem; }
  .fb-pc-screen { padding: .16rem .5rem .1rem; }
  .fb-pc-digits { font-size: 2rem; }
  .fb-pc-label { font-size: .58rem; letter-spacing: .16em; }
  .fb-pc-drain-track { height: 3px; }
}

/* Landscape touch devices (tablets + phones): pin to corner so it stays on-screen */
@media (orientation: landscape) and (pointer: coarse) {
  .fb-pc-stack {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    transform: none;
  }
}

/* Landscape phone (short height): shrink flag + panel to match portrait-mobile sizes */
@media (orientation: landscape) and (pointer: coarse) and (max-height: 500px) {
  .fb-pc-stack .reroll-btn { min-width: 64px; min-height: 64px; }
  .fb-pc-stack .reroll-btn-icon { width: 60px; height: 60px; }
  .fb-pc-panel { width: 90px; padding: .4rem .6rem .32rem; }
  .fb-pc-screen { padding: .16rem .5rem .1rem; }
  .fb-pc-digits { font-size: 2rem; }
  .fb-pc-label { font-size: .58rem; letter-spacing: .16em; }
  .fb-pc-drain-track { height: 3px; }
}

/* â”€â”€ New-game confirmation dialog â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.fb-confirm-dialog {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(340px, calc(100vw - 2rem));
  background: #0d1e35;
  border: 2px solid rgba(200,16,46,.55);
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 20px 56px rgba(0,0,0,.6);
}

.fb-confirm-dialog::backdrop {
  background: rgba(4,8,16,.72);
  backdrop-filter: blur(3px);
}

.fb-confirm-inner {
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.fb-confirm-dialog h3 {
  margin: 0 0 .4rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: .04em;
  color: rgba(255,255,255,.95);
  text-transform: uppercase;
  line-height: 1;
}

.fb-confirm-dialog p {
  margin: 0 0 1.4rem;
  color: rgba(255,255,255,.5);
  font-family: 'Barlow', sans-serif;
  font-size: .88rem;
  line-height: 1.45;
}

.fb-confirm-actions {
  display: flex;
  gap: .85rem;
  align-items: center;
  justify-content: center;
}

.fb-confirm-cancel {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .55rem 1.15rem;
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,.22);
  background: transparent;
  color: rgba(255,255,255,.68);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}

.fb-confirm-cancel:hover {
  border-color: rgba(255,255,255,.45);
  color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.07);
}

.fb-confirm-ok {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s, filter .15s;
}

.fb-confirm-ok img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.fb-confirm-ok:hover { transform: scale(1.07); filter: brightness(1.18); }
.fb-confirm-ok:active { transform: scale(.93); }

/* â”€â”€ Inner-scroll: only #playerList scrolls; team card + draft nav stay fixed â”€â”€ */

.game-screen {
  height: 100svh;
  min-height: unset;
  overflow: hidden;
}

.game-layout {
  height: 100%;
  grid-template-rows: 1fr;
  align-items: stretch;
  overflow: visible;
}

.team-panel {
  overflow: hidden !important;
}

.player-list {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(7,21,40,.18) transparent;
}

/* Shrink position group title bars */
.player-col-head {
  padding: .18rem .5rem;
  font-size: .82rem;
}

/* â”€â”€ Mobile: fill full screen, footer reserved, play clock floats on top â”€â”€ */
@media (max-width: 760px) {
  .game-screen {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }

  .game-layout {
    padding: 0 !important;
    height: 100%;
  }

  .team-panel {
    height: 100% !important;
    min-height: 0;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }

  .player-list {
    padding-bottom: calc(190px + env(safe-area-inset-bottom, 0px));
  }

  /* Hide mode logo on mobile â€” team name needs the full width */
  .team-card-mode-logo { display: none !important; }
  #teamCardContent { padding-right: .75rem !important; }

  /* Draft nav: hide redundant icon buttons (already in bottom nav) */
  .draft-nav-right { display: none !important; }
  .draft-nav .nav-new-game-btn { display: none !important; }

  /* Player card: name lighter, stats wrap below on as many lines as needed */
  .player-row-name {
    font-size: .86rem;
    font-weight: 600;
  }
  .player-row-stats {
    flex-wrap: wrap;
    margin-top: .1rem;
    gap: .06rem .18rem;
    max-width: none;
    overflow: visible;
  }

  /* Swap chips for dropdown on mobile */
  .player-filters { display: none !important; }
  .pos-filter-select {
    display: block !important;
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 .6rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,.6)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .7rem center;
    padding-right: 2rem;
  }
  .pos-filter-select option {
    background: #071528;
    color: #e8eaf0;
    font-family: 'Barlow Condensed', sans-serif;
  }
}

/* Desktop: never show the dropdown */
.pos-filter-select { display: none; }
