:root { --ink:#30204f; --pink:#ff507f; --yellow:#ffe15a; --purple:#7358ee; --mint:#52ddb0; }
* { box-sizing:border-box; }
html,body { width:100%; height:100%; margin:0; overflow:hidden; }
body { background:#27194b; color:#fff; font-family:ui-rounded,"Arial Rounded MT Bold",system-ui,sans-serif; user-select:none; -webkit-tap-highlight-color:transparent; }
button,select { font:inherit; }
.statues-game { position:relative; width:100%; height:100%; min-height:480px; overflow:hidden; isolation:isolate; background:radial-gradient(circle at 50% 35%,#ffc866,#ff648c 52%,#704bc5); }
.camera,.camera-tint,#effects,.player-zones { position:absolute; inset:0; width:100%; height:100%; }
.camera { object-fit:cover; transform:scaleX(-1); opacity:0; transition:opacity .35s ease,filter .2s ease; }
.camera-ready .camera { opacity:1; }
.camera-tint { z-index:1; pointer-events:none; background:linear-gradient(180deg,rgba(255,190,78,.1),rgba(71,35,143,.24)),radial-gradient(circle at 50% 45%,transparent 30%,rgba(31,14,68,.34)); mix-blend-mode:multiply; filter:hue-rotate(var(--party-hue,0deg)); transition:filter .7s ease,background .2s ease; }
.statues-game[data-state="freeze"] .camera { filter:saturate(.35) contrast(1.08); }
.statues-game[data-state="freeze"] .camera-tint { background:rgba(71,91,175,.27); mix-blend-mode:color; }
#effects { z-index:4; pointer-events:none; }
.player-zones { z-index:2; display:grid; gap:8px; padding:112px 12px 14px; pointer-events:none; }
.player-zone { position:relative; min-width:0; overflow:hidden; border:4px solid var(--zone); border-radius:34px; background:linear-gradient(180deg,color-mix(in srgb,var(--zone) 10%,transparent),transparent 45%,color-mix(in srgb,var(--zone) 20%,transparent)); box-shadow:inset 0 0 35px color-mix(in srgb,var(--zone) 16%,transparent); transition:opacity .35s ease,filter .35s ease,transform .18s ease,box-shadow .18s ease; }
.player-zone:before { content:""; position:absolute; inset:auto 8% 14px; height:18px; border-radius:50%; background:var(--zone); opacity:.58; filter:blur(8px); }
.zone-label { position:absolute; top:13px; left:50%; transform:translateX(-50%); padding:8px 14px; border:3px solid white; border-radius:999px; color:var(--ink); background:var(--zone); box-shadow:0 5px 0 color-mix(in srgb,var(--zone) 65%,#392464); font-weight:1000; white-space:nowrap; }
.player-zone.moving { transform:scale(.992); box-shadow:inset 0 0 55px color-mix(in srgb,var(--zone) 42%,transparent),0 0 28px color-mix(in srgb,var(--zone) 45%,transparent); }
.statues-game[data-state="freeze"] .player-zone.moving { border-color:#ff385f; box-shadow:inset 0 0 60px rgba(255,38,85,.45),0 0 30px rgba(255,38,85,.5); }
.player-zone.out { opacity:.38; filter:grayscale(.6); }
.player-zone.out:after { content:"CHEER SQUAD! 📣"; position:absolute; inset:0; display:grid; place-items:center; color:#fff; background:rgba(48,32,79,.48); text-align:center; font-size:clamp(20px,3vw,42px); font-weight:1000; text-shadow:0 4px 0 var(--ink); }
.topbar { position:absolute; z-index:9; top:max(12px,env(safe-area-inset-top)); left:14px; right:14px; display:flex; align-items:center; justify-content:space-between; gap:12px; pointer-events:none; }
.mini-brand,.back-button,.round-button,.camera-select { border:2px solid rgba(255,255,255,.58); background:rgba(48,32,79,.78); box-shadow:0 7px 18px rgba(31,18,72,.22); backdrop-filter:blur(10px); }
.mini-brand { padding:10px 15px; border-radius:999px; font-weight:1000; white-space:nowrap; }
.back-button { padding:10px 14px; border-radius:999px; color:#fff; text-decoration:none; font-weight:900; pointer-events:auto; }
.controls { display:flex; gap:8px; align-items:center; pointer-events:auto; }
.round-button { width:46px; height:46px; border-radius:50%; color:white; cursor:pointer; }
.camera-select { max-width:min(230px,28vw); height:46px; padding:0 30px 0 13px; border-radius:999px; color:white; font:800 12px system-ui; }
.camera-select option { color:#261b49; background:#fff; }
.hud { position:absolute; z-index:7; top:70px; left:15px; right:15px; display:flex; justify-content:space-between; opacity:0; transform:translateY(-8px); transition:.25s ease; pointer-events:none; }
.statues-game[data-state="dance"] .hud,.statues-game[data-state="freeze"] .hud,.statues-game[data-state="result"] .hud { opacity:1; transform:none; }
.hud-pill { padding:9px 14px; border:3px solid #fff; border-radius:18px; color:var(--ink); background:#f8f3ff; box-shadow:0 6px 0 #c7b8f2; font-size:clamp(12px,2vw,18px); font-weight:900; }
.hud-pill strong { color:#ff386e; font-size:1.35em; }
.screen { position:absolute; z-index:6; inset:0; display:grid; place-items:center; padding:24px; transition:opacity .3s ease,visibility .3s; }
.statues-game:not([data-state="setup"]) .setup-screen,.statues-game:not([data-state="winner"]) .winner-screen { opacity:0; visibility:hidden; pointer-events:none; }
.setup-screen { background:radial-gradient(circle at 50% 25%,rgba(255,230,115,.45),transparent 35%),linear-gradient(150deg,#ffb652,#ff5a86 58%,#704bc5); }
.setup-card,.winner-card { position:relative; width:min(590px,93vw); padding:clamp(27px,4.5vw,47px); border:4px solid rgba(255,255,255,.93); border-radius:40px; color:var(--ink); background:linear-gradient(150deg,rgba(255,255,255,.98),rgba(255,245,224,.95)); box-shadow:0 14px 0 rgba(87,39,112,.25),0 30px 75px rgba(60,23,89,.3); text-align:center; }
.eyebrow { margin:0 0 6px; color:#e34373; font-size:clamp(12px,2vw,16px); font-weight:1000; letter-spacing:.14em; text-transform:uppercase; }
h1 { margin:0; color:#e84576; font-size:clamp(52px,9vw,86px); line-height:.82; letter-spacing:-.065em; text-shadow:0 6px 0 #ffc3d4; }
h1 strong { color:#6a50e0; font-size:1.11em; text-shadow:0 7px 0 #cec5ff; }
.intro { max-width:460px; margin:21px auto 17px; font-size:clamp(16px,2.5vw,22px); font-weight:750; line-height:1.28; }
.player-picker { margin:0 auto 16px; padding:0; border:0; }
.player-picker legend { width:100%; margin-bottom:8px; color:#6c5d83; font:800 13px system-ui; }
.player-options { display:flex; justify-content:center; gap:9px; }
.player-options button { width:58px; height:52px; border:3px solid #dcd4f5; border-radius:17px; color:#685c81; background:#f5f1ff; font-size:22px; font-weight:1000; cursor:pointer; transition:transform .14s ease,background .14s ease; }
.player-options button.selected { border-color:#7258ec; color:#fff; background:#7258ec; box-shadow:0 5px 0 #4932aa; transform:translateY(-3px); }
.camera-tip { display:flex; align-items:center; gap:11px; max-width:440px; margin:0 auto 19px; padding:11px 14px; border-radius:17px; background:#fff0cb; color:#66516d; text-align:left; }
.camera-tip>span:first-child { font-size:28px; }
.camera-tip strong,.camera-tip small { display:block; }
.camera-tip strong { font-size:13px; }
.camera-tip small { margin-top:2px; font:650 11px system-ui; opacity:.72; }
.primary-button { display:flex; align-items:center; justify-content:center; gap:12px; min-width:min(330px,100%); margin:auto; padding:16px 22px; border:0; border-radius:21px; color:white; background:linear-gradient(180deg,#ff6e94,#ed3f72); box-shadow:0 8px 0 #b82454,0 14px 27px rgba(204,35,91,.25); font-size:clamp(21px,4vw,29px); font-weight:1000; cursor:pointer; }
.primary-button:active { transform:translateY(6px); box-shadow:0 2px 0 #b82454; }
.primary-button:disabled { filter:grayscale(.7); cursor:wait; }
.camera-status { margin:14px 0 -13px; color:#796d88; font:650 12px system-ui; }
.music-notes i { position:absolute; color:rgba(255,255,255,.58); font-style:normal; font-size:clamp(50px,9vw,100px); font-weight:1000; animation:float-note 3.5s ease-in-out infinite alternate; }
.music-notes i:nth-child(1){left:7%;top:14%}.music-notes i:nth-child(2){right:8%;top:18%;animation-delay:-1s}.music-notes i:nth-child(3){left:12%;bottom:12%;animation-delay:-2s}.music-notes i:nth-child(4){right:12%;bottom:9%;animation-delay:-.5s}
.big-callout { position:absolute; z-index:10; left:50%; top:47%; transform:translate(-50%,-50%) rotate(-3deg) scale(.35); opacity:0; pointer-events:none; color:var(--yellow); -webkit-text-stroke:clamp(6px,1.1vw,12px) var(--ink); paint-order:stroke fill; text-align:center; text-shadow:0 9px 0 #ff4674,0 19px 28px rgba(42,19,75,.35); font-size:clamp(48px,11vw,120px); font-weight:1000; line-height:.88; white-space:nowrap; }
.big-callout.show { animation:callout 1.35s cubic-bezier(.16,1,.3,1); }
.big-callout.freeze { color:#abf4ff; text-shadow:0 9px 0 #5275d9,0 19px 28px rgba(42,19,75,.35); }
.notice { position:absolute; z-index:12; left:50%; bottom:17px; transform:translate(-50%,18px); max-width:min(570px,90vw); padding:11px 17px; border:2px solid rgba(255,255,255,.55); border-radius:999px; opacity:0; color:white; background:rgba(48,32,79,.87); text-align:center; font:700 13px system-ui; pointer-events:none; transition:.25s ease; }
.notice.show { opacity:1; transform:translate(-50%,0); }
.winner-screen { background:rgba(45,28,92,.5); backdrop-filter:blur(8px); }
.winner-card { animation:winner-in .6s cubic-bezier(.16,1,.3,1); }
.winner-crown { position:absolute; left:50%; top:0; transform:translate(-50%,-62%); font-size:clamp(72px,12vw,112px); filter:drop-shadow(0 8px 0 #d3a629); }
.winner-card h2 { margin:17px 0 8px; color:#e84072; font-size:clamp(38px,7vw,72px); line-height:1; letter-spacing:-.045em; }
.winner-card>p:not(.eyebrow) { margin:0 0 25px; color:#6e6084; font-weight:800; }
.balloon-link { display:block; margin-top:22px; color:#6550c5; font-weight:900; text-decoration:none; }
@keyframes callout { 0%{opacity:0;transform:translate(-50%,-50%) rotate(-7deg) scale(.3)} 20%,67%{opacity:1;transform:translate(-50%,-50%) rotate(-3deg) scale(1)} 100%{opacity:0;transform:translate(-50%,-65%) rotate(2deg) scale(1.13)} }
@keyframes float-note { to{translate:0 -25px;rotate:8deg} }
@keyframes winner-in { from{opacity:0;transform:translateY(55px) scale(.75) rotate(-3deg)} }
@media(max-width:700px){.statues-game{min-height:420px}.mini-brand{display:none}.back-button span{display:none}.player-zones{padding-top:105px;gap:4px}.player-zone{border-width:3px;border-radius:22px}.zone-label{font-size:10px;padding:6px 8px}.camera-select{max-width:40vw;height:42px}.round-button{width:42px;height:42px}.setup-card,.winner-card{border-radius:28px;padding:28px 21px}.players-pill{max-width:150px;text-align:center}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important}}
