:root{--navy:#1e2a6e;--ink:#0b1033;--acc:#ffb703;--glass:rgba(255,255,255,.08)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;overflow:hidden;background:var(--ink);color:#fff;font-family:system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif}
#bg{position:fixed;inset:0;background:radial-gradient(120% 80% at 50% 0%,#27368f 0%,#121a52 45%,#0b1033 100%);overflow:hidden}
#bg i{position:absolute;border-radius:50%;filter:blur(60px);opacity:.35;animation:fl 12s ease-in-out infinite alternate}
#bg i:nth-child(1){width:260px;height:260px;background:#4361ee;top:-60px;right:-60px}
#bg i:nth-child(2){width:220px;height:220px;background:#f72585;bottom:15%;left:-80px;animation-delay:-4s}
#bg i:nth-child(3){width:200px;height:200px;background:#ffb703;bottom:-60px;right:10%;animation-delay:-8s;opacity:.2}
@keyframes fl{to{transform:translate(30px,-40px) scale(1.2)}}
body.party #bg{animation:party .9s steps(1) infinite}
@keyframes party{0%{filter:hue-rotate(0)}50%{filter:hue-rotate(60deg) brightness(1.15)}}
.hidden{display:none!important}
.gate{position:fixed;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;text-align:center}
.gate h1{margin:0;font-size:38px;font-weight:800;letter-spacing:.5px}
.gate h1 span,.logo span{color:var(--acc)}
.gate p{margin:0;color:#c5cbf2;max-width:300px;line-height:1.7;font-size:16px}
.hero{height:min(40vh,300px);aspect-ratio:3/4}
.hero img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 18px 24px #0008);animation:bob 3s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(-8px)}}
.btn{border:0;border-radius:30px;padding:15px 30px;font-size:18px;font-weight:700;font-family:inherit;color:var(--ink);background:var(--acc);cursor:pointer;box-shadow:0 8px 24px #ffb70344;min-width:230px}
.btn:active{transform:scale(.97)}
.btn.google{background:#fff;display:flex;align-items:center;justify-content:center;gap:12px}
.btn[disabled]{opacity:.6}
.err{color:#ff8e93;min-height:22px;font-size:15px}
.lock{font-size:46px}
.lnk{color:#9fa8e0;font-size:14px}
#code{font-size:30px;letter-spacing:10px;text-align:center;width:240px;height:60px;border-radius:16px;border:2px solid #ffffff33;background:var(--glass);color:#fff;outline:0;direction:ltr}
#code:focus{border-color:var(--acc)}
#app{position:fixed;inset:0;display:flex;flex-direction:column;z-index:2}
header{display:flex;align-items:center;justify-content:space-between;padding:calc(10px + env(safe-area-inset-top)) 16px 4px}
.logo{font-size:22px;font-weight:800}
#who{font-size:13px;color:#aab2e6;display:flex;gap:10px;align-items:center;direction:ltr}
#who a{color:#ffb703;text-decoration:none}
#stage{position:relative;flex:1;min-height:0;display:flex;align-items:flex-end;justify-content:center}
#rig{position:relative;height:100%;max-height:640px;aspect-ratio:3/4;max-width:100%;will-change:transform;transform-origin:50% 92%}
#rig img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;pointer-events:none;user-select:none;-webkit-user-drag:none}
#rig img.on{opacity:1}
#shadow{position:absolute;bottom:2%;left:50%;width:min(52%,260px);height:22px;margin-left:calc(min(52%,260px)/-2);background:radial-gradient(#0009,#0000 70%);border-radius:50%}
#glasses{position:absolute;width:44px;height:auto;left:0;top:0;z-index:3;pointer-events:none}
#eq{position:absolute;left:0;right:0;bottom:200px;height:70px;display:flex;align-items:flex-end;justify-content:center;gap:5px;opacity:0;transition:opacity .4s;pointer-events:none}
body.party #eq{opacity:.9}
#eq b{width:7px;background:linear-gradient(var(--acc),#f72585);border-radius:4px;height:10px;animation:eq .5s ease-in-out infinite alternate}
@keyframes eq{to{height:62px}}
#cap{min-height:62px;max-height:120px;overflow:auto;margin:0 14px;padding:10px 16px;border-radius:18px;background:var(--glass);backdrop-filter:blur(8px);border:1px solid #ffffff1c;text-align:center;font-size:18px;line-height:1.6}
#cap:empty{visibility:hidden}
#replay{align-self:center;margin-top:8px;border:0;border-radius:20px;padding:9px 18px;background:var(--acc);color:var(--ink);font-weight:700;font-family:inherit;font-size:15px}
#chips{display:flex;gap:8px;overflow-x:auto;padding:10px 14px 4px;scrollbar-width:none}
#chips::-webkit-scrollbar{display:none}
#chips button{flex:none;border:1px solid #ffffff2a;background:var(--glass);color:#fff;border-radius:20px;padding:9px 14px;font-size:15px;font-family:inherit;white-space:nowrap}
#chips button:active{background:#ffffff30}
footer{display:flex;align-items:center;gap:10px;padding:8px 14px calc(12px + env(safe-area-inset-bottom))}
#txt{flex:1;min-width:0;height:50px;border-radius:25px;border:1.5px solid #ffffff2a;background:var(--glass);color:#fff;padding:0 18px;font-size:17px;font-family:inherit;outline:0}
#txt::placeholder{color:#9aa3d8}
#send{width:46px;height:46px;border-radius:50%;border:0;background:#ffffff1f;color:#fff;font-size:18px;flex:none}
#mic{width:72px;height:72px;border-radius:50%;border:0;background:linear-gradient(135deg,#f72585,#7209b7);box-shadow:0 8px 22px #f7258566;flex:none;display:grid;place-items:center}
#mic.on{background:#d8232a;animation:pulse 1s infinite}
#mic.busy{background:#5a63a8;box-shadow:none}
@keyframes pulse{50%{transform:scale(1.1);box-shadow:0 0 0 14px #d8232a33}}
@media (min-width:700px){#app{max-width:520px;margin:0 auto}}
