:root{--bg:#1a1a2e;--surface:#16213e;--surface-2:#1f2a4a;--accent:#e94560;--accent-2:#ff6b81;--gold:gold;--green:#4ade80;--text:#fff;--text-muted:#a0a0b0;--border:#ffffff1a;--shadow:0 8px 24px #0006;--radius:14px;--radius-lg:20px}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{background:var(--bg);height:100%;color:var(--text);overscroll-behavior:none;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.5}button{font-family:inherit;font-size:inherit;cursor:pointer;color:inherit;background:0 0;border:none}input,textarea{font-family:inherit;font-size:inherit}.app{flex-direction:column;max-width:480px;min-height:100dvh;margin:0 auto;padding:20px 16px 32px;display:flex}.screen{flex-direction:column;flex:1;gap:20px;display:flex}.title{text-align:center;letter-spacing:-.5px;margin:0;font-size:28px;font-weight:800}.title-spy{color:var(--accent)}.subtitle{text-align:center;color:var(--text-muted);margin:0;font-size:15px}.card{background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);padding:16px}.btn{border-radius:var(--radius);background:var(--surface);min-height:52px;color:var(--text);border:1px solid var(--border);text-align:center;justify-content:center;align-items:center;gap:8px;padding:12px 20px;font-size:16px;font-weight:600;transition:transform 50ms,background .15s;display:flex}.btn:active{transform:scale(.98)}.btn-primary{background:var(--accent);color:#fff;border-color:var(--accent)}.btn-primary:disabled{background:var(--surface);color:var(--text-muted);border-color:var(--border);cursor:not-allowed}.btn-ghost{background:0 0}.btn-danger{color:var(--accent);border-color:var(--accent);background:0 0}.btn-large{min-height:64px;font-size:18px;font-weight:700}.input{border-radius:var(--radius);background:var(--surface-2);width:100%;min-height:48px;color:var(--text);border:1px solid var(--border);outline:none;padding:12px 16px}.input:focus{border-color:var(--accent)}.row{align-items:center;gap:12px;display:flex}.col{flex-direction:column;gap:12px;display:flex}.spacer{flex:1}.stepper{background:var(--surface-2);border-radius:var(--radius);align-items:center;gap:12px;padding:6px;display:flex}.stepper button{background:var(--surface);border-radius:10px;width:40px;height:40px;font-size:22px;font-weight:700}.stepper-value{text-align:center;flex:1;font-size:18px;font-weight:700}.label{color:var(--text-muted);margin:0;font-size:14px;font-weight:600}.error{color:var(--accent);margin:0;font-size:14px}.avatar{background:var(--surface-2);color:var(--text-muted);border:2px solid var(--border);background-position:50%;background-size:cover;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-weight:700;display:flex}.avatar-xs{width:32px;height:32px;font-size:14px}.avatar-sm{width:48px;height:48px;font-size:18px}.avatar-md{width:80px;height:80px;font-size:28px}.avatar-lg{border-width:4px;width:160px;height:160px;font-size:60px}.avatar-xl{border-width:4px;width:200px;height:200px;font-size:72px}.avatar-button{cursor:pointer;border:2px dashed var(--border)}.avatar-button:hover{border-color:var(--accent)}.player-row{background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);align-items:center;gap:12px;padding:10px 12px;display:flex}.player-row .input{background:var(--surface-2);flex:1}.player-row button.remove{width:36px;height:36px;color:var(--text-muted);background:0 0;border-radius:10px;font-size:22px}.role-card{border-radius:var(--radius-lg);text-align:center;min-height:60vh;box-shadow:var(--shadow);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:16px;padding:32px 24px;display:flex}.role-card-spy{border:3px solid var(--accent);background:linear-gradient(135deg,#2a0a14,#4a0a1e)}.role-card-local{border:3px solid var(--green);background:linear-gradient(135deg,#0a2a14,#0e3a1f)}.role-card .role-label{letter-spacing:2px;text-transform:uppercase;opacity:.7;font-size:14px;font-weight:700}.role-card .role-name{margin:0;font-size:36px;font-weight:900}.role-card .role-word{color:var(--gold);margin:0;font-size:44px;font-weight:900}.role-card .role-hint{color:var(--text-muted);font-size:18px;font-weight:600}.pass-screen{flex-direction:column;flex:1;justify-content:center;align-items:center;gap:24px;display:flex}.pass-screen .pass-name{text-align:center;margin:0;font-size:32px;font-weight:800}.hold-button{background:var(--accent);color:#fff;-webkit-user-select:none;user-select:none;border:none;border-radius:40px;justify-content:center;align-items:center;width:220px;height:80px;font-size:18px;font-weight:800;display:flex}.timer-ring{justify-content:center;align-items:center;display:flex;position:relative}.timer-ring svg{transform:rotate(-90deg)}.timer-ring .timer-text{font-variant-numeric:tabular-nums;font-size:56px;font-weight:800;position:absolute}.timer-ring .timer-label{color:var(--text-muted);text-transform:uppercase;letter-spacing:1px;font-size:13px;position:absolute;bottom:32px}.gameplay-screen{flex-direction:column;flex:1;justify-content:center;align-items:center;gap:32px;display:flex}.time-up{color:var(--accent);text-align:center;margin:0;font-size:48px;font-weight:900;animation:1.5s ease-in-out infinite pulse}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.reveal-screen{flex-direction:column;flex:1;align-items:center;gap:20px;padding-top:20px;display:flex}.reveal-word{color:var(--gold);text-align:center;margin:16px 0 8px;font-size:48px;font-weight:900}.reveal-category{color:var(--text-muted);text-align:center;margin:0;font-size:16px}.spy-list{flex-wrap:wrap;justify-content:center;gap:16px;margin-top:12px;display:flex}.spy-tile{flex-direction:column;align-items:center;gap:8px;display:flex}.spy-tile .name{font-size:14px;font-weight:700}.session-card{background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);flex-direction:column;gap:12px;padding:16px;display:flex}.session-card .meta{color:var(--text-muted);justify-content:space-between;font-size:13px;display:flex}.session-card .avatars{gap:6px;display:flex}.session-card .actions{gap:8px;display:flex}.session-card .actions .btn{flex:1;min-height:44px;padding:8px 12px;font-size:14px}.loading{color:var(--text-muted);flex:1;justify-content:center;align-items:center;display:flex}.header{align-items:center;gap:12px;padding:4px 0 12px;display:flex}.header .back{background:var(--surface);border-radius:10px;width:40px;height:40px;font-size:22px}.header h1{flex:1;margin:0;font-size:22px;font-weight:800}.header .greeting{color:var(--text-muted);font-size:13px}.welcome-screen{background:var(--bg);z-index:200;cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:20px;animation:.5s fadein;display:flex;position:fixed;inset:0}.welcome-logo{animation:3s ease-in-out infinite float}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}.welcome-title{letter-spacing:-1px;margin:0;font-size:48px;font-weight:900}.welcome-subtitle{color:var(--text-muted);margin:0;font-size:18px;font-style:italic}.welcome-tap{color:var(--text-muted);text-transform:uppercase;letter-spacing:2px;margin-top:40px;font-size:14px;animation:2s ease-in-out infinite pulse}.avatar-menu-backdrop{z-index:100;background:#000000b3;justify-content:center;align-items:flex-end;padding:16px;animation:.15s fadein;display:flex;position:fixed;inset:0}.avatar-menu{background:var(--surface);border-radius:var(--radius-lg);border:1px solid var(--border);flex-direction:column;gap:10px;width:100%;max-width:420px;margin-bottom:16px;padding:16px;display:flex}@keyframes fadein{0%{opacity:0}to{opacity:1}}.voice-btn{background:var(--surface-2);border:1px solid var(--border);cursor:pointer;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;font-size:18px;transition:background .15s;display:flex}.voice-btn:active{transform:scale(.95)}.voice-btn-recording{background:var(--accent);border-color:var(--accent);animation:1s ease-in-out infinite pulse}.voice-controls{flex-shrink:0;gap:4px;display:flex}.voice-btn-play{width:32px;height:32px;font-size:14px}.voice-btn-delete{width:32px;height:32px;color:var(--text-muted);font-size:12px}.history-item{background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);flex-direction:column;gap:6px;padding:12px;display:flex}.history-item .word{color:var(--gold);font-size:18px;font-weight:800}.history-item .meta{color:var(--text-muted);font-size:12px}.history-item .spies{gap:8px;margin-top:4px;display:flex}
