/* First Player 3 — keep every colour visible and give the winner a proper ceremony. */
#first .f3-headline{margin:0 0 13px;text-align:center;padding:10px 12px 12px;border-radius:14px;background:linear-gradient(130deg,#1a3441,#142532);border:1px solid #6ac9ca35;color:#fff2db;min-height:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
#first .f3-headline strong{font:normal clamp(24px,5vw,39px)/1.12 Georgia,serif;letter-spacing:-.025em;text-wrap:balance}
#first .f3-headline span{font-size:12px;line-height:1.45;color:#c4e0df;text-wrap:balance}
#first .f3-headline.is-winner{background:linear-gradient(120deg,#254838,#233f47 48%,#443521);border-color:#e6c28c94;box-shadow:0 4px 22px #e7bb6130, inset 0 1px #fff3d215}
#first .f3-headline.is-winner strong{color:#ffe6a5;text-shadow:0 0 20px #e9bb6555;font-size:clamp(30px,6vw,46px)}
#first .f2-orbit{top:76px;right:14px;left:auto;width:84px;height:84px;transform:none;z-index:7;box-shadow:0 2px 19px #0008,0 0 18px #ffe2af18}
#first .f2-orbit:before{inset:5px}
#first .f2-orbit strong{font-size:47px}
#first .f2-orbit small{font-size:8px;bottom:8px;letter-spacing:.04em}
#first .stage-caption{background:#04141fd8;border-radius:11px;padding:8px 11px;min-height:54px}
#first .stage-caption b{font-size:clamp(16px,3vw,23px)}
#first .f3-large-group{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid var(--line);background:var(--panel2);border-radius:13px;margin:13px 0 6px;padding:13px}
#first .f3-large-group>div:first-child{max-width:260px}
#first .f3-large-group strong{font-size:13px;color:var(--ink)}
#first .f3-large-group p{margin-top:4px;font-size:11px;line-height:1.45;color:var(--mute)}
#first .f3-group-controls{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
#first .f3-group-controls>button{min-width:42px;min-height:43px;padding:8px 10px;border-radius:9px;background:var(--panel);color:var(--ink);border:1px solid var(--line);font-weight:700}
#first .f3-group-controls>strong{min-width:20px;text-align:center;font-size:20px;font-family:Georgia,serif}
#first .f3-group-controls>#f3GroupStart{background:linear-gradient(130deg,#daba7f,#d5a75d);color:#272014;border-color:#f1d6a1;font-size:12px}
/* One continuous little celebration: soft falling colour and a chosen-colour bloom. */
#first .f3-celebration{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:6}
#first .f3-celebration .f3-firework{position:absolute;width:6px;height:6px;background:var(--c,#ffce76);border-radius:50%;box-shadow:0 0 12px var(--c,#ffce76);animation:f3Firework 1.95s cubic-bezier(.14,.73,.24,1) both}
@keyframes f3Firework{
  0%{opacity:0;transform:translate(0,0) scale(.35)}
  12%{opacity:.85;transform:translate(calc(var(--dx)*.12),calc(var(--dy)*.12)) scale(1)}
  70%{opacity:.53}
  100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.1)}
}
#first .stage-confetti .confetto.f3-drift{width:7px;height:11px;border-radius:2px;opacity:.86;filter:drop-shadow(0 0 2px var(--cc))}
#first .f2-glow{
  background:radial-gradient(circle,color-mix(in srgb,var(--winner-glow,#f0c780),transparent 49%),transparent 71%);
  width:240px;height:240px;animation:f3Spotlight 2.1s ease-out both
}
@keyframes f3Spotlight{
  0%{opacity:0;scale:.42}
  17%{opacity:1;scale:.78}
  56%{opacity:.48;scale:1.15}
  100%{opacity:0;scale:1.52}
}
/* No perpetual strobe. Multi-player results hold a steady glow. */
#first .touch-disc.winner{animation:none;filter:brightness(1.09);box-shadow:0 0 0 14px color-mix(in srgb,var(--c),transparent 83%),0 0 66px color-mix(in srgb,var(--c),transparent 24%),inset 0 -11px 20px #0003}
#first .touch-disc.winner:after{animation:none;opacity:.36}
#first .touch-stage.single-winner .touch-disc.winner{animation:f3WinnerGlow 2.45s ease-in-out both}
#first .touch-stage.single-winner .touch-disc.winner:after{animation:f3WinnerRing 2.45s ease-out both}
@keyframes f3WinnerGlow{
  0%{filter:brightness(1.12);box-shadow:0 0 0 8px color-mix(in srgb,var(--c),transparent 76%),0 0 38px var(--c),inset 0 -11px 20px #0003}
  14%{filter:brightness(1.48);box-shadow:0 0 0 27px color-mix(in srgb,var(--c),transparent 74%),0 0 110px var(--c),inset 0 -11px 20px #0003}
  31%{filter:brightness(1.15);box-shadow:0 0 0 17px color-mix(in srgb,var(--c),transparent 85%),0 0 69px var(--c),inset 0 -11px 20px #0003}
  47%{filter:brightness(1.34);box-shadow:0 0 0 24px color-mix(in srgb,var(--c),transparent 80%),0 0 96px var(--c),inset 0 -11px 20px #0003}
  69%{filter:brightness(1.13);box-shadow:0 0 0 16px color-mix(in srgb,var(--c),transparent 85%),0 0 68px var(--c),inset 0 -11px 20px #0003}
  100%{filter:brightness(1.09);box-shadow:0 0 0 14px color-mix(in srgb,var(--c),transparent 83%),0 0 66px color-mix(in srgb,var(--c),transparent 24%),inset 0 -11px 20px #0003}
}
@keyframes f3WinnerRing{
  0%{opacity:.08;transform:scale(.7)}
  18%{opacity:.9;transform:scale(1.28)}
  39%{opacity:.17;transform:scale(1.5)}
  54%{opacity:.65;transform:scale(1.55)}
  100%{opacity:.22;transform:scale(1.8)}
}
#first .f3-headline.is-winner{
  border-color:color-mix(in srgb,var(--winner-glow,#e6c28c),#e6c28c 42%);
  box-shadow:0 4px 28px color-mix(in srgb,var(--winner-glow,#e6c28c),transparent 79%),inset 0 1px #fff3d215;
  animation:f3WinReveal .82s cubic-bezier(.18,.9,.22,1) both
}
@keyframes f3WinReveal{0%{transform:scale(.982);filter:brightness(1.18)}100%{transform:none;filter:none}}
@media(max-width:640px){
 #first .f3-large-group{flex-direction:column;align-items:stretch}
 #first .f3-large-group>div:first-child{max-width:none}
 #first .f3-group-controls{justify-content:space-between}
 #first .f3-headline{min-height:79px;margin-bottom:9px}
 #first .f2-orbit{top:76px;right:10px;width:73px;height:73px}
 #first .f2-orbit strong{font-size:41px}
 #first .f2-orbit small{font-size:7px;bottom:7px}
}
@media(prefers-reduced-motion:reduce){
 #first .f3-headline.is-winner,#first .f3-celebration .f3-firework,
 #first .f3-drift,#first .f2-glow,#first .touch-stage.single-winner .touch-disc.winner,
 #first .touch-stage.single-winner .touch-disc.winner:after{animation:none!important}
}
.shortcut-dialog{border:1px solid #dcb98266;border-radius:20px;background:#13222d;color:#f8f0de;width:min(calc(100% - 30px),415px);padding:22px 22px 20px;box-shadow:0 25px 90px #000b}
.shortcut-dialog::backdrop{background:#000b;backdrop-filter:blur(3px)}
.shortcut-dialog h2{font:normal 27px Georgia,serif;margin:7px 0 12px}
.shortcut-dialog p{line-height:1.55;font-size:14px;color:#e6e0d4}
.shortcut-dialog .shortcut-note{margin:12px 0 16px;color:#bec9cf;font-size:12px}
.shortcut-dialog .shortcut-close{float:right;background:transparent;color:#f9e6bb;border:0;min-height:34px;min-width:34px}
.shortcut-dialog .button{width:100%}
