:root{color-scheme:light;--ink:#49382e;--dim:#796958;--gold:#ffcf68;--line:#dfcaad;--cream:#fff6e3;--you:#267d80;--wolf:#8e3860;--good:#236f55;--app-height:100dvh;font-family:'Trebuchet MS','Segoe UI',sans-serif;font-size:14px;line-height:1.4;color:var(--ink);background:#183c54}
*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#3a52653b,#123c4b50),url('art-village-day.png') center/cover fixed}body[data-scene=night]{background-image:linear-gradient(#17345155,#13273c66),url('art-village-night.png')}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.53;filter:saturate(.6)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #098c9c;outline-offset:3px}[hidden]{display:none!important}a{color:#176a72}p,h1,h2{margin:0}.ui-icon{width:20px;height:20px;flex:none;vertical-align:middle}.row{display:flex;align-items:center;gap:8px}.row.between{justify-content:space-between}.row.wrap{flex-wrap:wrap}.stack{display:flex;flex-direction:column;gap:10px}.grow{flex:1;min-width:0}.muted{color:var(--dim)}.small{font-size:12px;line-height:1.5}.label,.eyebrow{font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:800}.label{display:flex;align-items:center;gap:6px}.label .ui-icon{width:15px;height:15px}.gold{color:var(--gold)}.title{font-size:25px;line-height:1.2;font-weight:900;overflow-wrap:anywhere}.space{margin-top:auto}
#app{height:var(--app-height);max-width:1240px;margin:0 auto;display:flex;flex-direction:column;padding:env(safe-area-inset-top) 16px env(safe-area-inset-bottom);position:relative;overflow:hidden}.topbar{display:flex;align-items:center;gap:6px;min-height:62px;flex:none;color:#fff4da;text-shadow:0 1px 3px #163632}.brand{display:flex;align-items:center;gap:8px;border:0;background:none;color:#fff1c8;font-size:20px;font-weight:900;letter-spacing:1.3px;padding:4px;min-height:44px}.brand .brand-paw{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;color:#493525;background:#ffce72;box-shadow:inset 0 0 0 2px #fff0b2,0 3px 0 #94603c;font-size:25px}.connection{margin-left:auto;font-size:11px;text-align:right;max-width:95px}.connection[data-status=online]{color:#e5ffd5}.connection[data-status=offline]{color:#ffdfab}.icon-button{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;color:inherit;min-height:44px;min-width:44px;border-radius:12px;font-size:16px;font-weight:800;padding:8px}.icon-button:hover{background:#ffffff20}.topbar .icon-button{border:1px solid #ffffff35;background:#143b4955}.topbar #guide{border-radius:50%;min-width:34px;width:34px;min-height:34px;height:34px;padding:0;font-family:Georgia,serif;font-size:21px}#main{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.screen{padding:10px 0 22px;display:flex;flex-direction:column;gap:18px;min-height:100%}.parchment,.section{background:linear-gradient(145deg,#fff9eb,#f8e9cc);border:2px solid #f7d99c;box-shadow:0 5px 0 #a77b4a55,0 12px 32px #18342624,inset 0 0 0 2px #ffffff85;border-radius:22px}.section{padding:16px}.button{min-height:48px;min-width:44px;border:1px solid #ceb28f;border-bottom-width:3px;border-radius:13px;background:linear-gradient(#fffcf2,#f2e1c5);color:#644834;padding:10px 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;text-decoration:none;font-weight:800;font-size:14px;line-height:1.25;flex:1;box-shadow:inset 0 1px 0 #fff8;transition:filter .15s,transform .15s}.button:hover:not(:disabled){filter:brightness(1.06);transform:translateY(-1px)}.button:active:not(:disabled){transform:translateY(1px)}.button.primary{background:linear-gradient(#ff8a68,#ed6353);border-color:#b54c43;color:#fffaf0;text-shadow:0 1px 1px #7d332a55;box-shadow:inset 0 1px 0 #ffc6a7,0 3px 0 #b54c4330}.button.teal{background:linear-gradient(#65b9b0,#369e9f);border-color:#287f82;color:#fff;text-shadow:0 1px 1px #1f6c6e55}.button.danger{background:#f8ddd8;border-color:#d4a49c;color:#983d3d}.button.full{width:100%;flex:none}.button.mic-on,.button.active{background:#d5eedb;border-color:#5c9c79;color:#245f45}.button.compact{min-height:44px;padding:7px 10px;font-size:12px}.button svg{width:19px;height:19px;flex:none}.field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#705943;min-width:0}.field input,.field select,input.text-input{min-height:48px;min-width:0;width:100%;background:#fffcf5;color:#49382e;border:2px solid #dbc5a7;border-radius:12px;padding:10px 12px;font-size:16px;box-shadow:inset 0 2px 4px #7d54280b}.field input::placeholder,input.text-input::placeholder{color:#8b7b6b;font-weight:400}.note{border-left:3px solid #e9a44f;padding-left:10px;color:#79634b;font-size:12px;line-height:1.6}
/* Illustrated entrance: the scene stays behind the interface, not inside a banner. */
.screen.menu{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(340px,.85fr);align-content:center;align-items:center;gap:24px 45px;padding:20px 28px 24px;max-width:1160px;margin:auto}.hero{text-align:center;min-width:0;position:relative;color:#fff9db;text-shadow:0 2px 5px #4d4d45}.hero-kicker{display:flex;justify-content:center;align-items:center;gap:7px;letter-spacing:2px;text-transform:uppercase;font-size:11px;font-weight:800}.game-logo{font-family:'Trebuchet MS','Segoe UI',sans-serif;font-size:clamp(40px,5.7vw,74px);letter-spacing:-2px;line-height:1.15;font-weight:1000;color:#ffdc79;-webkit-text-stroke:1px #9d5b37;text-shadow:0 3px 0 #9e5a33,0 5px 0 #663c31,0 8px 16px #294c4260;margin:6px 0 10px;transform:rotate(-2deg)}.hero>p{font-weight:700;font-size:14px}.hero-characters{display:block;width:120%;max-width:none;height:auto;margin:8px -10% -2%;object-fit:contain;filter:drop-shadow(0 15px 18px #17362c45)}.hero-badges{display:flex;align-items:center;justify-content:center;gap:12px;position:relative}.hero-badges>span{display:flex;align-items:center;gap:6px;background:#244f4bde;border:1px solid #fff2b659;border-radius:20px;padding:7px 13px;font-size:12px;box-shadow:0 3px 8px #26433644;text-shadow:none}.hero-badges svg{width:16px;height:16px}.welcome-column{display:flex;flex-direction:column;gap:16px;position:relative}.welcome-panel{padding:25px;display:flex;flex-direction:column;gap:18px}.panel-heading{display:flex;align-items:center;gap:12px}.panel-heading .eyebrow{color:#a16b43;font-size:9px;letter-spacing:.9px}.panel-heading h2{font-size:22px;font-weight:900;line-height:1.2;margin-top:3px;color:#61472f}.mini-emblem{width:42px;height:46px;border-radius:13px;background:#d9e4b4;display:grid;place-items:center;color:#557344;box-shadow:inset 0 0 0 2px #ecf0d0;flex:none}.welcome-panel .primary{min-height:54px;font-size:16px}.welcome-panel .primary svg:last-child{margin-left:auto}.welcome-panel .primary svg:first-child{margin-right:auto}.public-rooms{display:flex;flex-direction:column;gap:10px;padding:16px}.public-rooms h2{font-size:15px;display:flex;align-items:center;gap:6px}.public-rooms .ui-icon{width:18px}.count-badge{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:50%;background:#e7d6b5;font-size:11px}.public-rooms>.row>.button{flex:none;min-height:36px;font-size:10px}.room-list{display:flex;flex-direction:column;gap:8px;max-height:180px;overflow:auto;scrollbar-width:thin}.room-item{flex:none;width:100%;text-align:left;justify-content:space-between;gap:12px;min-height:62px}.room-info{min-width:0;flex:1;overflow-wrap:anywhere}.room-info strong,.room-item span{display:block}.room-capacity{flex:none;text-align:right;color:#297e7b;font-size:18px}.room-empty{padding:12px;border:1px dashed #dac39f;border-radius:11px;line-height:1.55;background:#fff9e985}.guide-link{display:flex;align-items:center;gap:12px;padding:12px 16px;border:1px solid #ffffff60;border-radius:15px;background:#244f4cdd;color:#fff3cd;text-align:left;box-shadow:0 4px 10px #133e3540}.guide-link>span{flex:1;font-weight:800;font-size:13px}.guide-link small{display:block;font-weight:400;font-size:11px;opacity:.85;margin-top:2px}.guide-link>.ui-icon:first-child{width:25px;height:25px}.menu-tip{grid-column:1/-1;max-width:550px;text-align:center;justify-self:center;color:#fffbe8;font-size:11px;text-shadow:0 1px 4px #152e25;background:#193f435e;padding:7px 15px;border-radius:20px}
/* Public faces use a separate civilian atlas. */
.portrait{display:block;flex:none;width:64px;aspect-ratio:1;background-repeat:no-repeat;background-position:var(--art-x) var(--art-y);background-color:#dbd8c8;border:3px solid #fff0cf;box-shadow:0 3px 0 #6b432b33;overflow:hidden}.avatar-art{background-image:url('art-avatars.png');background-size:500% 300%;border-radius:50%}.role-art{background-size:500% 200%;border-radius:17px}.roles-a{background-image:url('art-roles-a.png')}.roles-b{background-image:url('art-roles-b.png')}
.screen.play{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px;height:100%;min-height:0;padding:6px 0 20px;overflow:hidden}.table-scene{display:flex;flex-direction:column;gap:18px;min-width:0;min-height:0;padding:20px;border:3px solid #ffe2a5;border-radius:27px;background:linear-gradient(180deg,#28474538 0%,#24473512 55%,#1b424e50),url('art-village-day.png') center/cover;box-shadow:inset 0 0 0 2px #af7b4c99,0 8px 20px #17354155;color:#fff6df;position:relative;overflow:auto;scrollbar-width:thin}body[data-scene=night] .table-scene{background-image:linear-gradient(180deg,#132e5110,#14264020),url('art-village-night.png')}.board-heading{display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:17px;background:#fff6e6ec;border:1px solid #e8c58e;box-shadow:0 4px 0 #654c3620;color:#64442c}.board-heading .label{color:#977044;margin-bottom:5px}.exit-button{min-height:36px;min-width:36px;width:36px;height:36px;background:transparent;color:inherit;align-self:center}.invitation-strip{display:flex;gap:8px;align-items:center;background:#274e47e0;border:1px solid #f9e1aa7a;padding:9px 12px;border-radius:14px}.code{font-size:20px;letter-spacing:3px;font-weight:900;font-variant-numeric:tabular-nums}.invitation-strip .code{margin-right:auto;color:#ffe0a0}.invitation-strip .button{flex:none}.roster-panel{display:flex;flex-direction:column;gap:14px;flex:none;margin-top:8px}.roster-title{color:#fff9e6;text-shadow:0 2px 3px #173c30}.roster-title .label{font-size:10px}.roster-count{font-size:11px;background:#254c4cce;border:1px solid #ffe7b859;border-radius:20px;padding:4px 9px}.roster{display:grid;grid-template-columns:repeat(var(--columns,5),minmax(0,1fr));gap:18px 10px}.player{min-width:0;padding:0 0 3px;display:flex;align-items:center;flex-direction:column;gap:3px;border:0;border-radius:15px;background:none;color:#fff8e2;position:relative;font-size:12px}.player:disabled{opacity:1}.avatar-wrap{position:relative;display:block;width:min(100%,100px);padding:4px}.player .portrait{width:100%;border-width:4px;box-shadow:0 4px 0 #72503999,0 7px 15px #24403340;transition:transform .15s,box-shadow .15s}.player:hover .portrait{transform:translateY(-2px)}.player .name{font-weight:900;max-width:100%;padding:4px 10px;border:1px solid #fff2c8aa;border-radius:9px;background:#fff4dfee;color:#614c36;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;line-height:1.2;box-shadow:0 2px 0 #534d3340}.player .status{font-size:10px;line-height:1.2;padding:2px 6px;color:#fffae8;background:#274d49dd;border-radius:8px;max-width:100%;overflow-wrap:anywhere}.player.self .portrait{border-color:#7bddd0;box-shadow:0 0 0 2px #317e82,0 5px 0 #21636577}.player.self .name{background:#d9f3e7;color:#235e5e;border-color:#77c7bb}.player.ready .status{background:#2c7652}.player.wolf .name{background:#f5d2df;color:#803f59}.player.dead .portrait{filter:grayscale(.9);opacity:.7}.player.dead .name{background:#e1dbce}.player.disconnected .status{background:#704a46}.player.selected .portrait{border-color:#ffe17c;box-shadow:0 0 0 3px #f8ba3e,0 0 24px #ffce5577}.selection-mark,.host-crown,.eliminated-mark{position:absolute;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;right:0;bottom:4px;background:#ffdf77;color:#775329;border:2px solid #fff4cf}.selection-mark{display:none}.selected .selection-mark{display:grid}.selection-mark svg{width:15px;height:15px}.host-crown{top:-3px;left:50%;transform:translateX(-50%);width:25px;height:25px}.host-crown svg{width:17px;height:17px}.eliminated-mark{background:#8f7770;color:#fff;border-color:#e8d4c2;font-size:13px}.player[data-speaking=true] .portrait{box-shadow:0 0 0 4px #7cf29c,0 0 20px #74df88}.scene-caption{margin:auto auto 12px;text-align:center;text-shadow:0 2px 4px #163b2f;max-width:340px;font-weight:800;font-size:15px;padding-top:20px}.scene-caption>span{display:block;margin-bottom:8px;color:#ffe18a}.scene-caption small{display:block;font-size:11px;font-weight:400;margin-top:5px}.table-sidebar{display:flex;flex-direction:column;gap:14px;min-width:0;min-height:0;background:linear-gradient(155deg,#fff9ec,#f6e8ce);border:2px solid #ffdf9f;border-radius:24px;padding:17px;box-shadow:0 8px 20px #1e3e3540}.phase-line{flex:none;border:1px solid #f3d4a1;background:#fff6e9ed;color:#674631;border-radius:18px;padding:12px 14px;box-shadow:0 3px 0 #4f3a3720}.phase-medallion{display:grid;place-items:center;width:43px;height:43px;border-radius:50%;background:#f2ca7b;color:#8c5632;box-shadow:inset 0 0 0 2px #ffecb6}.phase-medallion .ui-icon{width:26px;height:26px}.phase{font-size:24px;font-weight:900}.phase-line .label{font-size:9px;color:#987753}.clock{font-size:26px;font-weight:900;font-variant-numeric:tabular-nums;color:#9b683c;letter-spacing:1px}.progress{height:5px;background:#e1cfb5;margin-top:9px;border-radius:4px;overflow:hidden}.progress span{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,#e89662,#edc365);transition:width .4s linear}body[data-scene=night] .phase-line{background:#26385eee;border-color:#9697cb;color:#fff3d5}body[data-scene=night] .phase-medallion{background:#766da5;color:#ffe9ad;box-shadow:inset 0 0 0 2px #b4a1ce}body[data-scene=night] .phase-line .label{color:#d1c6e1}body[data-scene=night] .clock{color:#ffe3a0}body[data-scene=night] .progress{background:#1e2948}.self-bar{display:flex;align-items:center;gap:13px;padding:12px;background:linear-gradient(120deg,#5d5484f5,#353c65f5);border:2px solid #c4abd5;border-radius:19px;color:#fff5de;text-align:left;flex:none;margin-top:auto;box-shadow:0 4px 0 #26354a66}.self-bar .role-art{width:70px;border-color:#f2d6ac}.self-copy{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.self-copy .eyebrow{color:#e6d0ed;font-size:9px;letter-spacing:.7px;display:flex;align-items:center;gap:4px}.self-copy .eyebrow svg{width:12px;height:12px}.self-copy strong{font-size:23px;color:#ffe5a0}.self-copy small{font-size:11px;color:#ded5ec;overflow-wrap:anywhere}.role-more{padding:8px;border-radius:10px;background:#ffffff14}
.chat-area{display:flex;flex-direction:column;min-height:90px;flex:1;gap:10px}.chat-tabs{display:flex;gap:13px;align-items:center;border-bottom:2px solid #e9d7b9;flex:none}.chat-tab{min-height:40px;min-width:44px;border:0;border-bottom:3px solid transparent;padding:6px 2px;background:none;color:#94795f;font-size:13px;font-weight:800}.chat-tab[aria-selected=true]{color:#6e4930;border-bottom-color:#e8a86b}.messages{overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1;font-size:13px;line-height:1.5;overflow-wrap:anywhere;scrollbar-width:thin;padding:2px}.message{padding:8px 10px;margin:3px 0 8px;background:#fffaf0;border:1px solid #e6d7c0;border-radius:3px 12px 12px 12px}.message strong{display:block;color:#3e8080;font-weight:800;font-size:11px;margin-bottom:1px}.message.log{color:#8a705b;font-size:12px;background:transparent;border:0;border-left:2px solid #ddc19b;border-radius:0;margin-bottom:5px;padding:3px 8px}.message.private{background:#eee7f6;border-color:#d4c7e4}.message.private:before{content:'\1F512\20';font-size:10px;float:right}.compose{display:flex;gap:7px;flex:none}.compose input.text-input{min-height:44px;flex:1;font-size:16px;padding:8px 10px}.compose .button{flex:none;width:44px;min-height:44px;padding:8px;background:#5faca5;border-color:#3d8b86;color:white;border-radius:12px}.locked-chat{color:#8a705e;font-size:11px;padding:5px 0;flex:none}.actions{display:flex;flex-direction:column;gap:10px;flex:none;border-top:2px dashed #e4d1b0;padding-top:14px}.action-hint{font-size:12px;color:#806347;line-height:1.5;overflow-wrap:anywhere;max-height:70px;overflow:auto}.action-modes{display:flex;gap:6px}.action-modes .button{min-height:42px;font-size:12px;padding:7px}.actions .button{min-height:46px}.voice-line,.lobby-hint{font-size:10px;line-height:1.4;color:#94795f;text-align:center}.voice-line:empty{display:none}.lobby-hint{margin-top:-2px}.role-card{text-align:center;padding:14px 8px 4px}.role-reveal-art{width:180px;margin:auto;border:5px solid #ffe3a5;border-radius:32px;box-shadow:0 6px 0 #b4916a44,0 15px 35px #855c5522;transform:rotate(-3deg)}.role-card h2{font-size:32px;font-weight:900;margin:20px 0 8px;color:#654a35}.team-badge{display:inline-block;background:#deebc9;color:#52693c;border:1px solid #c3d4a5;border-radius:20px;padding:5px 12px;font-size:10px;text-transform:uppercase;letter-spacing:1px;font-weight:900}.role-card[data-team=wolf] .team-badge{background:#ecd8ed;border-color:#d1b3dc;color:#835477}.role-card[data-team=neutral] .team-badge{background:#ffe6b4;color:#93682b;border-color:#e5c488}.role-description{font-size:14px;line-height:1.7;color:#7b6651;max-width:370px;margin:14px auto 0}.role-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px 5px;padding-top:16px;border-top:2px dashed #decaac}.role-choice{min-width:0;border:1px solid transparent;background:transparent;border-radius:12px;padding:5px 2px;display:flex;flex-direction:column;align-items:center;gap:5px;color:#74593f}.role-choice .portrait{width:100%;max-width:62px;border-width:2px;border-radius:13px}.role-choice span:last-child{font-size:9px;font-weight:800;line-height:1.2;min-height:22px}.role-choice.chosen{background:#e8d5b0;border-color:#c69e5e}.role-choice:hover{background:#f1e0bf}
.results-screen{max-width:900px;margin:auto;padding:18px 24px 28px}.results-title{text-align:center;color:#fff9df;text-shadow:0 2px 5px #174c3e}.results-title .label{justify-content:center;font-size:10px;margin-top:8px}.victory-icon{width:35px;height:35px;color:#ffe18f}.results-title h1{font-size:37px;line-height:1.15;font-weight:900;margin:10px 0}.results-title p{font-size:13px;max-width:480px;margin:auto}.winner-portrait{width:114px;margin:18px auto 2px;border-width:5px;border-color:#ffe295;border-radius:50%;box-shadow:0 0 0 5px #ffdd8450,0 8px 20px #28463655}.result-self{display:flex;align-items:center;gap:14px;padding:12px 18px;max-width:400px;width:100%;align-self:center}.result-self>span:last-child{display:flex;flex-direction:column;gap:3px}.result-self strong{font-size:21px}.result-self small{font-size:10px;color:#907252}.result-self .ui-icon{width:15px;height:15px}.revealed-section h2{font-size:16px;color:#fff5dc;text-shadow:0 2px 3px #244837;margin:6px 0 12px;text-align:center}.result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.result-row{display:flex;gap:10px;align-items:center;padding:10px;border-radius:17px;min-width:0}.result-row .portrait{width:57px;border-width:2px;border-radius:12px}.result-row>span:last-child{display:flex;flex-direction:column;min-width:0;gap:2px;overflow-wrap:anywhere;font-size:12px}.result-row strong{font-size:12px}.result-row small{color:#92785c;font-size:9px}.result-row.survived small{color:#357759}.result-actions{display:flex;gap:12px}.result-log{font-size:12px}.result-log .message{margin:5px 0}.notice{position:absolute;left:24px;right:24px;top:67px;max-width:600px;margin:auto;background:#fff6dc;color:#684d32;border:2px solid #e4b876;border-radius:15px;padding:14px;z-index:5;font-size:13px;box-shadow:0 8px 22px #193c4155}.loading{padding:30px;text-align:center;color:#fff5d9}.footer{text-align:center;color:#fff7e0;font-size:11px;padding:10px}
dialog{width:calc(100% - 24px);max-width:460px;max-height:calc(100dvh - 32px);padding:0;background:linear-gradient(140deg,#fff9eb,#f5e5c8);color:var(--ink);border:3px solid #f3d093;border-radius:24px;box-shadow:0 20px 80px #132c4666;overscroll-behavior:contain;scrollbar-width:thin}dialog::backdrop{background:#152c47ab;backdrop-filter:blur(5px)}#dialog-content{padding:22px;display:flex;flex-direction:column;gap:16px}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-head h2{font-size:21px;font-weight:900;color:#6d5039}.dialog-head .icon-button{background:#ead9bd;border-radius:50%;width:34px;min-width:34px;min-height:34px;height:34px;font-size:13px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.role-checks{display:grid;grid-template-columns:1fr 1fr;gap:5px}.role-checks label{display:flex;align-items:center;gap:7px;min-height:48px;font-size:11px;line-height:1.25}.role-checks input{width:17px;height:17px;flex:none;accent-color:#438d83}.role-checks .checkbox-portrait{width:31px;border-width:1px;border-radius:8px}.settings-note{font-size:12px;color:#8b6c4d}.profile-portrait{width:130px;margin:auto}details summary{min-height:44px;display:flex;align-items:center;gap:8px;color:#92673b;font-weight:800;cursor:pointer}details summary:after{content:'\002b';margin-left:auto}details[open] summary:after{content:'\2212'}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(min-width:761px) and (max-height:780px){.screen.menu{padding-top:8px;padding-bottom:15px;gap:16px 32px}.welcome-panel{padding:18px;gap:12px}.panel-heading h2{font-size:20px}.welcome-column{gap:12px}.hero-characters{width:110%;margin-left:-5%;margin-right:-5%}.table-scene{gap:12px;padding:16px}.roster{gap:10px}.avatar-wrap{max-width:80px}.scene-caption{padding-top:8px}.self-bar .portrait{width:55px}.self-copy strong{font-size:20px}}
@media(max-width:1000px) and (min-width:761px){.screen.play{grid-template-columns:minmax(0,1fr) 295px;gap:10px}.table-scene{padding:14px}.table-sidebar{padding:13px}.roster{gap:12px 5px}.avatar-wrap{max-width:80px}.player .name{font-size:11px;padding:3px 6px}.screen.menu{gap:22px;padding:16px 0}.game-logo{font-size:51px}}
@media(max-width:760px){
 #app{padding:env(safe-area-inset-top) 10px env(safe-area-inset-bottom)}.topbar{min-height:52px;gap:5px}.brand{font-size:16px;gap:7px;letter-spacing:.7px}.brand .brand-paw{width:28px;height:28px;font-size:22px}.topbar .icon-button{min-width:33px;min-height:34px;width:33px;height:34px;font-size:12px}.topbar #guide{width:30px;min-width:30px;min-height:30px;height:30px;font-size:18px}.connection{font-size:9px;max-width:80px}.screen.menu{display:flex;align-items:stretch;gap:16px;padding:14px 5px 22px;max-width:460px;min-height:100%;justify-content:flex-start}.hero{padding:0 7px}.hero-kicker{font-size:9px;letter-spacing:1.5px}.hero-kicker svg{width:14px;height:14px}.game-logo{font-size:48px;margin:4px 0 5px}.hero>p{font-size:11px}.hero-characters{width:100%;max-width:420px;margin:3px auto -12px;height:auto}.hero-badges{gap:8px}.hero-badges>span{font-size:10px;padding:5px 9px}.hero-badges svg{width:14px;height:14px}.welcome-column{gap:14px}.welcome-panel{padding:20px;gap:14px}.panel-heading h2{font-size:21px}.panel-heading .eyebrow{font-size:8px}.welcome-panel .primary{min-height:50px}.public-rooms{padding:14px}.menu-tip{font-size:10px;border-radius:12px;padding:9px 12px}.screen.play{display:flex;flex-direction:column;gap:8px;padding:3px 0 8px;overflow:auto;height:100%;min-height:0}.table-scene{flex:none;gap:10px;padding:12px;border-width:2px;border-radius:20px;overflow:visible}.table-sidebar{flex:1;gap:8px;min-height:215px;padding:10px 12px;border-radius:18px;box-shadow:0 4px 12px #1e3e3540}.board-heading{padding:9px 11px;border-radius:12px;gap:5px}.board-heading .label{font-size:8px;margin-bottom:3px}.board-heading .label svg{width:13px;height:13px}.title{font-size:19px}.exit-button{width:32px;min-width:32px;height:32px;min-height:32px;font-size:12px}.invitation-strip{gap:6px;padding:5px 8px;border-radius:10px}.invitation-strip .code{font-size:16px;letter-spacing:2px}.invitation-strip .button{font-size:10px;min-height:36px;padding:5px 7px;border-radius:9px}.roster-panel{gap:8px;margin-top:0}.roster-title .label{font-size:8px;letter-spacing:.7px}.roster-count{font-size:9px;padding:3px 7px}.roster{gap:10px 5px}.avatar-wrap{width:min(100%,75px);padding:3px}.player{gap:2px}.player .portrait{border-width:3px}.player .name{font-size:10px;padding:3px 6px;border-radius:7px;line-height:1.15}.player .status{font-size:8px;padding:2px 4px}.host-crown,.selection-mark,.eliminated-mark{width:20px;height:20px;border-width:1px}.host-crown{top:-3px}.host-crown svg{width:14px;height:14px}.scene-caption{padding:0;margin:2px auto;font-size:10px;max-width:none}.scene-caption>span,.scene-caption small{display:none}.phase-line{padding:8px 9px;border-radius:13px}.phase-medallion{width:34px;height:34px}.phase-medallion svg{width:21px!important;height:21px!important}.phase{font-size:21px;line-height:1.15}.phase-line .label{font-size:8px;letter-spacing:.6px}.clock{font-size:23px}.progress{height:4px;margin-top:6px}.self-bar{padding:7px 9px;gap:10px;border-radius:13px;margin-top:2px}.self-bar .role-art{width:49px;border-width:2px;border-radius:11px}.self-copy{gap:1px}.self-copy .eyebrow{font-size:8px;letter-spacing:.3px}.self-copy .eyebrow svg{width:10px;height:10px}.self-copy strong{font-size:19px;line-height:1.2}.self-copy small{font-size:9px}.role-more{padding:7px}.role-more svg{width:17px;height:17px}.chat-area{gap:6px;min-height:94px}.chat-tabs{gap:12px}.chat-tab{min-height:33px;padding:4px 2px;font-size:12px}.chat-tabs .icon-button{padding:3px;min-width:33px;height:32px}.messages{font-size:12px;min-height:24px}.message{padding:5px 8px;margin-bottom:5px}.message strong{font-size:10px}.messages>.small{font-size:11px}.compose input.text-input{min-height:40px;padding:7px 9px}.compose .button{min-height:40px;height:40px;width:40px}.actions{gap:7px;padding-top:9px}.actions .button{min-height:44px;font-size:12px;padding:8px}.action-hint{font-size:11px;max-height:48px;line-height:1.4}.voice-line,.lobby-hint{font-size:9px}.action-modes .button{min-height:36px;padding:5px}.locked-chat{font-size:10px}.results-screen{padding:12px 3px 22px;gap:14px}.results-title h1{font-size:30px}.result-grid{grid-template-columns:1fr 1fr;gap:8px}.result-row{padding:8px;gap:7px;border-radius:13px}.result-row .portrait{width:45px;border-radius:10px}.result-row strong,.result-row>span:last-child{font-size:10px}.result-row small{font-size:8px}.result-actions{gap:8px}.result-actions .button{font-size:12px;padding:9px}.notice{left:14px;right:14px;top:56px;font-size:12px;padding:11px}.role-reveal-art{width:158px}.role-card h2{font-size:29px}#dialog-content{padding:18px;gap:14px}.dialog-head h2{font-size:19px}
 body[data-crowded=true] .avatar-wrap{max-width:57px}body[data-crowded=true] .roster{gap:7px 3px}body[data-crowded=true] .player .name{font-size:9px;padding:2px 4px}body[data-crowded=true] .player .status{font-size:7px}body[data-crowded=true] .table-scene{gap:8px}body[data-crowded=true] .scene-caption{display:none}
}
@media(max-width:760px) and (max-height:740px){.table-scene{padding:9px;gap:7px}.avatar-wrap{max-width:59px}.roster{gap:7px 4px}.roster-panel{gap:5px}.table-sidebar{min-height:199px;padding:8px 10px}.topbar{min-height:48px}.self-bar .role-art{width:42px}.self-copy strong{font-size:17px}.self-bar{padding:5px 8px}.phase{font-size:18px}.phase-medallion{width:29px;height:29px}.phase-line{padding:6px 8px}.phase-line .row{gap:6px}.clock{font-size:21px}.voice-line{display:none}.actions{padding-top:7px;gap:5px}.chat-area{gap:4px}.scene-caption{display:none}body[data-crowded=true] .avatar-wrap{max-width:43px}body[data-crowded=true] .roster{gap:5px 3px}body[data-crowded=true] .player .status{display:none}}
@media(max-width:350px){#app{padding-left:7px;padding-right:7px}.brand{font-size:14px}.connection{font-size:8px;max-width:64px}.game-logo{font-size:42px}.panel-heading h2{font-size:18px}.welcome-panel{padding:16px}.mini-emblem{width:34px;height:40px}.player .name{font-size:9px;padding:2px 4px}.button{font-size:12px;padding:9px}.code{font-size:15px!important}.invitation-strip .button{font-size:9px;padding:5px}.table-scene{padding:8px}.role-checks label{font-size:10px;gap:4px}.role-checks .checkbox-portrait{width:27px}.result-row{gap:5px}.result-row .portrait{width:36px}.role-choice span:last-child{font-size:8px}}
.typing .roster-panel,.typing .self-bar,.typing .phase-line,.typing .actions,.typing .scene-caption,.typing .board-heading,.typing .invitation-strip{display:none}.typing .table-scene{display:none}.typing .table-sidebar{min-height:150px}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Motion uses the existing artwork, with a shared day/night blend across renders. */
body,body[data-scene=night]{background:#183c54}
#world-scene{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
#world-scene>div{position:absolute;inset:0}
.world-day{background:linear-gradient(180deg,#3a52653b,#123c4b50),url('art-village-day.png') center/cover}
.world-night{background:linear-gradient(#17345155,#13273c66) center/cover;opacity:var(--night-mix,0)}
:root[data-night-ready=true] .world-night{background-image:linear-gradient(#17345155,#13273c66),url('art-village-night.png')}
#app{z-index:1}
body[data-scene] .table-scene{background:none;isolation:isolate}
.table-scene::before,.table-scene::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none}
.table-scene::before{z-index:-2;background:linear-gradient(180deg,#28474538 0%,#24473512 55%,#1b424e50),url('art-village-day.png') center/cover}
.table-scene::after{z-index:-1;background:linear-gradient(180deg,#132e5110,#14264020) center/cover;opacity:var(--night-mix,0)}
:root[data-night-ready=true] .table-scene::after{background-image:linear-gradient(180deg,#132e5110,#14264020),url('art-village-night.png')}
.hero-characters{transform-origin:50% 85%;animation:hero-breathe 6s ease-in-out infinite}
.player .avatar-art,.profile-portrait{transform-origin:50% 85%;animation:character-idle var(--idle-duration,4000ms) ease-in-out var(--idle-delay,0ms) infinite}
.player:hover .portrait{transform:none}
.player[data-react=selected] .avatar-wrap,.player[data-react=ready] .avatar-wrap{animation:character-cheer .48s cubic-bezier(.2,.7,.3,1) both}
.player[data-speaking=true] .avatar-wrap{animation:character-speaking .65s ease-in-out infinite}
.player.dead .avatar-art,.player.disconnected .avatar-art{animation-play-state:paused}
.role-reveal-art{animation:role-arrive .48s cubic-bezier(.18,.78,.28,1.12) backwards,role-float 4.8s ease-in-out .48s infinite}
.winner-portrait{animation:winner-arrive .6s cubic-bezier(.16,.7,.24,1.2) backwards}
.night-motes{opacity:var(--night-mix,0)}
.night-motes i{position:absolute;left:calc(8% + var(--mote)*17%);top:85%;width:3px;height:3px;background:#ffe29b;border-radius:50%;box-shadow:0 0 10px 2px #ffd07a66;animation:firefly-drift calc(8s + var(--mote)*.8s) ease-in-out calc(var(--mote)*-1.9s) infinite}
body[data-scene=menu] .night-motes{display:none}
#phase-transition{position:fixed;z-index:3;left:50%;top:calc(env(safe-area-inset-top) + 76px);pointer-events:none;opacity:0;transform:translate(-50%,-8px);background:#fff0ccef;border:1px solid #ffd882;border-radius:30px;padding:9px 20px;font-weight:900;font-size:14px;letter-spacing:.4px;color:#795435;box-shadow:0 5px 20px #233a4933;white-space:nowrap}
#phase-transition[data-tone=night]{background:#343858ef;border-color:#b4a1cd;color:#ffe9a7}
#phase-transition.show{animation:phase-announcement 1.8s ease both}
@keyframes hero-breathe{0%,100%{transform:translateY(0) rotate(-.35deg) scale(1)}50%{transform:translateY(-5px) rotate(.35deg) scale(1.012)}}
@keyframes character-idle{0%,100%{transform:translateY(0) rotate(-.65deg) scale(1)}50%{transform:translateY(-2px) rotate(.65deg) scale(1.018)}}
@keyframes character-cheer{0%,100%{transform:translateY(0) scale(1)}35%{transform:translateY(-7px) scale(1.07)}70%{transform:translateY(1px) scale(.98)}}
@keyframes character-speaking{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-2px) rotate(1deg)}}
@keyframes role-arrive{from{opacity:0;transform:translateY(12px) rotate(-8deg) scale(.88)}to{opacity:1;transform:translateY(0) rotate(-3deg) scale(1)}}
@keyframes role-float{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-4px) rotate(-1deg)}}
@keyframes winner-arrive{from{opacity:0;transform:translateY(16px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes firefly-drift{0%,100%{opacity:0;transform:translate3d(0,0,0)}20%{opacity:.7}70%{opacity:.35}90%{opacity:0;transform:translate3d(14px,-45vh,0)}}
@keyframes phase-announcement{0%{opacity:0;transform:translate(-50%,-8px)}18%,65%{opacity:1;transform:translate(-50%,0)}100%{opacity:0;transform:translate(-50%,-5px)}}
:root[data-motion=paused] *, :root[data-motion=paused] *::before,:root[data-motion=paused] *::after{animation-play-state:paused!important}
:root[data-motion=reduced] *,:root[data-motion=reduced] *::before,:root[data-motion=reduced] *::after{animation:none!important;transition:none!important}
:root[data-motion=reduced] .night-motes,:root[data-motion=reduced] #phase-transition{display:none}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.night-motes,#phase-transition{display:none}}

/* Phone screens stay within the viewport; only message/room/result lists scroll. */
.mobile-rooms-link{display:none}
@media(max-width:760px){
 #main{overflow:hidden}
 .screen.menu{height:100%;min-height:0;max-width:460px;gap:8px;padding:4px 2px 8px}
 .hero{flex:1;min-height:130px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 5px}
 .hero-kicker{flex:none;font-size:8px;line-height:1.2}
 .game-logo{flex:none;font-size:clamp(34px,10vw,47px);line-height:1.05;margin:3px 0 5px}
 .hero>p{flex:none;font-size:10px;line-height:1.3}
 .hero-characters{flex:1;width:100%;min-height:0;height:0;max-height:230px;margin:2px auto -3px;object-fit:contain}
 .hero-badges{flex:none;gap:6px}
 .hero-badges>span{font-size:9px;padding:3px 8px}
 .hero-badges svg{width:12px;height:12px}
 .welcome-column{flex:none;gap:8px}
 .welcome-panel{padding:13px 16px;gap:10px;border-radius:19px}
 .panel-heading{gap:10px}
 .panel-heading h2{font-size:18px}
 .panel-heading .eyebrow{font-size:7px}
 .mini-emblem{width:32px;height:35px}
 .welcome-panel .field{font-size:11px;gap:4px}
 .welcome-panel .field input{min-height:44px;height:44px;padding:8px 10px}
 .welcome-panel .stack{gap:8px}
 .welcome-panel .button,.welcome-panel .primary{min-height:44px;font-size:14px;padding:8px 12px}
 .screen.menu .public-rooms,.menu-tip{display:none}
 .mobile-rooms-link{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;padding:7px 13px;border:1px solid #edd69f;border-bottom-width:2px;border-radius:12px;background:#fff5e2f5;color:#705237;font-size:12px;font-weight:800;text-align:left}
 .mobile-rooms-link>span:first-of-type{flex:1}
 .mobile-rooms-link .count-badge{font-size:10px;width:21px;height:21px}
 .mobile-rooms-link .ui-icon,.guide-link>.ui-icon:first-child,.guide-link>.ui-icon:last-child{width:17px;height:17px}
 .guide-link{min-height:40px;padding:7px 13px;border-radius:12px;gap:9px}
 .guide-link>span{font-size:11px}.guide-link small{display:none}
 .screen.play{height:100%;min-height:0;overflow:hidden;gap:6px;padding:2px 0 6px}
 .table-scene{flex:0 0 auto;overflow:hidden}
 .table-sidebar{flex:1 1 0;min-height:0;gap:6px;padding:8px 10px}
 .chat-area{min-height:0;gap:4px}
 .messages{min-height:18px}
 .message{margin-bottom:4px}
 .actions{gap:6px;padding-top:7px}
 .board-heading .title{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
 .lobby-hint{font-size:8px}
 .scene-caption{display:none}
 .roster{gap:7px 5px}
 .self-bar{margin-top:0}
 .phase-medallion .ui-icon{animation:none}
 #phase-transition{top:calc(env(safe-area-inset-top) + 58px);font-size:12px;padding:7px 16px}
 .night-motes i:nth-child(n+4){display:none}
 .results-screen{height:100%;min-height:0;overflow:hidden;padding:5px 2px 8px;gap:8px}
 .results-title{flex:none;position:relative;padding:0 50px 0 0;min-height:61px;text-align:left}
 .results-title>.victory-icon{display:none}
 .results-title .label{font-size:7px;justify-content:flex-start;margin:0;letter-spacing:.6px}
 .results-title h1{font-size:21px;margin:4px 0;line-height:1.1}
 .results-title p{font-size:10px;line-height:1.3}
 .winner-portrait{width:43px;border-width:2px;position:absolute;right:4px;top:10px;margin:0;box-shadow:0 0 0 3px #ffdd8450}
 .result-self{flex:none;padding:7px 10px;gap:9px;border-radius:13px}
 .result-self .portrait{width:38px;border-width:2px;border-radius:9px}
 .result-self strong{font-size:16px}.result-self small{font-size:9px}
 .revealed-section{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px}
 .revealed-section h2{font-size:12px;margin:0;flex:none}
 .result-grid{overflow:auto;overscroll-behavior:contain;min-height:0;grid-auto-rows:min-content;padding:2px 1px 6px;gap:6px;scrollbar-width:thin}
 .result-row{min-height:59px;padding:7px}.result-row .portrait{width:40px}
 .result-log{flex:none;padding:0 10px;border-radius:12px;max-height:130px;overflow:auto}
 .result-log summary{min-height:38px;font-size:11px}
 .result-actions{flex:none;gap:7px}.result-actions .button{min-height:44px}
 dialog{max-height:calc(var(--app-height) - 24px)}
 #dialog-room-list{max-height:calc(var(--app-height) - 190px);min-height:40px}
}
@media(max-width:760px){
:where(body[data-compact=medium],body[data-compact=short]) .hero-kicker,:where(body[data-compact=medium],body[data-compact=short]) .hero>p{display:none}:where(body[data-compact=medium],body[data-compact=short]) .game-logo{font-size:38px;margin:0 0 2px}:where(body[data-compact=medium],body[data-compact=short]) .hero{min-height:112px}:where(body[data-compact=medium],body[data-compact=short]) .hero-characters{max-height:155px}:where(body[data-compact=medium],body[data-compact=short]) .hero-badges>span{font-size:8px}:where(body[data-compact=medium],body[data-compact=short]) .welcome-panel .panel-heading{display:none}:where(body[data-compact=medium],body[data-compact=short]) .welcome-panel{padding:11px 13px;gap:8px}:where(body[data-compact=medium],body[data-compact=short]) .welcome-panel .field{font-size:10px}:where(body[data-compact=medium],body[data-compact=short]) .welcome-panel .button{font-size:13px}:where(body[data-compact=medium],body[data-compact=short]) .welcome-column{gap:7px}:where(body[data-compact=medium],body[data-compact=short]) .screen.play{gap:5px}:where(body[data-compact=medium],body[data-compact=short]) .table-scene{padding:8px;gap:7px}:where(body[data-compact=medium],body[data-compact=short]) .roster-panel{gap:5px}:where(body[data-compact=medium],body[data-compact=short]) .player .name{display:block;white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:9px;padding:2px 4px}:where(body[data-compact=medium],body[data-compact=short]) .player .status{font-size:7px}:where(body[data-compact=medium],body[data-compact=short]) .self-copy small{display:none}:where(body[data-compact=medium],body[data-compact=short]) .self-bar .role-art{width:38px}:where(body[data-compact=medium],body[data-compact=short]) .self-bar{padding:5px 7px}:where(body[data-compact=medium],body[data-compact=short]) .self-copy strong{font-size:17px}:where(body[data-compact=medium],body[data-compact=short]) .chat-tab{min-height:30px;font-size:11px}:where(body[data-compact=medium],body[data-compact=short]) .chat-tabs .icon-button{min-height:30px!important;height:30px}:where(body[data-compact=medium],body[data-compact=short]) .actions{gap:5px;padding-top:6px}:where(body[data-compact=medium],body[data-compact=short]) .action-hint{font-size:10px;max-height:29px;line-height:1.35}:where(body[data-compact=medium],body[data-compact=short]) .actions .button{font-size:11px}:where(body[data-compact=medium],body[data-compact=short]) .voice-line{display:none}body:where([data-compact=medium],[data-compact=short])[data-crowded=true] .avatar-wrap{max-width:43px;padding:2px}body:where([data-compact=medium],[data-compact=short])[data-crowded=true] .roster{gap:4px 3px}body:where([data-compact=medium],[data-compact=short])[data-crowded=true] .player .status{display:none}

}
@media(max-width:760px){
:where(body[data-compact=short]) .topbar{min-height:44px}:where(body[data-compact=short]) .screen.menu{gap:6px;padding-top:0;padding-bottom:5px}:where(body[data-compact=short]) .game-logo{font-size:34px}:where(body[data-compact=short]) .hero{min-height:95px}:where(body[data-compact=short]) .hero-characters{max-height:125px}:where(body[data-compact=short]) .hero-badges{display:none}:where(body[data-compact=short]) .welcome-panel{padding:10px 12px;gap:7px}:where(body[data-compact=short]) .welcome-column{gap:6px}:where(body[data-compact=short]) .guide-link{min-height:36px}:where(body[data-compact=short]) .mobile-rooms-link{min-height:40px}:where(body[data-compact=short]) .table-scene{padding:6px;gap:5px;border-radius:16px}:where(body[data-compact=short]) .board-heading{padding:5px 8px}:where(body[data-compact=short]) .board-heading .title{font-size:17px}:where(body[data-compact=short]) .board-heading .label{font-size:7px;margin-bottom:1px}:where(body[data-compact=short]) .board-heading .label svg{width:10px;height:10px}:where(body[data-compact=short]) .invitation-strip{padding:3px 6px;gap:4px}:where(body[data-compact=short]) .invitation-strip .button{min-height:32px;padding:4px 6px;font-size:9px}:where(body[data-compact=short]) .invitation-strip .code{font-size:14px;letter-spacing:1.5px}:where(body[data-compact=short]) .roster-panel{gap:4px}:where(body[data-compact=short]) .roster-title .label{font-size:7px}:where(body[data-compact=short]) .roster-title .label svg{width:12px;height:12px}:where(body[data-compact=short]) .roster-count{padding:1px 6px;font-size:8px}:where(body[data-compact=short]) .roster{gap:5px 4px}:where(body[data-compact=short]) .avatar-wrap{max-width:48px;padding:2px}:where(body[data-compact=short]) .player{padding:0;gap:1px}:where(body[data-compact=short]) .player .name{font-size:8px;padding:1px 4px;line-height:1.15}:where(body[data-compact=short]) .player .status{font-size:7px;line-height:1.1;padding:1px 4px}body:where([data-compact=short])[data-crowded=true] .avatar-wrap{max-width:32px;padding:1px}body:where([data-compact=short])[data-crowded=true] .roster{gap:3px}body:where([data-compact=short])[data-crowded=true] .player .name{font-size:8px;padding:1px 3px}:where(body[data-compact=short]) .player .portrait{border-width:2px}:where(body[data-compact=short]) .host-crown,:where(body[data-compact=short]) .selection-mark,:where(body[data-compact=short]) .eliminated-mark{width:16px;height:16px}:where(body[data-compact=short]) .host-crown svg,:where(body[data-compact=short]) .selection-mark svg{width:12px;height:12px}:where(body[data-compact=short]) .phase-line{padding:5px 7px}:where(body[data-compact=short]) .phase-line .label{font-size:7px}:where(body[data-compact=short]) .phase-medallion{width:27px;height:27px}:where(body[data-compact=short]) .phase-medallion svg{width:17px!important;height:17px!important}:where(body[data-compact=short]) .phase{font-size:17px}:where(body[data-compact=short]) .clock{font-size:19px}:where(body[data-compact=short]) .phase-line .exit-button{min-height:27px;height:27px;width:27px;min-width:27px}:where(body[data-compact=short]) .progress{height:3px;margin-top:4px}:where(body[data-compact=short]) .self-bar{padding:4px 7px;gap:7px;border-radius:11px}:where(body[data-compact=short]) .self-bar .role-art{width:31px;border-radius:8px}:where(body[data-compact=short]) .self-copy strong{font-size:15px}:where(body[data-compact=short]) .self-copy .eyebrow{font-size:7px}:where(body[data-compact=short]) .role-more{padding:5px}:where(body[data-compact=short]) .table-sidebar{padding:7px 9px;border-radius:15px;gap:5px}:where(body[data-compact=short]) .chat-area{gap:3px}:where(body[data-compact=short]) .chat-tabs{gap:10px}:where(body[data-compact=short]) .chat-tab{min-height:28px}:where(body[data-compact=short]) .chat-tabs .icon-button{min-height:28px!important;height:28px}:where(body[data-compact=short]) .compose input.text-input{min-height:40px;height:40px}:where(body[data-compact=short]) .compose .button{min-height:40px;height:40px}:where(body[data-compact=short]) .actions{gap:4px;padding-top:5px}:where(body[data-compact=short]) .actions .button{min-height:42px;padding:7px;font-size:10px}:where(body[data-compact=short]) .lobby-hint{display:none}:where(body[data-compact=short]) .action-modes .button{min-height:32px;padding:4px}:where(body[data-compact=short]) .locked-chat{padding:2px 0;font-size:9px}:where(body[data-compact=short]) .messages>.small{font-size:10px}:where(body[data-compact=short]) .message{padding:4px 7px;font-size:11px}:where(body[data-compact=short]) .results-title h1{font-size:19px}:where(body[data-compact=short]) .results-title{min-height:58px}:where(body[data-compact=short]) .result-self{padding:5px 9px}:where(body[data-compact=short]) .result-self .portrait{width:32px}:where(body[data-compact=short]) .result-grid{gap:5px}:where(body[data-compact=short]) .result-row{min-height:54px;padding:5px}:where(body[data-compact=short]) .result-row .portrait{width:34px}:where(body[data-compact=short]) .result-log summary{min-height:32px}:where(body[data-compact=short]) .results-screen{gap:6px}

}
.typing .screen.play{padding-top:0}.typing .table-sidebar{min-height:0}.typing .messages{min-height:0}

.profile-name-edit{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:10px 12px;border:1px solid #cfbc98;border-radius:14px;background:#fff7e8;color:var(--ink);text-align:left}.profile-name-edit strong{min-width:0;overflow-wrap:anywhere;font-size:17px}.profile-name-edit span{flex:none;font-size:13px;color:#317e82;font-weight:700}

/* Ballot details stay inside the existing scrolling Log. */
.vote-summary{margin-top:5px;font-size:inherit}.vote-totals{line-height:1.5;overflow-wrap:anywhere}.vote-ballots{margin-top:5px;border-top:1px solid currentColor;padding-top:3px}.vote-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:6px;padding:3px 0;line-height:1.4}.vote-row span{overflow-wrap:anywhere;min-width:0}
.vote-total-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:3px 0}.vote-total-details{margin-top:4px}.vote-total-details summary{font:inherit}.settings-grid .field:has(#setting-vote-mode){grid-column:1/-1}
