/* 首页、房间与猎人共用暖色材质；AI 胜利结算单独切换夜色。 */
body:is([data-screen="lobby"],[data-screen="room"],[data-screen="hunter"]){--bg:#fcf7ee;--card:#fffdf9;--fg:#29252b;--dim:#8b8592;--soft:#f3eee7;--line:#eee5d8;--acc:#f57729;--on-acc:#fff;--ok:#23a568;--warn:#e17820;--bad:#df3b3b;--orange:#f67727;color-scheme:light;background:#efe6d9;padding:0}
body:is([data-screen="lobby"],[data-screen="room"],[data-screen="hunter"])>.bar{display:none}
body:is([data-screen="lobby"],[data-screen="room"],[data-screen="hunter"])>main{padding:0;max-width:560px;background:var(--bg);box-shadow:0 0 50px #5035190b;overflow:hidden}
.ui-icon{width:22px;height:22px;display:inline-block;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.ui-avatar{display:block;flex:none;width:40px;height:40px;border-radius:50%;overflow:hidden;background:#eee2d3}
.ui-avatar img{display:block;width:100%;height:100%;object-fit:cover}
body:is([data-screen="lobby"],[data-screen="room"],[data-screen="hunter"]) button.orange{color:#fff;background:linear-gradient(110deg,#ff943f,#ff7223);border:1px solid #ff7d29;box-shadow:0 4px 10px #ef79241a}
body:is([data-screen="lobby"],[data-screen="room"],[data-screen="hunter"]) button.pale{background:#fffdfb;color:#50475d;border:1px solid #eee7df;box-shadow:0 2px 7px #76573607}
body:is([data-screen="lobby"],[data-screen="room"],[data-screen="hunter"]) button:disabled{opacity:.42}
body:is([data-screen="lobby"],[data-screen="room"],[data-screen="hunter"]) button.orange,.pale,.outline{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.icon-button{width:36px;height:38px;min-width:36px;padding:7px;background:none;color:var(--fg);display:grid;place-items:center}
.icon-button .ui-icon{width:22px;height:22px}
.paper{background:#fffdfbdc;border-radius:23px;padding:16px;box-shadow:0 4px 15px #78553204;border:1px solid #fff9f0}
.section-title{display:flex;align-items:center;gap:8px;justify-content:space-between;margin-bottom:12px}
.section-title h2{font-size:21px;letter-spacing:-.04em;display:flex;align-items:center;gap:7px;white-space:nowrap}
.section-title>p,.section-title>span{font-size:11px;color:var(--dim);display:flex;align-items:center;gap:4px}
.section-title>p .ui-icon{width:14px;height:14px}
.lobby-screen,.room-screen,.hunter-screen{width:100%;height:100%;min-height:0;flex:1;display:flex;flex-direction:column;background:var(--bg)}
.lobby-screen{background:radial-gradient(ellipse at 89% 0,#ffe3c0 0,transparent 46%),#fcf5eb}
.lobby-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:0 14px 18px;scrollbar-width:thin;scrollbar-color:#ecdcc6 transparent}
.lobby-hero{position:relative;min-height:178px;padding:calc(23px + env(safe-area-inset-top)) 10px 12px;display:flex;align-items:center}
.lobby-brand{position:relative;z-index:1}
.lobby-brand h1{font-size:47px;line-height:1.1;font-weight:850;letter-spacing:-.08em;color:#3a3030;width:max-content;position:relative;margin-bottom:12px}
.lobby-brand h1 span{position:absolute;right:-15px;top:-3px;width:10px;height:13px;border-radius:4px 8px 5px 4px;background:#ff8b3c;transform:rotate(26deg)}
.lobby-brand h1 span::after{content:"";position:absolute;width:7px;height:17px;background:#ff8b3c;border-radius:7px;left:10px;top:12px;transform:rotate(20deg)}
.lobby-brand p{font-size:14px;color:#908982;font-weight:600;letter-spacing:.025em}
.lobby-brand small{margin-top:9px;display:flex;align-items:center;gap:6px;font-size:12px;color:#857d75}
.lobby-brand small i,.room-status i,.hunter-status i{width:7px;height:7px;border-radius:50%;background:#16c09b;display:inline-block;flex:none}
.lobby-dice{width:205px;height:152px;position:absolute;right:-22px;bottom:-8px;pointer-events:none}
.lobby-primary{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:14px;z-index:1}
.lobby-primary button{height:57px;padding:0 11px;font-size:17px;font-weight:750;border-radius:18px;gap:7px}
.lobby-primary .orange>.ui-icon:first-child{background:#fff;border-radius:50%;color:#fb7624;width:27px;height:27px;padding:5px;stroke-width:3}
.lobby-primary .pale>.ui-icon:first-child{background:#9960ef;border-radius:9px;color:#fff;width:27px;height:27px;padding:5px;stroke-width:2.7}
.lobby-primary .tail{width:15px;height:15px;margin-left:auto;opacity:.65}
.lobby-primary .pale .tail{color:#8d8794}
.current-panel{margin-bottom:12px;padding:12px}
.current-panel>.section-title{margin-bottom:8px}
.current-panel>.lobby-empty{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:10px;row-gap:3px;text-align:left;padding:10px 2px 12px}
.current-panel>.lobby-empty>span{grid-column:1;grid-row:1 / span 2;align-self:center;width:36px;height:36px;margin:0;border-radius:12px}
.current-panel>.lobby-empty h3{font-size:13px;align-self:end;margin:0;overflow-wrap:anywhere}
.current-panel>.lobby-empty p{font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.current-panel>.lobby-empty button{grid-column:2;justify-self:start;margin-top:5px}
.current-room{display:flex;align-items:center;gap:10px;background:#fff;border-radius:17px;padding:6px}
.game-art{width:68px;height:76px;object-fit:cover;object-position:center;border-radius:13px;display:grid;place-items:center;flex:none}
.game-art-hunter{background:linear-gradient(150deg,#ffeebc,#ffd6b6);color:#bd6b30}
.game-art-guess{background:linear-gradient(145deg,#e4d6ff,#b09be9);color:#6542b3}
.game-art-trap{background:linear-gradient(145deg,#ffdcb3,#ffa87b);color:#b94622}
.game-art-signal{background:linear-gradient(145deg,#d6efcb,#98cbbd);color:#377c62}
.game-art>.ui-icon{width:36px;height:36px;stroke-width:1.5}
.current-art{width:80px;height:112px;object-position:center}
.current-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px;justify-content:center}
.current-title{display:flex;align-items:center;gap:5px;min-width:0}
.current-title h3{flex:1;min-width:0;font-size:17px;font-weight:750;letter-spacing:-.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.current-title .host-tag{flex:none}
.host-tag{font-size:10px;font-weight:650;color:#ed7728;background:#fff0e1;display:flex;align-items:center;gap:3px;border-radius:99px;padding:2px 6px}
.host-tag .ui-icon{width:12px;height:12px;fill:#ff8c31;stroke:#ff8c31}
.room-tags{display:flex;gap:5px;flex-wrap:wrap}
.room-tags>span{border-radius:99px;background:#f6f5f7;padding:2px 6px;display:flex;align-items:center;gap:3px;color:#827d88;font-size:10px;white-space:nowrap}
.room-tags .ui-icon{width:12px;height:12px}
.game-tag{font-size:11px;font-weight:600;padding:3px 8px;border-radius:99px;display:inline-flex;width:max-content;line-height:1.5}
.game-tag.hunter,.game-tag.guess{background:#ece4ff;color:#7545ce}
.game-tag.trap{background:#ffe7db;color:#df6931}
.game-tag.signal{background:#e3f3e9;color:#3b9271}
.room-status i{width:6px;height:6px}
.room-status.playing i{background:#975cec}
.room-code{font-size:10px;color:#a09aa3;letter-spacing:.025em}
.avatar-stack{display:flex;padding-left:1px}
.avatar-stack .ui-avatar{width:26px;height:26px;margin-left:-1px;border:2px solid #fff}
.current-actions{display:flex;gap:6px;margin-top:2px}
.current-actions button{height:32px;flex:1;min-width:0;padding:0 5px;border-radius:11px;font-size:12px;gap:3px}
.current-actions .ui-icon{width:16px;height:16px}
.lobby-empty{padding:14px 8px 17px;text-align:center;color:#8c8290}
.lobby-empty>span,.chat-empty>span{display:grid;place-items:center;width:46px;height:46px;background:#fff0df;border-radius:16px;color:#ee8a42;margin:0 auto 9px}
.lobby-empty h3{font-size:14px;color:#655568;margin-bottom:5px}
.lobby-empty p{font-size:12px;line-height:1.7}
.lobby-empty button{margin-top:10px;height:36px}
.games-panel{padding:14px;margin-bottom:12px}
.public-rooms-panel{padding:14px}
.public-refresh{display:inline-flex;align-items:center;gap:5px;padding:4px 0;background:none;color:#9c939b;font-size:11px;white-space:nowrap}
.public-refresh .ui-icon{width:15px;height:15px}
.public-room-filters{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0 0 12px;padding:2px 0;min-width:0}
.public-room-filters::-webkit-scrollbar{display:none}
.public-room-filters>div{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
.public-room-filters>div+div{border-top:1px solid #eee5dc;padding-top:8px}
.public-room-filters button{height:29px;min-height:29px;padding:0 10px;border-radius:99px;background:#f3f1f4;color:#665e6d;font-size:11px;font-weight:600;white-space:nowrap}
.public-room-filters button.on{background:linear-gradient(110deg,#ff943f,#ff7223);color:#fff}
.public-room-list{display:flex;flex-direction:column;gap:9px}
.public-room-row{display:flex;align-items:center;gap:9px;min-height:96px;background:#fff;border-radius:16px;padding:8px}
.public-room-row .game-art{width:66px;height:78px;border-radius:12px}
.public-room-copy{flex:1;min-width:0}
.public-room-copy h3{font-size:16px;font-weight:750;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:4px}
.public-room-copy .room-tags{gap:3px}
.public-room-copy .room-tags>span{font-size:9px;padding:2px 5px}
.public-room-copy .avatar-stack{margin-top:7px}
.public-room-copy .ui-avatar{width:23px;height:23px;margin-left:-3px}
.public-room-row .small-cta{padding:0 10px;min-width:46px;font-size:11px}
.public-loading p{text-align:center;font-size:11px;color:#9e909e;margin:10px 0}
.public-room-skeleton{display:flex;align-items:center;gap:10px;border-radius:16px;padding:8px;background:#fff;margin-bottom:9px;min-height:96px}
.public-room-skeleton i,.public-room-skeleton span,.public-room-skeleton b{display:block;background:#f4eee7;border-radius:10px}
.public-room-skeleton i{width:66px;height:78px;flex:none}.public-room-skeleton span{height:46px;flex:1}.public-room-skeleton b{width:46px;height:32px}
#create-room-details{display:flex;flex-direction:column;gap:13px}
#room-info{padding:12px;border-radius:15px;background:#fff8f0;border:1px solid #f2e7d8}
#room-info button{width:100%}
.lobby-game-list{display:flex;flex-direction:column;gap:10px}
.lobby-game-row{background:#fff;display:flex;align-items:center;gap:10px;border-radius:16px;padding:8px;min-height:97px}
.lobby-game-copy{flex:1;min-width:0}
.lobby-game-copy h3{font-size:17px;font-weight:750;letter-spacing:-.025em;margin-bottom:3px}
.lobby-game-copy p{font-size:11px;color:#958c99;line-height:1.45;margin-top:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.game-people{font-size:10px;color:#a69da9;display:flex;align-items:center;gap:3px;margin-top:4px}
.game-people .ui-icon{width:12px;height:12px}
button.small-cta{height:34px;font-size:12px;padding:0 11px;border-radius:11px;flex:none}
.lobby-invite{display:flex;align-items:center;gap:10px;padding:14px}
.lobby-invite>span{width:35px;height:35px;display:grid;place-items:center;color:#a08ac9;background:#f1eaf9;border-radius:11px;flex:none}
.lobby-invite h3{font-size:13px;color:#6d5c78;margin-bottom:3px}
.lobby-invite p{font-size:10px;line-height:1.5;color:#a49aa8}
.lobby-invite button{width:28px;height:32px;padding:4px;flex:none}
.lobby-nav{flex:none;height:calc(67px + env(safe-area-inset-bottom));padding:9px 0 max(9px,env(safe-area-inset-bottom));display:flex;border-radius:25px 25px 0 0;background:#fffffff2;box-shadow:0 -2px 15px #66432404}
.lobby-nav button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:2px;height:auto;background:none;padding:0;color:#aaa7ac;font-size:12px;font-weight:500}
.lobby-nav button.on{color:#fb7b25}
.lobby-nav .ui-icon{width:27px;height:27px;stroke-width:2.5}
.lobby-nav button.on .ui-icon{fill:#fb7b2517}
.lobby-sheet .sheet-body>h2{font-size:23px;color:#3c3041}
.lobby-sheet .sheet-body>p{font-size:13px;color:#958894}
.lobby-sheet .sheet-body>button{flex:none}
.lobby-sheet .lobby-game-row{border:1px solid #eee5da}
.profile-header{padding:calc(36px + env(safe-area-inset-top)) 12px 24px}
.profile-header p{font-size:12px;color:#ac927d}
.profile-header h1{font-size:35px;margin-top:4px}
.profile-card{display:flex;flex-direction:column;align-items:center;padding:30px;gap:9px}
.profile-card .ui-avatar{width:90px;height:90px;box-shadow:0 0 0 4px #fff1dd,0 0 0 6px #f1d6b6;margin-bottom:9px}
.profile-card h2{font-size:23px}
.profile-card p{font-size:12px;color:#a397a1;margin-bottom:9px}
.profile-card button{width:100%;font-size:15px}
.profile-actions{margin-top:13px;display:flex;flex-direction:column;gap:3px}
.profile-actions button{background:none;color:#746675;display:flex;align-items:center;gap:9px;font-size:14px;padding:0 3px}
.profile-actions button .ui-icon:last-child{margin-left:auto;width:16px;height:16px;color:#c8bbc4}
/* 房间固定框架。聊天正文只在抽屉里可操作。 */
.room-screen{background:radial-gradient(ellipse at 85% 4%,#ffe6bd 0,transparent 55%),#f8efde}
.room-bar{display:flex;align-items:center;gap:8px;flex:none;padding:calc(19px + env(safe-area-inset-top)) 14px 17px}
.room-back{background:#fffaf4;width:39px;height:43px;border-radius:50%}
.room-brand{flex:1;min-width:0}
.room-brand h1{font-size:24px;font-weight:800;letter-spacing:-.035em;line-height:1.2;white-space:nowrap}
.room-brand h1 span{color:#ffb34a;font-size:23px}
.room-brand p{font-size:10px;color:#958996;display:flex;align-items:center;gap:3px;margin-top:4px;white-space:nowrap}
.room-brand p b{font-weight:500}
.room-brand p button{min-width:18px;width:18px;height:20px;padding:2px;color:#958996}
.room-brand p .ui-icon{width:14px;height:14px}
.room-tools{display:flex;gap:6px}
.room-tools button{display:flex;flex-direction:column;align-items:center;gap:3px;background:none;color:#6e5b4d;padding:0;height:auto;width:32px}
.room-tools button>span{width:32px;height:32px;border-radius:50%;background:#fff9ec;display:grid;place-items:center}
.room-tools button:first-child{color:#f88a25}
.room-tools .ui-icon{width:18px;height:18px;stroke-width:2.4}
.room-tools small{font-size:10px}
.room-self{padding:2px;background:none;width:35px;height:35px;flex:none}
.room-self .ui-avatar{width:31px;height:31px;border:2px solid #ffc57d}
.room-scroll{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:0 13px 10px;scrollbar-width:thin;scrollbar-color:#ead9c2 transparent}
.room-game-card{display:flex;align-items:center;gap:10px;padding:10px;border-radius:23px;height:160px;min-height:160px;max-height:160px;flex:none}
.room-art{width:96px;height:138px;min-height:0;max-height:100%;align-self:center;border-radius:15px;object-position:center}
.room-game-copy{flex:1;min-width:0;min-height:0;height:100%;display:flex;flex-direction:column;justify-content:flex-start;gap:5px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}
.room-game-copy>.section-title{margin:0;gap:6px;flex-wrap:nowrap;flex:none}
.room-game-copy h2{font-size:21px;line-height:1.2;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
button.setting-button{height:28px;padding:0 8px;font-size:10px;border-radius:99px;background:#f8eada!important;border:0!important}
.setting-button .ui-icon{width:13px;height:13px}
.room-config-chips{display:flex;flex-wrap:wrap;gap:4px;flex:none}
.room-config-chips span{display:flex;align-items:center;gap:3px;background:#faf0e1;color:#77614f;font-weight:550;font-size:10px;line-height:1.3;padding:3px 5px;border-radius:9px}
.room-config-chips .ui-icon{width:12px;height:12px;color:#fc9825;stroke-width:2.5}
.room-game-copy>p{flex:none;font-size:11px;color:#8c8295;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.room-model{background:none;color:#bc8c5e;height:18px;min-height:18px;flex:none;padding:0;display:flex;align-items:center;justify-content:flex-start;gap:5px;white-space:nowrap;text-align:left;font-size:11px;font-weight:500;min-width:0}
.room-model-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.room-mode-name{font-weight:650;color:#7954b1}
.room-model .ui-icon{width:14px;height:14px;color:#f8a024}
.room-model.configured{color:#729481}
.room-setting-label{font-size:11px;color:#b09ba9}
.room-members-card{padding:10px 10px 12px;flex:none}
.room-members-card>.section-title{gap:5px;justify-content:flex-start;flex-wrap:wrap;margin-bottom:8px}
.room-members-card .section-title h2{font-size:18px}
.room-members-card .section-title h2 .ui-icon{color:#765345;width:22px;height:22px;stroke-width:2.4}
.room-members-card .section-title p{font-size:11px}
.room-members-card .section-title p b{color:#f08730}
button.invite-people{margin-left:auto;height:29px;padding:0 9px;border-radius:99px;font-size:10px;gap:4px}
.invite-people .ui-icon{width:14px;height:14px}
.room-member-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;padding-top:4px}
.room-member{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
.room-member-avatar{position:relative;margin-bottom:2px}
.room-member .ui-avatar{width:40px;height:40px;box-shadow:0 0 0 2px #fffcf8,0 0 0 3px #e8e0d7}
.room-member.owner .ui-avatar{box-shadow:0 0 0 2px #fffcf8,0 0 0 3px #f6b765}
.member-crown{position:absolute;top:-6px;left:-5px;display:block;transform:rotate(-20deg);color:#ffad32;background:#fffaf3;border-radius:50%;width:17px;height:17px}
.member-crown .ui-icon{width:17px;height:17px;fill:#ffc153;stroke:#ffad32}
.room-member>strong{font-size:11px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}
.member-role{font-size:9px;color:#b1a2b1;padding:1px 8px;border-radius:99px;background:#f6f0f4}
.owner .member-role{background:#ffd892;color:#a46323}
.member-ready{display:flex;align-items:center;gap:4px;background:#f0ebed;border-radius:99px;color:#a297a2;font-size:9px;padding:2px 7px;margin-top:2px}
.member-ready i{width:5px;height:5px;border-radius:50%;background:#b9b1b9}
.member-ready.on{color:#36a879;background:#e9f7ed}
.member-ready.on i{background:#36b87b}
.room-member.offline .ui-avatar{opacity:.65}
.empty-avatar{width:40px;height:40px;border-radius:50%;border:1px dashed #d9cfd3;background:#f5f1ee;display:grid;place-items:center;color:#c3bec4;margin-bottom:3px}
.empty-avatar .ui-icon{width:22px;height:22px;fill:#c3bec415}
.room-member.empty>span:last-child{font-size:9px;color:#aea3b0}
.room-chat-card{padding:14px 14px 18px;min-height:190px;flex:1 0 auto}
.room-chat-title{display:flex;align-items:center;width:100%;height:auto;padding:0;background:none;color:#3e333c;margin-bottom:15px;justify-content:space-between}
.room-chat-title h2{display:flex;gap:8px;align-items:center;font-size:20px}
.room-chat-title h2 .ui-icon{color:#815e4a;width:21px;height:21px}
.room-chat-title>span{font-size:10px;color:#ac99a6;display:flex;align-items:center;gap:3px}
.room-chat-title>span .ui-icon{width:14px;height:14px;transform:rotate(-90deg)}
.room-chat-preview{display:flex;flex-direction:column;gap:11px}
.room-chat-preview>div{display:flex;align-items:flex-start;gap:8px}
.room-chat-preview .ui-avatar{width:31px;height:31px}
.room-chat-preview article{flex:1;min-width:0}
.room-chat-preview small{font-size:10px;color:#a595a8;display:block;margin-bottom:3px}
.room-chat-preview article p{background:#f1edf0;color:#8a7b8b;font-size:12px;padding:7px 10px;border-radius:0 12px 12px 12px;width:max-content;max-width:100%;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.room-chat-welcome>span{width:33px;height:33px;background:#e4e9f7;border-radius:50%;display:grid;place-items:center;flex:none;color:#8063b3}
.room-chat-welcome p{font-size:12px;color:#918094;line-height:1.7}
.room-chat-welcome small{margin-top:5px;color:#baaabd}
.room-dock{flex:none;padding:0 16px max(13px,env(safe-area-inset-bottom))}
.room-dock .dock{padding-top:0;gap:8px}
.room-dock .dock-hint{font-size:11px;color:#a28d77;display:flex;align-items:center;justify-content:center;gap:7px}
.room-dock .dock-hint::before,.room-dock .dock-hint::after{content:"";width:25%;height:1px;background:#eddac0}
.room-dock .form-actions{gap:10px}
.room-dock button[data-action="ready"]{background:linear-gradient(120deg,#604a43,#332627);color:white;border:1px solid #694c44;box-shadow:0 3px 8px #4f2b1520;height:51px;font-size:17px;border-radius:17px}
.room-dock button[data-action="start"]{background:linear-gradient(120deg,#ffa052,#ff7625);color:white;height:51px;font-size:17px;border-radius:17px}
.room-dock .dock>.link{font-size:10px;color:#b09da5;padding:0}
/* 抽屉与配置选项共用房间的奶油色表面。 */
body[data-screen="room"] .sheet.chat{height:min(620px,79dvh);background:#fffaf5}
body[data-screen="room"] .sheet.chat .sheet-head h2{font-size:20px;display:flex;align-items:center;gap:8px}
body[data-screen="room"] .sheet.chat .sheet-head h2::before{content:"";width:28px;height:28px;background:#a77ae9;border-radius:50%;box-shadow:inset 0 0 0 8px #9b6bee}
.chat-presence{color:#ac9cac;font-size:11px;display:flex;align-items:center;gap:5px;margin-bottom:2px}
.chat-presence b{color:#f88550;font-weight:500}
.room-drawer-message{display:flex;align-items:flex-start;gap:8px;font-size:12px;max-width:100%;padding:2px 0}
.room-drawer-message .ui-avatar{width:30px;height:30px;margin-top:2px}
.room-drawer-message>div{min-width:0;max-width:74%;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.room-drawer-message small{font-size:10px;color:#9e90a7;display:flex;align-items:center;gap:5px}
.room-drawer-message small b{font-size:8px;color:#e68f42;background:#fff0d7;border-radius:99px;padding:0 5px}
.room-drawer-message p{padding:8px 11px;background:#f1ecea;border-radius:4px 14px 14px 14px;color:#665a6d;white-space:pre-wrap;overflow-wrap:anywhere}
.room-drawer-message>time{font-size:9px;color:#bfb2c7;align-self:flex-end;margin-bottom:4px}
.room-drawer-message.mine{flex-direction:row-reverse}
.room-drawer-message.mine>div{align-items:flex-end}
.room-drawer-message.mine p{background:#e8eeff;color:#5f6592;border-radius:14px 4px 14px 14px}
body[data-screen="room"] .sheet.chat #chat{background:#fffaf4;padding-top:5px;gap:7px}
body[data-screen="room"] .sheet.chat #chat input{border-radius:99px;background:#fff;border:1px solid #f0e8e2;height:43px;font-size:14px}
body[data-screen="room"] .sheet.chat #chat button{width:43px;height:43px;min-width:43px;padding:9px;border-radius:50%;background:linear-gradient(120deg,#ffae64,#ff7627);font-size:13px}
.settings-game-picker{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.settings-game-picker button{height:40px;font-size:13px;background:#f6efe7;color:#8b798a;border:1px solid #eee1d3}
.settings-game-picker button.on{background:#fff0db;color:#da7425;border-color:#f5b376;box-shadow:0 0 0 2px #fca9530b}
.settings-note{font-size:11px;color:#a897a4;line-height:1.7}
body[data-screen="room"] .sheet .config-grid{gap:11px}
body[data-screen="room"] .sheet form>button{flex:none;background:linear-gradient(120deg,#ff9742,#fb7322);color:white;font-size:14px}
/* AI 猎人进行中 */
.hunter-screen{background:radial-gradient(ellipse at 100% 30%,#fff1dd 0,transparent 50%),#fdf8ee}
.hunter-bar{display:flex;align-items:center;gap:5px;flex:none;padding:calc(10px + env(safe-area-inset-top)) 12px 10px;min-height:59px}
.hunter-bar h1{display:flex;align-items:center;gap:6px;font-size:21px;font-weight:800;line-height:1.2;letter-spacing:-.03em}
.hunter-bar h1>.ui-icon{color:#856349;width:26px;height:26px;stroke-width:1.7}
.hunter-help{color:#beb8b2;padding:8px;width:30px;min-width:30px;height:30px}
.hunter-help .ui-icon{width:16px;height:16px}
.hunter-status{font-size:10px;color:#f47627;font-weight:650;padding:3px 8px;border-radius:99px;background:#fff0e0;display:flex;align-items:center;gap:5px;margin-left:auto;white-space:nowrap}
.hunter-status i{width:5px;height:5px;background:#ff7026}
.hunter-bar>button:last-child{margin-left:3px}
.hunt-phase{margin:0 15px 8px;padding:10px 12px 11px;background:#ffffffba;border-radius:15px;box-shadow:0 4px 10px #90642105;flex:none}
.hunt-phase>div{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px}
.hunt-round{font-size:12px;color:#4c4049;white-space:nowrap;font-weight:650}
.hunt-round b{font-size:20px;color:#ff7225;line-height:1}
.phase-chip{background:#f2eaff;border-radius:99px;color:#7752bc;font-size:11px;font-weight:650;padding:4px 8px;display:flex;align-items:center;gap:4px;white-space:nowrap}
.phase-chip .ui-icon{width:14px;height:14px;stroke-width:2.3}
.hunt-clock{display:flex;align-items:center;gap:4px;color:#ff7426;font-size:21px;font-weight:750;font-variant-numeric:tabular-nums;line-height:1;white-space:nowrap}
.hunt-clock .ui-icon{width:17px;height:17px;stroke-width:2.2}
.hunt-phase progress{width:100%;height:6px;display:block;border:0;appearance:none;border-radius:99px;overflow:hidden;background:#e8e2dd;color:#ff7928}
.hunt-phase progress::-webkit-progress-bar{background:#e8e2dd;border-radius:99px}
.hunt-phase progress::-webkit-progress-value{background:#ff7a27;border-radius:99px;transition:width 1s linear}
.hunt-phase progress::-moz-progress-bar{background:#ff7a27;border-radius:99px}
.hunter-roster{display:flex;justify-content:center;gap:30px;padding:7px 14px 13px;flex:none}
.hunter-player{min-width:42px;max-width:70px;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px;color:#685868}
.hunter-portrait{position:relative;flex:none;margin-bottom:2px}
.hunter-player .ui-avatar{width:47px;height:47px;border:2px solid #fffaf5;box-shadow:0 0 0 1.5px #c1afea}
.hunter-player:nth-child(3n) .ui-avatar{box-shadow:0 0 0 1.5px #bbadca}
.hunter-player.self .ui-avatar{box-shadow:0 0 0 1.5px #ffa750}
.self-badge{position:absolute;left:50%;transform:translateX(-50%);bottom:-4px;font-size:9px;font-weight:700;background:#ff8d29;color:#fff;line-height:15px;padding:0 5px;border-radius:99px;border:1px solid #fffaf5}
.player-name{width:100%;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.confirm-tag{display:flex;align-items:center;gap:3px;padding:2px 5px;color:#f57b2d;background:#fff0e1;border-radius:99px;font-size:9px;white-space:nowrap}
.confirm-tag .ui-icon{width:11px;height:11px;stroke-width:2.6}
.confirm-tag.confirmed{background:#eaf7e9;color:#2aaa6c}
.hunt-body{min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;padding:0 14px 10px;display:flex;flex-direction:column;gap:11px;scrollbar-width:thin;scrollbar-color:#ebddcf transparent}
.hunt-paper{background:#fffdfbf2;border-radius:17px;padding:12px;border:1px solid #f7ecdf;box-shadow:0 3px 10px #7c543604;flex:none}
.hunt-paper h2{font-size:15px;font-weight:750;color:#3f3443;line-height:1.4;letter-spacing:-.02em}
.hunt-card-heading{display:flex;align-items:flex-start;gap:9px;margin-bottom:13px}
.hunt-card-heading>div{flex:1;min-width:0}
.hunt-card-heading p{font-size:10px;color:#a295a3;line-height:1.6;margin-top:4px}
.hunt-card-heading p b{color:#ff802b}
.heading-icon{display:grid;place-items:center;width:34px;height:34px;background:#fff3e3;color:#ee8743;border-radius:50%;flex:none}
.heading-icon .ui-icon{width:23px;height:23px}
.hunter-hunt_discussion .hunt-body{overflow:hidden;padding-bottom:0}
.hunt-chat{display:flex;flex-direction:column;flex:1;min-height:0;background:#fffdfbdb;border:1px solid #f5ece0;border-radius:17px;padding:11px 10px 7px}
.hunt-feed{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:11px;scrollbar-width:thin;scrollbar-color:#efdfd1 transparent;padding:1px 3px 8px}
.hunt-message{display:flex;gap:7px;align-items:flex-start}
.hunt-message>.ui-avatar{width:31px;height:31px;border:1px solid #e6daf0}
.hunt-message.mine>.ui-avatar{border:1px solid #ffb67c}
.hunt-message>div{min-width:0;max-width:87%}
.message-meta{display:flex;align-items:center;gap:9px;font-size:9px;color:#a396a6;margin:0 0 3px 3px}
.message-meta time{color:#b9b0b9;font-size:9px}
.hunt-bubble{padding:8px 10px;background:#f0eafa;border-radius:3px 13px 13px 13px;font-size:12px;color:#635674;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}
.hunt-message.mine .hunt-bubble,.hunt-message:nth-child(3n) .hunt-bubble{background:#ffede4;color:#75605b}
.chat-empty{padding:20px 12px;color:#b0a3b0;text-align:center;margin:auto}
.chat-empty h3{font-size:13px;color:#8e7c95;margin-bottom:4px}
.chat-empty p{font-size:11px;line-height:1.7}
.chat-footnote{font-size:10px;color:#b0a4ae;text-align:center;padding-top:4px}
.hunt-dock{flex:none;padding:8px 16px max(13px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px}
.locations-overview{background:#fffdfbbf;border-radius:13px;padding:7px 7px 5px}
.locations-overview h2{font-size:11px;font-weight:550;color:#857580;display:flex;align-items:center;gap:4px;margin-bottom:6px}
.locations-overview h2 .ui-icon{width:13px;height:13px;color:#c3885f}
.locations-overview>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.location-mini{min-width:0;display:flex;flex-direction:column;overflow:hidden;border-radius:10px;background:#fffaf3}
.location-mini>img{width:100%;height:47px;object-fit:cover;border-radius:8px}
.location-mini>span{display:flex;align-items:center;justify-content:center;gap:4px;color:#62515e;font-size:9px;padding:3px 1px;white-space:nowrap}
.locations-overview .location-mini .ui-icon{display:none}
.location-mini b{font-weight:650}
.hunt-composer{flex-direction:row;align-items:center;gap:7px;background:none}
.hunt-composer>span{color:#b3a4ae;flex:none;display:flex}
.hunt-composer>span .ui-icon{width:23px;height:23px}
.hunt-composer input{height:39px;min-width:0;flex:1;font-size:14px;border-radius:99px;background:#f3ede7;padding:0 13px}
.hunt-composer button{height:36px!important;width:36px;padding:7px;border-radius:50%;margin:0;flex:none}
.hunt-composer button .ui-icon{width:19px;height:19px;stroke-width:3}
.hunt-locations{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0 0 12px}
.hunt-location{grid-column:span 2;position:relative;height:auto;padding:5px 5px 0;display:flex;flex-direction:column;min-width:0;border-radius:13px;background:#fffaf4;color:#62515b;border:1.5px solid #f1e7dc;box-shadow:0 2px 5px #6a523905;white-space:normal}
.hunt-location:nth-child(n+4){grid-column:span 3}
.hunt-location>img{width:100%;height:84px;border-radius:8px;object-fit:cover}
.hunt-location>span{display:flex;align-items:center;justify-content:center;gap:4px;min-height:28px;font-size:11px}
.hunt-location b{font-weight:650}
.hunt-location>span>.ui-icon{width:15px;height:15px;color:#ba8967}
.choice-check{display:block;margin-left:auto;width:17px;height:17px;border:1.5px solid #c6bbb3;border-radius:50%}
.choice-check .ui-icon{width:17px;height:17px;margin:-1.5px;color:#ff812a;fill:#ff812a;stroke:white;stroke-width:2.7}
.hunt-location.selected{border-color:#ff942f;box-shadow:0 0 0 2px #ff8c3411;background:#fff9ee}
.hunt-location.selected .choice-check{border-color:#ff8b2e}
.hunt-location:disabled{opacity:.75!important}
.hunt-location.selected:disabled{opacity:1!important}
.selection-summary{display:flex;align-items:center;gap:9px;background:#fff5e9;border:1px solid #ffe1c0;border-radius:13px;padding:10px}
.selection-summary>span{display:grid;place-items:center;width:32px;height:32px;background:#ffeace;color:#eb8842;border-radius:50%;flex:none}
.selection-summary>span .ui-icon{width:21px;height:21px}
.selection-summary>div{min-width:0}
.selection-summary strong{font-size:12px;color:#745445;line-height:1.4}
.selection-summary strong b{color:#fa792b;margin-left:4px}
.selection-summary p{font-size:10px;color:#ae978d;line-height:1.5;margin-top:3px}
.hunt-notice{font-size:11px;line-height:1.6;color:#c28c57;background:#fff0dc;border-radius:11px;padding:8px 9px;display:flex;align-items:center;justify-content:center;gap:7px}
.hunt-notice .ui-icon{width:17px;height:17px;color:#f48536;flex:none}
.choose-actions{display:flex;gap:8px}
.choose-actions>button{font-size:16px;border-radius:15px;height:48px;flex:1;padding:0 9px}
.choose-actions>button:first-child{flex:1.6}
.choose-actions .ui-icon{width:20px;height:20px}
.hunt-wait{text-align:center;padding:29px 16px;margin-top:8px;display:flex;flex-direction:column;align-items:center;gap:14px}
.wait-bot{display:grid;place-items:center;width:66px;height:66px;border-radius:23px;background:#f3e7ff;color:#8c69c8}
.wait-bot .ui-icon{width:42px;height:42px;stroke-width:1.5}
.hunt-wait h2{font-size:20px}
.hunt-wait>p{font-size:12px;color:#a38d9e;line-height:1.8}
.hunt-wait .privacy-note{color:#9380b2;font-size:11px;display:flex;align-items:center;gap:5px}
.privacy-note .ui-icon{width:13px;height:13px}
.hunt-wait .selection-summary{width:100%;text-align:left;margin-top:4px}
.thinking-dots{display:flex;gap:6px;padding:3px 0 10px}
.thinking-dots i{width:6px;height:6px;background:#d3b7e8;border-radius:50%;animation:think 1s infinite alternate}
.thinking-dots i:nth-child(2){animation-delay:.2s}.thinking-dots i:nth-child(3){animation-delay:.4s}
@keyframes think{to{opacity:.35;transform:translateY(-3px)}}
.hunt-locked{font-size:11px;color:#b49daf;text-align:center;display:flex;justify-content:center;gap:5px;align-items:center;padding:8px 0}
.hunt-locked .ui-icon{width:13px;height:13px}
.hunt-wait>button{font-size:14px}
.searched-locations{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.searched-locations[data-count="1"]{grid-template-columns:1fr}
.searched-locations[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.searched-locations .location-mini{border:1px solid #eee4d9;box-shadow:0 3px 7px #684b2506;border-radius:10px}
.searched-locations .location-mini img{height:64px;border-radius:9px 9px 0 0}
.searched-locations .location-mini>span{font-size:12px;padding:4px}
.searched-locations .location-mini .ui-icon{width:16px;height:16px;color:#c78a5e}
.inline-heading{display:flex;align-items:center;gap:6px;margin-bottom:10px}
.inline-heading .ui-icon{width:19px;height:19px;color:#c58b65;stroke-width:2.3}
.round-players{display:flex;flex-direction:column;gap:9px}
.round-player{display:flex;align-items:center;gap:6px;font-size:11px}
.round-player>.ui-avatar{width:34px;height:34px;border:1px solid #f1d4b7}
.round-name{display:flex;flex-direction:column;align-items:flex-start;width:65px;min-width:0;flex-shrink:1;gap:2px}
.round-name>strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.self-label{background:#ff8d33;color:#fff;border-radius:99px;line-height:13px;padding:0 5px;font-size:8px}
.reveal-location{display:flex;align-items:center;gap:5px;background:#f8f3ec;color:#796873;padding:5px 7px;border-radius:99px;margin-left:auto;flex:1;min-width:0;font-size:11px}
.reveal-location .ui-icon{width:16px;height:16px;color:#c0875d}
.catch-tag{display:flex;align-items:center;gap:4px;white-space:nowrap;padding:5px 8px;border-radius:99px;font-weight:650;font-size:11px}
.catch-tag .ui-icon{width:14px;height:14px;stroke-width:2.3}
.catch-tag.caught{background:#ffe0db;color:#da413f}
.catch-tag.safe{background:#e7f6e7;color:#33a36e}
.catch-summary{margin-top:12px;display:flex;border:1px solid #ffe1bf;background:#fff7eb;border-radius:12px;padding:10px 9px;gap:8px}
.catch-summary>div{display:flex;align-items:center;gap:6px;font-size:10px;line-height:1.5;flex:1;color:#79564e}
.catch-summary>div+div{border-left:1px solid #f0dac0;padding-left:8px;flex:1.3}
.catch-summary .ui-icon{width:23px;height:23px;color:#f1873f}
.catch-summary b{font-size:18px;color:#f47b31;margin:0 2px}
.catch-summary small{font-size:8px;display:block;text-align:right;color:#b1978e}
.round-record{font-size:11px;color:#a792a2;line-height:1.8}
.round-record .inline-heading{margin-bottom:5px}
.round-record>p{padding-left:24px}
.next-hint{font-size:10px;color:#b49da8;text-align:center}
.next-round{width:100%;border-radius:15px;font-size:17px;height:47px}
/* 两种结算：插画作背景，所有文字、数据和按钮都由真实局面生成。 */
.hunter-ended .hunter-bar h1{position:absolute;left:50%;transform:translateX(-50%);font-size:17px}
.hunter-ended .hunter-bar h1>.ui-icon,.hunter-ended .hunter-help,.hunter-ended .hunter-status{display:none}
.hunter-ended .hunter-bar>button:last-child{margin-left:auto}
.hunter-ended .hunt-body{gap:10px;padding:0 14px 4px}
.hunter-victory{position:relative;isolation:isolate;overflow:hidden;min-height:210px;flex:none;border-radius:16px;border:1px solid #ffe3bc;background:#fff1d7;box-shadow:0 2px 8px #b5863306;padding:18px 8px 9px}
.victory-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:37% center;z-index:-2}
.hunter-victory::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 24%,#fff3df3b 40%,#fff3dfb5 56%,#fff3df7d);z-index:-1}
.victory-copy{min-height:116px;margin-left:43%;display:flex;flex-direction:column;justify-content:center;gap:6px;padding:0 3px 9px}
.victory-copy h2{font-size:clamp(28px,8vw,42px);font-weight:900;letter-spacing:-.055em;line-height:1.1;color:#ff7b26;white-space:nowrap;text-shadow:0 2px #fff8ee}
.victory-copy>strong{font-size:12px;color:#776087;font-weight:700;line-height:1.5}
.victory-copy p{font-size:10px;color:#a0828c;line-height:1.6}
.victory-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fffffff0;border-radius:12px;padding:10px 0;box-shadow:0 2px 8px #86623105;border:1px solid #fff7e9}
.victory-metrics>div{text-align:center;position:relative;padding:0 2px;min-width:0}
.victory-metrics>div+div::before{content:"";position:absolute;left:0;top:8px;bottom:5px;width:1px;background:#f5e4d4}
.victory-metrics dt{font-size:10px;color:#998ba8;margin-bottom:4px}
.victory-metrics dd{font-size:20px;color:#705482;font-weight:750;display:flex;align-items:center;justify-content:center;gap:4px;font-variant-numeric:tabular-nums;line-height:1.2}
.victory-metrics .ui-icon{width:15px;height:15px;color:#fa9462;stroke-width:2.7}
.victory-metrics>div:last-child .ui-icon{color:#baa6c8}
.final-performance,.final-history{padding:10px}
.final-performance>.inline-heading,.final-history>.inline-heading{font-size:16px;margin-bottom:8px}
.final-performance>.inline-heading .ui-icon,.final-history>.inline-heading .ui-icon{color:#ff9444}
.final-performance table,.final-history table{width:100%;font-size:11px;border-collapse:separate;border-spacing:0 4px;table-layout:fixed;color:#83658f}
.final-performance thead th,.final-history thead th{font-size:9px;font-weight:500;color:#a08bac;padding:0 2px 3px}
.final-performance thead th:first-child{width:37%;text-align:left}
.final-performance thead th:nth-child(2),.final-performance thead th:nth-child(3){width:16%}
.final-performance thead th:last-child{width:31%}
.final-performance tbody th,.final-performance tbody td,.final-history tbody th,.final-history tbody td{background:#fff;border-top:1px solid #f8eee7;border-bottom:1px solid #f8eee7;padding:5px 3px;text-align:center}
.final-performance tbody th:first-child,.final-history tbody th:first-child{border-left:1px solid #f8eee7;border-radius:10px 0 0 10px}
.final-performance tbody td:last-child,.final-history tbody td:last-child{border-right:1px solid #f8eee7;border-radius:0 10px 10px 0}
.final-performance th[scope="row"]>span{display:flex;align-items:center;gap:6px;color:#67506c;min-width:0;padding-left:2px;text-align:left}
.final-performance th[scope="row"] b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}
.final-performance .ui-avatar{width:28px;height:28px}
.final-performance tbody td{font-size:14px;font-weight:700}
.award{display:inline-flex;align-items:center;justify-content:center;gap:3px;font-size:9px;font-weight:650;padding:4px 5px;border-radius:99px;white-space:nowrap}
.award .ui-icon{width:12px;height:12px;stroke-width:2.3}
.award.stable{background:#fff0bc;color:#ca8a35}
.award.target{background:#efe2ff;color:#9460d0}
.award-empty{font-size:12px;color:#c1b1ca}
.award-note{font-size:8px;color:#c3afbd;text-align:right;margin-top:4px}
.final-history table thead th:first-child{width:23%}
.final-history table thead th:last-child{width:20%}
.final-history th[scope="row"]{font-size:9px;font-weight:550}
.final-history th[scope="row"]>span{border-radius:99px;background:#f9f5f6;display:inline-block;padding:2px 6px;color:#a28ca8;white-space:nowrap}
.final-history tbody td{padding:5px 2px;font-size:12px;font-weight:650}
.final-history tbody td:nth-child(2){text-align:left;font-weight:500;font-size:9px}
.record-location{display:inline-flex;align-items:center;gap:3px;padding:2px 3px;white-space:nowrap}
.record-location .ui-icon{width:11px;height:11px;color:#cb8b7d;stroke-width:2}
.hunt-result-actions{display:flex;gap:9px}
.hunt-result-actions>button{flex:1;height:44px;font-size:15px;padding:0 8px;border-radius:99px}
button.outline{color:#9980b4;background:transparent;border:1px solid #a891c5}
.hunter-room .room-again{text-align:center;padding:23px 14px;display:flex;flex-direction:column;align-items:center;gap:10px}
.room-again h2{font-size:21px}
.room-again p,.hunter-room .hunt-paper>p{font-size:12px;color:#a797a8;line-height:1.7}
.room-game-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:15px}
.room-game-options button{font-size:13px;gap:6px;padding:0 7px}
.room-game-options .ui-icon{width:17px;height:17px;color:#a888b8}
body[data-screen="hunter"][data-ui-theme="ai-win"]{--bg:#111b2e;--card:#172238;--fg:#ecedff;--dim:#8f99b9;--soft:#202c47;--line:#2b3b62;--acc:#ff7c2b;--on-acc:#fff;color-scheme:dark;background:#09101f}
body[data-ui-theme="ai-win"] .hunter-screen{background:radial-gradient(ellipse at 75% 28%,#203149 0,transparent 72%),#101a2c}
body[data-ui-theme="ai-win"] .hunt-paper{background:#132036dc;border:1px solid #283b64;box-shadow:none}
body[data-ui-theme="ai-win"] .hunt-paper h2{color:#e0dffe}
body[data-ui-theme="ai-win"] .hunter-victory{background:#07152e;border:1px solid #324da7;box-shadow:0 0 16px #153bcc15}
body[data-ui-theme="ai-win"] .hunter-victory::before{background:linear-gradient(90deg,transparent 20%,#05153730 35%,#051537a8 55%,#07142c40)}
body[data-ui-theme="ai-win"] .victory-copy h2{color:#dff7ff;text-shadow:0 0 5px #72b9ff,0 0 19px #3484ff;letter-spacing:-.03em}
body[data-ui-theme="ai-win"] .victory-copy>strong{color:#c9d4ff}
body[data-ui-theme="ai-win"] .victory-copy p{color:#8a9cc6}
body[data-ui-theme="ai-win"] .victory-metrics{background:#172341e8;border-color:#405990;box-shadow:inset 0 0 13px #4169de12}
body[data-ui-theme="ai-win"] .victory-metrics>div+div::before{background:#35446a}
body[data-ui-theme="ai-win"] .victory-metrics dt{color:#a0a4d7}
body[data-ui-theme="ai-win"] .victory-metrics dd{color:#e5dfff}
body[data-ui-theme="ai-win"] .final-performance tbody th,body[data-ui-theme="ai-win"] .final-performance tbody td,body[data-ui-theme="ai-win"] .final-history tbody th,body[data-ui-theme="ai-win"] .final-history tbody td{background:#1a2941;border-color:#2b3d67;color:#c9bdff}
body[data-ui-theme="ai-win"] .final-performance th[scope="row"]>span{color:#e9e4ff}
body[data-ui-theme="ai-win"] .final-performance thead th,body[data-ui-theme="ai-win"] .final-history thead th{color:#9b9bce}
body[data-ui-theme="ai-win"] .award.stable{background:#544122;color:#ffc075;box-shadow:inset 0 0 0 1px #9d7240}
body[data-ui-theme="ai-win"] .award.target{background:#35266c;color:#c3a1ff;box-shadow:inset 0 0 0 1px #6049aa}
body[data-ui-theme="ai-win"] .award-note{color:#68779c}
body[data-ui-theme="ai-win"] .final-history th[scope="row"]>span{background:#202e4b;color:#9a9aca}
body[data-ui-theme="ai-win"] button.outline{color:#babdff;border-color:#6883e8}
body[data-ui-theme="ai-win"] button.pale{background:#1a2941!important;border-color:#354976!important;color:#c0b9f0!important}
/* 窄屏与矮屏保持真实可滚动内容，操作区一直可达。 */
@media(min-width:460px){.lobby-hero{min-height:201px;padding-left:17px}.lobby-dice{right:-5px;width:255px;height:185px}.lobby-brand h1{font-size:58px}.lobby-brand p{font-size:17px}.lobby-primary button{height:64px;font-size:20px}.lobby-scroll{padding-left:18px;padding-right:18px}.current-art{width:92px;height:118px}.current-copy{gap:5px}.current-title h3{font-size:18px}.current-actions button{height:34px;font-size:12px}.room-art{width:104px;height:138px}.room-game-copy h2{font-size:23px}.room-tools{gap:10px}.room-member .ui-avatar,.empty-avatar{width:48px;height:48px}.room-game-copy>p{font-size:11px}.hunter-roster{gap:44px}.hunt-location>img{height:106px}.hunt-location>span{font-size:13px}.hunt-location:nth-child(n+4)>img{height:97px}.hunt-bubble{font-size:14px}.hunt-card-heading h2{font-size:17px}.hunt-card-heading p{font-size:12px}.victory-copy{min-height:135px}.victory-copy h2{font-size:45px}.victory-copy>strong{font-size:15px}.victory-copy p{font-size:12px}.hunter-victory{min-height:235px}.victory-metrics dd{font-size:25px}.final-performance table{font-size:13px}.final-performance th[scope="row"] b{font-size:13px}.final-performance .ui-avatar{width:33px;height:33px}.award{font-size:11px}.final-history tbody td:nth-child(2){font-size:11px}.record-location .ui-icon{width:13px;height:13px}}
@media(max-width:360px){.lobby-hero{min-height:159px;padding-left:5px}.lobby-brand h1{font-size:42px}.lobby-brand p{font-size:12px}.lobby-brand small{font-size:10px}.lobby-dice{width:173px;height:130px;right:-24px}.lobby-primary button{padding:0 8px;font-size:14px;gap:5px}.lobby-primary .tail{display:none}.section-title h2{font-size:19px}.section-title>p{font-size:9px}.current-room{gap:8px;padding:3px}.current-art{width:66px;height:112px}.current-title h3{font-size:15px}.current-title .host-tag{font-size:9px;padding:2px 4px}.current-actions button{font-size:11px}.current-actions .ui-icon{display:none}.game-art{width:56px;height:69px}.lobby-game-row{gap:8px;padding:6px}.lobby-game-copy h3{font-size:15px}.lobby-game-copy p{font-size:10px}.game-tag{font-size:10px}.small-cta{padding:0 8px!important}.room-bar{gap:6px;padding-left:10px;padding-right:10px}.room-brand h1{font-size:21px}.room-brand p{font-size:9px}.room-self{display:none}.room-art{width:80px;height:138px}.room-game-card{gap:8px}.room-game-copy h2{font-size:20px}.room-game-copy>p{font-size:11px}.room-members-card>.section-title h2{font-size:17px}.room-members-card>.section-title h2 .ui-icon{width:18px;height:18px}.invite-people{font-size:9px!important;padding:0 7px!important}.invite-people .ui-icon{display:none}.room-member .ui-avatar,.empty-avatar{width:34px;height:34px}.room-member>strong{font-size:10px}.room-member-grid{gap:4px}.hunter-roster{gap:20px}.hunter-player .ui-avatar{width:41px;height:41px}.hunt-round{font-size:10px}.hunt-round b{font-size:18px}.phase-chip{font-size:10px;padding:4px 6px}.hunt-clock{font-size:18px}.hunt-clock .ui-icon{width:14px;height:14px}.hunt-phase{padding:10px;margin-left:12px;margin-right:12px}.hunt-location>img{height:64px}.hunt-location>span{font-size:10px;gap:3px}.hunt-location>span>.ui-icon{width:12px;height:12px}.choice-check{width:14px;height:14px}.choice-check .ui-icon{width:14px;height:14px}.choose-actions>button{font-size:14px}.hunt-notice{font-size:10px}.victory-copy{margin-left:40%}.victory-copy h2{font-size:27px}.victory-copy>strong{font-size:11px}.victory-metrics dd{font-size:16px;gap:2px}.victory-metrics .ui-icon{width:12px;height:12px}.award{font-size:8px;padding:3px 4px}.award .ui-icon{width:10px;height:10px}.final-performance th[scope="row"] b{font-size:10px}.final-performance .ui-avatar{width:23px;height:23px}.final-performance th[scope="row"]>span{gap:3px}}
@media(max-height:650px){.hunter-bar{min-height:48px;padding-top:calc(7px + env(safe-area-inset-top));padding-bottom:6px}.hunter-roster{padding-top:4px;padding-bottom:7px}.hunter-player .ui-avatar{width:39px;height:39px}.hunt-phase{margin-bottom:3px;padding-top:8px;padding-bottom:8px}.hunt-location>img{height:64px}.hunt-dock{padding-top:6px;gap:6px}.locations-overview .location-mini img{height:37px}.room-bar{padding-top:calc(11px + env(safe-area-inset-top));padding-bottom:11px}.room-scroll{gap:10px}.room-members-card{padding-bottom:10px}.room-chat-card{min-height:160px}.hunter-victory{min-height:194px}.victory-copy{min-height:100px}}
@media(prefers-reduced-motion:reduce){.thinking-dots i{animation:none}.hunt-phase progress::-webkit-progress-value{transition:none}}

.no-animate{animation:none!important}
.room-bar,.hunter-bar{position:relative}
.room-network{position:absolute;bottom:0;right:18px;color:#dd8d3d;font-size:9px;line-height:1.2;z-index:1}
.room-network:empty{display:none}

/* 玩法卡固定 160px，切换玩法/模式不改变占位；大字时正文可内部滚动，设置与模型入口仍可访问。 */
.room-game-copy>.section-title{align-items:center;gap:6px}
.room-game-copy .setting-button{flex:none}
.room-scroll{overflow-x:hidden}
.lobby-scroll::-webkit-scrollbar,.room-scroll::-webkit-scrollbar{width:5px}
.lobby-scroll::-webkit-scrollbar-thumb,.room-scroll::-webkit-scrollbar-thumb{background:#e4d3bb;border-radius:99px}
@media(max-width:360px){.setting-button{font-size:9px!important;padding:0 6px!important}.room-game-copy{gap:5px}}

.join-preview-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:24px;flex:none}
.join-preview-card .room-art{width:130px;height:155px;min-height:155px}
.join-preview-card h2{font-size:25px}
.join-preview-card p{font-size:13px;color:#aa96a7;line-height:1.8}
.join-preview-members{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:10px 0}
.join-preview-members>span{justify-self:center;width:100%;display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;max-width:70px;font-size:12px;color:#937b92}
.join-preview-members b{font-weight:500;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.join-privacy-note{font-size:11px;color:#b6a4b5;text-align:center;padding:5px}

/* 五/六人猎人阵容使用等宽列，防止旧固定间距挤出屏幕。 */
.hunter-roster[data-player-count="5"],.hunter-roster[data-player-count="6"]{display:grid;gap:6px;align-items:start}
.hunter-roster[data-player-count="5"]{grid-template-columns:repeat(5,minmax(0,1fr))}
.hunter-roster[data-player-count="6"]{grid-template-columns:repeat(6,minmax(0,1fr))}
.hunter-roster:is([data-player-count="5"],[data-player-count="6"]) .hunter-player{min-width:0;max-width:none;width:100%}
.hunter-roster:is([data-player-count="5"],[data-player-count="6"]) .ui-avatar{width:38px;height:38px}
.hunter-roster:is([data-player-count="5"],[data-player-count="6"]) .confirm-tag{font-size:8px;gap:2px;padding:2px 3px}
@media(max-width:360px){.hunter-roster:is([data-player-count="5"],[data-player-count="6"]) .ui-avatar{width:34px;height:34px}}
