/* LEC Bingo. Built on the LEC Home tokens (tokens.css). The holiday look is a
   skin: [data-skin="holiday"] swaps the custom properties below and turns on a
   few decorations. Nothing else forks. */

:root {
  --bar: var(--indigo-900);
  --bar-rule: var(--blue-500);
  --hi: var(--blue-500);            /* primary highlight */
  --hi-ink: var(--blue-700);
  --hi-soft: var(--blue-50);
  --hi-2: var(--sand-400);          /* secondary accent */
  --gold: var(--brand-gold);
  --page: var(--surface-page);
  --letter-bg-1: var(--indigo-900);
  --letter-bg-2: var(--blue-500);
  --bingo-1: #1248b5;
  --bingo-2: #2a5fd0;
  --board-bg: radial-gradient(120% 90% at 30% 10%, #2a2d66 0%, #1f215a 45%, #14163d 100%);
  --confetti: #1248b5,#e0a30a,#d8d1c7,#4773d4,#ffffff;
  color-scheme: light;
}
[data-skin="holiday"] {
  --bar: #123d2e;
  --bar-rule: #c8202f;
  --hi: #b81d2b;
  --hi-ink: #8e1420;
  --hi-soft: #fbeceb;
  --hi-2: #1f6b4a;
  --page: #f7f2ea;
  --letter-bg-1: #b81d2b;
  --letter-bg-2: #1f6b4a;
  --bingo-1: #c8202f;
  --bingo-2: #e2483f;
  --board-bg: radial-gradient(120% 90% at 30% 10%, #1d5a43 0%, #123d2e 50%, #0a2219 100%);
  --confetti: #c8202f,#1f6b4a,#e0a30a,#ffffff,#f2b8b5;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--page);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
[data-skin="holiday"] body {
  background-image:
    radial-gradient(circle at 12px 12px, rgba(31, 107, 74, 0.07) 2px, transparent 2.5px),
    radial-gradient(circle at 36px 30px, rgba(184, 29, 43, 0.05) 1.5px, transparent 2px);
  background-size: 48px 48px;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.bar {
  background: var(--bar);
  border-bottom: 3px solid var(--bar-rule);
  color: #fff;
  position: relative;
}
.bar__in {
  max-width: 1320px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 14px;
}
.bar__logo { height: 26px; width: auto; display: block; }
.bar__title {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-label);
  font-weight: 700; font-size: 13px; opacity: .92; margin-right: auto;
  border-left: 1px solid rgba(255,255,255,.25); padding-left: 14px; line-height: 1.2;
}
.bar__title small { display: block; font-weight: 500; letter-spacing: .06em; opacity: .7; font-size: 11px; text-transform: none; font-family: var(--font-sans); }
.iconbtn {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff;
  height: 34px; min-width: 34px; padding: 0 10px; border-radius: var(--radius-md); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  transition: background var(--duration-fast) var(--ease-standard);
}
.iconbtn:hover { background: rgba(255,255,255,.16); }
.iconbtn svg { width: 16px; height: 16px; }
/* Holiday garland: a row of bulbs hanging off the bar. */
.garland { display: none; }
[data-skin="holiday"] .garland {
  display: block; position: absolute; left: 0; right: 0; bottom: -13px; height: 14px; pointer-events: none; z-index: 2;
  background:
    radial-gradient(circle at 10px 8px, #e0a30a 0 4px, transparent 4.5px) 0 0 / 80px 14px repeat-x,
    radial-gradient(circle at 30px 8px, #2fa36b 0 4px, transparent 4.5px) 0 0 / 80px 14px repeat-x,
    radial-gradient(circle at 50px 8px, #e2483f 0 4px, transparent 4.5px) 0 0 / 80px 14px repeat-x,
    radial-gradient(circle at 70px 8px, #6fa8ff 0 4px, transparent 4.5px) 0 0 / 80px 14px repeat-x;
  animation: twinkle 2.4s steps(2) infinite;
}
@keyframes twinkle { 50% { filter: brightness(1.35) saturate(1.2); } }

/* ---------- layout ---------- */
.wrap { max-width: 560px; margin: 0 auto; padding: 18px 16px 48px; }
.wrap--wide { max-width: 1320px; }
.eyebrow {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-label);
  font-weight: 600; font-size: var(--text-2xs); color: var(--text-muted); margin: 0 0 6px;
}
.panel {
  background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 18px;
}
.panel + .panel { margin-top: 16px; }
.panel__title {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-label);
  font-weight: 700; font-size: 13px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px;
}
.panel__title::after { content: ""; flex: 0 0 42px; height: 3px; background: var(--hi-2); order: -1; display: none; }
.panel__title .count { margin-left: auto; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; color: var(--text-muted); text-transform: none; font-size: 12px; }
.rule { width: 42px; height: 3px; background: var(--hi-2); margin: -8px 0 14px; }
.muted { color: var(--text-muted); }
.empty { color: var(--text-muted); font-size: var(--text-sm); margin: 0; padding: 10px 0; }

.demo-strip {
  border: 1px dashed var(--border-strong); border-radius: var(--radius-md); background: rgba(255,255,255,.6);
  padding: 8px 10px; font-size: 12px; color: var(--text-secondary); display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin-bottom: 14px;
}
.demo-strip b { font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; color: var(--text-muted); }
.demo-strip select { font: inherit; padding: 4px 6px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); background: #fff; max-width: 210px; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: 12.5px;
  height: 44px; padding: 0 18px; border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--hi); color: #fff; }
.btn--primary:hover { background: var(--hi-ink); }
.btn--secondary { background: #fff; border-color: var(--border-default); color: var(--text-primary); }
.btn--secondary:hover { border-color: var(--border-strong); background: var(--steel-25); }
.btn--dark { background: var(--indigo-900); color: #fff; }
.btn--ghost { background: transparent; color: var(--text-secondary); height: 34px; padding: 0 10px; }
.btn--sm { height: 32px; font-size: 11px; padding: 0 12px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- pattern picture ---------- */
.pattern-pic {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; width: 46px; height: 46px; padding: 3px;
  background: var(--surface-sunken); border-radius: var(--radius-sm); flex: none;
}
.pattern-pic span { background: #fff; border-radius: 1px; transition: background var(--duration-mid) var(--ease-standard); }
.pattern-pic span.on { background: var(--hi); }
.pattern-pic span.free:not(.on) { background: var(--sand-200); }
.pattern-pic--big { width: 120px; height: 120px; gap: 4px; padding: 6px; }
.pattern-pic--big span { border-radius: 2px; }

/* ---------- now playing banner ---------- */
.now {
  display: flex; gap: 14px; align-items: center; padding: 14px 16px; margin-bottom: 14px;
  background: #fff; border: 1px solid var(--border-default); border-left: 4px solid var(--hi);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.now__text { min-width: 0; }
.now__game { font-family: var(--font-display); text-transform: uppercase; font-weight: 800; font-size: 22px; letter-spacing: .02em; line-height: 1.05; margin: 2px 0 3px; }
.now__hint { font-size: 13px; color: var(--text-secondary); margin: 0; }

.notice {
  border-radius: var(--radius-md); padding: 12px 14px; font-size: 14px; margin-bottom: 14px; line-height: 1.45;
  background: var(--hi-soft); color: var(--hi-ink); border: 1px solid color-mix(in srgb, var(--hi) 25%, transparent);
}
.notice strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; margin-bottom: 2px; }
.notice--sitout { background: var(--amber-warn-50); color: var(--amber-700); border-color: rgba(224,163,10,.35); }
.notice--won { background: var(--green-50); color: var(--green-700); border-color: rgba(30,142,90,.3); }

/* ---------- the card ---------- */
.card {
  background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: 10px;
  border: 1px solid var(--border-default); position: relative;
}
[data-skin="holiday"] .card { border: 2px solid #1f6b4a; box-shadow: 0 0 0 4px #fff, 0 0 0 6px #b81d2b, var(--shadow-md); margin: 8px 6px 0; }
.card__owner { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 8px; font-size: 12px; color: var(--text-muted); }
.card__owner b { color: var(--text-primary); font-size: 14px; }
.card__owner .mono { font-family: var(--font-mono); font-size: 11px; }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.letter {
  aspect-ratio: 1 / .78; display: grid; place-items: center; color: #fff; border-radius: var(--radius-md);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 7vw, 32px);
  background: var(--letter-bg-1);
}
.letter:nth-child(even) { background: var(--letter-bg-2); }
.cell {
  aspect-ratio: 1; position: relative; display: grid; place-items: center; cursor: pointer;
  background: var(--steel-25); border: 1px solid var(--border-default); border-radius: var(--radius-md);
  font-weight: 700; font-size: clamp(18px, 6.2vw, 28px); font-variant-numeric: tabular-nums; color: var(--text-primary);
  -webkit-tap-highlight-color: transparent; user-select: none; overflow: hidden;
  transition: background var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.cell:hover { background: #fff; }
.cell:active { transform: scale(.96); }
.cell .num { position: relative; z-index: 2; }
.cell.marked .num { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.cell .dab { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cell .dab svg { width: 100%; height: 100%; display: block; }
.cell.just .dab { animation: stamp .26s var(--ease-out); }
@keyframes stamp { 0% { transform: scale(1.6); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1); } }
.cell.nope { animation: nope .32s var(--ease-standard); }
@keyframes nope { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.cell.win-cell { box-shadow: inset 0 0 0 3px var(--gold); }
.cell.free { cursor: default; background: var(--hi-soft); }
.cell.free .free-mark { position: relative; z-index: 2; display: grid; place-items: center; gap: 0; color: var(--hi-ink); }
.cell.free .free-mark svg { width: 46%; height: auto; }
.cell.free .free-mark span { font-family: var(--font-display); font-weight: 800; font-size: 10px; letter-spacing: .14em; margin-top: 2px; }

/* dabber picker */
.dabber { display: flex; align-items: center; gap: 10px; margin: 12px 4px 2px; font-size: 12px; color: var(--text-muted); }
.dabber b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; cursor: pointer; padding: 0;
  box-shadow: 0 0 0 1px var(--border-default);
}
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--text-primary); transform: scale(1.08); }

/* BINGO button */
.bingo-wrap { min-height: 0; }
.bingo {
  width: 100%; margin-top: 14px; height: 68px; border: 0; border-radius: var(--radius-lg); cursor: pointer;
  font-family: var(--font-display); font-weight: 900; font-size: 34px; letter-spacing: .14em; color: #fff;
  background: linear-gradient(180deg, var(--bingo-2), var(--bingo-1));
  box-shadow: 0 6px 0 color-mix(in srgb, var(--bingo-1) 60%, #000), 0 10px 26px rgba(0,0,0,.18);
  animation: pop-in .4s var(--ease-out), glow 1.4s ease-in-out .4s infinite;
}
.bingo:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--bingo-1) 60%, #000); }
@keyframes pop-in { from { transform: scale(.6); opacity: 0; } }
@keyframes glow { 50% { filter: brightness(1.12); box-shadow: 0 6px 0 color-mix(in srgb, var(--bingo-1) 60%, #000), 0 0 0 8px color-mix(in srgb, var(--gold) 35%, transparent); } }

/* called numbers */
.called-rows { display: grid; gap: 6px; }
.called-row { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; }
.called-row > b { font-family: var(--font-display); font-weight: 800; color: var(--hi); font-size: 15px; line-height: 28px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; min-width: 34px; height: 28px; padding: 0 6px;
  display: inline-grid; place-items: center; border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--text-secondary);
}
.chip--today { background: var(--gold); color: #3a2a00; font-weight: 600; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--gold); }
.chips .none { font-size: 12px; color: var(--text-muted); line-height: 28px; }
.today-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; font-size: 14px; }
.ball {
  --c: var(--hi);
  width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 55%, #fff) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 75%, #000) 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,.18);
  font-weight: 800; font-size: 14px; color: var(--text-primary); line-height: 1; text-align: center;
}
.ball span { background: #fff; border-radius: 50%; width: 31px; height: 31px; font-family: var(--font-sans); font-weight: 800; color: var(--steel-900); display: grid; place-items: center; font-size: 12px; }

details.how { margin-top: 16px; font-size: 14px; color: var(--text-secondary); }
details.how summary { cursor: pointer; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; color: var(--text-primary); }
details.how ul { padding-left: 18px; line-height: 1.6; }

/* toasts */
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; z-index: var(--z-toast); width: min(92vw, 420px); }
.toast {
  background: var(--steel-900); color: #fff; padding: 12px 14px; border-radius: var(--radius-md); font-size: 14px; box-shadow: var(--shadow-lg);
  animation: toast-in .2s var(--ease-out); transition: opacity .3s, transform .3s;
}
.toast--good { background: var(--green-700); }
.toast--warn { background: #5a4206; }
.toast.out { opacity: 0; transform: translateY(6px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* claim sheet */
.sheet-back { position: fixed; inset: 0; background: rgba(20, 22, 40, .45); z-index: 150; display: grid; place-items: end center; animation: fade .2s; }
.sheet {
  background: #fff; width: min(560px, 100%); border-radius: 14px 14px 0 0; padding: 26px 22px 30px; text-align: center;
  animation: up .32s var(--ease-out); box-shadow: var(--shadow-lg);
}
.sheet h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 38px; letter-spacing: .1em; margin: 6px 0 6px; color: var(--hi); }
.sheet p { margin: 6px 0; line-height: 1.5; }
.sheet .big { font-size: 17px; font-weight: 600; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 160; }

/* ---------- admin ---------- */
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1000px) { .admin-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.games { display: grid; gap: 8px; }
.game {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px;
  border: 1px solid var(--border-default); border-radius: var(--radius-md); background: #fff;
}
.game--active { border-color: var(--hi); box-shadow: inset 4px 0 0 var(--hi); background: var(--hi-soft); }
.game__name { font-weight: 700; font-size: 14px; }
.game__meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.pill {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: 10.5px;
  padding: 3px 7px; border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--text-secondary); white-space: nowrap;
}
.pill--live { background: var(--hi); color: #fff; }
.pill--good { background: var(--green-50); color: var(--green-700); }
.pill--bad { background: var(--red-50); color: #a3271f; }
.pill--warn { background: var(--amber-warn-50); color: var(--amber-700); }
.entry { display: flex; gap: 8px; flex-wrap: wrap; }
.entry input {
  flex: 1 1 140px; height: 52px; font: 700 24px var(--font-mono); padding: 0 14px; text-transform: uppercase;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md); min-width: 0;
}
.entry .btn { height: 52px; }
.entry-msg { min-height: 20px; font-size: 13px; margin: 8px 0 0; }
.entry-msg.bad { color: #a3271f; }
.entry-msg.good { color: var(--green-700); }
.pad { display: grid; gap: 4px; margin-top: 14px; }
.pad__row { display: grid; grid-template-columns: 22px repeat(15, 1fr); gap: 3px; align-items: center; }
.pad__row > b { font-family: var(--font-display); color: var(--hi); text-align: center; font-size: 13px; }
.pad button {
  height: 30px; border: 1px solid var(--border-default); background: #fff; border-radius: var(--radius-sm); cursor: pointer;
  font: 600 11.5px var(--font-mono); padding: 0; min-width: 0;
}
.pad button:hover:not([disabled]) { border-color: var(--hi); color: var(--hi); }
.pad button.called { background: var(--hi); color: #fff; border-color: var(--hi); cursor: default; }
.pad button.sel { background: var(--gold); border-color: var(--gold); color: #3a2a00; }
@media (max-width: 520px) {
  .pad__row { grid-template-columns: 18px repeat(8, 1fr); }
  .pad__row > b { grid-row: span 2; }
}
.dayline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-secondary); margin-top: 12px; }
.claims { display: grid; gap: 8px; }
.claim {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 10px 12px;
  border: 1px solid var(--border-default); border-radius: var(--radius-md); background: #fff; font-size: 13px;
}
.claim__who { font-weight: 700; font-size: 14px; }
.claim__tags { display: flex; gap: 6px; flex-wrap: wrap; grid-column: 1 / -1; }
.claim__acts { display: flex; gap: 6px; align-items: start; }
.names { display: flex; flex-wrap: wrap; gap: 6px; }
.name-tag { background: var(--surface-sunken); border-radius: var(--radius-sm); padding: 4px 8px; font-size: 13px; }
textarea.sms {
  width: 100%; min-height: 86px; font: 15px/1.45 var(--font-sans); padding: 10px 12px; resize: vertical;
  border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--steel-25);
}
.fp { font-family: var(--font-mono); font-size: 12px; word-break: break-all; background: var(--steel-25); padding: 8px 10px; border-radius: var(--radius-sm); }
.hint-ball { font-family: var(--font-mono); font-weight: 600; }
.tumbler { display: inline-grid; place-items: center; }
.tumbler.spin .ball { animation: tumble .9s var(--ease-standard); }
@keyframes tumble { 0% { transform: rotate(0) scale(.6); } 70% { transform: rotate(540deg) scale(1.15); } 100% { transform: rotate(720deg) scale(1); } }

/* ---------- caller board ---------- */
body.board-page, [data-skin] body.board-page { background: var(--board-bg); background-attachment: fixed; color: #fff; min-height: 100vh; overflow-x: hidden; }
.board-page .bar { background: rgba(0,0,0,.18); }
.board { max-width: 1600px; margin: 0 auto; padding: 22px 28px 28px; display: grid; gap: 22px; grid-template-columns: minmax(280px, 0.8fr) 1.6fr; }
@media (max-width: 900px) { .board { grid-template-columns: 1fr; padding: 16px; } }
.b-panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-xl); padding: 20px; }
.b-label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-label); font-size: 12px; opacity: .7; margin: 0 0 10px; font-weight: 600; }
.lastball { display: flex; justify-content: center; padding: 6px 0 4px; }
.bigball {
  --c: var(--hi);
  width: min(100% - 24px, 300px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, #fff 0 12%, color-mix(in srgb, var(--c) 20%, #fff) 13% 30%, var(--c) 31% 100%);
  box-shadow: 0 0 0 5px rgba(255,255,255,.85), 0 0 0 11px rgba(255,255,255,.14), inset -14px -18px 40px rgba(0,0,0,.35), 0 18px 50px rgba(0,0,0,.45);
}
@media (max-width: 900px) { .bigball { width: min(60vw, 260px); } }
.bigball__face { width: 58%; aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--steel-900); display: grid; place-items: center; align-content: center; box-shadow: inset 0 -4px 10px rgba(0,0,0,.12); }
.bigball__face b { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 3.6vw, 48px); line-height: .9; color: var(--c); }
.bigball__face span { font-weight: 800; font-size: clamp(44px, 6.4vw, 92px); line-height: .9; font-variant-numeric: tabular-nums; }
.bigball.drop { animation: drop .7s var(--ease-out); }
@keyframes drop { 0% { transform: translateY(-60px) rotate(-200deg) scale(.5); opacity: 0; } 100% { transform: none; opacity: 1; } }
.bigball--empty { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); }
.bigball--empty .bigball__face { background: transparent; color: rgba(255,255,255,.75); width: 80%; text-align: center; font-size: 18px; font-weight: 600; box-shadow: none; }
.recent { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.recent .ball { width: 54px; height: 54px; box-shadow: 0 0 0 3px rgba(255,255,255,.8); }
.b-game { display: flex; gap: 18px; align-items: center; }
.b-game .pattern-pic { background: rgba(255,255,255,.12); }
.b-game .pattern-pic span { background: rgba(255,255,255,.18); }
.b-game .pattern-pic span.on { background: var(--gold); }
.b-game .pattern-pic span.free:not(.on) { background: rgba(255,255,255,.35); }
.b-game__name { font-family: var(--font-display); text-transform: uppercase; font-weight: 800; font-size: clamp(26px, 3vw, 44px); line-height: 1; margin: 4px 0 6px; }
.b-numbers { display: grid; gap: 6px; }
.b-row { display: grid; grid-template-columns: 54px repeat(15, 1fr); gap: 6px; }
.b-row > b { display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 26px; border-radius: var(--radius-md); background: var(--letter-bg-1); }
.b-row:nth-child(even) > b { background: var(--letter-bg-2); }
.b-num {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-weight: 700; font-size: clamp(12px, 1.35vw, 22px);
  color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); font-variant-numeric: tabular-nums;
  transition: all .4s var(--ease-out);
}
.b-num.on { background: #fff; color: var(--steel-900); box-shadow: 0 0 18px color-mix(in srgb, var(--gold) 60%, transparent); }
.b-num.last { background: var(--gold); color: #2a1e00; transform: scale(1.12); }
@media (max-width: 520px) { .b-row { grid-template-columns: 28px repeat(8, 1fr); gap: 4px; } .b-row > b { font-size: 16px; grid-row: span 2; } .b-num { font-size: 13px; } }
.b-winners { display: grid; gap: 8px; }
.b-winner { display: flex; gap: 10px; align-items: baseline; font-size: 16px; }
.b-winner b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; opacity: .7; min-width: 110px; }
.b-count { font-family: var(--font-mono); font-size: 14px; opacity: .75; }
.b-side { display: grid; gap: 22px; align-content: start; }
.b-main { display: grid; gap: 22px; align-content: start; }
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 0; display: none; }
[data-skin="holiday"] .snow { display: block; }
.board, .board-page .bar { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* free space: LEC bolt by default, a star in the holiday skin */
.free-holiday { display: none; }
[data-skin="holiday"] .free-lec { display: none; }
[data-skin="holiday"] .free-holiday { display: block; color: #d39a06; }

/* prizes */
.prize { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--border-default); }
.prize__label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; font-weight: 700; color: var(--text-muted); margin-right: 4px; }
.prize__dollar { font-family: var(--font-mono); color: var(--text-muted); }
.prize input { height: 32px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); padding: 0 8px; font: 14px var(--font-sans); min-width: 0; background: #fff; }
.prize__amt { width: 76px; font-family: var(--font-mono) !important; }
.prize__what { flex: 1; }
.now__prize { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--hi-ink); display: flex; align-items: center; gap: 6px; }
.now__prize svg { width: 15px; height: 15px; flex: none; }
.prize-list { display: grid; gap: 8px; }
.prize-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, 42%); gap: 10px; align-items: center; font-size: 14px; }
.prize-row .pattern-pic { width: 34px; height: 34px; padding: 2px; gap: 1px; }
.prize-row__name { font-weight: 700; }
.prize-row__who { font-size: 12.5px; color: var(--text-muted); }
.prize-row__amt { font-weight: 700; text-align: right; font-size: 13px; line-height: 1.3; color: var(--hi-ink); }
.prize-row--now { background: var(--hi-soft); border-radius: var(--radius-md); padding: 6px; margin: -6px; }
.b-prize { margin: 10px 0 0; font-size: 20px; font-weight: 700; color: var(--gold); }
.b-winner .amt { font-family: var(--font-mono); color: var(--gold); font-size: 14px; }

/* close calls */
.now__close { margin: 4px 0 0; font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.board-link { margin: 14px 0 0; font-size: 13px; }
.board-link a { color: var(--hi-ink); font-weight: 700; text-decoration: none; }
.board-link a:hover { text-decoration: underline; }
.close-note { margin: 2px 0 0; font-size: 13px; color: var(--text-secondary); }
.b-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.b-stat { display: grid; gap: 4px; }
.b-stat b { font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 3.4vw, 52px); line-height: 1; color: var(--gold); }
.b-stat span { font-size: 14px; opacity: .8; }
@media (max-width: 520px) { .b-stats { grid-template-columns: 1fr 1fr; } }

/* fun facts and who's playing */
.b-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.b-fact { display: grid; gap: 4px; }
.b-fact b { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.2vw, 34px); line-height: 1; }
.b-fact span { font-size: 13px; opacity: .75; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-stat { background: var(--steel-25); border-radius: var(--radius-md); padding: 10px; display: grid; gap: 2px; }
.mini-stat b { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--hi); line-height: 1; }
.mini-stat span { font-size: 12px; color: var(--text-muted); }

/* letters in play */
.b-row--out { opacity: .28; filter: saturate(.3); transition: opacity .4s; }
.b-inplay { margin: 8px 0 0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: 14px; font-weight: 700; opacity: .85; }
.letter--out { opacity: .3; }
.pad__row--out { opacity: .4; }
/* puller */
.puller { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-subtle); display: grid; gap: 8px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--hi); }
.puller__modes { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-secondary); }
.puller__modes input { accent-color: var(--hi); }

/* reset */
.panel--danger { border-color: rgba(208, 53, 43, .35); }
.btn--danger { background: #fff; color: #a3271f; border-color: rgba(208, 53, 43, .5); }
.btn--danger:hover { background: var(--red-50); }
