/* Resolution Primaries '27 — stage + phone styles, lifted from design/canvas.html */
@font-face{font-family:Silk;src:url(/fonts/silkscreen.woff2) format("woff2")}
:root{--ink:#0b1440;--navy:#0e1a52;--blue:#1d3fb8;--glow:#4f7cff;--gold:#f2c94c;--gold2:#c9962a;--red:#e5484d;--green:#4fd06a;--cream:#fff6e0;--cyan:#8fe3f5;--mute:#93a3d8}
*{box-sizing:border-box}
body{margin:0;background:#070d2e;color:var(--cream);font:16px/1.5 ui-rounded,"SF Pro Rounded",system-ui,sans-serif}
h1,h2,h3,.px{font-family:Silk,monospace;font-weight:400;letter-spacing:.02em}
.tp{border-radius:999px;padding:0 6px;font:800 9px ui-rounded,system-ui}
canvas{image-rendering:pixelated}
.bob{animation:bob 1.2s steps(4) infinite}
@keyframes bob{50%{transform:translateY(-6px)}}

/* ---------- stage ---------- */
.stage{container-type:inline-size;position:relative;aspect-ratio:16/9;overflow:hidden;background:#040922;border:4px solid #000;box-shadow:0 0 0 4px #243a9a,0 10px 0 4px #000;font-family:Silk;image-rendering:pixelated;user-select:none;width:100vw;max-height:100vh}
body.tv{display:grid;place-items:center;height:100vh;overflow:hidden}
body.tv .stage{width:min(100vw,177.7vh);height:auto}
.stage *{image-rendering:pixelated}
.wall{position:absolute;inset:0;background:
  linear-gradient(90deg,#060c30 0 7%,transparent 7% 93%,#060c30 93%),
  repeating-linear-gradient(90deg,#0c1858 0 .8cqw,#0a1448 .8cqw 1.6cqw);}
.panel{position:absolute;top:38%;height:42%;width:34%;background:#0f2172;border:.3cqw solid #1b38a8;overflow:hidden}
.panel.l{left:9%}.panel.r{right:9%}
.panel.c{left:43%;width:14%;background:#081247}
.script{position:absolute;inset:-10%;color:#3c66e0;opacity:.22;font-size:2.4cqw;line-height:1.5;transform:rotate(-7deg);word-spacing:.6cqw}
.balcony{position:absolute;top:27%;left:6%;right:6%;height:9%;background:
  linear-gradient(#f2c94c 0 .35cqw,transparent .35cqw calc(100% - .35cqw),#c9962a calc(100% - .35cqw)),
  repeating-linear-gradient(90deg,#1c3394 0 1.2cqw,#0e1d64 1.2cqw 1.6cqw);border-bottom:.4cqw solid #000}
.led{position:absolute;top:10%;left:22%;right:22%;height:15%;background:#0a1a6a;border:.4cqw solid #1b38a8;overflow:hidden;
  box-shadow:inset 0 0 0 .3cqw #000}
.led .mq{position:absolute;white-space:nowrap;top:50%;transform:translateY(-50%);font-size:4.6cqw;color:#7fa6ff;animation:mq 22s linear infinite;
  text-shadow:.3cqw .3cqw 0 #061048}
@keyframes mq{from{left:100%}to{left:-260%}}
.lamp{position:absolute;top:2.5%;width:3.2cqw;height:3.2cqw;background:#fff;box-shadow:0 0 0 .6cqw #e6f0ff55,0 0 0 1.4cqw #c8dcff22}
.beam{position:absolute;top:4%;width:30%;height:96%;background:linear-gradient(#ffffff30,#ffffff00 85%);clip-path:polygon(46% 0,54% 0,100% 100%,0 100%);mix-blend-mode:screen;transition:left .6s steps(6),opacity .4s}
.floor{position:absolute;left:-10%;right:-10%;bottom:-16%;height:40%;border-radius:50%;background:
  radial-gradient(closest-side,#2f5cff 0 30%,#2149d8 30% 52%,#1838b0 52% 74%,#102a8a 74% 100%);border-top:.4cqw solid #3f6bff}
.side{position:absolute;top:44%;width:13%;height:20%;background:#0d1f78;border:.35cqw solid #c9962a;font-size:1.25cqw;color:#bcd0ff;padding:.6cqw;overflow:hidden;z-index:2}
.side.l{left:1%}.side.r{right:1%}
.side b{display:block;color:var(--gold);font-weight:400;margin-bottom:.4cqw}
#scene{position:absolute;inset:0;z-index:3}

/* podium + candidate */
.pod{position:absolute;bottom:9%;width:13cqw;margin-left:-6.5cqw;display:flex;flex-direction:column;align-items:center;transition:left .6s steps(8),bottom .6s steps(8),opacity .4s}
.pod .mon{position:relative;z-index:1;margin-bottom:-3.2cqw;transform-origin:bottom center;transition:transform .5s,filter .5s}
.pod.flip .mon{transform:scaleX(-1)}
.lectern{position:relative;z-index:2;width:11cqw;height:15cqw;background:linear-gradient(90deg,#16308f 0 12%,#2a4fd0 12% 88%,#16308f 88%);border:.35cqw solid #050a2e}
.lectern:before{content:"";position:absolute;left:-1cqw;right:-1cqw;top:-1.6cqw;height:1.6cqw;background:#6e93ff;border:.35cqw solid #050a2e;box-shadow:inset 0 -.5cqw 0 #3e63e0}
.lectern:after{content:"";position:absolute;left:38%;right:38%;top:3.4cqw;bottom:1.2cqw;background:repeating-linear-gradient(#0b1f7a 0 .5cqw,#123094 .5cqw 1cqw);border-left:.3cqw solid var(--gold);border-right:.3cqw solid var(--gold)}
.plate{position:absolute;z-index:3;left:-.6cqw;right:-.6cqw;top:.3cqw;background:var(--cream);color:var(--ink);font-size:1.45cqw;text-align:center;padding:.35cqw 0;border:.3cqw solid #050a2e}
.pod.lit .lectern{box-shadow:0 0 0 .5cqw var(--gold)}
.pod.win .mon{animation:hop .5s steps(3) infinite}
@keyframes hop{50%{translate:0 -1.4cqw}}
.pod.small{width:10cqw;margin-left:-5cqw}
.pod.small .lectern{width:8cqw;height:10cqw}
.pod.small .plate{font-size:1.15cqw}
.pod.small .mon{margin-bottom:-1.4cqw}
.pod.dim .mon{filter:brightness(.5)}
.pod.elim .mon{filter:grayscale(1) brightness(.5);transform:translateY(1.2cqw) rotate(-14deg)}
.pod.elim .plate{background:#6b6f86;text-decoration:line-through}
.pod.voted .plate{background:var(--gold)}
.pod.voted .plate:after{content:" ✓"}

/* host + dialogue */
.host{position:absolute;z-index:6;image-rendering:pixelated}
.host canvas{width:100%;display:block}
.flyin{animation:fly 1.1s cubic-bezier(.2,.9,.3,1.3) both}
@keyframes fly{0%{transform:translate(70cqw,-50cqw) rotate(40deg) scale(.4)}100%{transform:none}}
.hb{animation:bob 1.2s steps(4) infinite}
.dlg{position:absolute;z-index:7;background:var(--cream);color:var(--ink);border:.5cqw solid var(--ink);box-shadow:0 .7cqw 0 var(--ink);border-radius:1.2cqw;padding:1.6cqw 2cqw;font-size:2.15cqw;line-height:1.35;min-height:9cqw;animation:pop .25s steps(3) both}
.dlg .who{position:absolute;top:-2.4cqw;left:1.6cqw;background:var(--red);color:#fff;font-size:1.5cqw;padding:.35cqw 1cqw;border:.4cqw solid var(--ink)}
.dlg .more{position:absolute;right:1.4cqw;bottom:.8cqw;font-size:1.6cqw;animation:blink .6s steps(2) infinite}
@keyframes blink{50%{opacity:0}}
@keyframes pop{0%{transform:scale(.6);opacity:0}100%{transform:none;opacity:1}}

/* chyron */
.chyron{position:absolute;z-index:8;left:0;right:0;bottom:0;height:4.4cqw;background:var(--red);display:flex;align-items:center;border-top:.4cqw solid #fff;font-size:1.7cqw;overflow:hidden}
.chyron .live{background:#fff;color:var(--red);padding:0 1.4cqw;height:100%;display:flex;align-items:center}
.chyron .tick{white-space:nowrap;animation:mq2 18s linear infinite;padding-left:100%}
@keyframes mq2{to{transform:translateX(-100%)}}

/* ballot box + flying slips */
.bbox{position:absolute;z-index:7;left:50%;bottom:.5cqw;width:12cqw;margin-left:-6cqw;height:8cqw;background:linear-gradient(#2a4fd0 0 18%,#1d3fb8 18%);border:.4cqw solid #050a2e;box-shadow:0 .5cqw 0 #000;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:1.3cqw;color:var(--gold)}
.bbox:before{content:"";position:absolute;top:.4cqw;left:2.5cqw;right:2.5cqw;height:.7cqw;background:#050a2e}
.bbox b{font-weight:400;margin-top:1cqw}.bbox .cnt{color:var(--cream);font-size:1.6cqw}
.bbox.bump{animation:bump .25s steps(2)}
@keyframes bump{50%{transform:translateY(.5cqw) scaleY(.94)}}
.bbox.shake{animation:shake .12s steps(2) 6}
@keyframes shake{25%{translate:-.5cqw 0}75%{translate:.5cqw 0}}
.fslip{position:absolute;z-index:9;width:2.6cqw;height:1.8cqw;background:#f3e9d2;border:.2cqw solid #050a2e;box-shadow:inset 0 .45cqw 0 #d9c9a3}

/* paper slips */
.paperlike{background:#f3e9d2;color:#2a2418;border:.45cqw solid #050a2e;box-shadow:.7cqw .7cqw 0 #000;font-family:ui-rounded,system-ui;font-weight:700;position:absolute;z-index:6;animation:pop .3s steps(3) both;
  background-image:repeating-linear-gradient(transparent 0 2.3cqw,#e2d3b0 2.3cqw 2.45cqw)}
.paperlike .hd{font:400 1.1cqw Silk;color:#9c3b2c;display:flex;justify-content:space-between;border-bottom:.2cqw dashed #b9a274;padding-bottom:.4cqw;margin-bottom:.6cqw}
.hand{font-family:"Bradley Hand","Segoe Print","Marker Felt","Comic Neue","Comic Sans MS",cursive;color:#1f3fa8;font-weight:700}
.bigslip{left:22cqw;width:56cqw;top:2.4cqw;padding:1.2cqw 1.8cqw}
.bigslip h4{margin:.2cqw 0 .3cqw;font-size:3.4cqw;line-height:1.05}
.bigslip p{margin:0 0 .8cqw;font-size:1.6cqw}
.bigslip .yn{display:grid;grid-template-columns:1fr 1fr;gap:1.2cqw;font-size:1.45cqw}
.bigslip .yn b{display:block;font:400 1.1cqw Silk}
.bigslip .yn .y b{color:#2b7a3d}.bigslip .yn .n b{color:#b3362a}
.bigslip .fl{margin-top:.9cqw;font:400 1.3cqw Silk;color:#050a2e;display:flex;align-items:center;gap:1cqw}
.bigslip .fl .t{flex:1;height:.9cqw;background:#d8c7a0;border:.2cqw solid #050a2e}
.bigslip .fl .t i{display:block;height:100%;background:#e5484d;width:100%;transition:width 1s linear}
.paperlike .party{margin-top:.6cqw;font:400 1cqw Silk;color:#6d5f42;display:flex;align-items:center;gap:.5cqw}
.paperlike .tp{font:800 1.15cqw ui-rounded,system-ui;padding:.1cqw .7cqw;border:.15cqw solid currentColor;border-radius:99cqw}
.mslip{top:3cqw;width:36cqw;padding:1cqw 1.4cqw;text-align:center;transition:filter .4s,transform .4s}
.mslip h4{margin:.2cqw 0 0;font-size:2.6cqw;line-height:1.1}
.mslip.lost{filter:grayscale(1) brightness(.7);transform:rotate(-4deg) translateY(1cqw)}
.mslip .party{justify-content:center}
.vbar2{position:absolute;z-index:6;top:19.5cqw;left:14cqw;right:14cqw;height:3cqw;display:flex;border:.4cqw solid #050a2e;background:#30365e;font-size:1.7cqw}
.vbar2 div{display:flex;align-items:center;padding:0 .8cqw;transition:width .3s steps(3);white-space:nowrap;overflow:hidden;width:0}
.vbar2 .a{background:#ff7a59}.vbar2 .gap{flex:1}.vbar2 .b{background:#59b7ff;justify-content:flex-end}
.match{position:absolute;z-index:6;top:1.5cqw;left:50%;transform:translateX(-50%);font-size:1.5cqw;background:var(--red);padding:.3cqw 1cqw;border:.35cqw solid var(--ink)}
.stamp{position:absolute;z-index:9;font-size:4cqw;color:var(--red);border:.6cqw solid var(--red);padding:.4cqw 1.4cqw;background:#fff6e0ee;transform:rotate(-12deg);animation:stamp .35s cubic-bezier(.3,1.8,.5,1) both}
@keyframes stamp{0%{transform:scale(3) rotate(-12deg);opacity:0}100%{transform:rotate(-12deg)}}
.vs{position:absolute;z-index:6;left:50%;top:30%;font-size:11cqw;color:var(--gold);transform:translate(-50%,-50%);text-shadow:.6cqw .6cqw 0 var(--red),1.2cqw 1.2cqw 0 #000;animation:slam .5s cubic-bezier(.3,1.6,.5,1) both}
@keyframes slam{0%{transform:translate(-50%,-50%) scale(4) rotate(-20deg);opacity:0}100%{transform:translate(-50%,-50%) scale(1) rotate(-6deg)}}

/* ranked */
.bar{position:absolute;z-index:4;width:5cqw;margin-left:-2.5cqw;bottom:31cqw;background:var(--gold);border:.35cqw solid var(--ink);transition:height .6s steps(6);display:flex;justify-content:center}
.bar span{position:absolute;top:-3cqw;font-size:2cqw;color:var(--gold);text-shadow:.25cqw .25cqw 0 #000}
.round{position:absolute;z-index:6;top:2cqw;left:50%;transform:translateX(-50%);font-size:2cqw;background:var(--ink);border:.4cqw solid var(--gold);color:var(--gold);padding:.5cqw 1.6cqw;white-space:nowrap}
.majority{position:absolute;z-index:4;left:8cqw;right:8cqw;border-top:.35cqw dashed #ff9a9d;font-size:1.1cqw;color:#ff9a9d}

/* title */
.logo{position:absolute;z-index:5;left:50%;top:15%;transform:translateX(-50%);text-align:center;width:80cqw}
.logo .yr{font-size:2.6cqw;color:var(--cyan)}
.logo .big{font-size:7.6cqw;line-height:.95;color:var(--gold);text-shadow:.5cqw .5cqw 0 var(--red),1cqw 1cqw 0 #000;animation:pop .5s steps(4) both}
.logo .we{font-size:2cqw;color:#bcd0ff;margin-top:1.4cqw}
.join{position:absolute;z-index:5;left:50%;top:57%;transform:translateX(-50%);background:var(--cream);color:var(--ink);border:.5cqw solid var(--ink);box-shadow:.8cqw .8cqw 0 #000;padding:1cqw 2cqw;font-size:1.9cqw;text-align:center;white-space:nowrap}
.join b{font-weight:400;color:var(--red);font-size:3.2cqw;letter-spacing:.5cqw}
.lobby{position:absolute;z-index:5;left:0;right:0;bottom:1cqw;display:flex;justify-content:center;gap:1.4cqw}
.walker{width:7cqw;text-align:center;font-size:1.1cqw;color:var(--cream)}
.walker i{display:block;width:7cqw;height:7cqw;background-size:400% 400%;animation:walk .7s steps(4) infinite}
@keyframes walk{to{background-position-x:-400%}}
.walker i.ball,.pkc i.ball,.pkprev i.ball{background-image:none!important;position:relative}
.walker i.ball:after,.pkc i.ball:after,.pkprev i.ball:after{content:"";position:absolute;inset:15%;border-radius:50%;background:linear-gradient(#e5484d 0 45%,#222 45% 55%,#fff 55%);box-shadow:inset 0 0 0 2px #222}
.star{position:absolute;z-index:4;width:1cqw;height:1cqw;background:#fff;animation:twk 1.4s steps(2) infinite}
@keyframes twk{50%{opacity:.2}}

/* results */
.confetti{position:absolute;z-index:8;top:-3cqw;width:1cqw;height:1.4cqw;animation:fall linear infinite}
@keyframes fall{to{transform:translateY(62cqw) rotate(720deg)}}
.riser{position:absolute;bottom:9%;height:3cqw;background:#c9962a;border:.35cqw solid #000;left:50%}

/* filing count on tv */
.filecount{position:absolute;z-index:5;left:50%;top:52%;transform:translateX(-50%);text-align:center}
.filecount .n{font-size:7cqw;color:var(--gold);text-shadow:.5cqw .5cqw 0 #000}
.filecount .l{font-size:2cqw;color:#bcd0ff}

/* ---------- phone ---------- */
.phone{width:230px;height:470px;background:#0b1440;border:8px solid #000;border-radius:30px;box-shadow:0 0 0 3px #2c45b8,0 8px 0 3px #000;padding:26px 14px 14px;position:relative;display:flex;flex-direction:column;gap:9px;overflow:hidden}
body.phonepg{display:grid;place-items:center;min-height:100vh;padding:14px}
.phone:before{content:"";position:absolute;top:8px;left:50%;width:60px;height:8px;margin-left:-30px;background:#000;border-radius:6px}
.phone .ph{font-family:Silk;font-size:12px;color:var(--gold);text-align:center}
.phone .cta{margin-top:auto;background:var(--red);color:#fff;font-family:Silk;font-size:13px;text-align:center;padding:11px;border:3px solid #000;border-radius:8px;box-shadow:0 4px 0 #000;cursor:pointer;user-select:none}
.phone .cta.off{opacity:.4;pointer-events:none}
.paper{background:#f3e9d2;color:#2a2418;border-radius:4px;position:relative;padding:12px 12px 10px;box-shadow:0 3px 0 #000,inset 0 0 0 1px #d9c9a3}
.paper.perf{-webkit-mask:radial-gradient(circle 4px at 8px 0,#0000 98%,#000) -8px 0/16px 100% repeat-x;mask:radial-gradient(circle 4px at 8px 0,#0000 98%,#000) -8px 0/16px 100% repeat-x;padding-top:14px}
.paper .ttl{font-family:Silk;font-size:13px;color:#9c3b2c;text-align:center;letter-spacing:.06em}
.paper .meta{font-family:Silk;font-size:8px;color:#8a7a5a;text-align:center;margin-bottom:6px;border-bottom:2px dashed #b9a274;padding-bottom:6px}
.paper .lbl{font-family:Silk;font-size:8px;color:#6d5f42;margin-top:6px}
.paper .ln{border-bottom:2px solid #b9a274;min-height:22px;font-size:15px;line-height:1.25;outline:none;padding:1px 2px}
.paper .ln.tall{background:repeating-linear-gradient(transparent 0 19px,#b9a274 19px 21px);border:0;min-height:42px;font-size:14px;line-height:21px}
.paper .chk{display:flex;gap:6px;align-items:flex-start;margin-top:5px}
.paper .chk i{flex:0 0 14px;height:14px;border:2px solid #2a2418;font-style:normal;font-size:13px;line-height:10px;text-align:center;color:#1f3fa8;font-family:"Bradley Hand",cursive}
.paper .chk .ln.tall{flex:1;min-height:21px}
.seal{position:absolute;right:8px;top:30px;width:42px;height:42px;border:2px solid #c0392b;border-radius:50%;color:#c0392b;font-family:Silk;font-size:6.5px;display:grid;place-items:center;text-align:center;transform:rotate(-14deg);opacity:.75;line-height:1.2}
.squig{position:absolute;pointer-events:none}
.phone .scroll{overflow:auto;flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;scrollbar-width:none}
.pbox{pointer-events:none;position:absolute;left:50%;bottom:16px;width:110px;margin-left:-55px;height:58px;background:linear-gradient(#2a4fd0 0 20%,#1d3fb8 20%);border:3px solid #000;box-shadow:0 4px 0 #000;font-family:Silk;font-size:10px;color:var(--gold);display:grid;place-items:center;padding-top:10px;z-index:3}
.pbox:before{content:"";position:absolute;top:4px;left:22px;right:22px;height:6px;background:#050a2e}
.pbox.bump{animation:bump .25s steps(2)}
.slipbtn{background:#f3e9d2;color:#2a2418;border-radius:3px;box-shadow:0 4px 0 #000,inset 0 0 0 1px #d9c9a3;padding:10px 10px 10px 8px;display:flex;gap:8px;align-items:center;cursor:pointer;position:relative;z-index:4;
  background-image:repeating-linear-gradient(transparent 0 17px,#e2d3b0 17px 18px)}
.slipbtn .t{font-size:16px;line-height:1.15}
.slipbtn small{display:block;font-family:Silk;font-size:8px;color:#9c3b2c}
.cast{font-family:Silk;color:var(--gold);text-align:center;font-size:12px;min-height:16px}
.vsm{font-family:Silk;color:var(--gold);text-align:center;font-size:18px;margin:-4px 0}
.rkrow{display:flex;align-items:center;gap:7px;padding:4px 2px;border-bottom:2px dashed #cdb98e;cursor:grab;background:transparent;position:relative}
.rkrow.drag{opacity:.4}
.rkrow .ov{display:flex;gap:2px}
.rkrow .ov i{width:11px;height:14px;border:1.5px solid #2a2418;border-radius:50%;font-style:normal;font-family:Silk;font-size:7px;display:grid;place-items:center;color:#6d5f42}
.rkrow .ov i.f{background:#1f3fa8;color:#fff;border-color:#1f3fa8;width:16px;height:18px;font-size:9px}
.rkrow .t{font-size:14px;line-height:1.1;flex:1}
.rkrow .updn{display:flex;flex-direction:column;gap:1px}
.rkrow .updn button{border:1.5px solid #2a2418;background:#fffaf0;font:800 9px ui-rounded,system-ui;padding:0 5px;cursor:pointer;line-height:1.2;border-radius:3px;color:#2a2418}
.pk-search{width:100%;border:2px solid #2a2418;border-radius:4px;background:#fffaf0;padding:5px 8px;font:700 13px ui-rounded,system-ui;color:#2a2418;outline:none}
.chips{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.chips button{flex:none;border:2px solid #2a2418;border-radius:999px;background:#fffaf0;font:800 10px ui-rounded,system-ui;padding:2px 8px;cursor:pointer;color:#2a2418}
.chips button.on{background:#2a2418;color:#f3e9d2}
.pkgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.pkc{border:2px solid #cdb98e;border-radius:4px;background:#fffaf0;display:grid;justify-items:center;padding:2px 0 3px;cursor:pointer;position:relative;font:800 9px ui-rounded,system-ui;color:#2a2418}
.pkc i{display:block;width:44px;height:44px;background-size:400% 400%;background-position:0 0;image-rendering:pixelated}
.pkc em{font-style:normal;font-family:Silk;font-size:7px;color:#8a7a5a}
.pkc.on{border-color:#c0392b}
.pkc.on:after{content:"";position:absolute;inset:3px;border:2.5px solid #c0392b;border-radius:50%;transform:rotate(-8deg);opacity:.8}
.pkprev{display:flex;align-items:center;gap:8px}
.pkprev i{width:52px;height:52px;background-size:400% 400%;animation:walk .7s steps(4) infinite;image-rendering:pixelated;flex:none}
.pkprev b{font-size:15px;display:block}.pkprev small{font-size:10px;display:flex;gap:3px;margin-top:2px}
.phone .tp{border:1.5px solid currentColor}
.typepick{display:flex;flex-wrap:wrap;gap:3px;margin-top:3px}
.typepick button{border:1.5px solid #b9a274;background:#fffaf0;border-radius:99px;font:800 9px ui-rounded,system-ui;padding:1px 6px;color:#6d5f42;cursor:pointer}
.typepick button.on{border-width:2px}
.pp{display:flex;gap:3px;margin-top:4px}.pp.v{flex-direction:column;margin:0;align-items:flex-end}
.phone .react{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.phone .react div{font-family:Silk;font-size:11px;text-align:center;padding:10px 0;border:3px solid #000;border-radius:8px;background:var(--gold);color:var(--ink);box-shadow:0 3px 0 #000}
.phone .react div:nth-child(2){background:var(--red);color:#fff}.phone .react div:nth-child(3){background:var(--cyan)}
.phone .bigmsg{font-family:Silk;font-size:13px;color:var(--cream);text-align:center;line-height:1.5}
.results-list{display:flex;flex-direction:column;gap:5px}
.results-list .row{display:flex;align-items:center;gap:7px;background:var(--cream);color:var(--ink);border:3px solid #000;border-radius:6px;padding:5px 8px;font-weight:800;font-size:12px}
.results-list .row .num{font-family:Silk;font-weight:400;color:var(--red);width:16px}
.results-list .row.first{background:var(--gold)}
.err{font-family:Silk;font-size:10px;color:#ff9a9d;text-align:center;min-height:14px}

/* sound toggle */
.sndbtn{position:fixed;top:10px;right:12px;z-index:50;font-family:Silk;font-size:12px;background:#16246a;color:var(--cream);border:3px solid #2c45b8;padding:7px 11px;cursor:pointer;box-shadow:0 4px 0 #000;border-radius:4px}
.sndbtn.on{background:var(--gold);color:var(--ink)}

/* ---------- admin ---------- */
body.adminpg{padding:14px;max-width:1100px;margin:0 auto}
.btn{font-family:Silk;font-size:13px;background:#16246a;color:var(--cream);border:3px solid #2c45b8;padding:8px 12px;cursor:pointer;box-shadow:0 4px 0 #000;border-radius:4px}
.btn:active{transform:translateY(3px);box-shadow:0 1px 0 #000}
.btn.on{background:var(--gold);color:var(--ink);border-color:#fff3b8}
.btn.go{background:var(--red);border-color:#ff9a9d}
.btn:disabled{opacity:.35;pointer-events:none}
.acard{background:#0e1a52;border:3px solid #243a9a;box-shadow:0 5px 0 #000;padding:14px;border-radius:6px;margin-bottom:14px}
.acard h3{font-size:14px;margin:0 0 10px;color:var(--cyan)}
.abtns{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.hint{font-size:12px;color:var(--mute)}
.viewgrid{display:flex;flex-wrap:wrap;gap:14px}
.viewcell{display:flex;flex-direction:column;gap:4px}
.viewcell .cap{font-family:Silk;font-size:10px;color:var(--cyan);text-align:center}
.viewcell iframe{border:4px solid #000;border-radius:6px;background:#070d2e}
.viewcell.tv iframe{width:480px;height:270px}
.viewcell.ph iframe{width:230px;height:470px}
.viewcell.ph.frameless iframe{width:246px;height:486px}
@media(max-width:700px){.viewcell.tv iframe{width:96vw;height:54vw}}
.astatus{font-family:Silk;font-size:12px;color:var(--gold);margin-bottom:12px}
.stage .rcard{position:absolute;z-index:5;right:4cqw;top:5cqw;width:36cqw;background:var(--cream);color:var(--ink);border:.5cqw solid var(--ink);box-shadow:.8cqw .8cqw 0 var(--ink);padding:1.6cqw 2cqw;animation:pop .3s steps(3) both}.stage .rcard h4{font-family:Silk;font-weight:400;font-size:3.3cqw;line-height:1.05;margin:.4cqw 0 .8cqw}.stage .rcard p{font-size:1.7cqw;margin:0;line-height:1.3}.stage .wy{position:absolute;z-index:5;right:4cqw;width:36cqw;display:grid;grid-template-columns:1fr 1fr;gap:1.2cqw;top:28cqw}.stage .wy div{border:.5cqw solid var(--ink);box-shadow:.6cqw .6cqw 0 var(--ink);padding:1cqw 1.2cqw;font:700 1.5cqw/1.3 ui-rounded,system-ui;color:var(--ink);animation:pop .3s steps(3) both}.stage .wy b{display:block;font:400 1.4cqw Silk;margin-bottom:.4cqw}.stage .wy .y{background:#bff3c8}.stage .wy .n{background:#ffc9c9}

/* On a real phone (and inside the admin phone frames) the controller is the whole screen,
   not the small canvas mockup. */
@media(max-width:500px){
  body.phonepg{padding:0;display:block;min-height:100vh}
  body.phonepg .phone{width:100vw;height:100vh;border-radius:0;border-width:0;box-shadow:none;padding:24px 16px 14px}
  body.phonepg .phone:before{display:none}
}
