/* v08 HUD: a fight broadcast over the POV. Nothing here takes taps except the reveal sheet. */
.hud { position: fixed; inset: 0; z-index: 5; pointer-events: none; --u: 0; overflow: hidden; }
.hud-top {
  position: absolute; left: 0; right: 0; top: 0; padding: calc(8px + var(--sat)) 10px 10px;
  background: linear-gradient(180deg, rgba(11, 7, 8, .94) 0%, rgba(11, 7, 8, .82) 62%, rgba(11, 7, 8, 0) 100%);
}
.hud-top.is-shake { animation: hud-shake .45s; }
@keyframes hud-shake { 15% { transform: translate(-9px, 3px); } 30% { transform: translate(8px, -4px); } 50% { transform: translate(-6px, 2px); } 70% { transform: translate(4px, -1px); } }
.hud-bars { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; gap: 8px; max-width: 920px; margin: 0 auto; }
.fighter { display: grid; gap: 5px; min-width: 0; }
.fighter__name { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.fighter__name b { font: 400 19px/1 var(--display); letter-spacing: .06em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fighter--pro .fighter__name { justify-content: flex-end; }
.fighter--pro .fighter__name b { color: var(--gold); }
.bar { position: relative; height: 16px; border-radius: 2px; overflow: hidden; background: #2a1a1c; box-shadow: 0 0 0 2px #000, 0 0 0 3px rgba(243, 193, 75, .55); }
.fighter--you .bar { transform: skewX(-18deg); margin-left: 4px; }
.fighter--pro .bar { transform: skewX(18deg); margin-right: 4px; }
.bar__ghost, .bar__fill { position: absolute; inset: 0; display: block; transform-origin: left; transition: transform .35s var(--ease-out); }
.bar__ghost { background: #fff; transition-duration: .7s; }
.bar__fill { background: var(--red-grad); }
.fighter--pro .bar__ghost, .fighter--pro .bar__fill { transform-origin: right; }
.fighter--pro .bar__fill, .mini--pro .bar__fill { background: var(--gold-grad); }
.bar.is-hit { animation: bar-hit .5s; }
@keyframes bar-hit { 0% { filter: brightness(3); } 40% { filter: brightness(1.8); } 100% { filter: none; } }
.bar.is-low .bar__fill { animation: low 0.8s ease-in-out infinite; }
@keyframes low { 50% { filter: brightness(1.6); } }
.bar--mini { height: 12px; }

.clock { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.clock svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.clock__bg { fill: rgba(11, 7, 8, .92); stroke: #3a2328; stroke-width: 6; }
.clock__ring { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; transition: stroke .3s; }
.clock__num { position: relative; font: 400 22px/1 var(--display); color: #fff; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.hud.is-late .clock__ring, .hud.is-pressing .clock__ring { stroke: var(--red-hi); }
.hud.is-late .clock { animation: clock-beat .5s ease-in-out infinite; }
@keyframes clock-beat { 50% { transform: scale(1.1); } }
.hud.is-answered .clock__num { color: var(--gold); }

.hud-q { display: grid; justify-items: center; gap: 3px; margin: 8px auto 0; max-width: 760px; text-align: center; min-height: 34px; }
.hud-q.is-in { animation: q-in .45s var(--ease-punch); }
@keyframes q-in { from { transform: translateY(-8px) scale(1.15); opacity: 0; } }
.hud-q__ctx { font: 600 15px/1.2 var(--body); color: var(--cream); text-shadow: 0 1px 4px #000; }
.hud-q__ctx:empty, .hud-q__press:empty { display: none; }
.hud-q__main { font: 400 30px/1 var(--display); color: #fff; letter-spacing: .02em; text-transform: uppercase; text-shadow: 0 3px 0 #000, 0 4px 18px rgba(0, 0, 0, .8); }
.hud-q__press { font: 800 15px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--red); padding: 5px 9px; border-radius: 3px; }
.hud .ropes { gap: 4px; margin: 10px -10px 0; opacity: .85; }
.hud .ropes i { height: 3px; }
.hud.is-answered .hud-q, .hud.has-banner .hud-q { opacity: 0; transition: opacity .15s; }
.hud.is-reveal .hud-q, .hud.is-reveal .hud-bot, .hud.is-reveal .ropes { display: none; }
.hud.is-reveal .hud-top { background: #0b0708; padding-bottom: 8px; }

.hud-bot { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 64px calc(12px + var(--sab)); display: grid; place-items: center;
  background: linear-gradient(0deg, rgba(11, 7, 8, .75), rgba(11, 7, 8, 0)); transition: opacity .3s; }
.dots { display: flex; gap: 8px; }
.dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 400 14px/1 var(--display); font-style: normal; color: var(--mute);
  background: rgba(11, 7, 8, .8); box-shadow: 0 0 0 2px #4a3236 inset; transition: transform .3s var(--ease-punch); }
.dot svg { width: 18px; height: 18px; }
.dot--now { color: #fff; box-shadow: 0 0 0 2px var(--gold) inset, 0 0 14px rgba(243, 193, 75, .55); transform: scale(1.12); }
.dot--won { background: var(--gold); color: var(--ink); box-shadow: none; animation: dot-pop .5s var(--ease-punch); }
.dot--lost { background: var(--red); color: #fff; box-shadow: none; animation: dot-pop .5s var(--ease-punch); }
@keyframes dot-pop { from { transform: scale(1.8); } }

/* pressure: the ring closes in */
.press-glow { position: absolute; inset: 0; opacity: 0; will-change: opacity; pointer-events: none; /* lives inside the stage, under the markers */
  background: radial-gradient(75% 60% at 50% 55%, rgba(215, 25, 42, 0) 45%, rgba(215, 25, 42, .55) 80%, rgba(122, 11, 20, .9) 100%); }
.stage:not(.pt-pressing) > .press-glow, .stage.pt-is-clip > .press-glow { opacity: 0 !important; }
.threat span { position: absolute; display: none; font: 400 30px/1 var(--display); color: #fff; text-shadow: 0 0 16px var(--red), 0 2px 0 #000; animation: threat 0.6s ease-in-out infinite; }
.threat__l { left: 8px; top: 50%; } .threat__r { right: 8px; top: 50%; }
.threat__b { left: 50%; bottom: calc(70px + var(--sab)); transform: translateX(-50%); font-size: 18px !important; letter-spacing: .14em; background: var(--red); padding: 6px 10px; border-radius: 3px; }
.hud[data-threat="left"] .threat__l, .hud[data-threat="right"] .threat__r, .hud[data-threat="behind"] .threat__b { display: block; }
@keyframes threat { 50% { opacity: .45; } }

/* the round card: a TV fight graphic across the screen */
.roundcard {
  position: absolute; left: 0; right: 0; top: 40%; transform: translateY(-50%); display: grid; justify-items: center; gap: 4px; padding: 16px 12px 18px;
  background: linear-gradient(180deg, rgba(11, 7, 8, .92), rgba(36, 22, 26, .92)); box-shadow: 0 -3px 0 var(--gold), 0 3px 0 var(--gold), 0 0 60px rgba(0, 0, 0, .8);
  opacity: 0; text-align: center;
}
.roundcard.is-in { animation: rc 1.5s var(--ease-out) forwards; }
@keyframes rc { 0% { opacity: 0; clip-path: inset(0 50% 0 50%); } 15% { opacity: 1; clip-path: inset(0 0 0 0); } 82% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0; clip-path: inset(0 0 0 0); transform: translateY(-50%) scale(1.04); } }
.roundcard__k { font: 700 13px/1 var(--cond); letter-spacing: .3em; color: var(--gold); }
.roundcard__n { font: 400 64px/.95 var(--display); color: #fff; letter-spacing: .02em; text-shadow: 0 4px 0 var(--red-deep); }
.roundcard__vs { font: 400 26px/1 var(--display); color: var(--cream); letter-spacing: .04em; }
.roundcard__vs b { font-weight: 400; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.roundcard__m { font: 600 15px/1.2 var(--cond); font-style: normal; letter-spacing: .06em; color: var(--mute); }

/* the punch */
.fx > * { position: absolute; }
.fx__flash { inset: 0; opacity: 0; }
.fx__flash.is-gold { animation: flash .5s ease-out; background: radial-gradient(60% 50% at 50% 45%, rgba(255, 240, 184, .6), rgba(243, 193, 75, 0) 70%); }
.fx__flash.is-red { animation: flash .6s ease-out; background: radial-gradient(80% 70% at 50% 50%, rgba(215, 25, 42, 0) 30%, rgba(215, 25, 42, .7) 100%); }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.fx__glove { left: 50%; bottom: -10px; width: 120px; margin-left: -60px; opacity: 0; }
.fx__glove svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .6)); }
.fx__glove.is-punch { animation: punch .75s cubic-bezier(.2, .9, .3, 1) forwards; }
@keyframes punch { 0% { opacity: 1; transform: translate(0, 60%) scale(1.4); } 38% { opacity: 1; transform: translate(26vw, -62vh) scale(.55) rotate(18deg); } 100% { opacity: 0; transform: translate(30vw, -66vh) scale(.4) rotate(24deg); } }
.fx__banner { left: 0; right: 0; top: calc(74px + var(--sat)); display: grid; justify-items: center; gap: 4px; opacity: 0; text-align: center; padding: 0 12px; }
.fx__banner b { font: 400 clamp(38px, 11vw, 64px)/.95 var(--display); letter-spacing: .02em; white-space: nowrap; }
.fx__banner small { font: 700 14px/1.1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(11, 7, 8, .75); padding: 5px 10px; border-radius: 3px; }
.fx__banner small:empty { display: none; }
.fx__banner[data-kind="gold"] b { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #3a2208) drop-shadow(0 8px 24px rgba(0, 0, 0, .7)); }
.fx__banner[data-kind="red"] b { color: #fff; text-shadow: 0 4px 0 var(--red-deep), 0 0 30px var(--red); }
.fx__banner.is-in { animation: banner 1.25s var(--ease-out) forwards; }
@keyframes banner { 0% { opacity: 0; transform: scale(2.2) rotate(-6deg); } 14% { opacity: 1; transform: scale(1) rotate(-3deg); } 75% { opacity: 1; transform: scale(1.04) rotate(-3deg); } 100% { opacity: 0; transform: scale(1.1) rotate(-3deg); } }

/* markers: focus mitts on the pitch */
.mk { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.mk__core {
  position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font: 400 26px/1 var(--display); color: var(--gold); background: radial-gradient(circle at 40% 30%, #3a2328, #0b0708 70%);
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 6px rgba(11, 7, 8, .6), 0 8px 18px rgba(0, 0, 0, .55);
  animation: mk-in .45s var(--ease-punch) both calc(var(--i, 0) * 70ms); transition: transform .25s var(--ease-punch), background .2s, color .2s;
}
.pt-mk { --i: 0; }
.stage.is-placing .pt-mk { visibility: hidden; }
.mk__pulse { position: absolute; inset: 2px; border-radius: 50%; box-shadow: 0 0 0 3px var(--gold); animation: mk-pulse 1.3s ease-out infinite; }
@keyframes mk-in { from { transform: scale(0) rotate(-90deg); } }
@keyframes mk-pulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.pt-mk:active .mk__core { transform: scale(.88); }
.pt-pressing .mk__core { animation: mk-in .45s var(--ease-punch) both, jitter .18s linear infinite .5s; }
@keyframes jitter { 25% { transform: translate(1px, -1px); } 75% { transform: translate(-1px, 1px); } }
.pt-answered .mk__pulse { display: none; }
.mk__tag { position: absolute; z-index: 2; bottom: calc(100% - 2px); left: 50%; transform: translateX(-50%); display: none; white-space: nowrap; pointer-events: none;
  font: 800 13px/1 var(--cond); letter-spacing: .12em; padding: 5px 8px; border-radius: 3px; box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.mk__tag--pro { background: var(--gold); color: var(--ink); }
.mk__tag--mine { background: var(--red); color: #fff; }
.pt-mk.is-pro .mk__tag--pro, .pt-mk.is-mine .mk__tag--mine { display: block; animation: tag-in .4s var(--ease-punch); }
@keyframes tag-in { from { scale: .6; translate: 0 8px; opacity: 0; } }
.pt-mk[data-tag=l] .mk__tag { left: -4px; transform: none; }
.pt-mk[data-tag=r] .mk__tag { left: auto; right: -4px; transform: none; }
.pt-mk.is-pro .mk__core { background: var(--gold-grad); color: var(--ink); transform: scale(1.15); box-shadow: 0 0 0 4px #fff, 0 0 30px rgba(243, 193, 75, .85); }
.pt-mk.is-mine .mk__core { background: var(--red-grad); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 22px rgba(215, 25, 42, .8); }
.pt-mk[data-edge=l]::before { border-right-color: var(--gold) !important; }
.pt-mk[data-edge=r]::before { border-left-color: var(--gold) !important; }
.pt-paths path { stroke: rgba(243, 193, 75, .8); }
.pt-paths path.is-pro { stroke: var(--gold); }
.pt-paths path.is-mine { stroke: var(--red-hi); }
.pt-paths ellipse { fill: rgba(243, 193, 75, .25); }
.pt-paths ellipse.is-pro { fill: rgba(243, 193, 75, .45); }
.pt-paths ellipse.is-mine { fill: rgba(215, 25, 42, .4); }

/* the real clip sits between the bars and the sheet */
body[data-phase="reveal"] .pt-stage > .pt-clip { top: var(--hud-h, 90px); height: var(--clip-h, 220px); z-index: 2; background: transparent; object-position: 50% 50%; }
body[data-phase="reveal"] .pt-stage.pt-is-clip::before { content: ''; position: absolute; inset: 0; z-index: 1; background: #050304; }

/* the reveal sheet */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: auto; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  padding: 16px var(--pad) calc(16px + var(--sab));
  background: linear-gradient(180deg, rgba(22, 13, 15, .97), rgba(11, 7, 8, .99)); box-shadow: 0 -3px 0 var(--red), 0 -6px 0 var(--cream), 0 -9px 0 var(--red), 0 -20px 50px rgba(0, 0, 0, .6);
}
.sheet.is-in { animation: sheet-in .5s var(--ease-punch); }
.sheet > .btn { margin-top: auto; flex: none; }
@keyframes sheet-in { from { transform: translateY(100%); } }
.rv__k { margin: 0; display: flex; align-items: center; gap: 8px; font: 700 13px/1 var(--cond); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.rv__live { font: 800 11px/1 var(--cond); letter-spacing: .14em; color: #fff; background: var(--red); padding: 4px 6px; border-radius: 2px; animation: threat 1.2s ease-in-out infinite; }
.rv__h { margin: 0; font: 400 30px/1.02 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.rv__h.is-won { color: var(--gold); } .rv__h.is-lost { color: #fff; }
.rv__saw { margin: 0; font: 500 16px/1.38 var(--body); color: var(--cream); }
.rv__saw:empty { display: none; }
.rv__times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rv__times span { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 9px 12px; border-radius: 6px; background: var(--ink-3); min-width: 0; }
.rv__times small { font: 700 13px/1 var(--cond); letter-spacing: .12em; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv__times b { font: 400 24px/1 var(--display); color: #fff; letter-spacing: .02em; }
.rv__times .is-won b { color: var(--gold); }

@media (min-width: 900px) {
  .hud-top { padding: 14px 24px 12px; }
  .hud-bars { grid-template-columns: 1fr 76px 1fr; gap: 18px; }
  .clock { width: 76px; height: 76px; } .clock__num { font-size: 26px; }
  .fighter__name b { font-size: 24px; }
  .bar { height: 20px; }
  .hud-q__main { font-size: 40px; }
  .hud-q__ctx { font-size: 17px; }
  .hud .ropes { margin: 12px -24px 0; }
  .sheet { display: grid; left: 50%; right: auto; width: 680px; margin-left: -340px; border-radius: 12px 12px 0 0; grid-template-columns: 1fr 260px; column-gap: 20px; padding: 20px 24px 22px; }
  .sheet > .rv__k, .sheet > .rv__h, .sheet > .rv__saw { grid-column: 1 / -1; }
  .sheet > .btn { align-self: stretch; margin-top: 0; }
  .rv__h { font-size: 28px; }
  .roundcard__n { font-size: 96px; } .roundcard__vs { font-size: 34px; }
  .fx__glove { width: 170px; margin-left: -85px; }
  .fx__banner { top: 100px; }
}
