/* Black Hole: the call. The sheet where a player seals a prediction of the real Budget, the sealed envelope, the
   row on the title card, the card on the verdict, and the reveal once the real Budget is in. Scoped to .bh-*.
   Colours, radii, shadows and motion come from tokens.css (see DESIGN.md). Buttons are the game's .btn, or the
   finale's .fin-btn inside the finale. */
.bh-call *, .bh-call *::before, .bh-call *::after, .bh-crow *, .bh-vcall *, .bh-rank * { box-sizing: border-box; }
.bh-call, .bh-crow, .bh-vcall, .bh-rank { font-family: var(--ui); color: var(--ink); -webkit-font-smoothing: antialiased; }
.bh-call button:not(.btn), .bh-crow, .bh-vcall button:not(.fin-btn) { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
.bh-call button:focus-visible, .bh-crow:focus-visible, .bh-vcall button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.bh-call p, .bh-vcall p { margin: 0; }
.bh-num { font-family: var(--display); font-weight: 900; font-variation-settings: var(--soft); letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; }
.bh-k { font-family: var(--ui); font-weight: 700; font-size: 11px; line-height: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* ------------------------------------------------------------------ the overlay */
.bh-call { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none; color-scheme: light;
  padding: max(14px, var(--safe-t)) var(--gut) max(14px, var(--safe-b)); }
.bh-call::before { content: ""; position: absolute; inset: 0; background: rgba(11, 18, 34, .62); animation: bh-fade var(--t-2) var(--ease) both; }
.bh-call.out::before { animation: bh-fade var(--t-2) var(--ease) reverse both; }
@keyframes bh-fade { from { opacity: 0; } to { opacity: 1; } }

/* the sheet */
.bh-sheet { position: relative; width: 100%; max-width: 440px; max-height: 100%; display: flex; flex-direction: column; background: var(--paper); border: var(--edge); border-radius: var(--r-l);
  box-shadow: var(--lift); overflow: hidden; animation: bh-in var(--t-3) var(--ease) both; }
.bh-call.out .bh-sheet { animation: bh-out var(--t-2) var(--ease) both; }
@keyframes bh-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes bh-out { to { opacity: 0; transform: translateY(18px); } }
.bh-scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px 18px 4px; }
.bh-hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bh-hd .bh-when { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.bh-hd .bh-when svg { width: 16px; height: 16px; }
.bh-x { width: 36px; height: 36px; flex-shrink: 0; border-radius: var(--r-m); display: grid; place-items: center; margin: -8px -8px -8px 0; color: var(--ink-2); transition: background var(--t-1) var(--ease); }
.bh-x:hover { background: var(--wash); }
.bh-x svg { width: 16px; height: 16px; }
.bh-h { margin: 10px 0 4px; font-family: var(--display); font-weight: 900; font-variation-settings: var(--soft); font-size: 30px; line-height: 32px; letter-spacing: -.02em; text-wrap: balance; }
.bh-lede { font-size: 14.5px; line-height: 20px; font-weight: 500; color: var(--ink-2); text-wrap: pretty; }

/* the four questions */
.bh-q { padding: 14px 0 16px; border-top: 1px solid var(--line); }
.bh-q:first-of-type { margin-top: 14px; }
.bh-qhd { display: grid; grid-template-columns: 24px 1fr auto; column-gap: 10px; align-items: start; }
.bh-qn { width: 24px; height: 24px; border-radius: var(--r-s); background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 900; font-variation-settings: var(--soft); font-size: 13px; line-height: 24px; text-align: center; }
.bh-qt { font-size: 15.5px; line-height: 20px; font-weight: 700; padding-top: 2px; }
.bh-qt small { display: block; font-weight: 500; font-size: 13px; line-height: 17px; color: var(--ink-2); margin-top: 1px; }
.bh-pts { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; padding-top: 5px; }
.bh-qbody { margin: 12px 0 0; }

/* 1. the dial */
.bh-amt { display: flex; align-items: center; gap: 8px; }
.bh-amt .bh-num { font-size: 44px; line-height: 46px; min-width: 0; flex: 1; color: var(--ink); }
.bh-step { width: 40px; height: 40px; border-radius: var(--r-m); border: var(--edge) !important; background: var(--white) !important; box-shadow: var(--drop); display: grid; place-items: center; flex-shrink: 0; transition: transform var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease); }
.bh-step:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.bh-step svg { width: 16px; height: 16px; }
.bh-dial { position: relative; height: 50px; margin-top: 4px; touch-action: none; cursor: grab; }
.bh-dial:active { cursor: grabbing; }
.bh-dial .track { position: absolute; left: 0; right: 0; top: 13px; height: 12px; border-radius: 999px; background: var(--wash); border: var(--edge); overflow: hidden; }
.bh-dial .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold); }
.bh-dial .ticks { position: absolute; left: 0; right: 0; top: 30px; height: 20px; }
.bh-dial .ticks i { position: absolute; top: 0; width: 1px; height: 4px; background: var(--ink-3); transform: translateX(-50%); }
.bh-dial .ticks i.major { height: 7px; width: 1.5px; background: var(--ink-2); }
.bh-dial .ticks b { position: absolute; top: 8px; transform: translateX(-50%); font-size: 11px; line-height: 12px; font-weight: 700; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bh-dial .ticks b:first-of-type { transform: none; }
.bh-dial .ticks b:last-of-type { transform: translateX(-100%); }
.bh-dial .thumb { position: absolute; top: 5px; width: 28px; height: 28px; margin-left: -14px; border-radius: 999px; background: var(--paper); border: var(--edge); box-shadow: var(--drop); transition: transform var(--t-1) var(--ease); }
.bh-dial .thumb::after { content: ""; position: absolute; left: 6px; right: 6px; top: 8px; bottom: 8px; border-radius: 50%; background: var(--pit); }
.bh-dial.drag .thumb { transform: scale(1.12); }
.bh-hint { margin-top: 2px; font-size: 13px; line-height: 17px; font-weight: 500; color: var(--ink-2); }
.bh-hint b { color: var(--ink); font-weight: 700; }

/* 2. the faces */
.bh-faces { display: flex; justify-content: space-between; gap: 4px; }
.bh-fb { position: relative; width: 44px; height: 44px; border-radius: 999px; padding: 3px; flex-shrink: 0; background: var(--wash) !important; transition: transform var(--t-2) var(--pop), background var(--t-2) var(--ease); }
.bh-fb img { width: 38px; height: 38px; border-radius: 999px; display: block; background: var(--paper); transition: opacity var(--t-2) var(--ease); }
.bh-fb[aria-pressed="false"] img { opacity: .72; }
.bh-fb[aria-pressed="true"] { background: var(--red) !important; box-shadow: 0 0 0 2px var(--ink); transform: translateY(-3px); }
.bh-fb[aria-pressed="true"] img { opacity: 1; }
.bh-fb[aria-pressed="true"]::after { content: ""; position: absolute; right: -4px; top: -4px; width: 18px; height: 18px; border-radius: 999px; border: 2px solid var(--paper);
  background: var(--ink) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.5 6.5 11.5 12.5 4.8' fill='none' stroke='%23FFF8EC' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 12px no-repeat;
  animation: bh-pop var(--t-2) var(--pop) both; }
.bh-fb.nope { animation: bh-nope var(--t-3) var(--ease); }
@keyframes bh-pop { from { transform: scale(0); } to { transform: none; } }
@keyframes bh-nope { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.bh-picked { margin-top: 8px; min-height: 17px; font-size: 13px; line-height: 17px; font-weight: 500; color: var(--ink-2); }
.bh-picked b { color: var(--ink); font-weight: 700; }

/* 3, 4. two-way choices */
.bh-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bh-opt { min-height: 44px; border-radius: var(--r-m); border: var(--edge) !important; background: var(--white) !important; box-shadow: var(--drop); font-weight: 700 !important; font-size: 15px !important;
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease), background var(--t-2) var(--ease), color var(--t-2) var(--ease); }
.bh-opt:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.bh-opt svg { width: 20px; height: 20px; flex-shrink: 0; }
.bh-opt[aria-pressed="true"] { background: var(--ink) !important; color: var(--paper) !important; }

/* the foot of the sheet, always in reach */
.bh-foot { padding: 12px 18px max(14px, var(--safe-b)); border-top: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; gap: 8px; }
.bh-foot small { text-align: center; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-2); }
.bh-call .btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.bh-call .btn[disabled] { opacity: .5; pointer-events: none; }
.bh-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bh-link { align-self: center; font-size: 13px !important; font-weight: 700 !important; color: var(--ink-2) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); padding: 6px 8px !important; }

