:root{color:#16201c;font-synthesis:none;text-rendering:optimizelegibility;background-color:#f6f3ec;background-image:linear-gradient(90deg,#16201c0a 1px,#0000 1px),linear-gradient(#16201c0a 1px,#0000 1px),none;background-position:0 0,0 0,0 0;background-repeat:repeat,repeat,repeat;background-size:32px 32px;background-attachment:scroll,scroll,scroll;background-origin:padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0;overflow-x:hidden}.profile-gate{place-items:center;min-height:100vh;padding:24px;display:grid}.profile-gate-form{width:100%;max-width:620px}.profile-gate-form h1{font-size:clamp(2.35rem,8vw,4rem)}.profile-gate-form .section-heading{margin-bottom:12px}.profile-gate-form .lede{margin-top:0}button,input,select{font:inherit}button,.link-button{color:#fff;cursor:pointer;white-space:nowrap;touch-action:manipulation;background:#143f35;border:1px solid #143f35;border-radius:8px;justify-content:center;align-items:center;min-height:44px;padding:0 18px;font-size:.94rem;font-weight:800;text-decoration:none;transition:background-color .16s,border-color .16s,box-shadow .16s,transform .16s;display:inline-flex;box-shadow:0 10px 24px #143f3529}button:hover,.link-button:hover{background:#0f3028;border-color:#0f3028;transform:translateY(-1px);box-shadow:0 14px 30px #143f3533}button:focus-visible,.link-button:focus-visible,input:focus-visible,select:focus-visible{outline-offset:2px;outline:3px solid #21786047}button:disabled{cursor:not-allowed;opacity:.62;transform:none}.secondary{box-shadow:none;color:#143f35;background:0 0}.secondary:hover{color:#143f35;background:#edf3ee}.shell{max-width:1120px;margin:0 auto;padding:44px 22px 56px;animation:.42s both page-enter}.shell:has(.settings-overlay){animation:none;transform:none}.intro{border-bottom:1px solid #16201c24;justify-content:space-between;align-items:end;gap:28px;margin-bottom:28px;padding:10px 0 28px;display:flex}.home-actions{gap:10px;display:flex}.create-room-panel{align-content:start;gap:20px;display:grid}.create-room-panel .section-heading{margin-bottom:0}.create-room-panel .muted{word-break:auto-phrase;line-height:1.65}.profile-shell,.history-shell{max-width:980px}.history-header{margin-bottom:18px;padding:6px 0 18px}.history-header h1{font-size:clamp(2.6rem,7vw,4.6rem);line-height:.92}.history-header-link{min-height:36px;padding:0 12px;font-size:.82rem;font-weight:800}.profile-header{border-bottom:1px solid #16201c24;justify-content:space-between;align-items:end;min-width:0;margin-bottom:28px;padding:10px 0 28px;display:flex}.profile-header h1{font-size:clamp(3rem,9vw,6rem)}.profile-layout{grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);align-items:start;display:grid}.profile-primary{border-radius:8px 0 0 8px;min-width:0}.profile-primary button{justify-self:start}.profile-secondary{min-width:0;display:grid}.profile-secondary>.workspace{border-left:0}.profile-secondary>.workspace:first-child{border-radius:0 8px 0 0}.profile-secondary>.workspace:last-child{border-top:0;border-radius:0 0 8px}.avatar-placeholder,.provider-list>div{justify-content:space-between;align-items:center;display:flex}.provider-summary{line-height:1.55}.history-panel{border-radius:8px}.history-list{gap:10px;display:grid}.history-card{color:inherit;background:#ffffffc2;border:1px solid #16201c1f;border-radius:8px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;padding:18px;text-decoration:none;transition:background-color .16s,border-color .16s;display:grid}.history-card:hover{background:#fffcf6;border-color:#143f3547}.history-card-copy{gap:8px;min-width:0;display:grid}.history-card-copy h2{overflow-wrap:anywhere;font-size:1.08rem}.history-card-time,.history-card-meta{color:#6f7c72;font-size:.84rem;font-weight:800}.history-card-meta{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.history-link-chip{min-width:88px;min-height:40px;padding:0 14px}.history-result{border-radius:999px;padding:5px 10px;font-size:.76rem;font-weight:900}.history-result--correct{color:#166148;background:#e8f6ef}.history-result--incorrect{color:#9c3d35;background:#fde9e8}.history-result--no_answer{color:#6f7c72;background:#f0ede5}.history-actions{justify-content:center;margin-top:18px;display:flex}.history-actions-row{flex-wrap:wrap}.history-detail{gap:20px;display:grid}.history-detail-meta{border-left:3px solid #143f35;gap:12px;margin:0;padding-left:14px;display:grid}.history-detail-meta div{gap:4px;display:grid}.history-detail-meta dt{color:#6f7c72;font-size:.76rem;font-weight:900}.history-detail-meta dd{color:#17211d;overflow-wrap:anywhere;margin:0;font-size:.92rem;font-weight:800}.history-panel .empty-state{min-height:144px}.history-panel .empty-state p{color:#4f5b55;font-weight:700}.provider-list{margin-top:18px;display:grid}.provider-list>div{border-top:1px solid #16201c1a;gap:16px;min-height:58px;font-weight:800}.provider-list button{flex:none;min-height:36px}.avatar-placeholder strong{color:#7a5c2b;letter-spacing:.08em;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.success{color:#166148;font-size:.9rem;font-weight:800}.room-intro{align-items:center}.room-shell{max-width:1280px}.room-topbar{border-bottom:1px solid #16201c24;grid-template-columns:minmax(130px,1fr) auto;align-items:center;gap:16px;margin-bottom:28px;padding:10px 0 22px;display:grid}.room-topbar .link-button{justify-self:start}.room-meta{justify-self:end;align-items:center;gap:14px;display:inline-flex}.room-code-heading{color:#6f7c72;justify-content:flex-end;align-items:baseline;gap:12px;display:flex}.room-code-heading strong{color:#7a5c2b;letter-spacing:.04em;font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:1.35rem}.room-genre-pill{color:#7a5c2b;border:1px solid #143f353d;border-radius:8px;padding:10px 16px;font-size:.9rem;font-weight:900}.kicker{color:#6f7c72;letter-spacing:0;text-transform:uppercase;margin:0 0 8px;font-size:.76rem;font-weight:900}h1,h2,p{margin:0}h1,h2{letter-spacing:0;text-wrap:balance}h1{color:#101713;max-width:760px;font-size:clamp(3.2rem,10vw,7.5rem);line-height:.86}h2{color:#17211d;font-size:1.16rem;line-height:1.2}.lede,.muted{color:#637069}.lede{max-width:650px;margin-top:18px;font-size:clamp(1rem,2vw,1.15rem);line-height:1.65}.grid{grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:0;display:grid}.room-grid{grid-template-columns:minmax(0,1fr) minmax(300px,360px);gap:0;display:grid}.play-layout{grid-template-columns:minmax(0,1fr) minmax(320px,420px);align-items:start;gap:18px}.room-grid--sidebar-only{grid-template-columns:minmax(0,1180px);justify-content:center}.room-grid--sidebar-only .lobby-header{gap:12px;margin-bottom:18px}.room-grid--sidebar-only .settings-panel{margin-bottom:12px}.workspace{background:#ffffffb8;border:1px solid #16201c21;min-width:0;padding:26px}.grid>.workspace:first-child,.room-grid>.workspace:first-child{border-radius:8px 0 0 8px}.grid>.workspace:last-child,.room-grid>.workspace:last-child{border-left:0;border-radius:0 8px 8px 0}.room-grid--sidebar-only>.side-panel:first-child:last-child,.play-layout>.workspace:first-child,.play-layout>.workspace:last-child{border:1px solid #16201c21;border-radius:8px}.form{gap:16px;display:grid}.narrow{border-radius:8px;width:100%;max-width:440px;margin-inline:auto}.section-heading{margin-bottom:22px}.section-heading.split{justify-content:space-between;align-items:start;display:flex}.count{color:#fff;background:#143f35;border-radius:999px;justify-content:center;align-items:center;min-width:28px;height:28px;padding:0 10px;font-size:.82rem;font-weight:900;display:inline-flex}label{color:#324139;gap:8px;font-size:.88rem;font-weight:800;display:grid}input,select{color:#16201c;background:#fffcf6;border:1px solid #16201c2e;border-radius:8px;width:100%;min-height:44px;padding:0 12px;transition:background-color .16s,border-color .16s,box-shadow .16s}select{appearance:none;background-image:linear-gradient(45deg,#0000 50%,#143f35b8 50%),linear-gradient(135deg,#143f35b8 50%,#0000 50%);background-position:calc(100% - 19px) calc(50% - 2px),calc(100% - 13px) calc(50% - 2px);background-repeat:no-repeat;background-size:6px 6px,6px 6px;padding-right:36px}input:hover,select:hover,input:focus,select:focus{background:#fff;border-color:#143f3575}.empty-state{color:#637069;border:1px dashed #16201c38;border-radius:8px;align-items:center;min-height:170px;padding:22px;display:flex}.room-list,.players{margin:0;padding:0;list-style:none;display:grid}.room-list{gap:8px}.players li{border:1px solid #16201c1f;border-radius:8px;justify-content:space-between;align-items:center;gap:14px;min-height:62px;padding:13px 14px;display:flex}.room-list a,.join-room-link{color:inherit;text-decoration:none}.room-table{gap:8px;display:grid}.room-list-header{color:#6f7c72;grid-template-columns:minmax(120px,1.45fr) minmax(64px,.9fr) minmax(78px,.9fr) minmax(68px,.72fr) minmax(84px,.92fr) minmax(134px,auto);gap:14px;padding:0 14px;font-size:.74rem;font-weight:900;display:grid}.join-room-link{color:#143f35;background:#e8f6ef;border:1px solid #143f3552;border-radius:8px;justify-content:center;align-items:center;min-width:66px;min-height:40px;padding:0 14px;font-size:.92rem;font-weight:800;transition:background-color .16s,box-shadow .16s,transform .16s;display:inline-flex;box-shadow:0 8px 20px #143f351a}.join-room-link:hover{background:#d9f0e5;border-color:#143f357a;transform:translateY(-1px);box-shadow:0 12px 26px #143f3524}.room-list li{background:#ffffffc2;border:1px solid #16201c1f;border-radius:8px;grid-template-columns:minmax(120px,1.45fr) minmax(64px,.9fr) minmax(78px,.9fr) minmax(68px,.72fr) minmax(84px,.92fr) minmax(134px,auto);align-items:center;gap:14px;min-height:72px;padding:12px 14px;transition:background-color .16s,border-color .16s;display:grid;position:relative}.room-list li:hover{background:#fffcf6;border-color:#143f3547}.room-card-copy{gap:5px;min-width:0;display:grid}.room-card-copy h3{color:#17211d;overflow-wrap:anywhere;margin:0;font-size:1.02rem;line-height:1.25}.room-card-copy p{color:#6f7c72;overflow-wrap:anywhere;margin:0;font-size:.82rem;font-weight:800}.room-host,.room-code{overflow-wrap:anywhere}.room-code{color:#7a5c2b;font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace;font-weight:900}.room-player-count{font-weight:900}.room-card-actions{justify-content:flex-end;align-items:center;gap:8px;display:flex}.room-details{position:relative}.room-details[open]{z-index:5}.room-details summary{color:#143f35;cursor:pointer;background:0 0;border:1px solid #143f3542;border-radius:8px;justify-content:center;align-items:center;min-width:66px;min-height:40px;padding:0 12px;font-size:.86rem;font-weight:800;list-style:none;transition:background-color .16s,border-color .16s,transform .16s;display:flex}.room-details summary::-webkit-details-marker{display:none}.room-details summary:hover{background:#edf3ee;border-color:#143f3561;transform:translateY(-1px)}.room-rules{background:#fff;border:1px solid #16201c24;border-radius:8px;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:min(430px,100vw - 48px);margin:0;padding:14px;display:grid;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 18px 40px #16201c29}.room-rules div{gap:3px;display:grid}.room-rules dt{color:#6f7c72;font-size:.74rem;font-weight:900}.room-rules dd{overflow-wrap:anywhere;margin:0;font-size:.86rem;font-weight:800}.match-board{flex-direction:column;min-height:0;display:flex}.match-board:has(.question-box){min-height:clamp(620px,100svh - 170px,780px)}.play-status{grid-template-columns:minmax(110px,auto) minmax(0,1fr);align-items:start;gap:18px;margin-bottom:22px;display:grid}.question-progress{flex-wrap:wrap;align-items:baseline;gap:6px;display:flex}.mobile-player-strip{display:none}.play-status-center{text-align:center;justify-items:center;gap:8px;display:grid}.play-status-center h1{color:#17211d;font-size:clamp(1.8rem,4vw,3.2rem);line-height:1}.play-status-center p{color:#637069;font-size:.9rem}.question-count{color:#17211d;letter-spacing:.02em;font-size:clamp(1rem,2vw,1.15rem);font-weight:900;line-height:1.2}.question-total{color:#637069;margin-left:0;font-size:.95rem;font-weight:800}.waiting-line{color:#637069;align-items:center;gap:10px;display:flex}.waiting-line:before{content:"";background:#c69a2e;border-radius:999px;width:9px;height:9px;animation:1.5s ease-in-out infinite pulse}.match-meta{border-left:3px solid #143f35;gap:12px;margin:0 0 22px;padding-left:14px;display:grid}.match-meta div{gap:6px;display:grid}.match-meta dt{color:#6f7c72;text-transform:uppercase;font-size:.76rem;font-weight:900}.match-meta dd{overflow-wrap:anywhere;margin:0;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.86rem}.match-id-line{color:#6f7c72;overflow-wrap:anywhere;margin-bottom:18px;font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.82rem}.question-box{color:#16201c;flex:0 0 clamp(230px,34svh,340px);margin-top:26px;padding:0;overflow:hidden}.question-box .kicker,.question-box .muted{color:#6f7c72}.question-box h2{color:#17211d;text-wrap:wrap;word-break:break-all;margin-bottom:22px;font-size:clamp(1.5rem,3.6vw,3.3rem);line-height:1.12}.question-answer{color:#637069;margin:-8px 0 0;font-size:.92rem;font-weight:800}.question-result{background:#edf3ee;border:1px solid #143f352e;border-left:4px solid #143f35;border-radius:8px;gap:14px;margin-top:18px;padding:16px 18px;display:grid}.question-result>div{gap:4px;display:grid}.question-result .kicker{margin:0}.question-official-answer{color:#143f35;overflow-wrap:anywhere;font-size:clamp(1.25rem,3vw,2rem);font-weight:950;line-height:1.25}.question-explanation{color:#324139;overflow-wrap:anywhere;font-size:.96rem;line-height:1.65}.answer-preview{gap:6px;margin-top:6px;display:grid}.answer-preview .kicker{margin-bottom:0}.answer-preview output{color:#16201c;border-bottom:1px solid #143f3552;min-height:34px;padding:0 0 8px;font-size:clamp(1.1rem,3.4vw,2rem);font-weight:900;line-height:1.15}.answer-preview-value{position:relative}.answer-preview-value output{box-sizing:border-box;width:100%;padding-right:64px;display:block}.answer-judgement{font-size:clamp(2rem,5vw,3.25rem);font-weight:950;line-height:1;position:absolute;bottom:8px;right:0}.answer-preview--correct .answer-judgement{color:#087443}.answer-preview--incorrect .answer-judgement{color:#b52a2a}.buzz-button{color:#fff;background:#143f35;border-color:#143f35;min-width:118px;box-shadow:0 10px 24px #143f3529}.buzz-button:hover{background:#0f3028;border-color:#0f3028}.buzz-button span{color:#ffffffb8;margin-left:8px;font-size:.78rem}.fixed-answer-actions{z-index:2;border-top:1px solid #16201c1f;gap:12px;margin-top:auto;padding-top:18px;display:grid}.buzz-row{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;display:flex}.answer-panel{gap:14px;display:grid}.answer-entry{grid-template-columns:minmax(0,1fr) minmax(220px,.85fr);align-items:end;gap:16px;display:grid}.answer-entry>div{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.answer-entry strong{color:#17211d;font-size:1.1rem}.answer-entry label{color:#324139}.answer-entry output{color:#16201c;overflow-wrap:anywhere;background:0 0;border:0;border-bottom:1px solid #143f3552;border-radius:0;min-height:58px;padding:6px 0 10px;font-size:clamp(1.8rem,4vw,3.2rem);line-height:1.15;display:block}.choice-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;max-width:none;display:grid}.choice-grid button{box-shadow:none;color:#143f35;background:#fffcf6;border-color:#16201c24;flex-direction:column;gap:4px;min-height:76px;padding:10px 12px;font-size:clamp(1.4rem,3vw,2rem)}.choice-grid button span{color:#6f7c72;font-size:.75rem;font-weight:900}.choice-grid button:disabled{color:#52605a;cursor:default;background:#f3f0e9;border-color:#16201c1a}.choice-grid button:disabled span{color:#6f7873}.secondary.light{color:#fff;border-color:#ffffff7a}.secondary.light:hover{color:#fff;background:#ffffff1f}.result-line{color:#fff;margin-top:16px;font-weight:900}.result-actions{border-top:1px solid #ffffff2e;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:20px;padding-top:18px;display:flex}.result-actions .result-line{margin-top:0}.result-board{background:#fffcf6;border:1px solid #16201c21;border-radius:8px;gap:20px;padding:clamp(20px,4vw,34px);display:grid}.rank-list{gap:10px;margin:0;padding:0;list-style:none;display:grid}.rank-row{background:#fff;border:1px solid #16201c1f;border-radius:8px;grid-template-columns:54px minmax(0,1fr) minmax(74px,auto);align-items:center;gap:12px;min-height:62px;padding:12px 14px;display:grid}.rank-row:first-child{color:#fff;background:#143f35;border-color:#143f35}.rank-row.current-player{border-color:#c69a2e;box-shadow:inset 0 0 0 2px #c69a2e38}.rank-number{color:inherit;font-size:1.15rem;font-weight:950}.rank-name{overflow-wrap:anywhere;min-width:0;font-weight:900}.rank-score{color:inherit;text-align:right;white-space:nowrap;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:1rem;font-weight:900}.result-actions.plain{border-top:1px solid #16201c1f;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:0;display:grid}.side-panel{background:#fffcf6d1;position:relative}.lobby-header{gap:14px;margin-bottom:24px;display:grid}.lobby-start-button{justify-self:start;min-width:160px}.player-ranking{gap:8px;margin:0;padding:0;list-style:none;display:grid}.lobby-player-list{gap:10px;margin:0;padding:0;list-style:none;display:grid}.lobby-player-list li{background:#fff;border:1px solid #16201c1f;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;min-height:62px;padding:12px 14px;display:flex}.lobby-player-list .current-player{background:#edf3ee;border-color:#143f3547;box-shadow:inset 0 0 0 1px #143f351f}.lobby-player-name{color:#17211d;overflow-wrap:anywhere;min-width:0;font-weight:900}.lobby-player-meta{flex-wrap:wrap;flex:none;justify-content:flex-end;align-items:center;gap:8px;display:flex}.player-ranking li{background:#fff;border:1px solid #16201c1f;border-radius:8px;grid-template-columns:56px minmax(0,1fr) minmax(88px,auto);align-items:center;gap:12px;min-height:64px;padding:12px 14px;display:grid}.player-ranking .current-player{background:#edf3ee;border-color:#143f3547;box-shadow:inset 0 0 0 1px #143f351f}.settings-form{overscroll-behavior:contain;scrollbar-gutter:stable;background:#fffcf6;border:1px solid #143f352e;border-radius:12px;gap:14px;max-height:calc(100dvh - 64px);margin:0;padding:22px;display:grid;overflow:auto;box-shadow:0 32px 80px #16201c2e,0 2px 8px #16201c14}.settings-modal-header{background:#fffcf6;border-bottom:1px solid #16201c1a;border-radius:11px 11px 0 0;justify-content:space-between;align-items:start;gap:12px;margin:-22px -22px 0;padding:22px 22px 12px;display:flex}.settings-close{border-radius:999px;flex:none;width:36px;min-width:36px;min-height:36px;padding:0;font-size:1.1rem;font-weight:700;line-height:1}.settings-panel{z-index:4;gap:12px;margin-bottom:18px;display:grid;position:relative;left:0}.settings-toggle{align-self:start;width:auto;min-width:160px}.settings-overlay{z-index:20;place-items:start center;padding:32px 20px;display:grid;position:fixed;inset:0;overflow:hidden}.settings-backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);box-shadow:none;background:#f6f3ecd1;border:0;border-radius:0;padding:0;position:absolute;inset:0}.settings-backdrop:hover{box-shadow:none;background:#f6f3ecdb;border:0;transform:none}.settings-overlay .settings-form{z-index:1;width:min(760px,100vw - 40px);position:relative}.settings-save{box-shadow:0 10px 24px #143f3529}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.check-row{background:#fffcf6;border:1px solid #16201c24;border-radius:8px;align-items:center;gap:10px;min-height:44px;padding:0 12px;display:flex}.check-row input{flex:none;width:auto;min-height:auto}.badge{color:#637069;background:#e7e4dd;border-radius:999px;flex:none;padding:6px 10px;font-size:.78rem;font-weight:900}.connected{color:#143f35;background:#dcefe5}.status-text{font-weight:900}.status-connected{color:#143f35}.status-error,.status-closed{color:#aa2b22}.player-id{color:#6f7c72;overflow-wrap:anywhere;border-top:1px solid #16201c1f;margin-top:20px;padding-top:16px;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.78rem;line-height:1.5}.error{color:#98231b;text-wrap:pretty;background:#fff5f2;border:1px solid #f0b6ad;border-radius:8px;margin-top:18px;padding:14px 16px;font-weight:800}.global-error{margin:0 0 18px}.join-error{max-width:440px;margin-left:auto;margin-right:auto}.error.inline{margin:0}@media (width<=760px){.profile-header{flex-direction:column;align-items:flex-start;gap:20px}.profile-header h1{word-break:keep-all;max-width:100%;font-size:2.8rem}.history-header{gap:12px;margin-bottom:12px;padding:0 0 12px}.history-header h1{font-size:2rem;line-height:1}.history-header .home-actions{gap:6px}.history-header-link{min-height:34px;padding:0 10px;font-size:.78rem}.profile-layout{grid-template-columns:1fr}.profile-layout>*,.profile-secondary>*,.provider-list>div>span{min-width:0}.provider-list>div{grid-template-columns:minmax(0,1fr) auto;display:grid}.provider-list button{padding-inline:12px}.profile-primary{border-radius:8px 8px 0 0}.profile-secondary>.workspace{border-left:1px solid #16201c21}.profile-secondary>.workspace:first-child{border-top:0;border-radius:0}.profile-secondary>.workspace:last-child{border-radius:0 0 8px 8px}.shell{padding:16px 12px 24px}.intro{align-items:stretch;gap:20px;padding-top:4px;display:grid}.room-topbar{grid-template-columns:1fr;place-items:center stretch;gap:4px;margin-bottom:10px;padding:1px 0 7px}.room-shell--play:not(.room-shell--result) .room-topbar{display:none}.room-shell--play{padding:12px}.room-meta{flex-wrap:wrap;justify-content:space-between;justify-self:stretch;align-items:flex-end;gap:8px 12px;display:flex}.room-code-heading{place-content:start;gap:0;min-width:0;display:grid}.room-code-heading span{font-size:.82rem}.room-code-heading strong{font-size:1.18rem}.room-genre-pill{color:#6f7c72;text-align:center;border-color:#143f3529;margin-left:auto;padding:4px 10px;font-size:.76rem;font-weight:800}.room-topbar .link-button{justify-self:start;width:auto;min-height:36px;padding:0 12px}.room-grid--sidebar-only{grid-template-columns:1fr;justify-content:stretch}.room-grid--sidebar-only>.side-panel:first-child:last-child{border:1px solid #16201c21;border-radius:8px;padding-top:14px}.room-grid--sidebar-only .lobby-header{gap:10px;margin-bottom:16px}.room-grid--sidebar-only .settings-panel{margin-bottom:12px}.room-grid--sidebar-only .lobby-player-list{gap:8px}.room-grid--sidebar-only .lobby-player-list li{padding:10px 12px}h1{font-size:clamp(2.4rem,12vw,3.4rem)}.grid,.room-grid{grid-template-columns:1fr}.play-layout{gap:10px}.grid>.workspace:first-child,.room-grid>.workspace:first-child{border-radius:8px 8px 0 0}.grid>.workspace:last-child,.room-grid>.workspace:last-child{border-top:0;border-left:1px solid #16201c21;border-radius:0 0 8px 8px}.workspace{padding:16px}.match-board:has(.question-box){min-height:auto}.mobile-player-strip{scroll-snap-type:x proximity;white-space:nowrap;gap:8px;margin-bottom:10px;padding-bottom:2px;display:flex;overflow:auto hidden}.player-chip{scroll-snap-align:start;background:#fff;border:1px solid #16201c1f;border-radius:8px;flex:0 0 128px;align-content:start;gap:4px;min-height:68px;padding:8px 10px;display:grid}.player-chip.current-player{background:#edf3ee;border-color:#143f3547;box-shadow:inset 0 0 0 1px #143f351a}.player-chip.answering-player{background:#dfeee7;border-color:#143f355c;box-shadow:inset 0 0 0 1px #143f3529}.player-chip-rank{color:#7a5c2b;font-size:.76rem;font-weight:900;line-height:1}.player-chip-name{color:#17211d;overflow-wrap:anywhere;font-size:.96rem;font-weight:900;line-height:1.25}.player-chip-score{color:#637069;font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.88rem;font-weight:900}.players li{flex-direction:column;align-items:stretch}.settings-grid,.room-rules{grid-template-columns:1fr}.room-list-header{display:none}.room-list li{grid-template-columns:1fr 1fr;align-items:stretch;gap:12px;min-height:0;padding:14px}.room-card-copy{grid-column:1/-1;gap:6px}.room-card-copy h3{font-size:.98rem;line-height:1.3}.history-card{grid-template-columns:1fr;gap:10px;padding:12px}.history-link-chip{justify-self:start;min-width:0;min-height:36px;padding:0 12px}.room-host,.room-player-count,.room-code{font-size:.8rem;line-height:1.25}.room-host:before{content:"ホスト ";color:#6f7c72;font-weight:800}.room-player-count:before{content:"プレイヤー ";color:#6f7c72;font-weight:800}.room-code{text-align:left;grid-column:1/-1;justify-self:start}.room-card-actions{grid-column:1/-1;justify-content:stretch}.room-card-actions>*{flex:1 1 0}.room-rules{min-width:100%;left:0;right:auto}button,.link-button,.join-room-link{width:100%}.choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.play-status,.answer-entry{grid-template-columns:1fr}.room-shell--play .play-status{margin-bottom:10px}.play-status-center h1{font-size:clamp(1.25rem,6vw,2rem)}.question-count{font-size:.94rem}.question-total{font-size:.82rem}.question-box{flex:auto;margin-top:8px}.question-box h2{margin-bottom:10px;font-size:clamp(1.25rem,5.8vw,1.75rem);line-height:1.32}.match-id-line,.room-shell--play .play-status p,.room-shell--play .play-status-center h1{display:none}.buzz-button{width:100%}.fixed-answer-actions{gap:8px;padding:8px 0 0}.room-shell--play .workspace{padding-top:12px;padding-bottom:12px}.room-shell--play .play-layout{gap:6px}.room-shell--play .play-status{gap:10px;margin-bottom:6px}.room-shell--play .question-box{flex:auto;min-height:0}.room-shell--play .question-result{gap:10px;margin-top:12px;padding:12px 14px}.room-shell--play .question-official-answer{font-size:clamp(1.2rem,5.6vw,1.55rem)}.room-shell--play .question-explanation{font-size:.94rem;line-height:1.55}.room-shell--play .answer-entry strong{font-size:.96rem}.room-shell--play .answer-entry label{display:none}.room-shell--play .answer-entry output{min-height:42px;padding-top:4px;padding-bottom:6px}.room-shell--play .choice-grid button{min-height:56px;padding:8px}.room-shell--play .buzz-button{min-width:0}.room-shell--play .fixed-answer-actions{margin-top:8px}.room-shell--play .answer-preview{margin-top:0}.room-shell--play .answer-preview output{min-height:26px;font-size:clamp(1rem,4.4vw,1.4rem)}.room-shell--play .match-board{height:calc(100dvh - 24px)}.room-shell--play .match-board:has(.result-board){align-content:start;justify-items:center;display:grid}.room-shell--play .play-layout{align-items:stretch}.room-shell--play .play-status{grid-template-columns:auto}.play-status-center{text-align:left;justify-items:start}.settings-panel{gap:8px}.settings-toggle{width:100%;min-height:40px}.settings-overlay{padding:12px}.settings-overlay .settings-form{width:min(100%,520px);max-height:calc(100dvh - 24px);padding:18px}.settings-modal-header{margin:-18px -18px 0;padding:18px 18px 12px}.play-layout .side-panel,.room-shell--play .player-ranking-section{display:none}.lobby-player-list li{flex-direction:column;align-items:flex-start}.lobby-player-meta{justify-content:flex-start}.player-id,.room-shell--play .question-genre,.room-shell--play .question-id{display:none}.room-shell--play .question-box h2{margin-bottom:8px}.room-shell--play .question-box{margin-top:4px}.room-shell--play .result-board{gap:14px;width:100%;max-width:332px;margin-inline:auto;padding:18px 16px}.room-shell--play .rank-list{gap:8px}.rank-row{grid-template-columns:42px minmax(0,1fr)}.room-shell--play .rank-row{gap:10px;min-height:56px;padding:10px 12px}.rank-score{text-align:left;grid-column:2}.result-actions.plain{grid-template-columns:1fr}.room-shell--play .result-actions.plain{gap:10px;margin-top:16px;padding-top:14px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:1ms!important;animation-duration:1ms!important}}@keyframes page-enter{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{0%,to{opacity:.45;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}
