/* v16 Game IQ Checkup: the plays. A patient monitor over the POV: the question on top, the ECG timer along
   the bottom, electrode-pad markers on the pitch, a red pressure wash, then the real clip with the test slip. */
.hud { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; color: #fff; }
.hud[hidden] { display: none; }
.hud-top { position: absolute; left: 0; right: 0; top: 0; padding: calc(10px + var(--sat)) var(--gut) 22px;
  background: linear-gradient(180deg, rgba(5, 14, 26, .94) 0%, rgba(5, 14, 26, .78) 62%, rgba(5, 14, 26, 0) 100%); }
.hud-card { display: grid; gap: 6px; }
.hud-card small { display: flex; align-items: center; gap: 8px; min-height: 40px; padding-right: 110px;
  font: 700 11.5px/1.1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--xray); }
.hud-card small::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: blink 1.2s infinite; flex: none; }
#hQ { font: 800 25px/1.12 var(--f-ui); letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
#hQ span { display: block; margin-top: 4px; font: 600 14px/1.3 var(--f-ui); color: rgba(223, 243, 255, .75); letter-spacing: 0; }

/* the monitor strip (the timer) */
.mon { position: absolute; left: 0; right: 0; bottom: 0; height: calc(78px + var(--sab)); padding: 10px var(--gut) calc(10px + var(--sab));
  display: grid; grid-template-columns: 62px minmax(0, 1fr) 70px; gap: 12px; align-items: center;
  background: var(--film); border-top: 1px solid rgba(127, 200, 255, .22); box-shadow: 0 -16px 32px rgba(5, 14, 26, .45); }
