.rhythm-game{--rhythm-accent: #ffb46b;--rhythm-light: #fff4df;--rhythm-scene: #763748;--rhythm-dark: #20162c;display:grid;grid-template-rows:auto 1fr auto;gap:clamp(.65rem,2vh,1.4rem);width:min(100%,76rem);min-height:100svh;margin-inline:auto;padding:clamp(.65rem,2.5vw,1.75rem);isolation:isolate}.rhythm-game[data-scene=rope]{--rhythm-accent: #ffd262;--rhythm-scene: #435429}.rhythm-game[data-scene=swim]{--rhythm-accent: #9cecff;--rhythm-scene: #284f78}.rhythm-game[data-scene=march]{--rhythm-accent: #cce69b;--rhythm-scene: #354e40}.rhythm-game[data-scene=circus]{--rhythm-accent: #ffabe2;--rhythm-scene: #673765}.rhythm-game[data-scene=drum]{--rhythm-scenery: conic-gradient(from 155deg at 18% -8%, transparent 0deg, rgb(255 183 90 / 15%) 5deg 29deg, transparent 34deg), conic-gradient(from 172deg at 82% -8%, transparent 0deg, rgb(255 183 90 / 15%) 5deg 29deg, transparent 34deg)}.rhythm-game[data-scene=rope]{--rhythm-scenery: radial-gradient(110% 60% at 18% 113%, rgb(138 184 89 / 30%) 48%, transparent 48.5%), radial-gradient(100% 54% at 85% 105%, rgb(138 184 89 / 25%) 49%, transparent 49.5%)}.rhythm-game[data-scene=swim]{--rhythm-scenery: repeating-radial-gradient(ellipse at 50% 116%, transparent 0 1.35rem, rgb(147 231 255 / 16%) 1.4rem 1.65rem, transparent 1.7rem 2.3rem)}.rhythm-game[data-scene=march]{--rhythm-scenery: linear-gradient(0deg, rgb(171 142 95 / 28%) 0 19%, rgb(230 224 179 / 21%) 19% 20%, transparent 20%), repeating-linear-gradient(90deg, transparent 0 8%, rgb(206 230 163 / 9%) 8% 11%, transparent 11% 15%)}.rhythm-game[data-scene=circus]{--rhythm-scenery: repeating-conic-gradient(from -8deg at 50% -8%, rgb(255 176 228 / 17%) 0 14deg, transparent 14deg 29deg)}.rhythm-modes{display:flex;gap:.3rem;padding:.3rem;border-radius:.8rem;background:var(--arcade-tint)}.rhythm-modes a{flex:1;border-radius:.55rem;padding:.55rem .25rem;text-align:center;font-size:.8rem;font-weight:750;text-decoration:none}html[lang=ko] .rhythm-modes a{white-space:nowrap;font-size:.75rem;padding-inline:.08rem}.rhythm-modes [aria-current]{background:var(--rhythm-dark);color:var(--rhythm-light)}.rhythm-game dt{font-size:.72rem;font-weight:650}.rhythm-game dd{font-variant-numeric:tabular-nums;font-size:1.2rem;font-weight:850}.rhythm-practice-list{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.8rem}.rhythm-practice-list [aria-pressed=true]{background:var(--rhythm-accent);color:var(--rhythm-dark)}.rhythm-stage-picker{margin-top:1rem}.rhythm-stage-picker summary{cursor:pointer;font-weight:750;padding-block:.5rem}.rhythm-stages{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.25rem;padding:.2rem;max-height:11.5rem;overflow:auto}.rhythm-stages button{min-height:2.6rem;border-radius:.55rem;background:var(--arcade-tint);font-weight:750;cursor:pointer}.rhythm-stages button[aria-pressed=true]{background:var(--rhythm-dark);color:var(--rhythm-light)}.rhythm-game button:disabled{cursor:default;opacity:.48}.rhythm-arena{position:relative;display:grid;grid-template-rows:auto 1fr auto;overflow:hidden;min-height:clamp(24rem,73svh,56rem);border:3px solid #211629;border-radius:clamp(1.15rem,3vw,2rem);background:var(--rhythm-scenery, none),radial-gradient(ellipse at 50% 49%,#465268 0%,#263143 52%,transparent 74%),linear-gradient(165deg,#1a2437,#10182a);color:var(--rhythm-light);box-shadow:0 .45rem #211629}.rhythm-small,.rhythm-primary{display:inline-flex;justify-content:center;align-items:center;gap:.3rem;min-height:2.75rem;padding:.45rem .85rem;border:1px solid currentColor;border-radius:999px;font-weight:800;cursor:pointer;font-size:.85rem}.rhythm-primary{background:var(--rhythm-accent);color:var(--rhythm-dark);border:2px solid var(--rhythm-dark);box-shadow:0 .25rem #211629;padding-inline:1.25rem}.rhythm-small:hover:not(:disabled){background:#ffffff21}.rhythm-game :is(button,a,summary):focus-visible{outline:2px solid #00a9cb;outline-offset:2px}.rhythm-pad,.rhythm-center{display:grid;justify-items:center;align-content:center;gap:.85rem;width:100%;padding:.6rem .8rem;text-align:center}.rhythm-pad{touch-action:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent}.rhythm-pad:focus-visible{outline-offset:-4px!important}.rhythm-game[data-phase=playing]{user-select:none}.rhythm-game[data-phase=playing] .rhythm-arena{touch-action:none}.rhythm-cue-text{min-height:1.5em;color:var(--rhythm-light);font-size:clamp(1.05rem,2.5vw,1.6rem);font-weight:900}.rhythm-feedback{z-index:1;display:flex;align-items:baseline;justify-content:center;gap:.45rem;background:#211629;min-width:6.5rem;min-height:2.5rem;border-radius:999px;padding:.4rem .75rem;font-weight:900}.rhythm-feedback[data-judgement=perfect]{color:#d7fda2}.rhythm-feedback[data-judgement=miss],.rhythm-feedback[data-judgement=extra]{color:#ffbdd0}.rhythm-feedback small{font-variant-numeric:tabular-nums}.rhythm-center h2{font-size:clamp(1.25rem,3.5vw,2.2rem);font-weight:900}.rhythm-illustration{display:grid;place-items:center;aspect-ratio:1;width:clamp(6rem,23vmin,12rem);border-radius:32% 45% 33% 48%;border:1px solid #768094;background:#303c50;padding:clamp(.8rem,2vw,1.6rem);box-shadow:.36rem .5rem #182033}.rhythm-center p{max-width:25rem}.rhythm-result{justify-content:center;margin-top:0}.rhythm-result div{border-radius:.65rem;background:#211629;padding:.4rem .6rem}@media(prefers-reduced-motion:reduce){.rhythm-stick-body{transition:none!important;transform:none!important}}.rhythm-tap-marker{position:fixed;z-index:30;width:2.8rem;aspect-ratio:1;border:3px solid white;border-radius:50%;box-shadow:0 0 0 2px #221b2d,inset 0 0 0 2px #221b2d;pointer-events:none;animation:rhythm-touch .56s ease-out forwards}.rhythm-tap-marker[data-judgment=hit],.rhythm-tap-marker[data-judgment=perfect]{border-color:#d7ffa5}.rhythm-tap-marker[data-judgment=extra],.rhythm-tap-marker[data-judgment=miss]{border-color:#ffc2d5}@keyframes rhythm-touch{0%{transform:translate(-50%,-50%) scale(.66);opacity:1}40%{opacity:1}to{transform:translate(-50%,-50%) scale(1.2);opacity:0}}@media(prefers-reduced-motion:reduce){.rhythm-tap-marker{transform:translate(-50%,-50%);animation-name:rhythm-touch-fade}@keyframes rhythm-touch-fade{0%,45%{opacity:1}to{opacity:0}}}.rhythm-input-log{padding:.35rem .65rem;border:1px solid var(--arcade-border);border-radius:.75rem;background:var(--arcade-surface);font-size:.75rem;color:var(--arcade-ink)}.rhythm-input-log summary{cursor:pointer;font-weight:750;padding-block:.2rem}.rhythm-input-log summary span{margin-inline-start:.25rem;font-variant-numeric:tabular-nums}.rhythm-input-log pre{overflow:auto;max-height:9rem;margin-block:.45rem;user-select:text;touch-action:auto}.rhythm-game[data-scene=drum]{--paper: #fff3d9;--floor: #ffd68f;--prop: #e6884b}.rhythm-game[data-scene=rope]{--paper: #e5f5df;--floor: #b8e2aa;--prop: #269e69}.rhythm-game[data-scene=swim]{--paper: #dff7fa;--floor: #a2e0ef;--prop: #46bddc}.rhythm-game[data-scene=march]{--paper: #edf2df;--floor: #cbd5ab;--prop: #7c9b60}.rhythm-game[data-scene=circus]{--paper: #ffebef;--floor: #f8becb;--prop: #ec718f}.rhythm-game .rhythm-arena{--rhythm-light: #262132;--rhythm-accent: #573998;border:2px solid #30263a;border-radius:1rem;color:#262132;background:repeating-linear-gradient(90deg,transparent 0 39px,#422e5710 39px 40px),linear-gradient(180deg,var(--paper) 0 52%,var(--floor) 52% 100%);box-shadow:0 .28rem #30263a}.rhythm-game[data-phase=playing] .rhythm-arena{min-height:72svh}.rhythm-pad{grid-template-rows:1fr auto auto;align-content:stretch}.rhythm-lineup{display:grid;width:min(100%,62rem);gap:clamp(.08rem,1vw,.7rem);align-items:end;align-self:center;padding-block:1rem;border-block-end:3px solid #30263a}.rhythm-performer{display:grid;justify-items:center;gap:.2rem;min-width:0}.rhythm-stick{display:block;width:100%;max-width:8rem;overflow:visible}.rhythm-stick-body{stroke:#2a2032;fill:none;stroke-width:4.3;stroke-linecap:round;stroke-linejoin:round;transition:transform .1s ease-out}.rhythm-stick-shadow{fill:#28203228}.rhythm-prop{fill:var(--prop);stroke:#30263a;stroke-width:3;stroke-linejoin:round}.rhythm-prop[fill=none]{fill:none}.rhythm-stick-sparks{fill:none;stroke:#7553bb;stroke-width:3;stroke-linecap:round;opacity:0}.rhythm-stick-action{display:none}.rhythm-performer[data-active] .rhythm-stick-body{transform:translateY(-5px)}.rhythm-performer[data-active] :is(.rhythm-stick-action,.rhythm-stick-sparks){display:initial;opacity:1}.rhythm-performer[data-active] .rhythm-stick-rest{display:none}.rhythm-performer-label{min-width:1.65rem;padding:.12rem .25rem;border-radius:.35rem;font-size:clamp(.65rem,2vw,.88rem);font-weight:850;background:#fff9eb}.rhythm-performer[data-player] .rhythm-performer-label{background:#573998;color:#fff}.rhythm-feedback{color:#fff9ec}.rhythm-illustration{border:0;background:transparent;box-shadow:none}.rhythm-game[data-scene=rope] .rhythm-arena{background:radial-gradient(circle at 83% 22%,#ffdf77 0 1.8rem,transparent 1.85rem),linear-gradient(180deg,var(--paper) 0 54%,var(--floor) 54% 100%)}.rhythm-game[data-scene=swim] .rhythm-arena{background:repeating-linear-gradient(0deg,transparent 0 1.8rem,#2789ad14 1.8rem 1.93rem),linear-gradient(180deg,var(--paper) 0 44%,var(--floor) 44% 100%)}.rhythm-game[data-scene=circus] .rhythm-arena{background:repeating-linear-gradient(115deg,#e4719220 0 2.5rem,transparent 2.5rem 5rem),linear-gradient(180deg,var(--paper) 0 52%,var(--floor) 52% 100%)}.rhythm-game .hoops-ranking,.rhythm-ranking-result{margin-block:.9rem;padding:.85rem;border:1px solid var(--arcade-border);border-radius:.75rem;background:var(--arcade-surface);color:var(--arcade-ink)}.rhythm-game .hoops-ranking h2{font-weight:850}.rhythm-game .hoops-switch,.rhythm-ranking-result form{display:flex;flex-wrap:wrap;align-items:end;gap:.5rem;margin-block:.5rem}.rhythm-game .hoops-switch button{padding:.35rem .65rem;border:1px solid currentColor;border-radius:.4rem}.rhythm-game .hoops-switch button[aria-pressed=true]{color:#fff;background:#573998}.rhythm-game .hoops-table{overflow-x:auto}.rhythm-game .hoops-table table{width:100%;text-align:left}.rhythm-game .hoops-table :is(th,td){white-space:nowrap;padding:.35rem;border-bottom:1px solid var(--arcade-border)}.rhythm-ranking-result label{display:grid;gap:.2rem;text-align:left;font-size:.85rem}.rhythm-ranking-result input{min-width:0;max-width:100%;border:1px solid currentColor;padding:.35rem;border-radius:.35rem}.rhythm-performer[data-active] .rhythm-stick-body{transform:none}.rhythm-ring,.rhythm-water-splash{fill:none;stroke:#30263a;stroke-width:3;stroke-linecap:round}.rhythm-ring .rhythm-prop{stroke:#ab3861;stroke-width:4}.rhythm-water-splash{opacity:0;stroke:#147a9e}.rhythm-rope-loop{transform-origin:38px 61px;transform:scaleY(-1.13);stroke:#19794e;stroke-width:3.5}.rhythm-stick[data-action=swim] .rhythm-stick-body{transform:translateY(24px)}.rhythm-stick[data-action=circus] .rhythm-stick-body{transform-origin:38px 59px;transform:translate(-24px) scale(.63)}.rhythm-performer[data-landed] .rhythm-stick[data-action=circus] .rhythm-stick-body{transform:translate(29px) scale(.63)}.rhythm-performer[data-active] [data-action=rope] .rhythm-stick-body{animation:rhythm-rope-jump .27s ease-in-out both}.rhythm-performer[data-active] .rhythm-rope-loop{animation:rhythm-rope-swing .27s linear both}.rhythm-performer[data-active] [data-action=swim] .rhythm-stick-body{animation:rhythm-swim-rise .27s ease-out both}.rhythm-performer[data-active] .rhythm-water-splash{animation:rhythm-water-splash .27s ease-out both}.rhythm-performer[data-active] .rhythm-drumhead{transform-origin:38px 94px;animation:rhythm-drum-strike .27s ease-out both}.rhythm-performer[data-active] [data-action=march] .rhythm-stick-body{animation:rhythm-march-step .27s ease-in-out both}.rhythm-performer[data-active] [data-action=circus] .rhythm-stick-body{animation:rhythm-circus-leap .27s ease-in-out both}@keyframes rhythm-rope-jump{0%,36%,to{transform:none}60%,67%{transform:translateY(-16px)}}@keyframes rhythm-rope-swing{0%,12%,to{transform:scaleY(-1.13)}38%{transform:scaleY(.02)}62%{transform:scaleY(1.12)}84%{transform:scaleY(0);opacity:.55}}@keyframes rhythm-swim-rise{0%,to{transform:translateY(24px)}40%,62%{transform:translateY(-3px)}}@keyframes rhythm-water-splash{0%,to{opacity:0}35%,72%{opacity:1}}@keyframes rhythm-drum-strike{0%,to{transform:none}35%{transform:scaleY(.89) scaleX(1.05)}}@keyframes rhythm-march-step{0%,to{transform:none}48%{transform:translate(3px,-4px)}}@keyframes rhythm-circus-leap{0%{transform:translate(-24px) scale(.63)}46%{transform:translateY(-15px) rotate(-14deg) scale(.63)}82%,to{transform:translate(29px) scale(.63)}}.rhythm-lineup[data-masked=true]{border-bottom-style:dashed}.rhythm-record-dialog{position:fixed;inset:0;margin:auto;width:min(calc(100vw - 2rem),25rem);padding:1.1rem;border:2px solid #573998;border-radius:.85rem;color:#262132;background:#fff9ec;text-align:left}.rhythm-record-dialog::backdrop{background:#221b3caa}.rhythm-record-dialog h3{font-size:1.15rem;font-weight:850}.rhythm-record-dialog form label{flex-basis:100%}@media(prefers-reduced-motion:reduce){.rhythm-performer[data-active] :is(.rhythm-stick-body,.rhythm-rope-loop,.rhythm-water-splash,.rhythm-drumhead){animation:none!important}.rhythm-performer[data-active] .rhythm-water-splash{opacity:1}}.rhythm-game{position:fixed;inset:0;width:100%;height:100dvh;min-height:0;padding:max(.45rem,env(safe-area-inset-top)) max(.45rem,env(safe-area-inset-right)) max(.45rem,env(safe-area-inset-bottom)) max(.45rem,env(safe-area-inset-left));overflow:hidden;grid-template-rows:auto minmax(0,1fr) auto;gap:.45rem}.rhythm-game .rhythm-arena,.rhythm-game[data-phase=playing] .rhythm-arena{min-height:0;height:100%}.rhythm-center{min-height:0;overflow:auto;align-content:safe center}.rhythm-result div{color:#fff4df}.rhythm-input-log pre{max-height:min(30dvh,11rem)}.rhythm-game.play-screen{grid-template-rows:auto auto minmax(0,1fr) auto;gap:.3rem}.rhythm-game.play-screen .rhythm-arena{grid-template-rows:minmax(0,1fr);width:100%;box-shadow:none}.rhythm-game.play-screen .rhythm-lineup{width:min(100%,76rem)}.rhythm-game.play-screen .rhythm-stick{max-width:11rem;max-height:68cqh}.rhythm-game.play-screen .rhythm-center{padding:.5rem 1rem}.rhythm-game.play-screen .rhythm-illustration{width:clamp(5rem,min(45cqw,40cqh),16rem)}.rhythm-hud [data-state=secured]{background:#dcede0;color:#145b42}.rhythm-hud [data-state=unreachable]{background:#f7dce4;color:#8d2843}.rhythm-hud [data-state] dt{color:inherit}.rhythm-game.play-screen .play-dock:has(.rhythm-strike){grid-auto-columns:1fr 2fr}
