.modal-backdrop{z-index:100;background:#000000a6;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.timer-settings{color:#e0e0e0;background:#1a1a2e;border:1px solid #0f3460;border-radius:12px;width:100%;max-width:380px;padding:20px;box-shadow:0 8px 30px #00000080}.timer-settings h3{margin:0 0 8px}.timer-rows{flex-direction:column;gap:8px;margin:16px 0;display:flex}.timer-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.timer-row label{color:silver}.timer-input-wrap{align-items:center;gap:6px;display:flex}.timer-row input{color:#e0e0e0;text-align:right;box-sizing:border-box;background:#0f3460;border:1px solid #0f3460;border-radius:4px;width:80px;padding:8px;font-size:1rem}.timer-unit{color:#a0a0a0;font-size:.85rem}.preset-row{gap:8px;margin-bottom:16px;display:flex}.modal-actions{gap:8px;display:flex}.modal-actions .btn{flex:1}.lobby{color:#e0e0e0;box-sizing:border-box;background:#1a1a2e;min-height:100vh;padding:20px 16px 40px}.lobby.setup,.lobby.waiting-room{max-width:640px;margin:0 auto}.lobby-header{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px;display:flex}.lobby-header h2{margin:0 0 4px}.player-total{background:#16213e;border:1px solid #0f3460;border-radius:10px;justify-content:space-between;align-items:center;margin-bottom:16px;padding:14px 18px;font-size:1.05rem;display:flex}.player-total strong{color:#4caf50;font-variant-numeric:tabular-nums;font-size:1.8rem}.role-row{border-bottom:1px solid #0f3460;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;display:flex}.role-row:last-child{border-bottom:none}.role-name{color:#d6d6e0;font-size:.95rem}.role-count{text-align:center;font-variant-numeric:tabular-nums;min-width:26px;font-size:1.1rem}.btn-counter{color:#e0e0e0;background:#0f3460;border-radius:8px;width:36px;height:36px;padding:0;font-size:1.2rem;line-height:1}.timers-group{border-left-color:#2196f3;margin-top:16px}.timers-group .timer-rows{margin:8px 0 0}.toggle-btn{color:silver;text-align:left;cursor:pointer;background:#16213e;border:1px solid #0f3460;border-radius:10px;width:100%;margin:8px 0 16px;padding:14px;font-size:.95rem}.toggle-btn.on{color:#4caf50;background:#12261a;border-color:#4caf50}.player-badges{flex-wrap:wrap;gap:8px;display:flex}.player-badge{background:#0f3460;border-radius:8px;padding:8px 12px;font-size:.95rem}.player-badge.self{color:#90caf9;border:1px solid #2196f3}.start-countdown{text-align:center;background:#16213e;border:1px solid #4caf50;border-radius:12px;margin-bottom:16px;padding:20px}.countdown-number{color:#4caf50;font-variant-numeric:tabular-nums;font-size:3.2rem;font-weight:700}.start-countdown p{color:#a0a0a0;margin:4px 0 0}.waiting-actions{gap:10px;margin-top:16px;display:flex}.waiting-actions .btn-primary{flex:1}.waiting-room .players-list{margin-top:16px}@media (width<=520px){.lobby{padding:14px 12px 32px}.waiting-actions{flex-direction:column}}.night-phase{background:#16213e;border-radius:8px;padding:16px}.target-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin-bottom:16px;display:grid}.btn-target{background:#0f3460;border:2px solid #0000;padding:12px 8px}.btn-target.selected{background:#4caf50;border-color:#81c784}.ability-section{border-bottom:1px solid #0f3460;margin-bottom:20px;padding-bottom:20px}.seance-input{gap:8px;margin-top:12px;display:flex}.seance-input input{color:#e0e0e0;background:#0f3460;border:1px solid #1a1a5e;border-radius:4px;flex:1;padding:8px}.submitted-indicator{text-align:center;color:#888;margin-top:12px;font-size:.9rem}.trial-phase{background:#16213e;border-radius:8px;padding:16px}.trial-timer{font-variant-numeric:tabular-nums;color:#ffca28;margin:4px 0 10px;font-size:1.4rem;font-weight:700}.trial-vote-buttons{gap:12px;margin-top:16px;display:flex}.btn-guilty{background:#f44336;flex:1}.btn-innocent{background:#4caf50;flex:1}.btn-guilty.selected,.btn-innocent.selected{border:3px solid #fff;box-shadow:0 0 0 2px #ffffff40}.trial-waiting{color:#ffca28;text-align:center;background:#1b2946;border-radius:8px;margin-top:16px;padding:12px;font-weight:600}.btn-abstain{background:#9e9e9e;flex:1}.dead-chat{background:#1a1a2e;border:1px solid #ff6b6b;border-radius:8px;padding:12px}.dead-chat-messages{max-height:200px;margin-bottom:8px;font-size:.85rem;overflow-y:auto}.dead-chat-msg{color:#f99;padding:2px 0}.dead-chat-input{gap:4px;display:flex}.dead-chat-input input{color:#e0e0e0;background:#0f3460;border:1px solid #0f3460;border-radius:4px;flex:1;padding:6px}.jester-haunt{background:#2a1a2e;border:1px solid #9c27b0;border-radius:6px;margin-bottom:10px;padding:8px}.jester-haunt h5{color:#ce93d8;margin:0 0 8px}.jester-haunt .btn-danger{color:#fff;cursor:pointer;background:#9c27b0;border:none;border-radius:4px;margin-top:8px;padding:8px 16px}.jester-haunt .btn-danger:hover{background:#7b1fa2}.home-screen{color:#e6e8f0;box-sizing:border-box;background:radial-gradient(circle at top,#1d2b4f 0%,#121a2d 55%,#0d1322 100%);min-height:100vh;padding:0 0 32px}.home-header{z-index:20;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#10182bf2;border-bottom:1px solid #22304d;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;display:flex;position:sticky;top:0}.phase-line{align-items:center;gap:8px;font-weight:600;display:flex}.phase-dot{background:#90a4ae;border-radius:50%;width:10px;height:10px}.phase-dot.phase-night{background:#7986cb;box-shadow:0 0 10px #7986cb}.phase-dot.phase-day_discussion{background:#ffca28;box-shadow:0 0 10px #ffca28}.phase-dot.phase-day_voting{background:#4dd0e1;box-shadow:0 0 10px #4dd0e1}.phase-dot.phase-trial_defense,.phase-dot.phase-trial_vote{background:#ef5350;box-shadow:0 0 10px #ef5350}.phase-day{color:#8fa3c8;font-weight:500}.time-left{font-variant-numeric:tabular-nums;color:#e6e8f0;font-size:1.35rem;font-weight:700}.time-left.low{color:#ff5252;animation:1s infinite pulse}.home-status{align-items:center;gap:10px;padding:10px 18px;font-size:.9rem;display:flex}.status-alive{color:#66bb6a;font-weight:600}.status-dead{color:#ef5350;font-weight:600}.home-actions{grid-template-columns:repeat(2,1fr);gap:12px;max-width:560px;margin:0 auto;padding:8px 16px 0;display:grid}.home-action{color:#e6e8f0;cursor:pointer;background:#17223a;border:1px solid #26365a;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:104px;padding:16px 12px;font-size:1rem;font-weight:600;transition:transform .1s,border-color .15s,background .15s;display:flex;position:relative}.home-action:active{transform:scale(.98)}.home-action:hover{background:#1b2946;border-color:#3b5488}.home-action.disabled,.home-action:disabled{opacity:.42;cursor:not-allowed}.action-icon{font-size:1.7rem;line-height:1}.action-warning{color:#ffca28;text-align:center;font-size:.68rem;font-weight:600;position:absolute;bottom:6px;left:8px;right:8px}.action-ok{color:#66bb6a;font-size:.68rem;font-weight:600;position:absolute;bottom:6px}.badge{color:#fff;background:#ef5350;border-radius:10px;justify-content:center;align-items:center;min-width:20px;height:20px;padding:0 5px;font-size:.72rem;font-weight:700;display:flex;position:absolute;top:10px;right:10px}.dot{background:#42a5f5;border-radius:50%;width:10px;height:10px;position:absolute;top:12px;right:12px;box-shadow:0 0 8px #42a5f5}.dot.small{width:7px;height:7px;margin-left:6px;display:inline-block;position:static}.home-modal{background:#141d31;border:1px solid #26365a;border-radius:18px;flex-direction:column;width:100%;max-width:520px;max-height:86vh;display:flex;overflow:hidden;box-shadow:0 18px 50px #0009}.modal-head{border-bottom:1px solid #22304d;justify-content:space-between;align-items:center;padding:16px 18px;display:flex}.modal-head h3{margin:0;font-size:1.1rem}.close-btn{color:#8fa3c8;cursor:pointer;background:0 0;border:none;padding:0 4px;font-size:1.6rem;line-height:1}.modal-body{padding:16px 18px 24px;overflow-y:auto}.censor-panel{box-sizing:border-box;text-align:left;color:#dbe2f2;cursor:pointer;background:linear-gradient(145deg,#2c3a58,#202c47);border:1px solid #3a4d75;border-radius:12px;width:100%;min-height:66px;margin-bottom:10px;padding:16px;font-size:.98rem;transition:background .2s,border-color .2s;display:block}.censor-panel.revealed{cursor:default;background:#101828;border-color:#3b5488}.censor-label{color:#93a6c9;letter-spacing:.02em;font-weight:600;display:block}.revealed-role-name{margin-bottom:6px;font-size:1.4rem;font-weight:700}.faction-pill{letter-spacing:.04em;color:#cfd8dc;background:#37474f;border-radius:999px;padding:2px 8px;font-size:.7rem;font-weight:700;display:inline-block}.faction-pill.town{color:#a5d6a7;background:#1b5e20}.faction-pill.mafia{color:#ef9a9a;background:#7f1d1d}.faction-pill.neutral{color:#ffcc80;background:#7a4a00}.day-ability{flex-direction:column;gap:16px;display:flex}.ability-block h4{margin:0 0 4px}.alert-log{flex-direction:column;gap:14px;display:flex}.alert-day-title{color:#8fa3c8;margin-bottom:6px;font-weight:700}.alert-item{background:#1b2946;border-left:3px solid #42a5f5;border-radius:6px;margin-bottom:6px;padding:8px 10px;font-size:.92rem}.alert-item.global{color:#ffe7a3;background:#2c2614;border-left-color:#ffca28}.alert-item.none{color:#7d8aa3;border-left-color:#37474f}.tab-row{gap:8px;margin-bottom:14px;display:flex}.tab-row.wrap{flex-wrap:wrap}.tab{color:#93a6c9;cursor:pointer;background:#17223a;border:1px solid #26365a;border-radius:8px;flex:1;padding:9px 10px;font-weight:600}.tab.active{color:#e6e8f0;background:#22345a;border-color:#4c74c9}.whisper-panel{flex-direction:column;gap:14px;display:flex}.whisper-players{flex-wrap:wrap;gap:8px;display:flex}.whisper-player{color:#dbe2f2;cursor:pointer;background:#17223a;border:1px solid #26365a;border-radius:999px;padding:8px 12px}.whisper-player.selected{background:#22345a;border-color:#4c74c9}.whisper-thread{flex-direction:column;gap:10px;display:flex}.whisper-messages{flex-direction:column;gap:8px;max-height:220px;display:flex;overflow-y:auto}.whisper-message{border-radius:10px;flex-direction:column;gap:2px;max-width:85%;padding:8px 10px;font-size:.92rem;display:flex}.whisper-message.mine{background:#1e3a5f;align-self:flex-end}.whisper-message.theirs{background:#1b2946;align-self:flex-start}.whisper-from{color:#8fa3c8;font-size:.7rem;font-weight:700}.whisper-input{gap:8px;display:flex}.whisper-input input{color:#e6e8f0;background:#101828;border:1px solid #26365a;border-radius:8px;flex:1;padding:10px;font-size:.95rem}.vote-list{flex-direction:column;gap:8px;margin-bottom:12px;display:flex}.vote-row{color:#e6e8f0;cursor:pointer;background:#17223a;border:1px solid #26365a;border-radius:10px;justify-content:space-between;align-items:center;padding:12px 14px;font-size:1rem;display:flex}.vote-row.selected{background:#22345a;border-color:#4c74c9}.vote-row:disabled{opacity:.55;cursor:default}.vote-tally{text-align:center;font-variant-numeric:tabular-nums;color:#93a6c9;min-width:30px;font-weight:700}.vote-tally.majority{color:#ff5252}.notes-area{box-sizing:border-box;color:#e6e8f0;resize:vertical;background:#101828;border:1px solid #26365a;border-radius:10px;width:100%;min-height:240px;padding:12px;font-family:inherit;font-size:.95rem;line-height:1.5}.composition-list,.graveyard-list{flex-direction:column;gap:6px;display:flex}.composition-row,.graveyard-row{background:#17223a;border-radius:8px;justify-content:space-between;align-items:center;gap:10px;padding:9px 12px;font-size:.92rem;display:flex}.mafia-name{color:#ef9a9a}.grave-name{font-weight:600}.grave-role{color:#8fa3c8;text-align:center;flex:1}.grave-cause{color:#ef9a9a;text-align:right;font-size:.82rem}.codex-text{font-size:.94rem;line-height:1.55}.codex-text ul{padding-left:18px}.role-catalog{flex-direction:column;gap:6px;display:flex}.catalog-row{background:#17223a;border-radius:8px;overflow:hidden}.catalog-head{color:#e6e8f0;cursor:pointer;background:0 0;border:none;justify-content:space-between;align-items:center;width:100%;padding:10px 12px;font-size:.94rem;display:flex}.catalog-detail{color:#b9c4dc;padding:0 12px 12px;font-size:.88rem}.catalog-abilities,.catalog-immune{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.catalog-abilities span,.catalog-immune span{background:#22304d;border-radius:999px;padding:3px 8px;font-size:.72rem}.host-reset-actions{flex-direction:column;gap:8px;margin-top:12px;display:flex}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@media (width>=560px){.home-screen{padding-bottom:48px}.home-actions{grid-template-columns:repeat(3,1fr)}}@media (width<=400px){.home-action{min-height:94px;font-size:.9rem}.action-icon{font-size:1.5rem}}.game-over{color:#e0e0e0;background:#1a1a2e;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;padding:16px;display:flex}.winner-faction{margin:16px 0;font-size:1.5rem;font-weight:700}.final-players{width:100%;max-width:400px;margin-top:32px}.final-player{background:#16213e;border-radius:4px;justify-content:space-between;margin-bottom:4px;padding:8px 12px;display:flex}.final-players.winners .final-player{background:#1b3a24;border:1px solid #4caf50}.final-player.winner-row{border-left:3px solid #ffb300}.final-player-name{font-weight:600}.final-player-role{text-align:center;color:#9fb0cc;flex:1;font-size:.88rem}.final-player-status{color:#9fb0cc;text-align:right;min-width:42px;font-size:.78rem}.game-over-actions{text-align:center;margin-top:24px}.game-board{color:#e0e0e0;background:#1a1a2e;min-height:100vh}.game-header{z-index:10;background:#16213e;border-bottom:1px solid #0f3460;justify-content:space-between;align-items:center;padding:12px 16px;display:flex;position:sticky;top:0}.phase-indicator{font-size:1.1rem;font-weight:700}.day-count{color:#a0a0a0}.timer{font-variant-numeric:tabular-nums;font-size:1.3rem;font-weight:700}.timer-low{color:#f44336;animation:1s infinite pulse}.host-controls{align-items:center;gap:6px;display:flex}.host-controls .btn-sm{padding:6px 10px}.game-content{grid-template-columns:1fr 340px;gap:16px;max-width:1200px;margin:0 auto;padding:16px;display:grid}@media (width<=768px){.game-content{grid-template-columns:1fr}}.main-area{min-height:400px}.sidebar{flex-direction:column;gap:12px;display:flex}.public-log{background:#16213e;border-radius:8px;max-height:300px;padding:12px;overflow-y:auto}.public-log h4{margin:0 0 8px}.log-entry{color:silver;border-bottom:1px solid #0f3460;padding:4px 0;font-size:.85rem}.deaths-section{background:#2a1215;border-radius:6px;margin-bottom:8px;padding:8px}.death-entry{color:#ff6b6b;padding:2px 0;font-size:.9rem}.seance-box{background:#1a1a40;border:1px solid #6a5acd;border-radius:8px;padding:12px}.seance-message{padding:4px 0;font-size:.9rem}.home-container{background:linear-gradient(135deg,#0f3460,#16213e);justify-content:center;align-items:center;min-height:100vh;padding:16px;display:flex}.card{color:#e0e0e0;text-align:center;background:#1a1a2e;border-radius:12px;width:100%;max-width:400px;padding:32px;box-shadow:0 4px 20px #0006}.card h1{margin:0 0 8px;font-size:2rem}.subtitle{color:#a0a0a0;margin-bottom:24px}.button-group{flex-direction:column;gap:12px;display:flex}.btn{cursor:pointer;border:none;border-radius:6px;padding:12px 20px;font-size:1rem;font-weight:600;transition:opacity .2s}.btn:hover{opacity:.9}.btn:disabled{opacity:.4;cursor:not-allowed}.btn-primary{color:#fff;background:#4caf50}.btn-secondary{color:#fff;background:#2196f3}.btn-ghost{color:#a0a0a0;background:0 0;border:1px solid #0f3460}.btn-large{width:100%;margin-top:16px}.btn-sm{padding:4px 10px;font-size:.9rem}.form-group{text-align:left;margin-bottom:16px}.form-group label{color:silver;margin-bottom:6px;display:block}.form-group input{box-sizing:border-box;color:#e0e0e0;background:#0f3460;border:1px solid #0f3460;border-radius:4px;width:100%;padding:10px;font-size:1rem}.lobby{color:#e0e0e0;background:#1a1a2e;max-width:800px;min-height:100vh;margin:0 auto;padding:16px}.lobby-header{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.room-code{font-size:1.1rem}.players-list{background:#16213e;border-radius:8px;margin-bottom:16px;padding:12px}.players-list h3{margin:0 0 8px}.player-badge{background:#0f3460;border-radius:4px;margin:4px;padding:6px 10px;display:inline-block}.role-setup h3{margin-top:0}.hint{color:#a0a0a0;font-size:.9rem}.role-group{background:#16213e;border-left:4px solid;border-radius:8px;margin-bottom:12px;padding:12px}.role-group h4{margin:0 0 8px}.role-row{border-bottom:1px solid #0f3460;justify-content:space-between;align-items:center;padding:6px 0;display:flex}.role-info{align-items:center;gap:8px;display:flex}.role-name{font-size:.95rem}.unique-badge{color:#000;background:#ff9800;border-radius:3px;padding:2px 6px;font-size:.7rem;font-weight:700}.role-controls{align-items:center;gap:6px;display:flex}.role-count{text-align:center;min-width:24px}.spinner{border:3px solid #0f3460;border-top-color:#2196f3;border-radius:50%;width:40px;height:40px;margin:16px auto;animation:1s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.waiting{text-align:center;color:#a0a0a0;padding:32px}.text-green{color:#4caf50}.text-red{color:#f44336}.lobby-controls{align-items:center;gap:8px;margin-bottom:16px;display:flex}.btn-dev-on{color:#000;background:#ff9800}.dev-indicator{color:#ff9800;background:#2a2a00;border:1px solid #ff9800;border-radius:4px;padding:4px 10px;font-size:.9rem}.role-select{color:#e0e0e0;background:#0f3460;border:1px solid #0f3460;border-radius:4px;max-width:220px;padding:6px 8px;font-size:.95rem}.error-banner{color:#fff;z-index:200;cursor:pointer;text-align:center;background:#7f1d1d;border:1px solid #f44336;border-radius:6px;max-width:90vw;padding:10px 18px;position:fixed;top:12px;left:50%;transform:translate(-50%);box-shadow:0 4px 14px #00000080}
