/* Flyer palette: an open, cream canvas around a vivid musical stage. */
:root{--paper:#f7f3ed;--ink:#392451;--purple:#6544a1;--yellow:#ffdc09}
body{background:radial-gradient(ellipse at 12% 22%,#e8dff6 0,transparent 48%),radial-gradient(ellipse at 95% 70%,#fff4c6 0,transparent 44%),var(--paper)}
body::before,body::after{content:'';position:fixed;width:560px;height:560px;border-radius:50%;pointer-events:none;z-index:-1;opacity:.35;background:repeating-radial-gradient(circle,transparent 0 23px,#b9a0d539 24px 25px,transparent 26px 46px)}
body::before{left:-350px;top:12%}body::after{right:-380px;bottom:-140px}
.home-heading h1{color:#4e317e}.home-heading .eyebrow{color:#785299}
.mode-card{position:relative;overflow:hidden;transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s;isolation:isolate}
.mode-card::after{content:'';position:absolute;width:260px;height:260px;right:-150px;top:15px;border-radius:50%;background:repeating-radial-gradient(circle,transparent 0 14px,currentColor 15px 16px,transparent 17px 30px);opacity:.12;z-index:-1;transition:transform .7s}
.mode-card:hover::after{transform:scale(1.18) rotate(14deg)}
.solo-mode{background:#ffdf35;border-color:#f4d43c;color:#402761}.solo-mode .pill{background:#402761;color:#fff}.solo-mode .mode-bottom{border-color:#66422f2b}
.team-mode{background:linear-gradient(135deg,#624193,#3d255f);border-color:#644593;color:#fff}.team-mode .mode-formula{color:#eee5ff}
.mode-symbol{opacity:.45}.mode-bottom>span{display:inline-block;transition:transform .3s}.mode-card:hover .mode-bottom>span{transform:translateX(5px)}
.score{background:#ffdc09;box-shadow:0 5px 20px #d2b32915}.score>span{display:inline-block;color:#412568}.score small{color:#624e64}
.round-scene{position:relative;overflow:clip;background:#43296c;color:#fff;border:1px solid #725097;box-shadow:0 20px 70px #44236c24;transition:background .8s,border-color .4s,box-shadow .5s}
.round-scene::before{content:'';position:absolute;inset:-15%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 20% 22%,#9864d369,transparent 45%),radial-gradient(ellipse at 85% 65%,#c17eae2b,transparent 50%);transform:scale(calc(1 + var(--audio-energy,0)*.25));opacity:calc(.5 + var(--audio-energy,0)*.6);transition:opacity .25s,transform .15s}
.round-scene::after{content:'';position:absolute;width:310px;height:310px;right:-190px;top:-130px;border-radius:50%;pointer-events:none;z-index:-1;background:repeating-radial-gradient(circle,transparent 0 17px,#c9aaf924 18px 19px,transparent 20px 34px)}
.round-scene.is-playing{border-color:#a082c6;box-shadow:0 20px 70px #68438b32}
.scene-meta{color:#d5c5eb}.scene-meta .pill{background:#ffffff15;color:#ecddff;border:1px solid #ffffff15}.scene-meta .pill.ranked{background:#ffdc09;color:#45296c;border-color:#ffdc09}
.round-dots span{background:#ffffff19}.round-dots .current{background:#ffdc09;box-shadow:0 0 12px #ffdc0930}.round-dots .won{background:#d7beff}.round-dots .discovery{background:#d7b33d}
.scene-cue{color:#fff}.scene-hint{color:#d8c9e8}.round-scene.is-playing .scene-meta>span:first-child::before{background:#ffdc09;box-shadow:0 0 0 4px #ffdc0914}
.ready-art{height:195px;margin:5px auto 19px}
.ready-art::before,.ready-art::after{content:'';position:absolute;left:50%;top:50%;width:185px;height:185px;border:1px solid #b996dd66;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}
.ready-art::after{width:218px;height:218px;border-color:#b996dd22}
.record-disc{width:151px;height:151px;background:repeating-radial-gradient(circle at center,#241739 0 2px,#38214d 3px 4px);box-shadow:0 15px 35px #21113866;animation:record-arrive .8s cubic-bezier(.16,1,.3,1) both}
.record-disc span{height:67px;width:67px;box-shadow:inset 0 0 0 1px #f2be2455}.ready-art i{background:#eda2b7;left:46px;top:29px}.ready-art i:last-child{background:#ffdc09;right:29px;top:151px;width:14px;height:14px}
.round-scene[data-phase=loading] .ready-art::after{animation:ring-breathe 1.7s ease-in-out infinite}
.sound-ribbon{height:84px;position:relative;margin:-7px -8px 12px;pointer-events:none;overflow:hidden}
.sound-ribbon canvas{display:block;width:100%;height:70px;opacity:1}
.ribbon-label{display:block;text-align:center;font-size:.48rem;font-weight:700;letter-spacing:.26em;color:#cbb4e0}
.round-scene[data-phase=ready] .sound-ribbon,.round-scene[data-phase=loading] .sound-ribbon,.round-scene[data-phase=result] .sound-ribbon,.round-scene[data-phase=countdown] .sound-ribbon,.round-scene[data-phase=scoring] .sound-ribbon{display:none}
.round-scene[data-phase=listening] .sound-ribbon,.round-scene[data-phase=choosing] .sound-ribbon{animation:ribbon-arrive .7s cubic-bezier(.16,1,.3,1) both}
.card-title p{color:#d8c9e8}.card-title h2{color:#fff;font-size:1.8rem;letter-spacing:-.045em}
.choices li,.interactive-choices li{background:#fcfaf5;color:#392451;border:1px solid #fff7;border-radius:13px;transition:border-color .2s,background .2s,transform .2s}
.choice-number,.team-choices li>span:first-child{background:#e9ddf6;color:#654294;border-radius:50%;transition:background .2s,transform .3s}
.choices li:nth-child(2) .choice-number,.team-choices li:nth-child(2)>span:first-child{background:#fae8ac;color:#7b5c1a}
.choices li:nth-child(3) .choice-number,.team-choices li:nth-child(3)>span:first-child{background:#f7d9e4;color:#974666}
.choices li:nth-child(4) .choice-number,.team-choices li:nth-child(4)>span:first-child{background:#d9e9df;color:#3f7258}
.choices li:nth-child(5) .choice-number,.team-choices li:nth-child(5)>span:first-child{background:#dce2f4;color:#52659e}
.choice-action{transition:background .2s}.choice-action:hover:not(:disabled){background:#fff1a6}.choice-action:active:not(:disabled){background:#ffdf35}.choice-action:focus-visible{outline-color:#ffdc09;outline-offset:-3px}
.choice-action:hover:not(:disabled) .choice-number{transform:rotate(-9deg) scale(1.08);background:#ffdc09;color:#422764}
.choice-arrow{color:#826595;transition:transform .25s}.choice-action:hover:not(:disabled) .choice-arrow{transform:translate(2px,-2px)}
.choices li.is-selected{border-color:#ffdc09;background:#ffeb85;transform:scale(.985)}
.choices-in li{animation:choice-entrance .65s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(var(--choice-index,0)*80ms)}
.choices.results li{animation:result-entrance .45s ease both;animation-delay:calc(var(--choice-index,0)*45ms)}
.result-bar{transform-origin:left;animation:match-fill .85s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(var(--choice-index,0)*60ms);background:#e4d7f5}
.interactive-choices li.selected-result{border-color:#ffdc09;background:#fff5c7}.interactive-choices li.selected-result .result-bar{background:#ffe471}
.round-scene[data-phase=remembering]{background:#562f77}.round-scene[data-phase=remembering] .scene-cue{color:#ffdf35}
.round-scene[data-phase=countdown]{background:#4a2b70}.scene-countdown{position:relative;isolation:isolate;min-height:280px}
.scene-countdown::before,.scene-countdown::after{content:'';position:absolute;border:1px solid #c9a2eb45;border-radius:50%;width:185px;height:185px;top:28px;z-index:-1}.scene-countdown::after{width:225px;height:225px;top:8px;border-color:#c9a2eb20}
.scene-countdown strong{color:#ffdc09}.scene-countdown span{color:#d8c9e8}
.round-scene[data-phase=scoring] .scene-cue{color:#ffdc09}.result-question{color:#ecdcff}
.play-button{background:#ffdc09;color:#43296c;box-shadow:0 7px 22px #26133533;transition:transform .25s,background .25s,box-shadow .25s;min-height:52px}
.play-button:hover:not(:disabled){background:#ffe755;transform:translateY(-2px);box-shadow:0 10px 26px #26133555}.play-button:active:not(:disabled){transform:scale(.96)}
.play-button:focus-visible{outline:3px solid white;outline-offset:4px}
.scene-player{margin-top:20px}.audio-progress span{color:#d2bddf}
.round-scene progress,.round-scene progress::-webkit-progress-bar{background:#ffffff22}.round-scene progress::-webkit-progress-value{background:#ffdc09}.round-scene progress::-moz-progress-bar{background:#ffdc09}
.music-actions .subtle-button,.music-actions>span,.audio-status{color:#d4c0e5}.music-actions .subtle-button:hover{color:#fff}.reveal-area p,.reveal-area .inline-button{color:#d3bfe3}.reveal-area .inline-button:hover{color:#ffdc09}.reveal-area .form-error{color:#ffd1dd}
.reward>strong{color:#ffdc09}.reward b{color:#fff}.reward p,.result-note{color:#ddcdeb}
.track-info{border-color:#ffffff20}.track-label,.track-info p,.track-info a{color:#d9c5e8}.track-info h3{color:#fff}
.round-scene .reveal-button{background:#ffdc09;color:#43296c;border:0;transition:transform .25s,background .25s}.round-scene .reveal-button:hover{background:#ffe85a;transform:translateY(-2px)}
.match-button{color:#43296c}.miss-button{background:#ffffff15;color:#fff;border:1px solid #ffffff35}.result-buttons .button{transition:transform .2s}.result-buttons .button:hover{transform:translateY(-2px)}
.result-area .reward{animation:reward-arrive .6s cubic-bezier(.16,1,.3,1) both}.connection-burst{position:absolute;left:50%;top:30%;width:1px;height:1px;pointer-events:none;z-index:4}.connection-burst i{position:absolute;width:7px;height:7px;background:#ffdc09;border-radius:2px;animation:connection-spark 1s cubic-bezier(.15,.7,.3,1) both}.connection-burst i:nth-child(3n){background:#e9a0b9;border-radius:50%}.connection-burst i:nth-child(3n+1){background:#c6a1f3}
.finish-panel{background:#4a2c74;color:#fff;border-color:#765195}.finish-panel .eyebrow{color:#ffdc09}.finish-panel .reveal-button{background:#ffdc09;color:#43296c}.finish-panel .secondary-button{color:#fff;border-color:#ac89ce}.finish-numbers strong{color:#ffdc09}
.solo-finish{position:relative;overflow:clip;background:radial-gradient(ellipse at 10% 0,#71509655,transparent 65%),#492d70}
.solo-finish h2{font-size:clamp(1.9rem,4vw,2.65rem);max-width:530px;margin:12px auto 20px;letter-spacing:-.055em;text-wrap:balance}
.solo-finish .eyebrow{max-width:none;font-size:.63rem;letter-spacing:.12em}
.finish-match{position:relative;isolation:isolate;min-height:164px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:12px auto 24px;gap:3px}
.finish-match::before,.finish-match::after{content:'';position:absolute;z-index:-1;left:50%;top:50%;transform:translate(-50%,-50%);border:1px solid #c4a0e830;border-radius:50%;width:162px;height:162px}
.finish-match::after{width:195px;height:195px;border-color:#c4a0e814}
.finish-match strong{font-size:clamp(3.8rem,8vw,5.5rem);color:#ffdc09;letter-spacing:-.07em;line-height:1.05}
.finish-match span{font-size:.75rem;color:#e5d2f5;letter-spacing:.025em}
.solo-finish .finish-explanation{font-size:1rem;line-height:1.6;max-width:450px;margin:0 auto 10px;text-wrap:balance}
.solo-finish .finish-calculation{font-size:.73rem;color:#d6c0e7;line-height:1.5;max-width:470px;margin:0 auto 25px}
.finish-invite{padding:23px 0 18px;border-top:1px solid #ffffff20}.finish-invite h3{font-size:1.2rem;letter-spacing:-.03em;margin:0 0 9px}.finish-invite p{font-size:.93rem;line-height:1.55;color:#e5d6ef;margin:0}
.solo-finish .finish-actions{gap:12px}.solo-finish .finish-actions>.button{flex:1;min-height:50px;display:flex;justify-content:center;align-items:center;font-size:.88rem;padding:14px 12px;transition:transform .2s,background .2s}
.solo-finish .finish-actions>.button:hover{transform:translateY(-2px)}.solo-finish .secondary-button:hover{background:#ffffff12}.solo-finish .reveal-button:hover{background:#ffe65b}
.finish-replay{font-size:.8rem;color:#e3cfef;margin:17px 0 0;text-decoration:none}.solo-finish .small-copy{color:#c5afd8;font-size:.65rem!important;margin:5px 0 0}
#shareStatus{font-size:.8rem;line-height:1.5;color:#ffec8a}#shareStatus:empty{display:none}
@media(max-width:650px){.solo-finish{padding:26px 20px}.solo-finish h2{font-size:1.95rem}.finish-match{min-height:144px;margin-bottom:22px}.finish-match::before{width:145px;height:145px}.finish-match::after{width:175px;height:175px}.finish-match strong{font-size:4rem}.solo-finish .finish-explanation{font-size:.9rem}.solo-finish .finish-calculation{font-size:.65rem;margin-bottom:20px}.finish-invite{padding:19px 0 16px}.finish-invite h3{font-size:1.12rem}.finish-invite p{font-size:.86rem}.solo-finish .finish-actions{flex-direction:column;gap:10px}}
@keyframes choice-entrance{from{opacity:0;transform:translateY(19px) scale(.965);filter:blur(2px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
@keyframes ribbon-arrive{from{opacity:0;transform:scaleX(.65)}to{opacity:1;transform:scaleX(1)}}
@keyframes record-arrive{from{opacity:0;transform:rotate(-40deg) scale(.85)}to{opacity:1;transform:rotate(-12deg) scale(1)}}
@keyframes ring-breathe{0%,100%{transform:translate(-50%,-50%) scale(.95);opacity:.45}50%{transform:translate(-50%,-50%) scale(1.07);opacity:1}}
@keyframes result-entrance{from{opacity:.5}to{opacity:1}}
@keyframes match-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes reward-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes connection-spark{0%{opacity:0;transform:translate(0,0) scale(.4)}15%{opacity:1}100%{opacity:0;transform:translate(var(--x),var(--y)) rotate(150deg) scale(.7)}}
@media(max-width:650px){
 .sound-ribbon{height:65px;margin:-3px -5px 11px}.sound-ribbon canvas{height:53px}.ribbon-label{font-size:.42rem;letter-spacing:.22em}
 .scene-heading{margin-bottom:12px;min-height:65px}.scene-cue{font-size:2rem}.scene-hint{font-size:.73rem}.card-title h2{font-size:1.42rem}.card-title{margin-bottom:12px}
 .ready-art{height:190px}.round-scene{padding:16px 16px 14px}.round-dots{margin-bottom:13px}
 .choices li,.interactive-choices li,.team-choices li{min-height:45px!important}.choice-action{min-height:45px}.choices{gap:7px}.choice-number,.team-choices li>span:first-child{height:28px;width:28px}
 .round-scene:not([data-phase=ready]):not([data-phase=loading]) .scene-player{margin-top:14px}.round-foot,.round-foot .inline-button{color:#796386}.community-strip{color:#86728f}
 .mode-card:active{transform:scale(.98)}.home-heading h1{font-size:2.6rem}.mode-card{padding:26px}.team-mode .mode-top .pill{color:#43296c}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.round-scene::before{transform:none;opacity:.5}}
