/* The TV keeps its header and two independently scrolling columns on screen. */
body.screen-evening{display:flex;flex-direction:column;height:100dvh;min-height:0;overflow:hidden}
.screen-evening .topbar{flex:none;height:152px;padding:12px 28px;gap:28px;border-bottom:1px solid #493456;background:#160c28;z-index:10}
.screen-evening .brand{font-size:24px;white-space:nowrap}.screen-evening .brand img{width:52px;height:52px}
.screen-header-join{display:flex;align-items:center;gap:22px;margin-left:auto}.screen-join-instructions{text-align:right}.screen-join-instructions>span{font-size:17px;color:#d8cce5}
.screen-header-code{display:block;font-size:42px;line-height:1.25;letter-spacing:.16em;color:var(--lime);font-weight:900;font-variant-numeric:tabular-nums}
#screen-header-qr{background:#fff;padding:8px;border-radius:10px;flex:none;width:128px;height:128px}#screen-header-qr img,#screen-header-qr canvas{display:block;width:112px;height:112px}
.screen-evening #menuButton{flex:none}.screen-evening main{width:100%;max-width:none;flex:1;min-height:0;height:auto;padding:20px 28px;overflow:hidden}
.screen-home #screen-frame{height:100%;width:100%!important;transform:none!important}
.screen-home-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,3fr);gap:24px;height:100%;min-height:0;text-align:left}
.screen-people,.screen-catalogue{min-width:0;min-height:0;display:flex;flex-direction:column}
.screen-people{border:1px solid #4f3a5e;border-radius:20px;background:#21132f;overflow:hidden}
.screen-section-title{display:flex;justify-content:space-between;align-items:center;padding:20px 18px 16px;gap:12px;flex:none}
.screen-section-title h2{font-size:22px;margin:0}.screen-section-title>span{border-radius:20px;background:#3b2850;color:var(--cyan);font-weight:800;padding:2px 10px;font-size:18px}
.screen-people-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 12px;scrollbar-width:thin;scrollbar-color:#77558f transparent}
.screen-person{display:flex;align-items:center;gap:12px;padding:13px 6px;border-top:1px solid #3b284b;min-width:0}.screen-person>div{min-width:0}.screen-person strong{display:block;font-size:20px;line-height:1.25;overflow-wrap:anywhere}.screen-person small{display:block;font-size:13px;color:var(--muted);margin-top:5px}.screen-person .avatar{display:block;width:42px;height:42px;flex:0 0 42px}.screen-person .avatar-art,.screen-person .player-avatar{width:42px;height:42px}.screen-person .dot{display:inline-block;margin-right:5px}
.screen-people-footer{flex:none;margin:0;padding:14px 18px;font-size:13px;color:var(--muted);border-top:1px solid #3b284b}
.screen-catalogue-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;flex:none;margin-bottom:18px}.screen-catalogue-heading .eyebrow{margin:0 0 8px;font-size:12px}.screen-catalogue-heading h1{font-size:40px;margin:0;line-height:1.1}.screen-catalogue-heading>p{font-size:16px;color:var(--muted);max-width:40%;overflow-wrap:anywhere;margin:0}
.screen-game-grid{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(190px,1fr);align-content:start;gap:14px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:3px 5px 3px 3px;scrollbar-width:thin;scrollbar-color:#77558f transparent}
.screen-game-card{min-width:0;padding:22px;border:1px solid #64477a;border-radius:20px;background:linear-gradient(145deg,#342046,#251633);display:flex;flex-direction:column}.screen-game-card.selected{border:2px solid var(--lime);background:linear-gradient(145deg,#3d3940,#2a2635);padding:21px;box-shadow:0 0 0 1px #c4ff0030}.screen-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}.screen-game-icon{font-size:32px;line-height:1}.screen-selected-label{background:var(--lime);color:var(--ink);padding:3px 8px;font-size:12px;font-weight:900;border-radius:20px}.screen-game-card h2{font-size:24px;margin:0 0 8px;line-height:1.12;overflow-wrap:anywhere}.screen-game-card p{color:#c9bcd6;font-size:15px;line-height:1.4;margin:0}.screen-catalogue-footer{flex:none;margin:14px 0 0;font-size:14px;color:var(--muted)}.screen-empty{grid-column:1/-1;color:var(--muted)}
#host-overview{margin-left:auto;padding:10px 16px;white-space:nowrap}
@media(max-height:780px){.screen-evening .topbar{height:132px;padding-top:8px;padding-bottom:8px}#screen-header-qr{width:112px;height:112px}#screen-header-qr img,#screen-header-qr canvas{width:96px;height:96px}.screen-catalogue-heading h1{font-size:34px}.screen-game-grid{grid-auto-rows:minmax(168px,1fr)}.screen-game-card{padding:17px}.screen-game-card.selected{padding:16px}.screen-game-card h2{font-size:22px}.screen-card-top{margin-bottom:10px}}
@media(max-width:1000px){.screen-evening .topbar{gap:16px;padding-left:18px;padding-right:18px}.screen-evening .brand{font-size:19px}.screen-evening main{padding:16px 18px}.screen-home-layout{gap:16px}.screen-game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.screen-section-title{padding:16px 12px}.screen-section-title h2{font-size:18px}.screen-person{gap:8px}.screen-person strong{font-size:17px}.screen-header-code{font-size:34px}}

@media(max-width:600px){.topbar:has(#host-overview){padding:10px 12px;gap:8px}.topbar:has(#host-overview) .brand{font-size:14px;letter-spacing:0}.topbar:has(#host-overview) .brand img{width:32px;height:32px;margin-right:6px}#host-overview{font-size:14px;padding:8px 12px}.topbar:has(#host-overview) .icon{padding:8px 12px;font-size:20px}}

.screen #menuButton,.screen #menu,.screen #app button,.screen #connection{display:none!important}
.screen .topbar .brand{cursor:default}.screen a{color:inherit;text-decoration:none;cursor:default}
.host-home{max-width:540px;margin:0 auto}.host-home h1{font-size:clamp(32px,7vw,46px)}
.host-home-actions{display:grid;gap:14px;margin:28px 0}.host-home-choice{display:grid;grid-template-columns:36px 1fr;gap:0 14px;align-items:center;text-align:left;min-height:84px;padding:18px 20px;border-radius:20px}.host-home-choice>span{font-size:27px;grid-row:1/3;text-align:center}.host-home-choice strong{font-size:20px}.host-home-choice small{font-size:14px;font-weight:400;color:var(--muted)}.host-home-choice.end-evening{border-color:#9d5873;color:#ffb7ce;background:#321b30}.evening-ended>h1{font-size:36px}

.host-home-choice.active{border:2px solid var(--lime);background:#343b22;color:white}.host-home-choice.active small{color:var(--lime)}.game-setup h1{font-size:32px}.game-setup .panel{padding:20px}.game-setup .panel h2{font-size:22px;margin:0}.game-setup .host-home-actions{margin:18px 0 0;gap:10px}.game-setup .participation.selected{outline:2px solid var(--lime);outline-offset:2px}.start-evening-game{display:block;width:100%;margin:20px 0;font-size:20px;min-height:64px}

.simple-setup .setup-intro{font-size:17px;color:var(--muted);line-height:1.45;margin:12px 0 26px}.setup-participation h2{font-size:20px;margin:0 0 12px}.simple-setup .host-home-actions{grid-template-columns:repeat(2,minmax(0,1fr));margin:0;gap:10px}.simple-setup .participation{min-height:66px;font-size:16px;padding:12px 8px}.simple-setup .start-evening-game{margin:24px 0 10px}.setup-status{font-size:14px;color:var(--muted);margin:8px 0}.simple-setup .setup-extra{margin-top:28px;padding:16px 20px}.setup-extra summary{cursor:pointer;font-size:16px;color:var(--muted)}.setup-extra[open] summary{margin-bottom:20px}.setup-extra>button{font-size:15px}.simple-setup h1{font-size:30px}

.cast-quiz-option{padding:18px 24px;border-radius:16px;font-weight:800;font-size:clamp(22px,2.2vw,36px)}.screen .quiz-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.round-next{margin:0 0 24px}.round-next button{width:100%}

.evening-share{max-width:680px}.evening-share h2{margin:8px 0}.evening-share .actions button{flex:1}.evening-share [aria-pressed=true]{outline:3px solid var(--cyan);outline-offset:3px}#evening-share-preview{margin-top:24px}#evening-share-image{display:block;width:100%;max-width:360px;border-radius:16px;margin:0 auto}#evening-share-caption{color:var(--muted);font-size:16px}#evening-share-download{display:inline-block;padding:14px 6px;text-underline-offset:4px}

.home-confessions{max-width:900px;margin:auto}.home-confessions h1{font-size:clamp(30px,4vw,60px);line-height:1.12}.confessions-summary{border:1px solid var(--cyan);background:#2b1940;border-radius:24px;padding:24px;margin:24px 0;font-size:clamp(25px,3.5vw,48px);font-weight:800;line-height:1.25;color:var(--lime)}.confessions-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}.confessions-choices button{min-height:64px}.confession-veto{border-color:var(--pink);color:#ffd1e3}.confessions-host-skip{margin-top:32px}.confessions-host-skip button{font-size:14px}.confessions-names{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}.confessions-names span{padding:12px 20px;border-radius:30px;background:var(--lime);color:var(--ink);font-size:24px;font-weight:800}.screen .home-confessions{max-width:1200px;text-align:center}.screen .confessions-names{justify-content:center}
.confessions-veto-scene{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:32px}.confessions-veto-scene img{width:100%;max-height:48vh;object-fit:contain;border-radius:32px}.confessions-veto-scene h1{font-size:clamp(32px,4vw,64px)}.screen .confessions-veto-scene{text-align:left}.screen .confessions-veto-scene img{max-height:52vh}@media(max-width:650px){.confessions-veto-scene{grid-template-columns:1fr;gap:12px;text-align:center}.confessions-veto-scene img{width:220px;max-height:28vh;margin:auto}.confessions-veto-scene h1{margin:10px 0;font-size:34px}.confessions-veto-scene .lead{font-size:17px}}@media(prefers-reduced-motion:no-preference){.confessions-veto-scene img{animation:veto-appear .65s ease-out both}@keyframes veto-appear{from{opacity:0;transform:translateY(18px) scale(.9)}to{opacity:1;transform:none}}}
.confessions-reveal-intro{display:grid;grid-template-columns:210px minmax(0,1fr);gap:26px;align-items:center;text-align:left}.confessions-reveal-intro img{width:100%;border-radius:30px}.confessions-reveal-intro h1{font-size:clamp(28px,3.5vw,52px)}.confessions-reveal-intro .lead{font-size:clamp(18px,2vw,25px)}.confessions-reveal-names{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin:26px 0}.confession-reveal-name{display:flex;align-items:center;gap:14px;border:1px solid #c4ff0070;background:linear-gradient(125deg,#435b22,#272236);padding:16px 26px;border-radius:22px;max-width:100%;font-size:clamp(23px,2.8vw,38px);box-shadow:0 8px 26px #0003}.confession-reveal-name strong{overflow-wrap:anywhere}.confession-reveal-name>span{color:var(--lime)}.screen .confessions-reveal-intro{grid-template-columns:180px minmax(0,1fr);max-width:1000px;margin:auto}.screen .confession-reveal-name{font-size:clamp(22px,2.5vw,34px);padding:12px 22px}@media(max-width:650px){.confessions-reveal-intro{grid-template-columns:1fr;gap:8px;text-align:center}.confessions-reveal-intro img{width:160px;margin:auto}.confessions-reveal-intro h1{margin:10px 0}.confessions-reveal-names{gap:10px;margin:20px 0}.confession-reveal-name{padding:12px 18px;font-size:24px}}@media(prefers-reduced-motion:no-preference){.confession-reveal-name{animation:confession-name-enter .6s cubic-bezier(.2,.8,.2,1.2) both;animation-delay:var(--reveal-delay)}@keyframes confession-name-enter{from{opacity:0;transform:translateY(24px) scale(.75);filter:blur(6px)}to{opacity:1;transform:none;filter:none}}}

.host-remote{width:100%;max-width:410px;margin:40px auto 12px;padding:24px;border:1px solid #6c567e;border-radius:36px;background:linear-gradient(145deg,#352442,#1a1026 65%);box-shadow:inset 0 2px 2px #ffffff15,0 14px 32px #0004}.remote-head{display:flex;align-items:center;gap:9px;margin:0 0 24px;font-size:13px;letter-spacing:.08em}.remote-head strong span{color:var(--muted);font-weight:500}.remote-head small{margin-left:auto;font-size:10px;letter-spacing:0;color:var(--muted)}.remote-light{width:7px;height:7px;border-radius:50%;background:var(--cyan);box-shadow:0 0 9px #39d9dc66}.remote-light.paused{background:#ffce65;box-shadow:0 0 9px #ffce6566}.remote-main{display:grid;grid-template-columns:1fr 1fr;gap:14px}.remote-key{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:76px;padding:12px 6px;border:1px solid #69507f;border-radius:18px;background:linear-gradient(#493356,#302039);color:#fff;font-size:13px;font-weight:700;box-shadow:0 4px 0 #100b17,inset 0 1px 0 #ffffff12}.remote-key:active{transform:translateY(2px);box-shadow:0 2px 0 #100b17}.remote-key:disabled{transform:none}.remote-icon{font-size:24px;line-height:1.2}.remote-main .remote-key{min-height:91px;font-size:15px}.remote-main .remote-pause{background:linear-gradient(#dcff5a,#b7eb00);color:#172007;border-color:#d6ff48}.remote-caption{font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);margin:26px 0 12px}.remote-scenes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.remote-scenes:has(button:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}.remote-key[aria-pressed=true]{border-color:var(--cyan);background:linear-gradient(#285358,#193039);box-shadow:0 4px 0 #100b17,inset 0 0 0 1px #39d9dc55}.remote-tables{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.remote-tables .remote-key{min-height:46px;font-size:18px;border-radius:12px}.remote-grip{height:16px;width:72px;margin:28px auto 0;background:repeating-linear-gradient(to bottom,#0000 0 3px,#ffffff0d 3px 4px);border-radius:5px}

.music-presets{display:grid;gap:10px}.music-presets h2,.music-presets p{margin:0 0 6px}.music-preset{display:flex;align-items:center;gap:14px;text-align:left;width:100%;padding:15px 18px}.music-preset>span:first-child{opacity:.65;font-size:18px}.music-preset>span:nth-child(2){flex:1}.music-preset strong,.music-preset small{display:block}.music-preset small{font-size:14px;margin-top:4px;font-weight:400}.spotify-open{display:flex;align-items:center;justify-content:center;min-height:56px;padding:14px 20px;background:#1ed760;color:#082d15;border-radius:18px;font-weight:800;text-decoration:none}.spotify-open:focus-visible{outline:3px solid #fff;outline-offset:4px}
/* Game artwork stays inside the existing scrolling catalogue. */
.evening-games .game{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:16px;padding:10px;background:#2b1a3a;color:#fff;border:1px solid #614776;border-radius:18px;overflow:hidden}
.evening-games .game-art{display:block;width:88px;height:88px;object-fit:cover;border-radius:12px}
.evening-games .game-copy strong{display:block;font-size:18px;line-height:1.2}.evening-games .game-copy>span{font-size:14px;line-height:1.4;color:var(--muted);margin-top:7px}.evening-games .game.selected{border-color:var(--cyan)}
.screen-game-grid{grid-auto-rows:max-content}
.screen-game-card,.screen-game-card.selected{position:relative;padding:0 0 18px;overflow:hidden;border-width:2px}
.screen-game-card .game-art{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:center 48%;background:#190d29}
.screen-game-card h2{margin:16px 18px 8px}.screen-game-card p{margin:0 18px}.screen-card-top{position:absolute;top:12px;right:12px;margin:0}.screen-selected-label{box-shadow:0 2px 12px #0008}
@media(max-height:780px){.screen-game-grid{grid-auto-rows:max-content}.screen-game-card,.screen-game-card.selected{padding:0 0 14px}.screen-game-card .game-art{aspect-ratio:2/1}.screen-game-card h2{margin:12px 14px 6px}.screen-game-card p{margin:0 14px}}
@media(max-width:380px){.evening-games .game{grid-template-columns:72px minmax(0,1fr);gap:12px}.evening-games .game-art{width:72px;height:80px}.evening-games .game-copy strong{font-size:16px}}
.music-preset-list{display:grid;gap:10px;max-height:300px;overflow-y:auto;padding:4px;scrollbar-width:thin;overscroll-behavior:contain}
.music-set-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.music-set-options button{font-size:14px;padding:12px 8px}.music-set-options [aria-pressed=true]{border-color:var(--cyan);background:#24434b;color:#fff}

.music-set-options button:last-child:nth-child(odd){grid-column:1/-1}
.music-preset-list{grid-auto-rows:max-content}.music-preset>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
