@import url('https://fonts.googleapis.com/css2?family=Gowun+Dodum&family=Jua&display=swap');
:root{color-scheme:dark;--gold:#ffe5a0;--mint:#a8f0da;--purple:#2c2555}*{box-sizing:border-box}body{margin:0;color:#fff5e8;font:17px 'Gowun Dodum','Malgun Gothic',sans-serif;background:radial-gradient(ellipse at 40% 0,#49326f,#171b38 65%,#10172f);min-width:320px}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #8b7ca1;border-radius:10px;color:#f5e8da;background:linear-gradient(#51466c,#322b4d);padding:10px 14px;box-shadow:0 3px 0 #121329}button:hover:not(:disabled){filter:brightness(1.13)}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--mint);outline-offset:3px}[hidden]{display:none!important}input,select{background:#171a37;border:1px solid #796c91;border-radius:9px;padding:12px;color:#fff;min-width:0;width:100%}input::placeholder{color:#b3abc7}header{max-width:1620px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 28px}.home{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--gold);font-family:Jua}.home img{width:50px;height:50px;object-fit:contain}.home small{display:block;font:10px sans-serif;letter-spacing:1px;margin-top:5px}h1{font:clamp(22px,2.7vw,38px) Jua;margin:0;text-shadow:0 3px #171329}h1>span{font-size:13px;display:block;letter-spacing:5px;text-align:center;color:var(--gold);margin-bottom:5px}main{max-width:1620px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 335px;gap:22px;padding:0 24px 20px}.studio{align-self:start;border:3px solid #c9a56b;border-radius:23px;background:linear-gradient(#211b4480,#30234a45),url('assets/studio.webp') center top/100% auto repeat-y;box-shadow:inset 0 0 0 5px #242343,0 12px 35px #0005;overflow:hidden;position:relative}.marquee{padding:14px 18px;display:flex;align-items:center;gap:14px;background:linear-gradient(#392a58,#221a3a);border-bottom:2px solid #b79860;font-family:Jua}.live{font:11px sans-serif;letter-spacing:1px;color:#ffe5ad;white-space:nowrap}.live i{display:inline-block;width:7px;height:7px;border-radius:100%;background:#ff647a;box-shadow:0 0 8px #ff647a;margin-right:4px}.marquee>strong{margin-left:auto;color:var(--gold);white-space:nowrap;font-size:19px}.big-screen{margin:25px 7% 15px;background:radial-gradient(ellipse at 50% 0,#263251,#10182e 70%);border:5px solid #d1b06f;outline:3px solid #30234f;border-radius:17px;box-shadow:0 8px 0 #151c30,0 15px 25px #070c2355,inset 0 0 30px #0004;position:relative;min-height:300px;display:flex;flex-direction:column}.screen-top{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;font:18px Jua;color:var(--mint)}#timer{font:26px Jua;color:var(--gold);min-width:65px;text-align:right}.timer-track{height:5px;background:#ffffff15;margin:0 18px;overflow:hidden;border-radius:5px}.timer-track i{display:block;width:100%;height:100%;background:linear-gradient(90deg,#67cecc,#fff0b1);transition:width .1s linear}.screen-copy{padding:22px 25px;flex:1;display:flex;flex-direction:column;justify-content:center;text-align:center;min-height:180px}#eyebrow{font:13px Jua;letter-spacing:1px;color:#b3c7da}.screen-copy h2{font:clamp(25px,3vw,39px)/1.4 Jua;margin:12px 0;word-break:keep-all;overflow-wrap:anywhere;white-space:pre-line}.screen-copy p{font-size:16px;line-height:1.7;margin:4px 0;color:#d6d3e5}#reveal{font:25px Jua;padding:10px;color:var(--gold)}.screen-bottom{display:flex;justify-content:space-between;gap:10px;padding:12px 16px;background:#080d2233;border-top:1px solid #ffffff16;font-size:12px;color:#bbbcd1}.stage-head{margin:25px 24px 0;display:flex;align-items:center;justify-content:space-between;gap:12px}.stage-head b{font:11px sans-serif;letter-spacing:2px;color:var(--gold)}.stage-head small{display:block;font-size:13px;margin-top:5px;color:#f6e4c1}.seat-pages{display:flex;gap:7px;align-items:center}.seat-pages button{font:13px Jua;padding:7px 9px}.seat-pages span{font-size:13px}.seats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px 8px;padding:13px 25px 25px;min-height:220px;background:linear-gradient(transparent,#2a1d3d25)}.seat{min-width:0;position:relative;display:flex;align-items:center;flex-direction:column;justify-content:flex-end;height:215px;isolation:isolate}.seat img{height:180px;width:165px;max-width:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 3px 2px #0a0b3650);z-index:1;transform-origin:center 85%}.seat .desk{position:relative;margin-top:-64px;width:100%;max-width:170px;z-index:2;padding:10px 7px 8px;text-align:center;background:linear-gradient(#72548e,#45355f);border:2px solid #cbb287;border-top:7px solid #e0bb80;border-radius:10px 10px 15px 15px;box-shadow:0 5px 0 #322440,0 8px 9px #0c122650}.seat .desk:before{content:'';position:absolute;width:80%;height:9px;bottom:-11px;left:10%;background:#3b2b43;z-index:-1;border-radius:0 0 5px 5px}.seat .nick{font:15px Jua;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff6df;padding-bottom:5px}.seat .points{background:#0d2030;border:1px solid #bf996a80;color:#a6f9df;border-radius:5px;display:block;padding:5px;font:23px Jua;letter-spacing:1px;text-shadow:0 0 6px #5ae2b066}.seat.mine .desk{border-color:#ffedb5;box-shadow:0 0 0 3px #f3d17b55,0 8px 9px #0c122650}.seat .seat-state{position:absolute;z-index:5;top:7px;left:50%;transform:translateX(-50%);white-space:nowrap;border-radius:9px;padding:6px 9px;background:#211d3fe8;font:13px Jua;color:#fff1cb;border:1px solid #bd9a65}.seat .round-points{display:block;color:#ffe8a1;font:13px Jua;margin-top:4px}.seat.correct img{animation:happy .7s ease-in-out 2}.seat.correct .desk{border-color:#a0f6d1}.seat.incorrect .desk{border-color:#b19cc8}.seat.offline{opacity:.6}.seat.preview .seat-state{font-size:11px;color:#d3c9e6}.seat.preview img{opacity:.9}.seat.preview .desk{background:linear-gradient(#60516e,#443856)}@keyframes happy{50%{transform:translateY(-5px) rotate(3deg)}}.answer-bar{background:linear-gradient(#2d234b,#1e1c38);padding:20px 24px;border-top:2px solid #b99b6a}.answer-bar form{display:flex;gap:10px}#answer{background:#fff9ea;color:#3c324b;font-size:19px}#answer::placeholder{color:#8c7e96}.gold{background:linear-gradient(#ffe8a4,#d4aa57);color:#423047;border-color:#ffedbb;box-shadow:0 4px 0 #8b6039;font:21px Jua;text-shadow:0 1px #fff6d6;white-space:nowrap}.wide{width:100%}.answer-bar p{font-size:14px;color:#d3c5df;margin:13px 0 0}aside{display:flex;flex-direction:column;gap:16px}.panel{background:linear-gradient(135deg,#34274cfa,#211f3afc);border:2px solid #b79a72;border-radius:18px;padding:22px;box-shadow:0 5px 0 #11162c,inset 0 0 0 3px #28223c}h2{font:24px Jua;margin:7px 0 17px}.eyebrow{color:#c2b1d0;font:10px sans-serif;letter-spacing:1.4px}.panel label{display:block;font:16px Jua;color:#e5d3eb;margin:14px 0 7px}.character-choice{display:flex;align-items:center;gap:12px;width:100%;margin:14px 0;padding:9px;background:linear-gradient(130deg,#4a3767,#3a2e51);text-align:left}.character-choice img{width:80px;height:85px;object-fit:contain}.character-choice small,.character-choice em{font-size:12px;font-style:normal;color:#d2c3df;display:block}.character-choice b{display:block;font:23px Jua;margin:6px 0}.setup>.gold{margin-top:18px}.or{text-align:center;font-size:13px;color:#cbbddb;padding:20px 0 12px}.join{display:flex;gap:7px}.join input{width:100%;text-transform:uppercase}.setup p,.room p{font-size:14px;line-height:1.8;color:#e6d6eb;margin:12px 0 0}#entryMessage,#network{color:#ffdc9c;overflow-wrap:anywhere}.room-heading,.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.room-heading h2,.panel-heading h2{margin:0}.room-heading button{padding:7px 9px;font-size:12px}.invite{margin-top:18px;padding:18px 8px;border:1px dashed #bca17e;border-radius:12px;text-align:center;background:#ffffff05}.invite small{font-size:13px;color:#d6c9d8}.invite strong{font:38px Jua;color:var(--gold);letter-spacing:5px;display:block;margin:10px 0}.invite>div{display:flex;justify-content:center;gap:7px}.invite button{font-size:13px;padding:8px}#hostSettings{display:flex;align-items:center;gap:12px;margin:14px 0}#hostSettings label{margin:0;flex:1}#hostSettings select{width:80px}.room>#start{margin-top:18px}.room>#changeInRoom{margin-top:14px;font-size:15px}.ranking .panel-heading>span{font-size:13px;color:#c7bdd7}#rank{list-style:none;padding:0;margin:14px 0 0;max-height:390px;overflow:auto}#rank li{display:flex;align-items:center;gap:9px;padding:11px 0;border-bottom:1px solid #ffffff10}#rank img{width:35px;height:38px;object-fit:contain}#rank .number{font:21px Jua;color:#e2c17c;min-width:22px}#rank .rank-nick{font-size:15px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#rank .rank-score{font:18px Jua;color:var(--mint)}#rank li.me{background:#ffffff08}#rank li.winner{color:#ffe299}#rank .empty-rank{font-size:14px;line-height:1.8;color:#bcb0cf;display:block}.chat h2{font-size:21px}#chatLog{height:145px;overflow:auto;background:#14182c99;padding:10px;border:1px solid #645474;border-radius:10px;font-size:14px;line-height:1.7}#chatLog p{margin:3px 0;overflow-wrap:anywhere}#chatLog b{color:#f4d08f}#chatForm{display:flex;gap:7px;margin-top:10px}#chatForm input{font-size:14px;padding:11px 9px}#chatForm button{font-size:13px;padding:8px}footer{max-width:1580px;margin:auto;padding:0 25px 25px;font-size:13px;color:#c4b7ce;display:flex;justify-content:space-between}dialog{width:950px;max-width:95vw;max-height:90dvh;padding:25px;background:linear-gradient(135deg,#37274e,#1e223f);color:#fff6e6;border:3px solid #cba465;border-radius:20px;box-shadow:0 20px 80px #0008}dialog::backdrop{background:#0b1022c7;backdrop-filter:blur(5px)}.dialog-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}.dialog-heading small{color:#e4c486;font-size:11px;letter-spacing:2px}.dialog-heading h2{font-size:28px;margin:8px 0 18px}.dialog-heading>button{font-size:30px;line-height:1;padding:7px 12px}#characterGrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}#characterGrid button{padding:5px 5px 11px;min-width:0;background:linear-gradient(#51406d,#332a4d)}#characterGrid button[aria-pressed=true]{border:3px solid #ffe39c;background:#6c4e72}#characterGrid img{display:block;width:100%;height:135px;object-fit:contain;pointer-events:none}#characterGrid span{font:17px Jua;display:block;margin-top:6px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:1000;background:#fff0c8;color:#3a2947;font:17px/1.6 Jua;padding:15px 24px;border:2px solid #bf9361;border-radius:12px;box-shadow:0 4px 20px #0007;max-width:90vw;text-align:center}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(min-width:1600px){.seat{height:225px}.seat img{height:195px}.big-screen{min-height:320px}.screen-copy h2{font-size:40px}}
@media(max-width:1150px){main{grid-template-columns:minmax(0,1fr) 290px;gap:15px;padding:0 15px 20px}.panel{padding:17px}.big-screen{margin:20px 5% 10px}.seats{padding:12px 12px 22px;gap:8px 5px}.seat{height:180px}.seat img{height:150px}.seat .desk{margin-top:-48px;padding:7px 4px}.seat .nick{font-size:13px}.seat .points{font-size:20px}.seat .seat-state{font-size:11px}.stage-head{margin-left:15px;margin-right:15px}.screen-copy{padding:16px}.marquee{font-size:14px;padding:12px}.live{font-size:9px}header{padding:14px 18px}.home span{display:none}}
@media(max-width:850px){main{grid-template-columns:1fr;max-width:760px}aside{display:grid;grid-template-columns:1fr 1fr}.chat{grid-column:1/-1}header{max-width:760px}h1{font-size:26px}.home img{width:43px;height:43px}.studio{border-radius:15px}.seats{grid-template-columns:repeat(5,minmax(0,1fr))}.seat{height:190px}.seat img{height:165px}.big-screen{min-height:290px}.screen-copy h2{font-size:30px}#characterGrid{grid-template-columns:repeat(4,minmax(0,1fr))}#characterGrid img{height:135px}}
@media(max-width:520px){header{gap:8px;padding:12px}.home img{width:34px;height:34px}header>button{font-size:12px;padding:9px}h1{font-size:21px}h1>span{font-size:10px}main{padding:0 8px 15px}.marquee{gap:8px;font-size:13px}.marquee>.live{display:none}.marquee>strong{font-size:16px}.big-screen{margin:18px 13px 10px;border-width:3px;min-height:280px}.screen-top{padding:12px 14px;font-size:15px}#timer{font-size:24px}.screen-copy{padding:17px 12px}.screen-copy h2{font-size:27px}.screen-copy p{font-size:14px}.screen-bottom{padding:10px;font-size:10px;line-height:1.6;flex-direction:column;gap:2px}.seats{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 7px;padding:10px 12px 25px}.seat{height:180px}.seat img{height:155px}.seat .desk{max-width:140px;margin-top:-52px}.seat .nick{font-size:13px}.seat .points{font-size:20px}.stage-head{gap:7px;margin-top:20px}.stage-head small{font-size:11px}.seat-pages button{font-size:11px;padding:6px}.answer-bar{padding:17px 12px}.answer-bar form{gap:7px}#answer{font-size:16px;padding:12px 10px}.answer-bar .gold{font-size:17px;padding:10px}.answer-bar p{font-size:12px;line-height:1.7}aside{grid-template-columns:1fr}.chat{grid-column:auto}#characterGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#characterGrid img{height:115px}#characterGrid span{font-size:15px}dialog{padding:16px}.dialog-heading h2{font-size:22px}footer{font-size:11px;padding:0 15px 20px;gap:10px;line-height:1.8}.seat .round-points{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.seat .speech{position:absolute;left:50%;bottom:calc(100% - 5px);transform:translateX(-50%);width:max-content;max-width:190px;min-width:75px;padding:10px 13px;border:2px solid #ad8460;border-radius:16px;background:#fffaf0;color:#48334a;font:15px/1.55 'Gowun Dodum';box-shadow:0 4px 9px #1a153333;z-index:20;overflow-wrap:anywhere;white-space:pre-wrap;text-align:center}.seat .speech:after{content:'';position:absolute;bottom:-9px;left:calc(50% - 7px);width:12px;height:12px;background:#fffaf0;border-right:2px solid #ad8460;border-bottom:2px solid #ad8460;transform:rotate(45deg)}.seats{padding-top:60px;row-gap:55px}.seat .speech:not([hidden])~.seat-state{opacity:0}@media(max-width:520px){.seat .speech{font-size:13px;max-width:145px;padding:8px}.seats{padding-top:50px;row-gap:50px}}

.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0 0;text-align:left}.choices button{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #8598b2;background:linear-gradient(#293d58,#1d2c46);min-height:55px;text-align:left;line-height:1.5}.choices b{display:grid;place-items:center;flex:0 0 27px;height:27px;border-radius:7px;background:#e8c77b;color:#342c45;font:19px Jua}.choices span{overflow-wrap:anywhere;font:20px/1.5 Jua}.choices button[aria-pressed=true]{background:linear-gradient(#615336,#3d3c2a);border:2px solid #ffe19b}.choices button:disabled{opacity:.7}.big-screen{min-height:380px}.screen-copy h2{font-size:clamp(23px,2.6vw,35px)}@media(max-width:520px){.choices{gap:8px}.choices button{padding:10px 8px;gap:7px}.choices span{font-size:17px}.choices b{font-size:17px;flex-basis:24px;height:24px}.big-screen{min-height:370px}}

/* The studio never tiles behind the contestants; desks sit at lap height, feet remain visible. */
.studio{background-repeat:no-repeat;background-size:100% 100%}.seat img{position:absolute;bottom:0;height:205px}.seat .desk{position:absolute;bottom:24px;margin:0;padding:6px 6px 5px;border-top-width:6px;max-width:150px;width:94%}.seat .nick{font-size:14px;padding-bottom:3px}.seat .points{font-size:20px;padding:3px}.seat .round-points{font-size:11px;margin-top:2px}.seat .desk:before{height:22px;bottom:-24px;background:linear-gradient(90deg,#3b2b43 0 10%,transparent 10% 90%,#3b2b43 90%)}
@media(max-width:1150px){.seat img{height:175px}.seat .desk{bottom:18px;padding:5px 4px;width:97%}.seat .nick{font-size:12px}.seat .points{font-size:19px}}
@media(max-width:520px){.seat img{height:170px}.seat .desk{bottom:19px;max-width:130px}.seat .points{font-size:18px}.seat .nick{font-size:12px}}

/* Seated sprites retain a real height independent of column width. */
.seat img{width:auto;max-width:none;height:205px;object-fit:contain;object-position:center bottom;pointer-events:none}@media(max-width:1150px){.seat img{width:auto;max-width:none;height:175px}}@media(max-width:520px){.seat img{width:auto;max-width:none;height:170px}}
/* One complete quiz stage per PC screen, including both rows of five players. */
@media(min-width:851px){html,body{height:100%;overflow:hidden}body{height:100dvh;display:grid;grid-template-rows:66px minmax(0,1fr) 24px}header{height:66px;width:100%;padding:8px 22px}header .home img{width:42px;height:42px}h1{font-size:28px}h1>span{font-size:10px;margin-bottom:2px}main{width:100%;height:100%;min-height:0;grid-template-columns:minmax(0,1fr) 300px;gap:15px;padding:0 18px 8px}.studio{height:100%;min-height:0;display:grid;grid-template-rows:36px minmax(215px,.95fr) 25px minmax(205px,1fr) 67px;overflow:hidden;background-size:100% 100%;background-repeat:no-repeat}.marquee{padding:6px 14px;font-size:14px}.marquee>strong{font-size:17px}.big-screen{height:auto;min-height:0;margin:10px 5% 4px;border-width:3px;border-radius:12px}.screen-top{padding:7px 14px;font-size:15px}#timer{font-size:22px}.timer-track{height:3px}.screen-copy{padding:7px 16px;min-height:0;justify-content:center}#eyebrow{font-size:11px;line-height:1.2}.screen-copy h2{font-size:clamp(20px,1.8vw,28px);line-height:1.3;margin:5px 0}.screen-copy p{font-size:12px;line-height:1.3;margin:3px 0}.screen-bottom{padding:5px 10px;font-size:10px}.choices{margin-top:7px;gap:6px 9px}.choices button{min-height:34px;padding:5px 8px;gap:7px}.choices b{flex-basis:23px;height:23px;font-size:17px}.choices span{font-size:18px;line-height:1.25}#reveal{font-size:21px;padding:4px}.stage-head{margin:4px 18px 0;align-items:center}.stage-head small{display:inline;font-size:11px;margin-left:8px}.stage-head b{font-size:9px}.seats{min-height:0;height:100%;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));padding:22px 18px 9px;row-gap:22px;column-gap:7px;align-items:end}.seat{height:100%;min-height:0;max-height:174px}.seat img{width:auto;max-width:none;height:clamp(115px,17vh,170px);bottom:0}.seat .desk{bottom:5px;max-width:130px;padding:3px 5px;border-top-width:5px;min-height:48px}.seat .nick{font-size:12px;line-height:1.2;padding-bottom:3px}.seat .points{font-size:18px;line-height:1.15;padding:2px}.seat .desk:before{height:8px;bottom:-10px}.seat .round-points{font-size:10px;margin-top:1px}.seat .seat-state{top:-16px;font-size:10px;padding:3px 6px}.seat .speech{font-size:13px;max-width:170px;padding:6px 10px;bottom:calc(100% + 5px)}.answer-bar{padding:8px 14px}.answer-bar form{gap:9px}#answer{font-size:16px;padding:7px 10px}.answer-bar .gold{font-size:18px;padding:7px 13px}.answer-bar p{font-size:11px;line-height:1.4;margin-top:6px}aside{height:100%;min-height:0;overflow-y:auto;padding:0 5px 8px 0;scrollbar-width:thin;scrollbar-color:#c8a76a #221c37}.panel{padding:16px;border-radius:14px}.panel h2{font-size:22px}.character-choice img{height:70px;width:65px}.setup>.gold{font-size:19px;margin-top:13px}.panel input,.panel select{padding:9px 11px}.panel label{margin-top:11px}.or{padding:15px 0 10px}footer{height:24px;width:100%;font-size:10px;padding:2px 20px 4px;line-height:1.5;overflow:hidden}}
+@media(min-width:851px) and (max-height:760px){.screen-copy #eyebrow,.screen-copy #feedback{display:none}.screen-copy h2{font-size:21px;line-height:1.35}.big-screen{margin-top:7px;margin-bottom:2px}.choices span{font-size:17px}.screen-bottom{font-size:9px}.studio{grid-template-rows:33px minmax(210px,.95fr) 23px minmax(195px,1fr) 62px}.seat .desk{bottom:4px}.seat .speech{max-height:70px;overflow:auto}.answer-bar p{font-size:10px}}

/* Every portrait is a separately extracted person. Keep score boards BELOW, never over faces. */
.seat{display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.seat img{position:static;display:block;width:auto;max-width:none;height:calc(100% - 47px);min-height:0;flex:1 1 auto;object-fit:contain;object-position:center bottom;transform-origin:center 80%}.seat .desk{position:relative;bottom:auto;top:auto;left:auto;right:auto;flex:0 0 auto;margin:0;padding:4px 7px;width:94%;max-width:140px;border-top-width:4px;min-height:42px}.seat .desk:before{display:none}.seat .nick{font-size:12px;padding-bottom:2px;line-height:1.15}.seat .points{font-size:18px;padding:1px;line-height:1.15}.seat .round-points{position:absolute;right:3px;top:-20px;font-size:11px;background:#332945;padding:3px 5px;border-radius:6px}.seat .seat-state{top:-17px}.seat.preview .seat-state{font-size:10px}.seat .speech{bottom:calc(100% + 2px)}
@media(max-width:850px){.seat{height:220px}.seat img{height:170px;flex:0 0 170px}.seat .desk{max-width:145px}.seats{row-gap:40px;padding-top:40px}}
@media(max-width:520px){.seat{height:190px}.seat img{height:145px;flex:0 0 145px}.seat .desk{max-width:120px}.seat .nick{font-size:12px}.seat .points{font-size:17px}}
#characterGrid img{width:100%;height:150px;object-fit:contain;object-position:center bottom}#characterGrid button{display:flex;flex-direction:column;align-items:center;justify-content:flex-end}#characterGrid span{height:24px;line-height:24px} @media(max-width:520px){#characterGrid img{height:125px}}

/* On PC reserve real space for ten full seated portraits; nameplates follow below each sprite. */
@media(min-width:851px){.studio{grid-template-rows:30px minmax(210px,.8fr) 19px minmax(280px,1.2fr) 58px}.big-screen{margin:6px 5% 1px}.seats{padding:24px 18px 43px;row-gap:47px;align-items:stretch}.seat{height:100%;max-height:none;min-height:0}.seat img{position:absolute;top:-18px;bottom:auto;width:auto;max-width:none;height:calc(100% + 18px);min-height:0;flex:none;object-position:center bottom}.seat .desk{position:absolute;top:100%;bottom:auto;min-height:34px;height:34px;padding:1px 6px;border-top-width:3px;border-radius:7px 7px 10px 10px;max-width:125px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px}.seat .nick{font-size:11px;padding:0;line-height:1.2;text-align:left}.seat .points{font-size:16px;line-height:1;padding:4px 3px;letter-spacing:0;min-width:40px}.seat .round-points{top:-15px;font-size:9px;padding:2px 4px}.seat .seat-state{top:-27px;padding:2px 5px;font-size:9px}.seat .speech{bottom:calc(100% + 22px);font-size:12px;max-width:160px;padding:5px 8px}.answer-bar{padding:6px 12px}.answer-bar p{font-size:10px;margin-top:3px}.stage-head{margin-top:0}.screen-top{padding:5px 12px}.screen-bottom{padding:3px 9px}.choices button{min-height:30px;padding:4px 7px}.choices span{font-size:17px}.choices b{height:21px;flex-basis:21px;font-size:16px}.choices{gap:5px 8px;margin-top:5px}.screen-copy h2{font-size:clamp(19px,1.8vw,27px);margin:4px 0;line-height:1.25}.screen-copy{padding:4px 14px}}

.empty-chair{position:absolute;bottom:0;width:62px;height:65%;max-height:115px;border:3px solid #9f8aa1;border-radius:23px 23px 12px 12px;background:linear-gradient(90deg,#39324f,#57506e 50%,#39324f);box-shadow:inset 0 0 0 3px #251d37,0 4px 0 #2a2036;opacity:.6}.empty-chair:after{content:'';position:absolute;bottom:14%;left:-10px;right:-10px;height:24%;border:3px solid #8a7898;border-radius:12px;background:#453957}.seat.empty .desk{opacity:.65}.seat.empty .seat-state{color:#c6bdd1}.seat.empty .speech{display:none}
#characterGrid img{height:150px;width:125px;max-width:100%;object-fit:contain;object-position:center bottom}.character-choice img{object-fit:contain} @media(max-width:520px){#characterGrid img{height:125px;width:104px}.seat.empty .empty-chair{position:relative;bottom:auto;height:105px;flex:0 0 105px;margin-top:40px}}

/* Direct answer selection: larger type replaces the redundant submit form. */
.answer-bar{display:flex;align-items:center;justify-content:center;padding:8px 12px;min-height:32px}.answer-bar p{margin:0;font-size:16px;line-height:1.5;text-align:center;color:#f4e3bc}.screen-copy h2{font-size:clamp(26px,2.5vw,36px);line-height:1.35}.choices span{font-size:24px;line-height:1.35}.choices b{font-size:23px;flex-basis:30px;height:30px}.choices button{min-height:48px;padding:8px 12px}.seat .desk{max-width:165px}.seat .nick{font-size:15px}.seat .points{font-size:22px;min-width:48px}.panel label{font-size:18px}.panel input,.panel select{font-size:18px}.panel h2{font-size:25px}.room-heading button{font-size:15px}.invite small{font-size:16px}.invite button{font-size:16px}.room p{font-size:16px}#rank .rank-nick{font-size:17px}#rank .rank-score{font-size:21px}#chatLog{font-size:16px}#chatForm input{font-size:16px}#chatForm button{font-size:16px}.seat .speech{font-size:15px}
@media(min-width:851px){.studio{grid-template-rows:30px minmax(245px,.9fr) 21px minmax(280px,1.1fr) 28px}.answer-bar{padding:3px 10px;min-height:0}.answer-bar p{font-size:14px;line-height:1.3}.screen-copy h2{font-size:clamp(25px,2.2vw,33px);line-height:1.25}.screen-copy h2.long-question{font-size:23px;line-height:1.25}.screen-top{font-size:18px;padding:6px 12px}#timer{font-size:27px}.choices span{font-size:23px;line-height:1.3}.choices b{font-size:22px;flex-basis:28px;height:28px}.choices button{min-height:42px;padding:6px 10px}.choices.short{grid-template-columns:repeat(4,minmax(0,1fr))}.choices{gap:8px}.seat .desk{height:36px;min-height:36px;max-width:165px;gap:5px;padding:1px 5px}.seat .nick{font-size:14px;line-height:1.25}.seat .points{font-size:22px;min-width:48px;padding:4px 3px}.stage-head small{font-size:13px}.marquee{font-size:17px}.marquee>strong{font-size:19px}#characterGrid span{font-size:19px}.panel label{font-size:18px}.panel h2{font-size:25px}.panel input,.panel select{font-size:18px}.room-heading button{font-size:14px}}
@media(max-width:520px){.screen-copy h2{font-size:27px;line-height:1.3}.screen-copy h2.long-question{font-size:24px}.choices span{font-size:22px}.choices b{font-size:21px;flex-basis:27px;height:27px}.choices button{min-height:47px;padding:7px 9px}.answer-bar p{font-size:14px}.seat .nick{font-size:14px}.seat .points{font-size:21px}.seat .desk{max-width:125px}}

.header-tools{display:flex;align-items:center;gap:10px}.sound-tools{display:flex;align-items:center;gap:7px}.sound-tools button{font:16px Jua;padding:9px 10px;white-space:nowrap}.sound-tools input{width:65px;padding:0;accent-color:#f1cc83;border:0;height:22px}.seat .judge{position:absolute;left:calc(50% + 20px);top:5px;width:39px;height:39px;display:grid;place-items:center;border:3px solid #fff6df;border-radius:50%;font:bold 29px/1 Arial,sans-serif;z-index:15;box-shadow:0 3px 9px #10142e80;animation:judge-pop .23s ease-out}.seat .judge.correct{background:#168e62;color:#fff7d0}.seat .judge.wrong{background:#c43851;color:white}@keyframes judge-pop{from{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}#answerHint.result-correct{font-family:Jua;color:#a2ffd0;font-size:21px}#answerHint.result-wrong{font-family:Jua;color:#ffbec7;font-size:21px}.choices button.correct-choice{opacity:1;background:linear-gradient(#2c775c,#195445);border:3px solid #a2ffd0}.choices button.wrong-choice{opacity:1;background:linear-gradient(#823c57,#552d46);border:3px solid #ffb5c7}.screen-copy #feedback{font:20px Jua;color:#ffe1a3}body[data-phase=reveal] #feedback{display:block!important}body[data-phase=reveal] #eyebrow{display:none!important}
@media(min-width:851px){.seat .judge{top:2px;left:calc(50% + 18px);width:36px;height:36px;font-size:27px}.answer-bar p{font-size:15px}#answerHint.result-correct,#answerHint.result-wrong{font-size:20px}.screen-copy #feedback{font-size:21px}.header-tools button{font-size:15px}.sound-tools input{width:60px}}
@media(max-width:850px){header{flex-wrap:wrap}.header-tools{margin-left:auto}.sound-tools input{width:55px}.header-tools button{font-size:14px;padding:8px}.seat .judge{top:38px;left:calc(50% + 22px)}}
@media(max-width:520px){.header-tools{gap:6px}.sound-tools{gap:5px}.sound-tools input{width:45px}.header-tools button{font-size:12px;padding:7px}.seat .judge{top:31px;width:35px;height:35px;font-size:26px;left:calc(50% + 17px)}#answerHint.result-correct,#answerHint.result-wrong{font-size:19px}}
