/* 1-bit classic desktop look. Pure black & white; grays are dithered patterns. */
@font-face {
  font-family: 'ChicagoFLF';
  src: url('../fonts/ChicagoFLF.woff2') format('woff2'), url('../fonts/ChicagoFLF.woff') format('woff');
  font-display: swap;
}

:root {
  --ink: #000;
  --paper: #fff;
  --menubar-h: 22px;
  --font: 'ChicagoFLF', 'Chicago', 'Charcoal', 'Geneva', 'Helvetica Neue', Arial, sans-serif;
  /* 8x8 patterns as SVG data URIs */
  --pat-gray: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' shape-rendering='crispEdges'%3E%3Crect width='1' height='1' fill='%23000'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23000'/%3E%3C/svg%3E");
  --pat-stripes: repeating-linear-gradient(#000 0 1px, #fff 1px 2px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background-color: #fff;
  background-image: var(--pat-gray);
  background-size: 2px 2px;
  image-rendering: pixelated;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.35;
  -webkit-font-smoothing: none;
  font-smooth: never;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Cpath d='M1 1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h-3v1h1v2h1v2h-2v-2h-1v-2h-1v1h-1v1h-1z' fill='%23000'/%3E%3Cpath d='M2 3v9h1v-1h1v-1h1v2h1v2h1v-2h-1v-2h3v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1z' fill='%23fff'/%3E%3C/svg%3E") 1 1, default;
}
@media (min-resolution: 2dppx) { body { background-size: 2px 2px; } }

button, input, select, textarea { font-family: var(--font); font-size: 15px; color: #000; }
a { color: #000; }
::selection { background: #000; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- rounded screen corners (desktop only) ---------- */
@media (min-width: 700px) {
  .screen-corner { position: fixed; width: 8px; height: 8px; z-index: 9999; pointer-events: none; }
  .screen-corner::before { content: ''; position: absolute; inset: 0; background: #000; }
  .screen-corner::after { content: ''; position: absolute; inset: 0; background: transparent; }
  .sc-tl { top: 0; left: 0; } .sc-tr { top: 0; right: 0; }
  .sc-bl { bottom: 0; left: 0; } .sc-br { bottom: 0; right: 0; }
  .sc-tl::before { -webkit-mask: radial-gradient(circle at 8px 8px, transparent 7.5px, #000 8px); mask: radial-gradient(circle at 8px 8px, transparent 7.5px, #000 8px); }
  .sc-tr::before { -webkit-mask: radial-gradient(circle at 0 8px, transparent 7.5px, #000 8px); mask: radial-gradient(circle at 0 8px, transparent 7.5px, #000 8px); }
  .sc-bl::before { -webkit-mask: radial-gradient(circle at 8px 0, transparent 7.5px, #000 8px); mask: radial-gradient(circle at 8px 0, transparent 7.5px, #000 8px); }
  .sc-br::before { -webkit-mask: radial-gradient(circle at 0 0, transparent 7.5px, #000 8px); mask: radial-gradient(circle at 0 0, transparent 7.5px, #000 8px); }
}

/* ---------- menu bar ---------- */
.menubar {
  position: sticky; top: 0; z-index: 100;
  height: var(--menubar-h); background: #fff; border-bottom: 1px solid #000;
  display: flex; align-items: stretch; padding: 0 6px; user-select: none;
}
.menubar .menu { position: relative; }
.menubar .menu > button {
  height: 100%; border: 0; background: none; padding: 0 9px; font-size: 14px; cursor: inherit;
  display: flex; align-items: center; gap: 4px;
}
.menubar .menu.open > button, .menubar .menu > button:active { background: #000; color: #fff; }
.menubar .menu.open > button svg rect { fill: #fff; }
.menubar .spacer { flex: 1; }
.menubar .status { display: flex; align-items: center; padding: 0 8px; font-size: 13px; white-space: nowrap; overflow: hidden; }
.dropdown {
  position: absolute; top: calc(100% + 0px); left: 0; min-width: 190px; background: #fff;
  border: 1px solid #000; box-shadow: 2px 2px 0 #000; padding: 2px 0; display: none; z-index: 200;
}
.menu.open .dropdown { display: block; }
.dropdown button {
  display: flex; justify-content: space-between; width: 100%; text-align: left; border: 0; background: none;
  padding: 4px 16px 4px 18px; font-size: 14px; cursor: inherit; white-space: nowrap;
}
.dropdown button:hover:not(:disabled), .dropdown button:focus-visible { background: #000; color: #fff; outline: none; }
.dropdown button:disabled { color: #000; opacity: 1; background-image: none; }
.dropdown button:disabled span { opacity: .35; }
.dropdown hr { border: 0; border-top: 1px dotted #000; margin: 2px 0; }
.dropdown .check::before { content: '✓'; position: absolute; left: 5px; }
.dropdown button { position: relative; }
.dropdown kbd { font-family: var(--font); font-size: 13px; padding-left: 20px; }

/* ---------- desktop ---------- */
.desktop { position: relative; min-height: calc(100vh - var(--menubar-h)); min-height: calc(100dvh - var(--menubar-h)); padding: 22px 12px 40px; }
.desk-icons { position: absolute; right: 18px; top: 18px; display: flex; flex-direction: column; gap: 18px; z-index: 1; }
@media (max-width: 1000px) { .desk-icons { display: none; } }
.desk-icon { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: inherit; padding: 0; width: 76px; }
.desk-icon svg { width: 32px; height: 32px; background: transparent; }
.desk-icon span { background: #fff; padding: 0 3px; font-size: 13px; }
.desk-icon:focus span, .desk-icon:active span { background: #000; color: #fff; }

/* ---------- windows ---------- */
.window {
  position: relative; background: #fff; border: 1px solid #000; box-shadow: 2px 2px 0 #000;
  max-width: 640px; margin: 0 auto 22px; z-index: 2;
}
.window.narrow { max-width: 440px; }
.window.wide { max-width: 760px; }
.titlebar {
  height: 21px; border-bottom: 1px solid #000; position: relative;
  display: flex; align-items: center; justify-content: center; padding: 0 28px;
  background: linear-gradient(#fff 0 3px, transparent 3px calc(100% - 3px), #fff calc(100% - 3px)), repeating-linear-gradient(#fff 0 1px, #000 1px 2px);
  background-clip: padding-box;
}
.titlebar .ttl { background: #fff; padding: 0 8px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.titlebar .closebox, .titlebar .zoombox {
  position: absolute; top: 4px; width: 13px; height: 12px; border: 1px solid #000; background: #fff;
  box-shadow: 0 0 0 2px #fff; padding: 0; cursor: inherit;
}
.titlebar .closebox { left: 8px; }
.titlebar .zoombox { right: 8px; }
.titlebar .zoombox::after { content: ''; position: absolute; left: 0; top: 0; width: 6px; height: 5px; border-right: 1px solid #000; border-bottom: 1px solid #000; }
.titlebar .closebox:active { background: #000; }
.window.inactive .titlebar { background: #fff; }
.win-body { padding: 16px 18px 18px; }
.win-body.tight { padding: 10px 12px 12px; }
.statusbar { border-top: 1px solid #000; padding: 3px 10px; font-size: 12px; display: flex; justify-content: space-between; gap: 8px; }
.inset { border: 1px solid #000; padding: 10px 12px; }
.inset-double { border: 1px solid #000; outline: 1px solid #000; outline-offset: 2px; padding: 10px 12px; margin: 3px; }

/* ---------- controls ---------- */
.btn {
  appearance: none; background: #fff; border: 1.5px solid #000; border-radius: 7px; padding: 6px 18px;
  min-height: 34px; font-size: 15px; cursor: inherit; color: #000; line-height: 1.1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
  touch-action: manipulation; user-select: none;
}
.btn:active:not(:disabled), .btn.pressed { background: #000; color: #fff; }
.btn:disabled { color: #000; border-style: dotted; cursor: not-allowed; }
.btn:disabled > * { opacity: .45; }
.btn:focus-visible { outline: 1px dotted #000; outline-offset: 2px; }
.btn.default { box-shadow: 0 0 0 2px #fff, 0 0 0 5px #000; border-radius: 7px; margin: 5px; }
.btn.block { display: flex; width: 100%; }
.btn.small { min-height: 26px; padding: 3px 10px; font-size: 13px; border-radius: 6px; }
.btn.big { min-height: 46px; font-size: 17px; }
.btn-row { display: flex; gap: 12px; justify-content: flex-end; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.btn-row.center { justify-content: center; }
.btn-stack { display: grid; gap: 12px; }

.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field > label { font-size: 14px; }
.text {
  appearance: none; border: 1px solid #000; border-radius: 0; padding: 7px 8px; background: #fff; width: 100%;
  font-size: 16px; /* >=16px prevents iOS zoom */
}
.text:focus { outline: none; box-shadow: inset 0 0 0 1px #000; }
.text.code { font-size: 30px; letter-spacing: .32em; text-align: center; padding: 10px 4px 10px calc(4px + .32em); font-variant-numeric: tabular-nums; }

.radio-group, .check-group { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.opt { display: inline-flex; align-items: center; gap: 7px; cursor: inherit; font-size: 14px; padding: 3px 0; user-select: none; }
.opt input { appearance: none; width: 15px; height: 15px; border: 1px solid #000; background: #fff; margin: 0; flex: none; position: relative; cursor: inherit; }
.opt input[type=radio] { border-radius: 50%; }
.opt input[type=radio]:checked::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #000; }
.opt input[type=checkbox]:checked { background:
  linear-gradient(45deg, transparent calc(50% - .7px), #000 calc(50% - .7px) calc(50% + .7px), transparent calc(50% + .7px)),
  linear-gradient(-45deg, transparent calc(50% - .7px), #000 calc(50% - .7px) calc(50% + .7px), transparent calc(50% + .7px)); }
.opt input:disabled { border-style: dotted; }
.opt input:focus-visible { outline: 1px dotted #000; outline-offset: 2px; }

.select { appearance: none; border: 1px solid #000; box-shadow: 1px 1px 0 #000; border-radius: 0; background: #fff; padding: 5px 30px 5px 8px; font-size: 15px;
  background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(-45deg, transparent 50%, #000 50%);
  background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

.stepper { display: inline-flex; align-items: stretch; border: 1px solid #000; }
.stepper button { width: 36px; border: 0; background: #fff; font-size: 18px; cursor: inherit; }
.stepper button:active { background: #000; color: #fff; }
.stepper output { min-width: 52px; display: flex; align-items: center; justify-content: center; border-left: 1px solid #000; border-right: 1px solid #000; font-size: 17px; }

.divider { border: 0; border-top: 1px solid #000; margin: 14px 0; }
.dotted { border: 0; border-top: 1px dotted #000; margin: 12px 0; }
h1, h2, h3 { font-weight: normal; margin: 0 0 8px; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 16px; }
.muted { font-size: 13px; }
.center { text-align: center; }
.small { font-size: 12px; }

/* ---------- alert dialog ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 500; display: flex; align-items: flex-start; justify-content: center; padding: 80px 12px; background: transparent; }
.alert { background: #fff; border: 1px solid #000; outline: 1px solid #fff; box-shadow: 0 0 0 3px #000, 3px 3px 0 3px #000; padding: 16px 18px 12px; max-width: 420px; width: 100%; }
.alert .alert-row { display: flex; gap: 16px; align-items: flex-start; }
.alert .alert-row svg { flex: none; width: 32px; height: 32px; }
.alert p { margin: 4px 0 0; }

/* ---------- home ---------- */
.logo-row { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.logo-row svg { width: 72px; height: 72px; flex: none; }
.tagline { font-size: 13px; margin-top: 2px; }

/* ---------- lobby ---------- */
.code-box { text-align: center; padding: 10px 6px 12px; border: 1px solid #000; margin-bottom: 14px; }
.code-box .label { font-size: 13px; }
.code-box .code { font-size: 44px; letter-spacing: .14em; line-height: 1.1; margin: 4px 0 8px; user-select: all; font-variant-numeric: tabular-nums; }
.players { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 4px; }
@media (max-width: 520px) { .players { grid-template-columns: repeat(2, 1fr); } }
.player-slot { border: 1px solid #000; min-height: 74px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; position: relative; }
.player-slot.empty { border-style: dotted; font-size: 12px; }
.player-slot .nm { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-slot .tag { font-size: 11px; }
.player-slot.me { box-shadow: inset 0 0 0 2px #000; }
.player-slot.offline .icon, .player-slot.offline .nm { opacity: .35; }
.player-slot .kick { position: absolute; top: 2px; right: 2px; border: 1px solid #000; background: #fff; width: 18px; height: 18px; font-size: 12px; line-height: 1; padding: 0; cursor: inherit; }
.icon { width: 32px; height: 32px; image-rendering: pixelated; }
.icon.sm { width: 20px; height: 20px; }

.settings-grid { display: grid; grid-template-columns: 150px 1fr; gap: 12px 12px; align-items: center; }
@media (max-width: 520px) { .settings-grid { grid-template-columns: 1fr; gap: 4px; } .settings-grid > .lbl { margin-top: 8px; } }
.settings-grid > .lbl { font-size: 14px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-left: 8px; }
.cat-opt { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 18px; height: 18px; border: 1px solid #000; flex: none; display: inline-block; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
@media (max-width: 380px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- question ---------- */
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.q-cat { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.q-cat .swatch { width: 22px; height: 22px; }
.diff { display: inline-flex; gap: 2px; }
.diff i { width: 7px; height: 7px; border: 1px solid #000; display: inline-block; }
.diff i.on { background: #000; }
.timer { border: 1px solid #000; height: 16px; padding: 2px; margin: 0 0 14px; position: relative; }
.timer .fill { height: 100%; background: #000; width: 100%; transform-origin: left; }
.timer.urgent .fill { background: var(--pat-gray); background-size: 2px 2px; }
.timer .secs { position: absolute; right: 6px; top: -1px; font-size: 12px; background: #fff; padding: 0 4px; line-height: 16px; display: none; }
.q-text { font-size: 22px; line-height: 1.32; margin: 4px 0 18px; min-height: 2.6em; overflow-wrap: anywhere; }
@media (max-width: 520px) { .q-text { font-size: 19px; } }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } }
.choice {
  appearance: none; display: flex; align-items: center; gap: 10px; text-align: left; border: 1.5px solid #000; border-radius: 7px; background: #fff;
  padding: 10px 12px; min-height: 54px; font-size: 16px; cursor: inherit; touch-action: manipulation; overflow-wrap: anywhere; color: #000;
}
.choice .key { flex: none; width: 26px; height: 26px; border: 1px solid #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.choice:active:not(:disabled), .choice.picked { background: #000; color: #fff; }
.choice.picked .key, .choice:active .key { border-color: #fff; }
.choice:disabled { cursor: default; }
.choice.dim { border-style: dotted; }
.choice.dim > span:last-child { opacity: .5; }
.choice.right { background: #000; color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000; }
.choice.right .key { border-color: #fff; }
.choice.wrong { background: var(--pat-gray); background-size: 2px 2px; }
.choice.wrong > span:last-child { background: #fff; padding: 0 4px; text-decoration: line-through; }
.fib-row { display: flex; gap: 10px; }
.fib-row .text { font-size: 19px; padding: 10px; }
.fib-hint { font-size: 12px; margin-top: 6px; }
.answer-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 10px; border-top: 1px dotted #000; }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #000; padding: 2px 6px 2px 3px; font-size: 12px; background: #fff; }
.chip.done { background: #000; color: #fff; }
.chip.done .icon rect { fill: #fff; }
.waiting { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 12px; border: 1px dotted #000; margin-top: 12px; }
.waiting svg { width: 24px; height: 24px; animation: spin 2s steps(8) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- reveal ---------- */
.answer-box { border: 1px solid #000; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #000; background: #000; color: #fff; padding: 12px 14px; margin: 6px 3px 16px; text-align: center; font-size: 22px; overflow-wrap: anywhere; }
.answer-box .lbl { font-size: 12px; display: block; margin-bottom: 2px; }
.verdict { text-align: center; font-size: 20px; margin: 0 0 12px; }
.results { width: 100%; border-collapse: collapse; font-size: 14px; }
.results td { padding: 6px 4px; border-bottom: 1px dotted #000; vertical-align: middle; }
.results td.ic { width: 28px; }
.results td.pts { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.results td.ans { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.results tr.me td { font-weight: normal; background: linear-gradient(#fff, #fff); }
.results tr.me td:first-child { box-shadow: inset 3px 0 0 #000; }
.mark { display: inline-flex; width: 18px; height: 18px; border: 1px solid #000; align-items: center; justify-content: center; font-size: 12px; }
.mark.ok { background: #000; color: #fff; }
.next-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.reactions { display: flex; gap: 4px; flex-wrap: wrap; }
.reactions button { border: 1px solid #000; background: #fff; border-radius: 5px; font-size: 17px; width: 36px; height: 32px; cursor: inherit; filter: grayscale(1) contrast(1.3); padding: 0; }
.reactions button:active { background: #000; }
.float-react { position: fixed; z-index: 400; font-size: 30px; pointer-events: none; filter: grayscale(1) contrast(1.4); animation: floatup 2s steps(16) forwards; }
@keyframes floatup { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-220px); opacity: 0; } }

/* ---------- final ---------- */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 8px; margin: 6px 0 16px; }
.podium .col { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 30%; max-width: 150px; }
.podium .blk { width: 100%; border: 1px solid #000; display: flex; align-items: flex-start; justify-content: center; font-size: 24px; padding-top: 6px; }
.podium .p1 .blk { height: 96px; background: #000; color: #fff; }
.podium .p2 .blk { height: 70px; background: var(--pat-gray); background-size: 2px 2px; }
.podium .p2 .blk span, .podium .p3 .blk span { background: #fff; padding: 0 6px; }
.podium .p3 .blk { height: 50px; background: repeating-linear-gradient(#000 0 1px, #fff 1px 3px); }
.podium .nm { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .sc { font-size: 12px; }
.pie { width: 34px; height: 34px; }
.pie.lg { width: 88px; height: 88px; }

/* ---------- ads ---------- */
.ad-wrap { max-width: 760px; margin: 0 auto 22px; position: relative; z-index: 2; }
.ad-wrap .window { max-width: none; }
.ad-label { font-size: 11px; }
.ad-slot { min-height: 100px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ad-slot ins { display: block; width: 100%; }
.ad-placeholder { width: 100%; min-height: 100px; border: 1px dashed #000; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; gap: 4px; background:
  repeating-linear-gradient(45deg, #fff 0 6px, #000 6px 7px); }
.ad-placeholder span { background: #fff; padding: 2px 8px; }

/* ---------- misc ---------- */
.foot { text-align: center; font-size: 12px; margin-top: 8px; position: relative; z-index: 2; }
.foot a { background: #fff; padding: 0 4px; }
.foot span { background: #fff; padding: 0 4px; }
.prose p, .prose li { font-size: 14px; }
.prose ul { padding-left: 20px; }
.pill { border: 1px solid #000; border-radius: 10px; padding: 0 8px; font-size: 12px; display: inline-block; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.shake { animation: shake .3s steps(6); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-4px); } }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 600; background: #fff; border: 1px solid #000; box-shadow: 2px 2px 0 #000; padding: 8px 14px; font-size: 14px; }

@media (max-width: 520px) {
  body { font-size: 14px; }
  .desktop { padding: 12px 8px 30px; }
  .win-body { padding: 12px 12px 14px; }
  .code-box .code { font-size: 40px; }
  .menubar .menu > button { padding: 0 7px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* ---------- Black Box logo ---------- */
.bb-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.bb-box { background: #000; padding: 8px; box-shadow: 3px 3px 0 #000, 3px 3px 0 1px #fff; flex: none; display: flex; }
.bb-box .pie { width: 72px; height: 72px; }
.bb-word { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.bb-inv { background: #000; color: #fff; font-size: 27px; line-height: 1.1; padding: 3px 8px 1px; letter-spacing: .06em; }
.bb-sub { font-size: 27px; line-height: 1.1; padding: 2px 8px 0; letter-spacing: .32em; border: 2px solid #000; border-top: 0; margin-bottom: 6px; }
@media (max-width: 380px) { .bb-inv, .bb-sub { font-size: 23px; } .bb-box .pie { width: 60px; height: 60px; } }

/* ---------- pass & play ---------- */
.pp-list { display: grid; gap: 8px; margin-bottom: 10px; }
.pp-row { display: flex; align-items: center; gap: 8px; }
.pp-row .text { flex: 1; min-width: 0; }
.handoff { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 6px 0; }
.icon.xl { width: 64px; height: 64px; }
.handoff-name { font-size: 30px; line-height: 1.1; background: #000; color: #fff; padding: 4px 14px; overflow-wrap: anywhere; }
