@font-face{font-family:Lilita;src:url('lilita-one.ttf') format('truetype');font-display:swap}
:root{color-scheme:light;--ink:#12383d;--teal:#247568;--paper:#fff7e6;--muted:#4c6869;--line:#c6d9cc;--orange:#ec754f;--gold:#ffd45c;--white:#fffdf5;--radius:20px;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}html{height:100%}body{margin:0;height:100vh;height:100dvh;display:flex;flex-direction:column;background:radial-gradient(ellipse at top right,#ffe3aa70,transparent 65%)}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:inherit}button:focus,a:focus,select:focus,input:focus{outline:3px solid var(--orange);outline-offset:3px}button:focus:not(:focus-visible),a:focus:not(:focus-visible),input:focus:not(:focus-visible),select:focus:not(:focus-visible){outline:none}[hidden]{display:none!important}
h1,h2,h3,p{margin:0}h1,h2{font-family:Lilita,Arial,sans-serif;font-weight:400;line-height:1.04;letter-spacing:0}h1{font-size:56px}h2{font-size:40px}h3{font-size:24px}p{line-height:1.35}.eyebrow{font-size:15px;font-weight:800;letter-spacing:2px;color:var(--teal)}.tiny{font-size:15px;color:var(--muted);line-height:1.3}.lede{font-size:24px;color:var(--muted)}
.topbar{flex:none;width:100%;height:66px;padding:10px 3vw;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:2px solid #12383d12}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:15px;letter-spacing:1px;font-weight:800}.brand-mark{position:relative;font:32px Lilita,Arial;background:var(--ink);color:var(--paper);padding:3px 10px;border-radius:12px;transform:rotate(-5deg)}.brand-mark span{position:absolute;right:-7px;top:-7px;font-size:20px;color:var(--orange)}.brand-sub{display:block;font-size:9px;margin-top:3px;letter-spacing:1px}.top-right{display:flex;align-items:center;gap:20px}.game-label{font-size:16px;letter-spacing:3px;font-weight:bold}#connection{font-size:15px;color:var(--muted)}.icon-button{border:1px solid var(--line);background:var(--white);border-radius:10px;padding:5px 10px;font-size:25px}
main{flex:1;min-height:0;width:100%;max-width:1900px;margin:auto;padding:20px 3vw;display:flex;flex-direction:column;gap:12px}.btn{border:2px solid var(--ink);border-radius:14px;padding:13px 22px;min-height:54px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:23px;font-weight:800;text-decoration:none;background:var(--gold);color:var(--ink);box-shadow:0 4px 0 var(--ink)}.btn.secondary{background:var(--white)}.btn.light{background:var(--gold)}.btn:not(:disabled):hover{background:#ffe495;transform:translateY(-1px)}.text-button{border:0;background:transparent;color:var(--teal);text-decoration:underline;padding:6px 8px;font-size:17px;min-height:34px}.helper{font-size:17px;line-height:1.3;color:var(--muted)}
/* The welcome and join views each occupy one screen. */
.home{flex:1;min-height:0;display:grid;grid-template-columns:1.15fr 1fr;gap:5vw;align-items:center}.hero-copy{display:flex;flex-direction:column;gap:18px}.hero-copy h1{font-size:76px;font-size:clamp(52px,5.7vw,104px)}.hero-copy h1 em{font-style:normal;color:var(--teal)}.hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px;max-width:650px}.join-button{grid-column:1/-1;background:#e5eddb}.home-instruction{font-size:20px;line-height:1.35;color:var(--muted)}.fact-row{display:flex;gap:30px;font-size:17px}.fact-row strong{font-family:Lilita,Arial;font-size:29px;display:block;font-weight:400}.showcase{position:relative;background:var(--teal);color:var(--white);border:3px solid var(--ink);box-shadow:9px 9px 0 #c8ddc2;border-radius:32px;padding:32px;transform:rotate(2deg)}.showcase .eyebrow{color:var(--gold)}.showcase h2{font-size:66px;margin:18px 0 12px}.poster-star{color:var(--gold);display:inline-block;font:50px Arial;margin-left:18px;vertical-align:top;transform:rotate(-10deg)}.showcase p{font-size:23px}.preview-options{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:28px 0}.preview-option{display:flex;align-items:center;gap:12px;padding:18px 12px;border-radius:13px;background:var(--white);color:var(--ink);font-size:20px;font-weight:700;box-shadow:0 4px 0 #12383d55}.preview-option b{font:35px Lilita,Arial}.preview-option:nth-child(2){background:var(--gold);transform:rotate(-4deg)}.preview-option:nth-child(3){background:#a5c8ac}.preview-option:nth-child(4){background:#79ab96}.poster-note{font-size:20px;font-weight:bold}.join-screen{width:100%;max-width:850px;margin:auto;display:flex;flex-direction:column;gap:20px;text-align:center}.join-screen h1{font-size:70px}.join-form{display:grid;grid-template-columns:1fr 1fr;gap:22px;text-align:left}.join-form .btn{width:100%}label{display:block;font-size:17px;font-weight:800;letter-spacing:1px;margin-bottom:8px}input,select{width:100%;min-height:54px;border:2px solid #98b7aa;border-radius:12px;background:var(--white);color:var(--ink);padding:10px 13px;font-size:22px}.join-form input[name=code]{text-transform:uppercase;letter-spacing:4px}
/* Lobby: every player is present, with readiness controls pinned beneath. */
.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none}.section-head h2{margin-top:5px}.pill{background:var(--gold);border:2px solid var(--ink);border-radius:12px;padding:10px 15px;font-size:22px;font-weight:800;letter-spacing:2px}.room-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 30%;gap:22px}.panel{background:var(--white);border:2px solid var(--line);border-radius:20px;padding:20px}.lobby-players{display:flex;flex-direction:column;gap:12px;min-height:0}.settings{display:grid;grid-template-columns:1fr 1fr;gap:16px;flex:none}.side-heading{font-size:17px;letter-spacing:1px;font-weight:800}.player-list{list-style:none;padding:0;margin:0;min-height:0}.player-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:8px 0;min-width:0}.avatar{flex:none;width:32px;height:32px;display:flex;justify-content:center;align-items:center;background:#e4efdc;border-radius:9px;font-size:19px;font-weight:bold}.player-name{flex:1;min-width:0;overflow-wrap:anywhere;font-size:21px;font-weight:700}.player-name small{font-size:.65em}.player-detail{display:block;color:var(--muted);font-size:13px;font-weight:400;margin-top:2px}.player-status{font-size:15px;flex:none;color:var(--teal)}.score{font-size:25px;font-weight:800;font-variant-numeric:tabular-nums}.empty{padding:15px 0;color:var(--muted);font-size:22px}#players{flex:1;display:grid;grid-template-columns:1fr 1fr;grid-auto-flow:row;grid-auto-rows:minmax(0,1fr);gap:0 20px;align-content:start}#players .empty{grid-column:1/-1}#players .player-detail{display:none}.lobby-actions{display:flex;gap:12px;flex:none}.lobby-actions .btn{flex:1}.lobby-players .helper{flex:none}.lobby-invite{min-height:0;display:flex}.join-panel{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:var(--ink);color:var(--white);text-align:center}.join-panel .eyebrow{color:var(--gold)}.room-code{font-family:Lilita,Arial;font-size:50px;letter-spacing:5px;color:var(--gold)}.qr{display:block;width:170px;height:170px;border:8px solid white;border-radius:14px;max-width:100%;object-fit:contain}.join-link{font-size:17px;overflow-wrap:anywhere}.join-panel p{font-size:16px}.join-panel .btn{font-size:20px}.large-room #players .player-name{font-size:17px}.large-room #players .avatar{width:25px;height:25px;font-size:15px}.large-room #players .player-status{font-size:13px}.large-room #players .player-row{padding:3px 0}
/* Question board and live ranking share the available height. */
.game-main{display:flex;flex-direction:column;gap:12px;min-height:0;min-width:0}.round-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none}.round-meta{font-size:19px;font-weight:800}.round-number{font-size:15px;margin-top:5px}.live-stats{display:flex;align-items:center;gap:20px}.points-value{display:block;font:34px Lilita,Arial;font-variant-numeric:tabular-nums}.stat-label{font-size:13px;font-weight:700;text-transform:uppercase}.timer{display:flex;align-items:center;justify-content:center;min-width:62px;height:62px;border:4px solid var(--teal);border-radius:50%;font:32px Lilita,Arial;background:var(--gold)}.timer.urgent{border-color:#a84324;background:#ffd6b7}.time-track{height:6px;flex:none;background:#d8e5d1;border-radius:10px;overflow:hidden}.time-fill{height:100%;background:var(--teal);transform-origin:left;transition:transform .15s linear}.question{font-size:42px;flex:none;line-height:1.1}.options{flex:1;min-height:0;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:14px}.answer{display:flex;align-items:center;text-align:left;gap:14px;border:3px solid var(--ink);background:var(--white);color:var(--ink);border-radius:18px;padding:16px;font-size:27px;line-height:1.15;font-weight:800;overflow-wrap:anywhere;min-height:0;min-width:0;transition:opacity 1.5s ease,background .18s;box-shadow:0 4px 0 #12383d20}.answer .letter{font:32px Lilita,Arial;flex:none;width:46px;height:46px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:var(--gold)}.answer:nth-child(2) .letter{background:#bce0be}.answer:nth-child(3) .letter{background:#f9ba9c}.answer:nth-child(4) .letter{background:#bdcee9}.answer:disabled{opacity:1}.answer.selected{background:#c9e6c0;border-color:var(--teal);box-shadow:0 0 0 2px var(--teal)}.answer.removed{opacity:0;pointer-events:none}.answer.final-fade{opacity:0}.answer.correct{background:#c9e6c0}.selection-status{font-size:17px;color:var(--teal);font-weight:bold;line-height:1.3;min-height:22px;flex:none}.room-layout>aside{min-height:0}.room-layout>aside:not(.lobby-invite){display:flex;flex-direction:column;gap:12px}.leaderboard{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px}.leaderboard .player-list{flex:1;display:grid;grid-auto-rows:minmax(0,1fr)}.leaderboard .player-row{padding:3px 0}.leaderboard .player-detail{display:none}.leaderboard .player-name{font-size:18px}.leaderboard .avatar{font-size:15px;width:25px;height:25px}.leaderboard .score{font-size:21px}.large-room .leaderboard .player-row{gap:6px}.large-room .leaderboard .player-name{font-size:14px}.large-room .leaderboard .avatar{font-size:12px;width:19px;height:19px}.large-room .leaderboard .score{font-size:16px}.board-code{flex:none;text-align:center;font-size:14px;color:var(--muted)}.board-code strong{display:block;letter-spacing:3px;font:32px Lilita,Arial;color:var(--ink)}.board-qr{display:block;width:84px;height:84px;border:4px solid white;border-radius:8px;margin:6px auto}.offline-banner{background:#ffe2bc;border:1px solid var(--orange);padding:9px;font-size:16px;border-radius:10px}
/* Learning is a single page, including the reference and Continue button. */
body.learning .topbar{display:none}.learning-screen{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:20px;text-align:center;width:100%;max-width:1400px;margin:auto}.learning-answer{font:60px Lilita,Arial;color:var(--teal);line-height:1.1;animation:answer-rise .85s .25s both}.learning-letter{color:var(--ink)}.learning-detail{display:flex;flex-direction:column;align-items:center;gap:18px;animation:fact-appear .5s 1.1s both}.learning-fact{font-size:32px;line-height:1.35;max-width:1250px}.scripture{font-size:23px;font-weight:800;color:var(--teal)}.learning-countdown{display:flex;justify-content:center;align-items:center;gap:14px;font-size:20px}.learning-countdown>span:first-child{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--gold);font:28px Lilita,Arial}.learning-detail .btn{min-width:240px}.learning-detail .helper{font-size:20px}.skip-animation .learning-answer,.skip-animation .learning-detail{animation:none}@keyframes answer-rise{from{transform:translate(var(--answer-start-x,0px),var(--answer-start-y,0px)) scale(var(--answer-start-scale,1))}to{transform:translate(0,0) scale(1)}}@keyframes fact-appear{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
/* Dense results retain all players, all round scores, and visible actions. */
.results{flex:1;min-height:0;display:flex;flex-direction:column;align-items:stretch;gap:14px;text-align:center;width:100%;margin:auto}.results-heading{flex:none}.results-heading h1{font-size:58px;margin:6px 0;color:var(--teal)}.results-heading p{font-size:21px;color:var(--muted)}.scoreboard{flex:1;min-height:0;display:flex;align-items:stretch;gap:22px}.score-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0 5px;flex:1;min-width:0;font-size:25px;font-variant-numeric:tabular-nums}.score-table th,.score-table td{text-align:right;padding:7px 12px;background:var(--white);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.score-table thead th{font-size:16px;color:var(--muted);border:0;background:transparent;letter-spacing:.5px;height:25px;padding:0 12px}.score-table th:first-child,.score-table td:first-child{width:8%;text-align:center;border-radius:12px 0 0 12px}.score-table th:nth-child(2){text-align:left;width:36%;overflow-wrap:anywhere}.score-table th:last-child{width:17%}.score-table td:last-child{border-radius:0 12px 12px 0}.score-table abbr{text-decoration:none}.final-name{font-size:26px}.final-total{font-weight:900;font-size:29px}.first-place>*{background:var(--ink)!important;color:var(--white);border-color:var(--ink)!important}.first-place .final-name{font-size:32px}.first-place .final-total{font-size:35px;color:var(--gold)}.first-place .final-rank{color:var(--gold)}.large-room .score-table{font-size:19px}.large-room .score-table th,.large-room .score-table td{padding:5px 8px}.large-room .score-table thead th{font-size:14px}.large-room .final-name{font-size:20px}.large-room .final-total{font-size:23px}.large-room .first-place .final-name{font-size:24px}.large-room .first-place .final-total{font-size:27px}.results-actions{display:flex;justify-content:center;gap:16px;flex:none}.results .tiny{flex:none;font-size:15px}.break-countdown{font-size:24px;flex:none}.break-countdown strong{font:35px Lilita,Arial;color:var(--teal)}[data-screen=countdown] .results{justify-content:center;gap:20px}[data-screen=countdown] h1{font-size:84px}[data-screen=countdown] p{font-size:28px}.ready-clock{font:120px Lilita,Arial;color:var(--teal)}
.toast{position:fixed;bottom:18px;left:5%;right:5%;max-width:760px;margin:auto;background:var(--ink);color:white;padding:16px 24px;border-radius:14px;z-index:50;font-size:18px;visibility:hidden}.toast.visible{visibility:visible}.connect-notice{position:fixed;bottom:24px;left:5%;right:5%;max-width:850px;margin:auto;background:var(--white);border:3px solid var(--teal);box-shadow:0 8px 36px #0003;border-radius:16px;padding:20px 24px;z-index:40;display:flex;align-items:center;gap:20px}.connect-notice p{flex:1;font-size:22px}.connect-notice .btn{flex:none}
@media(min-width:1700px) and (min-height:1000px){.topbar{height:84px}.brand{font-size:22px}.brand-mark{font-size:42px}.brand-sub{font-size:12px}#connection,.game-label{font-size:21px}main{padding:28px 3vw;gap:18px}.eyebrow{font-size:21px}.hero-copy{gap:26px}.lede{font-size:32px}.home-instruction{font-size:26px}.btn{font-size:30px;min-height:72px;padding:16px 28px}.text-button{font-size:23px}.fact-row{font-size:23px;gap:45px}.fact-row strong{font-size:38px}.showcase{padding:42px}.showcase h2{font-size:88px}.showcase p,.poster-note{font-size:30px}.preview-option{font-size:26px;padding:25px 18px}.preview-option b{font-size:44px}.section-head h2{font-size:58px}.pill{font-size:30px}.settings label,.side-heading{font-size:22px}input,select{font-size:28px;min-height:66px}.player-name{font-size:28px}.player-status{font-size:22px}.large-room #players .player-name{font-size:24px}.large-room #players .player-status{font-size:19px}.helper{font-size:24px}.room-code{font-size:70px}.qr{width:230px;height:230px}.join-link{font-size:23px}.join-panel p{font-size:22px}.join-panel .btn{font-size:27px}.round-meta{font-size:26px}.round-number{font-size:21px}.question{font-size:58px}.answer{font-size:36px;padding:25px}.answer .letter{font-size:42px;width:58px;height:58px}.selection-status{font-size:24px}.timer{height:80px;min-width:80px;font-size:42px}.points-value{font-size:44px}.stat-label{font-size:18px}.leaderboard .player-name{font-size:25px}.leaderboard .score{font-size:28px}.large-room .leaderboard .player-name{font-size:21px}.large-room .leaderboard .score{font-size:23px}.board-code{font-size:20px}.board-code strong{font-size:44px}.board-qr{width:120px;height:120px}.learning-answer{font-size:82px}.learning-fact{font-size:42px}.learning-detail{gap:26px}.scripture{font-size:30px}.learning-countdown,.learning-detail .helper{font-size:27px}.results-heading h1{font-size:78px}.results-heading p{font-size:28px}.score-table{font-size:32px}.score-table thead th{font-size:23px}.final-name{font-size:34px}.final-total{font-size:38px}.first-place .final-name{font-size:42px}.first-place .final-total{font-size:46px}.large-room .score-table{font-size:26px}.large-room .score-table thead th{font-size:20px}.large-room .final-name{font-size:27px}.large-room .final-total{font-size:30px}.large-room .first-place .final-name{font-size:32px}.large-room .first-place .final-total{font-size:35px}.results .tiny{font-size:21px}}
@media(max-height:750px) and (min-width:701px){.topbar{height:54px;padding-top:6px;padding-bottom:6px}main{padding-top:14px;padding-bottom:12px;gap:9px}.hero-copy{gap:13px}.hero-copy h1{font-size:62px}.lede{font-size:22px}.btn{min-height:48px;padding:9px 18px;font-size:22px}.home-instruction{font-size:18px}.showcase{padding:25px}.showcase h2{font-size:56px}.preview-options{margin:20px 0}.preview-option{font-size:18px;padding:14px 10px}.section-head h2{font-size:34px}.section-head .eyebrow{font-size:12px}.lobby-players{padding:14px;gap:8px}.settings label{font-size:13px;margin-bottom:4px}input,select{font-size:19px;min-height:44px;padding:7px 10px}.side-heading{font-size:14px}.helper{font-size:15px}.join-panel{gap:8px;padding:15px}.room-code{font-size:42px}.qr{width:140px;height:140px}.join-link,.join-panel p{font-size:14px}.large-room #players .player-name{font-size:16px}.round-meta{font-size:16px}.round-number{font-size:13px}.question{font-size:34px}.answer{font-size:23px;padding:12px}.game-main{gap:9px}.selection-status{font-size:15px}.leaderboard{padding:12px}.results-heading h1{font-size:45px}.results-heading p{font-size:18px}.results{gap:9px}.score-table{font-size:22px;border-spacing:0 4px}.score-table th,.score-table td{padding:4px 10px}.final-name{font-size:23px}.final-total{font-size:26px}.first-place .final-name{font-size:28px}.first-place .final-total{font-size:30px}.large-room .score-table{font-size:17px}.large-room .final-name{font-size:18px}.large-room .first-place .final-name{font-size:21px}.large-room .final-total{font-size:21px}.large-room .first-place .final-total{font-size:24px}.learning-screen{gap:15px}.learning-answer{font-size:50px}.learning-fact{font-size:28px}.learning-detail{gap:14px}.learning-detail .helper{font-size:18px}}
@media(max-width:1000px) and (min-width:701px){.hero-copy h1{font-size:52px}.hero-copy .eyebrow{font-size:12px}.home{gap:25px}.showcase{padding:20px}.showcase h2{font-size:46px}.poster-star{font-size:30px}.showcase p,.poster-note{font-size:18px}.preview-options{gap:10px}.preview-option{font-size:15px}.room-layout{grid-template-columns:minmax(0,1fr) 29%;gap:12px}.scoreboard{gap:10px}.large-room .score-table th,.large-room .score-table td{padding-left:4px;padding-right:4px}.large-room .final-name{font-size:16px}.large-room .score-table{font-size:15px}.large-room .final-total{font-size:18px}}
/* Phone layouts keep four answer targets and every score visible. */
@media(max-width:700px){.topbar{height:48px;padding:7px 4vw;gap:8px}.brand{font-size:11px;gap:8px;letter-spacing:.5px}.brand-mark{font-size:25px;padding:2px 8px}.brand-sub,.game-label{display:none}.top-right{gap:6px}#connection{font-size:11px;max-width:110px}.icon-button{font-size:18px;padding:3px 6px}main{padding:12px 4vw;gap:8px}.eyebrow{font-size:11px;letter-spacing:1.3px}.tiny{font-size:11px}.btn{font-size:17px;min-height:44px;padding:8px 12px;border-radius:11px;box-shadow:0 3px 0 var(--ink)}.text-button{font-size:13px;min-height:30px;padding:4px}.home{display:flex;flex-direction:column;justify-content:center;gap:18px}.hero-copy{width:100%;gap:13px}.hero-copy h1{font-size:44px}.lede{font-size:18px}.hero-actions{gap:10px}.home-instruction{font-size:14px}.fact-row{gap:24px;font-size:12px}.fact-row strong{font-size:23px}.showcase{order:-1;width:100%;padding:13px 16px;transform:rotate(1deg);border-radius:17px;box-shadow:4px 4px 0 #c8ddc2;display:flex;align-items:center;justify-content:space-between;gap:10px}.showcase h2{font-size:32px;margin:0}.showcase .eyebrow{max-width:85px;font-size:10px}.poster-star{font-size:27px;margin-left:8px}.showcase p,.preview-options,.poster-note{display:none}.join-screen{gap:16px}.join-screen h1{font-size:48px}.join-screen .lede{font-size:18px}.join-form{gap:14px;grid-template-columns:1fr}.join-form label{font-size:13px;margin-bottom:5px}input,select{font-size:17px;min-height:44px;padding:8px 10px}.section-head h2{font-size:27px;margin-top:3px}.section-head .eyebrow{font-size:9px}.pill{font-size:15px;padding:7px;letter-spacing:1px}.room-layout{grid-template-columns:1fr;gap:8px}.panel{padding:12px;border-radius:14px}.lobby-players{gap:7px}.settings{gap:10px}.settings label{font-size:11px;margin-bottom:4px}.settings select{font-size:14px;min-height:38px;padding:5px}.side-heading{font-size:11px}.lobby-invite{flex:none}.join-panel{display:grid;grid-template-columns:auto 1fr auto;gap:5px 10px;padding:8px 12px}.join-panel .eyebrow{display:none}.room-code{font-size:28px;letter-spacing:2px}.qr{grid-column:1;grid-row:1/4;width:72px;height:72px;border-width:3px;border-radius:7px}.join-panel .room-code{grid-column:2;text-align:left}.join-link{grid-column:2;grid-row:2;font-size:10px;text-align:left}.join-panel p{display:none}.join-panel .btn{grid-column:3;grid-row:1/4;font-size:12px;min-height:40px;padding:7px;max-width:80px}.lobby-actions{gap:10px}.helper{font-size:12px}.player-row{gap:6px;padding:4px 0}.player-name{font-size:15px}.avatar{font-size:13px;width:23px;height:23px}.player-status{font-size:10px}.large-room #players .player-name{font-size:12px}.large-room #players .avatar{display:none}.large-room #players .player-status{font-size:9px}.large-room #players .player-row{padding:2px 0}.medium-room #players{gap:0 10px}.remove-player{font-size:10px;padding:2px}[data-screen=lobby] .room-layout{grid-template-rows:minmax(0,1fr) auto}.game-main{gap:8px}.round-meta{font-size:12px}.round-number{font-size:10px;max-width:190px}.live-stats{gap:8px}.timer{height:43px;min-width:43px;font-size:24px;border-width:3px}.points-value{font-size:24px}.stat-label{font-size:9px}.question{font-size:28px;line-height:1.1}.options{grid-template-columns:1fr;grid-template-rows:repeat(4,minmax(0,1fr));gap:8px}.answer{font-size:19px;padding:9px 11px;border-width:2px;border-radius:13px;gap:10px}.answer .letter{font-size:25px;width:34px;height:34px;border-radius:8px}.selection-status{font-size:12px;min-height:30px}.room-layout>aside:not(.lobby-invite){display:none}.offline-banner{font-size:12px;padding:5px}.learning-screen{gap:16px}.learning-answer{font-size:37px}.learning-detail{gap:14px}.learning-fact{font-size:23px;line-height:1.3}.scripture{font-size:17px}.learning-countdown{font-size:14px;gap:10px}.learning-countdown>span:first-child{width:38px;height:38px;font-size:23px}.learning-detail .helper{font-size:13px}.learning-detail .btn{min-width:180px}.results{gap:8px}.results-heading h1{font-size:34px;margin:4px 0}.results-heading p{font-size:14px}.scoreboard{flex-direction:column;gap:0}.score-table{font-size:14px;border-spacing:0 3px;flex:1}.score-table th,.score-table td{padding:4px 5px}.score-table thead th{font-size:10px;padding:0 5px;height:19px}.score-table th:first-child,.score-table td:first-child{width:6%}.score-table th:nth-child(2){width:34%}.score-table th:last-child{width:20%}.final-name{font-size:15px}.final-total{font-size:17px}.first-place .final-name{font-size:18px}.first-place .final-total{font-size:21px}.results-actions{gap:10px}.results-actions .btn{flex:1}.results .tiny{font-size:10px}.large-room .results-heading h1{font-size:27px}.large-room .results-heading p{display:none}.large-room .score-table{font-size:12px;border-spacing:0 2px}.large-room .score-table th,.large-room .score-table td{padding:2px 4px}.large-room .score-table thead th{font-size:9px;height:17px}.large-room .final-name{font-size:12px}.large-room .final-total{font-size:13px}.large-room .first-place .final-name{font-size:14px}.large-room .first-place .final-total{font-size:15px}.large-room .score-table+.score-table thead{display:none}.break-countdown{font-size:17px}.break-countdown strong{font-size:24px}[data-screen=countdown] h1{font-size:58px}[data-screen=countdown] p{font-size:20px}.ready-clock{font-size:90px}.toast{font-size:14px;padding:12px}.connect-notice{padding:16px;gap:12px;flex-direction:column;align-items:stretch}.connect-notice p{font-size:16px}}
@media(max-height:650px) and (max-width:700px){main{padding-top:8px;padding-bottom:8px}.home{gap:10px}.hero-copy{gap:9px}.hero-copy h1{font-size:36px}.lede{font-size:16px}.home-instruction{font-size:12px}.fact-row{font-size:11px}.fact-row strong{font-size:21px}.showcase{padding:9px 14px}.showcase h2{font-size:27px}.poster-star{font-size:23px}.question{font-size:24px}.answer{font-size:17px;padding:7px 9px}.learning-answer{font-size:31px}.learning-fact{font-size:20px}.learning-screen,.learning-detail{gap:11px}.learning-detail .helper{font-size:12px}.learning-countdown{font-size:12px}.results-heading h1{font-size:29px}.large-room .results-heading h1{font-size:24px}.large-room .score-table{font-size:11px}.large-room .final-name{font-size:11px}.large-room .score-table th,.large-room .score-table td{padding-top:1px;padding-bottom:1px}.large-room .first-place .final-name{font-size:12px}.large-room .final-total{font-size:12px}.large-room .first-place .final-total{font-size:14px}.large-room .results .tiny{display:none}.large-room .section-head h2{font-size:23px}.large-room .section-head .eyebrow{display:none}.large-room .lobby-players{padding:8px;gap:5px}.large-room .lobby-players .helper{font-size:10px}.large-room .qr{width:54px;height:54px}.large-room #players .player-name{font-size:11px}}
@media(max-height:500px) and (min-width:701px){.topbar{height:42px}.brand-sub{display:none}main{padding-top:8px;padding-bottom:8px}.home{gap:25px}.hero-copy{gap:8px}.hero-copy h1{font-size:45px}.lede{font-size:17px}.home-instruction{font-size:14px}.hero-actions{gap:8px}.btn{font-size:17px;min-height:38px;padding:6px 13px}.fact-row{font-size:12px}.fact-row strong{font-size:22px}.showcase h2{font-size:43px;margin:8px 0}.showcase p,.poster-note{font-size:16px}.preview-options{margin:13px 0}.preview-option{padding:10px;font-size:14px}.question{font-size:25px}.answer{font-size:17px}.answer .letter{width:30px;height:30px;font-size:23px}.timer{height:40px;min-width:40px;font-size:24px}.round-meta{font-size:13px}.round-number{font-size:10px}.points-value{font-size:23px}.stat-label{font-size:10px}.game-main{gap:6px}.selection-status{font-size:12px;min-height:16px}.leaderboard .player-name{font-size:13px}.leaderboard .score{font-size:15px}.leaderboard .avatar{width:18px;height:18px;font-size:11px}.board-qr{display:none}.board-code{font-size:11px}.board-code strong{font-size:24px}.large-room .leaderboard .player-list{grid-template-columns:1fr 1fr;gap:0 10px}.large-room .leaderboard .player-name{font-size:10px}.large-room .leaderboard .avatar{display:none}.results-heading h1{font-size:32px}.results-heading p{font-size:14px}.large-room .score-table{font-size:12px}.large-room .score-table thead th{font-size:10px;height:17px}.large-room .final-name{font-size:13px}.large-room .first-place .final-name{font-size:15px}.large-room .final-total{font-size:15px}.large-room .first-place .final-total{font-size:17px}.large-room .score-table th,.large-room .score-table td{padding:1px 4px}.results .tiny{font-size:10px}.results{gap:6px}.learning-answer{font-size:33px}.learning-fact{font-size:22px}.learning-screen,.learning-detail{gap:10px}.scripture{font-size:17px}.learning-countdown{font-size:14px}.learning-countdown>span:first-child{height:32px;width:32px;font-size:21px}.learning-detail .helper{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Use the real company mark and one lively connection badge. */
.brand-mark{padding:5px;display:flex;align-items:center;justify-content:center;transform:none;width:46px;height:46px}.brand-mark img{width:100%;height:100%;object-fit:contain}.connection-badge{display:flex;align-items:center;gap:9px;background:var(--gold);border:2px solid var(--ink);border-radius:30px;padding:7px 15px;transform:rotate(-2deg)}.connection-badge>span:first-child{font-size:24px;color:var(--teal)}.connection-badge #connection{font:22px Lilita,Arial;color:var(--ink);max-width:none}.question-actions{display:flex;justify-content:space-between;flex:none}.score-toggle,.score-back{display:none}
@media(min-width:1700px) and (min-height:1000px){.brand-mark{width:62px;height:62px}.connection-badge #connection{font-size:28px}.connection-badge{padding:9px 20px}}
@media(max-width:700px){.brand-mark{width:34px;height:34px}.connection-badge{padding:5px 8px;gap:5px;transform:none}.connection-badge #connection{font-size:13px;max-width:110px}.connection-badge>span:first-child{font-size:16px}.score-toggle,.score-back{display:inline-flex}.room-layout.show-scores .game-main{display:none}.room-layout.show-scores>aside{display:flex}.show-scores .leaderboard .player-name{font-size:17px}.show-scores .leaderboard .score{font-size:20px}.show-scores .board-code{display:none}.large-room .show-scores .leaderboard .player-name{font-size:14px}.large-room .show-scores .leaderboard .score{font-size:16px}.show-scores .score-back{align-self:flex-start}}

@media(min-width:701px){#app:not(.medium-room) .score-table{font-size:30px}#app:not(.medium-room) .final-name{font-size:34px}#app:not(.medium-room) .final-total{font-size:38px}#app:not(.medium-room) .first-place .final-name{font-size:42px}#app:not(.medium-room) .first-place .final-total{font-size:46px}}
@media(min-width:1700px) and (min-height:1000px){#app:not(.medium-room) .score-table{font-size:40px}#app:not(.medium-room) .final-name{font-size:46px}#app:not(.medium-room) .final-total{font-size:52px}#app:not(.medium-room) .first-place .final-name{font-size:58px}#app:not(.medium-room) .first-place .final-total{font-size:62px}}
@media(max-height:500px) and (min-width:701px){#app:not(.medium-room) .score-table{font-size:18px}#app:not(.medium-room) .final-name{font-size:21px}#app:not(.medium-room) .final-total{font-size:24px}#app:not(.medium-room) .first-place .final-name{font-size:25px}#app:not(.medium-room) .first-place .final-total{font-size:28px}}

/* Let score rows share the available height, reserving real space for the controls. */
.score-table{display:flex;flex-direction:column;min-height:0;border-spacing:0;gap:5px}
.score-table thead{flex:none}
.score-table tbody{flex:1;min-height:0;display:grid;grid-auto-rows:minmax(0,1fr);gap:5px}
.score-table tr{display:grid;grid-template-columns:8% 36% 13% 13% 13% 17%;min-height:0}
.score-table th,.score-table td{width:auto!important;min-width:0;min-height:0;display:flex;align-items:center;justify-content:flex-end;line-height:1.05}
.score-table th:first-child,.score-table td:first-child{justify-content:center}
.score-table th:nth-child(2){justify-content:flex-start}
.brand-mark{flex:none;width:52px;height:52px}.brand-name{text-transform:uppercase;max-width:290px}
@media(min-width:1700px) and (min-height:1000px){.brand-mark{width:70px;height:70px}.brand-name{max-width:none}}
@media(max-width:700px){.brand-mark{width:38px;height:38px}.brand-name{max-width:125px;font-size:11px;line-height:1.15}.topbar{padding-top:4px;padding-bottom:4px}.connection-badge>span:first-child{display:none}.score-table{gap:2px}.score-table tbody{gap:2px}.score-table tr{grid-template-columns:6% 34% 13.333% 13.333% 13.334% 20%}.score-table+.score-table{margin-top:2px}.score-table th,.score-table td{padding-top:1px;padding-bottom:1px}.score-table thead th{height:17px}.large-room .scoreboard{gap:0}.large-room .score-table{flex:1 1 0}.results-heading h1{overflow-wrap:anywhere}}
@media(max-height:750px) and (min-width:701px){.brand-mark{width:44px;height:44px}}
@media(max-height:500px) and (min-width:701px){
 .brand-mark{width:34px;height:34px}.connection-badge{padding:3px 10px}.connection-badge #connection{font-size:18px}
 .hero-copy h1{font-size:38px}.hero-copy{gap:6px}.home-instruction{font-size:12px}.fact-row{font-size:11px}.fact-row strong{font-size:19px}.showcase{padding:15px}.preview-option{padding:7px}.preview-options{margin:10px 0}.preview-option b{font-size:25px}
 .join-screen{gap:9px}.join-screen h1{font-size:44px}.join-screen .lede{font-size:17px}.join-form{gap:10px}.join-form label{font-size:12px;margin-bottom:3px}.join-form input{min-height:38px}
 .section-head h2{font-size:27px}.section-head .eyebrow{display:none}.pill{font-size:17px;padding:6px}.lobby-players{padding:9px;gap:5px}.settings select{min-height:32px;font-size:14px;padding:3px}.settings label{font-size:10px}.lobby-players .helper{font-size:11px}.side-heading{font-size:11px}.large-room #players .player-name{font-size:12px}.large-room #players .player-status{font-size:9px}.large-room #players .avatar{display:none}.large-room #players .player-row{padding:0}.join-panel{gap:5px;padding:10px}.qr{width:90px;height:90px}.room-code{font-size:32px}.join-link,.join-panel p{font-size:11px}.join-panel .btn{font-size:14px;min-height:32px}
 .results-heading .eyebrow,.results-heading p,.results .tiny{display:none}.results-heading h1{font-size:28px;margin:0}.score-table tbody{gap:2px}.score-table thead th{height:16px}.break-countdown{font-size:16px}.break-countdown strong{font-size:22px}
}

/* Approved flowing-script wordmark, paired with the original HH icon. */
.topbar{height:86px;padding-top:5px;padding-bottom:5px}.brand{gap:14px}.brand-mark{width:62px;height:62px}.brand-wordmark{display:block;width:200px;height:74px;object-fit:cover;object-position:center}
@media(min-width:1700px) and (min-height:1000px){.topbar{height:104px}.brand-mark{width:78px;height:78px}.brand-wordmark{width:250px;height:92px}}
@media(max-width:700px){.topbar{height:62px;padding:4px 3vw;gap:6px}.brand{gap:6px}.brand-mark{width:44px;height:44px;border-radius:11px}.brand-wordmark{width:140px;height:52px}.connection-badge{padding:4px 6px;max-width:82px}.connection-badge #connection{font-size:11px;line-height:1.05}.top-right{gap:5px}.icon-button{padding:3px 4px}}
@media(max-height:500px) and (min-width:701px){.topbar{height:48px}.brand-mark{width:38px;height:38px}.brand-wordmark{width:110px;height:40px}.brand{gap:8px}}

/* Couch party: artwork leads, with three real, remote-friendly actions. */
.couch-home{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:2vw}.couch-home .hero-copy{gap:28px}.couch-home h1{font-size:clamp(48px,5.2vw,96px);line-height:1.05}.couch-home h1 em{position:relative;color:var(--ink)}.couch-home h1 em:after{content:'';position:absolute;height:7px;border-radius:50%;background:var(--orange);bottom:-12px;left:25%;width:70%;transform:rotate(-3deg)}.couch-home .hero-actions{grid-template-columns:1fr;max-width:510px;gap:16px;margin-top:12px}.couch-home .btn{border-radius:40px;min-height:64px}.couch-home #solo{background:var(--teal);color:var(--white)}.couch-home #show-join{background:var(--orange);color:var(--ink)}.couch-home .btn:hover{filter:brightness(1.08)}.couch-home .home-instruction{font-size:19px}.party-art{min-height:0;display:flex;align-items:center;justify-content:center}.party-art img{display:block;width:100%;height:auto;max-height:calc(100vh - 160px);object-fit:contain;border-radius:28px}.couch-home .fact-row{gap:25px;font-size:15px}.couch-home .fact-row strong{font-size:28px}
/* Large A–D blocks remain easy to identify from across the room. */
.answer .letter{width:84px;height:100%;min-height:58px;max-height:112px;font-size:68px;border-radius:15px;line-height:1}
.player-name{max-height:100%;line-height:1.08}.status-mark{font-weight:800}
@media(min-width:1700px) and (min-height:1000px){.couch-home .btn{min-height:78px;font-size:33px}.couch-home .home-instruction{font-size:25px}.couch-home .fact-row{font-size:21px;gap:38px}.couch-home .fact-row strong{font-size:36px}.couch-home .hero-actions{max-width:580px}.answer .letter{width:110px;max-height:140px;font-size:86px}}
@media(max-height:750px) and (min-width:701px){.couch-home .hero-copy{gap:17px}.couch-home h1{font-size:56px}.couch-home .hero-actions{gap:12px;margin-top:8px}.couch-home .btn{min-height:50px}.couch-home .home-instruction{font-size:17px}.couch-home .fact-row{font-size:13px}.couch-home .fact-row strong{font-size:25px}.answer .letter{width:70px;min-height:44px;max-height:90px;font-size:54px}}
@media(max-width:700px){.couch-home{display:flex;gap:12px;justify-content:center}.couch-home .party-art{order:-1;flex:0 1 30%;width:100%;min-height:70px}.party-art img{height:100%;width:auto;max-width:100%;max-height:205px;border-radius:18px}.couch-home .hero-copy{gap:14px;flex:none;align-items:center}.couch-home h1{text-align:center;font-size:37px;line-height:1}.couch-home h1 br{display:none}.couch-home h1 em{display:block}.couch-home h1 em:after{height:4px;bottom:-6px}.couch-home .hero-actions{width:100%;gap:10px;margin-top:3px}.couch-home .btn{min-height:44px;font-size:19px;padding:7px 12px}.couch-home .home-instruction{font-size:12px;text-align:center}.couch-home .fact-row{font-size:11px;gap:25px}.couch-home .fact-row strong{font-size:22px}.answer .letter{width:60px;min-height:40px;max-height:100px;font-size:48px;border-radius:12px}.answer{gap:12px}.large-room #players .status-label{display:none}.large-room #players .player-status{font-size:12px}.large-room #players .player-name{font-size:12px}.large-room #players .player-row{padding:1px 0}.large-room #players{column-gap:12px}}
@media(max-height:650px) and (max-width:700px){.couch-home{gap:7px}.couch-home .party-art{flex-basis:23%;min-height:60px}.party-art img{max-height:115px}.couch-home .hero-copy{gap:10px}.couch-home h1{font-size:29px}.couch-home .hero-actions{gap:7px}.couch-home .btn{min-height:39px;font-size:17px}.couch-home .fact-row strong{font-size:19px}.couch-home .home-instruction{font-size:11px}.answer .letter{width:45px;min-height:32px;max-height:68px;font-size:38px}.answer{font-size:16px;gap:9px}.large-room .lobby-invite .qr{display:none}.large-room .join-panel{grid-template-columns:1fr auto}.large-room .join-panel .room-code,.large-room .join-panel .join-link{grid-column:1}.large-room .join-panel .btn{grid-column:2}.large-room .join-panel .room-code{font-size:23px}.large-room .join-panel .join-link{font-size:9px}}
@media(max-height:500px) and (min-width:701px){.couch-home h1{font-size:36px}.couch-home .hero-copy{gap:9px}.couch-home .hero-actions{gap:7px;margin-top:5px}.couch-home .btn{min-height:34px;font-size:17px;padding:4px 12px}.couch-home .home-instruction{font-size:11px}.couch-home .fact-row{font-size:10px;gap:20px}.couch-home .fact-row strong{font-size:18px}.couch-home h1 em:after{height:4px;bottom:-5px}.party-art img{max-height:calc(100vh - 72px)}.answer .letter{width:45px;min-height:30px;max-height:60px;font-size:38px}}

.couch-home .hero-copy{align-self:stretch;justify-content:center;gap:38px}.game-intro{font-size:27px;line-height:1.45;max-width:590px;color:var(--muted)}.couch-home .hero-actions{margin-top:10px}
@media(min-width:1700px) and (min-height:1000px){.game-intro{font-size:31px}.couch-home .hero-copy{gap:46px}}
@media(max-height:750px) and (min-width:701px){.couch-home .hero-copy{gap:26px}.game-intro{font-size:22px}}
@media(max-width:700px){.couch-home .hero-copy{gap:15px;align-self:auto}.game-intro{font-size:17px;text-align:center;line-height:1.35}.couch-home .hero-actions{margin-top:2px}}
@media(max-height:650px) and (max-width:700px){.couch-home .hero-copy{gap:12px}.game-intro{font-size:14px}.answer{padding:5px 8px}.question{font-size:22px}.large-room .lobby-players .helper{display:none}.large-room .lobby-players{gap:3px}.large-room .lobby-players .side-heading{font-size:10px}.large-room #players .player-status{font-size:9px}}
@media(max-height:500px) and (min-width:701px){.couch-home .hero-copy{gap:16px}.game-intro{font-size:16px;line-height:1.25}.large-room #players{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:8px}.large-room #players .status-label{display:none}.large-room #players .player-status{font-size:10px}.join-panel p{display:none}.answer{padding:6px;font-size:16px}.lobby-players .helper{display:none}}
/* Question preview and inline scripture lesson. */
.preview-main{width:100%;max-width:1350px;margin:auto;flex:1;min-height:0}.preview-main .question{margin-top:20px}.question-preview{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;border:3px dashed var(--line);border-radius:28px;background:#e4efdc80;text-align:center;padding:15px}.question-preview p{font-size:27px;font-weight:bold;color:var(--teal)}.preview-clock{font:110px/1 Lilita,Arial;color:var(--ink);width:155px;height:155px;border:7px solid var(--gold);border-radius:50%;display:flex;align-items:center;justify-content:center}
.learning-screen{justify-content:flex-start;gap:18px}.learning-answer{flex:none;font-size:48px;line-height:1.1;text-align:center}.lesson-layout{display:grid;grid-template-columns:minmax(0,1fr) 28%;gap:24px;flex:1;min-height:0;width:100%}.lesson-reading{min-height:0;display:flex;flex-direction:column;gap:15px;text-align:left}.learning-fact{font-size:26px;line-height:1.3}.verse-card{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:12px;background:var(--white);border:2px solid var(--line);border-radius:18px;padding:20px}.verse-card h3{font-size:19px;color:var(--teal)}#verse-text{font-size:27px;line-height:1.32}.verse-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px}.verse-credit{font-size:10px;color:var(--muted);line-height:1.2}.lesson-scores{display:flex;flex-direction:column;gap:10px;min-height:0;background:#e4efdc;padding:16px;border-radius:18px}.lesson-scores h3{font-size:23px}.your-gain{font-size:18px;font-weight:bold;color:var(--teal)}.your-gain:empty{display:none}.lesson-score-list{margin:0;padding:0;list-style:none;display:grid;grid-auto-rows:minmax(0,1fr);gap:6px;min-height:0;flex:1}.lesson-score-list li{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:10px;background:var(--white);min-height:0}.gain-name{font-size:20px;font-weight:bold;min-width:0;flex:1;overflow-wrap:anywhere;max-height:100%}.lesson-score-list strong{font:28px Lilita,Arial;color:var(--teal)}.lesson-footer{display:flex;align-items:center;justify-content:center;gap:28px;flex:none}.lesson-footer .helper{font-size:18px}.lesson-footer .btn{min-width:220px}
@media(min-width:1700px) and (min-height:1000px){.learning-answer{font-size:66px}.lesson-layout{gap:32px}.learning-fact{font-size:34px}#verse-text{font-size:38px}.verse-card h3{font-size:26px}.verse-credit{font-size:13px}.gain-name{font-size:27px}.lesson-score-list strong{font-size:38px}.lesson-scores h3{font-size:30px}.your-gain{font-size:25px}.lesson-footer .helper{font-size:24px}}
@media(max-height:750px) and (min-width:701px){.learning-answer{font-size:37px}.learning-screen{gap:12px}.learning-fact{font-size:22px}.lesson-reading{gap:9px}.verse-card{padding:12px;gap:8px}#verse-text{font-size:23px}.gain-name{font-size:17px}.lesson-score-list strong{font-size:23px}.lesson-scores h3{font-size:19px}}
@media(max-width:700px){.preview-main .question{margin-top:8px}.question-preview{gap:15px;padding:12px}.question-preview p{font-size:18px}.preview-clock{font-size:80px;width:120px;height:120px;border-width:5px}.learning-screen{gap:8px}.learning-answer{font-size:27px}.lesson-layout{display:flex;flex-direction:column;gap:8px}.lesson-reading{gap:6px;flex:1;min-height:0}.lesson-reading .eyebrow{font-size:10px}.learning-fact{font-size:17px;line-height:1.25}.verse-card{gap:6px;padding:10px;border-radius:12px}.verse-card h3{font-size:12px}#verse-text{font-size:18px;line-height:1.25}.verse-navigation{font-size:11px;gap:4px}.verse-navigation .text-button{font-size:12px;min-height:27px;padding:2px}.verse-credit{font-size:8px;line-height:1.15}.lesson-scores{flex:none;padding:8px;gap:5px;border-radius:12px}.lesson-scores h3{font-size:13px}.your-gain{font-size:12px}.lesson-score-list{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:35px;gap:4px}.lesson-score-list li{padding:4px;gap:3px}.gain-name{font-size:10px}.lesson-score-list strong{font-size:17px}.lesson-footer{gap:8px;justify-content:space-between;width:100%}.lesson-footer .helper{font-size:11px;max-width:145px}.lesson-footer .btn{min-width:125px;font-size:17px}}
@media(max-height:650px) and (max-width:700px){.learning-answer{font-size:21px}.learning-fact{font-size:14px}.lesson-reading .eyebrow{display:none}#verse-text{font-size:15px}.verse-card{padding:7px;gap:4px}.verse-card h3{font-size:10px}.verse-credit{font-size:7px}.lesson-score-list{grid-auto-rows:26px}.gain-name{font-size:9px}.lesson-score-list strong{font-size:14px}.lesson-scores{padding:5px;gap:3px}.lesson-scores h3{font-size:11px}.your-gain{font-size:10px}.lesson-footer .helper{font-size:10px}.learning-screen,.lesson-layout{gap:6px}}
@media(max-height:500px) and (min-width:701px){.preview-main .question{margin-top:4px}.question-preview{gap:5px;padding:6px}.question-preview p{font-size:16px}.preview-clock{width:75px;height:75px;font-size:50px;border-width:4px}.learning-answer{font-size:25px}.learning-screen{gap:6px}.lesson-layout{gap:10px;grid-template-columns:minmax(0,1fr) 26%}.lesson-reading{gap:5px}.lesson-reading .eyebrow{display:none}.learning-fact{font-size:15px;line-height:1.2}.verse-card{padding:8px;gap:4px}#verse-text{font-size:16px;line-height:1.2}.verse-card h3{font-size:11px}.verse-credit{font-size:7px}.verse-navigation{font-size:10px}.verse-navigation .text-button{min-height:22px;font-size:11px;padding:1px}.lesson-scores{padding:8px;gap:4px}.lesson-scores h3{font-size:14px}.your-gain{font-size:11px}.lesson-score-list{gap:3px}.lesson-score-list li{padding:2px 5px}.gain-name{font-size:11px}.lesson-score-list strong{font-size:16px}.lesson-footer{gap:15px}.lesson-footer .helper{font-size:12px}.lesson-footer .btn{min-width:150px;min-height:34px}}

/* Use the TV invite panel for a distance-readable code, QR and simple address. */
@media(min-width:701px) and (min-height:501px){.lobby-invite .join-panel{padding:18px 12px;gap:14px}.lobby-invite .eyebrow{font-size:23px;letter-spacing:2px}.lobby-invite .room-code{font-size:clamp(62px,9vh,120px);line-height:1;letter-spacing:5px}.lobby-invite .qr{width:clamp(175px,27vh,310px);height:clamp(175px,27vh,310px)}.lobby-invite .join-link{font-size:clamp(18px,1.65vw,32px);font-weight:bold;line-height:1.2}.lobby-invite .join-panel p{font-size:clamp(18px,1.5vw,28px)}.lobby-invite .btn{font-size:24px;min-height:56px;padding:10px 14px}}
@media(min-width:1700px) and (min-height:1000px){.lobby-invite .join-panel{gap:22px}.lobby-invite .eyebrow{font-size:30px}.lobby-invite .btn{font-size:32px;min-height:76px}}

#players{max-height:calc(var(--lobby-rows,10)*90px);margin-bottom:auto}#app:not(.large-room) #players .player-name{font-size:32px}#app:not(.large-room) #players .player-status{font-size:20px}#app:not(.large-room) #players .avatar{width:42px;height:42px;font-size:25px}
@media(min-width:1700px) and (min-height:1000px){#players{max-height:calc(var(--lobby-rows,10)*115px)}#app:not(.large-room) #players .player-name{font-size:42px}#app:not(.large-room) #players .player-status{font-size:27px}#app:not(.large-room) #players .avatar{width:56px;height:56px;font-size:34px}}
@media(max-width:700px){#players{max-height:calc(var(--lobby-rows,10)*62px)}#app:not(.large-room) #players .player-name{font-size:19px}#app:not(.large-room) #players .player-status{font-size:10px}#app:not(.large-room) #players .avatar{width:24px;height:24px;font-size:15px}}
@media(max-height:650px) and (max-width:700px){.large-room #players .player-name{line-height:1}.large-room #players .player-row{padding:0}}
@media(max-height:500px) and (min-width:701px){#app:not(.large-room) #players .player-name{font-size:17px}#app:not(.large-room) #players .player-status{font-size:11px}#app:not(.large-room) #players .avatar{width:24px;height:24px;font-size:15px}.answer{padding:4px 6px;font-size:15px}}
.lesson-layout,.lesson-footer{animation:fact-appear .4s 1.1s both}.skip-animation .lesson-layout,.skip-animation .lesson-footer{animation:none}

@media(max-width:700px) and (min-height:651px){#verse-text{font-size:clamp(19px,2.9vh,28px)}}

#lobby-help{font:30px/1.08 Lilita,Arial;color:var(--teal);text-align:center;flex:none;display:block;margin:6px 0}#app.large-room #lobby-help{font-size:24px}
@media(min-width:1700px) and (min-height:1000px){#lobby-help{font-size:40px}#app.large-room #lobby-help{font-size:32px}}
@media(max-width:700px){#lobby-help{font-size:21px;margin:3px 0}#app.large-room #lobby-help{font-size:14px}}
@media(max-height:650px) and (max-width:700px){#lobby-help{font-size:17px}#app.large-room #lobby-help{font-size:12px;margin:1px 0}}
@media(max-height:500px) and (min-width:701px){#lobby-help{font-size:17px;margin:1px 0}#app.large-room #lobby-help{font-size:13px}}

/* All twenty players stay on the board; the roster scales as people join. */
#players{--lobby-name-size:32px;--lobby-status-size:20px;--lobby-avatar-size:42px}
#app #players .player-name{font-size:calc(var(--lobby-name-size)*var(--lobby-scale,1))}
#app #players .player-status{font-size:calc(var(--lobby-status-size)*var(--lobby-scale,1))}
#app #players .avatar{width:calc(var(--lobby-avatar-size)*var(--lobby-scale,1));height:calc(var(--lobby-avatar-size)*var(--lobby-scale,1));font-size:calc(var(--lobby-name-size)*var(--lobby-scale,1)*.7)}
@media(min-width:1700px) and (min-height:1000px){#players{--lobby-name-size:42px;--lobby-status-size:27px;--lobby-avatar-size:56px}}
@media(max-width:700px){#players{--lobby-name-size:19px;--lobby-status-size:12px;--lobby-avatar-size:24px}}
@media(max-height:500px) and (min-width:701px){#players{--lobby-name-size:17px;--lobby-status-size:12px;--lobby-avatar-size:24px}}

/* Keep joining visible throughout the question, including a full twenty-player room. */
.board-code{display:flex;align-items:center;justify-content:center;gap:14px;padding:10px;background:#e4efdc;border-radius:16px;text-align:left;color:var(--ink)}
.board-code .board-qr{display:block;flex:none;width:130px;height:130px;margin:0;border:6px solid white;border-radius:10px}
.board-join-details{min-width:0;display:flex;flex-direction:column;gap:3px}.board-join-title{font-size:20px;font-weight:bold;color:var(--teal)}.board-code strong{font-size:45px;line-height:1.05;letter-spacing:3px}.board-join-url{font-size:15px;font-weight:bold;overflow-wrap:anywhere}.board-join-note{font-size:14px;color:var(--muted)}
@media(min-width:1700px) and (min-height:1000px){.board-code{gap:18px;padding:12px}.board-code .board-qr{width:180px;height:180px}.board-join-title{font-size:25px}.board-code strong{font-size:58px}.board-join-url{font-size:19px}.board-join-note{font-size:18px}}
@media(max-height:750px) and (min-width:701px){.board-code{padding:8px;gap:10px}.board-code .board-qr{width:110px;height:110px}.board-join-title{font-size:17px}.board-code strong{font-size:35px}.board-join-url{font-size:12px}.board-join-note{font-size:12px}}
@media(max-width:1000px) and (min-width:701px){.board-code{gap:7px}.board-code .board-qr{width:95px;height:95px}.board-code strong{font-size:28px}.board-join-title{font-size:15px}.board-join-url,.board-join-note{font-size:10px}}
@media(max-height:500px) and (min-width:701px){.board-code{padding:5px}.board-code .board-qr{width:72px;height:72px}.board-code strong{font-size:23px}.board-join-title{font-size:12px}.board-join-url,.board-join-note{font-size:9px}}

/* Choices arrive together after the question preview; individual eliminations keep their own fade. */
.answer-stage{position:relative;display:flex;flex:1;min-height:0;min-width:0}
.answer-stage>.options{width:100%;animation:answers-arrive 1s ease-in-out both}
.answer-stage>.preview-departing{position:absolute;inset:0;z-index:1;pointer-events:none;animation:preview-departs 1s ease-in-out both}
@keyframes preview-departs{from{opacity:1}to{opacity:0}}
@keyframes answers-arrive{from{opacity:0}to{opacity:1}}

/* Keep the category and round details together and readable across the room. */
.round-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px;min-width:0;line-height:1.15;font-size:25px}
.round-category{flex:none}.round-number{font-size:20px;margin:0;max-width:none;color:var(--muted)}
.available-points{flex:none;text-align:center;min-width:120px}.points-value{font-size:42px;line-height:1;color:var(--teal)}.stat-label{font-size:15px;white-space:nowrap}
.selection-status{font-size:23px;line-height:1.2}
@media(min-width:1700px) and (min-height:1000px){.round-meta{font-size:34px;gap:12px 30px}.round-number{font-size:27px}.selection-status{font-size:32px}.points-value{font-size:52px}.stat-label{font-size:19px}.available-points{min-width:160px}}
@media(max-height:750px) and (min-width:701px){.round-meta{font-size:23px;gap:6px 16px}.round-number{font-size:18px}.selection-status{font-size:21px}.points-value{font-size:36px}.stat-label{font-size:13px}.live-stats{gap:10px}.available-points{min-width:105px}}
@media(max-width:700px){.round-meta{font-size:15px;gap:5px 12px}.round-number{font-size:12px}.selection-status{font-size:13px}.available-points{min-width:70px}.points-value{font-size:27px}.stat-label{font-size:9px}}
@media(max-height:500px) and (min-width:701px){.round-meta{font-size:16px;gap:4px 12px}.round-number{font-size:12px}.selection-status{font-size:14px}.points-value{font-size:26px}.stat-label{font-size:10px}.available-points{min-width:80px}}

@media(prefers-reduced-motion:reduce){.preview-departing{display:none}}

.learning-answer{align-self:center;max-width:100%;transform-origin:center center}

/* The entire passage is visible together; fit its type to the available reading area. */
.verse-card{justify-content:flex-start}.verse-card h3,.verse-credit{flex:none}
#verse-text{flex:1;min-height:0}
.lesson-heading{font:30px/1.1 Lilita,Arial;color:var(--teal);flex:none}
@media(min-width:1700px) and (min-height:1000px){.lesson-heading{font-size:40px}}
@media(max-width:700px){.lesson-heading{font-size:20px}}
@media(max-height:650px) and (max-width:700px){.lesson-heading{font-size:17px}}
@media(max-height:500px) and (min-width:701px){.lesson-heading{font-size:19px}}

/* Keep the old board visible while its answer travels into the lesson heading. */
.departing-question{position:fixed;inset:0;z-index:10;pointer-events:none;animation:question-departs 1s ease-in-out both}
.departing-question .options{animation:none}.departing-question .topbar{display:flex!important}
.learning-answer{position:relative;z-index:11;animation:answer-rise 1s ease-in-out both}
.learning-letter{font-family:Lilita,Arial}.learning-label{display:inline-block;max-width:100%;vertical-align:middle}
.lesson-footer .helper{max-width:900px}
@keyframes question-departs{from{opacity:1}to{opacity:0}}
@media(prefers-reduced-motion:reduce){.departing-question{display:none}}

/* A playful, readable invitation on the player's phone. */
.join-screen{gap:20px;max-width:750px}
.join-badge{align-self:center;display:flex;align-items:center;gap:12px;padding:8px 16px;border:2px solid var(--ink);border-radius:30px;background:var(--gold);font-weight:800;font-size:17px;letter-spacing:1px;transform:rotate(-2deg);box-shadow:0 3px 0 var(--ink)}
.join-badge span{color:var(--teal);font-size:24px}
.join-screen h1{font-size:90px}.join-screen h1 em{font-style:normal;color:var(--teal);position:relative;white-space:nowrap}
.join-screen h1 em:after{content:'';position:absolute;left:0;right:0;bottom:-5px;height:7px;border-radius:50%;background:var(--orange);transform:rotate(-4deg)}
.join-screen .lede{font-size:25px;line-height:1.25;color:var(--ink)}
.join-form label{font-size:22px;letter-spacing:0;display:flex;align-items:center;gap:9px;margin-bottom:9px}
.join-step{display:inline-flex;align-items:center;justify-content:center;width:29px;height:29px;background:#e4efdc;border-radius:50%;font:22px Lilita,Arial;color:var(--teal)}
.join-form input{font-size:27px;min-height:64px}.join-form input[name=code]{text-align:center;font-weight:800;letter-spacing:7px}
.join-form .join-submit{font:32px Lilita,Arial;border-radius:40px;min-height:64px;justify-content:center;gap:18px}
.join-form #watch{border:0;box-shadow:none;background:transparent;text-decoration:underline;font-size:19px;min-height:36px;padding:3px}
.join-screen #home-back{font-size:18px;align-self:center}
@media(max-width:700px){.join-screen{gap:20px}.join-badge{font-size:13px;padding:7px 12px;gap:8px}.join-badge span{font-size:21px}.join-screen h1{font-size:64px;line-height:1.04}.join-screen .lede{font-size:23px}.join-form{gap:17px}.join-form label{font-size:21px}.join-form input{font-size:25px;min-height:62px}.join-form .join-submit{font-size:29px;min-height:62px}.join-form #watch{font-size:18px}}
@media(max-width:700px) and (max-height:730px){.join-screen{gap:12px}.join-screen h1{font-size:55px}.join-screen .lede{font-size:20px}.join-form{gap:12px}.join-form input{min-height:52px;font-size:23px}.join-form label{font-size:19px;margin-bottom:6px}.join-form .join-submit{min-height:54px;font-size:27px}.join-screen #home-back{min-height:26px;padding:2px}}
@media(max-width:700px) and (max-height:600px){.join-screen{gap:8px}.join-badge{font-size:11px;padding:3px 9px}.join-screen h1{font-size:43px}.join-screen .lede{font-size:17px}.join-form{gap:8px}.join-form label{font-size:17px;margin-bottom:4px}.join-step{width:23px;height:23px;font-size:18px}.join-form input{min-height:44px;font-size:20px}.join-form .join-submit{min-height:46px;font-size:24px}.join-form #watch,.join-screen #home-back{font-size:16px}}

/* Players join from their phones; viewing and home navigation stay on the TV. */
@media(max-width:700px),(max-width:1000px) and (max-height:500px){
  .join-form #watch,.join-screen #home-back{display:none}
}

/* Game settings look like game cards, including when only the host can change them. */
.settings{align-items:stretch;gap:14px;flex:none}.setting-card{min-width:0;border:2px solid var(--ink);border-radius:17px;padding:12px 14px;box-shadow:0 4px 0 var(--ink)}
.category-card{background:#dcebd4}.rounds-card{background:#ffdf79}
.setting-card label{display:flex;gap:8px;align-items:center;color:var(--ink);font-size:20px;letter-spacing:0;margin-bottom:5px}
.settings .setting-card select{background:transparent;border:0;border-radius:8px;font-family:Lilita,Arial;font-size:30px;min-height:45px;padding:3px 5px;color:var(--ink);opacity:1;-webkit-text-fill-color:var(--ink)}
.round-total{display:block;font-size:16px;font-weight:700;color:var(--muted);padding-left:5px}
#players .player-name{white-space:nowrap;overflow-wrap:normal}
@media(max-width:700px){
  [data-screen=lobby] .lobby-invite{display:none}
  [data-screen=lobby] .room-layout{grid-template-rows:minmax(0,1fr)}
  .settings{gap:10px}.setting-card{padding:9px 8px;border-radius:14px}
  .settings .setting-card label{font-size:16px;gap:5px;margin-bottom:3px}
  .settings .setting-card select{font-size:22px;min-height:35px;padding:2px}
  .round-total{font-size:12px;padding-left:2px}
  #players{grid-template-columns:minmax(0,1fr);max-height:calc(var(--lobby-count,20)*60px);gap:0}
  #app #players .player-name{font-size:calc(23px*var(--phone-lobby-scale,1));line-height:1.1;max-height:100%}
  #app #players .player-status{font-size:calc(14px*var(--phone-lobby-scale,1));line-height:1}
  #app #players .avatar{width:28px;height:28px;font-size:18px}
  #players .player-row{padding:4px 0;gap:8px;min-height:0}
  #app.large-room #players .player-row{padding:0}
  #app.large-room #players .status-label{display:inline}
  #app.large-room #players .avatar{display:none}
  .lobby-actions #ready{background:var(--gold);font-family:Lilita,Arial;font-size:25px;border-radius:30px}
}
@media(max-width:700px) and (max-height:650px){
  .settings .setting-card label{font-size:14px}.settings .setting-card select{font-size:20px;min-height:29px}.setting-card{padding:6px}.round-total{font-size:10px}
  #app.large-room #players .player-name{font-size:13px}
  #app.large-room #players .player-status{font-size:10px}
}
@media(min-width:1700px) and (min-height:1000px){.settings .setting-card select{font-size:38px;min-height:56px}.setting-card label{font-size:25px}.round-total{font-size:21px}}

/* Phone rosters may scroll so names remain comfortably readable. */
@media(max-width:700px){
  #app #players{grid-auto-rows:56px;max-height:calc(var(--lobby-count,20)*56px);overflow-y:auto;overscroll-behavior:contain;padding-right:3px}
  #app #players .player-name{font-size:23px;line-height:1.15}
  #app #players .player-status{font-size:13px}
  #app #players .avatar{display:flex;width:28px;height:28px;font-size:18px}
  #app #players .player-row{padding:5px 0;gap:8px}
  #app #players .status-label{display:inline}
  #app.large-room #lobby-help{display:block;font-size:20px}
}

/* Preview and choices occupy one stable stage, with instructions always beneath. */
.answer-stage>.question-preview{width:100%}
.preview-round .live-stats,.preview-round .time-track{visibility:hidden}
.player-question .connection-badge{display:none}
#header-leave{font-size:19px;font-weight:700;text-decoration:none;border:2px solid var(--ink);border-radius:24px;background:var(--white);padding:8px 12px;white-space:nowrap}
@media(max-width:700px){#header-leave{font-size:13px;padding:7px 9px;min-height:34px}.player-question .top-right{gap:5px}}

/* Distinguish a saved choice from the live, decreasing offer. */
.answer.selected{background:#dcefd3;border-color:var(--teal);box-shadow:0 0 0 2px var(--teal),0 4px 0 #12383d20}
.answer.selected .letter{position:relative}
.answer.selected .letter:after{content:'✓';position:absolute;top:-8px;right:-8px;width:25px;height:25px;border-radius:50%;background:var(--teal);color:white;border:2px solid var(--white);font:bold 18px/21px Arial;text-align:center}
@media(max-width:700px){.selection-status{min-height:47px}.round-meta{gap:4px 10px}.round-number{font-size:11px}.live-stats{gap:8px}.available-points{min-width:70px}.points-value{font-size:28px}.stat-label{font-size:9px}}

/* Give the top nine question scorers room, with names aligned for quick reading. */
.gain-name{text-align:left}
@media(max-width:700px){
  .lesson-scores{padding:11px;gap:7px}
  .lesson-scores h3{font-size:16px}.your-gain{font-size:13px}
  .lesson-score-list{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:54px;gap:6px}
  .lesson-score-list li{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;padding:6px 8px;gap:2px}
  .gain-name{font-size:12px;line-height:1.1;flex:1;min-height:0;width:100%}
  .lesson-score-list strong{align-self:flex-end;font-size:20px;line-height:1;flex:none}
  .lesson-footer .helper{max-width:none;flex:1;min-width:0}
}
@media(max-width:700px) and (max-height:650px){
  .lesson-scores{padding:7px;gap:4px}.lesson-scores h3{font-size:14px}.your-gain{font-size:11px}
  .lesson-score-list{grid-auto-rows:42px;gap:4px}.lesson-score-list li{padding:4px 6px}
  .gain-name{font-size:11px}.lesson-score-list strong{font-size:17px}
}

/* On phones, the full passage remains in its own readable scrolling window. */
@media(max-width:700px){
  #verse-text{font-size:20px;line-height:1.4;overflow-y:auto;overscroll-behavior:contain;padding-right:5px;-webkit-overflow-scrolling:touch}
}
@media(max-width:700px) and (max-height:650px){#verse-text{font-size:18px}}

/* Phone final scores scroll independently; replay stays within reach. */
@media(max-width:700px){
  [data-screen=finished] .scoreboard,  [data-screen=intermission] .scoreboard{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;gap:8px;padding-right:3px}
  #app[data-screen=finished] .score-table,  #app[data-screen=intermission] .score-table{position:relative;flex:none;gap:0;margin:0}
  #app[data-screen=finished] .score-table thead,  #app[data-screen=intermission] .score-table thead{display:block;position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  #app[data-screen=finished] .score-table tbody,  #app[data-screen=intermission] .score-table tbody{flex:none;grid-auto-rows:auto;gap:8px}
  #app[data-screen=finished] .score-table tbody tr,  #app[data-screen=intermission] .score-table tbody tr{grid-template-columns:28px repeat(3,minmax(0,1fr)) minmax(65px,1.15fr);grid-template-rows:32px 42px;gap:4px 6px;padding:8px;border:1px solid var(--line);border-radius:14px;background:var(--white)}
  #app[data-screen=finished] .score-table tbody th,#app[data-screen=finished] .score-table tbody td,  #app[data-screen=intermission] .score-table tbody th,#app[data-screen=intermission] .score-table tbody td{padding:0;border:0;border-radius:0;background:transparent!important}
  #app[data-screen=finished] .score-table .final-rank,  #app[data-screen=intermission] .score-table .final-rank{grid-column:1;grid-row:1/3;font-size:21px;align-self:center}
  #app[data-screen=finished] .score-table .final-name,  #app[data-screen=intermission] .score-table .final-name{grid-column:2/-1;grid-row:1;font-size:23px;white-space:nowrap;overflow-wrap:normal;line-height:1.15}
  #app[data-screen=finished] .score-table td[data-label],  #app[data-screen=intermission] .score-table td[data-label]{grid-row:2;flex-direction:column;align-items:flex-start;justify-content:center;font-size:21px;line-height:1.1;gap:3px}
  #app[data-screen=finished] .score-table td:nth-child(3),  #app[data-screen=intermission] .score-table td:nth-child(3){grid-column:2}
  #app[data-screen=finished] .score-table td:nth-child(4),  #app[data-screen=intermission] .score-table td:nth-child(4){grid-column:3}
  #app[data-screen=finished] .score-table td:nth-child(5),  #app[data-screen=intermission] .score-table td:nth-child(5){grid-column:4}
  #app[data-screen=finished] .score-table td:nth-child(6),  #app[data-screen=intermission] .score-table td:nth-child(6){grid-column:5;font-size:25px;align-items:flex-end}
  #app[data-screen=finished] .score-table td[data-label]:before,  #app[data-screen=intermission] .score-table td[data-label]:before{content:attr(data-label);font-size:10px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;opacity:.8}
  #app[data-screen=finished] .score-table tr.first-place,  #app[data-screen=intermission] .score-table tr.first-place{background:var(--ink);border-color:var(--ink)}
  #app[data-screen=finished] .score-table .first-place .final-name,  #app[data-screen=intermission] .score-table .first-place .final-name{font-size:26px}
  [data-screen=finished] .results-actions{flex:none;padding-top:4px}
}

/* Use margins for the TV home stack: older Samsung browsers ignore gap. */
.couch-home{--home-copy-space:38px;--home-button-space:16px;--home-action-offset:10px}
.couch-home .hero-copy{gap:0}
.couch-home .game-intro{margin-top:var(--home-copy-space)}
.couch-home .hero-actions{display:flex;flex-direction:column;gap:0;margin-top:calc(var(--home-copy-space) + var(--home-action-offset))}
.couch-home .hero-actions>.btn{flex:none;width:100%}
.couch-home .hero-actions>.btn+.btn{margin-top:var(--home-button-space)}
@media(min-width:1700px) and (min-height:1000px){.couch-home{--home-copy-space:46px}}
@media(max-height:750px) and (min-width:701px){.couch-home{--home-copy-space:26px;--home-button-space:12px}}
@media(max-width:700px){.couch-home{--home-copy-space:15px;--home-button-space:10px;--home-action-offset:2px}}
@media(max-height:650px) and (max-width:700px){.couch-home{--home-copy-space:12px;--home-button-space:7px}}
@media(max-height:500px) and (min-width:701px){.couch-home{--home-copy-space:16px;--home-button-space:7px;--home-action-offset:5px}}

/* TV lobby spacing must also work without flex gap or the modern grid-gap alias. */
#room-capacity{font-size:18px;font-weight:bold;color:var(--teal);margin-top:6px}
@media(min-width:701px){
  [data-screen=lobby] .room-layout{grid-template-columns:minmax(0,1fr) 26%;gap:0;grid-gap:0}
  .lobby-invite{margin-left:24px}
  .lobby-invite .join-panel{height:100%;padding:24px 16px;justify-content:flex-start;gap:0}
  .lobby-invite .eyebrow{font:34px/1.1 Lilita,Arial;letter-spacing:0;color:var(--gold);margin-bottom:auto}
  .lobby-invite .room-code{font-size:70px;font-size:6vw;line-height:1;letter-spacing:3px;margin-top:22px}
  .lobby-invite .qr{flex:none;width:180px;height:180px;width:17vw;height:17vw;max-width:260px;max-height:260px;margin-top:22px;margin-bottom:22px}
  .lobby-invite .join-link{font-size:26px;font-size:2vw;line-height:1.3;font-weight:bold;text-decoration:none}
  .lobby-invite .join-link span{display:block}
  .lobby-invite .join-link span:last-child{color:var(--gold);font-size:1.2em}
  .lobby-invite #network-help{display:block;font-size:22px;line-height:1.3;margin-top:14px;margin-bottom:auto}
  .lobby-players{gap:0}
  .lobby-players .settings{gap:0;grid-gap:0}
  .lobby-players .setting-card:first-child{margin-right:8px}
  .lobby-players .setting-card:last-child{margin-left:8px}
  .roster-heading{flex:none;margin:22px 0 10px}
  #player-count{font:30px/1.15 Lilita,Arial;letter-spacing:.4px;color:var(--teal)}
  #app #players{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;grid-gap:0;column-gap:0}
  #app #players .player-row{gap:0;padding:8px 0}
  #app #players .player-row:nth-child(odd){margin-right:22px}
  #app #players .player-row:nth-child(even){margin-left:22px}
  #players .player-name{margin-left:10px}
  #players .player-status{margin-left:12px;white-space:nowrap}
  #players{--lobby-name-size:30px;--lobby-status-size:18px;--lobby-avatar-size:36px}
  #lobby-help{margin-top:14px;margin-bottom:16px}
}
@media(min-width:1700px) and (min-height:1000px){
  .lobby-invite{margin-left:32px}.lobby-invite .join-panel{padding:32px 20px}
  .lobby-invite .eyebrow{font-size:46px}.lobby-invite .room-code{font-size:110px}
  .lobby-invite .qr{margin-top:32px;margin-bottom:32px}.lobby-invite #network-help{font-size:28px;margin-top:22px}
  #player-count{font-size:40px}.roster-heading{margin-top:28px;margin-bottom:16px}#room-capacity{font-size:24px}
  #players{--lobby-name-size:42px;--lobby-status-size:25px;--lobby-avatar-size:50px}
}
@media(max-height:750px) and (min-width:701px){
  .lobby-invite .join-panel{padding:18px 12px}.lobby-invite .eyebrow{font-size:30px}
  .lobby-invite .room-code{font-size:64px;margin-top:16px}.lobby-invite .qr{width:170px;height:170px;margin:16px 0}
  .lobby-invite #network-help{font-size:19px;margin-top:12px}.roster-heading{margin:18px 0 8px}
  #player-count{font-size:27px}#app #players .player-row{padding:5px 0}
  #lobby-help{margin-top:8px;margin-bottom:12px}
}
@media(max-height:500px) and (min-width:701px){
  .lobby-invite .join-panel{padding:10px}.lobby-invite .eyebrow{font-size:24px}
  .lobby-invite .room-code{font-size:42px;margin-top:8px}.lobby-invite .qr{width:100px;height:100px;margin:8px 0}
  .lobby-invite .join-link{font-size:19px}.lobby-invite #network-help{font-size:14px;margin-top:6px}
  .roster-heading{margin:10px 0 4px}#player-count{font-size:21px}#room-capacity{font-size:13px;margin-top:2px}
  #players{--lobby-name-size:21px;--lobby-status-size:12px;--lobby-avatar-size:24px}
  #app #players .player-row{padding:1px 0}#lobby-help{margin:4px 0 6px}
}
@media(max-width:700px){#player-count{font:22px/1.15 Lilita,Arial}#room-capacity{font-size:14px;margin-top:4px}}
@media(min-width:701px){
  #app.large-room #players .player-row{padding-top:0;padding-bottom:0}
  #app.large-room #players .avatar{display:none}
  #app.large-room #players .player-name{margin-left:0}
}
@media(max-height:750px) and (min-width:701px){
  #app.large-room .setting-card{padding:6px 8px}
  #app.large-room .setting-card label{font-size:15px;margin-bottom:2px}
  #app.large-room .setting-card select{font-size:23px;min-height:29px;padding:1px 3px}
  #app.large-room .round-total{font-size:12px}
  #app.large-room .roster-heading{margin-top:14px;margin-bottom:6px}
  #app.large-room #player-count{font-size:25px}
  #app.large-room #room-capacity{font-size:15px;margin-top:3px}
  #app.large-room #players{--lobby-name-size:27px;--lobby-status-size:17px}
  #app.large-room #lobby-help{font-size:22px;margin:8px 0 10px}
}

/* Explicit TV board spacing survives older Samsung browsers without gap support. */
@media(min-width:701px){
  #question-layout{gap:0;grid-gap:0}
  #question-layout>aside{margin-left:24px;gap:0}
  #question-layout .game-main{gap:0}
  #question-layout .round-top{gap:0;padding-bottom:14px}
  #question-layout .round-meta{gap:0;padding-right:16px}
  #question-layout .round-category{margin-right:22px}
  #question-layout .round-number{margin-top:6px}
  #question-layout .live-stats{gap:0;flex:none;margin-left:12px}
  #question-layout .timer{width:94px;min-width:94px;height:94px;font-size:54px;border-width:5px;margin-left:22px}
  #question-layout .points-value{font-size:42px}
  #question-layout .time-track{margin-bottom:14px}
  #question-layout .question{margin-bottom:18px}
  #question-layout .options{gap:0;grid-gap:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}
  #question-layout .answer{margin:8px;padding:18px;gap:0}
  #question-layout .answer .letter{margin-right:20px}
  #question-layout .answer>span:last-child{min-width:0}
  #question-layout .selection-status{margin-top:12px}
  #question-layout .leaderboard{gap:0}
  #question-layout .leaderboard .side-heading{margin-bottom:14px;line-height:1.2;font-size:21px}
  #question-layout #scores .player-row{gap:0}
  #question-layout #scores .player-name{margin-left:10px;white-space:nowrap;overflow-wrap:normal}
  #question-layout #scores .score{margin-left:12px;flex:none}
  #app:not(.medium-room) #scores .player-name{font-size:32px}
  #app:not(.medium-room) #scores .score{font-size:36px}
  #app:not(.medium-room) #scores .avatar{width:34px;height:34px;font-size:22px}
  #app.medium-room:not(.large-room) #scores .player-name{font-size:24px}
  #app.medium-room:not(.large-room) #scores .score{font-size:28px}
  #question-layout .board-code{gap:0;margin-top:16px}
  #question-layout .board-join-details{gap:0;margin-left:14px}
  #question-layout .board-join-details>span,#question-layout .board-join-details>strong{margin-bottom:4px}
}
@media(min-width:1700px) and (min-height:1000px){
  #question-layout>aside{margin-left:32px}
  #question-layout .round-top{padding-bottom:20px}
  #question-layout .timer{width:116px;min-width:116px;height:116px;font-size:68px;margin-left:30px}
  #question-layout .points-value{font-size:52px}
  #question-layout .time-track{margin-bottom:20px}
  #question-layout .question{margin-bottom:24px}
  #question-layout .answer{margin:12px;padding:25px}
  #question-layout .answer .letter{margin-right:28px}
  #question-layout .leaderboard .side-heading{font-size:28px;margin-bottom:20px}
  #app:not(.medium-room) #scores .player-name{font-size:42px}
  #app:not(.medium-room) #scores .score{font-size:46px}
  #app:not(.medium-room) #scores .avatar{width:44px;height:44px;font-size:28px}
}
@media(max-height:750px) and (min-width:701px){
  #question-layout .round-top{padding-bottom:10px}
  #question-layout .timer{width:82px;min-width:82px;height:82px;font-size:48px;margin-left:18px}
  #question-layout .points-value{font-size:36px}
  #question-layout .time-track{margin-bottom:10px}
  #question-layout .question{font-size:32px;margin-bottom:14px}
  #question-layout .answer{padding:12px;margin:7px;font-size:23px}
  #question-layout .answer .letter{margin-right:18px}
  #question-layout .selection-status{font-size:18px;margin-top:9px}
  #question-layout .leaderboard .side-heading{font-size:19px;margin-bottom:10px}
  #app:not(.medium-room) #scores .player-name{font-size:30px}
  #app:not(.medium-room) #scores .score{font-size:34px}
}
@media(max-height:500px) and (min-width:701px){
  #question-layout .timer{width:58px;min-width:58px;height:58px;font-size:34px;margin-left:12px}
  #question-layout .points-value{font-size:29px}
  #question-layout .round-top{padding-bottom:7px}
  #question-layout .question{font-size:24px;margin-bottom:8px}
  #question-layout .time-track{margin-bottom:7px}
  #question-layout .answer{margin:5px;padding:7px;font-size:17px}
  #question-layout .answer .letter{margin-right:12px}
  #question-layout .selection-status{font-size:13px;margin-top:6px}
  #question-layout .leaderboard .side-heading{font-size:15px;margin-bottom:6px}
  #app:not(.medium-room) #scores .player-name{font-size:23px}
  #app:not(.medium-room) #scores .score{font-size:26px}
  #question-layout .board-code{margin-top:10px}
}
@media(min-width:701px){
  #app.large-room #scores .player-row{padding:0}
  #app.large-room #scores .player-name{line-height:1.1}
}

/* The answer uses one font and baseline so its letter sits level with its text. */
.learning-letter,.learning-label{font-family:inherit;font-weight:inherit;line-height:inherit;vertical-align:baseline}
/* Give the story its own emphasis and compact the TV question-points list. */
@media(min-width:701px){
  .learning-screen{gap:0}
  .learning-answer{margin-bottom:24px}
  .lesson-layout{gap:0;grid-gap:0;grid-template-columns:minmax(0,1fr) 30%}
  .lesson-reading{gap:0}
  .learning-fact{flex:none;font-size:32px;line-height:1.25;font-weight:700;color:var(--ink);background:#ffedb9;border-left:7px solid var(--orange);border-radius:0 16px 16px 0;padding:16px 20px;margin:14px 0 22px}
  .verse-card{gap:0}
  .verse-card h3{margin-bottom:14px}
  .verse-credit{margin-top:12px}
  .lesson-scores{align-self:start;height:100%;max-height:calc(82px + var(--lesson-count,9)*76px);margin-left:24px;gap:0;padding:16px}
  .lesson-scores h3{font:26px/1.15 Lilita,Arial;margin-bottom:14px}
  .lesson-scores .your-gain:not(:empty){margin-bottom:12px}
  .lesson-score-list{gap:0;grid-gap:0}
  .lesson-score-list li{gap:0;padding:10px 12px}
  .lesson-score-list li:not(:last-child){margin-bottom:8px}
  .lesson-score-list .gain-name{font-size:27px;line-height:1.15;white-space:nowrap;overflow-wrap:normal}
  .lesson-score-list strong{margin-left:14px;font-size:34px;line-height:1;flex:none}
  #app:not(.medium-room) .lesson-score-list .gain-name{font-size:30px}
  #app:not(.medium-room) .lesson-score-list strong{font-size:38px}
  .lesson-footer{margin-top:18px}
}
@media(min-width:1700px) and (min-height:1000px){
  .learning-answer{margin-bottom:32px}
  .learning-fact{font-size:40px;padding:22px 26px;margin:18px 0 28px}
  .lesson-scores{margin-left:32px;max-height:calc(100px + var(--lesson-count,9)*94px);padding:20px}
  .lesson-scores h3{font-size:32px;margin-bottom:20px}
  .lesson-score-list .gain-name{font-size:32px}
  .lesson-score-list strong{font-size:40px}
  #app:not(.medium-room) .lesson-score-list .gain-name{font-size:36px}
  #app:not(.medium-room) .lesson-score-list strong{font-size:44px}
}
@media(max-height:750px) and (min-width:701px){
  .learning-answer{margin-bottom:18px}
  .learning-fact{font-size:28px;padding:14px 16px;margin:12px 0 18px}
  .lesson-scores{padding:12px;max-height:calc(64px + var(--lesson-count,9)*64px)}
  .lesson-scores h3{font-size:23px;margin-bottom:12px}
  .lesson-score-list li{padding:6px 10px}
  .lesson-score-list .gain-name{font-size:23px}
  .lesson-score-list strong{font-size:29px}
  #app:not(.medium-room) .lesson-score-list .gain-name{font-size:28px}
  #app:not(.medium-room) .lesson-score-list strong{font-size:34px}
  .lesson-footer{margin-top:14px}
}
@media(max-height:500px) and (min-width:701px){
  .learning-answer{margin-bottom:10px}
  .learning-fact{font-size:20px;padding:8px 12px;margin:8px 0 12px}
  .verse-card h3{margin-bottom:8px}.verse-credit{margin-top:6px}
  .lesson-scores{padding:8px;max-height:calc(50px + var(--lesson-count,9)*48px)}
  .lesson-scores h3{font-size:19px;margin-bottom:8px}
  .lesson-score-list li{padding:3px 6px}
  .lesson-score-list li:not(:last-child){margin-bottom:5px}
  .lesson-score-list .gain-name,#app:not(.medium-room) .lesson-score-list .gain-name{font-size:20px}
  .lesson-score-list strong,#app:not(.medium-room) .lesson-score-list strong{font-size:25px;margin-left:8px}
  .lesson-footer{margin-top:9px}
}

/* A choice is neutral until the server reveals correctness. */
.answer.selected{position:relative;background:#e6eefb;border-color:#385f91;box-shadow:0 0 0 2px #385f91,0 4px 0 #12383d20}
.answer.selected .letter:after{display:none}
.answer.selected:after{content:'Selected';position:absolute;right:14px;top:-10px;padding:3px 10px;border-radius:12px;background:#385f91;color:white;font:bold 12px/1.2 Arial;letter-spacing:.2px}
.answer.removed,.answer.final-fade{opacity:.28;pointer-events:none}
.answer.correct{opacity:1;background:#dcefd3;border-color:var(--teal);box-shadow:0 0 0 2px var(--teal),0 4px 0 #12383d20}
@media(max-width:700px){
  .round-top{padding-top:5px;padding-bottom:7px}
  .live-stats{gap:0;margin-left:10px;flex:none}
  .timer{margin-left:16px;min-width:50px;width:50px;height:50px;font-size:29px}
  .available-points{min-width:65px}
}
.answer-celebration{position:fixed;inset:0;z-index:12;pointer-events:none}
.celebration-message{position:absolute;top:22%;left:50%;transform:translateX(-50%);width:270px;max-width:85vw;padding:15px 20px;border:3px solid var(--teal);border-radius:20px;background:var(--ink);color:var(--white);text-align:center;box-shadow:0 7px 0 #12383d25}
.celebration-message strong{display:block;font:36px/1.1 Lilita,Arial;color:var(--gold)}
.celebration-message span{display:block;margin-top:6px;font-size:21px;font-weight:bold}
.confetti{position:absolute;inset:0;overflow:hidden}
.confetti-bit{position:absolute;top:-24px;left:var(--x);width:10px;height:18px;border-radius:2px;background:var(--gold);animation:correct-confetti 1.45s var(--delay) ease-in both}
.confetti-bit:nth-child(3n){background:var(--orange)}
.confetti-bit:nth-child(3n+1){background:#7bc9b8}
@keyframes correct-confetti{0%{opacity:0;transform:translateY(0) rotate(0)}10%{opacity:1}100%{opacity:0;transform:translateY(85vh) rotate(var(--spin))}}
.departing-question .confetti-bit{animation:none;opacity:0}
@media(prefers-reduced-motion:reduce){.confetti{display:none}}

/* Welcoming players without another button or readiness label. */
.lobby-welcome{flex:none;margin:0 0 12px;padding:12px 16px;border-left:5px solid var(--orange);border-radius:12px;background:#fff0bd;color:var(--ink)}
.lobby-welcome strong{display:block;font:30px/1.15 Lilita,Arial;overflow-wrap:anywhere}
.lobby-welcome>span{display:block;margin-top:5px;font-size:18px;color:var(--muted)}
#lobby-help[hidden],.lobby-welcome[hidden]{display:none}
.player-avatar{color:var(--ink);font-weight:800;flex:none;border:1px solid #12383d18;box-sizing:border-box}
.compact-avatar{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:1.35em;height:1.35em;margin-right:.4em;border-radius:35%;font-size:.8em;line-height:1}
.player-rank{flex:none;min-width:1.1em;margin-right:6px;font-size:.8em;color:var(--muted);font-weight:bold;text-align:center}
#scores .player-avatar{margin-right:2px}
#players .player-row{border-radius:9px}
#app.large-room #players .player-avatar{display:flex;width:22px;height:22px;font-size:14px}
@keyframes player-arrives{0%,20%{background:#ffe995;box-shadow:inset 0 0 0 2px #e8b72e}100%{background:transparent;box-shadow:inset 0 0 0 2px transparent}}
@media(max-width:700px){
 .lobby-welcome{margin-bottom:8px;padding:9px 12px}
 .lobby-welcome strong{font-size:23px}
 .lobby-welcome>span{font-size:14px;margin-top:3px}
 #app.large-room #players .player-avatar{width:22px;height:22px;font-size:14px}
}
@media(max-height:650px) and (max-width:700px){.lobby-welcome{padding:6px 10px;margin-bottom:5px}.lobby-welcome strong{font-size:20px}.lobby-welcome>span{font-size:12px}}
@media(prefers-reduced-motion:reduce){#players .player-row{animation:none!important}}

/* General categories use the learning space for the explanation, without a Scripture panel. */
.general-lesson .lesson-reading{justify-content:center}
.general-lesson .learning-fact{flex:1;display:flex;align-items:center;background:var(--white);border:2px solid var(--line);border-left:8px solid var(--orange);border-radius:20px;padding:30px;font-size:38px;line-height:1.35;margin-top:18px}
.lesson-source{flex:none;font-size:18px;margin-top:16px;color:var(--muted)}
.lesson-source a{color:var(--teal);text-decoration:underline}
@media(min-width:1700px) and (min-height:1000px){.general-lesson .learning-fact{font-size:46px;padding:40px}.lesson-source{font-size:24px}}
@media(max-width:700px){.general-lesson .learning-fact{font-size:23px;padding:16px;margin-top:8px;line-height:1.3;overflow-y:auto;display:block}.lesson-source{font-size:13px;margin-top:7px}}
@media(max-height:650px) and (max-width:700px){.general-lesson .learning-fact{font-size:20px;padding:12px}.lesson-source{font-size:12px}}

/* Keep the reading pause visible on the TV and on every player's phone. */
.continue-countdown{flex:none;font:22px/1.15 Lilita,Arial;color:var(--teal)}
.lesson-footer .helper{flex:1}
@media(max-width:700px){
  .learning-fact{background:#ffedb9;border-left:5px solid var(--orange);border-radius:0 12px 12px 0;padding:10px 12px;margin:5px 0 8px;font-weight:700;flex:none}
  .general-lesson .learning-fact{background:#ffedb9;border-left:5px solid var(--orange)}
  .lesson-footer{flex-wrap:wrap}
  .continue-countdown{width:100%;text-align:center;font-size:16px;margin-bottom:3px}
}
@media(max-width:700px) and (max-height:650px){
  .learning-fact{padding:6px 9px;margin:3px 0 5px}
  .continue-countdown{font-size:13px;margin-bottom:0}
}
/* Compact score cards grow with the roster instead of filling the whole sidebar. */
@media(min-width:701px){
  #question-layout .leaderboard{flex:0 1 auto;height:auto;max-height:calc(100% - 150px);background:#e4efdc;padding:16px;border:0}
  #question-layout .leaderboard .side-heading{font:26px/1.15 Lilita,Arial;letter-spacing:0;text-align:center;margin-bottom:14px}
  #question-layout #scores{flex:0 1 auto;grid-template-rows:repeat(var(--score-count,1),minmax(0,76px))}
  #question-layout #scores .player-row{background:var(--white);border:0;border-radius:10px;padding:10px 12px}
  #question-layout #scores .player-row:not(:last-child){margin-bottom:8px}
  #question-layout .board-code{flex:none}
}
@media(min-width:1700px) and (min-height:1000px){#question-layout #scores{grid-template-rows:repeat(var(--score-count,1),minmax(0,94px))}}
@media(max-height:750px) and (min-width:701px){
  #question-layout .leaderboard{padding:12px}
  #question-layout .leaderboard .side-heading{font-size:23px;margin-bottom:12px}
  #question-layout #scores{grid-template-rows:repeat(var(--score-count,1),minmax(0,64px))}
  #question-layout #scores .player-row{padding:6px 10px}
}
@media(max-height:500px) and (min-width:701px){
  #question-layout .leaderboard{padding:8px;max-height:calc(100% - 95px)}
  #question-layout .leaderboard .side-heading{font-size:19px;margin-bottom:8px}
  #question-layout #scores{grid-template-rows:repeat(var(--score-count,1),minmax(0,48px))}
  #question-layout #scores .player-row{padding:3px 6px}
}
@media(min-width:701px){
  #question-layout #scores{grid-template-columns:minmax(0,1fr)}
  #question-layout #scores .player-row{min-height:0}
  #app.large-room #scores .player-row{padding:0 5px}
  #app.large-room #scores .player-row:not(:last-child){margin-bottom:2px}
}

/* The TV keeps a way back into the game even when every phone disconnects. */
.lesson-sidebar{display:flex;flex-direction:column;min-height:0}
.lesson-rejoin{display:flex;align-items:center;background:#e4efdc;border-radius:16px;padding:12px;margin-top:16px;flex:none;text-align:left}
.lesson-rejoin img{width:112px;height:112px;flex:none;background:white;border-radius:10px;margin-right:14px}
.lesson-rejoin>div{min-width:0}
.lesson-rejoin h3{font:22px/1.15 Lilita,Arial}
.lesson-rejoin strong{display:block;font:36px/1.1 Lilita,Arial;letter-spacing:2px;margin:5px 0}
.lesson-rejoin a{display:block;font-size:14px;overflow-wrap:anywhere}
.lesson-rejoin p{font-size:14px;margin-top:5px}
@media(min-width:701px){
 .lesson-sidebar{margin-left:24px}
 .lesson-sidebar .lesson-scores{margin-left:0;height:auto;flex:0 1 auto;width:100%}
 .lesson-footer .btn{min-width:170px}
 .lesson-footer #lesson-home{flex:none}
}
@media(min-width:1700px) and (min-height:1000px){.lesson-sidebar{margin-left:32px}.lesson-rejoin img{width:140px;height:140px}.lesson-rejoin strong{font-size:44px}.lesson-rejoin h3{font-size:28px}.lesson-rejoin a,.lesson-rejoin p{font-size:18px}}
@media(max-height:750px) and (min-width:701px){.lesson-rejoin{padding:9px;margin-top:12px}.lesson-rejoin img{width:96px;height:96px;margin-right:10px}.lesson-rejoin strong{font-size:30px}.lesson-rejoin h3{font-size:20px}.lesson-rejoin p,.lesson-rejoin a{font-size:12px}}
@media(max-width:700px){.lesson-sidebar{flex:none}.lesson-rejoin{display:none}}
@media(max-height:500px) and (min-width:701px){.lesson-rejoin{padding:6px;margin-top:8px}.lesson-rejoin img{width:70px;height:70px}.lesson-rejoin h3{font-size:16px}.lesson-rejoin strong{font-size:24px}.lesson-rejoin p{display:none}.lesson-footer .btn{min-width:130px}.lesson-footer #lesson-home{font-size:13px}}

/* Keep Scripture study in a separate tab while the player stays in the game. */
.scripture-link{color:inherit;text-decoration:underline;text-underline-offset:3px;display:inline-block;padding:4px 0}.scripture-link:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:3px}

/* Clear phone camera cutouts when the answer screen hides the header. */
@media(max-width:700px){body.learning #app{padding-top:36px;padding-top:max(36px,calc(env(safe-area-inset-top,0px) + 16px))}}

/* TV settings use real game cards instead of the television's native dropdown. */
.setting-picker-trigger{display:none}
@media(min-width:701px){
 .settings .setting-card select{display:none}
 .setting-picker-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:46px;background:transparent;border:0;border-radius:8px;color:var(--ink);text-align:left;padding:4px 5px;font:30px/1.15 Lilita,Arial}
 .setting-picker-trigger:disabled{opacity:1}.setting-picker-trigger:disabled .picker-change{display:none}
 .picker-change{font:bold 15px/1.2 Arial;margin-left:14px;white-space:nowrap}
 .setting-picker-trigger:focus{outline:4px solid var(--orange);outline-offset:3px}
}
.setting-picker{position:fixed;inset:0;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;align-items:center;justify-content:center;background:rgba(17,47,55,.8);padding:24px}
.picker-panel{width:100%;max-width:1040px;max-height:100%;overflow:auto;background:var(--cream,#fff7e4);border:3px solid var(--ink);border-radius:28px;padding:30px;box-shadow:0 10px 0 rgba(0,0,0,.2)}
.picker-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.picker-top .eyebrow{font-size:16px;margin-bottom:8px}.picker-top h2{font:44px/1.1 Lilita,Arial;color:var(--ink)}.picker-close{flex:none;margin-left:24px;font-size:22px}
.picker-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:24px}.picker-choices.round-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
.picker-choice{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:24px;border:3px solid var(--ink);border-radius:20px;background:var(--white);color:var(--ink);box-shadow:0 6px 0 var(--ink)}
.picker-symbol{display:flex;align-items:center;justify-content:center;background:#dcebd4;border-radius:14px;min-width:64px;height:64px;padding:0 10px;font:44px/1 Lilita,Arial;margin-bottom:16px}.picker-choice strong{font:36px/1.1 Lilita,Arial;margin-bottom:12px}.picker-description{font:21px/1.35 Arial;flex:1}.picker-selected{visibility:hidden;font:bold 17px/1 Arial;border-radius:16px;background:var(--ink);color:white;padding:7px 12px;margin-top:18px}
.picker-choice[aria-pressed=true]{background:var(--gold)}.picker-choice[aria-pressed=true] .picker-selected{visibility:visible}.picker-choice:focus{outline:5px solid var(--orange);outline-offset:5px}.picker-hint{font-size:20px;text-align:center;margin-top:25px;color:var(--muted)}
@media(min-width:1700px) and (min-height:1000px){.setting-picker-trigger{font-size:38px;min-height:56px}.picker-change{font-size:21px}.picker-panel{max-width:1350px;padding:40px}.picker-top h2{font-size:60px}.picker-choice{padding:32px}.picker-choice strong{font-size:48px}.picker-description{font-size:28px}.picker-symbol{font-size:58px;height:84px;min-width:84px}.picker-hint,.picker-close{font-size:27px}}
@media(max-height:650px){.picker-panel{padding:22px}.picker-top{margin-bottom:20px}.picker-top h2{font-size:34px}.picker-choice{padding:18px}.picker-choice strong{font-size:28px}.picker-description{font-size:18px}.picker-symbol{height:45px;min-width:45px;font-size:32px;margin-bottom:10px}.picker-selected{margin-top:12px}.picker-hint{margin-top:20px;font-size:17px}}
@media(max-width:700px){.setting-picker{padding:14px}.picker-choices,.picker-choices.round-choices{grid-template-columns:1fr}.picker-top h2{font-size:27px}.picker-close{font-size:17px;margin-left:12px}.picker-panel{padding:18px}}

/* Round totals grow with the roster instead of stretching one player across the screen. */
[data-screen=intermission] .results{justify-content:center;gap:0}
[data-screen=intermission] .results-heading{margin-bottom:22px}
[data-screen=intermission] .scoreboard{flex:0 1 auto;height:calc(var(--summary-rows,1)*72px + 32px)}
[data-screen=intermission] .break-countdown{margin-top:20px}
[data-screen=intermission] .final-name{white-space:nowrap;overflow-wrap:normal}
@media(min-width:1700px) and (min-height:1000px){[data-screen=intermission] .scoreboard{height:calc(var(--summary-rows,1)*96px + 40px)}}
@media(max-width:700px){
 [data-screen=intermission] .results-heading{margin-bottom:18px}
 [data-screen=intermission] .scoreboard{height:auto;flex:0 1 auto}
 [data-screen=intermission] .break-countdown{margin-top:18px}
}
/* Four categories stay visible together on a TV, including shorter browser viewports. */
@media(min-width:701px){
 .category-grid-picker .picker-panel{max-width:1120px;padding:24px}
 .category-grid-picker .picker-top{margin-bottom:20px}
 .category-grid-picker .picker-choices{grid-gap:20px}
 .category-grid-picker .picker-choice{position:relative;display:grid;grid-template-columns:72px minmax(0,1fr);grid-template-rows:auto 1fr;align-items:start;grid-column-gap:18px;grid-row-gap:10px;padding:20px;min-height:166px}
 .category-grid-picker .picker-symbol{grid-row:1 / 3;width:72px;min-width:0;height:72px;font-size:38px;margin:0}
 .category-grid-picker .picker-choice strong{font-size:34px;margin:0;padding-right:20px}
 .category-grid-picker .picker-description{grid-column:2;font-size:20px;line-height:1.3}
 .category-grid-picker .picker-selected{position:absolute;top:8px;right:8px;width:12px;height:12px;padding:0;margin:0;font-size:0;border-radius:50%;background:var(--ink)}
 .category-grid-picker .picker-hint{margin-top:20px}
}
@media(min-width:701px) and (max-height:650px){
 .category-grid-picker .picker-panel{padding:18px}
 .category-grid-picker .picker-top{margin-bottom:15px}
 .category-grid-picker .picker-choice{min-height:130px;padding:14px;grid-template-columns:56px minmax(0,1fr);grid-column-gap:14px;grid-row-gap:8px}
 .category-grid-picker .picker-symbol{height:56px;width:56px;font-size:30px}
 .category-grid-picker .picker-choice strong{font-size:28px}
 .category-grid-picker .picker-description{font-size:18px}
 .category-grid-picker .picker-hint{margin-top:16px}
}
