/* Compact game screens, host chart and continuous rank motion. */
body.playing>header,body.playing>footer{display:none}body.playing{overflow-x:hidden}body.playing main{padding:14px 3%;max-width:1400px;min-height:100dvh}.playing .game{min-height:calc(100dvh - 28px);padding-bottom:74px}.question-screen{display:flex;flex-direction:column;height:calc(100dvh - 28px)}.question-screen .game-top{flex:none;gap:7px}.game-top .pill{padding:5px 11px;font-size:13px}.game-top>button{padding:7px 10px}.question-screen h1{margin:10px auto;font-size:clamp(20px,3vw,36px);flex:none;max-height:21dvh;overflow:auto}.question-screen .instruction{margin:3px 0 12px;font-size:13px}.question-screen .timer{margin:10px 0;height:5px;flex:none}.question-screen #answer-area{flex:1;min-height:0}.question-screen .answers{height:100%;grid-auto-rows:minmax(0,1fr)}.question-screen .answer{min-height:0;padding:15px 15px 15px 45px;border-radius:12px;box-shadow:none}.question-screen .answer-text{font-size:clamp(15px,2.4vw,29px);line-height:1.15;overflow:auto;max-height:100%}.question-screen .game-controls{margin:12px 0 0;flex:none}.question-screen #answer-status{font-size:12px;margin:5px 0;min-height:18px;text-align:center}.question-screen{padding-bottom:0!important}.question-screen .reveal-img,.question-screen .pin-image{max-height:22dvh;width:auto;max-width:100%;margin:5px auto;flex:none}.question-screen .pin-image img{max-height:22dvh;width:auto;max-width:100%;object-fit:contain}.question-screen .order-list{gap:5px}.question-screen .order-row{padding:5px 10px;margin:0;font-size:14px}.question-screen .order-row button{padding:3px 9px}.question-screen .text-answer{margin:10px auto}.question-screen .editor-section{margin:8px auto;padding:12px;max-width:750px}.question-screen audio{height:38px}.corner-next{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:8;min-width:105px!important}.question-screen #reveal-live{position:static;margin-left:auto}.question-screen:has(#reveal-live) .game-controls{justify-content:flex-end}.reveal-screen h1{font-size:clamp(22px,3vw,36px);margin:18px auto}.host-chart{height:clamp(130px,32dvh,290px);display:grid;grid-template-columns:repeat(var(--choices),minmax(0,1fr));gap:clamp(8px,3vw,35px);border-bottom:2px solid #b8accf80;padding:44px 4% 0;margin:20px auto 30px;max-width:1000px;align-items:end}.chart-column{position:relative;height:100%;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;min-width:0}.chart-bar{width:75%;max-width:130px;background:var(--answer);border-radius:9px 9px 0 0;flex:none;min-height:3px;animation:bar-rise .6s ease-out;transform-origin:bottom}.chart-column.correct .chart-bar{outline:3px solid white;outline-offset:-2px;box-shadow:0 0 22px #c1f47a25}.chart-count{position:absolute;bottom:calc(var(--bar-height,0)*1%);font-size:25px;font-weight:750;transform:translateY(-6px);z-index:2}.chart-count span{display:block;color:var(--green);font-size:25px;line-height:1}.chart-symbol{position:absolute;bottom:-30px;color:var(--answer);font-size:22px}.reveal-choices{display:grid;grid-template-columns:1fr 1fr;gap:9px;max-width:1080px;margin:25px auto 8px}.reveal-choice{display:flex;align-items:center;gap:15px;padding:12px 18px;border:2px solid transparent;background:color-mix(in srgb,var(--answer) 33%,#160f28);color:#c8bdd8;border-radius:10px;overflow-wrap:anywhere}.reveal-choice.correct{background:var(--answer);border-color:white;color:white}.reveal-choice b{margin-left:auto;font-size:24px}.chart-caption{text-align:center;margin:10px 0}.correct-answer{font-size:clamp(20px,3vw,30px);color:var(--green)}.earned{color:var(--green);font-size:23px}.waiting{text-align:center;color:var(--muted)}.explanation{text-align:center;margin:10px auto;max-width:900px}.rankings-screen h1{text-align:center;margin:18px 0 25px}.rank-board{--rank-step:clamp(52px,9dvh,80px);height:calc(var(--rank-step)*6);max-width:950px;margin:auto;position:relative;overflow:hidden;isolation:isolate}.rank-player{position:absolute;left:0;right:0;top:0;height:calc(var(--rank-step) - 8px);transform:translateY(calc(var(--rank)*var(--rank-step)));display:grid;grid-template-columns:26px 45px minmax(0,1fr) 55px 95px 32px;align-items:center;gap:15px;background:#241a37;border:1px solid #ffffff0c;padding:8px 18px;border-radius:13px;transition:transform 1400ms cubic-bezier(.22,.75,.16,1),opacity 1000ms;background-clip:padding-box;will-change:transform;font-variant-numeric:tabular-nums}.rank-player.you{border-color:#b597fa95;background:#352348}.rank-number{color:#d3c5e6}.player-animal{display:inline-grid;place-items:center;width:42px;height:42px;font-size:30px;background:#ffffff0c;border-radius:50%}.rank-name{font-weight:700;font-size:clamp(15px,2.3vw,22px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-streak{color:#f1bd71;font-size:14px}.rank-score{font-size:clamp(17px,2.5vw,24px);text-align:right}.rank-change{font-size:13px;color:var(--green);text-align:right}.leaderboard .player-animal{flex:none}.animal-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0}.animal-choice{display:flex;flex-direction:column;align-items:center;gap:5px;text-transform:capitalize;border:2px solid transparent;font-size:13px}.animal-choice span{font-size:40px}.animal-choice.selected{border-color:var(--purple);background:#a98aff25}.question-timer{padding:12px;border:1px solid #a98aff50;border-radius:12px;background:#a98aff0a}.question-timer small{font-size:12px;color:var(--muted)}.question-timer input{font-weight:700}.lobby-qr{width:180px;height:180px;background:white;border-radius:12px;margin:15px auto;padding:5px}.lobby-qr svg{width:100%;height:100%}#animal-profile{font-size:24px;padding:4px}.game .result-panel{border:0;background:#21173580}@keyframes bar-rise{from{transform:scaleY(0)}to{transform:scaleY(1)}}@media(max-width:600px){body.playing main{padding:9px 12px}.playing .game{min-height:calc(100dvh - 18px)}.question-screen{height:calc(100dvh - 18px)}.game-top .pill{font-size:11px;padding:4px 7px}.game-top>button{font-size:12px;padding:5px 7px}.question-screen .answer{padding:22px 8px 8px}.question-screen .shape{top:3px;left:8px;font-size:13px}.question-screen .answers{gap:8px}.question-screen .game-controls button{min-height:44px;width:100%}.question-screen .game-controls{margin-top:9px}.rank-player{grid-template-columns:16px 30px minmax(0,1fr) 35px 58px 22px;gap:7px;padding:6px 9px;border-radius:10px}.player-animal{width:30px;height:30px;font-size:24px}.rank-streak{font-size:11px}.rank-change{font-size:11px}.rank-board{--rank-step:clamp(52px,9dvh,70px)}.animal-grid{grid-template-columns:repeat(3,1fr)}.reveal-choice{padding:9px;font-size:13px;gap:6px}.chart-count{font-size:20px}.host-chart{padding-top:35px}.header-actions{gap:3px}header .header-actions #account{max-width:90px;overflow:hidden;text-overflow:ellipsis}.corner-next{right:14px;bottom:14px}}
@media(prefers-reduced-motion:reduce){.rank-player{transition:opacity .2s}.chart-bar{animation:none}}
.leaderboard .name>.profile-icon{width:32px;height:32px;margin-right:6px}
.question-screen .answer-text{overflow:hidden}.question-screen h1{overflow:hidden}.rank-player{animation:none}
.question-screen #reveal-live{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));width:auto}.question-screen:has(#reveal-live) .game-controls{min-height:46px}

