.show-opening[hidden]{display:none}.show-opening{position:fixed;inset:0;z-index:80;overflow:hidden;background:#020714;color:#fff;display:grid;place-items:center;isolation:isolate}.stage-beam{position:absolute;top:-20%;height:120%;width:60%;background:linear-gradient(180deg,#e9ffffc0,#75ceff35 65%,transparent);clip-path:polygon(48% 0,52% 0,100% 100%,0 100%);transform-origin:50% 0;opacity:0;filter:blur(4px);z-index:-1}.beam-left{left:0;--swing:-20deg}.beam-right{right:0;--swing:20deg}.playing .stage-beam{animation:spotlight 4.3s ease-in-out both}.stage-floor{position:absolute;bottom:6%;width:85%;height:22%;border-radius:50%;background:radial-gradient(ellipse,#c2faff60,transparent 68%);opacity:0}.playing .stage-floor{animation:stageGlow 4.3s both}.opening-copy{text-align:center;opacity:0;padding:24px}.opening-copy small{font-size:11px;letter-spacing:4px;color:#bcf7ff}.opening-copy h2{font-size:clamp(24px,5vw,58px);letter-spacing:.1em;margin:24px 0}.opening-copy p{letter-spacing:.3em;color:#d3f0ff}.playing .opening-copy{animation:openingCopy 4.3s both}.opening-skip{position:absolute;right:24px;top:24px;background:#ffffff12;border:1px solid #c1eaff80;color:#fff;border-radius:0}.audience-lights{position:absolute;bottom:0;left:0;right:0;height:18%;opacity:0}.playing .audience-lights{animation:stageGlow 4.3s both}.audience-lights i{position:absolute;left:var(--x);bottom:var(--y);width:3px;height:22px;border-radius:3px;background:#9affff;box-shadow:0 0 14px #74dcff;animation:audienceSway .8s var(--delay) ease-in-out infinite alternate;transform-origin:bottom}@keyframes spotlight{0%,8%{opacity:0;transform:rotate(var(--swing))}22%{opacity:.8}58%{opacity:.7;transform:rotate(0)}75%,100%{opacity:0;transform:rotate(0)}}@keyframes stageGlow{0%,10%,78%,100%{opacity:0}25%,55%{opacity:.85}}@keyframes openingCopy{0%,17%{opacity:0;transform:translateY(12px)}32%,63%{opacity:1;transform:translateY(0)}78%,100%{opacity:0;transform:translateY(0)}}@keyframes audienceSway{to{transform:rotate(25deg)}}
#game{position:relative}.tap-burst{position:absolute;z-index:8;width:1px;height:1px;pointer-events:none;color:#cfffff}.tap-burst i{position:absolute;left:-70px;top:-70px;width:140px;height:140px;border:3px solid currentColor;border-radius:50%;box-shadow:0 0 18px #acffff75;animation:tapWave .6s ease-out both}.tap-burst i:nth-child(2){animation-delay:.08s;border-width:1px}.tap-burst b{position:absolute;left:-18px;top:-25px;font-size:40px;animation:tapStar .45s both}.tap-burst.perfect{color:#fff6bc}.tap-burst.good{color:#aeffff}.tap-burst.bad{color:#c9e1ff}.tap-burst.extra{color:#94bddb}.tap-burst.extra i{border-width:1px;width:70px;height:70px;left:-35px;top:-35px}.tap-burst.extra b{display:none}@keyframes tapWave{from{opacity:1;transform:scale(.15)}to{opacity:0;transform:scale(1.3)}}@keyframes tapStar{from{opacity:1;transform:scale(.5) rotate(-30deg)}to{opacity:0;transform:scale(1.6) rotate(30deg)}}@media(prefers-reduced-motion:reduce){.stage-beam,.stage-floor,.audience-lights{display:none}.playing .opening-copy{animation:none;opacity:1}.tap-burst{display:none}}

/* Opening countdown and bolder drum-like impact, retaining PiXMiX colors. */
.opening-count{position:absolute;inset:0;display:grid;place-items:center;font-size:clamp(90px,20vw,240px);font-weight:950;font-style:italic;letter-spacing:-.055em;color:#fff;text-shadow:0 0 45px #67dbff70;pointer-events:none}.counting .opening-copy{visibility:hidden}
.tap-burst i{left:-100px;top:-100px;width:200px;height:200px;border-width:12px;box-shadow:0 0 30px currentColor,inset 0 0 16px currentColor;animation:bigImpact .65s cubic-bezier(.12,.7,.2,1) both}.tap-burst i:nth-child(2){border-width:5px;animation-delay:.05s}.tap-burst i:nth-child(3){border-width:2px;animation-delay:.1s}.tap-burst b{left:-40px;top:-58px;font-size:90px;text-shadow:0 0 25px currentColor;animation:impactStar .5s ease-out both}.tap-burst em{position:absolute;width:10px;height:27px;border-radius:8px;background:currentColor;box-shadow:0 0 12px currentColor;animation:impactParticle .65s ease-out both;transform-origin:center}.tap-burst.perfect{color:#ffdf71}.tap-burst.good{color:#67edff}.tap-burst.bad{opacity:.65}.tap-burst.extra i{box-shadow:none;animation:tapWave .45s ease-out both}.tap-burst.extra em,.tap-burst.extra i:nth-child(3){display:none}
@keyframes bigImpact{0%{opacity:1;transform:scale(.15)}25%{opacity:.95}100%{opacity:0;transform:scale(1.9)}}
@keyframes impactStar{0%{opacity:1;transform:scale(.25) rotate(-25deg)}35%{opacity:1;transform:scale(1.25) rotate(0)}100%{opacity:0;transform:scale(1.6) rotate(25deg)}}
@keyframes impactParticle{0%{opacity:1;transform:rotate(var(--angle)) translateY(-20px) scale(.3)}30%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateY(calc(-1 * var(--travel))) scale(.65)}}
@media(prefers-reduced-motion:reduce){.tap-burst{display:none}.opening-count{text-shadow:none}}