/* ------------------------------------------------------------------ the envelope */
.bh-env { display: block; width: 100%; height: auto; overflow: visible; }
.bh-env .flap, .bh-env .flap-open, .bh-env .seal, .bh-env .half, .bh-env .card { transform-box: fill-box; }
.bh-env .flap { transform-origin: 50% 0%; }
.bh-env .flap-open { transform-origin: 50% 100%; transform: scaleY(0); }
.bh-env .seal, .bh-env .half { transform-origin: 50% 50%; }
.bh-env.unsealed .flap { transform: scaleY(0); }
.bh-env.unsealed .flap-open { transform: scaleY(1); }
.bh-env.unsealed .seal { opacity: 0; }
.bh-env.unsealed .card { transform: translateY(-46px); }
/* sealing: the paper goes in, the flap folds down, the seal lands */
.bh-env.closing .card { animation: bh-card-in var(--t-3) var(--ease) both; }
.bh-env.closing .flap-open { animation: bh-unfold var(--t-2) var(--ease) reverse both; animation-delay: 260ms; }
.bh-env.closing .flap { animation: bh-fold var(--t-2) var(--ease) both; animation-delay: 480ms; }
.bh-env.closing .seal { animation: bh-land var(--t-3) var(--pop) both; animation-delay: 760ms; }
@keyframes bh-card-in { from { transform: translateY(-46px); } to { transform: none; } }
@keyframes bh-fold { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes bh-unfold { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes bh-land { 0% { opacity: 0; transform: scale(2.2) rotate(-10deg); } 40% { opacity: 1; } 100% { opacity: 1; transform: none; } }
/* opening: the seal cracks, the flap lifts, the paper comes out */
.bh-env.opening .half.l { animation: bh-half-l 520ms var(--ease) both; }
.bh-env.opening .half.r { animation: bh-half-r 520ms var(--ease) both; }
.bh-env.opening .flap { animation: bh-fold var(--t-2) var(--ease) reverse both; animation-delay: 200ms; }
.bh-env.opening .flap-open { animation: bh-unfold var(--t-2) var(--ease) both; animation-delay: 420ms; }
.bh-env.opening .card { animation: bh-card-in var(--t-3) var(--ease) reverse both; animation-delay: 620ms; }
@keyframes bh-half-l { 0% { transform: none; } 18% { transform: translate(-2px, 0) rotate(-5deg); } 100% { transform: translate(-56px, 80px) rotate(-60deg); opacity: 0; } }
@keyframes bh-half-r { 0% { transform: none; } 18% { transform: translate(2px, 0) rotate(5deg); } 100% { transform: translate(58px, 76px) rotate(70deg); opacity: 0; } }
.bh-env.wait .seal { animation: bh-throb 2.2s var(--ease) infinite; }
@keyframes bh-throb { 0%, 70%, 100% { transform: none; } 80% { transform: scale(1.08); } 90% { transform: scale(.98); } }

/* ------------------------------------------------------------------ sealed */
.bh-sealed { padding: 18px 18px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.bh-sealed .bh-hd { width: 100%; }
.bh-sealed .bh-envwrap { width: min(232px, 62vw); margin: 10px auto 2px; }
.bh-sealed h2 { margin: 10px 0 4px; font-family: var(--display); font-weight: 900; font-variation-settings: var(--soft); font-size: 40px; line-height: 42px; letter-spacing: -.03em; }
.bh-sealed .bh-lede { max-width: 320px; text-wrap: balance; }
.bh-clock { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 11px 6px 7px; border-radius: var(--r-m); background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.bh-clock svg { width: 18px; height: 18px; }
.bh-clock .bh-num { font-size: 16px; line-height: 18px; color: var(--gold); letter-spacing: 0; }

/* a call, as a ticket: the four answers on one strip */
.bh-ticket { width: 100%; margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border: var(--edge); border-radius: var(--r-m); box-shadow: var(--drop); text-align: left; }
.bh-ticket > div { padding: 8px 10px 9px; min-width: 0; }
.bh-ticket > div:nth-child(even) { border-left: 1px solid var(--line); }
.bh-ticket > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.bh-ticket .v { margin-top: 2px; font-family: var(--display); font-weight: 900; font-variation-settings: var(--soft); font-size: 17px; line-height: 22px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-ticket .v.gold { color: var(--gold-ink); }
.bh-ticket .v.red { color: var(--red-ink); }
.bh-mini { display: flex; height: 22px; align-items: center; }
.bh-mini img { width: 22px; height: 22px; border-radius: 999px; margin-right: -5px; box-shadow: 0 0 0 2px var(--white); background: var(--paper); }
.bh-mini em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.bh-crowd { text-wrap: balance; width: 100%; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-2); text-wrap: pretty; }
.bh-crowd b { color: var(--ink); font-weight: 700; }

/* ------------------------------------------------------------------ the row on the title card */
.bh-crow { display: grid !important; grid-template-columns: 40px 1fr auto; align-items: center; column-gap: 11px; width: 100%; margin-top: 10px; padding: 9px 11px 9px 9px; text-align: left;
  border-radius: var(--r-m); border: 1px solid var(--line) !important; background: var(--wash) !important; transition: background var(--t-1) var(--ease), transform var(--t-1) var(--ease); cursor: pointer; }
.bh-crow:hover { background: rgba(20, 35, 58, .1) !important; }
.bh-crow:active { transform: translateY(2px); }
.bh-crow .ic { width: 40px; height: 30px; }
.bh-crow .ic svg { width: 100%; height: 100%; overflow: visible; }
.bh-crow > span:nth-child(2) { display: block; min-width: 0; }
.bh-crow .t, .bh-crow .s { display: block; }
.bh-crow .t { font-size: 14.5px; line-height: 18px; font-weight: 700; }
.bh-crow .s { font-size: 12.5px; line-height: 16px; font-weight: 500; color: var(--ink-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-crow .s b { color: var(--ink); font-weight: 700; }
.bh-crow .go { width: 28px; height: 28px; border-radius: var(--r-s); display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.bh-crow .go svg { width: 14px; height: 14px; }
.bh-crow:hover .go svg { animation: bh-nudge var(--t-3) var(--ease); }
@keyframes bh-nudge { 50% { transform: translateX(3px); } }
.bh-crow.sealed { background: var(--white) !important; border: var(--edge) !important; box-shadow: var(--drop); }
.bh-crow.sealed .go { background: none; color: var(--ink-2); width: auto; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.bh-crow.ready { background: var(--gold) !important; border: var(--edge) !important; box-shadow: var(--drop); }
.bh-crow.ready .s { color: var(--ink); }
.bh-crow.ready .go { background: var(--red); color: var(--white); }
.bh-crow.closed { cursor: default; }
.bh-crow.closed:active { transform: none; }

/* ------------------------------------------------------------------ on the verdict */
.bh-vcall { position: relative; background: var(--paper); border: var(--edge); border-radius: var(--r-l); box-shadow: var(--drop); padding: 14px; display: flex; flex-direction: column; gap: 12px;
  animation: bh-in var(--t-3) var(--ease) 260ms both; }
.bh-vcall .top { display: grid; grid-template-columns: 1fr 70px; gap: 12px; align-items: center; }
.bh-vcall .bh-k { color: var(--ink-2); }
.bh-vcall .say { margin-top: 4px; font-family: var(--display); font-weight: 900; font-variation-settings: var(--soft); font-size: 18px; line-height: 22px; letter-spacing: -.01em; text-wrap: pretty; }
.bh-vcall .say .gold { color: var(--gold-ink); }
.bh-vcall .env { width: 70px; }
.bh-vcall .meta { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-2); text-align: center; }
.bh-vcall .meta b { color: var(--ink); font-weight: 700; }
.bh-vcall .bh-ticket { margin-top: 0; box-shadow: none; }
.bh-vcall .fin-btn svg { width: 20px; height: 20px; }
.bh-vcall.d { display: none; }
@media (min-width: 860px) and (min-height: 560px) {
  .bh-vcall.m { display: none; }
  .bh-vcall.d { display: flex; margin-top: 20px; }
  .fin-verdict.bh-has-call .fin-cardcap { display: none; }
  .fin-verdict.bh-has-call .fin-cardcol { width: min(440px, calc((100vh - 320px) * .8)); min-width: 340px; }
}
@media (max-width: 859px), (max-height: 559px) {
  .fin-verdict.bh-has-call .fin-small { display: none; }
  .fin-verdict.bh-has-call .fin-actions { position: sticky; bottom: 0; z-index: 3; margin: 0 calc(-1 * var(--gut)) calc(-1 * max(18px, var(--safe-b))); padding: 14px var(--gut) max(16px, var(--safe-b));
    background: var(--sea); border-top: 1px solid var(--line); }
}

/* today's rank, inside the verdict ticket */
.bh-rank { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; border-top: 1px solid var(--line); padding-top: 10px; animation: bh-in var(--t-3) var(--ease) both; }
.bh-rank .t { font-size: 12.5px; line-height: 16px; font-weight: 500; color: var(--ink-2); }
.bh-rank .t b { display: block; white-space: nowrap; font-family: var(--display); font-weight: 900; font-variation-settings: var(--soft); font-size: 15.5px; line-height: 20px; color: var(--ink); letter-spacing: -.01em; }
.bh-hist { display: flex; align-items: flex-end; gap: 1.5px; height: 34px; width: 104px; border-bottom: 1px solid var(--line); }
.bh-hist i { flex: 1; min-height: 2px; border-radius: 2px 2px 0 0; background: var(--line); transform-origin: bottom; animation: bh-grow var(--t-3) var(--ease) both; }
.bh-hist i.won { background: rgba(20, 35, 58, .26); }
.bh-hist i.you { background: var(--red); }
@keyframes bh-grow { from { transform: scaleY(0); } to { transform: none; } }

/* ------------------------------------------------------------------ the reveal */
.bh-call.reveal { align-items: stretch; padding: 0; }
.bh-call.reveal::before { background: var(--felt-2); }
.bh-rv { position: relative; width: 100%; max-width: 540px; height: 100%; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  padding: max(14px, var(--safe-t)) var(--gut) max(18px, var(--safe-b)); }
.bh-rv-top { display: flex; justify-content: space-between; align-items: center; min-height: 36px; }
.bh-rv-top .bh-k { color: var(--gold); }
.bh-call .bh-rv-top .bh-x { color: var(--paper); }
.bh-rv-top .bh-x:hover { background: rgba(255, 255, 255, .08); }
.bh-rv-intro { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--paper); gap: 8px; padding-bottom: 5vh; }
.bh-rv-intro .bh-envwrap { width: min(280px, 72vw); margin-bottom: 20px; cursor: pointer; }
.bh-rv-intro h2 { margin: 0; font-family: var(--display); font-weight: 900; font-variation-settings: var(--soft); font-size: clamp(34px, 9vw, 50px); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.bh-rv-intro p { font-size: 15px; line-height: 21px; font-weight: 500; color: rgba(255, 248, 236, .78); max-width: 330px; }
.bh-rv-intro .btn { max-width: 300px; margin-top: 18px; }
.bh-rv-intro.out { animation: bh-out var(--t-2) var(--ease) both; }

.bh-rv-sheet { margin-top: 12px; background: var(--paper); border: var(--edge); border-radius: var(--r-l); box-shadow: var(--lift); padding: 16px 16px 14px; animation: bh-rise 560ms var(--ease) both; }
@keyframes bh-rise { from { opacity: 0; transform: translateY(90px); } to { opacity: 1; transform: none; } }
.bh-rv-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bh-rv-hd span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.bh-rv-cols { display: grid; grid-template-columns: 1fr 1fr 56px; gap: 10px; margin-top: 14px; padding-bottom: 6px; border-bottom: var(--edge); }
.bh-rv-cols span:last-child { text-align: right; }
.bh-row { display: grid; grid-template-columns: 1fr 1fr 56px; gap: 4px 10px; align-items: center; padding: 10px 0 11px; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(8px); transition: opacity var(--t-2) var(--ease), transform var(--t-3) var(--ease); }
.bh-row.in { opacity: 1; transform: none; }
.bh-row .lbl { grid-column: 1 / -1; }
.bh-row .v { font-family: var(--display); font-weight: 900; font-variation-settings: var(--soft); font-size: 22px; line-height: 26px; letter-spacing: -.015em; min-width: 0; white-space: nowrap; }
.bh-row .v.sm { font-family: var(--ui); font-weight: 700; font-variation-settings: normal; font-size: 15px; line-height: 20px; letter-spacing: 0; }
.bh-row .v.red { color: var(--red-ink); }
.bh-row .mini { display: flex; align-items: center; min-height: 30px; }
.bh-row .mini img { width: 30px; height: 30px; border-radius: 999px; margin-right: -6px; box-shadow: 0 0 0 2px var(--paper); background: var(--paper); }
.bh-row .mini img.both { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4.5px var(--green); margin-right: 3px; }
.bh-row .mini em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--ink-3); }
/* points land like a rubber stamp */
.bh-row .pts { justify-self: end; font-family: var(--display); font-weight: 900; font-variation-settings: var(--soft); font-size: 15px; line-height: 15px; padding: 6px 8px 5px; border-radius: var(--r-s); border: var(--edge); color: var(--white); background: var(--green); white-space: nowrap; font-variant-numeric: tabular-nums;
  opacity: 0; transform: scale(1.9) rotate(-6deg); }
.bh-row .pts.part { background: var(--gold); color: var(--ink); }
.bh-row .pts.none { background: var(--white); color: var(--ink-3); }
.bh-row .pts.show { animation: bh-thud var(--t-2) var(--pop) both; }
@keyframes bh-thud { from { opacity: 0; transform: scale(1.9) rotate(-6deg); } to { opacity: 1; transform: rotate(-4deg); } }
.bh-gap { grid-column: 1 / -1; position: relative; height: 34px; margin: 2px 8px 0; }
.bh-gap .rail { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 999px; background: var(--wash); }
.bh-gap .span { position: absolute; top: 7px; height: 8px; border-radius: 999px; background: rgba(229, 50, 45, .3); width: 0; transition: width 600ms var(--ease) 200ms; }
.bh-gap .span.close { background: rgba(35, 144, 90, .35); }
.bh-gap .dot { position: absolute; top: 2px; width: 18px; height: 18px; margin-left: -9px; border-radius: 999px; border: var(--edge); transition: left 600ms var(--ease) 200ms; }
.bh-gap .dot.you { background: var(--red); }
.bh-gap .dot.real { background: var(--gold); }
.bh-gap .dot span { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--ink-3); }

.bh-total { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; padding: 16px 0 2px; }
.bh-total .score { grid-row: span 2; display: flex; align-items: baseline; }
.bh-total .score .bh-num { font-size: 76px; line-height: 70px; letter-spacing: -.04em; }
.bh-total .score small { font-family: var(--display); font-weight: 900; font-variation-settings: var(--soft); font-size: 20px; color: var(--ink-3); margin-left: 4px; }
.bh-grade { justify-self: start; font-family: var(--display); font-weight: 900; font-variation-settings: var(--soft); font-size: 19px; line-height: 21px; letter-spacing: .02em; text-transform: uppercase;
  color: var(--tone, var(--green)); border: 3px solid var(--tone, var(--green)); border-radius: var(--r-m); padding: 6px 11px 5px; background: var(--paper); opacity: 0; }
.bh-grade.show { animation: bh-stamp var(--t-3) var(--pop) both; }
@keyframes bh-stamp { from { opacity: 0; transform: rotate(-4deg) scale(2.1); } to { opacity: 1; transform: rotate(-4deg) scale(1); } }
.bh-total .line { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 15px; line-height: 20px; color: var(--ink-2); text-wrap: pretty; opacity: 0; transition: opacity var(--t-3) var(--ease) 150ms; }
.bh-total.done .line { opacity: 1; }
.bh-beat { margin-top: 12px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-m); background: var(--ink); color: var(--paper); font-size: 13.5px; line-height: 18px; font-weight: 500;
  opacity: 0; transform: translateY(8px); transition: opacity var(--t-2) var(--ease), transform var(--t-3) var(--ease); }
.bh-beat.in { opacity: 1; transform: none; }
.bh-beat .bh-num { font-size: 26px; line-height: 26px; color: var(--gold); flex-shrink: 0; }
.bh-beat b { font-weight: 700; color: var(--white); }
.bh-rv-acts { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; opacity: 0; transform: translateY(10px); transition: opacity var(--t-2) var(--ease), transform var(--t-3) var(--ease); }
.bh-rv-acts.in { opacity: 1; transform: none; }

.bh-toast { position: fixed; left: 50%; top: max(16px, var(--safe-t)); z-index: 120; transform: translate(-50%, -16px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 8px;
  background: var(--paper); color: var(--ink); border: var(--edge); border-radius: var(--r-m); padding: 9px 15px; font: 700 13.5px/18px var(--ui); box-shadow: var(--drop);
  transition: opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease); white-space: nowrap; }
.bh-toast.show { opacity: 1; transform: translate(-50%, 0); }
.bh-toast svg { width: 16px; height: 16px; }

/* short phones: tighter */
@media (max-height: 720px) {
  .bh-h { font-size: 26px; line-height: 28px; }
  .bh-q { padding: 11px 0 12px; }
  .bh-amt .bh-num { font-size: 38px; line-height: 40px; }
  .bh-sealed .bh-envwrap { width: min(190px, 54vw); }
  .bh-sealed h2 { font-size: 34px; line-height: 36px; }
}
@media (max-width: 370px) {
  .bh-fb { width: 40px; height: 40px; }
  .bh-fb img { width: 34px; height: 34px; }
  .bh-ticket .v { font-size: 15px; }
}

/* calm mode: everything arrives, nothing moves */
@media (prefers-reduced-motion: reduce) {
  .bh-call *, .bh-call *::before, .bh-call *::after, .bh-call::before, .bh-crow, .bh-crow *, .bh-vcall, .bh-rank, .bh-rank * {
    animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
}