.mon-pulse { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 6px; }
.mon-pulse b { font: 700 26px/1 var(--f-num); font-variant-numeric: tabular-nums; }
.mon-pulse small, .mon-time small { grid-column: 1 / -1; font: 600 9.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(223, 243, 255, .5); margin-top: 4px; }
.heart { width: 13px; height: 12px; position: relative; display: block; animation: heart .85s ease-in-out infinite; will-change: transform; }
.heart::before, .heart::after { content: ''; position: absolute; top: 0; width: 7px; height: 11px; border-radius: 7px 7px 0 0; background: var(--coral); }
.heart::before { left: 6px; transform: rotate(-45deg); transform-origin: 0 100%; }
.heart::after { left: 0; transform: rotate(45deg); transform-origin: 100% 100%; }
@keyframes heart { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(.95); } }
.mon-trace { position: relative; height: 52px; overflow: hidden; border-radius: 8px;
  background: repeating-linear-gradient(90deg, rgba(127, 200, 255, .07) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(127, 200, 255, .07) 0 1px, transparent 1px 13px), #071628; }
.mon-trace::before { content: ''; position: absolute; left: 0; right: 0; top: 62%; height: 1.5px; background: rgba(127, 200, 255, .35); }
.tr { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tr path { fill: none; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.tr-calm path { stroke: var(--xray); }
.tr-fast { opacity: 0; will-change: opacity; }
.tr-fast path { stroke: #ff6f66; stroke-width: 2.6; }
.tr-cover { position: absolute; inset: 0; background: rgba(7, 22, 40, .8); transform-origin: 100% 50%; will-change: transform; }
.tr-pen { position: absolute; left: -5px; top: calc(62% - 5px); width: 10px; height: 10px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 10px 3px var(--xray); will-change: transform; opacity: 0; }
.mon.live .tr-pen { opacity: 1; }
.mon-time { text-align: right; display: grid; }
.mon-time b { font: 700 30px/1 var(--f-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mon.late .mon-time b { color: var(--amber); animation: blink .5s infinite; }
.mon.hot .mon-time b, .mon.hot .mon-pulse b { color: #ff7a70; }
.mon.hot .heart { animation-duration: .4s; }
.mon-verdict { position: absolute; inset: 0; display: grid; place-items: center; font: 800 26px/1 var(--f-ui); letter-spacing: .01em;
  opacity: 0; transform: translateY(100%); transition: transform .35s cubic-bezier(.2,.9,.2,1), opacity .2s; padding-bottom: var(--sab); }
.mon.ok .mon-verdict { opacity: 1; transform: none; background: var(--mint); color: #fff; }
.mon.no .mon-verdict { opacity: 1; transform: none; background: var(--coral); color: #fff; }

/* pressure: a red wash on the edges (opacity only: its own layer), the threat side */
.hud-press { position: absolute; inset: 0; opacity: 0; will-change: opacity;
  background: radial-gradient(130% 90% at 50% 50%, rgba(242, 85, 77, 0) 52%, rgba(242, 85, 77, .42) 82%, rgba(160, 20, 20, .7) 100%); }
.threat { position: absolute; top: 46%; display: none; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 99px;
  background: var(--coral); color: #fff; font: 800 14px/1 var(--f-ui); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.threat[data-side="left"] { display: inline-flex; left: 10px; }
.threat[data-side="right"] { display: inline-flex; right: 10px; flex-direction: row-reverse; }
.threat[data-side="behind"] { display: inline-flex; left: 50%; top: auto; bottom: calc(96px + var(--sab)); transform: translateX(-50%); }
.threat i { width: 0; height: 0; border: 7px solid transparent; }
.threat[data-side="left"] i { border-right: 10px solid #fff; border-left: 0; }
.threat[data-side="right"] i { border-left: 10px solid #fff; border-right: 0; }
.threat[data-side="behind"] i { border-top: 10px solid #fff; border-bottom: 0; }
.threat[data-side] { animation: threat .6s ease-in-out infinite alternate; }
@keyframes threat { to { box-shadow: 0 0 0 8px rgba(242, 85, 77, .3), 0 8px 20px rgba(0, 0, 0, .35); } }

/* "Hold still. 3, 2, 1" over the frozen first frame */
.count { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 4px; background: rgba(5, 14, 26, .38); }
.count.on { display: grid; }
.count .beam { position: absolute; left: 0; right: 0; top: 0; height: 120px; will-change: transform;
  background: linear-gradient(180deg, rgba(127, 200, 255, 0), rgba(127, 200, 255, .28) 85%, rgba(223, 243, 255, .9));
  border-bottom: 2px solid #fff; animation: beam-c 1.3s linear forwards; }
@keyframes beam-c { from { transform: translateY(-120px); } to { transform: translateY(100vh); } }
#countN { font: 700 132px/1 var(--f-num); color: #fff; text-shadow: 0 0 30px rgba(127, 200, 255, .9); }
#countS { font: 700 14px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--glow); }

/* ---------- the markers: ECG electrode pads on the pitch ---------- */
.pt-paths path { stroke: rgba(223, 243, 255, .8); }
.pt-paths ellipse { fill: rgba(127, 200, 255, .3); }
.pt-paths path.is-pro { stroke: var(--mint); } .pt-paths path.is-mine { stroke: var(--coral); }
.pt-paths ellipse.is-pro { fill: rgba(18, 185, 129, .4); } .pt-paths ellipse.is-mine { fill: rgba(242, 85, 77, .35); }
.v16-placing .pt-mk { visibility: hidden; }
.mk { position: relative; display: grid; justify-items: center; }
.mk-pad { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 50% 50%, #fff 0 38%, #eef5fc 39% 100%); border: 4px solid var(--blue);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 8px 18px rgba(0, 0, 0, .45);
  animation: pad-in .42s cubic-bezier(.3,1.6,.5,1) var(--d, 0ms) backwards; transition: transform .2s, background .2s, border-color .2s; }
.mk-pad::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .85); opacity: 0; will-change: transform, opacity;
  animation: ring 1.5s ease-out infinite; }
.mk-l { font: 800 21px/1 var(--f-ui); color: var(--blue); }
@keyframes pad-in { from { transform: scale(0); } }
.mk-w { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  padding: 5px 9px; border-radius: 8px; background: rgba(5, 14, 26, .82); color: #fff; font: 700 12.5px/1 var(--f-ui); }
.mk-tag { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  padding: 5px 9px; border-radius: 8px; font: 800 12px/1 var(--f-ui); display: none; }
.pt-mk:hover .mk-pad { transform: scale(1.06); }
.pt-mk:active .mk-pad { transform: scale(.92); }
.pt-answered .mk-pad::after { animation: none; opacity: 0; }
.pt-mk.is-pro .mk-pad { background: var(--mint); border-color: #fff; box-shadow: 0 0 0 6px rgba(18, 185, 129, .45), 0 8px 18px rgba(0, 0, 0, .45); animation: pad-hit .5s cubic-bezier(.3,1.6,.5,1); }
.pt-mk.is-pro .mk-l, .pt-mk.is-mine .mk-l { color: #fff; }
.pt-mk.is-mine .mk-pad { background: var(--coral); border-color: #fff; animation: pad-shake .4s; }
.pt-mk.is-pro .mk-tag { display: block; background: var(--mint); color: #fff; }
.pt-mk.is-mine .mk-tag { display: block; background: var(--coral); color: #fff; }
@keyframes pad-hit { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1.08); } }
@keyframes pad-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.pt-mk[data-edge=l]::before { border-right-color: #fff; }
.pt-mk[data-edge=r]::before { border-left-color: #fff; }

/* ---------- the reveal: the real clip on top, the test slip under it ---------- */
.stage.v16-reveal { visibility: hidden; }
.stage.v16-reveal > .pt-clip { visibility: visible; top: calc(var(--sat) + 56px); left: 12px; width: calc(100% - 24px);
  height: calc((100vw - 24px) * 9 / 16); object-fit: cover; border-radius: 16px; background: #000 center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(127, 200, 255, .3), 0 0 40px rgba(127, 200, 255, .12); }
.clipcap { position: fixed; top: calc(var(--sat) + 10px); left: var(--gut); right: 124px; height: 40px; display: flex; flex-direction: column; justify-content: center; gap: 3px; color: var(--glow); pointer-events: none !important; }
.clipcap .rec { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--xray); }
.clipcap .rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: blink 1s infinite; }
.clipcap > span:last-child { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slip { position: fixed; left: 0; right: 0; bottom: 0; top: calc(var(--sat) + 56px + (100vw - 24px) * 9 / 16 + 14px);
  background: var(--paper); color: var(--ink); border-radius: 24px 24px 0 0; padding: 16px var(--gut) calc(16px + var(--sab));
  display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overflow-x: clip; box-shadow: 0 -20px 40px rgba(0, 0, 0, .35); }
.sl-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 700 11px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.sl-stamp { padding: 5px 9px; border-radius: 7px; border: 2px solid currentColor; letter-spacing: .1em; transform: rotate(-3deg); white-space: nowrap; animation: seal .45s cubic-bezier(.3,1.6,.5,1) .25s backwards; }
.v-right .sl-stamp, .v-slow .sl-stamp { color: var(--mint); }
.v-wrong .sl-stamp, .v-timeout .sl-stamp { color: var(--coral); }
.slip h2 { font: 800 26px/1.1 var(--f-ui); letter-spacing: -.015em; }
.sl-line { color: var(--ink2); font-size: 15px; margin-top: -4px; }
.sl-bars { display: grid; gap: 7px; padding: 12px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.bar { display: grid; grid-template-columns: 76px 1fr 62px; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar i { height: 10px; border-radius: 5px; background: var(--paper2); position: relative; overflow: hidden; }
.bar i::after { content: ''; position: absolute; inset: 0; width: var(--w); border-radius: 5px; background: var(--blue); transform-origin: left; animation: grow .8s cubic-bezier(.2,.8,.2,1) .3s backwards; }
.bar.pro i::after { background: var(--ink); }
.bar i.none::after { background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.bar b { text-align: right; font: 700 17px/1 var(--f-num); color: var(--ink); }
@keyframes grow { from { transform: scaleX(0); } }
.sl-picks { display: flex; gap: 8px; flex-wrap: wrap; }
.sl-pick { flex: 1 1 140px; padding: 9px 11px; border-radius: 12px; background: var(--mint-soft); font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.sl-pick small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink2); margin-bottom: 2px; }
.sl-pick.me { background: var(--coral-soft); }
.sl-saw { font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.sl-saw small { display: block; font: 700 11px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 3px; }
.slip .btn { margin-top: auto; flex: none; }

@media (min-width: 900px) {
  .hud-top { padding: 22px 32px 40px; background: linear-gradient(180deg, rgba(5, 14, 26, .9) 0%, rgba(5, 14, 26, .55) 60%, rgba(5, 14, 26, 0) 100%); }
  .hud-card { max-width: 760px; }
  .hud-card small { padding-right: 0; min-height: 0; }
  #hQ { font-size: 38px; }
  #hQ span { font-size: 17px; }
  .mon { left: 50%; right: auto; bottom: 22px; width: 680px; height: 84px; transform: translateX(-50%); border: 1px solid rgba(127, 200, 255, .28);
    border-radius: 20px; padding: 12px 20px; grid-template-columns: 76px minmax(0, 1fr) 84px; gap: 18px; }
  .mon-time b { font-size: 34px; }
  .mon-verdict { border-radius: 20px; }
  .threat { font-size: 16px; padding: 12px 18px; }
  .threat[data-side="left"] { left: 28px; }
  .threat[data-side="right"] { right: 28px; }
  .threat[data-side="behind"] { bottom: 128px; }
  .stage.v16-reveal > .pt-clip { top: 88px; left: 32px; width: calc(100% - 540px); height: calc(100% - 120px); object-fit: contain; border-radius: 20px; }
  .clipcap { top: 22px; left: 32px; right: auto; width: calc(100% - 540px); height: 52px; }
  .clipcap > span:last-child { font-size: 16px; }
  .slip { left: auto; right: 24px; top: 88px; bottom: auto; max-height: calc(100% - 120px); width: 460px; border-radius: 24px; padding: 22px 24px; gap: 12px; }
  .slip .btn { margin-top: 10px; }
  .slip h2 { font-size: 30px; }
}
