/* Conference kiosk — light theme, tuned for a laptop / large screen + physical buttons */

body.kiosk, body.quiz { background:#f4f6f8; }
.hidden { display:none !important; }
.err { color:#c53030; background:#fff5f5; border:1px solid #feb2b2; border-radius:8px;
       padding:0.6rem 0.9rem; margin:0.75rem 0 0; font-size:0.9rem; }

.ev-card { max-width:900px; }
.ev-brand { display:flex; align-items:center; gap:1rem; margin-bottom:0.75rem; }
.ev-brand h1 { margin:0; font-size:1.6rem; }
.ev-eyebrow { margin:0 0 0.15rem; font-size:0.75rem; letter-spacing:0.08em; text-transform:uppercase;
              color:#0033cc; font-weight:700; }
.ev-logo { max-height:72px; max-width:220px; object-fit:contain; }
.ev-logo-sm { max-height:36px; max-width:140px; object-fit:contain; }

.reg-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 1.25rem; }
.reg-grid label { margin:0.6rem 0; }
.reg-wide { grid-column:1 / -1; }
@media (max-width:640px) { .reg-grid { grid-template-columns:1fr; } }
#reg-start { font-size:1.15rem; padding:1.05rem; }

/* ---- case screen ---- */
#quiz { padding:0.6rem 1rem 0.75rem; }
.ev-header { width:100%; max-width:1400px; margin:0 auto 0.4rem; display:grid;
             grid-template-columns:1fr auto 1fr; align-items:center; gap:1rem; }
.ev-header-left { display:flex; align-items:center; gap:0.75rem; min-width:0; }
.ev-player { font-size:0.95rem; color:#4a5560; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ev-progress { font-size:1.05rem; font-weight:700; color:#1a2633; }
.ev-timer { justify-self:end; position:relative; width:72px; height:72px; }
.ev-timer svg { width:72px; height:72px; transform:rotate(-90deg); }
.ev-timer circle { fill:none; stroke-width:8; }
.t-bg { stroke:#e3e8ee; }
.t-fg { stroke:#0033cc; stroke-linecap:round; stroke-dasharray:276.46; stroke-dashoffset:0;
        transition:stroke 0.3s; }
.ev-timer.warn .t-fg { stroke:#dd6b20; }
.ev-timer.crit .t-fg { stroke:#c53030; }
.ev-timer.crit #timer-num { color:#c53030; animation:pulse 0.6s infinite; }
#timer-num { position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
             font-size:1.5rem; font-weight:700; color:#1a2633; font-variant-numeric:tabular-nums; }
@keyframes pulse { 0%,100% { transform:scale(1); } 50% { transform:scale(1.15); } }
.ev-bar { max-width:1400px; margin:0 auto 0.6rem; }

.ev-ecg-wrap { max-width:1400px; padding:0.5rem; margin-bottom:0.6rem; }
.ev-ecg-wrap #ecg-img { max-height:calc(100dvh - 340px); pointer-events:none; }

.ev-prompt { max-width:1400px; position:static; padding:0.9rem 1.25rem; }
.ev-prompt .question { font-size:1.15rem; margin-bottom:0.7rem; }
.ev-buttons { grid-template-columns:1fr 1fr; gap:1.25rem; max-width:none; width:100%; margin:0; }
.ev-btn { display:flex; flex-direction:column; align-items:center; gap:0.2rem; padding:1.1rem 1.5rem;
          border-radius:16px; position:relative; min-height:104px; width:100%; }
.ev-btn-main { font-size:1.6rem; font-weight:700; letter-spacing:0.03em; }
.ev-btn-sub { font-size:0.85rem; font-weight:700; opacity:0.9; }
.ev-btn-key { position:absolute; top:8px; left:10px; font-size:0.72rem; font-weight:700; opacity:0.85;
              background:rgba(255,255,255,0.22); border-radius:6px; padding:2px 7px; }
.ev-btn-act { background:#c53030; }  .ev-btn-act:hover { background:#9b2c2c; }
.ev-btn-no  { background:#2f855a; }  .ev-btn-no:hover  { background:#22603f; }
.ev-prompt { padding:1rem 1.5rem 1.25rem; }
@media (min-width:640px) { .answer-buttons.ev-buttons button { min-width:0; } }
.ev-btn:disabled { opacity:0.55; cursor:default; }
.ev-btn.pressed { transform:scale(0.97); box-shadow:0 0 0 4px rgba(0,0,0,0.12) inset; }

/* ---- feedback ---- */
#feedback { padding:0; }
.fb-banner { padding:1.1rem 1.5rem; color:#fff; text-align:center; }
.fb-banner-title { font-size:2rem; font-weight:700; line-height:1.1; }
.fb-banner-sub { font-size:1.05rem; opacity:0.95; margin-top:0.25rem; }
.fb-banner.ok { background:#2f855a; }
.fb-banner.missed { background:#c53030; }
.fb-banner.false { background:#dd6b20; }
/* full-width on big screens: the ECG / explainability takes everything the fixed-width detail column doesn't */
.fb-body { display:grid; grid-template-columns:minmax(0,1fr) 460px; gap:1.25rem;
           max-width:none; margin:0.9rem 0; padding:0 1.25rem; align-items:start; }
@media (min-width:1800px) { .fb-body { grid-template-columns:minmax(0,1fr) 520px; } }
@media (max-width:1000px) { .fb-body { grid-template-columns:1fr; } }
.fb-ecg { background:#fff; border-radius:12px; padding:0.5rem; box-shadow:0 2px 16px rgba(0,0,0,0.06); }
.fb-ecg img { width:100%; height:auto; max-height:calc(100dvh - 170px); object-fit:contain; display:block; }
.fb-ecg { position:sticky; top:0.75rem; }
.fb-detail { display:flex; flex-direction:column; gap:0.8rem; }

.fb-dtb { background:#fff5f0; border:1px solid #f3c3a9; border-radius:12px; padding:1rem 1.1rem; color:#7a3a0f; }
.fb-dtb-label { font-size:0.95rem; }
.fb-dtb-num { font-size:3.2rem; font-weight:700; line-height:1.05; color:#c53030; font-variant-numeric:tabular-nums; }
.fb-dtb-label2 { font-size:0.9rem; margin-bottom:0.7rem; }
.fb-dtb-bar { position:relative; height:16px; background:#fde8e0; border-radius:8px; overflow:visible; margin-bottom:22px; }
.fb-dtb-fill { height:100%; width:0; background:linear-gradient(90deg,#f6ad55,#c53030); border-radius:8px;
               transition:width 1.6s cubic-bezier(.2,.7,.2,1); }
.fb-dtb-goal { position:absolute; top:-6px; bottom:-6px; width:2px; background:#1a2633; }
.fb-dtb-goal span { position:absolute; top:100%; left:50%; transform:translateX(-50%); white-space:nowrap;
                    font-size:0.72rem; color:#1a2633; margin-top:3px; }
.fb-dtb-goal.edge-l span { left:0; transform:none; }          /* goal tick near the left edge → label grows rightwards */
.fb-dtb-goal.edge-r span { left:auto; right:0; transform:none; }

.fb-mimic { background:#fff; border:1px solid #e3e8ee; border-radius:12px; padding:0.9rem 1.1rem; }
.fb-kv { display:flex; justify-content:space-between; gap:1rem; padding:0.35rem 0; border-bottom:1px solid #eef1f5; }
.fb-kv:last-child { border-bottom:none; }
.fb-kv span { color:#64707d; font-size:0.9rem; } .fb-kv strong { text-align:right; }
.fb-truth { background:#fff; border:1px solid #e3e8ee; border-radius:12px; padding:0.9rem 1.1rem;
            font-size:1rem; line-height:1.5; color:#1a2633; }
.fb-qoh { display:flex; align-items:center; gap:0.75rem; background:#eef2ff; border:1px solid #c7d2fe;
          border-radius:12px; padding:0.7rem 1rem; }
.fb-qoh-label { font-weight:700; color:#0033cc; }
.fb-qoh-chip { font-weight:700; padding:0.25rem 0.7rem; border-radius:999px; background:#fff; }
.fb-qoh-chip.ok { color:#2f855a; } .fb-qoh-chip.bad { color:#c53030; }
.fb-next-big { width:100%; padding:1rem 1.25rem; font-size:1.35rem; font-weight:700; border-radius:14px; background:#0033cc; color:#fff;
               display:flex; flex-direction:column; align-items:center; gap:0.15rem; margin-top:0.2rem; }
.fb-next-big small { font-size:0.8rem; font-weight:400; opacity:0.85; }
.fb-next-big:hover { background:#041255; }
.ev-inline-btn { margin-left:auto; padding:0.55rem 0.9rem; font-size:0.9rem; min-height:0; }
.fb-crowd { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:0.75rem; background:#fff; border:1px solid #e3e8ee; border-radius:12px; padding:0.7rem 1rem; }
.fb-crowd-label { font-weight:700; color:#041255; white-space:nowrap; }
.fb-crowd-bar { height:12px; background:#e3e8ee; border-radius:6px; overflow:hidden; }
.fb-crowd-fill { height:100%; width:0; background:linear-gradient(90deg,#0d9488,#2f855a); border-radius:6px; transition:width 1s ease; }
.fb-crowd-txt { font-size:0.9rem; color:#1a2633; white-space:nowrap; }
.fb-crowd.first { grid-template-columns:auto 1fr; } .fb-crowd.first .fb-crowd-bar { display:none; }

/* ---- scorecard ---- */
.ev-done { max-width:1080px; padding:2.25rem 2.5rem !important; }
.ev-done .ev-brand { margin-bottom:1.5rem; }
.done-grid { display:grid; grid-template-columns:minmax(220px,auto) 1fr; gap:2.5rem; align-items:center; margin:0.5rem 0 1.75rem;
             padding:1.5rem 1.75rem; background:#f8fafc; border-radius:16px; }
@media (max-width:640px) { .done-grid { grid-template-columns:1fr; } }
.done-score { text-align:center; padding:0.5rem 1.25rem; }
.done-big { font-size:5rem; font-weight:700; line-height:1; color:#0033cc; }
.done-of { font-size:2rem; color:#94a3b8; font-weight:700; }
.done-lbl { font-size:0.85rem; color:#64707d; text-transform:uppercase; letter-spacing:0.06em; }
.done-rank { margin-top:0.9rem; font-size:1.15rem; font-weight:700; color:#041255; }
.done-rank small { display:block; font-weight:400; color:#64707d; font-size:0.85rem; }
.vs-row { display:grid; grid-template-columns:150px 1fr 64px; align-items:center; gap:0.8rem; margin:0.55rem 0; }
.vs-name { font-weight:700; font-size:0.95rem; } .vs-name.you { color:#0d9488; } .vs-name.ai { color:#0033cc; }
.vs-bar { height:22px; background:#e3e8ee; border-radius:11px; overflow:hidden; }
.vs-fill { height:100%; width:0; border-radius:9px; transition:width 1.2s ease; }
.vs-fill.you { background:#0d9488; } .vs-fill.ai { background:#041255; }
.vs-name.ai { color:#041255; }
.vs-pct { font-weight:700; text-align:right; font-variant-numeric:tabular-nums; }
.vs-note { font-size:0.85rem; color:#64707d; margin:0.3rem 0 1.1rem 150px; }
.done-mini { display:grid; grid-template-columns:repeat(4,1fr); gap:0.75rem; }
.done-mini div { background:#fff; border:1px solid #e3e8ee; border-radius:12px; padding:0.8rem 0.6rem; text-align:center; }
.done-mini b { display:block; font-size:1.6rem; line-height:1.1; margin-bottom:0.2rem; } .done-mini span { font-size:0.78rem; color:#64707d; }
.red { color:#c53030; } .orange { color:#dd6b20; }
.done-lost { background:#fff5f0; border:1px solid #f3c3a9; border-radius:12px; padding:1rem 1.25rem;
             color:#7a3a0f; font-size:1.05rem; margin-bottom:1.5rem; line-height:1.5; }
.done-h { margin:0 0 0.75rem; font-size:0.8rem; letter-spacing:0.08em; text-transform:uppercase; color:#64707d; font-weight:700; }
.done-lost.clean { background:#f0fdf4; border-color:#bbf7d0; color:#166534; }
.done-cases { list-style:none; padding:0; margin:0 0 1.75rem; display:grid; grid-template-columns:repeat(2,1fr); gap:0.6rem 1.25rem; }
@media (max-width:640px) { .done-cases { grid-template-columns:1fr; } }
.done-cases li { display:flex; gap:0.8rem; align-items:center; font-size:0.95rem; padding:0.7rem 0.9rem; background:#fff;
                 border:1px solid #e3e8ee; border-radius:12px; }
.done-cases .chip { flex:0 0 auto; width:32px; height:32px; border-radius:9px; display:inline-flex; align-items:center;
                    justify-content:center; color:#fff; font-weight:700; font-size:1rem; }
.chip.tp, .chip.tn { background:#2f855a; } .chip.missed { background:#c53030; } .chip.false { background:#dd6b20; }
.done-cases .what { color:#1a2633; font-weight:700; } .done-cases .why { color:#64707d; font-size:0.82rem; }
.done-email { font-size:0.95rem; color:#4a5560; margin:0 0 1.25rem; }
.done-next { display:flex; align-items:center; gap:1rem; background:#041255; color:#e2e8f0; border-radius:14px; padding:1.1rem 1.4rem; }
.done-next-hint { font-size:1.1rem; } .done-next-hint b { color:#fff; }
.done-next .ev-inline-btn { background:#0033cc; }
/* PMcardio promo card on the scorecard */
.done-promo { display:grid; grid-template-columns:1fr auto; gap:1.25rem; align-items:center; background:linear-gradient(135deg,#041255,#0033cc);
              color:#fff; border-radius:14px; padding:1.25rem 1.5rem; margin-bottom:1.5rem; }
@media (max-width:640px) { .done-promo { grid-template-columns:1fr; } }
.done-promo .pe { font-size:0.75rem; letter-spacing:0.08em; text-transform:uppercase; color:#c7d2fe; font-weight:700; margin:0 0 0.3rem; }
.done-promo h3 { margin:0 0 0.4rem; font-size:1.25rem; color:#fff; } .done-promo h3 span { color:#7fb3ff; }
.done-promo p { margin:0; font-size:0.92rem; color:#e2e8f0; line-height:1.5; }
.done-promo code { background:#fff; color:#0033cc; padding:2px 10px; border-radius:6px; font-weight:700; letter-spacing:0.08em; font-family:inherit; font-size:1rem; }
.done-promo .qr { background:#fff; border-radius:12px; padding:0.6rem; display:flex; flex-direction:column; align-items:center; gap:0.35rem; color:#041255; font-size:0.72rem; font-weight:700; text-decoration:none; }
.done-promo .qr img { width:104px; height:104px; display:block; }

/* author display rules on labels must not defeat the hidden attribute */
body.kiosk [hidden], body.quiz [hidden] { display:none !important; }


/* ================= flashy layer: branding, timer, stamps, confetti ================= */
.pm-footer { display:flex; align-items:center; justify-content:center; gap:.5rem; margin-top:1.1rem;
             color:#64707d; font-size:.82rem; }
.pm-logo { height:22px; width:auto; }
.pm-sep { color:#cbd5e0; }
.pm-mark { height:28px; }
#quiz-logo:not([hidden]) + .pm-mark { display:none; }   /* event logo replaces the PMcardio mark up top */

/* confetti + full-screen flash */
.confetti { position:fixed; inset:0; width:100%; height:100%; pointer-events:none; z-index:900; }
.flash { position:fixed; inset:0; pointer-events:none; z-index:800; opacity:0; }
.flash.red   { background:radial-gradient(ellipse at center, rgba(197,48,48,0) 45%, rgba(197,48,48,.55) 100%); animation:flashout .9s ease-out; }
.flash.green { background:radial-gradient(ellipse at center, rgba(47,133,90,0) 45%, rgba(47,133,90,.45) 100%); animation:flashout .9s ease-out; }
.flash.orange{ background:radial-gradient(ellipse at center, rgba(221,107,32,0) 45%, rgba(221,107,32,.5) 100%); animation:flashout .9s ease-out; }
@keyframes flashout { 0% { opacity:1; } 100% { opacity:0; } }
.shake { animation:shake .5s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake { 10%,90% { transform:translateX(-2px); } 20%,80% { transform:translateX(4px); }
                   30%,50%,70% { transform:translateX(-8px); } 40%,60% { transform:translateX(8px); } }

/* ---- timer: bigger ring + full-width drain bar + urgency ---- */
.ev-timer, .ev-timer svg { width:96px; height:96px; }
.ev-timer circle { stroke-width:9; }
#timer-num { font-size:2.1rem; }
#timer-num.tick { animation:numpop .25s ease-out; }
@keyframes numpop { 0% { transform:scale(1.35); } 100% { transform:scale(1); } }
.drain { width:100%; max-width:1400px; margin:0 auto .6rem; height:10px; background:#e3e8ee; border-radius:5px; overflow:hidden; }
.drain-fill { height:100%; width:100%; background:linear-gradient(90deg,#0033cc,#2b5cff); border-radius:5px;
              transition:background .4s; }
.drain.warn .drain-fill { background:linear-gradient(90deg,#dd6b20,#f6ad55); }
.drain.crit .drain-fill { background:linear-gradient(90deg,#c53030,#e53e3e); }
#quiz.crit { box-shadow:inset 0 0 0 6px rgba(197,48,48,.35); animation:edgepulse .6s infinite; }
@keyframes edgepulse { 50% { box-shadow:inset 0 0 0 14px rgba(197,48,48,.25); } }

/* ---- feedback: slide-in banner, stamped icon, staggered detail cards ---- */
.fb-banner { display:flex; align-items:center; justify-content:flex-start; gap:1.25rem; position:relative; padding-left:clamp(1rem,4vw,4rem); padding-right:clamp(1rem,2vw,2rem);
             animation:bannerin .45s cubic-bezier(.2,.8,.2,1) both; overflow:hidden; }
.fb-banner::after { content:""; position:absolute; inset:0; background:linear-gradient(120deg,transparent 30%,rgba(255,255,255,.18) 50%,transparent 70%);
                    transform:translateX(-100%); animation:sheen 1.4s .3s ease-out; }
@keyframes sheen { to { transform:translateX(100%); } }
@keyframes bannerin { from { transform:translateY(-100%); opacity:0; } to { transform:none; opacity:1; } }
.fb-banner > div { text-align:left; flex:1; min-width:0; }
.fb-stamp { width:64px; height:64px; min-width:64px; flex:0 0 64px; color:#fff; overflow:visible;
            animation:stamp .55s .15s cubic-bezier(.17,.89,.32,1.49) both; }
.fb-stamp polyline, .fb-stamp line { fill:none; stroke:currentColor; stroke-width:8; stroke-linecap:round; stroke-linejoin:round;
            stroke-dasharray:120; stroke-dashoffset:120; animation:draw .5s .35s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset:0; } }
@keyframes stamp { 0% { transform:scale(0) rotate(-25deg); opacity:0; } 100% { transform:scale(1) rotate(0); opacity:1; } }
.fb-brand { margin-left:auto; height:26px; background:#fff; border-radius:8px; padding:6px 10px; box-sizing:content-box;
            flex:0 0 auto; }
@media (max-width:900px) { .fb-brand { display:none; } }
.fb-detail > * { animation:riseIn .5s ease-out both; }
.fb-detail > *:nth-child(1) { animation-delay:.25s; } .fb-detail > *:nth-child(2) { animation-delay:.4s; }
.fb-detail > *:nth-child(3) { animation-delay:.55s; } .fb-detail > *:nth-child(4) { animation-delay:.7s; }
.fb-detail > *:nth-child(5) { animation-delay:.85s; }
@keyframes riseIn { from { transform:translateY(18px); opacity:0; } to { transform:none; opacity:1; } }
.fb-ecg { animation:riseIn .5s .1s ease-out both; }
.fb-dtb-num { animation:dtbglow 1.2s 1.6s ease-in-out 2; }
@keyframes dtbglow { 50% { text-shadow:0 0 22px rgba(197,48,48,.7); transform:scale(1.04); } }

/* ---- scorecard: count-up + medal pop ---- */
.done-big { animation:stamp .6s .1s cubic-bezier(.17,.89,.32,1.49) both; }
.done-rank { animation:riseIn .5s .5s ease-out both; }
.done-cases li { animation:riseIn .4s ease-out both; }


/* ---- PMcardio ACS card — tokens lifted from Figma "Mobile-PMcardio Org / QoH Module A" ----
   Open Sans 600/400 · text #171A21 · secondary #59657D · radius 8 · 1px stroke per verdict
   header fills red #FF9999 (#330000, stroke #DF0C0C) · orange #FEB872 (#422405, #FFAA33) ·
   yellow #FEE672 (#3A3104, #FFCC00) · white (#171A21, no stroke) · sections pad 12/16 */
@font-face { font-family:"Open Sans"; src:url("/static/fonts/OpenSans-var.woff2") format("woff2"); font-weight:300 800; font-display:swap; }
.pmc-top { display:flex; align-items:center; gap:0.5rem; padding:0 0 0.45rem 0.1rem; }
.pmc-top img { height:18px; } .pmc-top span { font-size:0.74rem; letter-spacing:0.06em; text-transform:uppercase; color:#64707d; font-weight:700; }
.pmc { font-family:"Open Sans", -apple-system, "Segoe UI", Roboto, sans-serif; color:#171A21; background:#fff; border-radius:8px; overflow:hidden;
       border:1px solid #E3E6ED; font-weight:400; }
.pmc.red { border-color:#DF0C0C; } .pmc.orange { border-color:#FFAA33; } .pmc.yellow { border-color:#FFCC00; }
.pmc-hd { display:flex; align-items:flex-start; gap:8px; padding:12px 16px; background:#fff; color:#171A21; }
.pmc.red .pmc-hd { background:#FF9999; color:#330000; } .pmc.orange .pmc-hd { background:#FEB872; color:#422405; } .pmc.yellow .pmc-hd { background:#FEE672; color:#3A3104; }
.pmc-ic { width:20px; height:20px; flex:0 0 20px; margin-top:2px; color:currentColor; display:none; }
.pmc.red .pmc-ic-warning, .pmc.orange .pmc-ic-warning { display:block; }
.pmc.yellow .pmc-ic-error, .pmc.white.has-icon .pmc-ic-error { display:block; }
.pmc-hd-txt { min-width:0; } .pmc-hd-txt b { display:block; font-size:16px; line-height:24px; font-weight:600; white-space:pre-line; }
.pmc-hd-txt span { display:block; font-size:14px; line-height:20px; font-weight:400; } .pmc.white .pmc-hd-txt span { color:#59657D; }
.pmc-sec { padding:12px 16px; border-top:1px solid #F0F2F6; } .pmc-hd + .pmc-sec { border-top:none; }
/* gauge: [pct 78px][Low 61][Inc 62][High 125] on a 330 grid → percentages of the bar row */
.pmc-gauge { display:grid; grid-template-columns:78px 1fr; grid-template-rows:26px 16px; column-gap:0; row-gap:8px; align-items:start; }
.pmc-pct { grid-column:1; grid-row:1; font-size:24px; line-height:32px; font-weight:600; margin-top:-3px; font-variant-numeric:tabular-nums; }
.pmc-bar { grid-column:2; grid-row:1; position:relative; display:flex; height:26px; }
.pmc-bar .z { display:flex; flex-direction:column; }
.pmc-bar .z1 { flex:0 0 24.6%; } .pmc-bar .z2 { flex:0 0 25%; } .pmc-bar .z3 { flex:1; }
.pmc-bar .t { height:11px; background:#E3E6ED; } .pmc-bar .b { height:15px; background:#F6F7F9; }
.pmc-bar .z1 .t { border-radius:4px 0 0 0; } .pmc-bar .z1 .b { border-radius:0 0 0 4px; }
.pmc-bar .z3 .t { border-radius:0 4px 0 0; } .pmc-bar .z3 .b { border-radius:0 0 4px 0; }
.pmc-bar.high .z3 .t { background:linear-gradient(90deg,#B2BFDC 10%,#99B2FF 90%); } .pmc-bar.high .z3 .b { background:linear-gradient(90deg,#F4F6FA 10%,#F0F3FF 90%); }
.pmc-bar.inc .z2 .t { background:#FEE672; } .pmc-bar.inc .z2 .b { background:#FFFAE0; }
.pmc-bar.low .z1 .t { background:linear-gradient(90deg,#FFD599 10%,#FFE9CC 90%); } .pmc-bar.low .z1 .b { background:#FFF9F0; }
.pmc-marker { position:absolute; top:5.5px; width:19px; height:19px; border-radius:50%; border:1px solid #171A21; background:#fff;
              transform:translate(-50%,-50%); transition:left 0.8s cubic-bezier(.2,.8,.2,1); box-sizing:border-box; }
.pmc-marker::after { content:""; position:absolute; inset:3px; border-radius:50%; background:#171A21; }
.pmc-marker.bar { width:5px; height:15px; border-radius:2px; background:#171A21; border:none; top:5.5px; } .pmc-marker.bar::after { display:none; }
.lbl { font-size:12px; line-height:16px; font-weight:600; grid-row:2; }
.l-score { grid-column:1; } .l-low, .l-inc, .l-high { grid-column:2; }
.l-inc { justify-self:start; margin-left:24.6%; } .l-high { justify-self:end; }
.pmc-desc { margin:0; font-size:16px; line-height:24px; }
.pmc-core { margin:8px 0 0; display:flex; flex-wrap:wrap; gap:4px; }
.pmc-core span { background:#F6F7F9; border-radius:4px; padding:1px 8px; font-size:12px; line-height:16px; color:#59657D; }
.pmc-img { padding:0 16px 12px; border-top:none; }
.pmc-explain { display:block; width:100%; height:auto; border-radius:4px; cursor:pointer; }
.pmc-note-sec { padding:0 16px 12px; border-top:none; }
.pmc-note { background:#F6F7F9; border-radius:4px; padding:4px 8px; font-size:12px; line-height:16px; color:#59657D; text-align:center; }

.fb-ecg { position:relative; }
.fb-ecg-tabs-row { display:flex; flex-wrap:wrap; gap:0.35rem; padding:0.25rem 0.25rem 0.6rem; }
.fb-ecg-tabs button { min-height:0; padding:0.5rem 0.95rem; font-size:0.9rem; border-radius:999px; background:#f1f5f9; color:#4a5560; border:1px solid #e3e8ee; }
.fb-ecg-tabs button.on { background:#0033cc; color:#fff; border-color:#0033cc; }
.fb-ecg-cap { font-size:0.8rem; color:#64707d; text-align:center; padding:0.4rem 0 0.1rem; }


/* ================= play (attract) screen ================= */
#play.play { padding:0; position:relative; min-height:100dvh; overflow:hidden; background:#041255; color:#fff; display:block; }
.play-hero { position:absolute; inset:0; background:#041255 center/cover no-repeat; }
.play-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(4,18,85,.15) 0%, rgba(4,18,85,.35) 45%, rgba(4,18,85,.92) 100%); }
/* with an uploaded key visual: show the whole artwork (it carries its own title), only the PLAY button + hint are overlaid */
#play.has-hero .play-hero { background-size:cover; background-position:center top; background-color:#020a2e; }   /* fill any aspect; crop the bottom console, never the title */
#play.has-hero .play-hero::after { background:linear-gradient(180deg, rgba(2,10,46,0) 70%, rgba(2,10,46,.85) 100%); }
#play.has-hero .play-eyebrow, #play.has-hero .play-title, #play.has-hero .play-sub { display:none; }
#play.has-hero .play-body { padding-bottom:clamp(1.25rem,4vh,3rem); }
#play.has-hero .play-btn { width:clamp(120px,13vw,170px); height:clamp(120px,13vw,170px); font-size:clamp(1.3rem,2.2vw,1.9rem); }
#play.has-hero .play-hint { margin-top:1rem; text-shadow:0 2px 8px rgba(0,0,0,.6); }
#play.has-hero .play-logo { max-height:56px; }
.play-default { position:absolute; inset:0; background:radial-gradient(ellipse at 30% 20%, #1b3fd6 0%, #041255 55%, #020a2e 100%); }
.play-trace { position:absolute; left:0; right:0; top:38%; width:100%; height:120px; opacity:.55; }
.play-trace path { fill:none; stroke:#7fb3ff; stroke-width:3; stroke-linejoin:round; stroke-linecap:round; stroke-dasharray:300 4000; animation:playtrace 4s linear infinite; filter:drop-shadow(0 0 8px rgba(127,179,255,.8)); }
@keyframes playtrace { from { stroke-dashoffset:4300; } to { stroke-dashoffset:0; } }
.play-top { position:absolute; top:0; left:0; right:0; display:flex; justify-content:space-between; align-items:center; padding:1.25rem 1.75rem; z-index:2; }
.play-logo { max-height:64px; max-width:260px; object-fit:contain; background:rgba(255,255,255,.92); border-radius:10px; padding:6px 10px; }
.play-pm { display:flex; align-items:center; gap:.5rem; color:#c7d2fe; font-size:.85rem; margin-left:auto; }
.play-pm img { height:24px; background:#fff; border-radius:8px; padding:4px 8px; }
.play-body { position:relative; z-index:2; min-height:100dvh; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; text-align:center; padding:0 1.5rem clamp(2rem,7vh,5rem); }
.play-eyebrow { margin:0 0 .4rem; font-size:.85rem; letter-spacing:.14em; text-transform:uppercase; color:#7fb3ff; font-weight:700; }
.play-title { margin:0; font-size:clamp(2.6rem,7vw,6rem); line-height:.95; font-weight:700; letter-spacing:-.02em; text-transform:uppercase; text-shadow:0 6px 30px rgba(0,0,0,.45); }
.play-title span { font-weight:400; font-size:.55em; vertical-align:middle; color:#c7d2fe; text-transform:none; }
.play-sub { margin:1rem 0 1.75rem; font-size:clamp(1rem,1.6vw,1.35rem); color:#e2e8f0; max-width:820px; }
.play-sub b { color:#fff; }
.play-btn { position:relative; width:clamp(150px,18vw,220px); height:clamp(150px,18vw,220px); border-radius:50%; background:radial-gradient(circle at 35% 30%, #ff6b6b, #c53030 60%, #7f1d1d); color:#fff;
            font-size:clamp(1.6rem,3vw,2.4rem); font-weight:700; letter-spacing:.08em; box-shadow:0 0 0 12px rgba(197,48,48,.25), 0 0 60px rgba(229,62,62,.55), inset 0 -10px 24px rgba(0,0,0,.35);
            border:none; animation:playpulse 1.8s ease-in-out infinite; }
.play-btn:hover { transform:scale(1.04); }
.play-btn-ring { position:absolute; inset:-22px; border-radius:50%; border:3px solid rgba(255,255,255,.35); animation:ringout 1.8s ease-out infinite; }
@keyframes playpulse { 0%,100% { box-shadow:0 0 0 12px rgba(197,48,48,.25), 0 0 60px rgba(229,62,62,.55), inset 0 -10px 24px rgba(0,0,0,.35); } 50% { box-shadow:0 0 0 22px rgba(197,48,48,.15), 0 0 90px rgba(229,62,62,.8), inset 0 -10px 24px rgba(0,0,0,.35); } }
@keyframes ringout { 0% { transform:scale(.9); opacity:.9; } 100% { transform:scale(1.35); opacity:0; } }
.play-hint { margin:1.5rem 0 0; color:#c7d2fe; font-size:1rem; } .play-hint b { color:#fff; }


/* ---- sound toggle ---- */
.mute-btn { min-height:0; width:38px; height:38px; padding:0; border-radius:50%; background:rgba(255,255,255,.14); color:#fff; font-size:1.05rem;
            line-height:1; display:inline-flex; align-items:center; justify-content:center; margin-left:.6rem; flex:0 0 auto; }
.mute-btn:hover { background:rgba(255,255,255,.28); }
.mute-btn-quiz { background:#eef1f5; color:#1a2633; } .mute-btn-quiz:hover { background:#e2e8f0; }


/* ================= public 52-case quiz (shares the kiosk look) ================= */
body.quiz #consent .card .ev-brand { margin-bottom:1rem; }
.consent-hero { display:grid; grid-template-columns:240px 1fr; gap:1.25rem; align-items:start; margin:0.25rem 0 0.5rem; }
.consent-hero .paper-thumb { margin:0; }
@media (max-width:720px) { .consent-hero { grid-template-columns:1fr; } .consent-hero .consent-thumb { max-width:320px; } }
body.quiz .ev-card { max-width:900px; }
body.quiz .reg-grid label .opt { font-weight:400; color:#64748b; }
body.quiz #quiz .ev-header { grid-template-columns:1fr auto 1fr; }
.ev-keys { justify-self:end; font-size:0.85rem; color:#64707d; white-space:nowrap; }
.ev-keys kbd { display:inline-block; min-width:1.4em; text-align:center; padding:0.05em 0.4em; border:1px solid #cbd5e1; border-bottom-width:2px; border-radius:6px;
               background:#fff; font-family:inherit; font-size:0.85em; color:#1a2633; }
@media (max-width:720px) { .ev-keys { display:none; } }
body.quiz #submit .card, body.quiz #intake .card { margin-top:1.25rem; }

/* public quiz: dim the previous ECG while the next one downloads */
body.quiz #ecg-img.loading { opacity:.25; filter:blur(1.5px); transition:opacity .15s; }
body.quiz #ecg-img { transition:opacity .2s; }

/* consent: natural-height card (was stretched to the viewport), footer button pinned to the bottom */
body.quiz #consent { justify-content:flex-start; }
body.quiz #consent .card { flex:0 0 auto; max-width:900px; padding-bottom:1.5rem; }
body.quiz #consent .sticky-footer { margin-top:auto; }

/* ---- ECG loading state (slow venue wifi): spinner instead of a frozen screen ---- */
.ecg-wrap { position:relative; }
.ecg-wrap.is-loading { min-height:min(52vh,520px); }
.ecg-wrap.is-loading::before { content:""; position:absolute; left:50%; top:50%; width:54px; height:54px; margin:-40px 0 0 -27px;
  border-radius:50%; border:5px solid #dfe5f3; border-top-color:#0033cc; animation:ecgspin .8s linear infinite; z-index:2; }
.ecg-wrap.is-loading::after { content:"Loading ECG…"; position:absolute; left:0; right:0; top:50%; margin-top:30px; text-align:center;
  font-weight:700; color:#64707d; font-size:1rem; letter-spacing:.02em; z-index:2; }
@keyframes ecgspin { to { transform:rotate(360deg); } }
.ev-timer.waiting, .drain.waiting { opacity:.35; }

/* ---- email quick-fill chips ("@", "@gmail.com") ---- */
.email-chips { display:flex; gap:.45rem; margin-top:.45rem; flex-wrap:wrap; }
.email-chip { appearance:none; border:1px solid #cfd8ea; background:#f3f6ff; color:#0033cc; font:inherit; font-weight:700;
              font-size:.95rem; line-height:1; padding:.5rem .85rem; border-radius:999px; cursor:pointer; min-width:2.6rem;
              width:auto; margin:0; box-shadow:none; }
.email-chip:hover { background:#e6ecff; border-color:#0033cc; }
.email-chip:active { transform:scale(.96); }

/* ---- false activation: the angry on-call cardiologist ---- */
.angry-doc { position:fixed; left:2vw; bottom:0; width:min(28vw,380px); z-index:80; pointer-events:none; transform:translateY(110%); }
.doc-fig { display:block; width:100%; height:auto; filter:drop-shadow(0 12px 24px rgba(0,0,0,.25)); transform-origin:50% 100%; }
.doc-bubble { position:absolute; left:80%; top:2%; width:min(26vw,360px); background:#fff; color:#1a2633; border:4px solid #1a2633;
  border-radius:22px; padding:.75em 1em .85em; font-weight:700; font-size:clamp(17px,1.7vw,30px); line-height:1.2;
  box-shadow:0 12px 30px rgba(0,0,0,.2); transform:scale(0); transform-origin:0% 85%; }
.doc-bubble::before { content:""; position:absolute; left:-26px; bottom:22px; border:14px solid transparent; border-right:22px solid #1a2633; }
.doc-bubble::after  { content:""; position:absolute; left:-16px; bottom:25px; border:11px solid transparent; border-right:17px solid #fff; }
.doc-bubble em { color:#c53030; font-style:normal; }
.doc-clock { display:block; font-size:.55em; letter-spacing:.08em; color:#c53030; margin-bottom:.25em; }
.angry-doc.show { animation:docUp .6s cubic-bezier(.18,1.5,.4,1) forwards; }
.angry-doc.show .doc-bubble { animation:bubblePop .45s .45s cubic-bezier(.2,1.7,.4,1) forwards; }
.angry-doc.show .doc-fig { animation:rage .08s .6s 16 alternate; }
.angry-doc.show .doc-vein { animation:vein .5s .6s infinite alternate; transform-box:fill-box; transform-origin:center; }
.angry-doc.hide { transform:translateY(6%); animation:docDown .4s ease-in forwards; }
.angry-doc.hide .doc-bubble { transform:scale(1); }
.steam circle { fill:#e2e8f0; opacity:0; transform-box:fill-box; transform-origin:center; }
.angry-doc.show .steam circle { animation:steam 1s ease-out infinite; }
.angry-doc.show .steam circle:nth-child(2) { animation-delay:.25s; } .angry-doc.show .steam circle:nth-child(3) { animation-delay:.5s; }
@keyframes docUp { from { transform:translateY(110%); } to { transform:translateY(6%); } }
@keyframes docDown { from { transform:translateY(6%); } to { transform:translateY(115%); } }
@keyframes bubblePop { from { transform:scale(0) rotate(-8deg); } to { transform:scale(1) rotate(-2deg); } }
@keyframes rage { from { transform:translateX(-4px) rotate(-1.5deg); } to { transform:translateX(4px) rotate(1.5deg); } }
@keyframes vein { to { transform:scale(1.25); } }
@keyframes steam { 0% { opacity:.95; transform:translateY(0) scale(.6); } 100% { opacity:0; transform:translateY(-38px) scale(1.5); } }
@media (max-width:760px) { .angry-doc { width:40vw; } .doc-bubble { width:52vw; font-size:15px; left:70%; } }
@media (prefers-reduced-motion:reduce) { .angry-doc.show .doc-fig, .angry-doc.show .steam circle, .angry-doc.show .doc-vein { animation:none; } }

/* ---- play screen: LEGO ambulance prize card ---- */
.prize-card { position:absolute; right:clamp(16px,3vw,56px); bottom:clamp(24px,9vh,110px); z-index:3; width:clamp(220px,22vw,380px);
  background:#fff; color:#041255; border-radius:22px; padding:clamp(14px,1.4vw,22px) clamp(14px,1.4vw,22px) clamp(14px,1.3vw,20px); text-align:center;
  box-shadow:0 18px 50px rgba(0,0,0,.4); transform:rotate(-3deg);
  animation:prizeIn .8s .3s cubic-bezier(.2,1.5,.4,1) both, prizeFloat 4s 1.2s ease-in-out infinite, siren 1.2s 1.2s steps(1) infinite; }
.prize-card img { width:100%; height:auto; display:block; margin:.2rem 0 .4rem; }
.prize-head { margin:0; font-weight:700; font-size:clamp(1.15rem,1.75vw,1.9rem); line-height:1.1; color:#c53030; text-transform:uppercase; letter-spacing:.01em; }
.prize-head sup { font-size:.5em; }
.prize-sub { margin:.35rem 0 0; font-size:clamp(.85rem,1.05vw,1.15rem); color:#1a2633; line-height:1.3; }
.prize-sub b { color:#0033cc; }
.prize-ribbon { position:absolute; top:-15px; left:50%; transform:translateX(-50%); background:#c53030; color:#fff; font-weight:700; font-size:clamp(.75rem,.9vw,1rem);
  letter-spacing:.12em; text-transform:uppercase; padding:.35em 1em; border-radius:999px; white-space:nowrap; box-shadow:0 4px 12px rgba(197,48,48,.45); }
@keyframes prizeIn { from { opacity:0; transform:translateY(60px) rotate(8deg) scale(.7); } to { opacity:1; transform:rotate(-3deg); } }
@keyframes prizeFloat { 0%,100% { transform:rotate(-3deg) translateY(0); } 50% { transform:rotate(-1deg) translateY(-10px); } }
@keyframes siren { 0% { box-shadow:0 18px 50px rgba(0,0,0,.4), 0 0 0 5px rgba(229,62,62,.85), 0 0 40px rgba(229,62,62,.6); }
                   50% { box-shadow:0 18px 50px rgba(0,0,0,.4), 0 0 0 5px rgba(49,130,206,.85), 0 0 40px rgba(49,130,206,.6); } }
@media (max-width:760px) { .prize-card { top:84px; bottom:auto; right:12px; width:44vw; } }
@media (prefers-reduced-motion:reduce) { .prize-card { animation:none; } }

/* ---- scorecard: the leaderboard's "new finisher" pop-up ---- */
.ev-toast { position:fixed; left:50%; bottom:clamp(18px,4vh,48px); transform:translate(-50%, calc(100% + 80px)); z-index:70;
  background:#041255; color:#fff; border-radius:18px; padding:clamp(12px,1.4vw,22px) clamp(18px,2vw,32px);
  box-shadow:0 20px 60px rgba(0,0,0,.35); display:flex; align-items:center; gap:clamp(12px,1.6vw,26px);
  transition:transform .55s cubic-bezier(.2,.8,.2,1); max-width:92vw; font-family:"PP Mori",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; }
.ev-toast.show { transform:translate(-50%, 0); }
.ev-toast .t-score { font-size:clamp(34px,4.2vw,66px); font-weight:700; line-height:1; color:#4fd1c5; font-variant-numeric:tabular-nums; }
.ev-toast .t-score small { font-size:.45em; color:#94a3b8; font-weight:700; }
.ev-toast .t-who { font-size:clamp(16px,1.8vw,28px); font-weight:700; }
.ev-toast .t-sub { font-size:clamp(12px,1.15vw,17px); color:#cbd5e0; margin-top:.2rem; }
.ev-toast .t-vs { font-size:clamp(12px,1.15vw,17px); margin-top:.35rem; font-weight:700; }
.ev-toast .t-vs.win { color:#68d391; } .ev-toast .t-vs.tie { color:#f6e05e; } .ev-toast .t-vs.lose { color:#90cdf4; }
.ev-toast .t-chips { display:flex; gap:5px; margin-top:.5rem; }
.ev-toast .t-chip { width:clamp(18px,1.9vw,30px); height:clamp(18px,1.9vw,30px); border-radius:6px; display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:.7em; color:#fff; transform:scale(0); animation:tChipIn .35s cubic-bezier(.17,.89,.32,1.49) forwards; }
@keyframes tChipIn { to { transform:scale(1); } }
.ev-toast .t-chip.tp, .ev-toast .t-chip.tn { background:#2f855a; } .ev-toast .t-chip.missed { background:#c53030; } .ev-toast .t-chip.false { background:#dd6b20; }
.ev-toast .t-prize { margin-top:.55rem; background:#f6e05e; color:#3b2f00; font-weight:700; border-radius:10px; padding:.35em .7em; font-size:clamp(13px,1.2vw,18px);
  animation:prizeGlow 1s ease-in-out infinite alternate; }
.ev-toast .t-prize sup { font-size:.6em; }
@keyframes prizeGlow { to { box-shadow:0 0 22px rgba(246,224,94,.8); } }
.ev-toast .t-rank { font-size:clamp(13px,1.2vw,18px); color:#f6e05e; font-weight:700; margin-left:auto; text-align:right; white-space:nowrap; }
.ev-toast .t-rank b { display:block; font-size:1.9em; line-height:1; }

/* ---- culprit artery card: coronary tree with the culprit segment lit up ---- */
.fb-culprit { display:flex; align-items:center; gap:1rem; background:#fff; border:2px solid #fecaca; border-radius:14px;
  padding:.75rem 1rem; margin-bottom:.75rem; box-shadow:0 2px 12px rgba(197,48,48,.08); animation:culpritIn .5s .15s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes culpritIn { from { opacity:0; transform:translateY(10px) scale(.97); } to { opacity:1; transform:none; } }
.fb-culprit .cor { width:clamp(150px,13vw,210px); height:auto; flex:0 0 auto; overflow:visible; }
.cor-heart { fill:#fff1f2; stroke:#fecdd3; stroke-width:2; }
.cor-aorta { fill:#fde2e4; stroke:#f4a3ad; stroke-width:3; stroke-linejoin:round; }
.cor-v path { fill:none; stroke:#b8c4d4; stroke-width:8; stroke-linecap:round; transition:stroke .3s, opacity .3s; }
.cor-v path.culprit { stroke:#c53030; stroke-width:12; filter:drop-shadow(0 0 5px rgba(197,48,48,.6));
  stroke-dasharray:var(--len); stroke-dashoffset:var(--len); animation:corDraw .7s .35s ease-out forwards; }
.cor-v path.down { stroke:#e2a3a3; stroke-dasharray:3 7; opacity:.75; }
@keyframes corDraw { to { stroke-dashoffset:0; } }
.cor-lbl { font-size:16px; font-weight:700; fill:#64748b; font-family:"PP Mori",sans-serif; }
.cor-lbl.on { fill:#c53030; }
.cor-occ { opacity:0; }
.cor-occ.on { animation:occIn .35s 1s ease-out forwards; }
.cor-occ .dot { fill:#fff; stroke:#7f1d1d; stroke-width:3; }
.cor-occ .ring { fill:none; stroke:#c53030; stroke-width:3; transform-box:fill-box; transform-origin:center; animation:occPulse 1.4s 1.2s ease-out infinite; }
@keyframes occIn { to { opacity:1; } }
@keyframes occPulse { 0% { transform:scale(.6); opacity:1; } 100% { transform:scale(2.2); opacity:0; } }
.fb-culprit-k { font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; color:#c53030; font-weight:700; }
.fb-culprit-name { font-size:clamp(1.35rem,2vw,2rem); font-weight:700; color:#1a2633; line-height:1.1; margin-top:.15rem; }
.fb-culprit-sub { font-size:.92rem; color:#4a5560; margin-top:.3rem; line-height:1.35; }

/* ---- kiosk: round arcade answer buttons, matching the physical red / green buttons ---- */
body.kiosk .ev-buttons { display:flex; justify-content:center; align-items:center; gap:clamp(2.5rem,10vw,10rem); }
body.kiosk .ev-btn { background:none !important; color:#1a2633; flex-direction:row; align-items:center; gap:calc(clamp(.9rem,1.4vw,1.6rem) + 14px);
  padding:.35rem .5rem .9rem; min-height:0; width:auto; border:none; box-shadow:none !important; text-align:left; cursor:pointer;
  -webkit-tap-highlight-color:transparent; }
body.kiosk .ev-btn-key { display:none; }
body.kiosk .ev-btn-txt { display:flex; flex-direction:column; gap:.15rem; }
body.kiosk .ev-btn-main { font-size:clamp(1.4rem,2.2vw,2.4rem); line-height:1; }
body.kiosk .ev-btn-sub { font-size:clamp(.8rem,1vw,1.05rem); color:#64707d; opacity:1; }
body.kiosk .ev-btn-act .ev-btn-main { color:#c53030; } body.kiosk .ev-btn-no .ev-btn-main { color:#2f855a; }
.ev-dome { --d:clamp(92px,8.5vw,150px); --bz:clamp(7px,.65vw,11px); position:relative; flex:0 0 auto; width:var(--d); height:var(--d); border-radius:50%;
  box-shadow:0 0 0 var(--bz) #1f2933, 0 0 0 calc(var(--bz) + 3px) #4a5568, 0 calc(var(--bz) + 8px) 0 calc(var(--bz) - 1px) #111827,
             0 calc(var(--bz) + 18px) 26px calc(var(--bz) - 2px) rgba(0,0,0,.35);
  transition:transform .08s ease, box-shadow .08s ease, filter .15s; }
.ev-dome::before { content:""; position:absolute; inset:0; border-radius:50%; box-shadow:inset 0 -10px 18px rgba(0,0,0,.28), inset 0 6px 10px rgba(255,255,255,.25); }
.ev-dome::after { content:""; position:absolute; left:22%; top:12%; width:46%; height:26%; border-radius:50%;
  background:radial-gradient(ellipse at center, rgba(255,255,255,.75), rgba(255,255,255,0) 70%); }
.ev-btn-act .ev-dome { background:radial-gradient(circle at 38% 32%, #ff8a8a 0%, #e53e3e 45%, #9b2c2c 100%); }
.ev-btn-no  .ev-dome { background:radial-gradient(circle at 38% 32%, #8ee6a8 0%, #38a169 45%, #1c5a3a 100%); }
body.kiosk .ev-btn:not(:disabled):hover .ev-dome { filter:brightness(1.08); }
body.kiosk .ev-btn:not(:disabled):active .ev-dome, body.kiosk .ev-btn.pressed .ev-dome {
  transform:translateY(6px);
  box-shadow:0 0 0 var(--bz) #1f2933, 0 0 0 calc(var(--bz) + 3px) #4a5568, 0 calc(var(--bz) + 2px) 0 calc(var(--bz) - 1px) #111827,
             0 calc(var(--bz) + 6px) 12px calc(var(--bz) - 2px) rgba(0,0,0,.3); filter:brightness(1.15); }
body.kiosk .ev-btn.pressed { transform:none; box-shadow:none; }
body.kiosk .ev-btn:disabled { opacity:.5; } body.kiosk .ev-btn:disabled .ev-dome { filter:saturate(.6); }
body.kiosk .ev-ecg-wrap #ecg-img { max-height:calc(100dvh - 380px); }
@media (max-width:640px) { body.kiosk .ev-buttons { gap:1.5rem; } body.kiosk .ev-btn { flex-direction:column; text-align:center; } }

/* ---- first false activation: the cardiologist jumps out at you, full screen ---- */
.angry-backdrop { position:fixed; inset:0; z-index:79; pointer-events:none; opacity:0; transition:opacity .25s;
  background:radial-gradient(ellipse at 40% 60%, rgba(197,48,48,.35), rgba(4,18,85,.78) 70%); }
.angry-backdrop.on { opacity:1; }
.angry-doc.big { left:38%; width:min(74vh,70vw); }
.angry-doc.big.show { animation:docJump .75s cubic-bezier(.2,1.45,.35,1) forwards; }
.angry-doc.big.hide { transform:translate(-50%,4%); animation:docJumpOut .35s ease-in forwards; }
.angry-doc.big .doc-fig { filter:drop-shadow(0 30px 60px rgba(0,0,0,.55)); }
.angry-doc.big.show .doc-fig { animation:rage .06s .7s 24 alternate; }
.angry-doc.big .doc-bubble { left:70%; top:0; width:min(42vw,640px); font-size:clamp(26px,3.3vw,58px); border-width:6px; border-radius:30px; }
.angry-doc.big.show .doc-bubble { animation:bubblePop .4s .35s cubic-bezier(.2,1.8,.4,1) forwards; }
@keyframes docJump {
  0%   { transform:translate(-50%, 70%) scale(.15) rotate(-12deg); }
  55%  { transform:translate(-50%, 2%) scale(1.14) rotate(3deg); }
  75%  { transform:translate(-50%, 6%) scale(.97) rotate(-1deg); }
  100% { transform:translate(-50%, 4%) scale(1) rotate(0); } }
@keyframes docJumpOut { to { transform:translate(-50%, 110%) scale(.6); } }
@media (max-width:760px) { .angry-doc.big { left:40%; width:78vw; } .angry-doc.big .doc-bubble { left:45%; top:-8%; width:56vw; font-size:20px; } }

/* ---- white / very light event logos (e.g. TCT): navy chip instead of the white one ---- */
img.logo-dark { background:#041255 !important; padding:6px 12px; border-radius:10px; box-sizing:content-box; }

/* ---- kiosk registration: players who signed up on the iPad ---- */
#register.has-queue { display:flex; flex-direction:row; gap:1.5rem; align-items:flex-start; justify-content:center; }
#register.has-queue > .card { margin:0; flex:1 1 auto; }
.reg-queue { flex:0 0 clamp(250px,24vw,340px); background:#fff; border-radius:16px; box-shadow:0 2px 16px rgba(0,0,0,.06);
  padding:1rem 1rem .9rem; position:sticky; top:1rem; max-height:calc(100dvh - 2rem); display:flex; flex-direction:column; border-top:5px solid #0033cc; }
.rq-hd { margin-bottom:.6rem; } .rq-hd .rq-k { display:block; font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:#0033cc; font-weight:700; }
.rq-hd b { font-size:1.2rem; color:#1a2633; }
.rq-list { list-style:none; margin:0; padding:0; overflow-y:auto; flex:1 1 auto; display:flex; flex-direction:column; gap:.45rem; }
.rq-item { display:flex; align-items:center; gap:.5rem; border:2px solid #e3e8ee; border-radius:12px; padding:.6rem .7rem; cursor:pointer;
  background:#f8fafc; transition:border-color .15s, background .15s, transform .1s; animation:rqIn .35s ease-out both; }
@keyframes rqIn { from { opacity:0; transform:translateX(-12px); } to { opacity:1; transform:none; } }
.rq-item:hover { border-color:#93a8e8; } .rq-item:active { transform:scale(.98); }
.rq-item.sel { border-color:#0033cc; background:#eef2ff; box-shadow:0 0 0 3px rgba(0,51,204,.15); }
.rq-item .rq-n { font-weight:700; font-size:1.05rem; color:#1a2633; line-height:1.2; }
.rq-item .rq-i { font-size:.8rem; color:#64707d; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rq-item .rq-txt { flex:1 1 auto; min-width:0; }
.rq-item .rq-w { font-size:.72rem; color:#94a3b8; white-space:nowrap; }
.rq-item .rq-x { appearance:none; border:none; background:none; color:#94a3b8; font-size:1.1rem; padding:.1rem .3rem; width:auto; margin:0; box-shadow:none; cursor:pointer; }
.rq-item .rq-x:hover { color:#c53030; }
.rq-go { margin-top:.7rem; text-align:center; border-top:1px solid #e3e8ee; padding-top:.7rem; }
.rq-go-name { font-weight:700; font-size:1.1rem; margin-bottom:.4rem; color:#0033cc; }
.rq-go button { width:100%; font-size:1.2rem; padding:.8rem; }
.rq-go-hint { font-size:.78rem; color:#64707d; margin-top:.35rem; }
.rq-empty { color:#94a3b8; font-size:.9rem; margin:.5rem 0 0; }
@media (max-width:900px) { #register.has-queue { flex-direction:column; align-items:stretch; } .reg-queue { position:static; max-height:none; flex-basis:auto; } }

/* ---- iPad sign-up page (/event/<slug>/signup) ---- */
body.signup #play, body.signup #quiz, body.signup #feedback, body.signup #done, body.signup .reg-queue { display:none !important; }
body.signup #reg-start { font-size:1.15rem; }
.signup-done { position:fixed; inset:0; z-index:90; background:rgba(4,18,85,.72); display:flex; align-items:center; justify-content:center; padding:1rem; }
.sd-card { background:#fff; border-radius:22px; padding:2rem 2.2rem; max-width:520px; text-align:center; box-shadow:0 30px 80px rgba(0,0,0,.35);
  animation:sdIn .45s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes sdIn { from { opacity:0; transform:scale(.8); } to { opacity:1; transform:none; } }
.sd-check { width:72px; height:72px; border-radius:50%; background:#2f855a; color:#fff; font-size:2.6rem; line-height:72px; margin:0 auto .8rem; font-weight:700; }
.sd-card h2 { margin:0 0 .5rem; font-size:1.6rem; } .sd-card p { margin:.3rem 0; font-size:1.1rem; color:#334155; } .sd-next { color:#94a3b8 !important; font-size:.9rem !important; }

/* ---- false-activation character: cardiologist (default) or hospital administrator ---- */
.angry-doc .admin-fig { display:none; }
.angry-doc[data-character="administrator"] .admin-fig { display:block; }
.angry-doc[data-character="administrator"] .cardio-fig { display:none; }
.angry-doc.show .cash g { animation:cashFly 1.6s .5s ease-in-out infinite alternate; transform-box:fill-box; transform-origin:center; }
@keyframes cashFly { from { translate:0 0; } to { translate:0 -14px; } }

.doc-bubble { z-index:2; }   /* keep the speech bubble above the figure (flying cash, hair) */
