/* v1.2.2 — FULL live screen composition, not a replacement screenshot.
   Existing state, actions, identity dialog and audio transport are retained. */
:root{--studio-gold:#d6a567;--studio-ink:#714935;--studio-pink:#e789a9;--studio-cream:#fff5e6}
[hidden]{display:none!important}
html[data-av-screen=game] body{background:#704732 url('./assets/cafe/room-window.webp') center top/cover fixed}
html[data-av-screen=game] body:before{background:linear-gradient(#35262420,#64362465 70%,#3e25288a)}
html[data-av-screen=game] .topbar{min-height:48px;padding:6px 22px;max-width:1760px}
html[data-av-screen=game] .topbar .brand small{display:none}
html[data-av-screen=game] #brandMascot{width:32px;height:35px}
html[data-av-screen=game] .topbar .icon-btn{padding:6px 12px;min-height:32px;font-size:11px}
html[data-av-screen=game] footer{display:none}
#gameScreen{max-width:1760px;padding:0 14px;margin:0 auto 18px}
.studio-roomhead{margin:0 0 6px;gap:8px;min-height:30px;align-items:center}
.studio-roomhead>div:first-child{display:flex;align-items:center;gap:8px}
.studio-roomhead h1{margin:0;font-size:14px!important}.studio-roomhead h1 span{font-size:11px!important;padding:3px 9px!important}
.studio-roomhead .eyebrow{font-size:10px!important;letter-spacing:1px}
.studio-roomhead .room-actions{width:auto}.studio-roomhead .icon-btn{padding:5px 12px;min-height:30px;font-size:11px}.studio-roomhead .network{font-size:11px}
#demoBanner{margin:0 0 8px;padding:4px 12px;min-height:25px;font-size:10px;display:flex;align-items:center;justify-content:space-between}
#demoBanner .text-btn{padding:0;font-size:10px;min-height:20px}
.studio-shell{display:grid;grid-template-columns:clamp(154px,13vw,220px) minmax(0,1fr) clamp(295px,24vw,392px);grid-template-rows:minmax(0,1fr) 166px;gap:12px;height:max(750px,calc(100dvh - 135px));max-height:960px;align-items:stretch;isolation:isolate}
.studio-rail{grid-column:1;grid-row:1/-1;min-width:0;display:flex;flex-direction:column;align-items:stretch;position:relative;z-index:1;padding-top:1px}
.studio-plaque{width:calc(100% + 20px);max-width:none;margin:-3px -10px 6px;display:block;filter:drop-shadow(0 6px 4px #37201855);border-radius:15px}
.studio-hanging{position:relative;align-self:center;width:85%;padding:14px 12px 15px;margin:5px 0 22px;transform:rotate(-5deg);text-align:center;color:#875338;font-size:17px;font-weight:600;letter-spacing:2px;line-height:1.9;border:4px solid #f4d6b2;border-top-color:#fff0d9;outline:1px solid #c89970;border-radius:15px;background:linear-gradient(135deg,#fff8ec,#f6d9be);box-shadow:inset 0 0 0 2px #fff8eb,0 5px 0 #b17e55,0 8px 10px #391e2555}
.studio-hanging:before,.studio-hanging:after{content:'';position:absolute;top:-15px;height:26px;width:7px;border-radius:8px;background:linear-gradient(90deg,#83502d,#ffd697,#885c3d);box-shadow:0 1px 2px #583a26;transform:rotate(5deg)}.studio-hanging:before{left:25px}.studio-hanging:after{right:25px}.studio-hanging span{color:#e0a397;font-size:25px;margin-left:5px}
.studio-nav{display:flex;flex-direction:column;gap:12px;padding:0 4px}
.studio-nav>button{display:flex;align-items:center;gap:10px;justify-content:flex-start;padding:10px 13px;min-height:47px;width:100%;margin:0;position:relative;border:2px solid #f0c6a8;border-top-color:#fff5e3;border-radius:15px;background:linear-gradient(150deg,#fff9ee,#f3d8c1);box-shadow:inset 0 0 0 2px #ffefe0,0 4px 0 #b98161,0 7px 10px #3b231b55;color:#76503e;font-size:13px;cursor:pointer;font-weight:800}
.studio-nav>button i{font-style:normal;font-size:24px;line-height:1;color:#9c6a4f;width:27px;text-align:center;flex:none}.studio-nav>button:disabled{opacity:.62;cursor:default}.studio-nav>button:not(:disabled):hover{filter:brightness(1.08);translate:0 -2px}.studio-nav>button:active{translate:0 2px;box-shadow:inset 0 0 0 2px #ffefe0,0 2px 0 #b98161}.studio-nav>button:focus-visible{outline:3px solid #fff0a5;outline-offset:4px}
.studio-rail-note{margin-top:auto;position:relative;padding-top:20px;min-height:150px;text-align:center}.studio-rail-note>span{color:#ffdfc5;text-shadow:0 2px 3px #5c332a;font:italic 15px/1.5 Georgia,serif;letter-spacing:1px}.studio-rail-note img{width:95%;max-height:172px;object-fit:contain;filter:drop-shadow(0 10px 8px #3e212777)}
/* The live table is the main view, with its room behind it. */
.studio-stage.table-panel{grid-column:2;grid-row:1;margin:0;padding:0;position:relative;overflow:hidden;min-width:0;min-height:0;border:0;border-radius:25px;background:linear-gradient(#edcfa366,transparent 22%),linear-gradient(0deg,#7e4d3666,transparent 55%);box-shadow:none;isolation:isolate;container-type:size}
.studio-stage.table-panel:before{display:none}.studio-window{position:absolute;inset:0 0 0;background:linear-gradient(0deg,#754732 0%,#75473200 47%),url('./assets/cafe/room-window.webp') center top/100% auto no-repeat;z-index:-5;border-radius:25px;filter:saturate(.95)}
.studio-stage:after{content:'';position:absolute;inset:0;border-radius:25px;box-shadow:inset 0 0 45px #42251d3b;pointer-events:none;z-index:0}
.studio-stage .panel-heading{position:absolute;z-index:5;top:8px;left:13px;width:48%;padding:9px 12px;border:1px solid #fff3da;border-radius:13px 18px 15px 10px;background:linear-gradient(135deg,#fffaed,#f7dcc4);box-shadow:0 3px 0 #b88464,0 5px 9px #44281f44;transform:rotate(-2deg);gap:5px;pointer-events:none}
.studio-stage .panel-heading .section-label{font-size:8px;letter-spacing:1px;color:#aa8265}.studio-stage .panel-heading h2{font-size:clamp(12px,1.8cqw,17px);line-height:1.45;margin:3px 0 0}.studio-stage .panel-heading .timer{position:absolute;left:calc(100% + 7px);top:0;font-size:9px;padding:6px 9px;background:#684a38e6;box-shadow:none;color:#fbe5bb;border-color:#e2c29b8f;border-radius:9px;white-space:nowrap}.studio-stage .timer:empty{display:none}
.studio-stage .phase-hint{position:absolute;bottom:8px;left:8%;right:8%;font-size:11px;color:#ffe9cb;text-shadow:0 1px 2px #482a22;text-align:center;line-height:1.65;margin:0;pointer-events:none;z-index:5}
.studio-stage #playersGrid,.studio-stage #playersGrid[data-count]{position:absolute;inset:0;display:block;padding:0;margin:0;height:100%;width:100%;isolation:isolate;overflow:visible;border:0;background:none}
.studio-stage #playersGrid:before{inset:17% 1.5% 11%;border-radius:50%;border:11px solid #b77949;border-top-color:#eebe7f;border-bottom-color:#a36a43;box-shadow:inset 0 0 0 2px #f6d099,inset 0 5px 17px #58321d99,0 5px 0 #b57e51,0 12px 0 #9c643e,0 21px 0 #633b2a,0 28px 0 #7f4c30,0 38px 20px #2f1a2377;background:radial-gradient(ellipse at 45% 30%,#fbd79422,transparent 65%),repeating-linear-gradient(0deg,transparent 0 56px,#4a261850 57px,#f2c99165 59px,transparent 61px),url('./assets/cafe/walnut.webp') center/100% 100%;height:auto;transform:none;z-index:-2}
.studio-stage #playersGrid:after{content:'';display:block;inset:19% 3.8% 13%;border-radius:50%;border:1px solid #f4d09a77;box-shadow:inset 0 0 0 2px #8c513324;height:auto;transform:none;background:none;z-index:-1}
.studio-stage #playersGrid>.player-seat,.studio-stage #playersGrid[data-count]>.player-seat{position:absolute;left:var(--seat-x);top:var(--seat-y);transform:translate(-50%,-50%);width:clamp(85px,14.5cqw,130px);height:126px;min-height:0;padding:0;display:flex;align-items:center;justify-content:flex-start;gap:0;z-index:3;filter:none;animation:none;transition:filter .16s;background:none!important;box-shadow:none!important;border:0!important}
.studio-stage #playersGrid>.player-seat:before,.studio-stage #playersGrid[data-count]>.player-seat:before{width:88px;height:91px;max-width:90%;top:0;left:50%;transform:translateX(-50%);border-width:4px;border-color:#eabd79;border-top-color:#fff0c4;box-shadow:inset 0 0 0 2px #fff1d778,0 0 0 1px #805238,3px 4px 0 #a46b40,5px 8px 0 #6b432c,0 11px 12px #46232770}
.studio-stage #playersGrid>.player-seat>svg,.studio-stage #playersGrid[data-count]>.player-seat>svg{width:82px;height:90px;max-width:86%;flex:none;margin:0;filter:drop-shadow(0 3px 2px #67412833)}
.studio-stage #playersGrid>.player-seat>.name,.studio-stage #playersGrid[data-count]>.player-seat>.name{font-size:11px!important;min-width:86px;max-width:100%;padding:5px 8px;line-height:1.2;margin:-4px 0 0;border-radius:11px;background:linear-gradient(#fff9ec,#f5d8bf);box-shadow:inset 0 1px 0 #fff,0 3px 0 #bc8b67,0 6px 6px #4d2d2060}
.studio-stage #playersGrid>.player-seat>.seat-status{font-size:9px!important;padding:3px 7px;min-height:16px;line-height:1.1;max-width:110%;margin-top:5px}.studio-stage #playersGrid>.player-seat:not(.seat-offline)>.seat-status:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#9de06d;box-shadow:0 0 6px #bff389;vertical-align:1px;margin-right:4px}
.studio-stage #playersGrid>.player-seat>.seat-no{left:calc(50% - 47px);top:3px;width:22px;height:23px;font-size:12px;z-index:4}
.studio-stage #playersGrid>.player-seat>.leader-crown{top:-22px;font-size:29px;z-index:6;line-height:1}
.studio-stage #playersGrid>.player-seat.selected:before{border-color:#ffe3a5;box-shadow:inset 0 0 0 2px #fff4d8,0 0 0 3px #e9a15f,0 0 22px #ffca85,3px 5px 0 #9a6742,0 10px 13px #45212466}
.studio-stage #playersGrid>.player-seat.selectable:hover>svg{translate:0 -5px}.studio-stage #playersGrid>.player-seat:focus-visible{outline:3px solid #ffe9ad;outline-offset:4px;border-radius:20px}
.studio-stage .av-table-center{position:absolute;left:50%;top:28%;transform:translateX(-50%);width:44%;max-width:none;min-height:0;padding:0;background:none;border:0;border-radius:0;box-shadow:none;z-index:1;pointer-events:none;display:flex;flex-direction:column;gap:14px;text-align:center}
.studio-stage .av-table-center:before,.studio-stage .av-table-center:after{display:none}
.studio-scroll{position:relative;padding:12px 12px 14px;border:2px solid #cfa878;border-top-color:#fff0ce;border-radius:13px;background:radial-gradient(ellipse at 50% 0,#fff8e9,#f4ddbb);box-shadow:inset 0 0 0 3px #ffedce,0 5px 0 #a26b41,0 9px 10px #53301e6b}
.studio-scroll:before,.studio-scroll:after{content:'';position:absolute;top:-5px;bottom:-5px;width:14px;border:1px solid #a6784c;border-radius:13px;background:linear-gradient(90deg,#a57246,#fbe0b6 45%,#c49762);box-shadow:2px 4px 4px #663b2444}.studio-scroll:before{left:-7px}.studio-scroll:after{right:-7px}.studio-scroll b{display:block;font-size:clamp(19px,3cqw,28px)!important;letter-spacing:3px!important;color:#76503b!important;text-shadow:0 2px 0 #fffcdf!important;line-height:1.3}
.studio-scroll small{display:block;color:#9b714e;font-size:12px;letter-spacing:1px;margin-top:6px}
.studio-team-tray{border:2px solid #efc7a6;border-top-color:#fff7e6;border-radius:17px;padding:10px 7px 9px;background:linear-gradient(125deg,#fff8eb,#f3dcc4);box-shadow:inset 0 0 0 2px #fff3e8,0 5px 0 #bb8964,0 9px 14px #502f1c70}
.studio-team-tray>span{display:block;font-size:12px;color:#80533e;font-weight:700}.studio-stage .av-team-slots{display:flex;justify-content:center;gap:7px;margin-top:8px;min-height:0}
.studio-picked{width:72px;max-width:24%;display:flex;align-items:center;flex-direction:column;border-radius:12px;padding:0 3px 5px;background:linear-gradient(#fff9ef,#f9e7d6);border:1px solid #e5c4a3;box-shadow:inset 0 2px 0 #fff,0 2px 0 #dbb48e;min-width:0}
.studio-picked svg{width:52px;height:60px;max-width:100%}.studio-picked>b{height:60px;display:grid;place-items:center;font:24px Georgia,serif;color:#c0a083}.studio-picked small{font-size:10px;display:block;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#84593e;line-height:1.4}
.studio-duo{display:flex;height:64px;justify-content:center}.studio-duo svg{height:64px;width:58px}
.studio-stage .action-area{position:absolute;left:50%;top:65%;transform:translateX(-50%);width:47%;margin:0;min-height:0;padding:0;border:0;z-index:6;background:none;text-align:center}
.studio-stage .action-area>p{font-size:10px;margin:0 0 6px;color:#ffedcd;text-shadow:0 1px 2px #51311e;line-height:1.5}.studio-stage .action-area>.action-note{background:#6b483be0;border-radius:10px;padding:7px;color:#ffe7c9}
.studio-stage .action-row{display:flex;align-items:stretch;gap:9px;justify-content:center;flex-wrap:wrap}.studio-stage .action-row>.btn{min-width:0;flex:1 1 auto;max-width:100%;min-height:46px;padding:10px 14px;font-size:13px;line-height:1.25;border-radius:20px}
.studio-stage .action-row>.btn.primary{min-width:75%;background:linear-gradient(#ffd4df,#f899b6 40%,#e982a4);box-shadow:inset 0 3px 0 #fff0eacc,inset 0 -3px 1px #d87691,0 5px 0 #bc6e78,0 9px 0 #ae7648,0 12px 12px #5d372540;font-size:16px;border:2px solid #fff0d6;text-shadow:0 2px 0 #c8798c}
.studio-stage .waiting-chip{font-size:11px;padding:10px;background:#fff0dce8;color:#9b6d4d;border:1px solid #e8cda6;box-shadow:0 3px 0 #ae8258;white-space:normal;text-align:center;line-height:1.6}
.studio-sconce{position:absolute;bottom:8%;height:74px;width:44px;z-index:0;border:3px solid #c49862;border-radius:13px 13px 5px 5px;background:radial-gradient(ellipse,#fff7d4,#f5bb6955 48%,#70472d);box-shadow:0 0 27px #ffca5766,0 6px 3px #48271477;pointer-events:none}.studio-sconce:before{content:'';position:absolute;inset:8px;border-left:2px solid #e2b577;border-right:2px solid #8e593b}.studio-sconce i{position:absolute;left:50%;top:30%;width:10px;height:17px;background:#fffadd;box-shadow:0 0 15px 7px #ffba46;border-radius:60% 40% 40% 40%;transform:translateX(-50%);animation:candle-glow 4s ease-in-out infinite}.studio-sconce.left{left:3%}.studio-sconce.right{right:3%}
.studio-banner-decor{position:absolute;top:31%;right:15%;width:49px;height:80px;z-index:0;background:linear-gradient(100deg,#775174,#543553);border:4px solid #c59a63;border-top-color:#f4d18a;transform:rotate(12deg);color:#e8c881;text-align:center;font-size:23px;padding:6px 2px;box-shadow:3px 6px 4px #46301c66}.studio-banner-decor span{display:block;letter-spacing:1px;font-size:7px;margin-top:6px}.studio-sparkles{position:absolute;z-index:0;bottom:21%;left:14%;color:#ffdc8d;font-size:19px;text-shadow:0 0 12px #ffdd77;pointer-events:none}
@keyframes candle-glow{50%{opacity:.7;scale:.92}}
html[data-av-phase=quest] .studio-stage .studio-team-tray{display:none}html[data-av-phase=quest] .studio-stage .action-area{top:47%;width:47%}
.studio-stage .quest-cards{display:flex;justify-content:center;gap:16px}.studio-stage .quest-card{width:110px;min-height:145px;padding:7px;font-size:13px;border-radius:13px}.studio-stage .quest-card .card-mark{height:68px}.studio-stage .quest-card .card-mark svg{height:64px;width:55px}.studio-stage .quest-card small{font-size:9px}
html[data-av-phase=quest-result] .studio-stage .action-area{top:64%}.studio-stage .result-big{font-size:21px;color:#fff0c5;text-shadow:0 2px 2px #614024}.studio-stage .result-big.evil{color:#ffcada}
html[data-av-phase=finished] .studio-stage .av-table-center{display:none}html[data-av-phase=finished] .studio-stage .action-area{top:21%;width:75%;max-height:68%;overflow:auto;background:#fff1dedf;border:2px solid #f4cb9b;border-radius:22px;padding:17px;transform:translateX(-50%)}html[data-av-phase=finished] .studio-stage .result-big{color:#6f7650;text-shadow:none}html[data-av-phase=finished] .studio-stage .action-area>p{color:#885e4a;text-shadow:none}html[data-av-phase=finished] .studio-stage .reveal-grid{gap:7px;font-size:11px}html[data-av-phase=finished] .studio-stage .player-seat{opacity:.25!important}
/* Public information panel: every result is live, no identities are inferred. */
.studio-journal{grid-column:3;grid-row:1;display:flex;flex-direction:column;gap:10px;min-height:0;min-width:0}
.studio-journal-note{background:linear-gradient(135deg,#fff5e7,#f2d1c7);border:2px solid #f7dfc7;border-radius:19px;padding:5px 11px 6px;display:flex;align-items:center;gap:8px;min-height:65px;box-shadow:inset 0 1px 0 #fff,0 4px 0 #b98368,0 5px 8px #53342444}.studio-journal-note img{height:54px;width:91px;object-fit:contain;filter:drop-shadow(0 3px 3px #6a453540)}.studio-journal-note p{font-size:13px;line-height:1.8;letter-spacing:1px;color:#855643;margin:0}.studio-journal-note b{color:#b46b75}
.studio-log{border:2px solid #efcdae;border-top-color:#fff7e7;border-radius:23px;background:linear-gradient(135deg,#fffaf0,#f6e2d0);box-shadow:inset 0 0 0 3px #fff4e6,0 5px 0 #b78663,0 10px 14px #3c251c55;padding:13px;min-height:0;flex:1;overflow:auto;scrollbar-width:thin;scrollbar-color:#d6b48f #fff3e1}
.studio-log>h2{font-size:20px;color:#6e4836;margin:0 0 10px;display:flex;align-items:center;justify-content:space-between}.studio-log>h2 span{font-size:10px;font-weight:500;color:#a37a5e;letter-spacing:1px}
.studio-log #questTrack{display:flex;flex-direction:column;gap:6px;margin:0 0 12px;padding:0}
.studio-log .quest-step{display:flex;flex-direction:row;gap:8px;padding:6px 9px;min-height:42px;border:1px solid #dfbfa3;border-radius:11px;background:linear-gradient(110deg,#fff9f0,#f9e8d8);box-shadow:inset 0 1px 0 #fff,0 2px 0 #e7cab0;text-align:left}
.studio-log .quest-symbol{height:25px;width:25px;min-width:25px;font-size:13px}.studio-log .quest-step>div:last-child{display:flex;align-items:center;gap:8px;flex:1;flex-wrap:wrap}.studio-log .quest-step b{font-size:12px;color:#89634b}.studio-log .quest-step small{font-size:11px;color:#a17d61;line-height:1.3;margin:0}.studio-log .quest-step .special{font-size:9px;padding:2px 3px;margin-left:auto}.studio-log .quest-step.current{background:linear-gradient(110deg,#ffd2de,#f5b6c5);border:1px solid #d9899a;box-shadow:inset 0 1px 0 #fff3ea,3px 0 0 #ce728f inset,0 2px 0 #ca8d8c}.studio-log .quest-step.current b{color:#963f5b}.studio-log .quest-step.succeeded{background:#eef1df}.studio-log .quest-step.failed{background:#f9dfe0}
.studio-public-cards>section{border:1px solid #dfbfa3;box-shadow:inset 0 1px 0 #fff;border-radius:13px;padding:10px 9px;margin:8px 0;background:linear-gradient(#fff7ee,#f7e5d4)}.studio-public-cards h3{margin:0 0 8px;font-size:14px;color:#8a5d46}.studio-public-cards h3 small{font-size:10px;font-weight:500;margin-left:3px;color:#a7886f}.studio-public-cards p{font-size:10px;line-height:1.5;margin:7px 0 0;color:#ab8b73}
.studio-votes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.studio-vote{position:relative;min-width:0;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;height:66px;border:1px solid #d7b49a;box-shadow:0 3px 0 #b49076;border-radius:9px;background:#f4dcc9;overflow:hidden}.studio-vote svg{width:35px;height:45px}.studio-vote>small{width:100%;text-align:center;font-size:9px;padding:3px 0;color:white;background:#83a87f}.studio-vote.reject>small{background:#c8718b}.studio-vote.sealed{background:linear-gradient(135deg,#c4a795,#987064);border-color:#eed9c5}.studio-vote.sealed>b{color:#ffefdf;font:27px Georgia,serif;height:38px;display:grid;place-items:center;line-height:1}.studio-vote.sealed>small{background:#8c6759;color:#edd5c0}
.studio-mission{display:flex;gap:8px;min-height:53px;align-items:center}.studio-anon{display:grid;place-items:center;width:38px;height:53px;border-radius:8px;border:2px solid #efdbc5;outline:1px solid #b99177;background:linear-gradient(140deg,#b99485,#8f665d);color:#ffe6d5;font-size:23px;box-shadow:0 3px 0 #a58468}.studio-anon.ok{background:linear-gradient(#daead0,#9fb391);color:#4e774a}.studio-anon.bad{background:linear-gradient(#f2c9d4,#bb8297);color:#863955}
.studio-log #rejectionTrack{color:#9d775d;margin:10px 0;font-size:10px;display:flex;justify-content:center;gap:5px}.studio-log .reject-dot{width:8px;height:8px}
.studio-log #historyPanel{margin:8px 0 0;padding:9px;border:1px solid #ddb997;border-radius:11px;box-shadow:none;background:#f6e7d4}.studio-log #historyPanel summary{font-size:12px;cursor:pointer}.studio-log #historyBody{max-height:230px;overflow-y:auto}.studio-log .history-item{font-size:10px;padding:8px 0}.studio-log .history-item p{font-size:10px;line-height:1.6}.studio-log .vote-list{gap:3px}.studio-log .vote-tag{font-size:9px}
/* Bottom chat and quick messages occupy their own row, as in the approved design. */
.studio-dock{grid-column:2/4;grid-row:2;display:grid;grid-template-columns:1.14fr 1fr;gap:10px;min-width:0;min-height:0}
.studio-dock .chat-panel{margin:0;border-radius:20px;min-width:0;min-height:0;display:flex;flex-direction:column;gap:4px;padding:11px 13px;background:linear-gradient(125deg,#fff8ec,#f6dfcf);border:2px solid #f4d4b8;box-shadow:inset 0 0 0 2px #fff7ed,0 5px 0 #b88966}
.studio-dock .chat-title{margin:0;display:flex;align-items:center;justify-content:space-between}.studio-dock .chat-title h3{font-size:13px;margin:0}.studio-dock .chat-title span{font-size:10px}.studio-dock .chat-messages{flex:1;height:auto;min-height:35px;overflow:auto;padding:0;scrollbar-width:thin}
.studio-dock .chat-line{display:flex;align-items:baseline;flex-direction:row;gap:8px;font-size:11px;margin:3px 0;text-align:left}.studio-dock .chat-line b{font-size:10px;min-width:65px;color:#8b604b;flex:none}.studio-dock .chat-line .text{padding:0;background:none;color:#99775e;line-height:1.5;border-radius:0;max-width:none;font-size:11px}.studio-dock .chat-empty{font-size:11px;line-height:1.6;margin:10px 0;color:#b2957d}
.studio-dock #chatForm{display:flex;gap:7px;margin:0}.studio-dock #chatInput{min-width:0;min-height:33px;padding:6px 9px;font-size:12px;border-radius:10px;flex:1}.studio-dock .send-btn{height:33px;min-width:34px;width:34px;font-size:20px;border-radius:9px}.studio-dock .chat-panel>small{font-size:8px;color:#b1927a;margin:0}
.studio-stickers{background:linear-gradient(140deg,#fff9ed,#f5ddc8);border:2px solid #f3d4b8;border-radius:20px;box-shadow:inset 0 0 0 2px #fff7ee,0 5px 0 #b88966;padding:11px 12px;min-width:0;overflow:hidden}.studio-stickers header{display:flex;align-items:center;justify-content:space-between;margin:0 0 11px}.studio-stickers h3{margin:0;font-size:14px;color:#85563f}.studio-stickers header>span{font-size:10px;color:#a98266}
.studio-stickers>div{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.studio-stickers button{cursor:pointer;border:1px solid #e5c1a5;border-top-color:#fff7ee;border-radius:12px;background:linear-gradient(#fffaf0,#f6dfc9);box-shadow:inset 0 1px 0 #fff,0 3px 0 #d9b599;min-width:0;height:99px;padding:6px 0 0;display:flex;flex-direction:column;align-items:center;justify-content:space-between;transition:translate .15s}.studio-stickers button b{font-size:11px;font-weight:600;color:#7a543f}.studio-stickers button svg{width:58px;height:71px;max-width:95%}.studio-stickers button:hover{translate:0 -3px}.studio-stickers button:focus-visible{outline:3px solid #cd829f;outline-offset:2px}
.studio-settings{width:min(660px,calc(100% - 25px));background:#fff5e6;border:2px solid #e4b88b}.studio-settings .room-config{color:#977151;font-size:14px;padding:12px}.studio-settings .room-info-details{color:#7e593f;font-size:14px}.studio-settings .voice-panel{margin-top:15px}.studio-settings .voice-help,.studio-settings .voice-controls,.studio-settings .voice-status{display:block;max-width:none;font-size:13px;line-height:1.7}.studio-settings .voice-controls{display:flex;flex-wrap:wrap;gap:10px}.studio-settings .voice-volume{display:flex}
/* New public pre-game handbook. */
.welcome-guide{background:#fff1dceb;border:1px solid #e7c599;box-shadow:inset 0 1px 0 #fff9ef,0 4px 0 #ad805b;border-radius:18px;padding:13px 16px;margin:12px auto 8px;max-width:500px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px}.welcome-guide>span{width:100%;color:#84573f;font-size:14px;font-weight:700}.welcome-guide .btn{font-size:13px;min-height:42px;padding:9px 12px;border-radius:12px}.entry-guide{color:#9b5d57;background:#f9e1db;border:1px solid #e2b4a1;border-radius:11px;font-size:12px;padding:10px 12px;margin:10px 0 2px;width:100%;cursor:pointer;text-align:left}
.role-guide{width:min(980px,calc(100% - 28px));max-height:92dvh;height:830px;padding:0;border:3px solid #e8c4a1;border-top-color:#fff5e4;border-radius:24px;background:#fff7ed;overflow:hidden;box-shadow:inset 0 0 0 2px #fff,0 22px 70px #35221880;color:#704b36;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto}.role-guide:not([open]){display:none}.role-guide::backdrop{background:#382b24aa;backdrop-filter:blur(6px)}.role-guide .dialog-close{background:#efd7c6;color:#9b765b;right:15px;top:13px;z-index:2}.guide-header{padding:24px 30px 14px;background:linear-gradient(125deg,#fffcf4,#f6ddc6)}.guide-header>span{font-size:10px;letter-spacing:2px;color:#b28665}.guide-header h2{font-size:26px;line-height:1.4;margin:8px 36px 8px 0;color:#75503a}.guide-header p{font-size:13px!important;line-height:1.7!important;color:#977257!important;margin:0;max-width:830px}
.guide-tabs{display:flex;gap:5px;padding:10px 26px;background:#f1dcc7;border-top:1px solid #fff3e3;border-bottom:1px solid #dcc0a3}.guide-tabs button{flex:1;min-height:42px;border:1px solid transparent;border-radius:11px;background:none;color:#9b7459;font-size:14px;font-weight:700;cursor:pointer}.guide-tabs button[aria-selected=true]{color:#8a4d61;background:linear-gradient(#fff7ee,#f7e5d4);border-color:#edc9ab;box-shadow:0 3px 0 #c8a488}.guide-tabs button:focus-visible{outline:3px solid #d391a7;outline-offset:2px}
.guide-content{overflow:auto;padding:23px 27px 28px;scrollbar-width:thin;scrollbar-color:#cca583 #faeedb;min-height:0}.guide-content h3{font-size:17px;line-height:1.4;color:#78503a}.guide-content p{color:#8c6c54;font-size:14px;line-height:1.85}.guide-win{display:grid;grid-template-columns:1fr 1fr;gap:15px}.guide-win article{padding:18px;border:1px solid #cfdbc3;background:#eff4e7;border-radius:16px}.guide-win article+article{background:#fae7eb;border-color:#e7bfc9}.guide-win b{color:#567c50;font-size:17px}.guide-win article+article b{color:#a1526c}.guide-win p{margin:7px 0 0;font-size:14px!important}.guide-win p b{font-size:14px}
.guide-flow{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:21px 0}.guide-flow article{display:flex;gap:12px;border-bottom:1px dashed #dec4a8;padding:0 0 17px}.guide-flow article>span{width:31px;height:31px;flex:none;display:grid;place-items:center;border-radius:50%;background:#deb78e;color:#fff7e7;font:16px Georgia,serif;box-shadow:0 3px 0 #bd926d}.guide-flow h3{margin:2px 0 5px;font-size:16px}.guide-flow p{margin:0;font-size:13px!important;line-height:1.8!important}.guide-tip{background:#f4e9d1;border:1px solid #daca9e;border-radius:13px;padding:14px 17px;font-size:14px;color:#866542;line-height:1.85}
.guide-role-intro{margin:0 0 18px;display:flex;align-items:center;gap:15px;flex-wrap:wrap}.guide-role-intro b{font-size:17px;color:#946048}.guide-role-intro span{font-size:12px;color:#a4876c}.guide-role-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.guide-role{border:1px solid #ccd4b9;border-radius:18px;background:linear-gradient(145deg,#fffef8,#f0f1e3);box-shadow:0 4px 0 #cfccb0;padding:17px}.guide-role.evil{border-color:#e4bac9;background:linear-gradient(135deg,#fff9f3,#f7e5eb);box-shadow:0 4px 0 #dcc0c2}.guide-role header{display:flex;gap:16px;align-items:center;border-bottom:1px solid #daceb9;padding-bottom:13px}.guide-portrait{position:relative;width:72px;height:84px;border-radius:17px;background:linear-gradient(#e7f1df,#bbcfb4);border:2px solid #fff6e2;box-shadow:0 3px 0 #bba886;flex:none;display:flex;align-items:flex-end;justify-content:center}.evil .guide-portrait{background:linear-gradient(#f3d6df,#d3a3ba)}.guide-portrait svg{width:65px;height:78px}.guide-portrait i{position:absolute;right:-8px;top:-8px;font:19px/26px Georgia,serif;border:1px solid #dab882;background:#fff0cc;border-radius:50%;height:28px;width:28px;text-align:center;color:#906844}.guide-side{font-size:11px;background:#6a8c63;color:#fffce9;border-radius:20px;padding:3px 10px}.evil .guide-side{background:#b86d88}.guide-role h3{font-size:22px!important;margin:8px 0 2px}.guide-role header small{color:#a38a71;font-size:11px}.guide-role dl{margin:12px 0}.guide-role dt{font-size:12px;font-weight:800;color:#9b744e;margin:13px 0 4px}.guide-role dd{margin:0;color:#765c45;font-size:13px;line-height:1.85}.guide-role .guide-mission{font-weight:700;color:#6c8b56}.guide-role.evil .guide-mission{color:#9e5771}.guide-watch{font-size:12px!important;line-height:1.8!important;background:#fffbf480;border:1px dashed #d9c0a9;border-radius:9px;padding:9px 11px;color:#a47c5c!important;margin:14px 0 0}
.guide-source{font-size:11px!important;color:#aa917a!important;margin:18px 0 0!important}.guide-source a{color:#96694b;text-decoration:underline}.guide-table-wrap{overflow:auto}.role-guide .rule-table{font-size:14px;margin:15px 0 22px}.role-guide .rule-table th{font-size:12px}.role-guide .rule-table td{padding:12px 8px}.guide-rules-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:20px}.guide-rules-grid article{background:#f8edde;border:1px solid #e3cbae;border-radius:14px;padding:15px}.guide-rules-grid h3{margin:0 0 8px}.guide-rules-grid p{font-size:13px;margin:6px 0}.guide-rules-grid .guide-lady{grid-column:1/-1;background:#edf0e3}.guide-footer{border-top:1px solid #e1c8ae;padding:13px 25px;background:#fae8d5;display:flex;align-items:center;justify-content:space-between;gap:10px}.guide-footer small{font-size:11px;color:#a27c5c}.guide-footer .btn{min-height:42px;font-size:13px;margin:0}
@media(min-width:1600px){.studio-stage #playersGrid>.player-seat,.studio-stage #playersGrid[data-count]>.player-seat{height:139px}.studio-stage #playersGrid>.player-seat:before,.studio-stage #playersGrid[data-count]>.player-seat:before{width:103px;height:107px}.studio-stage #playersGrid>.player-seat>svg,.studio-stage #playersGrid[data-count]>.player-seat>svg{width:95px;height:105px}.studio-stage #playersGrid>.player-seat>.name{font-size:12px!important;min-width:108px}.studio-stage #playersGrid>.player-seat>.seat-no{left:calc(50% - 56px)}.studio-stage .action-row>.btn{font-size:14px;min-height:51px}.studio-picked svg{width:62px;height:72px}.studio-picked>b{height:72px}.studio-stage .action-area{top:65%}}
@media(max-width:1199px) and (min-width:741px){.studio-shell{grid-template-columns:135px minmax(0,1fr);grid-template-rows:640px auto auto;max-height:none;height:auto;gap:15px}.studio-rail{grid-column:1;grid-row:1/4}.studio-stage{grid-column:2;grid-row:1}.studio-journal{grid-column:2;grid-row:2}.studio-journal-note{min-height:60px}.studio-log{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:15px}.studio-log>h2{grid-column:1/-1}.studio-log #questTrack{grid-column:1;grid-row:2}.studio-public-cards{grid-column:2;grid-row:2/4}.studio-log #rejectionTrack{grid-column:1;align-self:start}.studio-log #historyPanel{grid-column:1/-1}.studio-dock{grid-column:2;grid-row:3;height:190px;grid-template-columns:1fr}.studio-stickers{height:auto}.studio-dock .chat-panel{min-height:175px}.studio-dock{height:auto}.studio-stickers button{height:92px}.studio-rail .studio-hanging{font-size:13px;padding:10px 6px}.studio-nav{padding:0;gap:12px}.studio-nav>button{font-size:11px;padding:10px 7px;gap:5px}.studio-nav>button i{font-size:21px}.studio-rail-note{margin-top:35px}.studio-stage .phase-hint{font-size:11px}}
@media(max-width:740px){
 html[data-av-screen=game] .topbar{padding:7px 10px;min-height:46px}.topbar .brand small{display:none}html[data-av-screen=game] .topbar .icon-btn{min-height:33px;font-size:10px;padding:6px 8px}.topbar .version{display:none}
 #gameScreen{padding:0 9px;margin-bottom:22px}.studio-roomhead{margin:3px 0 5px;min-height:26px;flex-wrap:nowrap}.studio-roomhead .eyebrow{display:none}.studio-roomhead .room-actions{gap:7px}.studio-roomhead .network{font-size:9px!important}.studio-roomhead .icon-btn{font-size:10px;min-height:30px}.studio-roomhead h1 span{font-size:9px!important}#demoBanner{font-size:9px;line-height:1.5}#demoBanner .text-btn{font-size:9px;white-space:nowrap;margin-left:6px}
 .studio-shell{display:flex;flex-direction:column;gap:13px;max-height:none;height:auto}.studio-rail{display:block;position:relative;padding:0}.studio-plaque,.studio-hanging,.studio-rail-note{display:none}.studio-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0}.studio-nav>button{font-size:10px;min-height:43px;padding:6px 5px;border-radius:11px;gap:4px;justify-content:center}.studio-nav>button i{font-size:17px;width:17px}.studio-nav>button:nth-child(2){display:none}.studio-nav>button:last-child{grid-column:2/4;min-height:33px}
 .studio-stage.table-panel{display:flex;flex-direction:column;container-type:inline-size;min-height:0;max-height:none;overflow:hidden;border:1px solid #d5a376;background:linear-gradient(#e1b78777,#79503be8);box-shadow:inset 0 0 0 3px #e3bc8c55,0 4px 0 #755032;border-radius:18px;padding:9px 7px 13px}
 .studio-stage .studio-window{height:420px;background-size:auto 100%}.studio-stage .panel-heading{position:relative;top:auto;left:auto;width:100%;padding:10px;transform:none;border-radius:12px;margin:0;min-height:63px}.studio-stage .panel-heading h2{font-size:15px;line-height:1.45;max-width:calc(100% - 70px)}.studio-stage .panel-heading .timer{left:auto;right:6px;top:7px;font-size:8px;padding:5px;max-width:77px;white-space:normal;text-align:center}
 .studio-stage #playersGrid,.studio-stage #playersGrid[data-count]{position:relative;inset:auto;height:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px 5px;width:100%;padding:224px 6px 16px;margin:10px 0 0;isolation:isolate}
 .studio-stage #playersGrid:before{inset:0;border:5px solid #bc8b59;border-top-color:#edc68c;border-radius:22px;height:auto;box-shadow:inset 0 0 0 2px #edc799,0 6px 0 #875d3c;transform:none;background-size:auto,auto,100% 100%}.studio-stage #playersGrid:after{inset:9px;border-radius:17px;height:auto}
 .studio-stage #playersGrid>.player-seat,.studio-stage #playersGrid[data-count]>.player-seat{position:relative;left:auto;top:auto;transform:none;width:100%;height:121px;min-height:0;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;border:0!important;background:none!important}
 .studio-stage #playersGrid>.player-seat:before,.studio-stage #playersGrid[data-count]>.player-seat:before{width:78px;height:82px;max-width:90%;border-width:4px}.studio-stage #playersGrid>.player-seat>svg,.studio-stage #playersGrid[data-count]>.player-seat>svg{width:70px;height:81px}.studio-stage #playersGrid>.player-seat>.name,.studio-stage #playersGrid[data-count]>.player-seat>.name{font-size:10px!important;min-width:73px;padding:4px 5px;margin:-3px 0 0}.studio-stage #playersGrid>.player-seat>.seat-status{font-size:8px!important;line-height:1.2;padding:3px 5px;max-width:100%}.studio-stage #playersGrid>.player-seat>.seat-no{left:calc(50% - 42px);width:20px;height:21px;font-size:10px}.studio-stage #playersGrid>.player-seat>.leader-crown{top:-17px;font-size:25px}
 .studio-stage .av-table-center{top:18px;width:84%;left:50%;transform:translateX(-50%);gap:10px;display:flex;flex-direction:column;padding:0;background:none;border:0;box-shadow:none;max-width:none}.studio-scroll{padding:9px 10px}.studio-scroll b{font-size:22px!important;letter-spacing:2px!important}.studio-scroll small{font-size:11px;margin-top:4px}.studio-team-tray{padding:8px 7px}.studio-team-tray>span{font-size:11px}.studio-stage .av-team-slots{margin-top:6px;gap:5px}.studio-picked svg{width:43px;height:51px}.studio-picked>b{height:51px;font-size:20px}.studio-picked small{font-size:9px}.studio-picked{width:54px;max-width:19%;padding-bottom:3px}.studio-duo{height:48px}.studio-duo svg{height:48px;width:43px}
 .studio-stage .action-area,html[data-av-phase=quest] .studio-stage .action-area,html[data-av-phase=quest-result] .studio-stage .action-area,html[data-av-phase=finished] .studio-stage .action-area{position:relative;left:auto;top:auto;transform:none;width:100%;padding:17px 7px 7px;margin:0;min-height:0;max-height:none;overflow:visible;background:none;border:0;border-radius:0}.studio-stage .action-row>.btn{font-size:13px;min-height:46px}.studio-stage .action-row>.btn.primary{font-size:15px;min-width:70%;padding:13px}.studio-stage .phase-hint{position:relative;left:auto;right:auto;bottom:auto;order:20;margin:10px 9px 0;text-align:left;font-size:11px;line-height:1.7}.studio-stage .action-area>p{font-size:12px;line-height:1.5}.studio-stage .waiting-chip{font-size:12px;padding:12px}.studio-stage .studio-sconce,.studio-banner-decor,.studio-sparkles{display:none}
 html[data-av-phase=quest] .studio-stage .studio-team-tray{display:block}html[data-av-phase=finished] .studio-stage #playersGrid{display:none}.studio-stage .quest-cards{gap:17px}.studio-stage .quest-card{width:124px;min-height:161px;font-size:14px}.studio-stage .quest-card .card-mark{height:76px}.studio-stage .quest-card .card-mark svg{height:73px;width:66px}html[data-av-phase=finished] .studio-stage .result-big,html[data-av-phase=finished] .studio-stage .action-area>p{color:#fff2d8}
 .studio-journal{gap:10px}.studio-log{max-height:none;padding:13px}.studio-journal-note{min-height:65px}.studio-journal-note p{font-size:13px}.studio-log .quest-step{min-height:46px;padding:7px 9px}.studio-log .quest-step small{font-size:11px}.studio-votes{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.studio-vote{height:74px}.studio-vote svg{height:51px;width:44px}.studio-vote small{font-size:10px}.studio-public-cards h3{font-size:15px}.studio-public-cards p{font-size:11px}.studio-anon{height:59px;width:43px}
 .studio-dock{display:flex;flex-direction:column;gap:12px;order:3}.studio-dock .chat-panel{min-height:218px}.studio-dock .chat-messages{min-height:110px;max-height:190px}.studio-dock .chat-title h3{font-size:15px}.studio-dock .chat-line .text{font-size:12px}.studio-dock #chatInput{min-height:43px;font-size:13px}.studio-dock .send-btn{height:43px;width:43px}.studio-dock .chat-panel>small{font-size:10px}.studio-stickers{padding:14px 11px}.studio-stickers>div{grid-template-columns:repeat(6,minmax(0,1fr))}.studio-stickers button{height:86px}.studio-stickers button b{font-size:9px}.studio-stickers button svg{height:62px;width:48px}.studio-stickers header span{font-size:9px}
 .welcome-guide{padding:12px;gap:8px;margin:14px 0}.welcome-guide>span{font-size:12px}.welcome-guide .btn{font-size:12px;padding:9px 10px;min-height:42px;flex:1}.entry-guide{font-size:11px}
 .role-guide{width:calc(100% - 16px);height:94dvh;max-height:94dvh;border-radius:18px}.guide-header{padding:20px 18px 13px}.guide-header>span{font-size:8px}.guide-header h2{font-size:22px}.guide-header p{font-size:12px!important}.guide-tabs{padding:8px;gap:2px}.guide-tabs button{font-size:11px;min-height:43px;padding:6px 3px}.guide-content{padding:18px 13px 23px}.guide-role-grid,.guide-win,.guide-flow,.guide-rules-grid{grid-template-columns:1fr;gap:16px}.guide-role{padding:16px}.guide-role dd{font-size:14px}.guide-flow article{padding-bottom:13px}.guide-flow p{font-size:14px!important}.guide-win p{font-size:14px!important}.guide-role-intro{gap:7px}.guide-role-intro span{font-size:11px;line-height:1.7}.guide-tip{font-size:13px;padding:13px}.guide-footer{padding:11px 12px;flex-direction:column;gap:7px}.guide-footer .btn{width:100%;min-height:44px}.guide-footer small{font-size:10px}.role-guide .rule-table{font-size:12px}.role-guide .rule-table td{padding:10px 4px}.role-guide .rule-table th{font-size:10px}.guide-rules-grid .guide-lady{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){.studio-sconce i{animation:none}.studio-nav button,.studio-stickers button{transition:none}}
html[data-av-motion=off] .studio-sconce i{animation:none}
/* Readability and full-ledger pass after rendering at real viewport sizes. */
@media(min-width:1200px){
 .studio-stage .panel-heading{width:37%;max-width:350px;min-height:54px;transform:rotate(-2deg)}
 .studio-stage .panel-heading .timer{position:static;font-size:8px;max-width:75px;white-space:normal;flex:none;line-height:1.5;padding:5px;text-align:center}
 .studio-stage .panel-heading h2{font-size:16px}.studio-stage .panel-heading .section-label{font-size:8px}
 .studio-stage #playersGrid>.player-seat>.name,.studio-stage #playersGrid[data-count]>.player-seat>.name{font-size:13px!important;line-height:1.3;padding:5px 7px;min-width:104px}
 .studio-stage #playersGrid>.player-seat>.seat-status{font-size:10px!important;min-height:19px}
 .studio-log .quest-step{min-height:36px;padding:4px 8px}
 .studio-log .quest-step.studio-upcoming{min-height:29px;padding:3px 8px;opacity:.7;box-shadow:none}
 .studio-log .quest-step.studio-upcoming .quest-symbol{width:21px;height:21px;min-width:21px;font-size:11px}
 .studio-votes{grid-template-columns:repeat(var(--vote-n,7),minmax(0,1fr));gap:5px}
 .studio-vote{height:62px;border-radius:7px}.studio-vote svg{width:31px;height:40px}.studio-vote>small{font-size:9px}.studio-vote.sealed>b{height:35px;font-size:24px}
 .studio-log>h2{margin-bottom:9px}.studio-log #questTrack{gap:5px;margin-bottom:9px}.studio-public-cards>section{padding:9px 8px}
 .studio-public-cards p{font-size:10px}.studio-public-cards h3{margin-bottom:7px}.studio-log #rejectionTrack{margin:9px 0}
 .studio-journal-note img{height:54px;width:96px}.studio-stage .av-table-center{top:28%;width:42%}
 .studio-stage .action-area{top:66%;width:44%}.studio-stage .action-row>.btn{min-height:47px;font-size:14px}.studio-stage .action-row>.btn.primary{font-size:17px}
 .studio-window:after{content:'';position:absolute;inset:0 0 50%;pointer-events:none;border:10px solid #7a4f32;border-top-width:0;box-shadow:inset 0 -9px 0 #e4b781,inset 0 -14px 0 #754b34,0 7px 7px #492a2055;background:linear-gradient(90deg,transparent 23%,#825a3c 23.2%,#d8ae784d 24.2%,transparent 24.6%,transparent 76%,#80573a 76.1%,#d8ae787d 77.1%,transparent 77.5%);border-radius:20px 20px 0 0;opacity:.8}
}
.guide-role dd{font-size:14px}.guide-role dt{font-size:13px}.guide-watch{font-size:13px!important}.guide-role-intro span{font-size:13px}
@media(min-width:741px){
 .studio-stage .av-table-center{top:27%;gap:10px}
 .studio-stage .studio-scroll{padding:8px 10px 10px}
 .studio-stage .studio-scroll b{font-size:24px!important;line-height:1.25;letter-spacing:2px!important}
 .studio-stage .studio-scroll small{font-size:11px;line-height:1.4;margin-top:5px}
 .studio-stage .studio-team-tray{padding:8px 7px}
 .studio-stage .studio-team-tray>span{font-size:12px;line-height:1.3}
 .studio-stage .av-team-slots{margin-top:6px;gap:6px}
 .studio-stage .studio-picked{padding:0 3px 4px;width:70px}
 .studio-stage .studio-picked svg{width:49px;height:52px}
 .studio-stage .studio-picked>b{height:52px;font-size:24px!important;line-height:1;letter-spacing:0!important}
 .studio-stage .studio-picked small{font-size:10px;line-height:1.3}
 .studio-stage .action-area{top:60%;width:44%;padding:0}
 html[data-av-phase=team] .studio-stage .action-area>p,html[data-av-phase=vote] .studio-stage .action-area>p,html[data-av-phase=assassination] .studio-stage .action-area>p,html[data-av-phase=lady] .studio-stage .action-area>p{display:none}
 html[data-av-phase=reveal] .studio-stage .action-row>.btn{min-width:0;font-size:13px;flex:1;padding:10px 9px;max-width:50%}
 html[data-av-phase=quest-result] .studio-stage .action-area{top:59%}
}
/* Final seat content footprints: portrait + non-shrinking name + status = 139px. */
@media(min-width:741px){
 .studio-stage #playersGrid>.player-seat,.studio-stage #playersGrid[data-count]>.player-seat{height:139px;min-height:139px}
 .studio-stage #playersGrid>.player-seat:before,.studio-stage #playersGrid[data-count]>.player-seat:before{width:92px;height:96px}
 .studio-stage #playersGrid>.player-seat>svg,.studio-stage #playersGrid[data-count]>.player-seat>svg{width:85px;height:92px;flex-shrink:0}
 .studio-stage #playersGrid>.player-seat>.name,.studio-stage #playersGrid[data-count]>.player-seat>.name{flex-shrink:0;line-height:1.2;font-size:12px!important;padding:5px 7px;margin:-4px 0 0;min-width:96px;max-width:100%}
 .studio-stage #playersGrid>.player-seat>.seat-status{flex-shrink:0;font-size:9px!important;line-height:1.2;padding:3px 6px;min-height:19px;margin:5px 0 0}
 .studio-stage #playersGrid>.player-seat>.seat-no{left:calc(50% - 48px)}
 .studio-stage #playersGrid>.player-seat>.leader-crown{top:-19px;font-size:27px}
 .studio-stage .action-area{top:59%}
}
.studio-phase-help{position:absolute;top:9px;right:10px;z-index:8;width:191px;border-radius:11px;background:#614633da;border:1px solid #d3b18a;color:#ffe2b9;box-shadow:0 3px 0 #63442e;padding:8px 10px;font-size:11px;line-height:1.6}
.studio-phase-help summary{cursor:pointer;font-size:11px;list-style:none;text-align:center}
.studio-phase-help summary:after{content:' ⌄'}
.studio-phase-help .phase-hint{position:static;margin:9px 0 0;text-align:left;font-size:12px;line-height:1.75;color:#ffefd9;text-shadow:none;pointer-events:auto}
.studio-phase-help[open]{width:min(270px,45%);background:#5d4134f5}
@media(max-width:740px){.studio-phase-help{position:relative;top:auto;right:auto;margin-top:10px;width:100%;order:21;background:#634936be;padding:9px;border-radius:10px;font-size:12px}.studio-phase-help[open]{width:100%}.studio-phase-help summary{font-size:12px}.studio-phase-help .phase-hint{font-size:12px;margin:10px 3px 0}.studio-stage #playersGrid>.player-seat>.name,.studio-stage #playersGrid>.player-seat>.seat-status{flex-shrink:0}.studio-stage #playersGrid>.player-seat,.studio-stage #playersGrid[data-count]>.player-seat{height:130px;min-height:130px}}
.studio-scroll,.studio-team-tray{width:100%;box-sizing:border-box}
@media(max-width:740px){.studio-stage .panel-heading>div:first-child{min-width:0;flex:1}.studio-stage .panel-heading h2{max-width:none;padding-right:82px;line-height:1.55}.studio-stage .studio-scroll,.studio-stage .studio-team-tray{width:100%}}
@container(max-width:850px){
 .studio-stage #playersGrid:is([data-count="8"],[data-count="9"],[data-count="10"])>.player-seat{width:94px;height:110px;min-height:110px}
 .studio-stage #playersGrid:is([data-count="8"],[data-count="9"],[data-count="10"])>.player-seat:before{width:72px;height:77px;border-width:3px}
 .studio-stage #playersGrid:is([data-count="8"],[data-count="9"],[data-count="10"])>.player-seat>svg{width:65px;height:70px}
 .studio-stage #playersGrid:is([data-count="8"],[data-count="9"],[data-count="10"])>.player-seat>.name{font-size:11px!important;min-width:82px;padding:3px 5px;margin:-3px 0 0}
 .studio-stage #playersGrid:is([data-count="8"],[data-count="9"],[data-count="10"])>.player-seat>.seat-status{font-size:8px!important;min-height:17px;padding:2px 4px;margin-top:4px}
 .studio-stage #playersGrid:is([data-count="8"],[data-count="9"],[data-count="10"])>.player-seat>.seat-no{left:calc(50% - 39px);width:20px;height:20px;font-size:10px}
}
/* The portrait ring needs a stable vertical footprint on shorter desktops.
   Extra page height scrolls instead of squeezing cards into the action hitbox. */
@media(min-width:1200px){
 .studio-shell{height:max(793px,calc(100dvh - 135px))}
 .studio-stage .action-area{width:42%}
}
@media(min-width:741px){
 @container(min-width:851px){
  .studio-stage #playersGrid[data-count="10"]>.player-seat{width:120px;height:128px;min-height:128px}
  .studio-stage #playersGrid[data-count="10"]>.player-seat:before{width:85px;height:87px}
  .studio-stage #playersGrid[data-count="10"]>.player-seat>svg{width:78px;height:82px}
  .studio-stage #playersGrid[data-count="10"]>.player-seat>.seat-no{left:calc(50% - 46px)}
 }
}
/* Long reveal labels and mission-result controls stay in the clear center aisle. */
@media(min-width:741px){
 .studio-stage .action-area{width:40%}
 html[data-av-phase=quest] .studio-stage .action-area{top:43%;width:44%}
 html[data-av-phase=quest-result] .studio-stage .studio-team-tray{display:none}
 html[data-av-phase=quest-result] .studio-stage .action-area{top:43%;width:40%}
}
