/* Draft board — shared by /control and /overlay. Designed at 1920px wide.
   Override anything in public/custom.css or the "Custom CSS" box in settings. */
.board {
  --bg: #05080d;
  --panel: #0a0f17;
  --panel2: #0c121c;
  --line: #19212e;
  --text: #d6dee9;
  --muted: #566173;
  --font: 'Barlow Condensed', 'Kanit', 'Arial Narrow', system-ui, sans-serif;
  width: 1920px;
  position: relative;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, rgba(8, 12, 19, 0.96), rgba(4, 7, 12, 0.98));
  border: 1px solid var(--line);
  text-transform: uppercase;
  user-select: none;
  overflow: hidden;
}

/* ---------- timer bar ---------- */
.tbar { height: 6px; background: #0b1018; position: relative; }
.tbar i { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.tbar.red i { left: auto; right: 0; background: var(--red); box-shadow: 0 0 12px var(--red); }
.tbar.off i { display: none; }

/* ---------- top strip: coaches + bans ---------- */
.strip {
  display: grid;
  grid-template-columns: 220px 540px 400px 540px 220px;
  height: 68px;
  align-items: stretch;
  position: relative;
}
.strip::before, .strip::after { content: ''; position: absolute; bottom: 0; height: 3px; width: 760px; }
.strip::before { left: 0; background: var(--blue); }
.strip::after { right: 0; background: var(--red); }
.coach {
  align-self: end;
  height: 30px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--muted);
  background: #121924;
  white-space: nowrap;
  overflow: hidden;
}
.coach b { color: #8d99ab; font-weight: 600; margin-left: 6px; overflow: hidden; text-overflow: ellipsis; }
.coach.red { justify-content: flex-end; }
.title {
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; letter-spacing: 0.3em; color: var(--muted); text-align: center;
}
.bans { display: flex; gap: 2px; align-items: end; padding-bottom: 3px; }
.bans.red { justify-content: flex-end; }

.ban {
  width: 62px; height: 62px; position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(115deg, transparent 0 13px, rgba(255, 255, 255, 0.85) 13px 15px, transparent 15px 26px),
    var(--blue);
}
.ban.red { background: repeating-linear-gradient(115deg, transparent 0 13px, rgba(255, 255, 255, 0.85) 13px 15px, transparent 15px 26px), var(--red); }
.ban.filled { background: #000; }
.ban .art { filter: grayscale(1) brightness(0.65); }
.ban.filled::after {
  content: ''; position: absolute; left: -10%; top: 50%; width: 120%; height: 3px;
  background: var(--red); transform: rotate(-45deg); box-shadow: 0 0 6px #000;
}
.ban.active { outline: 3px solid var(--gold); outline-offset: -3px; animation: pulse 1.1s ease-in-out infinite; }

/* ---------- main: pick cards + center ---------- */
.main { display: grid; grid-template-columns: 760px 400px 760px; height: 330px; }
.picks { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.card {
  position: relative; overflow: hidden;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0b111a, #070b12);
}
.picks.red .card { border-right: 0; border-left: 1px solid var(--line); }
.card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.85) 100%); pointer-events: none; }
.card.filled.blue { box-shadow: inset 0 -4px 0 var(--blue); }
.card.filled.red { box-shadow: inset 0 -4px 0 var(--red); }
.card.active { background: linear-gradient(180deg, rgba(233, 185, 73, 0.18), rgba(233, 185, 73, 0.02)); box-shadow: inset 0 0 0 3px var(--gold); animation: pulse 1.1s ease-in-out infinite; }
.pname {
  position: absolute; left: 12px; bottom: 16px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 26px; font-weight: 600; letter-spacing: 0.12em; color: #2c3545;
  max-height: 290px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.card.filled .pname { color: #fff; text-shadow: 0 2px 6px #000; }
.hname {
  position: absolute; left: 48px; right: 44px; bottom: 14px;
  font-size: 24px; font-weight: 700; letter-spacing: 0.06em; color: #fff;
  text-shadow: 0 2px 8px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lane { position: absolute; right: 12px; bottom: 14px; width: 24px; height: 24px; color: #8792a3; }
.card:not(.filled) .lane { left: 48px; right: auto; }
.card.filled .lane { top: 12px; bottom: auto; }
.card.filled .hname { right: 10px; }
.card.filled .lane { color: #fff; filter: drop-shadow(0 1px 3px #000); }
.lane svg { width: 100%; height: 100%; display: block; }

/* hero art */
.art.blur { filter: blur(16px) saturate(1.5) brightness(0.55); transform: scale(1.3); }
.portrait {
  position: absolute; left: 50%; top: 46px; width: 118px; height: 118px; transform: translateX(-50%);
  background-size: cover; background-position: center; box-shadow: 0 6px 24px #000c;
}
.card.blue .portrait { outline: 2px solid var(--blue); }
.card.red .portrait { outline: 2px solid var(--red); }
.just .portrait { animation: lockin 0.6s cubic-bezier(.2, .8, .2, 1); }
.art { position: absolute; inset: 0; background-size: cover; background-position: center 20%; }
.art.noimg {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, hsl(var(--h) 45% 32%), hsl(calc(var(--h) + 40) 50% 12%));
}
.art.noimg span { font-size: 64px; font-weight: 800; color: rgba(255, 255, 255, 0.35); letter-spacing: 0.04em; }
.ban .art.noimg span { font-size: 24px; }

/* ---------- center ---------- */
.center {
  background: linear-gradient(180deg, #0e1520, #090e16);
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; text-align: center;
}
.score { display: flex; gap: 46px; min-height: 16px; }
.pips { display: flex; gap: 5px; }
.pips i { width: 15px; height: 15px; border: 2px solid #3a4456; display: block; }
.pips.blue i.on { background: var(--blue); border-color: var(--blue); }
.pips.red i.on { background: var(--red); border-color: var(--red); }
.teams { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; width: 100%; gap: 6px; }
.tname { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.tname .logo { width: 54px; height: 54px; object-fit: contain; margin-bottom: 2px; }
.tname .nm { font-size: 40px; font-weight: 700; line-height: 0.95; letter-spacing: 0.04em; overflow-wrap: break-word; max-width: 100%; }
.tname .nm.l { font-size: 31px; letter-spacing: 0.02em; }
.tname .nm.xl { font-size: 25px; letter-spacing: 0.01em; }
.tname.blue .nm { color: color-mix(in srgb, var(--blue) 55%, #fff); }
.tname.red .nm { color: color-mix(in srgb, var(--red) 55%, #fff); }
.tname[style] .nm { color: color-mix(in srgb, var(--tc) 70%, #fff); }
.tcbar { display: block; width: 70%; height: 4px; background: var(--tc); margin: 3px 0 1px; box-shadow: 0 0 10px var(--tc); }
.tname .sd { font-size: 11px; letter-spacing: 0.22em; }
.tname.blue .sd { color: var(--blue); }
.tname.red .sd { color: var(--red); }
.swapbtn {
  width: 34px; height: 34px; justify-self: center; cursor: pointer;
  background: #121924; color: var(--gold); border: 1px solid #263042; font-size: 18px;
}
.swapbtn:hover { border-color: var(--gold); }
.gameno {
  font-size: 26px; letter-spacing: 0.3em; color: var(--gold); font-weight: 600;
  border-top: 1px solid #263042; border-bottom: 1px solid #263042; padding: 3px 20px;
}
.patch { font-size: 13px; letter-spacing: 0.25em; color: var(--muted); }
.phase { font-size: 16px; letter-spacing: 0.14em; }
.ph.blue { color: var(--blue); }
.ph.red { color: var(--red); }
.ph.done { color: var(--gold); }
.clock { font-size: 46px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; min-height: 46px; }
.clock.blue { color: color-mix(in srgb, var(--blue) 60%, #fff); }
.clock.red { color: color-mix(in srgb, var(--red) 60%, #fff); }
.clock.low { color: #ff5b5b; animation: blink 0.5s steps(2) infinite; }
.clock.paused { opacity: 0.6; animation: none; }

/* ---------- step bar ---------- */
.steps { display: grid; gap: 3px; padding: 8px; border-top: 1px solid var(--line); }
.step {
  height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #0d131d; border-top: 3px solid var(--blue); line-height: 1.1;
}
.step.red { border-top-color: var(--red); }
.step small { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.step b { font-size: 15px; font-weight: 600; letter-spacing: 0.12em; color: #8d99ab; }
.step.done { opacity: 0.35; }
.step.active { background: color-mix(in srgb, var(--gold) 28%, #0d131d); border-top-color: var(--gold); }
.step.active b, .step.active small { color: var(--gold); }

/* ---------- animations ---------- */
@keyframes pulse { 50% { box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 40px rgba(233, 185, 73, 0.35); } }
@keyframes blink { 50% { opacity: 0.35; } }
@keyframes lockin {
  0% { filter: brightness(3) saturate(0); transform: scale(1.08); }
  100% { filter: none; transform: none; }
}
.just .art { animation: lockin 0.6s cubic-bezier(.2, .8, .2, 1); }
.ban.just .art { animation: lockin 0.6s cubic-bezier(.2, .8, .2, 1); filter: grayscale(1) brightness(0.65); }

/* control page: clickable filled slots */
.interactive .card.filled, .interactive .ban.filled { cursor: pointer; }
.interactive .card.filled:hover, .interactive .ban.filled:hover { outline: 2px solid #fff6; outline-offset: -2px; }
.card.sel, .ban.sel { outline: 3px dashed #fff !important; outline-offset: -4px !important; }
