/* ===== MedTerm Arena — "ECG" visual language (phone prototype) =====
   Scope: body[data-ui="pro"] (player page for now). Only transform/opacity animate; everything is switched off by prefers-reduced-motion. */
:root{
  --ecg:#2dd4bf;
  --ease-out:cubic-bezier(.2,.8,.2,1);
  --ease-spring:cubic-bezier(.34,1.56,.64,1);
  --r-lg:22px;--r-md:16px;
  --safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px);
}
body.cpr{--ecg:#f87171}

/* faint monitor grid behind everything (static, one fixed layer) */
body[data-ui=pro]::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;
  background-image:linear-gradient(#2dd4bf0d 1px,transparent 1px),linear-gradient(90deg,#2dd4bf0d 1px,transparent 1px);
  background-size:26px 26px;-webkit-mask-image:radial-gradient(120% 80% at 50% 0,#000 20%,transparent 75%);mask-image:radial-gradient(120% 80% at 50% 0,#000 20%,transparent 75%)}
body.cpr[data-ui=pro]::before{background-image:linear-gradient(#f871711a 1px,transparent 1px),linear-gradient(90deg,#f871711a 1px,transparent 1px)}
body[data-ui=pro] #app{position:relative;z-index:1;min-height:100vh;min-height:100dvh;padding-top:calc(14px + var(--safe-t));padding-bottom:calc(96px + var(--safe-b))}

/* ---- thumb zone: during a question the answers sit at the bottom, big and easy to hit */
body[data-ui=pro][data-phase=question] #app>.opts{margin-top:auto}
body[data-ui=pro] .opts{display:grid;grid-template-columns:1fr;gap:12px}
body[data-ui=pro] .opts .tile{min-height:68px;font-size:1.25rem;line-height:1.35;padding:14px 16px;border-radius:var(--r-lg);
  background-image:linear-gradient(180deg,#ffffff2e,#ffffff00 55%,#0000001f);border:1px solid #ffffff2b;
  box-shadow:0 1px 0 #ffffff55 inset,0 8px 20px #0000004d;-webkit-tap-highlight-color:transparent;touch-action:manipulation;
  transition:transform .16s var(--ease-out),opacity .25s,filter .25s,box-shadow .25s}
body[data-ui=pro] .opts .tile:active:not(:disabled){transform:scale(.97)}
body[data-ui=pro] .opts .tile .shape{width:38px;height:38px;border-radius:12px;background:#00000040;box-shadow:0 0 0 1px #ffffff26 inset}
body[data-ui=pro] .opts .tile:disabled{cursor:default}
body[data-ui=pro] .opts .tile.locked:not(.picked){opacity:.42;filter:saturate(.6);transform:scale(.985)}
body[data-ui=pro] .opts .tile.picked{animation:pick .55s var(--ease-spring);box-shadow:0 0 0 3px #fff,0 0 34px #ffffff66,0 8px 20px #0000004d}
body[data-ui=pro] .opts .tile.picked::after{content:"";position:absolute;inset-inline-start:14px;top:50%;width:26px;height:26px;margin-top:-13px;
  background:#fff;border-radius:50%;opacity:0;animation:tick .5s .1s var(--ease-out) forwards}
@keyframes pick{0%{transform:scale(1)}40%{transform:scale(1.035)}100%{transform:scale(1)}}
@keyframes tick{from{opacity:0;transform:scale(.4)}to{opacity:.0;transform:scale(2.2)}}
/* staggered entrance — only on the first render of a question (JS adds .enter once) */
body[data-ui=pro] .opts.enter .tile{animation:tileIn .42s var(--ease-out) both}
body[data-ui=pro] .opts.enter .tile:nth-child(2){animation-delay:.06s}
body[data-ui=pro] .opts.enter .tile:nth-child(3){animation-delay:.12s}
body[data-ui=pro] .opts.enter .tile:nth-child(4){animation-delay:.18s}
@keyframes tileIn{from{opacity:0;transform:translateY(22px) scale(.97)}to{opacity:1;transform:none}}

/* question card */
body[data-ui=pro] .q{background:var(--glass);border:1px solid var(--hair);border-radius:var(--r-lg);padding:16px 18px;line-height:1.9;font-size:1.2rem;box-shadow:0 10px 30px #0003}

/* ---- ECG strip: the signature. Two copies of one beat scroll left; faster as time runs out */
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent);mask-image:linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent)}

/* ---- reveal: animated verdict icons (stroke draws itself) */
.vicon{width:104px;height:104px;display:block;margin:0 auto 4px;overflow:visible}
.vicon .ring{fill:none;stroke-width:5;stroke-dasharray:302;stroke-dashoffset:302;animation:draw .6s var(--ease-out) forwards;transform-origin:50% 50%;transform:rotate(-90deg)}
.vicon .mark{fill:none;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:90;stroke-dashoffset:90;animation:draw .45s .45s var(--ease-out) forwards}
.vicon.ok{color:#22c55e;filter:drop-shadow(0 0 16px #22c55e88);animation:vpop .6s var(--ease-spring)}
.vicon.no{color:#f87171;filter:drop-shadow(0 0 16px #ef444488);animation:vshake .55s .5s}
.vicon.late{color:#fbbf24;filter:drop-shadow(0 0 16px #fbbf2488)}
.vicon .ring,.vicon .mark{stroke:currentColor}
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes vpop{from{transform:scale(.5);opacity:0}to{transform:none;opacity:1}}
@keyframes vshake{25%{transform:translateX(-7px)}75%{transform:translateX(7px)}}
body[data-ui=pro] .pts{animation:ptsIn .5s .35s var(--ease-spring) both}
@keyframes ptsIn{from{opacity:0;transform:translateY(10px) scale(.8)}to{opacity:1;transform:none}}

@media (prefers-reduced-motion:reduce){
  body[data-ui=pro] .opts.enter .tile,body[data-ui=pro] .opts .tile.picked,.vicon,.vicon .ring,.vicon .mark,body[data-ui=pro] .pts{animation:none!important}
  .vicon .ring,.vicon .mark{stroke-dashoffset:0}
  body[data-ui=pro] .opts .tile.picked::after{display:none}
}

/* ================= ECG monitor =================
   Idea & technique adapted from the CodePen "Heart-rate monitor" by Alex M. Walker (codepen.io/alexmwalker/pen/jjOmMV):
   a glowing sweep moves under a dark cover whose cut-out is the ECG trace; cells show shuffled beat shapes so the rhythm
   never looks looped. Rewritten here: no external images/fonts (the trace SVG is inline), compositor-only sweep animation. */
:root{--ecg-dim:#0f2f2b;--mon-bg:#0a1018;--mon-T:3.4s}
body.cpr{--ecg-dim:#33101a}
.mon{position:relative;border-radius:14px;overflow:hidden;direction:ltr;background:var(--mon-bg);border:1px solid color-mix(in srgb,var(--ecg) 45%,transparent);
  box-shadow:0 0 18px color-mix(in srgb,var(--ecg) 25%,transparent),0 0 0 1px #000 inset}
@supports not (color:color-mix(in srgb,red,blue)){.mon{border:1px solid var(--ecg);box-shadow:0 0 14px #2dd4bf33}}
.mon-hd{display:flex;justify-content:space-between;align-items:center;padding:5px 10px 0;font:700 11px/1 var(--font-body);letter-spacing:.14em;color:var(--ecg);text-shadow:0 0 6px var(--ecg)}
.mon-hd .hr{display:flex;align-items:center;gap:6px}
.mon-hd .hr i{font-style:normal;display:inline-block;animation:monbeat calc(var(--mon-T)/4) infinite;transform-origin:center}
.mon-hd .hr b{font-weight:700;min-width:2.2ch;text-align:right;font-variant-numeric:tabular-nums}
.mon-plot{position:relative;height:58px}
.mon-plot .sweep{position:absolute;inset:0 auto 0 0;width:200%;background:linear-gradient(90deg,var(--ecg-dim) 0,var(--ecg) 49.6%,var(--ecg-dim) 50%);
  animation:monsweep var(--mon-T) linear infinite;will-change:transform}
.mon-plot .mcs{position:absolute;inset:0;display:flex}
.mon-plot .mc{width:16.6667%;height:100%;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22600%22 height=%22100%22 viewBox=%220 0 600 100%22 preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3Cmask id=%22m%22 maskUnits=%22userSpaceOnUse%22 x=%220%22 y=%220%22 width=%22600%22 height=%22100%22%3E%3Crect width=%22600%22 height=%22100%22 fill=%22%23fff%22/%3E%3Cg fill=%22none%22 stroke=%22%23000%22 stroke-width=%223.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath transform=%22translate(0 0)%22 d=%22M0 62 H14 q4 -9 8 0 H30 l3 5 l4 -42 l4 58 l3 -21 H54 q8 -16 16 0 H100%22/%3E%3Cpath transform=%22translate(100 0)%22 d=%22M0 62 H12 q4 -7 8 0 H32 l3 4 l4 -34 l4 50 l3 -20 H52 q10 -22 20 0 H100%22/%3E%3Cpath transform=%22translate(200 0)%22 d=%22M0 62 H20 l3 4 l4 -50 l4 64 l3 -18 H48 q7 -10 14 0 H100%22/%3E%3Cpath transform=%22translate(300 0)%22 d=%22M0 62 H10 q4 -8 8 0 H28 l3 5 l4 -38 l4 56 l3 -23 H56 q8 -14 16 0 H80 l2 -3 l2 6 l2 -3 H100%22/%3E%3Cpath transform=%22translate(400 0)%22 d=%22M0 62 H18 q14 -6 24 6 l8 -52 l10 70 l6 -24 H78 q8 -10 16 0 H100%22/%3E%3Cpath transform=%22translate(500 0)%22 d=%22M0 62 H16 q4 -8 8 0 H34 l3 5 l4 -30 l4 46 l3 -21 H60 q8 -12 16 0 H100%22/%3E%3C/g%3E%3C/mask%3E%3C/defs%3E%3Crect width=%22600%22 height=%22100%22 fill=%22%230a1018%22 mask=%22url(%23m)%22/%3E%3C/svg%3E");background-size:600% 100%;background-repeat:no-repeat;animation:monshuffle calc(var(--mon-T)*6) steps(1) infinite}
.mon-plot .mc:nth-child(1){background-position:0 0;animation-delay:calc(var(--mon-T)/-3)}
.mon-plot .mc:nth-child(2){background-position:20% 0;animation-delay:calc(var(--mon-T)*-2.2)}
.mon-plot .mc:nth-child(3){background-position:40% 0;animation-delay:calc(var(--mon-T)*-5)}
.mon-plot .mc:nth-child(4){background-position:60% 0;animation-delay:calc(var(--mon-T)*-.8)}
.mon-plot .mc:nth-child(5){background-position:80% 0;animation-delay:calc(var(--mon-T)*-3.7)}
.mon-plot .mc:nth-child(6){background-position:100% 0;animation-delay:calc(var(--mon-T)*-1.5)}
.mon::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#0000 40%,#00000033 80%);background-size:5px 3px}
.mon[data-hot="1"]{--mon-T:2.2s}.mon[data-hot="2"]{--mon-T:1.3s}
@keyframes monsweep{from{transform:translateX(-50%)}to{transform:translateX(0)}}
@keyframes monshuffle{0%{background-position:100% 0}16.6%{background-position:40% 0}33.3%{background-position:80% 0}50%{background-position:20% 0}66.6%{background-position:60% 0}83.3%{background-position:0 0}}
@keyframes monbeat{0%,35%,60%,100%{opacity:1;transform:scale(1)}12%{transform:scale(1.35)}45%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.mon-plot .sweep{animation:none;transform:translateX(-25%)}.mon-plot .mc{animation:none}.mon-hd .hr i{animation:none}}

/* ===== compact question screen: everything fits one phone screen, no scrolling =====
   top: slim player bar → [timer ring | ECG monitor] row → question → answers (fill the free space) → powers → reactions */
body[data-ui=pro][data-phase=question] #app{gap:10px;padding:calc(8px + var(--safe-t)) 12px calc(62px + var(--safe-b));height:100vh;height:100dvh;min-height:0;overflow-y:auto;overflow-x:hidden}
body[data-ui=pro][data-phase=question] .me{padding:6px 12px;gap:8px;border-radius:14px}
body[data-ui=pro][data-phase=question] .me .av{font-size:1.6rem}
body[data-ui=pro][data-phase=question] .me b{font-size:1rem}
body[data-ui=pro][data-phase=question] .me small{font-size:.74rem}
body[data-ui=pro][data-phase=question] .me>div:last-child b{font-size:1.25rem!important}
body[data-ui=pro] .hud{display:flex;align-items:center;gap:10px}
body[data-ui=pro] .hud .ring{flex:none}
body[data-ui=pro] .hud .mon{flex:1;min-width:0}
body[data-ui=pro] .hud .mon-plot{height:34px}
body[data-ui=pro] .hud .mon-hd{padding-top:4px;font-size:10px}
body[data-ui=pro][data-phase=question] .rtop{display:flex;justify-content:center;margin:-4px 0}
body[data-ui=pro][data-phase=question] .q{padding:10px 14px;font-size:1.05rem;line-height:1.65;border-radius:16px;flex:none;max-height:26vh;overflow:auto}
body[data-ui=pro][data-phase=question] .q img{max-height:16vh;width:auto;max-width:100%;object-fit:contain}
/* answers take the remaining height, split evenly (min 52px, max 84px each) */
body[data-ui=pro][data-phase=question] #app>.opts{flex:1 1 auto;min-height:0;margin-top:0;grid-template-rows:repeat(4,minmax(52px,84px));align-content:end;gap:8px}
body[data-ui=pro][data-phase=question] .opts .tile{min-height:0;height:100%;padding:6px 14px;font-size:1.12rem;border-radius:16px}
body[data-ui=pro][data-phase=question] .opts .tile .shape{width:30px;height:30px;border-radius:10px}
/* power-ups: one slim row */
body[data-ui=pro][data-phase=question] .pubar{gap:6px}
body[data-ui=pro][data-phase=question] .pubar button{display:flex;align-items:center;justify-content:center;gap:5px;padding:6px 4px;font-size:.72rem;border-radius:12px;min-height:40px}
body[data-ui=pro][data-phase=question] .pubar button b{display:inline;font-size:1.05rem}
body[data-ui=pro][data-phase=question] .hintline{margin:0;font-size:.85rem}
body[data-ui=pro][data-phase=question] .pwbar button{padding:6px 8px;font-size:.78rem}
/* reactions: slim bar */
body[data-ui=pro] .rx{padding:5px 8px calc(5px + var(--safe-b));gap:6px}
body[data-ui=pro] .rx button{font-size:1.25rem;padding:3px 9px;border-radius:10px}
/* very short phones */
@media (max-height:640px){
  body[data-ui=pro][data-phase=question] #app{gap:6px}
  body[data-ui=pro] .hud .ring{--rs:54px!important;width:54px;height:54px}
  body[data-ui=pro] .hud .mon-plot{height:28px}
  body[data-ui=pro][data-phase=question] .me small{display:none}
  body[data-ui=pro][data-phase=question] #app>.opts{grid-template-rows:repeat(4,minmax(46px,70px))}
  body[data-ui=pro][data-phase=question] .q{font-size:.98rem;padding:8px 12px}
}
body[data-ui=pro][data-phase=question] .q{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;max-height:34vh;min-height:0}

/* ---- compact fill / morph (question phase) ---- */
body[data-ui=pro][data-phase=question] .q{flex:none}
body[data-ui=pro][data-phase=question] .pans{min-height:46px;padding:8px;gap:6px;border-radius:14px}
body[data-ui=pro][data-phase=question] .pbank{gap:8px;margin:2px 0}
body[data-ui=pro][data-phase=question] .ptile{min-width:68px;padding:5px 10px;font-size:1.1rem}
body[data-ui=pro][data-phase=question] .pchip button{width:26px;height:30px}
body[data-ui=pro][data-phase=question] .pctl{margin:2px 0}
body[data-ui=pro][data-phase=question] .pctl .btn{padding:10px 14px;font-size:1rem;flex:1}
body[data-ui=pro][data-phase=question] .hearts{font-size:1.1rem;letter-spacing:2px;margin:-2px 0}
body[data-ui=pro][data-phase=question] .err{min-height:0}
body[data-ui=pro][data-phase=question] .bank{gap:6px}
body[data-ui=pro][data-phase=question] .pubar{margin-top:auto}
/* ---- reveal / finish: compact so the verdict, answer and rank are visible together ---- */
body[data-ui=pro] .state{gap:8px;padding:6px 0;font-size:1.25rem}
body[data-ui=pro] .state .big{font-size:3rem;line-height:1.1}
body[data-ui=pro] .state .big .vicon,body[data-ui=pro] .state .vicon{width:76px;height:76px;margin:0 auto}
body[data-ui=pro] .state .panel{padding:8px 14px}
body[data-ui=pro][data-phase=reveal] #app,body[data-ui=pro][data-phase=finished] #app{gap:10px;padding:calc(10px + var(--safe-t)) 12px calc(66px + var(--safe-b))}
body[data-ui=pro][data-phase=reveal] .me,body[data-ui=pro][data-phase=finished] .me{padding:6px 12px}
body[data-ui=pro][data-phase=reveal] .me .av{font-size:1.6rem}
@media (max-height:700px){
  body[data-ui=pro] .state .vicon{width:60px;height:60px}
  body[data-ui=pro] .state .pts{font-size:1.9rem}
  body[data-ui=pro] .rank-card{padding:8px 12px}
  body[data-ui=pro] .rank-card .rk{font-size:2rem;min-width:48px}
}

/* ---- join screen: slim header with a live (idle) monitor, avatars scroll, the Enter button stays on screen */
body[data-ui=pro] #app>h1{margin:0;font-size:1.5rem;text-shadow:0 0 18px #2dd4bf66}
body[data-ui=pro] #app>.mon .mon-plot{height:30px}
body[data-ui=pro] input.t{border-radius:16px;background:#0a1220cc}
body[data-ui=pro] input.t:focus{box-shadow:0 0 0 3px #2dd4bf33}
body[data-ui=pro] .avs button{transition:transform .15s var(--ease-spring),background .2s,border-color .2s}
body[data-ui=pro] .avs button:active:not(:disabled){transform:scale(.92)}
body[data-ui=pro] .avs button.sel{transform:scale(1.08);box-shadow:0 0 16px #2dd4bf66}
body[data-ui=pro] .joinbar{position:sticky;bottom:0;margin:0 -16px -96px;padding:10px 16px calc(14px + var(--safe-b));background:linear-gradient(180deg,#0b122000,#0b1220 38%);z-index:3}
body[data-ui=pro] .joinbar .err{min-height:1.2em;margin-bottom:6px}
body[data-ui=pro] .joinbar .btn{width:100%}

/* ---- bet screen ---- */
body[data-ui=pro][data-phase=bet] #app{gap:10px;padding:calc(10px + var(--safe-t)) 14px calc(66px + var(--safe-b))}
body[data-ui=pro][data-phase=bet] .me{padding:6px 12px}
body[data-ui=pro][data-phase=bet] .state{padding:0;gap:6px;font-size:1.1rem}
body[data-ui=pro][data-phase=bet] .state svg{width:76px!important;height:76px!important}
body[data-ui=pro][data-phase=bet] .rtop .ring{--rs:64px!important;width:64px;height:64px}
body[data-ui=pro][data-phase=bet] .betgrid{gap:8px}
body[data-ui=pro][data-phase=bet] .betgrid button{min-height:54px}

/* ---- player lobby: pulsing avatar, idle monitor, waiting dots ---- */
body[data-ui=pro][data-phase=lobby] #app{gap:12px}
body[data-ui=pro] .lobbyhero{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;gap:12px;padding:0}
.avring{position:relative;width:132px;height:132px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle,#2dd4bf22,#0000 70%)}
.avring .big{font-size:4.2rem;line-height:1;position:relative;z-index:1;animation:avfloat 3.2s ease-in-out infinite}
.avring i{position:absolute;inset:0;border-radius:50%;border:2px solid var(--ecg);opacity:0;animation:avping 2.4s var(--ease-out) infinite}
.avring i:nth-of-type(2){animation-delay:1.2s}
.dots b{display:inline-block;animation:dotup 1.2s infinite;font-weight:400}.dots b:nth-child(2){animation-delay:.2s}.dots b:nth-child(3){animation-delay:.4s}
@keyframes avfloat{50%{transform:translateY(-6px)}}
@keyframes avping{0%{transform:scale(.7);opacity:.7}100%{transform:scale(1.45);opacity:0}}
@keyframes dotup{0%,60%,100%{transform:none;opacity:.4}30%{transform:translateY(-4px);opacity:1}}
@media (prefers-reduced-motion:reduce){.avring .big,.avring i,.dots b{animation:none}.avring i{opacity:.25;transform:scale(1.1)}}

/* ---- multi-stage clinical case on phones: clues scroll in their own area (newest visible), points/next-clue bar stays visible,
        answers become a compact 2x2 grid so nothing is pushed under them ---- */
body[data-ui=pro][data-phase=question][data-qt=case] .q{max-height:17vh;font-size:.98rem;padding:8px 12px;flex:none}
body[data-ui=pro][data-phase=question][data-qt=case] .case{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;margin:0}
body[data-ui=pro][data-phase=question][data-qt=case] .clues{flex:1 1 auto;min-height:56px;overflow-y:auto;display:flex;flex-direction:column;gap:6px;overscroll-behavior:contain;scrollbar-width:thin;padding-inline-end:2px}
body[data-ui=pro][data-phase=question][data-qt=case] .clue{margin:0;padding:7px 11px;font-size:.92rem;line-height:1.55;gap:8px;flex:none;border-radius:12px}
body[data-ui=pro][data-phase=question][data-qt=case] .clue .cn{width:22px;height:22px;font-size:.8rem}
body[data-ui=pro][data-phase=question][data-qt=case] .casebar{flex:none;margin-top:6px;gap:6px}
body[data-ui=pro][data-phase=question][data-qt=case] .casebar .pill{font-size:.78rem;padding:4px 10px}
body[data-ui=pro][data-phase=question][data-qt=case] #app>.opts{flex:none;grid-template-columns:1fr 1fr;grid-template-rows:repeat(2,minmax(52px,64px));align-content:start}
body[data-ui=pro][data-phase=question][data-qt=case] .opts .tile{font-size:.98rem;padding:6px 10px;gap:8px}
body[data-ui=pro][data-phase=question][data-qt=case] .opts .tile .shape{width:24px;height:24px;flex:none}
@media (max-height:700px){body[data-ui=pro][data-phase=question][data-qt=case] .q{max-height:14vh;font-size:.9rem}body[data-ui=pro][data-phase=question][data-qt=case] .clue{font-size:.85rem;padding:6px 10px}}

/* ===== v2 premium layer: HUD, status steps, ranking sheet, join card ===== */
body[data-ui=pro] .me{background:var(--glass-bg);border:1px solid var(--bd-strong);border-radius:var(--r-card);box-shadow:var(--sh-1);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
body[data-ui=pro] .me .scn{font-family:var(--font-display);font-weight:400;font-variant-numeric:tabular-nums;display:inline-block;color:var(--primary)}
body[data-ui=pro] .me .scn.bump{animation:scbump .7s var(--ease)}
@keyframes scbump{40%{transform:scale(1.28);color:#fff;text-shadow:0 0 14px var(--primary)}}
/* connection / readiness steps */
.stp{list-style:none;display:flex;gap:6px;align-items:center;justify-content:center;margin:2px 0;padding:0;font-size:.82rem;color:var(--mut)}
.stp li{display:flex;align-items:center;gap:6px;padding:4px 10px;border-radius:99px;background:var(--surface-2);border:1px solid var(--bd)}
.stp li i{font-style:normal;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font-size:.7rem;background:#33466a;color:#fff}
.stp li.done{color:var(--success);border-color:rgba(53,211,154,.4)}.stp li.done i{background:var(--success);color:#04212b}
.stp li.now{color:var(--txt);border-color:rgba(25,211,197,.55)}.stp li.now i{background:var(--primary);color:#04212b;animation:stpulse 1.8s ease-in-out infinite}
@keyframes stpulse{0%,100%{box-shadow:0 0 0 0 rgba(25,211,197,.5)}50%{box-shadow:0 0 0 6px rgba(25,211,197,0)}}
/* ranking sheet */
.sheet{background:var(--surface);border:1px solid var(--bd-strong);border-bottom:0;box-shadow:0 -18px 50px rgba(0,0,0,.5)}
.sheet .r{background:var(--surface-2);border:1px solid var(--bd);border-radius:var(--r-sub);animation:rkin .4s var(--ease) both;animation-delay:calc(var(--i,0)*60ms + 120ms)}
.sheet .r.me{border-color:var(--primary);background:rgba(25,211,197,.12);box-shadow:0 0 0 1px var(--primary) inset}
.sheet .r:nth-of-type(1){box-shadow:inset 3px 0 0 #F5B942}.sheet .r:nth-of-type(2){box-shadow:inset 3px 0 0 #c4cbd8}.sheet .r:nth-of-type(3){box-shadow:inset 3px 0 0 #d9772b}
.sheet .r.me:nth-of-type(n){box-shadow:0 0 0 1px var(--primary) inset}
.sheet .r .sc{color:var(--primary);font-variant-numeric:tabular-nums}
@keyframes rkin{from{opacity:0;transform:translateY(12px)}}
/* join card */
body[data-ui=pro] #nm{background:var(--surface-2);border:1px solid var(--bd-strong);border-radius:var(--r-btn)}
body[data-ui=pro] .avs button{background:var(--surface-2);border:1px solid var(--bd);border-radius:var(--r-sub);transition:transform .15s var(--ease),border-color .15s}
body[data-ui=pro] .avs button.sel{border-color:var(--primary);box-shadow:0 0 0 2px rgba(25,211,197,.35);transform:scale(1.05)}
body[data-ui=pro] .avs button:disabled{opacity:.3}
/* team identity: glow in team colour on the HUD */
body[data-ui=pro] .me[style*="border-inline-start"]{box-shadow:var(--sh-1),inset 0 0 28px -18px currentColor}
@media (prefers-reduced-motion:reduce){body[data-ui=pro] .me .scn.bump,.stp li.now i,.sheet .r{animation:none!important}}
body[data-ui=pro] .rx button{min-width:44px;min-height:44px;padding:0 8px;cursor:pointer}