[hidden]{display:none!important}.admin-person{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.admin-person p{margin:6px 0}.admin-person .row{flex-wrap:wrap}#admin-users{margin-top:16px}#category-form{align-items:end;flex-wrap:wrap}

.profile-icon{display:inline-block;width:100%;height:100%;max-width:128px;max-height:128px;object-fit:contain;border-radius:50%;vertical-align:middle}#animal-profile .profile-icon{width:32px;height:32px}.animal-choice>span{display:grid;place-items:center;width:48px;height:48px}.admin-icon-grid{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.admin-icon-tile{display:flex;flex-direction:column;align-items:center;gap:6px;max-width:110px;text-align:center;font-size:13px;overflow-wrap:anywhere}.icon-preview .profile-icon{width:80px;height:80px;background:#ffffff10;margin:12px 0}.danger{background:#5b233c;color:#ffe0e7;border:1px solid #e9799770}#admin-quiz-filter{min-width:170px}#admin-quiz-search{flex:1;min-width:180px}.animal-choice .profile-icon{width:48px;height:48px}

.my-quizzes-tools{margin:0 0 20px;flex-wrap:wrap;gap:12px}.quiz-card-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.card-bottom{flex-wrap:wrap;gap:12px}.quiz-save-status{display:inline-block;font-size:12px;color:var(--green);margin:0 0 15px}.quiz-card-actions button{white-space:nowrap}@media(max-width:600px){.card-bottom{align-items:flex-start}.quiz-card-actions{width:100%;justify-content:flex-start}}

.admin-icon-tile button{padding:5px 12px;font-size:12px}.admin-icon-tile{max-width:125px;min-width:88px;gap:9px}.admin-icon-tile .player-animal{width:56px;height:56px}#admin-icon-status{font-size:13px}#refresh-picker-icons{margin-bottom:8px}

/* Release 8: answer emphasis and quiz-only podium. */
.chart-column:not(.correct) .chart-bar,.chart-column:not(.correct) .chart-symbol,.reveal-choice:not(.correct){opacity:.25}.reveal-choice.correct{opacity:1}
.question-screen .auto-submit-status{visibility:hidden;pointer-events:none}.question-screen .auto-submit-status:disabled{visibility:visible}.rank-player .profile-icon,.leaderboard .player-animal .profile-icon{width:100%;height:100%;object-fit:contain}
.podium-screen{position:relative;overflow:hidden;isolation:isolate;text-align:center;display:flex;flex-direction:column}.podium-screen h1{font-size:clamp(22px,4vw,40px);margin:15px auto}.podium-screen .eyebrow{justify-content:center}.podium-stage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(8px,3vw,30px);align-items:end;max-width:900px;width:100%;margin:auto auto 0;min-height:390px;flex:1}.podium-winner{min-width:0;visibility:hidden;transform:translateY(110dvh);transition:transform 1200ms cubic-bezier(.16,1,.3,1)}.podium-winner.arrived{visibility:visible;transform:translateY(0)}.podium-avatar{width:clamp(65px,12vw,120px);height:clamp(65px,12vw,120px);display:grid;place-items:center;margin:10px auto;background:#473056;border-radius:50%;font-size:clamp(48px,8vw,85px);padding:5px}.podium-avatar .profile-icon{width:100%;height:100%}.podium-winner h2{font-size:clamp(16px,3vw,27px);overflow-wrap:anywhere;margin:10px 0 0}.podium-winner p{font-variant-numeric:tabular-nums;margin:5px 0 12px}.podium-step{height:130px;border-radius:14px 14px 0 0;font-size:clamp(45px,7vw,80px);font-weight:800;display:flex;justify-content:center;align-items:center;background:linear-gradient(#bd8b6a,#744a35)}.place-1 .podium-step{height:230px;background:linear-gradient(#f0cd66,#a37624);color:#392607}.place-2 .podium-step{height:180px;background:linear-gradient(#bbb8d0,#716d89)}.podium-screen .game-controls{position:relative;z-index:3;margin:18px 0}.podium-screen #earnings-status{position:relative;z-index:3;min-height:24px}.personal-finish{margin:auto;padding:20px}.finish-rank{font-size:clamp(65px,15vw,120px);color:var(--green);line-height:1.2}.finish-points{font-size:clamp(25px,5vw,45px);font-weight:700}.celebration{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:2}.confetti-piece{position:absolute;top:-20px;width:8px;height:14px;animation:quiz-confetti 4s linear infinite}.firework-particle{position:absolute;width:6px;height:6px;border-radius:50%;animation:quiz-firework 1300ms ease-out forwards}.account-leaderboard{max-width:950px}.account-leaderboard li{font-variant-numeric:tabular-nums}.account-leaderboard li>b{min-width:24px}.account-leaderboard li .name{overflow-wrap:anywhere}
@keyframes quiz-confetti{to{transform:translate(var(--drift),115dvh) rotate(720deg)}}@keyframes quiz-firework{from{transform:translate(0,0);opacity:1}to{transform:translate(var(--dx),var(--dy));opacity:0}}
@media(max-width:600px){.podium-stage{min-height:340px;gap:8px}.podium-winner p{font-size:12px}.podium-step{height:95px}.place-2 .podium-step{height:135px}.place-1 .podium-step{height:180px}.podium-screen .game-controls{flex-wrap:wrap}.podium-screen #earnings-status{font-size:13px}.question-screen .game-top{flex-wrap:wrap}.question-screen h1{max-height:24dvh}}
@media(prefers-reduced-motion:reduce){.podium-winner{transition:none}.confetti-piece,.firework-particle{display:none}}
.podium-screen{padding-bottom:0!important}.podium-stage{min-height:0}.podium-winner{grid-row:1}.place-1{grid-column:2}.place-2{grid-column:1}.place-3{grid-column:3}.podium-winner .podium-avatar{width:clamp(56px,14dvh,100px);height:clamp(56px,14dvh,100px);font-size:clamp(42px,10dvh,75px)}.podium-step{height:clamp(65px,15dvh,130px)}.place-2 .podium-step{height:clamp(85px,20dvh,180px)}.place-1 .podium-step{height:clamp(105px,25dvh,230px)}
.podium-step{position:relative}.podium-step::after{content:'';position:absolute;top:calc(100% - 1px);left:0;right:0;height:110dvh;background:#744a35}.place-1 .podium-step::after{background:#a37624}.place-2 .podium-step::after{background:#716d89}.podium-screen .game-controls{align-self:center;background:#160e2a;padding:10px;border-radius:14px}.podium-screen #earnings-status:not(:empty){align-self:center;background:#160e2a;padding:10px 18px;border-radius:12px}
.shop-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr));gap:18px;margin:24px 0}.shop-avatar{display:flex;flex-direction:column;align-items:center;text-align:center;padding:22px 15px;background:#251a38;border-radius:18px;min-width:0}.shop-picture{width:96px;height:96px;font-size:64px;display:grid;place-items:center}.shop-picture .profile-icon{width:96px;height:96px}.shop-avatar h2{font-size:20px;margin:16px 0 0;overflow-wrap:anywhere}.shop-avatar p{color:var(--green)}.shop-avatar button{margin-top:auto}#shop-balance{color:var(--green);font-size:24px;font-weight:700}

.admin-dropdown>summary{font-size:23px;font-weight:700;cursor:pointer;list-style-position:inside;padding:6px 0}.admin-dropdown[open]>summary{margin-bottom:20px}.admin-dropdown{margin:16px 0}

.create-wallet{display:flex;flex-direction:column;align-items:flex-end;gap:5px}.create-wallet #home-token-balance{font-size:13px;color:#d2f891;font-weight:700}.create-wallet [hidden]{display:none!important}.category-admin-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%;padding:8px 0}.category-admin-row strong{flex:1;min-width:120px}

.quiz-visibility{border:0;padding:0;margin:20px 0}.quiz-visibility legend{font-weight:700;margin-bottom:10px}.visibility-choice{position:relative;cursor:pointer}.visibility-choice input{position:absolute;opacity:0;width:1px;height:1px}.visibility-choice span{display:block;background:#2c2142;border:2px solid transparent;border-radius:14px;padding:14px 24px;font-weight:700}.visibility-choice input:checked+span{border-color:#c5f779;background:#3a3145;color:#d6ffa6}.visibility-choice input:focus-visible+span{outline:3px solid white;outline-offset:3px}

.reading-screen .reading-center{min-height:65dvh;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:20px;text-align:center}.reading-screen h1{font-size:clamp(28px,4.5vw,64px);max-width:1100px;margin:0;overflow-wrap:anywhere}.reading-countdown{font-size:clamp(38px,7vw,84px);font-weight:800;color:#c5f779;font-variant-numeric:tabular-nums}.reading-center .timer{width:min(700px,90%)}

.answer-correct h2,.answer-correct .correct-answer{color:#9df08c}.answer-wrong h2,.answer-wrong .correct-answer{color:#ff8094}.colour-feedback{text-align:center;padding-top:12vh}.colour-feedback h1{font-size:100px}.kingdom-map{width:max-content;max-width:100%;margin:30px auto}.hex-row{display:flex;margin-top:-7px}.hex-row.offset{padding-left:25px}.hex{width:50px;height:55px;border:0;border-radius:0;padding:0;clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);background:#719e36;color:white;font-size:25px;margin:1px;opacity:1!important}.hex.Red{background:#e24868}.hex.Blue{background:#318ce4}.hex.available{background:#bedb71;cursor:pointer;filter:drop-shadow(0 0 4px white)}.kingdom-score{display:flex;justify-content:space-around;gap:16px;font-weight:700}.colour-final{text-align:center}.reading-screen .reading-center{text-align:center;padding:10vh 0}.reading-countdown{font-size:50px;color:#c9f787}@media(max-width:550px){.hex{width:31px;height:36px;font-size:20px}.hex-row.offset{padding-left:16px}.hex-row{margin-top:-4px}.kingdom-score{font-size:13px}}

.colour-feedback.answer-correct h1{color:#9df08c}.colour-feedback.answer-wrong h1{color:#ff8094}

.analytics-chart{margin:20px 0;padding:18px;background:#261c39;border-radius:18px}.analytics-chart figcaption{font-weight:700;margin-bottom:12px}.analytics-chart svg{width:100%;height:auto}.game-top:before{content:"";width:40px;height:40px;flex-shrink:0;background:url(quiz-icon.svg) center/contain no-repeat}.lobby-join-banner{background:white;color:#211334;display:flex;align-items:center;justify-content:center;gap:28px;padding:22px;border-radius:16px;flex-wrap:wrap}.lobby-join-banner .lobby-pin{font-size:clamp(35px,7vw,76px);color:#211334;margin:0}.lobby-name-wall{display:flex!important;flex-wrap:wrap;justify-content:center;gap:14px;list-style:none;padding:0}.lobby-name-wall li{background:#31204e;border-radius:14px;padding:14px 22px;animation:lobby-arrive .35s ease-out}.lobby-name-wall .player-animal{display:inline-flex;width:42px;height:42px}.lobby-title{font-size:clamp(32px,5vw,65px);font-weight:900;margin:36px}.lobby-screen{min-height:75vh;background:radial-gradient(ellipse at top,#623596,transparent 70%)}@keyframes lobby-arrive{from{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}

.result-panel.answer-correct h2:before,.result-panel.answer-wrong h2:before{display:block;width:70px;height:70px;line-height:70px;border-radius:50%;margin:0 auto 14px;color:white;font-size:48px}.result-panel.answer-correct h2:before{content:"✓";background:#389342}.result-panel.answer-wrong h2:before{content:"✕";background:#db3757}.lobby-join-banner .lobby-qr{width:120px;margin:0}.lobby-join-banner svg{width:120px;height:120px}.analytics-chart svg text{font-size:12px}

/* Point-up hexagons share full edges; tower tiles invert foreground/background. */
.kingdom-map{--hex-width:50px;--hex-height:57.735px}.hex-row{margin-top:calc(var(--hex-height) / -4)}.hex-row:first-child{margin-top:0}.hex-row.offset{padding-left:calc(var(--hex-width) / 2)}.hex{box-sizing:border-box;flex:0 0 var(--hex-width);width:var(--hex-width);height:var(--hex-height);margin:0;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}.hex.castle.Red{background:#fff;color:#e24868}.hex.castle.Blue{background:#fff;color:#318ce4}@media(max-width:550px){.kingdom-map{--hex-width:31px;--hex-height:35.796px}.hex-row{margin-top:calc(var(--hex-height) / -4)}.hex-row.offset{padding-left:calc(var(--hex-width) / 2)}}

.kingdom-icon{width:1.2em;height:1.2em;vertical-align:middle;display:inline-block;flex-shrink:0}.hex .kingdom-icon{width:26px;height:26px;pointer-events:none}.team-dot{display:inline-block;width:13px;height:13px;border-radius:50%;vertical-align:middle}.team-dot.red{background:#e24868}.team-dot.blue{background:#318ce4}.colour-feedback h1 .kingdom-icon{width:100px;height:100px}@media(max-width:550px){.hex .kingdom-icon{width:20px;height:20px}}
/* Board dimensions come from the server, retaining compatibility with older rooms. */
.kingdom-map{--hex-width:min(50px,calc((100vw - 40px) / (var(--board-width,9) + .5)));--hex-height:calc(var(--hex-width) * 1.1547);max-width:none}.hex .kingdom-icon{width:52%;height:52%}.hex:hover{transform:none}.colour-board-screen h1{margin:10px auto}.colour-board-screen .game-top h1{margin:0}.colour-board-screen>p{margin:8px 0}.colour-board-screen .kingdom-map{margin:18px auto}
@media(orientation:landscape) and (max-height:550px){
 body.playing main{padding:6px max(12px,env(safe-area-inset-right)) 6px max(12px,env(safe-area-inset-left))}.playing .game{min-height:calc(100dvh - 12px)}
 .question-screen{height:calc(100dvh - 12px);min-height:0!important}.question-screen .game-top{flex-wrap:nowrap;gap:5px}.game-top:before{width:25px;height:25px}.game-top .pill{font-size:11px;padding:3px 8px}.game-top>button{font-size:11px;padding:4px 8px}
 .question-screen h1{font-size:clamp(16px,4.5dvh,24px);line-height:1.15;margin:4px auto;max-height:16dvh}.question-screen .instruction{font-size:11px;line-height:1.2;margin:2px 0 5px}.question-screen .timer{margin:4px 0;height:3px}.question-screen .answers{gap:5px}.question-screen .answer{padding:4px 8px 4px 30px;border-width:3px;border-radius:8px;min-height:0}.question-screen .shape{left:7px;top:6px;font-size:12px}.question-screen .answer-text{font-size:clamp(13px,3.6dvh,20px);line-height:1.1}.question-screen .game-controls{margin:5px 0 0}.question-screen .game-controls button{padding:5px 20px;min-height:32px;font-size:13px}.question-screen #answer-status{margin:2px 0;min-height:0;font-size:11px}.question-screen .reveal-img,.question-screen .pin-image,.question-screen .pin-image img{max-height:18dvh;margin:2px auto}.question-screen audio{height:28px;margin:2px auto!important}.question-screen .text-answer{padding:6px;font-size:18px;margin:5px auto}.question-screen .order-list{max-height:100%;overflow:auto}.question-screen .editor-section{padding:6px;margin:2px auto}.question-screen .editor-section p{margin:2px}
 .colour-board-screen{padding-bottom:0!important}.colour-board-screen h1{font-size:22px;margin:3px auto}.colour-board-screen>p{font-size:12px;margin:3px 0}.kingdom-score{font-size:12px;gap:8px}.colour-board-screen .kingdom-map{--hex-width:min(50px,calc((100vw - 40px) / (var(--board-width,9) + .5)),calc((100dvh - 115px) / ((var(--board-height,7) * .75 + .25) * 1.1547)));margin:8px auto}.colour-feedback{padding-top:0}.colour-feedback h1{margin:5px auto}.colour-feedback h1 .kingdom-icon{width:65px;height:65px}.reading-screen .reading-center{padding:3dvh 0}.reading-screen h1{font-size:24px;margin:10px auto}.reading-countdown{font-size:32px}.reading-screen .reading-center p{margin:5px}
}
/* Light-green battlefield surround; a small overlap removes subpixel raster seams. */
body.colour-playing{background:#bedb71;color:#203019}body.colour-playing .question-screen,body.colour-playing .podium-screen{background:#211735;color:#faf8ff;border-radius:16px;padding:14px}body.colour-playing p{color:#354728}.colour-board-screen{max-width:1400px}.colour-board-screen .game-top:before{display:none}.colour-board-screen .game-top button{background:#243b24;color:#fff}.kingdom-battle{display:grid;grid-template-columns:190px minmax(0,1fr);gap:22px;align-items:start}.kingdom-battle>div{min-width:0}.kingdom-leaders{background:#edf6d5;color:#243b24;border-radius:14px;padding:14px}.kingdom-leaders h2{font-size:18px;margin-bottom:12px}.kingdom-leaders h3{font-size:16px;margin:12px 0 5px}.team-leaders>div{display:grid;grid-template-columns:16px minmax(0,1fr) 30px;gap:7px;align-items:center;font-size:13px;padding:4px 0}.team-leaders span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-leaders strong{text-align:right}.team-leaders.Red h3{color:#b22543}.team-leaders.Blue h3{color:#1761a9}.team-leaders.Yellow h3{color:#795700}.team-leaders.Green h3{color:#277b45}.hex{transform:scale(1.025)}.hex:hover,.hex:disabled{transform:scale(1.025)}.hex.available{filter:brightness(1.16)}.hex.Yellow{background:#d0a51c}.hex.Green{background:#349e5d}.hex.castle.Yellow{background:#fff;color:#967000}.hex.castle.Green{background:#fff;color:#349e5d}.hex.castle .kingdom-icon{stroke-width:3.6;width:60%;height:60%}.team-dot.yellow{background:#b98e09}.team-dot.green{background:#349e5d}.kingdom-score{flex-wrap:wrap;font-size:14px;gap:8px 16px;color:#203019}.colour-final{position:relative}.colour-final h1{margin:15px auto}.colour-celebration{position:fixed;inset:0;pointer-events:none;z-index:20}.colour-board-screen .kingdom-map{--hex-width:min(50px,calc((100vw - 280px) / (var(--board-width,13) + .5)))}
@media(max-width:700px){.kingdom-battle{display:flex;flex-direction:column-reverse;gap:14px}.kingdom-battle>div{width:100%}.kingdom-leaders{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.kingdom-leaders h2{grid-column:1/-1}.colour-board-screen .kingdom-map{--hex-width:min(50px,calc((100vw - 40px) / (var(--board-width,13) + .5)))}.kingdom-score{font-size:12px}}
@media(orientation:landscape) and (max-height:550px){.kingdom-battle{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px}.kingdom-leaders{display:block;padding:8px}.kingdom-leaders h2{font-size:14px;margin:0}.kingdom-leaders h3{font-size:12px;margin:5px 0}.team-leaders>div{font-size:11px;padding:1px 0}.colour-board-screen .kingdom-map{--hex-width:min(50px,calc((100vw - 215px) / (var(--board-width,13) + .5)),calc((100dvh - 125px) / ((var(--board-height,9) * .75 + .25) * 1.1547)))}body.colour-playing .question-screen{padding:0 5px}.colour-board-screen .kingdom-score{font-size:11px;gap:3px 10px}}
body.colour-playing .question-screen p,body.colour-playing .podium-screen p{color:#d0c5df}body.colour-playing .colour-feedback.answer-correct h2{color:#20471f}body.colour-playing .colour-feedback.answer-wrong h2{color:#a31e36}
.hex,.hex:hover,.hex:disabled{transform:scale(1.055)}@media(orientation:landscape) and (max-height:550px){.team-leaders>div:nth-of-type(n+2){display:none}}
/* The join banner stays visible while overflow players scroll beneath it. */
.playing .lobby-screen{padding-bottom:12px;min-height:calc(100dvh - 28px);text-align:left;background:none}.lobby-join-banner{position:sticky;top:0;z-index:12;display:grid;grid-template-columns:minmax(100px,1fr) auto 108px;gap:16px;align-items:center;padding:10px 18px;border-radius:12px;background:#faf8ff;color:#211334;box-shadow:0 5px 20px #0002}.lobby-join-copy{display:flex;flex-direction:column;gap:3px;font-size:15px}.lobby-join-copy span{font-size:12px;overflow-wrap:anywhere}.lobby-pin-group{text-align:center}.lobby-join-banner .lobby-pin{font-size:clamp(36px,6vw,60px);letter-spacing:5px;line-height:1.1;margin:0}.lobby-join-banner small{font-size:12px}.lobby-join-banner .lobby-qr{height:108px;width:108px;margin:0;padding:0;border-radius:0;line-height:0}.lobby-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0}.lobby-title{display:flex;align-items:center;gap:9px;margin:0;font-size:17px;min-width:0}.lobby-title>div{min-width:0}.lobby-title h2{font-size:15px;max-width:520px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;letter-spacing:0}.lobby-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}.lobby-actions button{font-size:13px;padding:8px 12px;min-height:36px}.lobby-count{font-size:15px;margin:8px 0}.lobby-name-wall{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0;list-style:none;padding:0}.lobby-name-wall li{display:flex;align-items:center;gap:8px;min-width:0;min-height:64px;margin:0;padding:10px;background:#31204e;border-radius:10px;animation:none}.lobby-name-wall .player-animal{display:inline-flex;flex-shrink:0;width:32px;height:32px;font-size:25px}.lobby-player-copy{display:flex;flex-direction:column;min-width:0;flex:1}.lobby-player-copy strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lobby-player-copy small{font-size:11px;color:#c5b9d9}.lobby-name-wall [data-kick]{padding:0;width:25px;height:30px;flex-shrink:0;background:transparent;font-size:20px}
@media(max-width:600px){.lobby-join-banner{grid-template-columns:minmax(0,1fr) auto 85px;gap:7px;padding:9px}.lobby-join-copy strong{font-size:13px}.lobby-join-copy span{font-size:10px}.lobby-join-banner .lobby-pin{font-size:32px;letter-spacing:2px}.lobby-join-banner .lobby-qr{height:85px;width:85px}.lobby-heading{flex-wrap:wrap;gap:7px;margin:9px 0}.lobby-title{flex:1;font-size:14px}.lobby-title h2{font-size:13px;max-width:245px}.lobby-title img{width:26px;height:26px}.lobby-actions button{font-size:12px;padding:6px 10px}.lobby-name-wall{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.lobby-name-wall li{min-height:64px;padding:7px;gap:4px;position:relative}.lobby-name-wall .player-animal{width:24px;height:24px;font-size:21px}.lobby-player-copy strong{font-size:12px}.lobby-player-copy small{font-size:10px}.lobby-name-wall [data-kick]{position:absolute;right:0;top:0;width:18px;height:18px;font-size:16px}.lobby-player-copy{padding-right:4px}}
@media(orientation:landscape) and (max-height:550px){.playing .lobby-screen{min-height:calc(100dvh - 12px);padding-bottom:0}.lobby-join-banner{grid-template-columns:1fr auto 66px;padding:5px 12px;gap:14px}.lobby-join-banner .lobby-qr{width:66px;height:66px}.lobby-join-banner .lobby-pin{font-size:38px;line-height:1}.lobby-join-copy strong{font-size:13px}.lobby-join-copy span{font-size:11px}.lobby-heading{margin:5px 0;flex-wrap:nowrap}.lobby-title{font-size:12px}.lobby-title img{width:24px;height:24px}.lobby-title h2{font-size:12px;max-width:300px}.lobby-actions button{font-size:11px;min-height:29px;padding:5px 10px}.lobby-count{font-size:12px;margin:4px 0}.lobby-name-wall{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.lobby-name-wall li{min-height:49px;padding:5px 8px}.lobby-name-wall .player-animal{width:26px;height:26px;font-size:23px}.lobby-player-copy strong{font-size:12px}.lobby-player-copy small{font-size:10px}}
.lobby-join-banner .lobby-qr svg{display:block;width:100%;height:100%}

/* Territory totals and stable global rank transitions. */
.colour-result-stats{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:14px auto}.result-team{min-width:140px;padding:12px 22px;background:#fff9;border-radius:18px;border:3px solid transparent;color:#243512}.result-team h2{margin:0 0 5px}.result-team strong{font-size:1.5rem}.result-winner{border-color:#355b1b;box-shadow:0 0 30px #fff9}.accuracy-track{height:12px;background:#0002;border-radius:8px;overflow:hidden}.accuracy-track i{display:block;height:100%;background:#46802a}.colour-results .hex{opacity:.4}.colour-results .tile-counted{opacity:1;filter:brightness(1.12)}.colour-results .tile-counting{filter:brightness(1.7);z-index:2}.colour-results #colour-result-map{max-height:52dvh;overflow:hidden}.pending-flag{filter:brightness(1.3)}
.global-animated-ranks{position:relative;list-style:none;padding:0;margin:20px 0;max-width:900px}.global-animated-ranks li{position:absolute;top:0;left:0;width:100%;height:62px;box-sizing:border-box;display:flex;align-items:center;gap:16px;padding:8px 18px;border-radius:14px;background:#2d2145;transition:transform 1400ms cubic-bezier(.22,.61,.36,1);will-change:transform}.global-animated-ranks .name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-animated-ranks li>b{min-width:24px}.global-animated-ranks .player-animal{width:40px;height:40px}.global-animated-ranks strong{font-variant-numeric:tabular-nums}
@media(max-height:500px){.colour-results h1{font-size:1.5rem;margin:0}.colour-result-stats{margin:4px;gap:5px}.result-team{padding:4px 12px;min-width:110px}.result-team h2{font-size:1rem}.result-team p{margin:3px}.colour-results #colour-result-map{max-height:48dvh}}
@media(prefers-reduced-motion:reduce){.global-animated-ranks li{transition:none}}

.colour-results #colour-result-map{max-height:none;overflow:visible}.colour-results .kingdom-map{--hex-width:min(48px,calc((100vw - 50px) / (var(--board-width,13) + .5)),calc((100dvh - 330px) / ((var(--board-height,9) * .75 + .25) * 1.1547)))}.colour-results .hex{opacity:.35!important}.colour-results .tile-counted{opacity:1!important}.colour-results .kingdom-score{min-height:20px}.hex.Red.available{background:#e24868}.hex.Blue.available{background:#318ce4}.hex.Yellow.available{background:#d0a51c}.hex.Green.available{background:#349e5d}
@media(max-height:500px){.colour-results .kingdom-map{--hex-width:min(45px,calc((100vw - 40px) / (var(--board-width,13) + .5)),calc((100dvh - 205px) / ((var(--board-height,9) * .75 + .25) * 1.1547)))}.colour-results #colour-result-map{max-height:none}}

/* Colour phone fit, answer review, and team victory. */
#game-information{position:fixed;right:12px;top:10px;z-index:45;width:32px;height:32px;padding:0;border-radius:50%;background:#352548;color:#fff;font:700 20px Georgia,serif;border:2px solid #c9b7e4}.kingdom-answer-review{height:calc(100dvh - 25px);display:flex;flex-direction:column;gap:12px;padding:14px 24px;color:#23331b}.kingdom-answer-review h1{font-size:clamp(18px,3vw,29px);text-align:center;margin:0}.review-status{display:flex;align-items:center;gap:6px;color:#99233b;font-weight:700}.review-status span{margin-left:auto;color:#304b20;font-size:12px}.review-options{display:grid;grid-template-columns:1fr 1fr;gap:7px}.review-option{display:flex;align-items:center;gap:9px;border-radius:9px;min-height:38px;padding:8px 12px;color:white;font-size:14px}.review-option span{flex:1}.review-option.faded{opacity:.28}.review-explanation{font-size:16px;margin:0;animation:review-arrive .7s both}.review-bottom{margin-top:auto;display:flex;justify-content:space-between;align-items:center}.review-bottom button{display:flex;gap:8px;align-items:center;background:#284424;color:white}.continue-progress{--progress:0deg;display:inline-block;width:18px;height:18px;border-radius:50%;background:conic-gradient(currentColor var(--progress),#ffffff30 0);position:relative}.continue-progress:after{content:'';position:absolute;inset:3px;border-radius:50%;background:#284424}.review-bottom button:not(:disabled) .continue-progress{display:none}.review-bottom button:disabled{opacity:.35}.kingdom-victory{display:grid;place-items:center;min-height:80dvh}.team-victory-card{background:#fffef4;padding:30px;border-radius:20px;max-width:600px;width:100%;text-align:center;color:#23331b}.team-victory-total{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #d5dfc6}.team-finish-columns{display:grid;grid-template-columns:repeat(var(--teams),minmax(0,1fr));gap:12px}.team-finish-columns section{background:#e8f0d3;border-radius:12px;overflow:hidden}.team-finish-columns h2{padding:10px;margin:0;background:#39542d;color:white}.team-finish-columns h2.Red{background:#d83f5c}.team-finish-columns h2.Blue{background:#2876bd}.team-finish-scroll{max-height:300px;overflow:auto}.team-finish-player{height:60px;display:flex;align-items:center;gap:8px;padding:8px;border-bottom:1px solid #cfdbb7;font-size:13px}.team-finish-player>.player-animal{width:30px;height:30px}.team-finish-player>span:not(.player-animal){flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-finish-player strong{font-size:12px}@keyframes review-arrive{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@media(orientation:landscape) and (max-height:550px){.colour-board-screen{height:calc(100dvh - 12px);padding:5px 12px!important;display:flex;flex-direction:column;gap:3px}.colour-board-screen .game-top{min-height:25px}.colour-board-screen>p{margin:0;font-size:11px}.colour-board-screen .kingdom-battle{flex:1;min-height:0;grid-template-columns:105px minmax(0,1fr);gap:8px}.colour-board-screen .kingdom-map{--hex-width:min(calc((100vw - 45px) / (var(--board-width,13) + .5)),calc((100dvh - 105px) / ((var(--board-height,9)*.75 + .25)*1.1547)));margin:6px auto}.colour-board-screen:has(#flag-map) .kingdom-map{--hex-width:min(calc((100vw - 45px) / (var(--board-width,13) + .5)),calc((100dvh - 95px) / ((var(--board-height,9)*.75 + .25)*1.1547)))}.colour-board-screen:has(#flag-map) h1{margin:0;font-size:20px}.kingdom-answer-review{padding:8px 20px;gap:7px}.review-explanation{font-size:14px}.review-bottom button{padding:8px 14px}.team-finish-scroll{max-height:200px}.team-finish-player{height:40px;gap:4px;font-size:11px}.team-finish-player strong{font-size:11px}.kingdom-team-finish h1{margin:0;font-size:22px}.kingdom-victory{min-height:90dvh}.team-victory-card{padding:15px 25px}.team-victory-card h1{font-size:25px;margin:3px}.team-victory-total{padding:7px 0}}
@media(max-width:600px) and (orientation:portrait){.team-finish-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.team-finish-player{flex-wrap:wrap;height:60px;gap:4px}.team-finish-player strong{margin-left:auto}.kingdom-answer-review{gap:15px;padding:15px}.review-option{padding:8px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.review-explanation{animation:none}}
.review-status{padding-right:38px}
.flag-heading{display:flex;align-items:center;justify-content:center}.colour-board-screen:has(#flag-map)>p{margin:0!important;font-size:11px;line-height:1.1}#flag-error:empty{display:none}@media(orientation:landscape) and (max-height:550px){.colour-board-screen:has(#flag-map) .flag-heading{height:25px;flex-shrink:0}.colour-board-screen:has(#flag-map) .kingdom-map{--hex-width:min(calc((100vw - 45px) / (var(--board-width,13) + .5)),calc((100dvh - 85px) / ((var(--board-height,9)*.75 + .25)*1.1547)))}}

#game-music{position:fixed;top:8px;right:55px;z-index:45;background:#352548;color:white;border-radius:10px;padding:8px 10px;font-size:12px}.solo-loading,.solo-results{text-align:center;padding:25px 15px}.solo-result-avatar{width:90px;height:90px;margin:20px auto}.solo-results>p>strong{font-size:32px}.solo-results button{margin:8px}
/* Connect Four: flat blue grid, green game screens, and direct column controls. */
body.connect-playing{background:#277443;color:#fff}body.connect-playing p{color:#d5ebd9}body.connect-playing .game{color:#fff}body.connect-playing .question-screen{background:transparent;color:#fff}body.connect-playing .question-screen p{color:#e0f2e3}body.connect-playing .kingdom-answer-review,body.connect-playing .review-status span{color:#fff}body.connect-playing .colour-feedback.answer-correct h2{color:#fff}body.connect-playing .review-status{color:#ffe3e7}body.connect-playing .review-bottom button{background:#17472b}body.connect-playing .game-top:before{display:none}.connect-host{max-width:1500px;width:100%}.connect-match{display:grid;grid-template-columns:minmax(150px,1fr) minmax(0,2.6fr) minmax(150px,1fr);align-items:start;gap:30px;padding:18px 0}.connect-center{min-width:0}.connect-center>p{text-align:center;text-transform:uppercase;letter-spacing:1px;font-size:12px;margin:0 0 25px}.connect-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:clamp(5px,1vw,10px);padding:clamp(9px,1.5vw,18px);background:#1e62f1;border-radius:16px;position:relative;width:100%;max-width:650px;margin:0 auto;box-shadow:none}.connect-hole{position:relative;aspect-ratio:1;border-radius:50%;background:#17472b;box-shadow:none}.connect-disc{position:absolute;inset:0;border-radius:50%;background:#ff526b;box-shadow:none}.connect-disc.Blue{background:#44bdff}.connect-disc.winning{outline:3px solid white;outline-offset:-4px}.connect-columns{position:absolute;inset:clamp(9px,1.5vw,18px);display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:clamp(5px,1vw,10px);z-index:6}.connect-columns button{background:transparent;border:0;padding:0;min-width:0;border-radius:9px;box-shadow:none;touch-action:manipulation}.connect-columns button:hover:not(:disabled),.connect-columns button:focus-visible{background:#ffffff20;outline:2px solid #fff;outline-offset:0}.connect-columns button:disabled{cursor:default;background:transparent}.connect-place{max-width:750px;text-align:center}.connect-place .connect-grid{max-width:min(620px,calc((100dvh - 210px)*1.16))}.connect-place h1{font-size:clamp(22px,4vw,35px);margin:12px 0}.connect-leaders h2{font-size:clamp(19px,2.2vw,28px);margin:0 0 22px}.connect-team.Red{color:#ff9dab}.connect-team.Blue{color:#9ad6ff}.connect-rank-label{display:flex;justify-content:space-between;font-size:12px;padding:10px 0;border-bottom:1px solid #ffffff40}.connect-rank{display:grid;grid-template-columns:15px 30px minmax(0,1fr) 30px;align-items:center;gap:8px;padding:14px 0;border-bottom:1px solid #ffffff25;font-size:15px}.connect-rank>span:nth-child(3){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.connect-rank .player-animal{width:30px;height:30px}.connect-rank strong{text-align:right;font-variant-numeric:tabular-nums}.connect-progress{text-align:center;font-weight:700}.connect-playing .question-screen #seconds-left,.connect-playing .question-screen>.timer{display:none}.connect-results{position:relative;isolation:isolate;text-align:center;max-width:1500px;width:100%;min-height:85dvh}.connect-results>h1{position:relative;z-index:3}.connect-results>.connect-grid{max-width:420px}.connect-results button{position:relative;z-index:4}.connect-totals{display:flex;justify-content:center;gap:30px;margin:20px 0;font-weight:700}.connect-celebration{z-index:3}.connect-results .connect-match{text-align:left}.connect-results #connect-earnings{position:relative;z-index:4}
@media(max-width:650px){.connect-match{grid-template-columns:1fr 1fr;gap:18px}.connect-center,.connect-results .connect-match>div{grid-column:1/-1;grid-row:1}.connect-leaders h2{font-size:20px;margin-bottom:10px}.connect-rank{font-size:13px;gap:5px;padding:8px 0;grid-template-columns:13px 24px minmax(0,1fr) 24px}.connect-rank .player-animal{width:24px;height:24px}.connect-host .game-top{flex-wrap:wrap}.connect-results .connect-match{padding:0}.connect-place .connect-grid{max-width:100%}}
@media(orientation:landscape) and (max-height:550px){.connect-host .connect-match{grid-template-columns:130px minmax(0,1fr) 130px;gap:15px;padding:5px 0}.connect-host .connect-center{grid-column:auto;grid-row:auto}.connect-host .connect-grid{max-width:calc((100dvh - 115px)*1.16)}.connect-host .connect-center>p{margin:0 0 8px;font-size:11px}.connect-host .connect-rank{padding:5px 0;font-size:12px}.connect-host .connect-leaders h2{margin-bottom:5px;font-size:18px}.connect-place{padding:5px 12px}.connect-place .connect-grid{max-width:calc((100dvh - 115px)*1.16)}.connect-place .game-top{min-height:25px}.connect-place h1{margin:5px 0;font-size:20px}.connect-place>p{margin:3px}}
/* A Connect Four screen occupies the available display, including its controls. */
body.playing.connect-playing{height:100dvh;overflow:hidden;margin:0}
body.playing.connect-playing main{box-sizing:border-box;width:100%;max-width:none;height:100dvh;min-height:0;padding:8px 2%;overflow:hidden}
body.playing.connect-playing .game{box-sizing:border-box;height:100%;min-height:0;max-height:100%;padding:0 0 8px;margin:0 auto;overflow:hidden}
.connect-host{display:flex;flex-direction:column}.connect-host .game-top{flex:none;min-height:42px;padding-right:130px}.connect-host .game-top h1{font-size:clamp(20px,2.5vw,30px);margin:0}
.connect-host .connect-match{flex:1;min-height:0;padding:10px 0;grid-template-columns:minmax(130px,1fr) minmax(0,2.8fr) minmax(130px,1fr);gap:clamp(12px,2vw,28px)}
.connect-leaders{min-height:0;overflow:hidden}.connect-leaders h2{margin:0 0 12px;font-size:clamp(17px,2vw,25px)}.connect-rank{height:clamp(30px,7dvh,58px);padding:3px 0;gap:6px}.connect-rank-label{padding:7px 0}.connect-center{min-height:0;height:100%;display:flex;flex-direction:column;align-items:center}.connect-center>p{margin:0 0 12px;flex:none}.connect-center>.connect-grid{flex:none;max-width:100%}
.connect-place{display:flex;flex-direction:column;align-items:center;gap:6px}.connect-place .game-top{width:100%;flex:none;padding-right:42px;min-height:35px}.connect-place h1{margin:3px;font-size:clamp(20px,3vw,30px);flex:none}.connect-place>p{margin:4px 0;flex:none}.connect-place .connect-grid{flex:none;width:min(100%,calc((100dvh - 170px)*1.13));max-width:620px}.connect-place #connect-error:empty{display:none}
.connect-results{display:flex;flex-direction:column;gap:6px;align-items:center}.connect-results>h1,.connect-round-heading h1{font-size:clamp(22px,3vw,36px);margin:5px 0}.connect-results>p,.connect-round-heading p{margin:2px 0}.connect-results .connect-totals{margin:8px 0;flex:none}.connect-results>.connect-match{flex:1;min-height:0;width:100%;padding:8px 0}.connect-results>.connect-grid{width:min(90%,calc((100dvh - 220px)*1.13));max-width:460px;flex:none}.connect-result-board{flex:1;min-height:0;width:100%;display:flex;align-items:flex-start;justify-content:center}.connect-result-board>.connect-grid{width:min(85%,calc((100dvh - 190px)*1.13));max-width:650px}.connect-round-heading{flex:none;text-align:center;padding:0 44px}.connect-results #connect-next-round,.connect-results #connect-earnings{margin:3px;min-height:20px;flex:none}.connect-results>button{flex:none;padding:8px 20px}.connect-win-line{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:5;overflow:visible}
body.connect-playing .question-screen{padding-top:4px!important;gap:5px;display:flex;height:100%}.connect-playing .question-screen .game-top{padding-right:40px;flex:none;min-height:34px}.connect-playing .question-screen h1{font-size:clamp(18px,2.8vw,34px);margin:5px auto;max-height:23dvh;overflow:hidden;flex-shrink:1;min-height:28px}.connect-playing .question-screen .instruction,.connect-playing .connect-progress{margin:2px;font-size:12px;flex:none}.connect-playing .question-screen #answer-area{flex:1;min-height:0}.connect-playing .question-screen .answers{gap:clamp(5px,1vw,10px);height:100%;grid-auto-rows:minmax(0,1fr)}.connect-playing .question-screen .answer{min-height:0;overflow:hidden}.connect-playing .question-screen .answer-text{overflow:hidden}.connect-playing .question-screen .game-controls{margin:3px 0;flex:none}.connect-playing .question-screen .game-controls:has(.auto-submit-status){display:none}.connect-playing .question-screen #answer-status{min-height:0;flex:none}.connect-playing .question-screen #answer-status:empty{display:none}.connect-playing .question-screen .pin-image,.connect-playing .question-screen .reveal-img{max-height:18dvh}.connect-playing .question-screen .text-answer{margin:4px auto}
body.connect-playing .kingdom-answer-review{height:100%;gap:8px;padding:8px 0!important}.connect-playing .kingdom-answer-review>h1{flex:none;max-height:22dvh;overflow:hidden;font-size:clamp(16px,2.5vw,27px);margin:0}.connect-playing .review-status{flex:none;padding-right:42px;font-size:13px}.connect-playing .review-options{flex:none;gap:5px}.connect-playing .review-option{min-height:28px;padding:5px 8px;font-size:clamp(11px,2vw,14px)}.connect-playing .review-explanation{flex:1;min-height:0;overflow:hidden;font-size:clamp(12px,2vw,17px)}.connect-playing .review-bottom{flex:none;margin-top:auto}.connect-playing .colour-feedback{display:flex;flex-direction:column;align-items:center;justify-content:center}.connect-playing .colour-feedback h1,.connect-playing .colour-feedback h2{margin:8px}
@media(max-width:650px) and (orientation:portrait){.connect-host .connect-match,.connect-results .connect-match{grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1.1fr) minmax(0,1fr);gap:10px}.connect-host .connect-center,.connect-results .connect-match>div{grid-column:1/-1;grid-row:1}.connect-host .game-top{padding-right:42px;flex-wrap:wrap;min-height:40px}.connect-host .game-top>span{font-size:11px}.connect-host .connect-rank,.connect-results .connect-rank{height:clamp(23px,3.8dvh,34px);font-size:12px;grid-template-columns:13px 22px minmax(0,1fr) 24px}.connect-rank .player-animal{width:22px;height:22px}.connect-leaders h2{margin-bottom:5px;font-size:17px}.connect-rank-label{font-size:11px;padding:4px 0}.connect-center>p{font-size:11px;margin-bottom:6px}.connect-host .connect-grid{max-width:100%}}
@media(orientation:landscape) and (max-height:550px){body.playing.connect-playing main{padding:5px 1.5%}.connect-host .game-top{min-height:28px}.connect-host .connect-match{padding:4px 0;gap:12px;grid-template-columns:130px minmax(0,1fr) 130px}.connect-host .connect-center{grid-column:auto;grid-row:auto}.connect-rank{height:clamp(24px,7dvh,35px);font-size:12px;grid-template-columns:12px 22px minmax(0,1fr) 25px}.connect-leaders h2{font-size:17px;margin-bottom:5px}.connect-rank-label{padding:4px 0}.connect-place{gap:2px}.connect-place .game-top{min-height:25px}.connect-place h1{font-size:18px}.connect-place .connect-grid{width:min(100%,calc((100dvh - 105px)*1.12))}.connect-place>p{font-size:11px}.connect-playing .question-screen h1{max-height:20dvh;margin:2px auto}.connect-playing .question-screen .connect-progress,.connect-playing .question-screen .instruction{font-size:11px}.connect-playing .question-screen .game-controls button{padding:6px;min-height:32px}.connect-playing .question-screen .shape{font-size:12px}.connect-playing .question-screen .answer{padding:15px 9px 5px}.connect-results>h1,.connect-round-heading h1{font-size:22px;margin:0}.connect-results .connect-totals{margin:3px 0}.connect-results>.connect-grid{width:min(80%,calc((100dvh - 150px)*1.12))}.connect-result-board>.connect-grid{width:min(80%,calc((100dvh - 130px)*1.12))}.connect-results .connect-match{grid-template-rows:1fr;grid-template-columns:130px minmax(0,1fr) 130px}.connect-results .connect-match>div{grid-column:auto;grid-row:auto}.connect-playing .kingdom-answer-review{gap:4px}.connect-playing .review-option{padding:3px 8px;min-height:23px}.connect-playing .review-explanation{font-size:12px}}
/* Size the host against the visible browser area, including short laptop windows. */
body.playing.connect-playing main{position:fixed;inset:0;height:100dvh;min-height:0}
.connect-host .connect-match,.connect-results>.connect-match{box-sizing:border-box;overflow:hidden}
.connect-host .connect-leaders,.connect-results .connect-leaders{height:100%;display:grid;grid-template-rows:auto auto repeat(6,minmax(0,1fr));align-content:start;min-height:0}
.connect-host .connect-rank,.connect-results .connect-rank{box-sizing:border-box;height:auto;min-height:0;max-height:58px;overflow:hidden}
.connect-host .connect-rank .player-animal,.connect-results .connect-rank .player-animal{max-height:100%}
.connect-center{box-sizing:border-box;overflow:hidden}
@media(orientation:landscape) and (max-height:650px){.connect-leaders h2{margin-bottom:6px}.connect-rank-label{padding:5px 0}.connect-rank{font-size:13px}.connect-host .game-top{min-height:34px}}
/* QuizPlay 16: shared round controls, profiles and visible team lobbies. */
#quiz-home{position:fixed;left:8px;top:8px;z-index:90;padding:7px 11px;border-radius:20px;background:#241735;color:white;min-height:34px;font-size:13px}
.playing .game-top{padding-left:96px;box-sizing:border-box}.playing .reading-screen .game-top{min-height:35px}.playing .question-screen .auto-submit-status{display:none}
#answered-circle{position:fixed;right:16px;bottom:76px;z-index:20;width:64px;height:64px;display:grid;place-items:center;border:3px solid #b8ec7b;border-radius:50%;background:#211735;color:white;font-weight:800;font-size:16px;box-shadow:none}
.round-countdown{height:calc(100dvh - 30px);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:8px}.round-countdown strong{font-size:clamp(120px,30dvh,260px);line-height:1;font-weight:900}.round-countdown p,.round-countdown h2{margin:0}.round-countdown h2{font-size:clamp(24px,4vw,44px)}
#host-next-round{position:relative;z-index:9;flex:none;margin:5px auto;padding:9px 20px}.connect-round-result .connect-result-board{min-height:0}.end-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;position:relative;z-index:8;margin:12px 0}.connect-results .end-actions{flex:none;margin:2px 0}.end-actions button{padding:8px 16px}
.lobby-teams{display:grid;grid-template-columns:repeat(var(--team-count),minmax(0,1fr));gap:18px}.lobby-team{--team-color:#7254a2;min-width:0}.lobby-team.Red{--team-color:#b92e4b}.lobby-team.Blue{--team-color:#235ca6}.lobby-team.Blue,.lobby-team.Yellow{--team-color:#8b650b}.lobby-team.Green{--team-color:#7341ac}.lobby-team>h3{background:var(--team-color);padding:10px;border-radius:10px;color:white;text-align:center}.lobby-team .lobby-name-wall{display:flex;flex-direction:column;gap:7px;max-height:none}.lobby-team .lobby-name-wall li{background:var(--team-color);color:white;display:flex;align-items:center;gap:8px;padding:8px;border-radius:10px;min-width:0}.lobby-team li>strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.lobby-team li button{padding:4px 8px;background:#0003;color:white}.lobby-team .player-animal{flex:none}
.profile-picture{position:relative;display:inline-grid;place-items:center;line-height:1;width:100%;height:100%;min-width:28px;min-height:28px}.profile-picture>.profile-icon{width:100%;height:100%;object-fit:contain}.equipped-badge{position:absolute;right:-5px;bottom:-4px;font-size:15px;line-height:1;background:#241735;border:1px solid white;border-radius:50%;width:21px;height:21px;display:grid;place-items:center}.public-profile{text-align:center}.public-profile>.profile-picture{width:90px;height:90px;font-size:76px;margin:10px auto}.public-profile .equipped-badge{width:28px;height:28px;font-size:21px}.profile-status{overflow-wrap:anywhere}.earned-badges{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.earned-badges>span{padding:10px;background:#3c2856;border-radius:12px}.badge-catalogue{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}.badge-card{padding:22px;border-radius:16px;background:#2d203e;border:1px solid #7c6292}.badge-card>div{font-size:48px}.badge-card.locked>div{filter:grayscale(1);opacity:.55}.badge-card.earned{border-color:#e4c367}.badge-card h2{font-size:21px}.global-animated-ranks [data-public-profile]{cursor:pointer}.global-animated-ranks [data-public-profile]:focus-visible{outline:3px solid #d7b5ff}.saved-result-image{width:100%;height:auto;display:block}#saved-results{display:grid;gap:7px}#saved-results button{text-align:left}
@media(max-width:650px){.lobby-teams{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.lobby-team li .player-animal{width:24px;height:24px;font-size:20px}.lobby-team .lobby-name-wall li{padding:6px;font-size:12px;gap:4px}.playing .game-top{padding-left:84px}#quiz-home{font-size:11px;padding:6px 9px}#answered-circle{width:48px;height:48px;font-size:12px;right:9px;bottom:64px}}
.mystery-picture{display:inline-grid;place-items:center;width:110px;height:110px;background:#050507;color:#fff;border-radius:24px;font:900 76px Arial;box-shadow:0 0 0 2px #68547f}.mystery-opening{text-align:center}.mystery-window{height:150px;overflow:hidden;border-radius:25px;background:#08060c;border:3px solid #b892ec;margin:20px auto;width:210px}.mystery-reel-item{height:150px;display:flex;justify-content:center;align-items:center}.mystery-reel-item img{width:110px;height:110px;object-fit:contain}.mystery-reel-item.silhouette img{filter:brightness(0);background:#392951;border-radius:20px}.mystery-reel-item.prize{background:radial-gradient(#7853ab,#160e24)}#shop-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:20px}.shop-avatar{text-align:center;padding:22px;border:1px solid #6b5088;border-radius:18px;background:#2b1d3d}.shop-picture{height:115px;display:grid;place-items:center}.shop-picture .profile-icon{width:100px;height:100px}.mystery-box{border-color:#bc8cef;background:linear-gradient(150deg,#36234e,#15101e)}.mystery-box h2{font-size:22px}#mystery-admin fieldset{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:6px;max-height:350px;overflow:auto}#quiz-home{cursor:pointer}.playing .round-countdown{padding-top:45px}.playing .question-screen .auto-submit-status{display:none!important}.lobby-team .lobby-name-wall{overflow-y:auto;max-height:52dvh}
/* End actions sit below the podium, rather than over its decorative pillars. */
.podium-step::after{display:none}.podium-stage{margin:10px auto 0;align-items:end;flex:0 1 auto}.podium-screen .end-actions{margin:18px auto 6px;flex:none;background:#211735;padding:8px;border-radius:12px}.podium-screen>.game-controls:empty{display:none}

#host-fullscreen{position:fixed;left:96px;top:8px;z-index:90;padding:7px 11px;border-radius:20px;background:#241735;color:white;min-height:34px;font-size:13px}header #animal-profile{width:40px;height:40px;min-width:40px;border-radius:50%;padding:3px;display:grid;place-items:center}#animal-profile .profile-picture{border-radius:50%;width:100%;height:100%}#animal-profile .profile-icon{border-radius:50%;width:100%;height:100%;object-fit:cover}.mystery-box-picture{width:110px;height:110px;object-fit:contain;border-radius:24px}.result-filters{display:flex;gap:16px;flex-wrap:wrap}#result-list{display:grid;gap:8px}
.lobby-self{display:flex;align-items:center;flex-direction:column;gap:6px;margin:12px auto}.lobby-self>button{width:90px;height:90px;border-radius:50%;padding:6px;overflow:hidden}.lobby-self>button svg,.lobby-self>button img{width:100%;height:100%;object-fit:cover;border-radius:50%}.lobby-self>strong{font-size:1.2rem}.lobby-self>small{opacity:.7}.lobby-name-wall li{min-width:0}.lobby-name-wall li strong{display:block;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:none}.lobby-name-wall .player-animal{flex-shrink:0}
#toast,[role="alert"],.error{color:#fff!important}#toast{background:#39274d!important}.question-screen .answer-text{overflow:visible!important;white-space:normal;line-height:1.3;min-height:min-content;overflow-wrap:anywhere}.question-screen .answer{box-sizing:border-box;padding-bottom:12px}.question-screen.question-long{height:auto!important;min-height:calc(100dvh - 30px);overflow:visible!important}.question-screen.question-long h1{max-height:none!important;overflow:visible!important;flex-shrink:0!important}.question-screen.question-long #answer-area{flex:none!important}.question-screen.question-long .answers{height:auto!important;grid-auto-rows:minmax(min-content,1fr)!important}.question-screen.question-long .answer{min-height:70px!important;height:auto!important;overflow:visible!important}.admin-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.admin-tabs button[aria-selected="true"]{background:#8862bd;color:white;border-color:#c7a7ef}.admin-tabs+[hidden],main>details[hidden]{display:none!important}main>[role="tabpanel"]{margin-top:12px}.admin-icon-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}.admin-icon-tile{padding:15px;display:flex;align-items:stretch;flex-direction:column;gap:9px;border:1px solid #78618e;border-radius:14px}.admin-icon-tile>.player-animal{align-self:center;width:72px;height:72px}.admin-icon-tile button{font-size:13px;padding:8px}#mystery-box-form{display:grid;gap:10px;max-width:850px}#mystery-box-form>label{margin:0}.lobby-self>button{font-size:54px}.question-screen.question-long .answer-text{font-size:14px!important}
body.playing .question-screen{gap:5px;padding:36px 14px 8px!important}.playing .question-screen .game-top{min-height:32px;flex:none}.playing .question-screen h1{margin:4px auto;line-height:1.2}.playing .question-screen .instruction{margin:2px 0 5px;flex:none}.playing .question-screen .bs-progress,.playing .question-screen .connect-progress,.playing .question-screen .kingdom-progress{margin:2px 0;font-size:13px;flex:none}.playing .question-screen .timer{margin:4px 0}.playing .question-screen #answer-status:empty{display:none}.playing .question-screen .game-controls:has(.auto-submit-status){display:none}.playing .question-screen .answers{gap:7px}.playing .question-screen .answer{padding:8px 12px 8px 32px}.playing .question-screen .shape{left:10px;top:9px;font-size:13px}.playing .question-screen.question-long .answer-text{font-size:12px!important}.battleship-playing .question-screen>.timer{display:none}.playing .question-screen.question-long .answer{min-height:62px!important}

.lobby-name-wall [data-switch-team]{opacity:0;pointer-events:none}.lobby-name-wall li:hover [data-switch-team],.lobby-name-wall li:focus-within [data-switch-team]{opacity:1;pointer-events:auto}@media(hover:none){.lobby-name-wall [data-switch-team]{opacity:1;pointer-events:auto}}
#toast{pointer-events:none!important;top:12px!important;bottom:auto!important;max-width:min(500px,80vw)}.question-screen #answer-status{max-height:40px;overflow:auto;flex:none}.question-screen .game-controls{position:relative;z-index:20;flex:none;min-height:44px}.question-screen .game-controls:has(.auto-submit-status){min-height:0}

/* Reveal each winning disc only after the final drop has settled. */
.connect-disc.winning{animation:connect-reveal-win .35s var(--win-delay,1.5s) both!important}@keyframes connect-reveal-win{from{box-shadow:none;filter:none;outline:0 solid transparent}to{box-shadow:0 0 18px 5px #fff9;filter:brightness(1.35);outline:3px solid white}}
