/* bluestem Booth Games — brand tokens from BRAND_GUIDE.md (rsmus.com palette) */
:root {
  --blue: #009CDE;
  --midnight: #00153D;
  --midnight-2: #0B2454;
  --green: #3F9C35;
  --grey: #888B8D;
  --white: #FFFFFF;
  --sky: #E5F5FC;
  --fog: #F2F3F4;
  --amber: #F2A900;
  --red: #D0342C;
  --text: #1B1F23;
  --text-dim: #C9D1DB;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(0, 21, 61, 0.08);
  --head: Poppins, "Segoe UI", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --tap: 56px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--body);
  font-size: 18px;
  color: var(--text);
  background: var(--fog);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  touch-action: manipulation;
}
h1, h2, h3, h4, .num { font-family: var(--head); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 40px; line-height: 1.1; }
h2 { font-size: 28px; line-height: 1.15; }
h3 { font-size: 20px; }
p { margin: 0 0 10px; }
.num, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: Consolas, "Cascadia Mono", Menlo, monospace; }
.dim { color: var(--grey); }
.small { font-size: 14px; }
.hide { display: none !important; }
a { color: var(--blue); }
img { max-width: 100%; }

/* ---------------------------------------------------------- top bar */
.topbar {
  height: 48px;
  background: var(--midnight);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 10px;
  flex: none;
  user-select: none;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand img { height: 28px; display: block; }
.appname { font-family: var(--head); font-weight: 600; font-size: 17px; border-left: 1px solid rgba(255,255,255,0.25); padding-left: 12px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.divider { width: 1px; height: 22px; background: rgba(255,255,255,0.25); }
.powered { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-dim); }
.powered img { height: 20px; display: block; }
.sync { background: transparent; border: 0; color: var(--text-dim); font: inherit; font-size: 12px; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.sync i { width: 10px; height: 10px; border-radius: 50%; background: var(--grey); display: inline-block; }
.sync.ok i { background: var(--green); }
.sync.queued i { background: var(--amber); }
.sync.offline i { background: var(--red); }
.sync.local i { background: var(--grey); }
body.kiosk-attract .topbar .appname { display: none; }
.powered, .sync b { white-space: nowrap; }
@media (max-width: 600px) {
  .topbar .appname { display: none; }
  .sync b { display: none; }
  .powered { font-size: 10px; gap: 6px; }
  .powered img { height: 16px; }
}

/* ---------------------------------------------------------- page frame */
.page { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 22px 20px 30px; flex: 1; }
.wrap.narrow { max-width: 760px; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } h1 { font-size: 30px; } }

/* ---------------------------------------------------------- buttons */
.btn {
  font-family: var(--head); font-weight: 600; font-size: 18px;
  min-height: var(--tap); padding: 0 26px; border-radius: 12px; border: 2px solid transparent;
  background: var(--blue); color: var(--white); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .08s ease, background .15s ease;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.big { font-size: 24px; min-height: 72px; padding: 0 40px; border-radius: 16px; }
.btn.ghost { background: transparent; color: var(--midnight); border-color: #CBD3DC; }
.btn.ghost.on-dark { color: var(--white); border-color: rgba(255,255,255,.35); }
.btn.green { background: var(--green); }
.btn.red { background: var(--red); }
.btn.amber { background: var(--amber); color: var(--midnight); }
.btn.midnight { background: var(--midnight); }
.btn.block { width: 100%; }
.btn.sm { min-height: 44px; font-size: 15px; padding: 0 16px; border-radius: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 52px; padding: 0 18px; border-radius: 999px; border: 2px solid #CBD3DC; background: var(--white);
  font: inherit; font-size: 17px; cursor: pointer; color: var(--text);
}
.chip.on { border-color: var(--blue); background: var(--sky); color: var(--midnight); font-weight: 600; }
.chip.sm { min-height: 40px; font-size: 14px; padding: 0 14px; }

/* ---------------------------------------------------------- forms */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: #3B4552; font-weight: 600; }
input[type=text], input[type=email], select, textarea {
  font: inherit; font-size: 20px; min-height: var(--tap); padding: 10px 14px;
  border: 2px solid #CBD3DC; border-radius: 12px; background: var(--white); color: var(--text); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--sky); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; font-weight: 400; }
.check input { width: 26px; height: 26px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.error { color: var(--red); font-weight: 600; }
.banner { background: var(--sky); border-left: 6px solid var(--blue); padding: 12px 16px; border-radius: 10px; }
.banner.warn { background: #FFF6DB; border-color: var(--amber); }
.banner.bad { background: #FBE7E5; border-color: var(--red); }
.banner.good { background: #E8F5E6; border-color: var(--green); }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--fog); color: #3B4552; }
.pill.blue { background: var(--sky); color: #005B86; }
.pill.green { background: #E8F5E6; color: #2A6E22; }
.pill.amber { background: #FFF1CC; color: #7A5400; }
.pill.red { background: #FBE7E5; color: #8E2019; }
.pill.midnight { background: var(--midnight); color: var(--white); }

/* ---------------------------------------------------------- tables */
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); padding: 8px 10px; border-bottom: 1px solid #E1E5EA; }
td { padding: 10px; border-bottom: 1px solid #EEF1F4; vertical-align: middle; }
tr:nth-child(even) td { background: #FAFBFC; }
td.num, th.num { text-align: right; }

/* ---------------------------------------------------------- attract screen */
.attract {
  flex: 1; background: radial-gradient(1200px 700px at 20% 10%, #0E2B63 0%, var(--midnight) 60%);
  color: var(--white); display: grid; grid-template-columns: 1.25fr 1fr; gap: 30px; padding: 40px 48px; cursor: pointer;
  user-select: none;
}
.attract h1 { font-size: 64px; line-height: 1.05; min-height: 2.1em; }
.attract .tag { color: var(--text-dim); font-size: 22px; margin: 14px 0 26px; }
.attract .prize { display: inline-flex; align-items: center; gap: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 12px 18px; font-size: 20px; }
.attract .prize b { color: var(--amber); font-family: var(--head); font-size: 26px; }
.gametiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.gametile { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 18px; min-height: 150px; display: flex; flex-direction: column; gap: 6px; }
.gametile .icon { font-size: 30px; }
.gametile h3 { font-size: 22px; color: var(--white); }
.gametile p { color: var(--text-dim); font-size: 15px; margin: 0; }
.gametile .time { margin-top: auto; font-size: 13px; color: var(--blue); font-weight: 600; }
.attract .cta { margin-top: 30px; }
.attract .cta .btn { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,156,222,.55); } 50% { box-shadow: 0 0 0 14px rgba(0,156,222,0); } }
.attract-side { display: flex; flex-direction: column; gap: 18px; }
.miniboard { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 18px; }
.miniboard h3 { color: var(--text-dim); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.miniboard ol { margin: 0; padding: 0; list-style: none; }
.miniboard li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 19px; }
.miniboard li:last-child { border-bottom: 0; }
.miniboard .rank { width: 30px; color: var(--blue); font-family: var(--head); font-weight: 600; }
.miniboard .score { margin-left: auto; font-family: var(--head); font-weight: 600; }
.tally { font-size: 18px; color: var(--text-dim); }
.tally b { color: var(--white); font-family: var(--head); font-size: 30px; }
.qr { display: flex; gap: 16px; align-items: center; background: var(--white); color: var(--midnight); border-radius: 16px; padding: 14px; }
.qr svg { width: 120px; height: 120px; flex: none; }
.qr h4 { font-size: 18px; }
.qr p { font-size: 14px; color: #3B4552; margin: 4px 0 0; }
@media (max-width: 1000px) { .attract { grid-template-columns: 1fr; padding: 28px 22px; } .attract h1 { font-size: 42px; } .gametiles { grid-template-columns: 1fr; } .qr { display: none; } }

/* ---------------------------------------------------------- game shells */
.game { flex: 1; display: flex; flex-direction: column; }
.game-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 22px; background: var(--white); border-bottom: 1px solid #E1E5EA; }
.game-head .title { font-family: var(--head); font-weight: 600; font-size: 20px; color: var(--midnight); display: flex; gap: 12px; align-items: center; }
.game-body { flex: 1; padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.intro { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; padding: 40px 24px; background: var(--midnight); color: var(--white); }
.intro h1 { font-size: 52px; }
.intro p { font-size: 24px; color: var(--text-dim); max-width: 720px; }
.intro .icon { font-size: 72px; }
.timer { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; font-size: 26px; color: var(--midnight); }
.timer svg { width: 48px; height: 48px; transform: rotate(-90deg); }
.timer .track { stroke: #E1E5EA; }
.timer .arc { stroke: var(--blue); transition: stroke-dashoffset .25s linear, stroke .3s; }
.timer.warn .arc { stroke: var(--amber); }
.timer.danger .arc { stroke: var(--red); }
.timer.danger { color: var(--red); }
.timebar { height: 10px; border-radius: 6px; background: #E1E5EA; overflow: hidden; }
.timebar i { display: block; height: 100%; background: var(--blue); transition: width .2s linear; }
.timebar.warn i { background: var(--amber); }
.timebar.danger i { background: var(--red); }
.score-flash { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 50; }
.score-flash span { font-family: var(--head); font-weight: 700; font-size: 84px; color: var(--white); padding: 20px 50px; border-radius: 24px; animation: flash .9s ease forwards; }
.score-flash.win span { background: var(--green); }
.score-flash.lose span { background: var(--red); }
@keyframes flash { 0% { transform: scale(.6); opacity: 0; } 25% { transform: scale(1.05); opacity: 1; } 75% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

/* Beat the Bot */
.btb-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; flex: 1; }
.btb-item h2 { font-size: 30px; color: var(--midnight); }
.btb-item .meta { color: var(--grey); font-size: 18px; margin: 4px 0 12px; }
.spark { width: 100%; height: 240px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }
.spark text { font-family: var(--body); font-size: 13px; fill: var(--grey); }
.spark .line { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.spark .dot { fill: var(--white); stroke: var(--blue); stroke-width: 3; }
.spark .val { fill: var(--midnight); font-weight: 600; font-size: 15px; }
.spark .target { fill: var(--fog); stroke: #CBD3DC; stroke-dasharray: 5 5; }
.spark .q { fill: var(--amber); font-family: var(--head); font-size: 30px; font-weight: 700; }
.hint { display: inline-flex; gap: 10px; align-items: center; background: #FFF6DB; border: 1px solid #F2D27A; color: #5A3E00; padding: 10px 16px; border-radius: 12px; font-weight: 600; margin-top: 12px; max-width: 100%; }
.guess { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.guess .price { font-family: var(--head); font-weight: 700; font-size: 72px; color: var(--midnight); text-align: center; line-height: 1; }
.guess .price small { font-size: 22px; color: var(--grey); font-weight: 500; display: block; margin-top: 6px; }
.guess input[type=range] { width: 100%; height: 56px; accent-color: var(--blue); margin: 0; }
.guess .range-labels { display: flex; justify-content: space-between; color: var(--grey); font-size: 14px; }
.steppers { display: flex; gap: 10px; }
.steppers .btn { flex: 1; }
.reveal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reveal-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-align: center; border-top: 6px solid #CBD3DC; }
.reveal-box.actual { border-top-color: var(--midnight); }
.reveal-box.you { border-top-color: var(--blue); }
.reveal-box.ai { border-top-color: var(--amber); }
.reveal-box .lbl { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--grey); }
.reveal-box .v { font-family: var(--head); font-weight: 700; font-size: 46px; color: var(--midnight); margin: 6px 0; }
.reveal-box .d { font-size: 15px; color: var(--grey); }
.pts { font-family: var(--head); font-weight: 600; font-size: 22px; }
@media (max-width: 900px) { .btb-card { grid-template-columns: 1fr; } .reveal-grid { grid-template-columns: 1fr; } .guess .price { font-size: 56px; } }

/* Recall Rush */
.recall-layout { display: grid; grid-template-columns: 1fr 360px; gap: 16px; flex: 1; min-height: 0; }
.board-grid { display: grid; grid-template-columns: 0.85fr 1fr 0.85fr 1.8fr; gap: 12px; align-content: start; }
.col-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--grey); font-weight: 600; margin-bottom: 6px; }
.node {
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; min-height: 76px;
  border: 2px solid transparent; cursor: pointer; display: flex; flex-direction: column; gap: 3px; position: relative; text-align: left; font: inherit; width: 100%;
}
.node:active { transform: scale(.98); }
.node .n { font-family: var(--head); font-weight: 600; font-size: 16px; color: var(--midnight); }
.node .s { font-size: 12px; color: var(--grey); }
.node.farm { border-left: 6px solid var(--green); }
.node.cooler, .node.processor { border-left: 6px solid var(--blue); }
.node.dc { border-left: 6px solid var(--midnight); }
.node.store { border-left: 6px solid var(--grey); }
.node.reporting::after { content: 'Reported illness'; position: absolute; top: -10px; right: 8px; background: var(--red); color: var(--white); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.node.reporting { margin-top: 6px; }
.node.selected { border-color: var(--red); background: #FBE7E5; }
.node.selected .n::after { content: '  ✓ recall'; color: var(--red); font-size: 13px; }
.node.correct { border-color: var(--green); background: #E8F5E6; }
.node.wrong { border-color: var(--red); background: #FBE7E5; }
.node.missed { border-color: var(--amber); background: #FFF6DB; }
.node.lit { border-color: var(--blue); background: var(--sky); box-shadow: 0 0 0 4px rgba(0,156,222,.25); }
.node.dimmed { opacity: .5; }
.stores2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 12px; align-self: start; position: sticky; top: 10px; }
.panel h3 { color: var(--midnight); }
.stages { display: flex; gap: 6px; }
.stages span { flex: 1; text-align: center; font-size: 12px; font-weight: 600; padding: 6px; border-radius: 8px; background: var(--fog); color: var(--grey); }
.stages span.on { background: var(--blue); color: var(--white); }
.stages span.done { background: #E8F5E6; color: var(--green); }
.lotchip { font-family: Consolas, Menlo, monospace; font-weight: 700; font-size: 20px; background: var(--midnight); color: var(--white); padding: 6px 12px; border-radius: 8px; letter-spacing: .04em; }
.drawer { position: fixed; inset: 0; background: rgba(0,21,61,.55); z-index: 40; display: flex; align-items: flex-end; }
.drawer .sheet { background: var(--white); width: 100%; max-height: 78vh; border-radius: 20px 20px 0 0; padding: 18px 22px 26px; overflow: auto; }
.drawer .sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.records td, .records th { font-size: 17px; }
.records .lot { font-family: Consolas, Menlo, monospace; font-weight: 700; font-size: 19px; color: var(--midnight); letter-spacing: .03em; }
.records .ev { font-weight: 600; text-transform: capitalize; }
.records .ev.transform { color: var(--amber); }
.truck { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; border: 2px solid transparent; display: flex; flex-direction: column; gap: 8px; }
.truck.held { border-color: var(--red); background: #FBE7E5; }
.truck.correct { border-color: var(--green); background: #E8F5E6; }
.truck .lotchip { align-self: flex-start; }
@media (max-width: 1000px) { .recall-layout { grid-template-columns: 1fr; } .panel { position: static; } .board-grid { grid-template-columns: 1fr 1fr; } }

/* Spot the Shrink */
.shrink-layout { display: grid; grid-template-columns: 1fr 260px; gap: 16px; flex: 1; align-items: start; }
.shrink-layout.reveal { grid-template-columns: 1fr 340px; }
.shrink-layout.reveal .scene { max-height: calc(100vh - 260px); }
.scene-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; display: flex; align-items: center; justify-content: center; }
.scene { width: 100%; height: auto; max-height: calc(100vh - 230px); touch-action: none; display: block; border-radius: 10px; }
.scene .mark { fill: rgba(0,156,222,.25); stroke: var(--blue); stroke-width: 4; }
.scene .truth { fill: none; stroke: var(--green); stroke-width: 3; stroke-dasharray: 8 6; }
.scene .aibox { fill: rgba(242,169,0,.12); stroke: var(--amber); stroke-width: 3; }
.scene .aibox.fp { stroke: var(--red); stroke-dasharray: 6 4; }
.scene .ailabel { font: 600 15px var(--body); fill: var(--midnight); }
.scene .ailabel-bg { fill: var(--amber); }
.scene .missed { animation: blink 1s ease-in-out infinite; }
@keyframes blink { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: .25; } }
.side { display: flex; flex-direction: column; gap: 12px; }
.side .card { padding: 16px; }
.layers { display: flex; flex-direction: column; gap: 8px; }
.layers label { display: flex; align-items: center; gap: 10px; font-size: 16px; min-height: 44px; }
.layers i { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.legend-you { background: var(--blue); }
.legend-truth { background: var(--green); }
.legend-ai { background: var(--amber); }
@media (max-width: 900px) { .shrink-layout { grid-template-columns: 1fr; } .scene { max-height: 60vh; } }

/* ---------------------------------------------------------- results */
.results { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.scorebig { text-align: center; padding: 30px 20px; }
.scorebig .v { font-family: var(--head); font-weight: 700; font-size: 110px; line-height: 1; color: var(--midnight); }
.scorebig .of { color: var(--grey); font-size: 20px; }
.stat { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #EEF1F4; font-size: 18px; }
.stat b { font-family: var(--head); }
.handoff { background: var(--midnight); color: var(--white); border-radius: var(--radius); padding: 24px; }
.handoff h3 { color: var(--white); font-size: 24px; margin-bottom: 8px; }
.handoff p { color: var(--text-dim); font-size: 17px; }
@media (max-width: 900px) { .results { grid-template-columns: 1fr; } .scorebig .v { font-size: 80px; } }

/* ---------------------------------------------------------- big screen board */
.bigboard { flex: 1; background: var(--midnight); color: var(--white); padding: 34px 48px; display: flex; flex-direction: column; gap: 22px; cursor: none; }
.bigboard .bb-head { display: flex; justify-content: space-between; align-items: flex-end; }
.bigboard h1 { font-size: 54px; }
.bigboard .sub { color: var(--text-dim); font-size: 22px; }
.bigboard table { font-size: 30px; }
.bigboard th { color: var(--blue); font-size: 15px; border-bottom-color: rgba(255,255,255,.15); }
.bigboard td { border-bottom-color: rgba(255,255,255,.08); padding: 14px 12px; }
.bigboard tr:nth-child(even) td { background: rgba(255,255,255,.03); }
.bigboard td.rank { font-family: var(--head); font-weight: 700; color: var(--blue); width: 70px; }
.bigboard tr.top td.rank { color: var(--amber); }
.bigboard td.score { font-family: var(--head); font-weight: 700; text-align: right; }
.bigboard td.mini { font-size: 18px; color: var(--text-dim); text-align: right; }
.bigboard .beat { font-size: 16px; color: var(--green); font-weight: 700; }
.bb-dots { display: flex; gap: 8px; }
.bb-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.bb-dots i.on { background: var(--blue); }
.bb-foot { margin-top: auto; display: flex; justify-content: space-between; color: var(--text-dim); font-size: 18px; align-items: center; }
.bb-foot b { color: var(--amber); font-family: var(--head); }
.bb-tally { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bb-tally .t { background: rgba(255,255,255,.07); border-radius: 20px; padding: 28px; text-align: center; }
.bb-tally .t .v { font-family: var(--head); font-weight: 700; font-size: 84px; color: var(--amber); line-height: 1; }
.bb-tally .t .l { color: var(--text-dim); font-size: 20px; margin-top: 10px; }
.bb-tally .t.hero { grid-column: span 4; }
.bb-tally .t.hero .v { font-size: 120px; }
.newtop { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); background: var(--amber); color: var(--midnight); font-family: var(--head); font-weight: 700; font-size: 44px; padding: 20px 44px; border-radius: 20px; z-index: 60; animation: drop 4s ease forwards; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
@keyframes drop { 0% { transform: translate(-50%, -80px); opacity: 0; } 12% { transform: translate(-50%, 0); opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
.frozen { background: var(--amber); color: var(--midnight); padding: 14px 20px; border-radius: 14px; font-family: var(--head); font-weight: 600; font-size: 24px; }

/* ---------------------------------------------------------- admin */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { font: inherit; font-weight: 600; min-height: 48px; padding: 0 18px; border-radius: 10px; border: 0; background: var(--white); color: var(--midnight); cursor: pointer; }
.tabs button.on { background: var(--midnight); color: var(--white); }
.pinpad { display: grid; grid-template-columns: repeat(3, 84px); gap: 12px; justify-content: center; }
.pinpad .btn { min-height: 72px; font-size: 28px; }
.pindots { display: flex; gap: 14px; justify-content: center; margin: 16px 0; }
.pindots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--midnight); }
.pindots i.on { background: var(--midnight); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 17px; }
.kv b { font-family: var(--head); }

/* ---------------------------------------------------------- misc */
.leadgate-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.pickgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pick { background: var(--white); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 10px; border: 0; text-align: left; font: inherit; cursor: pointer; min-height: 260px; border-top: 8px solid var(--blue); }
.pick:active { transform: scale(.98); }
.pick .icon { font-size: 44px; }
.pick h2 { color: var(--midnight); font-size: 26px; }
.pick p { color: #3B4552; font-size: 16px; }
.pick .status { margin-top: auto; }
@media (max-width: 900px) { .pickgrid { grid-template-columns: 1fr; } .pick { min-height: 0; } }
.rules h2 { margin: 22px 0 8px; color: var(--midnight); }
.rules li { margin-bottom: 8px; }
