/* v2.5 play screen finish: display type for the numbers, graded light on every
   judgement, and a gauge that turns gold once the song is being cleared.
   Layout, hit boxes and timing are untouched. */
.game-screen{background:#05060f}
.stage-shade::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(120% 90% at 50% 45%,transparent 52%,#02030ab3 100%)}

/* ---------- HUD ---------- */
#hud .score-h small{letter-spacing:.2em;color:#e7d3a6}
#hud .score-h b{font:400 clamp(21px,5.5cqw,25px)/23px TicketDisplay,Impact,sans-serif;letter-spacing:.06em;font-variant-numeric:tabular-nums;
  color:#fff4c4;text-shadow:0 2px 0 #5a3410,0 0 12px #ffcf7966,0 2px 4px #000;transform-origin:100% 60%}
.landscape #hud .score-h b{font-size:22px;line-height:26px}
#hud .mode-badge{padding:0 7px;border:1px solid #ffffff38;border-radius:9px;background:#05061299;letter-spacing:.06em;font-weight:800;color:var(--tier,#ebd2a3)}
#hud .mode-badge span{border-left-color:#ffffff40;color:#fff}
.game-screen[data-tier=EASY]{--tier:var(--tier-easy)}.game-screen[data-tier=NORMAL]{--tier:var(--tier-normal)}.game-screen[data-tier=HARD]{--tier:var(--tier-hard)}
.game-screen[data-tier=HELL]{--tier:var(--tier-hell)}.game-screen[data-tier=CHAOS]{--tier:var(--tier-chaos)}.game-screen[data-tier=LUNATIC]{--tier:#ffd0ec}
.landscape #hud .mode-badge{padding:0 6px}
#hud .gauge i{position:relative;overflow:hidden;transition:width .14s ease-out,background .3s}
#hud .gauge i::after{content:"";position:absolute;top:0;bottom:0;left:0;width:46px;transform:translateX(-60px) skewX(-22deg);
  background:linear-gradient(90deg,transparent,#ffffffd9,transparent);animation:gauge-sheen 2.2s linear infinite}
@keyframes gauge-sheen{to{transform:translateX(420px) skewX(-22deg)}}
.gauge-clear #hud .gauge i{background:linear-gradient(#fffbe2 0%,#ffe27c 24%,#f1a83a 54%,#ffd766 78%,#fff5c0 100%);box-shadow:inset 0 1px 2px #fff,0 0 10px #ffd36ad9,0 0 22px #ff9f3a73}
.gauge-clear #hud #gauge-value{color:#fff3ae;text-shadow:0 0 9px #ffcf5a}
.gauge-clear #hud .gauge-target{color:#fff;text-shadow:0 0 8px #ffcf5a}
.fever-on #hud .gauge i{background:linear-gradient(90deg,#ff82ba,#ffc665,#fff3a8,#75f6de,#8fb4ff,#ff82ba);background-size:200% 100%;animation:rainbow-run 1.4s linear infinite;box-shadow:inset 0 1px 2px #fff,0 0 14px #ffe189}
.in-danger #hud .gauge-housing{animation:gauge-alarm .7s ease-in-out infinite}
@keyframes gauge-alarm{50%{filter:drop-shadow(0 0 8px #ff3d5e) brightness(1.15)}}
#hud #pause:before{border-radius:14px;border-color:#f6d18ecc;background:linear-gradient(160deg,#2a2f6acc,#0a0c22e6);box-shadow:inset 0 1px 0 #ffffff40,0 4px 12px #0009}
#hud #pause:active:before{background:#f6d18e66}
#song-progress{font-weight:750;letter-spacing:.08em}
#song-progress>div{height:4px;border-radius:4px;overflow:hidden}
#song-progress i{border-radius:4px}

/* ---------- Judgement and combo ---------- */
#hit-feedback #judgement{font:400 clamp(32px,9.4cqw,44px)/38px TicketDisplay,Impact,sans-serif;font-style:italic;letter-spacing:.05em;
  -webkit-text-stroke:0;text-shadow:none;background:linear-gradient(180deg,#fff 12%,var(--hit-ink) 56%,#fff 96%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  filter:drop-shadow(0 2px 0 #0a1220) drop-shadow(0 0 7px var(--hit-glow))}
#hit-feedback[data-grade=perfect] #judgement{background-image:linear-gradient(180deg,#fffef4 14%,#ffe680 44%,#ff9d2e 56%,#fff0a6 92%)}
#hit-feedback[data-grade=great] #judgement{background-image:linear-gradient(180deg,#f2fffb 14%,#7af9d6 46%,#12b592 58%,#c4ffee 92%)}
#hit-feedback[data-grade=good] #judgement{background-image:linear-gradient(180deg,#f1f8ff 14%,#84c8ff 46%,#2d7fe6 58%,#d2e8ff 92%)}
#hit-feedback[data-grade=bad] #judgement{background-image:linear-gradient(180deg,#fff3ea 14%,#ffa878 46%,#e25a2c 58%,#ffd8c4 92%)}
#hit-feedback[data-grade=miss] #judgement{background-image:linear-gradient(180deg,#fff0f4 14%,#ff86a8 46%,#d92f62 58%,#ffc9d8 92%)}
#hit-feedback #judgement:after{left:12%;right:12%;height:2px;border-radius:2px}
.landscape #hit-feedback #judgement{font-size:clamp(31px,4.1cqw,40px)}
#hit-feedback #combo{gap:7px;padding:0 10px}
#hit-feedback #combo b{padding:.05em .08em .12em;font:400 clamp(25px,7cqw,30px)/1 TicketDisplay,Impact,sans-serif;font-style:italic;letter-spacing:.03em;color:#fff;text-shadow:0 2px 0 #0a1220,0 0 10px var(--hit-glow)}
#hit-feedback #combo small{font-size:9px;letter-spacing:.2em;color:#fff1cf}
.landscape #hit-feedback #combo b{font-size:27px}.landscape #hit-feedback #combo small{font-size:9px}
#hit-feedback #combo.fc-alive b{background:linear-gradient(180deg,#fffdf0 16%,#ffe07a 52%,#ff9d2e 64%,#fff0a6 94%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  text-shadow:none;filter:drop-shadow(0 2px 0 #5a3a10) drop-shadow(0 0 9px #ffc94d)}
.combo-slot{height:32px;margin-top:1px}
#combo-burst{top:-40px;font-size:clamp(24px,7.4cqw,40px)}
#combo-burst.big{font-size:clamp(30px,9.6cqw,52px);background-size:200% 100%;animation:rainbow-run 1s linear infinite}
#judge-ring{border-width:2px;box-shadow:0 0 14px var(--hit-glow),inset 0 0 10px var(--hit-glow)}
.judge-spark{width:8px;height:8px}
#timing-hint{top:-16px;font-size:12px}

/* ---------- Count-in, GO and FEVER ---------- */
#count-in{top:50%;min-width:118px;padding:14px 22px 16px;border:1px solid transparent;border-radius:26px;
  background:linear-gradient(165deg,#1d2150f2,#0a0c22f7) padding-box,linear-gradient(150deg,#f8dc98,#f6d48a33 40%,#2fe6ff55 70%,#ff3d9a99) border-box;
  box-shadow:0 18px 50px #000b,0 0 34px #7a3dff40}
#count-in span{font-size:10px;font-weight:800;letter-spacing:.34em;text-indent:.34em;color:var(--gold-2)}
#count-in b{margin-top:2px;font:400 64px/1 TicketDisplay,Impact,sans-serif;color:#fff;text-shadow:0 4px 0 #5a3410,0 0 22px #ffcf79;transform-origin:50% 60%}
.landscape #count-in b{font-size:58px}
.go-pop{font-size:clamp(64px,22cqw,120px);letter-spacing:.08em;color:transparent;background:linear-gradient(180deg,#fffef4 14%,#ffe680 46%,#ff9d2e 58%,#fff0a6 94%);-webkit-background-clip:text;background-clip:text;
  text-shadow:none;filter:drop-shadow(0 5px 0 #6b3f16) drop-shadow(0 0 24px #ffb23ccc)}
.landscape .go-pop{font-size:clamp(64px,13cqw,130px)}
#fever-banner{letter-spacing:.12em}
.fever-on::after{box-shadow:inset 6px 0 26px #ff629380,inset -6px 0 26px #70f7e780,inset 0 0 60px #ffd36a26;animation:fever-edge 1s ease-in-out infinite}
@keyframes fever-edge{50%{opacity:.55}}

/* ---------- Keys ---------- */
.pad.down::before{box-shadow:0 0 34px var(--ink),0 0 10px #fff}
.pad.down img{filter:brightness(1.95) saturate(1.35) drop-shadow(0 0 16px var(--ink))}

/* ---------- Stage intro card ---------- */
.intro-card{border:1px solid transparent;border-radius:18px;background:linear-gradient(110deg,#141840f5,#0a0c22f2) padding-box,linear-gradient(120deg,#f8dc98,#f6d48a33 45%,#ff3d9a99) border-box;box-shadow:0 16px 46px #000c,0 0 30px #f6d48a33}
.intro-card img{border-radius:11px;box-shadow:0 0 0 2px #fff6,0 6px 16px #000a}
.intro-card small{color:var(--gold-2)}
.intro-card strong{font-weight:850}
.intro-card b{font-size:18px;color:var(--tier,#ffd77e)}
.stage-intro[data-tier=EASY]{--tier:var(--tier-easy)}.stage-intro[data-tier=NORMAL]{--tier:var(--tier-normal)}.stage-intro[data-tier=HARD]{--tier:var(--tier-hard)}
.stage-intro[data-tier=HELL]{--tier:var(--tier-hell)}.stage-intro[data-tier=CHAOS]{--tier:var(--tier-chaos)}

/* Light effects: keep the glow modest. */
.fx-lite #hit-feedback #judgement{filter:drop-shadow(0 2px 0 #0a1220)}
.fx-lite #hud .gauge i::after,.fx-lite .fever-on::after{animation:none}
@media(prefers-reduced-motion:reduce){
  #hud .gauge i::after,.in-danger #hud .gauge-housing,.fever-on::after,#combo-burst.big,.fever-on #hud .gauge i{animation:none!important}
  #hud .gauge i{transition:none}
}
