:root{--bg:#f6f5f2;--surface:#fff;--text:#1d1d1f;--text-sub:#6b6b70;--border:#e3e1dc;--primary:#3d5afe;--primary-text:#fff;--danger:#d93838;--radius:18px;--tap:56px;color:var(--text);background:var(--bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;font-family:-apple-system,BlinkMacSystemFont,Apple SD Gothic Neo,Pretendard,Malgun Gothic,Noto Sans KR,sans-serif;font-size:18px;line-height:1.5}.theme-night{--bg:#0b0b10;--surface:#17171f;--text:#d6d6de;--text-sub:#8a8a96;--border:#2a2a35;--primary:#4a4a68;--primary-text:#e8e8f0}*{box-sizing:border-box}body{min-height:100dvh;color:var(--text);background:var(--bg);margin:0}button{font:inherit;color:inherit;cursor:pointer}.page{max-width:480px;min-height:100dvh;padding:16px 16px calc(24px + env(safe-area-inset-bottom));margin:0 auto}.home{padding-top:calc(32px + env(safe-area-inset-top))}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.home-header{text-align:center;padding:56px 4px 32px}.logo{letter-spacing:-.03em;color:var(--primary);margin:0;font-size:3rem;font-weight:800}.tagline{color:var(--text-sub);margin:8px 0 0;font-size:1.15rem}.tool-list{flex-direction:column;gap:14px;margin:0;padding:0;list-style:none;display:flex}.tool-card{text-align:left;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);align-items:center;gap:16px;width:100%;min-height:96px;padding:18px 20px;transition:transform .1s;display:flex;box-shadow:0 1px 2px #0000000a}.tool-card:active{transform:scale(.98)}.tool-emoji{font-size:2.4rem;line-height:1}.tool-text{flex-direction:column;flex:1;gap:2px;display:flex}.tool-name{font-size:1.25rem;font-weight:700}.tool-desc{color:var(--text-sub);font-size:.9rem}.tool-tag{color:var(--text-sub);background:var(--bg);border-radius:999px;flex-shrink:0;padding:4px 10px;font-size:.8rem}.top-bar{min-height:var(--tap);justify-content:center;align-items:center;margin-bottom:16px;display:flex;position:relative}.top-bar-back{min-height:44px;color:var(--text-sub);background:0 0;border:none;padding:0 8px;font-size:.95rem;position:absolute;left:-8px}.top-bar-title{margin:0;font-size:1.2rem;font-weight:700}.btn{min-height:var(--tap);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:0 20px;font-size:1.1rem;font-weight:700}.btn:active:not(:disabled){transform:scale(.98)}.btn:disabled{cursor:not-allowed;opacity:.45}.btn-primary{color:var(--primary-text);background:var(--primary);border-color:var(--primary)}.btn-block{width:100%}.link-btn{min-height:44px;color:var(--text-sub);text-underline-offset:3px;background:0 0;border:none;padding:0 4px;font-size:.95rem;text-decoration:underline}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:14px;padding:16px 14px 6px}.section-head{justify-content:space-between;align-items:center;display:flex}.section-title{margin:0 0 8px;font-size:1.05rem;font-weight:700}.section-hint{color:var(--text-sub);margin:-4px 0 6px;font-size:.85rem}.row{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;min-height:60px;display:flex}.section-title+.row,.section-hint+.row{border-top:none}.row-label{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.row-sub{color:var(--text-sub);flex-basis:100%;font-size:.8rem}.role-emoji{font-size:1.3rem}.team-badge{border-radius:999px;padding:2px 8px;font-size:.72rem;font-weight:600}.team-mafia{color:#b42323;background:#fde8e8}.team-citizen{color:#1f5fbf;background:#e5efff}.role-total{text-align:center;border-radius:12px;margin:4px 0 10px;padding:10px;font-weight:700}.role-total.ok{color:#1d7a3d;background:#e6f6eb}.role-total.bad{color:var(--danger);background:#fdeaea}.stepper{flex-shrink:0;align-items:center;gap:4px;display:flex}.stepper-btn{background:var(--bg);border:1px solid var(--border);border-radius:12px;width:42px;height:42px;font-size:1.4rem;line-height:1}.stepper-btn:disabled{opacity:.35}.stepper-value{white-space:nowrap;text-align:center;min-width:42px;font-size:1.2rem;font-weight:700}.stepper-value small{color:var(--text-sub);margin-left:2px;font-size:.8rem;font-weight:400}.toggle-row{border-top:1px solid var(--border);cursor:pointer;justify-content:space-between;align-items:center;gap:12px;min-height:64px;display:flex;position:relative}.section-title+.toggle-row{border-top:none}.toggle-text{flex-direction:column;display:flex}.toggle-text small{color:var(--text-sub);font-size:.8rem}.toggle-input{opacity:0;pointer-events:none;position:absolute}.toggle-switch{background:var(--border);border-radius:999px;flex-shrink:0;width:52px;height:32px;transition:background .15s;position:relative}.toggle-switch:after{content:"";background:#fff;border-radius:50%;width:26px;height:26px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0003}.toggle-input:checked+.toggle-switch{background:var(--primary)}.toggle-input:checked+.toggle-switch:after{transform:translate(20px)}.toggle-input:focus-visible+.toggle-switch{outline:3px solid var(--primary);outline-offset:2px}.notices{flex-direction:column;gap:8px;margin-bottom:14px;display:flex}.notice{border-radius:12px;margin:0;padding:12px 14px;font-size:.92rem}.notice-error{color:var(--danger);background:#fdeaea}.notice-warn{color:#8a5a00;background:#fff4d6}.bottom-action{padding:12px 0 calc(8px + env(safe-area-inset-bottom));background:linear-gradient(transparent, var(--bg) 30%);position:sticky;bottom:0}.reveal-top{min-height:var(--tap);justify-content:space-between;align-items:center;display:flex}.reveal-progress{color:var(--text-sub);font-weight:700}.center-block{text-align:center;flex-direction:column;align-items:center;gap:14px;padding:32px 0;display:flex}.center-block .btn{margin-top:8px}.big-emoji{margin:0;font-size:4rem;line-height:1}.big-text{margin:0;font-size:1.7rem;font-weight:800;line-height:1.3}.sub-text{color:var(--text-sub);margin:-6px 0 0;font-size:1.1rem}.hint-text{color:var(--text-sub);margin:-4px 0 0;font-size:.85rem}.text-input{width:100%;min-height:60px;font:inherit;text-align:center;color:var(--text);background:var(--surface);border:2px solid var(--border);border-radius:var(--radius);padding:0 16px;font-size:1.3rem}.text-input:focus{border-color:var(--primary);outline:none}.hold-card{background:var(--surface);border:2px dashed var(--border);touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;border-radius:24px;justify-content:center;align-items:center;width:100%;min-height:300px;padding:20px;display:flex}.hold-card.is-shown{border-style:solid;border-color:var(--primary)}.hold-card-hint{color:var(--text-sub);font-size:1.15rem}.role-card{flex-direction:column;align-items:center;gap:8px;display:flex}.role-card-emoji{font-size:4.5rem;line-height:1}.role-card-name{font-size:2rem;font-weight:800}.role-card-desc{color:var(--text-sub);margin:4px 0 0;font-size:.95rem}.mafia-mates{background:#b4232326;border-radius:12px;width:100%;margin-top:6px;padding:10px 14px;font-size:.95rem}.mafia-mates p{margin:0;font-weight:700}.mafia-mates ul{margin:4px 0 0;padding:0;list-style:none}.mafia-mates em{color:var(--text-sub);font-size:.85rem}.turn-name{margin:12px 0 0;font-size:1.3rem;font-weight:700}.night-action{flex-direction:column;gap:12px;padding-top:8px;display:flex}.night-who{color:var(--text-sub);margin:0;font-size:.95rem}.night-prompt{margin:-6px 0 0;font-size:1.4rem;font-weight:800}.info-box{background:var(--surface);border:1px solid var(--border);border-radius:14px;flex-direction:column;justify-content:center;gap:4px;min-height:112px;padding:12px 14px;font-size:.95rem;display:flex}.info-box p{margin:0}.info-sub{color:var(--text-sub)}.info-result{font-size:1.15rem}.name-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.name-btn{text-align:left;background:var(--surface);border:2px solid var(--border);border-radius:14px;align-items:center;gap:10px;min-height:60px;padding:0 12px;display:flex}.name-btn-no{text-align:center;background:var(--bg);border-radius:50%;flex-shrink:0;width:28px;height:28px;font-size:.85rem;font-weight:700;line-height:28px}.name-btn-name{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.name-btn:disabled{cursor:default;opacity:.35}.name-btn.is-dead .name-btn-name{text-decoration:line-through}.name-btn.is-selected{border-color:var(--primary-text);box-shadow:inset 0 0 0 1px var(--primary-text)}.night-done{margin-top:4px}.announce{margin:0;font-size:1.25rem;line-height:1.5}.announce-sub{border-top:1px solid var(--border);padding-top:12px;font-size:1.05rem}.reveal-chip{background:var(--surface);border:2px solid var(--primary);border-radius:999px;margin:0;padding:10px 16px;font-weight:700}.timer{font-variant-numeric:tabular-nums;letter-spacing:-.02em;margin:8px 0 0;font-size:5.5rem;font-weight:800;line-height:1}.timer.is-urgent{color:var(--danger)}.timer-note{color:var(--danger);margin:0;font-weight:700}.vote{flex-direction:column;gap:12px;padding-top:16px;display:flex}.vote .big-text,.vote .sub-text,.vote .hint-text{text-align:center}.vote .name-btn:active{border-color:var(--primary)}.player-status{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-top:28px;padding:14px;font-size:.9rem}.player-status-title{margin:0 0 6px;font-weight:700}.chip-list{flex-wrap:wrap;gap:6px;margin:0 0 12px;padding:0;list-style:none;display:flex}.chip{background:var(--bg);border-radius:999px;padding:4px 10px}.chip.is-dead{color:var(--text-sub);text-decoration:line-through}.player-status-rule{color:var(--text-sub);margin:0;font-size:.8rem}.end-banner{text-align:center;border-radius:24px;flex-direction:column;align-items:center;gap:6px;margin-top:8px;padding:28px 16px;display:flex}.end-banner.is-mafia{color:#fff;background:#2a1f2d}.end-banner.is-citizen{background:#e5efff}.end-message{margin:0;font-size:1.05rem}.end-day{opacity:.7;margin:0;font-size:.85rem}.result-list{flex-direction:column;gap:8px;margin:20px 0;padding:0;list-style:none;display:flex}.result-row{background:var(--surface);border:1px solid var(--border);border-radius:14px;align-items:center;gap:12px;padding:12px 14px;display:flex}.result-row.is-dead{opacity:.7}.result-emoji{font-size:1.8rem}.result-text{flex-direction:column;display:flex}.result-name{font-weight:700}.win-mark{color:var(--primary);font-size:.75rem}.result-sub{color:var(--text-sub);font-size:.85rem}.end-actions{flex-direction:column;gap:10px;display:flex}.speech-caption{right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:10;color:#fff;border-radius:var(--radius);background:#14141ceb;max-width:456px;margin:0 auto;padding:16px 18px;font-size:1.2rem;font-weight:700;line-height:1.4;position:fixed;left:12px;box-shadow:0 6px 24px #00000040}.game-menu{gap:6px;display:flex}.icon-btn{background:var(--surface);border:1px solid var(--border);border-radius:12px;width:44px;height:44px;font-size:1.15rem}.icon-btn:disabled{opacity:.4}.sheet-backdrop{z-index:20;background:#00000080;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{width:100%;max-width:480px;max-height:85dvh;color:var(--text);background:var(--bg);border-radius:24px 24px 0 0;flex-direction:column;display:flex}.sheet-head{justify-content:space-between;align-items:center;padding:14px 16px 6px 20px;display:flex}.sheet-title{margin:0;font-size:1.2rem}.sheet-close{background:0 0;border:none;width:44px;height:44px;font-size:1.1rem}.sheet-body{padding:4px 16px calc(20px + env(safe-area-inset-bottom));overflow-y:auto}.sheet-body .player-status{margin-top:0}.menu-list{flex-direction:column;gap:8px;display:flex}.menu-item{min-height:var(--tap);text-align:left;background:var(--surface);border:1px solid var(--border);border-radius:14px;flex-direction:column;justify-content:center;align-items:flex-start;padding:8px 16px;font-size:1.05rem;font-weight:600;display:flex}.menu-item small{color:var(--text-sub);font-size:.8rem;font-weight:400}.menu-item-danger{color:var(--danger)}.rules h3{margin:16px 0 8px;font-size:1rem}.rules h3:first-child{margin-top:4px}.rules ul{margin:0;padding-left:20px;font-size:.92rem}.rules li{margin-bottom:4px}.rules-roles{flex-direction:column;gap:8px;list-style:none;display:flex;padding:0!important}.rules-roles li{background:var(--surface);border-radius:12px;flex-direction:column;padding:10px 12px;display:flex}.rules-role-head{align-items:center;gap:6px;display:flex}.rules-role-desc{color:var(--text-sub);font-size:.88rem}.rules-btn{margin-bottom:14px}.resume-card{border-radius:var(--radius);background:#fff7e0;border:1px solid #f1dc9e;flex-direction:column;gap:10px;margin-bottom:18px;padding:16px;display:flex}.resume-card p{margin:0}.resume-title{font-weight:700}.resume-sub{color:var(--text-sub);font-size:.9rem}.resume-actions{gap:8px;display:flex}.resume-actions .btn{flex:1;min-height:48px;font-size:1rem}.confirm-backdrop{z-index:30;background:#0000008c;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.confirm{width:100%;max-width:360px;color:var(--text);text-align:center;background:var(--bg);border-radius:22px;padding:24px 20px 20px;box-shadow:0 10px 40px #0000004d}.confirm-message{margin:0;font-size:1.2rem;font-weight:800;line-height:1.4}.confirm-detail{color:var(--text-sub);margin:8px 0 0;font-size:.92rem}.confirm-actions{gap:10px;margin-top:20px;display:flex}.confirm-actions .btn{flex:1}.btn-danger{color:#fff;background:var(--danger);border-color:var(--danger)}.name-count{color:var(--primary);font-weight:700}.names-input{width:100%;font:inherit;color:var(--text);resize:vertical;background:var(--bg);border:2px solid var(--border);border-radius:14px;padding:12px 14px;font-size:1.05rem;line-height:1.6}.names-input:focus,.add-input:focus{border-color:var(--primary);outline:none}.add-row{gap:8px;margin-top:8px;display:flex}.add-input{min-width:0;min-height:48px;font:inherit;color:var(--text);background:var(--bg);border:2px solid var(--border);border-radius:14px;flex:1;padding:0 14px}.add-btn{min-height:48px;font-size:1rem}.name-tools{flex-wrap:wrap;justify-content:space-between;margin:4px 0;display:flex}.link-btn:disabled{cursor:default;opacity:.4}.segmented{background:var(--bg);border-radius:14px;gap:4px;margin-bottom:4px;padding:4px;display:flex}.segmented button{min-height:44px;color:var(--text-sub);background:0 0;border:none;border-radius:10px;flex:1;font-size:.95rem;font-weight:600}.segmented button.is-active{color:var(--text);background:var(--surface);box-shadow:0 1px 3px #0000001f}.split-btn{margin:4px 0 8px}.team-results{flex-direction:column;gap:12px;padding-top:12px;scroll-margin-top:12px;display:flex}.team-card{background:var(--surface);border:1px solid var(--border);border-left:8px solid var(--team);border-radius:var(--radius);padding:14px 16px}.team-card-head{justify-content:space-between;align-items:baseline;margin-bottom:8px;display:flex}.team-card-name{color:var(--team);font-size:1.3rem;font-weight:800}.team-card-count{color:var(--text-sub);font-size:.9rem}.team-members{flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;display:flex}.team-members li{background:var(--bg);border-radius:999px;padding:6px 12px;font-size:1.05rem;font-weight:600}.team-actions{gap:10px;display:flex}.toast{bottom:calc(24px + env(safe-area-inset-bottom));z-index:15;color:#fff;white-space:nowrap;background:#14141ce6;border-radius:999px;padding:12px 18px;font-size:.95rem;font-weight:600;position:fixed;left:50%;transform:translate(-50%)}.placeholder{text-align:center;color:var(--text-sub);padding:80px 0}.placeholder-emoji{margin:0;font-size:3rem}
