:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--ink:#253a3b;--ink-deep:#142a2b;--paper:#f5efdf;--paper-light:#fffaf0;--paper-deep:#e9dfc9;--muted:#5e655e;--line:#c9bea8;--gold:#e8ba64;--red:#a63b30;--green:#2d654d;--z-page:1;--z-sticky:10;--z-toast:20;font-synthesis:none;font-family:PingFang SC,Microsoft YaHei,system-ui,sans-serif}*{box-sizing:border-box}body{min-height:100dvh;color:var(--ink);background:#263a3b;margin:0;font-size:16px;line-height:1.5}button,input,select{font:inherit;color:inherit}button{cursor:pointer;transition:transform .12s,opacity .12s}button:active:not(:disabled){transform:translateY(1px)}button:disabled{cursor:default;opacity:.57}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline-offset:3px;outline:3px solid #b65c23}button,input,select{-webkit-tap-highlight-color:transparent}h1,h2,h3,p{margin:0}h1,h2,h3{text-wrap:balance}p{text-wrap:pretty}h3{font-size:16px}small{font-size:12px}p{margin-bottom:12px}label{margin:12px 0 6px;font-size:14px;font-weight:600;display:block}input,select{border:1px solid var(--line);background:var(--paper-light);border-radius:8px;width:100%;min-width:0;min-height:44px;padding:9px 11px;display:block}input[type=checkbox]{width:18px;height:18px;min-height:18px;accent-color:var(--ink);flex:0 0 18px;display:inline-block}input[type=file]{font-size:13px}.check-label{align-items:center;gap:9px;margin:14px 0;font-weight:500;display:flex}.muted{color:var(--muted);font-size:13px}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.scenery{pointer-events:none;z-index:0;background-position:50%;background-size:cover;position:fixed;inset:0}.scenery:after{content:"";background:#10292a38;position:absolute;inset:0}body[data-scene=night] .scenery:after{background:#10232766}.app-header,.game-page,.home-page,.connection-notice{z-index:var(--z-page);max-width:1160px;margin:0 auto;position:relative}.app-header{color:#f8f2e4;justify-content:space-between;align-items:center;gap:16px;padding:20px 0;display:flex}.brand{color:inherit;letter-spacing:.12em;text-align:left;background:0 0;border:0;align-items:center;gap:12px;padding:0;font-size:28px;font-weight:700;display:flex}.brand small{letter-spacing:.13em;font-size:9px;font-weight:500;display:block}.brand-seal{color:#ffe2ab;outline-offset:3px;border:1px solid #e4c798;outline:1px solid #e4c79880;place-items:center;width:43px;height:43px;font:25px Songti SC,serif;display:grid}.header-actions{align-items:center;gap:10px;display:flex}.header-button,.profile-button{color:#f8f2e4;background:#172f30e8;border:1px solid #869084;border-radius:8px;min-height:44px;padding:8px 13px;font-size:14px}.profile-button{align-items:center;gap:8px;min-width:0;padding:5px 10px 5px 5px;display:flex}.profile-button>span:last-child{text-overflow:ellipsis;white-space:nowrap;max-width:8em;overflow:hidden}.player-avatar{object-fit:cover;background-color:#c6bba4;background-size:400% 300%;border-radius:6px;flex:0 0 42px;width:42px;height:42px;display:block}.profile-button .player-avatar{flex-basis:30px;width:30px;height:30px}.primary,.secondary,.danger{border:1px solid var(--ink);text-align:center;border-radius:8px;justify-content:center;align-items:center;gap:7px;min-height:46px;padding:10px 16px;font-size:16px;font-weight:650;line-height:1.3;display:inline-flex}.primary{color:#f8f2e4;background:var(--ink);box-shadow:0 3px 0 var(--ink-deep)}.primary:hover:not(:disabled){background:#345351}.secondary{color:var(--ink);background:var(--paper-light)}.danger{background:var(--red);color:#fff;border-color:var(--red)}.text-button{color:inherit;background:0 0;border:0;min-height:36px;padding:7px 4px;font-size:13px}.full{width:100%}.action-icon{width:19px;height:19px}.eyebrow{letter-spacing:.12em;color:var(--muted);font-size:11px;font-weight:600}.game-page,.home-page{padding-bottom:30px}.room-line{color:#f8f2e4;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px;display:flex}.room-line>div{align-items:center;gap:12px;min-width:0;display:flex}.room-line strong{text-overflow:ellipsis;white-space:nowrap;font-size:15px;overflow:hidden}.room-line span{white-space:nowrap;font-size:12px}.game-layout{grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:22px;display:grid}.play-surface{background:var(--paper);border:1px solid #cabb9c;border-radius:14px;overflow:hidden;box-shadow:0 14px 40px #0a141833}.phase-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;padding:18px 24px 15px;display:flex}.phase-eyebrow{color:var(--muted);margin-bottom:4px;font-size:12px;font-weight:600;display:block}.phase-heading h1{font:800 30px/1.2 Songti SC,STSong,serif}.phase-clock{text-align:center;font-variant-numeric:tabular-nums;flex-shrink:0}.phase-clock strong{letter-spacing:-.04em;font-size:36px;line-height:1;display:block}.phase-clock span{color:var(--muted);font-size:10px}.phase-clock.urgent{color:var(--red)}.focus-stage{align-items:center;gap:17px;min-height:90px;margin:18px 24px 0;display:flex}.focus-stage>div{min-width:0}.focus-stage h2{font-size:23px;line-height:1.3}.focus-stage p{color:var(--muted);overflow-wrap:anywhere;margin:6px 0 0;font-size:14px}.speaker-avatar{border:3px solid var(--ink);outline-offset:3px;border-radius:50%;outline:1px solid #8a998d;flex-basis:72px;width:72px;height:72px}.stage-seal{border:5px solid var(--paper-deep);background:var(--ink);width:66px;height:66px;color:var(--gold);border-radius:50%;flex:0 0 66px;place-items:center;font:27px Songti SC,serif;display:grid}.roster-heading{justify-content:space-between;align-items:center;gap:10px;margin:18px 24px 12px;font-size:13px;display:flex}.roster-heading span{color:var(--muted);font-size:12px}.roster{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 24px;display:grid}.player{min-width:0;min-height:108px;color:var(--ink);background:#fffcf4;border:1px solid #c7c4b3;border-radius:8px;flex-direction:column;align-items:center;gap:3px;padding:9px 5px 7px;display:flex;position:relative;box-shadow:0 2px #c6c1b280}.player .seat-no{font-variant-numeric:tabular-nums;color:var(--muted);font:700 12px Georgia,serif;position:absolute;top:5px;left:6px}.player strong{white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:14px;font-weight:650;line-height:1.3;overflow:hidden}.player small{color:var(--muted);font-size:11px;line-height:1.3}.player[aria-disabled=true]{cursor:default}.player.selectable:hover{border-color:var(--ink);background:#ececde}.player.selected{border:2px solid var(--ink);background:var(--ink);color:#f8f2e4;padding:8px 4px 6px}.player.selected .seat-no,.player.selected small{color:#f1dfb4}.player.selected:after{content:"✓ 已选";background:var(--gold);color:var(--ink-deep);border:1px solid var(--ink);border-radius:4px;padding:0 5px;font-size:10px;font-weight:750;position:absolute;top:-9px;right:3px}.player.selected:hover{background:var(--ink);color:#f8f2e4}.player.speaking{border:2px solid var(--green);background:#e4eada;padding:8px 4px 6px}.player.speaking:after{content:"发言中";background:var(--green);color:#fff;border-radius:4px;padding:1px 4px;font-size:10px;position:absolute;top:-9px;right:3px}.player.dead{color:#656b62;box-shadow:none;background:#e2e0d4;border-style:dashed}.player.dead .player-avatar{filter:grayscale();opacity:.52}.player.empty{background:#ede8d9;border-style:dashed;justify-content:center}.empty-seat{height:42px;color:var(--muted);font-size:26px}.action-dock{border-bottom:1px solid var(--line);margin:18px 24px 0;padding-bottom:16px}.action-intent{color:var(--muted);justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px;font-size:12px;display:flex}.action-intent strong{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:14px;overflow:hidden}.action-intent span{flex-shrink:0}.action-buttons{gap:10px;display:flex}.action-buttons>.primary{flex:1}.waiting-action{text-align:center;color:var(--muted);padding:10px 0;font-size:14px}.utility-row{grid-template-columns:repeat(3,1fr);margin:0 24px;padding:8px 0;display:grid}.utility-row button{background:0 0;border:0;min-height:42px;font-size:14px;font-weight:550;position:relative}.utility-row button+button{border-left:1px solid var(--line)}.notification-dot{background:var(--red);border-radius:50%;width:6px;height:6px;position:absolute;top:7px;right:7px}.voice-strip{background:var(--paper-deep);color:#48594f;justify-content:space-between;align-items:center;gap:8px;padding:9px 24px;font-size:12px;display:flex}.voice-strip button{background:0 0;border:0;min-height:24px;font-size:12px;text-decoration:underline}.game-side{gap:18px;display:grid}.side-card,.history-section{background:var(--paper);border:1px solid #cabb9c;border-radius:14px;padding:22px}.side-card h2,.history-section h2{margin:0 0 12px;font-size:22px}.config-list{grid-template-columns:auto 1fr;gap:9px 12px;margin:15px 0 20px;font-size:14px;display:grid}.config-list dt{color:var(--muted)}.config-list dd{text-align:right;margin:0}.night-status{background:var(--paper-deep);border-radius:6px;flex-wrap:wrap;gap:6px 12px;margin:12px 24px 0;padding:7px 10px;font-size:12px;display:flex}.night-status strong{margin-left:auto}.team-intentions>div{border-bottom:1px solid var(--line);justify-content:space-between;gap:8px;padding:9px 0;font-size:13px;display:flex}.team-intentions strong{font-size:14px}.consensus{color:var(--green);margin-top:12px;font-size:14px}.team-chat-log{max-height:240px;margin:10px 0;font-size:14px;overflow:auto}.team-chat-log strong{color:var(--muted);font-size:12px}.team-chat-log p{overflow-wrap:anywhere;margin:2px 0 12px}.inline-form{gap:8px;margin-top:12px;display:flex}.inline-form input{flex:1;min-width:0}.inline-form button{white-space:nowrap;flex-shrink:0;min-width:62px;padding:8px 11px;font-size:14px}.history-section{margin-top:20px}.record-row{border-bottom:1px solid var(--line);overflow-wrap:anywhere;gap:14px;padding:9px 0;font-size:14px;display:flex}.record-row time{color:var(--muted);font-variant-numeric:tabular-nums;flex-shrink:0;padding-top:2px;font-size:12px}.record-row small{color:var(--muted);margin-top:5px;display:block}.game-footer{color:#eee7d5;justify-content:space-between;align-items:center;gap:8px;padding-top:14px;font-size:12px;display:flex}.practice-bar{background:var(--paper-deep);border-radius:9px;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:14px;padding:10px 12px;display:flex}.practice-bar label{margin:0;font-size:12px}.practice-bar select{flex:1;width:auto;max-width:280px;min-height:36px;padding:6px 9px;font-size:13px}.practice-bar button{min-height:36px;padding:7px 10px;font-size:12px}.home-hero{grid-template-columns:1fr 1fr;align-items:center;gap:40px;min-height:630px;display:grid}.hero-copy{background:var(--paper);border:1px solid #cabb9c;border-radius:14px;padding:35px}.hero-copy h1{margin:16px 0 20px;font:700 54px/1.2 Songti SC,STSong,serif}.hero-copy>p{color:var(--muted);font-size:17px;line-height:1.8}.home-mode{background:var(--paper-deep);border-radius:8px;margin-top:22px;padding:4px;display:flex}.home-mode button{background:0 0;border:0;border-radius:5px;flex:1;min-height:39px;font-size:14px}.home-mode button[aria-pressed=true]{background:var(--ink);color:#f8f2e4}.home-actions{gap:10px;margin-top:12px;display:flex}.home-actions button{flex:1}.practice-entry{border:1px solid var(--line);background:var(--paper-light);border-radius:8px;justify-content:space-between;align-items:center;gap:10px;width:100%;min-height:50px;margin:13px 0;padding:10px 13px;font-size:15px;font-weight:650;display:flex}.practice-entry span{font-size:12px;font-weight:400}.hero-copy>small{color:var(--muted);margin-top:12px;font-size:12px;display:block}.hero-roles{align-items:center;gap:16px;display:flex}.hero-roles button{background:var(--paper);border:1px solid #b7a278;border-radius:9px;flex:1;min-width:0;padding:0;overflow:hidden;box-shadow:0 12px 30px #09171950}.hero-roles button:first-child{transform:rotate(-6deg)}.hero-roles button:last-child{transform:rotate(6deg)}.hero-roles img{aspect-ratio:1/1.6;object-fit:cover;width:100%;height:auto;display:block}.hero-roles strong{padding:10px 0 4px;font:700 25px Songti SC,serif;display:block}.hero-roles span{color:var(--muted);padding:0 0 12px;font-size:12px;display:block}.home-footer{color:#efe7d5;justify-content:space-between;gap:12px;padding:24px 0;font-size:13px;display:flex}dialog{background:var(--paper);width:min(560px,100vw - 28px);max-height:calc(100dvh - 28px);color:var(--ink);border:1px solid #cabb9c;border-radius:14px;padding:24px;overflow:auto;box-shadow:0 20px 90px #09171966}dialog::backdrop{background:#102324b3}dialog h2{margin:4px 0 18px;font:700 26px/1.2 Songti SC,STSong,serif}dialog h3{margin:20px 0 10px}dialog p{font-size:14px;line-height:1.6}dialog form>.primary{width:100%;margin-top:18px}dialog form>.secondary{margin-top:10px}dialog li{margin-bottom:10px;font-size:14px;line-height:1.7}.dialog-head{justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px;display:flex}.dialog-head .eyebrow{font-size:9px}.icon-button{border:1px solid var(--line);background:0 0;border-radius:50%;flex:0 0 36px;width:36px;height:36px;font-size:24px;line-height:1}.field-row{grid-template-columns:1fr 1fr;gap:14px;display:grid}.preset-summary{background:var(--paper-deep);border-radius:8px;margin:16px 0;padding:12px;font-size:13px}.preset-summary p{margin:5px 0;font-size:12px}.identity-dialog{grid-template-columns:110px 1fr;align-items:center;gap:15px;display:grid}.identity-dialog>img{object-fit:cover;border-radius:8px;width:110px;height:155px}.identity-dialog h3{margin:0 0 9px;font:700 31px Songti SC,serif}.identity-dialog p{margin:0;font-size:14px}.identity-dialog .identity-team,.identity-dialog>small,.identity-dialog>button{grid-column:1/-1}.identity-team{background:var(--paper-deep);border-radius:7px;padding:10px}.identity-dialog>small{color:var(--muted);text-align:center}.role-detail-art{object-fit:cover;border-radius:8px;width:140px;height:190px;margin:0 auto 16px;display:block}.investigation-panel h2{margin:10px 0;font-size:20px}.investigation-panel .small-heading{color:var(--muted);font-size:12px}.journal-entry{background:var(--paper-light);border:1px solid var(--line);border-radius:8px;margin:10px 0;padding:13px 15px}.journal-entry span{font-size:13px;display:block}.journal-entry strong{margin-top:6px;font-size:24px;display:block}.journal-entry:has(.killer-result){color:var(--red)}.result-note{color:var(--muted);font-size:12px!important}.panel-tabs{background:var(--paper-deep);border-radius:8px;grid-template-columns:repeat(4,1fr);gap:5px;margin-bottom:18px;padding:4px;display:grid}.panel-tabs button{background:0 0;border:0;border-radius:6px;min-height:38px;padding:8px 4px;font-size:14px}.panel-tabs button[aria-pressed=true]{background:var(--ink);color:#fffaf0}.profile-preview{align-items:center;gap:16px;display:flex}.profile-preview .player-avatar{flex-basis:66px;width:66px;height:66px}.profile-preview>div{flex:1;min-width:0}.profile-preview label{margin-top:0}.avatar-gallery{grid-template-columns:repeat(6,1fr);gap:8px;margin:10px 0 18px;display:grid}.avatar-gallery button{background:0 0;border:2px solid #0000;border-radius:8px;min-width:0;padding:3px;position:relative}.avatar-gallery button[aria-pressed=true]{border-color:var(--ink);background:var(--gold)}.avatar-gallery .player-avatar{aspect-ratio:1;width:100%;min-width:0;height:auto}.avatar-gallery button>span:last-child:not(.player-avatar){background:var(--ink);color:#fffaf0;white-space:nowrap;border-radius:3px;padding:0 4px;font-size:9px;position:absolute;bottom:-5px;left:50%;transform:translate(-50%)}.identity-backup{border-top:1px solid var(--line);margin-top:24px;padding-top:4px}.score-summary{text-align:center;grid-template-columns:repeat(3,1fr);gap:10px;padding:16px 0;display:grid}.score-summary strong{font-variant-numeric:tabular-nums;font-size:30px;display:block}.score-summary span{color:var(--muted);font-size:12px}.stat-row{border-bottom:1px solid var(--line);grid-template-columns:1fr 1fr 45px;gap:8px;padding:11px 0;font-size:14px;display:grid}.stat-row b{text-align:right}.history-row,.saved-row,.friend-row{border-bottom:1px solid var(--line);align-items:center;gap:10px;min-width:0;padding:13px 0;display:flex}.history-row>div:first-child,.saved-row>div,.friend-row>div{flex:1;min-width:0}.history-row>div:first-child{flex-wrap:wrap;gap:4px 10px;display:flex}.history-row small,.saved-row small,.friend-row small{width:100%;color:var(--muted);font-size:11px;display:block}.history-row span,.saved-row strong,.friend-row strong{overflow-wrap:anywhere;font-size:13px}.history-row>div:last-child{flex-direction:column;align-items:center;display:flex}.history-row button,.saved-row button,.friend-row button{flex-shrink:0;min-height:36px;padding:7px 9px;font-size:12px}.friend-row>strong{flex:1}.success-text{color:var(--green)}.danger-text{color:var(--red)}.empty-state{color:var(--muted);padding:18px 0}.round-record{margin:16px 0}.round-record h3{border-bottom:2px solid var(--line);margin:0;padding-bottom:8px}.round-record .record-row{font-size:13px;display:block}.replay-roster{grid-template-columns:repeat(4,1fr);gap:12px 7px;margin:16px 0;display:grid}.replay-roster>div{flex-direction:column;align-items:center;gap:4px;min-width:0;display:flex}.replay-roster strong{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:12px;overflow:hidden}.replay-roster span{color:var(--muted);font-size:11px}.tool-list{gap:12px;display:grid}.member-management>div{flex-wrap:wrap;align-items:center;gap:8px;padding:10px 0;display:flex}.member-management span{flex:1;font-size:14px}.member-management button{padding:8px;font-size:12px}.skeleton{background:#e9dfc9;border-radius:10px;height:80px;margin:12px 0}.error-banner,.connection-notice{color:#8c2b24;max-width:1160px;z-index:var(--z-page);background:#f4ded4;border-radius:8px;margin:0 auto 14px;padding:12px 18px;font-size:14px;position:relative}.error-banner{justify-content:space-between;gap:12px;display:flex}.error-banner button{background:0 0;border:0;font-size:22px}.toast{background:var(--ink-deep);color:#fffaf0;width:max-content;max-width:calc(100vw - 28px);z-index:var(--z-toast);border:1px solid #bac4b7;border-radius:9px;padding:12px 18px;font-size:14px;position:fixed;bottom:22px;left:50%;transform:translate(-50%);box-shadow:0 8px 30px #0a141844}.inline-error,.dialog-error{color:#8c2b24;background:#f4ded4;border-radius:6px;padding:10px;font-size:13px}.dialog-error{margin-bottom:12px}@media (width>=701px){.game-page:is([data-count="9"],[data-count="10"],[data-count="11"],[data-count="12"]) .roster{grid-template-columns:repeat(6,minmax(0,1fr))}.game-page:is([data-count="9"],[data-count="10"],[data-count="11"],[data-count="12"]) .player{min-height:100px}.game-page:is([data-count="9"],[data-count="10"],[data-count="11"],[data-count="12"]) .player strong{font-size:12px}}@media (width<=1200px){.app-header,.game-page,.home-page,.connection-notice{margin-left:22px;margin-right:22px}.home-hero{gap:28px}.hero-copy h1{font-size:46px}}@media (width<=900px){.game-layout{grid-template-columns:minmax(0,1fr) 250px;gap:16px}.phase-heading,.side-card{padding:18px}.roster,.roster-heading,.action-dock,.utility-row,.focus-stage{margin-left:18px;margin-right:18px}.hero-copy{padding:26px}.hero-copy h1{font-size:40px}.hero-roles{gap:9px}}@media (width<=700px){.app-header{gap:8px;margin:0 14px;padding:13px 0}.brand{gap:8px;font-size:23px}.brand-seal{width:31px;height:31px;font-size:21px}.brand small{font-size:6px}.header-actions{gap:6px}.header-button{min-height:36px;padding:6px 8px;font-size:11px}.profile-button{gap:5px;min-height:36px;padding:3px 6px 3px 3px;font-size:12px}.profile-button .player-avatar{flex-basis:26px;width:26px;height:26px}.profile-button>span:last-child{max-width:4em}.game-page,.home-page{margin:0 12px}.room-line{gap:6px;margin-bottom:10px}.room-line>div{gap:8px}.room-line strong{max-width:10em;font-size:13px}.room-line span{font-size:10px}.room-line button{flex-shrink:0;min-height:28px;padding:4px 0;font-size:11px}.game-layout{flex-direction:column;gap:16px;display:flex}.play-surface{border-radius:11px;width:100%}.phase-heading{padding:13px 16px 12px}.phase-heading h1{font-size:26px}.phase-eyebrow{font-size:11px}.phase-clock strong{font-size:33px}.phase-clock span{font-size:9px}.focus-stage{gap:13px;min-height:70px;margin:13px 16px 0}.focus-stage h2{font-size:20px}.focus-stage p{margin-top:4px;font-size:13px}.speaker-avatar{border-width:2px;flex-basis:57px;width:57px;height:57px}.stage-seal{border-width:4px;flex-basis:53px;width:53px;height:53px;font-size:23px}.roster-heading{margin:13px 16px 11px;font-size:12px}.roster-heading span{font-size:10px}.roster{gap:9px 7px;margin:0 16px}.player{border-radius:7px;gap:2px;min-height:88px;padding:6px 4px 5px}.player .player-avatar{flex-basis:38px;width:38px;height:38px}.player .seat-no{font-size:10px;top:4px;left:4px}.player strong{font-size:12px}.player small{font-size:9px}.player.selected,.player.speaking{padding:5px 3px 4px}.player.selected:after,.player.speaking:after{font-size:9px;top:-8px}.empty-seat{height:37px}.action-dock{margin:13px 16px 0;padding-bottom:11px}.action-intent{margin-bottom:7px;font-size:10px}.action-intent strong{font-size:13px}.action-buttons{gap:8px}.primary,.secondary,.danger{min-height:46px;padding:10px 13px;font-size:15px}.action-buttons .secondary{font-size:14px}.utility-row{margin:0 16px;padding:4px 0}.utility-row button{min-height:40px;font-size:12px}.voice-strip{padding:6px 16px;font-size:10px}.voice-strip button{font-size:10px}.night-status{margin:9px 16px 0;padding:6px 8px;font-size:10px}.game-side{gap:14px;width:100%}.side-card,.history-section{border-radius:11px;padding:18px}.side-card h2,.history-section h2{font-size:21px}.history-section{margin-top:16px}.game-footer{font-size:10px}.game-footer button{font-size:11px}.practice-bar{gap:6px;margin-bottom:10px;padding:8px}.practice-bar label{font-size:10px}.practice-bar select{width:calc(100% - 60px);max-width:none;min-height:32px;font-size:12px}.practice-bar button{flex:1;min-height:32px;padding:6px;font-size:11px}.home-hero{flex-direction:column;gap:28px;min-height:0;padding-top:12px;display:flex}.hero-copy{border-radius:11px;width:100%;padding:24px}.hero-copy h1{margin:14px 0;font-size:43px}.hero-copy>p{margin-bottom:8px;font-size:16px}.home-mode{margin-top:16px}.home-mode button{min-height:36px}.home-actions button{font-size:15px}.practice-entry{min-height:48px;margin:12px 0 8px;font-size:14px}.practice-entry span{font-size:11px}.hero-roles{gap:12px;width:100%;max-width:420px;padding:16px 9px 20px}.hero-roles img{aspect-ratio:1/1.5}.hero-roles strong{padding:7px 0 3px;font-size:22px}.hero-roles span{font-size:10px}.home-footer{padding:16px 0;font-size:11px}.game-page:is([data-count="9"],[data-count="10"],[data-count="11"],[data-count="12"]) .player{min-height:76px;padding-top:4px;padding-bottom:4px}.game-page:is([data-count="9"],[data-count="10"],[data-count="11"],[data-count="12"]) .player .player-avatar{flex-basis:31px;width:31px;height:31px}.game-page:is([data-count="9"],[data-count="10"],[data-count="11"],[data-count="12"]) .focus-stage{min-height:60px;margin-top:10px}dialog{max-height:calc(100dvh - 24px);padding:18px}dialog h2{margin-bottom:16px;font-size:24px}.dialog-head{margin-bottom:4px}.avatar-gallery{gap:6px}.identity-dialog{grid-template-columns:100px 1fr;gap:13px}.identity-dialog>img{width:100px;height:145px}.identity-dialog h3{font-size:29px}.identity-dialog p{font-size:13px}.history-row,.saved-row,.friend-row{gap:7px}.friend-row .player-avatar{flex-basis:33px;width:33px;height:33px}}@media (width<=360px){.app-header{margin:0 11px}.brand{gap:7px;font-size:21px}.brand-seal{width:27px;height:29px;font-size:19px}.brand small{font-size:5px}.header-actions{gap:4px}.header-button{padding:5px;font-size:10px}.profile-button>span:last-child{max-width:3em}.game-page,.home-page{margin:0 9px}.phase-heading{padding:11px 12px}.phase-heading h1{font-size:24px}.phase-clock strong{font-size:29px}.focus-stage{gap:11px;margin-left:12px;margin-right:12px}.focus-stage h2{font-size:18px}.roster,.roster-heading,.action-dock,.utility-row{margin-left:12px;margin-right:12px}.roster{gap:9px 6px}.player .player-avatar{flex-basis:34px;width:34px;height:34px}.player .seat-no{font-size:9px;left:3px}.player{min-height:84px}.player strong{font-size:12px}.room-line>div{gap:5px}.room-line strong{max-width:8em}.room-line span{font-size:9px}.phase-eyebrow{font-size:10px}.identity-dialog{grid-template-columns:85px 1fr;gap:12px}.identity-dialog>img{width:85px;height:130px}.identity-dialog h3{font-size:27px}.hero-copy{padding:20px}.hero-copy h1{font-size:38px}.practice-entry span{font-size:10px}.profile-preview .player-avatar{flex-basis:55px;width:55px;height:55px}.avatar-gallery{grid-template-columns:repeat(4,1fr)}.avatar-gallery .player-avatar{max-width:46px;margin:auto}.saved-row button,.friend-row button{padding:6px;font-size:11px}}@media (width<=700px) and (height<=740px){.app-header{padding-top:9px;padding-bottom:9px}.phase-heading{padding-top:10px;padding-bottom:9px}.focus-stage{min-height:60px;margin-top:10px}.roster-heading{margin-top:10px;margin-bottom:9px}.action-dock{margin-top:10px;padding-bottom:8px}.utility-row{padding-top:2px;padding-bottom:1px}.voice-strip{padding-top:4px;padding-bottom:4px}.night-status{margin-top:7px}}@media (width<=700px) and (height<=620px){.action-dock{z-index:var(--z-sticky);background:var(--paper);border-top:1px solid var(--line);padding-top:8px;position:sticky;bottom:0}.play-surface{overflow:visible}.phase-heading{border-radius:11px 11px 0 0}}@media (prefers-reduced-motion:reduce){button{transition:none}}.practice-bar button{white-space:nowrap}.practice-bar select{min-width:90px}@media (width<=700px){.practice-bar{flex-wrap:nowrap}.practice-bar label{flex-shrink:0}.practice-bar select{flex:1;width:auto;min-width:86px}.practice-bar button{flex:none;padding-left:7px;padding-right:7px}}.profile-save-bar{z-index:var(--z-sticky);background:var(--paper);border-top:1px solid var(--line);margin-top:16px;padding:10px 0 3px;position:sticky;bottom:-1px}.profile-save-bar .primary{width:100%;margin-top:7px}.profile-feedback{color:var(--muted);min-height:20px;font-size:13px;line-height:1.5}.profile-feedback.is-saved{color:var(--green);font-weight:650}.profile-save-bar .inline-error{margin:0}.avatar-label{margin:12px 0 6px;font-size:14px;font-weight:600}.home-profile{border-top:1px solid var(--line);border-bottom:1px solid var(--line);align-items:center;gap:10px;margin-top:18px;padding:12px 0;display:flex}.home-profile>div{flex:1;min-width:0}.home-profile small{color:var(--muted);font-size:11px;display:block}.home-profile strong{overflow-wrap:anywhere;font-size:15px;display:block}.home-profile .text-button{text-underline-offset:3px;flex-shrink:0;font-size:13px;font-weight:650;text-decoration:underline}.home-profile .player-avatar{flex-basis:38px;width:38px;height:38px}@media (width<=360px){.home-profile{flex-wrap:wrap;gap:8px}.home-profile .text-button{margin-left:auto}.home-profile strong{font-size:14px}}@media (width<=700px) and (height<=740px){.game-page[data-practice=true] .phase-heading{padding-top:8px;padding-bottom:7px}.game-page[data-practice=true] .focus-stage{min-height:48px;margin-top:8px}.game-page[data-practice=true] .stage-seal{flex-basis:44px;width:44px;height:44px}.game-page[data-practice=true] .roster-heading{margin-top:8px;margin-bottom:8px}.game-page[data-practice=true] .roster .player{min-height:70px}.game-page[data-practice=true] .action-dock{margin-top:8px}.game-page[data-practice=true] .night-status{padding-top:4px;padding-bottom:4px}.game-page[data-practice=true] .practice-bar{margin-bottom:7px}.game-page[data-practice=true]:is([data-count="9"],[data-count="10"],[data-count="11"],[data-count="12"]) .roster .player{gap:1px;min-height:66px;padding-top:3px;padding-bottom:3px}.game-page[data-practice=true]:is([data-count="9"],[data-count="10"],[data-count="11"],[data-count="12"]) .roster .player .player-avatar{flex-basis:28px;width:28px;height:28px}}.result-card,.result-perspective,.result-voice,.result-replay,.result-chat{max-width:800px;margin-left:auto;margin-right:auto}.result-card{background:var(--paper);border:1px solid var(--line);border-top:5px solid var(--muted);text-align:center;border-radius:14px;padding:28px 36px 12px}.result-page[data-result=win] .result-card{border-top-color:var(--green)}.result-page[data-result=loss] .result-card{border-top-color:var(--red)}.result-heading h1{letter-spacing:.04em;margin:10px 0;font:700 56px/1.15 Songti SC,STSong,serif}.result-heading h1:focus:not(:focus-visible){outline:none}.result-page[data-result=win] .result-heading h1{color:var(--green)}.result-page[data-result=loss] .result-heading h1{color:var(--red)}.result-winner{margin-bottom:18px;font-size:19px;font-weight:650}.result-player{text-align:left;background:var(--paper-deep);border-radius:9px;align-items:center;gap:12px;padding:13px 16px;display:flex}.result-player>div{flex:1;min-width:0}.result-player strong{overflow-wrap:anywhere;font-size:16px;display:block}.result-player span{color:var(--muted);font-size:13px;display:block}.result-player small{color:var(--muted);flex-shrink:0}.result-reason{overflow-wrap:anywhere;margin:16px 0 7px;font-size:15px}.result-team-note{color:var(--green);margin:0 0 8px;font-size:13px}.result-facts{color:var(--muted);font-variant-numeric:tabular-nums;justify-content:center;gap:15px;margin:14px 0 20px;font-size:12px;display:flex}.result-actions{grid-template-columns:1fr 1fr;gap:10px;display:grid}.result-waiting{color:var(--muted);align-self:center;font-size:13px}.result-home{min-height:40px;margin-top:7px}.result-perspective{background:var(--paper-deep);border-radius:9px;align-items:center;gap:12px;margin-bottom:12px;padding:10px 14px;display:flex}.result-perspective label{flex-shrink:0;margin:0;font-size:13px}.result-perspective select{min-height:36px;padding:6px 10px;font-size:13px}.result-voice{color:var(--paper-light);justify-content:space-between;align-items:center;gap:10px;padding:4px 2px;font-size:12px;display:flex}.result-voice>div{align-items:center;gap:12px;display:flex}.result-voice button:not(.text-button){color:inherit;background:0 0;border:0;font-size:12px;text-decoration:underline}.result-replay:focus,.result-chat:focus{outline:2px solid var(--gold);outline-offset:3px}.result-replay{scroll-margin-top:14px}.result-chat .team-chat-log{max-height:220px}@media (width<=700px){.result-card{border-radius:11px;padding:19px 18px 7px}.result-heading h1{margin:8px 0;font-size:44px}.result-winner{margin-bottom:14px;font-size:17px}.result-player{gap:10px;padding:10px}.result-player strong{font-size:14px}.result-player span,.result-player small{font-size:12px}.result-reason{margin-top:13px;font-size:14px}.result-facts{gap:12px;margin:12px 0 16px}.result-actions{gap:8px}.result-actions button{padding:10px 8px;font-size:14px}.result-voice{font-size:11px}.result-perspective{gap:8px;padding:8px 10px}.result-perspective label{font-size:12px}}@media (width<=360px){.result-card{padding:16px 13px 5px}.result-heading h1{font-size:40px}.result-facts{gap:10px;font-size:11px}.result-perspective select{min-height:32px}.result-player .player-avatar{flex-basis:36px;width:36px;height:36px}.result-player small{font-size:11px}}.last-words-intel{border:1px solid var(--line);background:var(--paper-light);text-align:left;border-radius:7px;margin-bottom:9px;padding:8px 11px}.night-completion-note{color:var(--muted);text-align:center;margin:7px 0 0;font-size:12px}.player.dead .elimination-status{color:var(--ink);white-space:nowrap;font-size:11px;font-weight:700;line-height:1.35}.roster-heading .roster-manage{flex-shrink:0;min-height:44px;padding:7px 12px;font-size:13px}.room-member-row{border-bottom:1px solid var(--line);grid-template-columns:42px minmax(0,1fr);gap:8px 12px;padding:14px 0;display:grid}.room-member-info{align-self:center;min-width:0}.room-member-info strong{overflow-wrap:anywhere;font-size:16px;display:block}.room-member-info small{color:var(--muted);margin-top:3px;display:block}.room-member-actions{flex-wrap:wrap;grid-column:2;gap:8px;display:flex}.room-member-actions button{min-height:44px;padding:8px 11px;font-size:13px}.room-member-actions .remove-member{color:var(--red);border-color:var(--red)}.member-feedback{border:1px solid var(--green);color:var(--green);background:var(--paper-light);overflow-wrap:anywhere;border-radius:7px;padding:10px 12px}.member-confirm h3{margin-top:0;font-size:20px}.member-confirm-player{align-items:center;gap:12px;padding:14px 0;display:flex}.member-confirm-player strong{overflow-wrap:anywhere;min-width:0;font-size:18px}.member-confirm .action-buttons button{flex:1}.room-exit-notice{color:var(--ink);background:var(--paper);border:1px solid var(--line)}.last-words-intel small{color:var(--muted);margin-bottom:3px;font-size:12px;display:block}.last-words-intel>div{align-items:baseline;gap:10px;font-size:16px;display:flex}.last-words-intel span{overflow-wrap:anywhere;min-width:0}.last-words-intel strong{white-space:nowrap;font-size:18px}.night-intentions{background:#e7eddf;border:2px solid #758a73;border-radius:10px;margin:16px 24px 0;padding:16px}.intentions-heading{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:10px;display:flex}.intentions-heading h3{margin:0;font-size:18px;font-weight:800}.intentions-heading>span{color:var(--muted);font-size:12px}.intention-cards{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;display:grid}.intention-card{background:var(--paper-light);overflow-wrap:anywhere;border:1px solid #9da991;border-radius:6px;flex-direction:column;gap:4px;min-width:0;padding:10px;display:flex}.intention-card.submitted{background:var(--ink);color:#fffaf0;border-color:var(--ink)}.intention-actor{font-size:14px;font-weight:600}.intention-card>strong{font-size:22px;font-weight:800;line-height:1.35}.intention-state{font-size:12px}.intention-card.pending>strong{color:var(--muted)}.intention-consensus{flex-wrap:wrap;gap:4px 12px;margin:10px 0 0;font-size:14px;display:flex}.intention-consensus>strong{font-size:16px}.night-intentions.agreed{border-color:var(--green);background:#ddebd9}.player.known-teammate{background:#e4eddf;border:2px solid #65836b}.player .teammate-badge,.player .target-votes{background:var(--ink);color:#fffaf0;white-space:normal;border-radius:4px;max-width:100%;padding:2px 5px;font-size:11px;font-weight:750;line-height:1.4}.player.team-target{border:2px solid #b38430}.player .target-votes{color:#253a3b;background:#e8ba64}.player.selected{outline:3px solid var(--ink);outline-offset:1px}.room-line .room-quick-actions{flex-wrap:wrap;flex-shrink:0;justify-content:flex-end;gap:8px;display:flex}.room-quick-actions .room-exit-entry{color:var(--ink);background:#f5efdf;border:1px solid #c9bea8;border-radius:6px;min-height:44px;padding:8px 12px;font-size:13px;font-weight:700}.exit-request-notice{color:var(--ink);background:#fff2d3;border:2px solid #d3aa61;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;padding:14px 18px;display:flex}.exit-request-notice>div{flex-direction:column;min-width:0;display:flex}.exit-request-notice strong{font-size:18px}.exit-request-notice span{font-size:14px}.exit-request-notice button{flex-shrink:0;min-height:44px}.exit-request-card,.exit-confirm{border:1px solid var(--line);background:var(--paper-light);overflow-wrap:anywhere;border-radius:8px;margin:12px 0;padding:14px}.exit-request-card>strong{font-size:18px}.exit-request-card p{margin:6px 0 12px}.exit-confirm{border:2px solid var(--red)}.exit-actions{flex-wrap:wrap;gap:8px;display:flex}.exit-actions>button{flex:1;min-height:44px}.room-exit-panel .danger.full{min-height:48px;margin-top:18px}.room-exit-panel h3,.exit-reason{overflow-wrap:anywhere}@media (width<=900px){.night-intentions{margin-left:18px;margin-right:18px}}@media (width<=700px){.night-intentions{margin:12px 16px 0;padding:10px}.intentions-heading h3{font-size:16px}.intention-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.intention-card{padding:8px}.intention-actor{font-size:13px}.intention-card>strong{font-size:18px}.intention-consensus>strong{font-size:15px}.intention-consensus{font-size:13px}.room-line{flex-wrap:wrap}.room-line>div:first-child{flex:auto}.room-line .room-quick-actions{gap:12px}.room-quick-actions .room-exit-entry{min-height:44px;padding:6px 10px;font-size:12px}.exit-request-notice{gap:8px;padding:12px}.exit-request-notice strong{font-size:16px}.exit-request-notice span{font-size:13px}}@media (width<=360px){.night-intentions{margin-left:12px;margin-right:12px}.intention-card>strong{font-size:17px}.intentions-heading>span{font-size:11px}}@media (width<=700px){.intention-cards{grid-template-columns:minmax(0,1fr)}.intention-card{grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);gap:3px 10px;display:grid}.intention-card>strong{grid-area:1/2/3}.intention-state{grid-column:1}.intention-actor{grid-area:1/1}}.exit-confirm h3{margin-top:0;font-size:18px}.vote-feedback{border:2px solid var(--line);background:var(--paper-light);overflow-wrap:anywhere;border-radius:8px;margin-bottom:10px;padding:12px 14px}.vote-feedback.received{border-color:var(--green);color:var(--ink);background:#e4eddf}.vote-feedback.pending{border-color:var(--ink)}.vote-feedback.failed{border-color:var(--red)}.vote-feedback-title,.vote-feedback-target{text-wrap:pretty;line-height:1.4;display:block}.vote-feedback-title{text-wrap:balance;font-size:21px;font-weight:800}.vote-feedback-target{font-variant-numeric:tabular-nums;margin-top:3px;font-size:18px;font-weight:700}.vote-feedback p,.vote-edit-note{text-wrap:pretty;margin:5px 0 0;font-size:16px;line-height:1.5}.vote-feedback .vote-current{border-top:1px solid var(--line);margin-top:7px;padding-top:7px;font-weight:650}.vote-feedback.failed .vote-feedback-title{color:var(--red)}.vote-controls .action-buttons .primary:disabled{opacity:1;color:var(--paper-light);background:var(--muted);box-shadow:none}.vote-edit-note{color:var(--muted);margin-top:9px}.admin-page{max-width:1040px;min-height:100dvh;margin:auto;padding:24px}.admin-header{color:var(--paper-light);justify-content:space-between;align-items:center;gap:16px;margin-bottom:36px;display:flex}.admin-header a{color:inherit;text-underline-offset:5px;align-items:center;min-height:44px;display:flex}.admin-brand{gap:10px;font-size:28px;font-weight:800;text-decoration:none}.admin-brand span{font-size:16px;font-weight:500}.admin-card{background:var(--paper);border:1px solid var(--line);overflow-wrap:anywhere;border-radius:16px;margin-bottom:24px;padding:28px}.admin-login{max-width:520px;margin:48px auto}.admin-page h1{margin:12px 0;font:800 36px/1.25 Songti SC,serif}.admin-page h2{font-size:24px}.admin-page h3{font-size:19px}.admin-page p,.admin-page label,.admin-page input,.admin-page button{font-size:16px}.admin-lead,.admin-help{color:var(--muted)}.admin-login label{margin-top:24px;font-weight:700}.admin-login input{min-height:50px}.admin-password{gap:8px;display:flex}.admin-password input{flex:1;min-width:0}.admin-password button{flex:none}.admin-login .primary{min-height:52px;margin-top:24px;font-size:18px}.admin-login .admin-help{margin:24px 0 0}.admin-error,.admin-notice{overflow-wrap:anywhere;border-radius:8px;margin:16px 0;padding:14px 16px;font-size:16px}.admin-error{color:#842c21;background:#f7ded6;border:1px solid #b65645}.admin-notice{color:#255237;background:#e3efdf;border:1px solid #79996f}.admin-title{color:var(--paper-light);justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;display:flex}.admin-title .eyebrow{color:var(--paper-deep)}.admin-title p{margin-bottom:0}.admin-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px;display:grid}.admin-stats>div{background:var(--paper-deep);border-radius:12px;padding:20px}.admin-stats span{font-size:16px;display:block}.admin-stats strong{font-variant-numeric:tabular-nums;font-size:32px;display:block}.admin-section-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.admin-section-heading p{color:var(--muted);margin-top:8px}.admin-rooms,.admin-audit{margin:12px 0 0;padding:0;list-style:none}.admin-rooms>li{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;padding:20px 0;display:flex}.admin-rooms>li>div{min-width:0}.admin-rooms>li>button{flex-shrink:0}.admin-rooms p{color:var(--muted);margin:8px 0 0}.admin-empty{padding:24px 0}.admin-confirm{border:2px solid var(--red);border-radius:10px;margin-top:16px;padding:20px}.admin-confirm h3{color:var(--red);margin-bottom:8px}.admin-actions{flex-wrap:wrap;gap:12px;margin-top:20px;display:flex}.admin-audit li{border-top:1px solid var(--line);padding:16px 0}.admin-audit time{color:var(--muted);margin:4px 0;font-size:16px;display:block}.admin-audit p{margin:8px 0 0}.admin-page .eyebrow{font-size:13px}.admin-page .skeleton{min-height:160px}@media (width<=600px){.admin-page{padding:16px}.admin-header{margin-bottom:24px}.admin-login{margin:24px auto}.admin-card{padding:20px}.admin-page h1{font-size:32px}.admin-stats{gap:8px}.admin-stats>div{padding:14px 10px}.admin-stats strong{font-size:26px}.admin-stats span{font-size:16px}.admin-rooms>li{flex-wrap:wrap;align-items:flex-start}.admin-title,.admin-section-heading{align-items:flex-start}.admin-section-heading>button{flex-shrink:0}.admin-title .secondary{flex-shrink:0;padding:10px}.admin-actions button{flex:1}}
