/* THE LEAGUE — Hamilton County draft room.
   Clock red + midnight navy are the noonball tokens. */
:root {
  --red: #C82E22;
  --midnight: #10223D;
  --rb: #3D82D6;      /* RB blue — Bruno's sticker blue, a touch lighter/brighter */
  --wr: #16181D;      /* WR black */
  --qb: #C82E22;      /* QB red   */
  --te: #1E7B36;      /* TE green */
  --k:  #C7CBD1;      /* K silver */
  --dst:#E2801F;      /* DST orange */
  --card-tan-a: #D9A96A;
  --card-tan-b: #B9803E;
}

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

html, body { height: 100%; }
body {
  font-family: 'Manrope', sans-serif;
  background: #171310;
  overflow: hidden;
  user-select: none;
}

/* ---------- the room ---------- */
.room {
  position: relative;
  height: 100vh;
  background:
    radial-gradient(120% 90% at 50% 0%, #3a2f26 0%, #241d17 48%, #15100c 100%);
}
/* wood-paneled wall seams + warm lamp pools */
.room::before {
  content: '';
  position: absolute; inset: 0 0 24vh 0;
  background:
    radial-gradient(40% 55% at 18% 8%, rgba(255,196,110,0.16), transparent 70%),
    radial-gradient(40% 55% at 82% 8%, rgba(255,196,110,0.16), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 11.8vw, rgba(0,0,0,0.22) 11.8vw 12vw);
  pointer-events: none;
}
/* carpet */
.room::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 24vh;
  background:
    linear-gradient(180deg, #241a12 0%, #1a1209 100%);
  box-shadow: 0 -3px 18px rgba(0,0,0,0.55) inset;
  pointer-events: none;
  z-index: 0;
}

/* ---------- chyron ---------- */
.chyron {
  position: absolute; top: 2.2vh; left: 50%; transform: translateX(-50%);
  z-index: 40;
  display: flex; align-items: center; gap: 0.6em;
  background: var(--midnight);
  color: #F4EFE4;
  border: 1px solid rgba(244,239,228,0.25);
  border-bottom: 3px solid var(--red);
  padding: 0.45em 1.2em;
  font-size: clamp(12px, 1.15vw, 18px);
  font-weight: 600; letter-spacing: 0.14em;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}
.ch-dot { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
.ch-dot.stale { background: #6c7280; animation: none; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- scene / V layout ---------- */
.scene {
  position: absolute; inset: 0;
  z-index: 1;
  display: flex; align-items: flex-end; justify-content: center;
  gap: 2vw;
  padding-bottom: 8vh;
  perspective: 1600px;
  perspective-origin: 50% 42%;
}
.board-unit {
  position: relative;
  transition: transform 0.55s cubic-bezier(0.22, 0.9, 0.3, 1), opacity 0.45s ease, filter 0.45s ease;
  cursor: pointer;
}
.unit-left  { transform: rotateY(24deg); transform-origin: right center; }
.unit-right { transform: rotateY(-24deg); transform-origin: left center; }
.board-unit:hover { filter: brightness(1.06); }

/* focus mode: one board flattens + fills, the other recedes */
.scene.focus-wb .unit-left,
.scene.focus-grid .unit-right {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotateY(0deg);
  z-index: 30;
  cursor: zoom-out;
}
.scene.focus-wb .unit-left .stand,
.scene.focus-grid .unit-right .stand { display: none; }
.scene.focus-wb .unit-right,
.scene.focus-grid .unit-left {
  opacity: 0.12; filter: blur(2px) brightness(0.6);
  pointer-events: none;
}

/* ---------- stands ---------- */
/* stand font-size mirrors the board scale so stilt heights track board size */
.stand { position: relative; height: 8em; font-size: min(0.44vw, 0.8vh, 9px); }
.leg {
  position: absolute; top: -0.5em; width: 0.65vw; height: calc(100% + 1em);
  background: linear-gradient(90deg, #060606, #2c2c2c 45%, #060606);
  border-radius: 2px;
}
.leg-l { left: 12%; transform: rotate(5deg); }
.leg-r { right: 12%; transform: rotate(-5deg); }
.crossbar {
  position: absolute; left: 18%; right: 18%; top: 45%;
  height: 0.6em; background: #171717; border-radius: 2px;
}
/* the league board rides taller stilts: its top edge clears the whiteboard's */
.unit-right .stand { height: 16em; }

/* =================================================================
   WHITEBOARD (left) — portrait, marker handwriting
   ================================================================= */
.whiteboard { font-size: min(0.44vw, 0.8vh, 9px); }
.scene.focus-wb .whiteboard { font-size: min(0.95vw, 1.05vh); }
.whiteboard .wb-frame {
  width: 98em; /* em-driven so focus mode scales everything */
  background: linear-gradient(180deg, #b9bcc2, #888c94);
  padding: 1.1em;
  border-radius: 0.6em;
  box-shadow: 0 18px 50px rgba(0,0,0,0.6);
  transition: font-size 0.4s ease;
}
.wb-surface {
  position: relative;
  background:
    radial-gradient(120% 100% at 30% 0%, #ffffff 0%, #f2f3f1 55%, #e7e8e4 100%);
  border: 1px solid #d4d6d2;
  height: 78em;
  padding: 1.8em 2em;
  overflow: hidden;
}
.wb-cols { display: flex; gap: 1.6em; height: 100%; }
.wb-col { flex: 1; display: flex; flex-direction: column; justify-content: space-between; border-left: 1px dashed rgba(16,34,61,0.18); padding-left: 1em; }
.wb-col:first-child { border-left: none; padding-left: 0; }
.wb-row {
  position: relative;
  display: flex; align-items: baseline; gap: 0.45em;
  font-family: 'Patrick Hand', 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 1.62em;
  line-height: 1.08;
  color: var(--midnight);
  white-space: nowrap;
}
.wb-num { width: 1.6em; text-align: right; flex: none; font-size: 0.78em; opacity: 0.6; }
.wb-name { overflow: hidden; text-overflow: clip; }
.wb-meta { margin-left: auto; flex: none; color: var(--red); font-size: 0.78em; font-weight: 700; letter-spacing: 0.02em; }
/* the cross-off stroke */
.wb-row.gone { }
.wb-row.gone::after {
  content: '';
  position: absolute; left: -0.2em; right: -0.1em; top: 52%;
  height: 0.09em; background: var(--midnight);
  transform: rotate(-1.6deg);
  border-radius: 1em;
}
.wb-row.gone:nth-child(odd)::after { transform: rotate(1.3deg); }
.wb-tray {
  margin: 0.5em 4em 0;
  height: 0.9em;
  background: linear-gradient(180deg, #9ea2aa, #6f737b);
  border-radius: 0 0 0.5em 0.5em;
}

/* =================================================================
   DRAFT GRID (right) — Bruno's-style banner
   ================================================================= */
.gridboard { font-size: min(0.44vw, 0.8vh, 9px); }
.scene.focus-grid .gridboard { font-size: min(0.92vw, 1.15vh); }
.gb-banner {
  width: 102em;
  background: #F7F3EA;
  border: 0.55em solid var(--red);
  outline: 0.35em solid var(--midnight);
  outline-offset: -0.9em; /* navy stripe sits flush against the red border */
  padding: 1.9em 1.3em 1.5em;
  box-shadow: 0 18px 50px rgba(0,0,0,0.6);
  transition: font-size 0.4s ease;
}
.gb-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 4.2em;
  letter-spacing: 0.16em;
  color: var(--midnight);
  -webkit-text-stroke: 0.028em var(--red);
  text-align: center;
  line-height: 1;
  margin-bottom: 0.22em;
}
.gb-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.42em 0.38em;
}
.gb-teamname {
  background: linear-gradient(180deg, var(--card-tan-a), var(--card-tan-b));
  border: 1px solid rgba(16,34,61,0.35);
  color: var(--midnight);
  font-family: 'Oswald', sans-serif;
  font-size: 0.92em; font-weight: 700; letter-spacing: 0.02em;
  line-height: 1.15;
  text-align: center;
  padding: 0.3em 0.2em;
  min-height: 2.9em;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  text-transform: uppercase;
}
/* cells: solid painted rows, alternating red/navy, round number in white */
.gb-cell {
  position: relative;
  height: 3.6em;
}
.row-red  { background: var(--red); }
.row-navy { background: var(--midnight); }
.gb-cell::after {
  content: attr(data-round);
  position: absolute; right: 0.45em; bottom: 0.25em;
  font-family: 'Oswald', sans-serif;
  font-size: 0.7em; font-weight: 500;
  color: rgba(255,255,255,0.25);
}

/* the sticker */
.sticker {
  position: absolute; inset: 0;
  z-index: 1;
  font-family: 'Oswald', sans-serif;
  color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 0.18em 0.3em 0.14em;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.sticker.pos-RB  { background: var(--rb); }
.sticker.pos-WR  { background: var(--wr); }
.sticker.pos-QB  { background: var(--qb); }
.sticker.pos-TE  { background: var(--te); }
.sticker.pos-DST { background: var(--dst); }
.sticker.pos-K   { background: var(--k); color: var(--midnight); }
.st-top {
  display: flex; justify-content: space-between; gap: 0.3em;
  font-size: 0.98em; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.92;
  white-space: nowrap;
  transform-origin: left center;
}
.st-top .st-first { flex: 1; text-align: center; transform-origin: center; }
.st-last {
  font-size: 1.8em; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transform-origin: center bottom;
}
.sticker.fresh { animation: slap 0.45s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes slap {
  0% { transform: scale(1.9) rotate(-4deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* ---------- hint ---------- */
.hint {
  position: absolute; bottom: 1.6vh; left: 50%; transform: translateX(-50%);
  color: rgba(244,239,228,0.4);
  font-size: clamp(10px, 0.85vw, 14px);
  letter-spacing: 0.2em; text-transform: uppercase;
}
