/* GameGuessr — GameBuro native UI, compact desktop viewport. */
.gg-page{width:min(1240px,calc(100% - 40px));margin:14px auto 0;padding:0 0 48px;color:var(--sc-text);font-family:"Exo 2",system-ui,sans-serif}.gg-page [hidden]{display:none!important}.gg-kicker,.gg-mini-label,.gg-timeline-label{display:block;color:var(--sc-amber);font:900 10px/1.2 ui-monospace,Consolas,monospace;letter-spacing:.11em;text-transform:uppercase}.gg-landing{display:grid;gap:14px}.gg-main-hero,.gg-stage-card,.gg-answer-section,.gg-summary-card{position:relative;border:1px solid var(--sc-line);border-left:5px solid var(--sc-lime);background:rgba(13,18,12,.96);box-shadow:0 18px 48px rgba(0,0,0,.24)}.gg-main-hero:after,.gg-stage-card:after,.gg-answer-section:after{content:"";position:absolute;right:-1px;top:-1px;width:22px;height:22px;clip-path:polygon(0 0,100% 0,100% 100%);background:linear-gradient(45deg,transparent 0 47%,var(--sc-line) 48% 52%,var(--sc-bg) 53% 100%);pointer-events:none}.gg-main-hero{padding:25px 28px}.gg-main-hero h1{margin:6px 0 9px;font:950 clamp(34px,4.2vw,58px)/1 "Orbitron",sans-serif;letter-spacing:-.045em}.gg-main-hero p{max-width:900px;margin:0;color:var(--sc-muted);font-size:15px;line-height:1.5}.gg-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.gg-mode-card{position:relative;min-height:360px;padding:23px 22px 60px;border:1px solid var(--sc-line);border-radius:0;color:var(--sc-text);background:var(--sc-surface);text-align:left;text-decoration:none;overflow:hidden;transition:transform .16s,border-color .16s,background .16s}.gg-mode-card:before{content:"";position:absolute;left:0;top:0;width:4px;height:100%;background:var(--sc-lime);opacity:.42}.gg-mode-card:hover{transform:translateY(-3px);border-color:#5d704f;background:var(--sc-panel)}.gg-mode-no{position:absolute;right:18px;top:17px;color:#61705b;font:900 11px ui-monospace,monospace}.gg-mode-icon{width:47px;height:47px;margin-bottom:24px;border:1px solid rgba(213,250,87,.48);display:grid;place-items:center;color:var(--sc-lime);background:rgba(213,250,87,.035);font-size:23px}.gg-mode-card h2{margin:0 0 13px;font:900 19px/1.15 "Orbitron",sans-serif;letter-spacing:-.02em}.gg-mode-card p{margin:0;color:var(--sc-muted);font-size:13.5px;line-height:1.52}.gg-mode-card b{position:absolute;left:22px;bottom:21px;color:var(--sc-lime);font:900 11px ui-monospace,monospace;letter-spacing:.09em}

/* Game workspace: no scroll locking. On Full HD it is ~20% shorter than v3. */
.gg-game{display:grid;gap:8px}.gg-game-top{height:48px;border:1px solid var(--sc-line);background:rgba(13,18,12,.96);display:flex;align-items:center;justify-content:space-between;padding:5px 8px}.gg-back{height:34px;padding:0 10px;border:0;background:transparent;color:var(--sc-muted);font:900 10px "Exo 2",sans-serif;text-transform:uppercase}.gg-back:hover{color:var(--sc-lime)}.gg-round-meta{height:100%;display:flex;gap:4px;justify-content:flex-end}.gg-round-meta span{height:100%;padding:0 10px;border-left:1px solid var(--sc-line);display:flex;align-items:center;color:var(--sc-muted);font:850 9px ui-monospace,monospace;letter-spacing:.06em}.gg-round-meta b{margin-left:6px;color:var(--sc-text);font-size:11px}.gg-round-meta .gg-cap b{color:var(--sc-amber)}.gg-workspace{position:relative;height:clamp(560px,calc(100dvh - 260px),730px);min-height:0}.gg-mode-layout{height:100%;min-height:0}.gg-identify-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(465px,.9fr);gap:8px}.gg-geo-layout{display:grid;grid-template-columns:minmax(350px,34%) minmax(0,66%);gap:8px}.gg-date-layout{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(300px,.92fr) minmax(0,1.04fr);gap:8px}.gg-side-pane{display:grid;grid-template-rows:minmax(0,1fr) 204px;gap:8px;min-width:0;min-height:0}.gg-visual-slot{position:relative;min-width:0;min-height:0}.gg-identify-panel,.gg-compact-guess{min-width:0;min-height:0}.gg-identify-panel{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr);padding-bottom:0}.gg-compact-guess{position:relative;padding-bottom:8px;overflow:hidden}.gg-date-guess-panel{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) 40px}.gg-compact-head{padding:8px 9px 3px}.gg-compact-head h2{margin:3px 0 0;font:900 12px/1.15 "Orbitron",sans-serif}.gg-section-head{min-height:56px;padding:9px 12px;border-bottom:1px solid var(--sc-line);display:flex;align-items:center;justify-content:space-between;gap:12px}.gg-section-head h2{margin:4px 0 0;font:900 14px/1.15 "Orbitron",sans-serif}.gg-section-head>p{max-width:430px;margin:0;color:var(--sc-muted);font-size:10.5px;line-height:1.32;text-align:right}.gg-section-head>strong{color:var(--sc-muted);font:900 10px ui-monospace,monospace}

/* Screenshot stage */
.gg-stage-card{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}.gg-shot-head{min-height:50px}.gg-shot-stage{position:relative;min-height:0;overflow:hidden;background:#050705}.gg-shot-stage img{width:100%;height:100%;object-fit:cover;display:block;transition:opacity .14s}.gg-game[data-mode="geo"] .gg-shot-stage img,.gg-game[data-mode="date"] .gg-shot-stage img{object-fit:contain}.gg-shot-stage:fullscreen{background:#030503;padding:18px}.gg-shot-stage:fullscreen img{object-fit:contain}.gg-shot-noise{pointer-events:none;position:absolute;inset:0;opacity:.035;background-image:repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(255,255,255,.04) 3px)}.gg-fragment-badge{position:absolute;left:9px;top:9px;padding:5px 7px;border:1px solid rgba(255,255,255,.22);background:rgba(8,11,8,.86);color:#d4dfcf;font:900 8px ui-monospace,monospace;letter-spacing:.1em}.gg-shot-toolbar{min-height:44px;padding:5px 7px;border-top:1px solid var(--sc-line);display:flex;align-items:center;justify-content:space-between;gap:7px}.gg-shot-dots{display:flex;gap:4px;flex-wrap:wrap}.gg-shot-dots button{width:29px;height:29px;padding:0;border:1px solid var(--sc-line);border-radius:0;background:var(--sc-panel);color:var(--sc-muted);font:900 8px ui-monospace,monospace}.gg-shot-dots button:hover,.gg-shot-dots button.active{border-color:var(--sc-lime);color:var(--sc-lime);background:rgba(213,250,87,.055)}.gg-shot-actions{display:flex;gap:4px;justify-content:flex-end;flex-wrap:wrap}.gg-secondary{min-height:31px;padding:0 8px;border:1px solid var(--sc-line);border-radius:0;background:var(--sc-panel);color:var(--sc-text);font:900 8px "Exo 2",sans-serif;text-transform:uppercase}.gg-secondary:hover{border-color:var(--sc-lime);color:var(--sc-lime)}.gg-full-btn{border-color:rgba(255,174,78,.48);color:var(--sc-amber)}

/* Cover choices */
.gg-answer-section{overflow:hidden}.gg-game-options{display:grid;gap:5px}.gg-identify-panel .gg-game-options{height:100%;padding:7px;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}.gg-compact-guess .gg-game-options{padding:5px 7px 7px}.gg-geo-layout .gg-compact-guess .gg-game-options{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:1fr}.gg-date-guess-panel .gg-game-options{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));align-content:stretch}.gg-date-guess-panel .gg-option:last-child{grid-column:1/-1;width:50%;justify-self:center}.gg-option{position:relative;min-width:0;min-height:0;padding:0;border:1px solid var(--sc-line);border-radius:0;background:#070a07;overflow:hidden;color:var(--sc-text);text-align:left;transition:transform .12s,border-color .12s,box-shadow .12s}.gg-identify-panel .gg-option{height:100%}.gg-geo-layout .gg-option{height:106px}.gg-date-guess-panel .gg-option{height:100%}.gg-option:before{content:"";position:absolute;z-index:2;inset:40% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.95) 72%)}.gg-option img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform .18s,opacity .15s}.gg-option span{position:absolute;z-index:3;left:6px;right:6px;bottom:5px;color:#fff;font-size:9px;font-weight:850;line-height:1.12;text-shadow:0 1px 8px #000}.gg-option:hover{transform:translateY(-1px);border-color:#70835e}.gg-option:hover img{transform:scale(1.02)}.gg-option.active{border-color:var(--sc-lime);box-shadow:inset 0 0 0 2px var(--sc-lime),0 0 0 1px rgba(213,250,87,.15)}.gg-option.active:after{content:"✓";position:absolute;z-index:4;right:4px;top:4px;width:20px;height:20px;display:grid;place-items:center;background:var(--sc-lime);color:var(--sc-ink);font-weight:950}.gg-option.wrong{border-color:#a55757;filter:saturate(.35)}.gg-option.wrong:after{content:"×";position:absolute;z-index:4;right:4px;top:4px;width:20px;height:20px;display:grid;place-items:center;background:#a55757;color:#fff;font-weight:950}.gg-option:disabled{opacity:.62}.gg-accept{display:block;width:calc(100% - 14px);height:36px;margin:0 7px;padding:0 10px;border:1px solid var(--sc-lime);border-radius:0;background:var(--sc-lime);color:var(--sc-ink);font:950 9px "Exo 2",sans-serif;letter-spacing:.05em;text-transform:uppercase}.gg-accept:not(:disabled):hover{filter:brightness(1.07)}

/* Geography: map stays the primary object. */
.gg-map-panel,.gg-timeline-panel{min-width:0;min-height:0}.gg-map-panel{height:100%}.gg-map-wrap{position:relative;width:100%;height:100%;border:1px solid var(--sc-line);overflow:hidden;background:#eceeea}.gg-map-wrap #ggMap{width:100%;height:100%}.gg-map-wrap .maplibregl-map{font-family:"Exo 2",sans-serif}.maplibregl-ctrl-group{border-radius:0!important;box-shadow:0 0 0 1px rgba(0,0,0,.18)!important}.maplibregl-ctrl-group button{border-radius:0!important}.maplibregl-ctrl-attrib{font-size:8px!important}.maplibregl-ctrl-logo{opacity:.42}.gg-map-tip{position:absolute;z-index:5;left:9px;top:9px;max-width:min(500px,calc(100% - 76px));padding:6px 8px;border:1px solid rgba(26,34,24,.18);background:rgba(250,251,248,.9);box-shadow:0 6px 20px rgba(0,0,0,.1);color:#3b4538;font-size:9px;font-weight:800;line-height:1.3;pointer-events:none}.gg-guess-marker,.gg-target-marker{width:22px;height:22px;border-radius:50%;border:4px solid #fff;box-shadow:0 3px 12px rgba(0,0,0,.32)}.gg-guess-marker{background:#d07a38}.gg-target-marker{background:#78a833}

/* Date: discrete timeline, no slider. */
.gg-timeline-panel{height:100%;min-height:0}.gg-timeline-card{height:100%;min-height:0;padding:11px;border:1px solid var(--sc-line);background:radial-gradient(circle at 55% 42%,rgba(213,250,87,.035),transparent 58%),rgba(13,18,12,.96);display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:8px;overflow:hidden}.gg-timeline-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.gg-timeline-top strong{display:block;margin-top:3px;color:var(--sc-text);font:900 20px/1.05 "Orbitron",sans-serif}.gg-timeline-legend{display:flex;gap:8px;color:var(--sc-muted);font:800 7px ui-monospace,monospace;text-transform:uppercase}.gg-timeline-legend span:before{content:"";display:inline-block;width:8px;height:8px;margin-right:4px;vertical-align:-1px}.gg-timeline-legend .guess:before{background:var(--sc-amber)}.gg-timeline-legend .correct:before{background:var(--sc-lime)}.gg-timeline-block{min-height:0}.gg-timeline-label{margin-bottom:4px;font-size:8px}.gg-years-block{display:grid;grid-template-rows:auto minmax(0,1fr)}.gg-year-ruler{min-height:0;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:3px}.gg-year-tick{position:relative;min-width:0;min-height:0;padding:0;border:1px solid var(--sc-line);background:var(--sc-panel);color:var(--sc-muted);font:850 7px ui-monospace,monospace;cursor:pointer}.gg-year-tick span{position:absolute;left:50%;bottom:5px;transform:translateX(-50%)}.gg-year-tick:before{content:"";position:absolute;left:50%;top:6px;bottom:18px;width:1px;transform:translateX(-50%);background:#566152}.gg-year-tick:hover{border-color:#718164;color:var(--sc-text)}.gg-year-tick.active{border-color:var(--sc-amber);color:var(--sc-amber);background:rgba(255,174,78,.05)}.gg-year-tick.active:before,.gg-year-tick.guess:before{width:3px;background:var(--sc-amber);box-shadow:0 0 12px rgba(255,174,78,.26)}.gg-year-tick.correct{border-color:var(--sc-lime);color:var(--sc-lime);background:rgba(213,250,87,.04)}.gg-year-tick.correct:before{width:3px;background:var(--sc-lime);box-shadow:0 0 12px rgba(213,250,87,.3)}.gg-year-tick.both:before{width:5px;background:linear-gradient(90deg,var(--sc-amber) 0 50%,var(--sc-lime) 50% 100%)}.gg-month-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.gg-month-btn{height:31px;padding:2px;border:1px solid var(--sc-line);border-radius:0;background:var(--sc-panel);color:var(--sc-muted);font:900 8px ui-monospace,monospace;text-transform:uppercase}.gg-month-btn:hover{border-color:#687a57;color:var(--sc-text)}.gg-month-btn.active,.gg-month-btn.guess{border-color:var(--sc-amber);color:var(--sc-amber);background:rgba(255,174,78,.06)}.gg-month-btn.correct{border-color:var(--sc-lime);color:var(--sc-lime);background:rgba(213,250,87,.05);box-shadow:inset 0 0 0 1px var(--sc-lime)}.gg-month-btn.both{border-color:transparent;color:#fff;background:linear-gradient(90deg,rgba(255,174,78,.7) 0 50%,rgba(213,250,87,.7) 50% 100%)}.gg-date-inline-result{margin:0;padding:6px 8px;border:1px solid var(--sc-line);background:rgba(255,255,255,.018);color:var(--sc-muted);font-size:9px;line-height:1.3}.gg-guess-text{color:var(--sc-amber)!important}.gg-correct-text{color:var(--sc-lime)!important}

/* Round result replaces the answer panel itself. */
.gg-answer-section.is-result>:not(.gg-round-result){visibility:hidden;pointer-events:none}.gg-round-result{position:absolute;z-index:20;inset:0;padding:10px;border:0;border-left:4px solid var(--sc-lime);background:rgba(10,14,9,.985);display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:7px;align-content:start;overflow:hidden}.gg-round-result-main{display:flex;align-items:end;justify-content:space-between;gap:8px}.gg-round-score{margin:0;white-space:nowrap}.gg-round-score b{color:var(--sc-lime);font:950 clamp(24px,2vw,34px)/1 "Orbitron",sans-serif}.gg-round-score small{margin-left:4px;color:var(--sc-muted);font:850 7px ui-monospace,monospace}.gg-result-facts{min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;align-content:start;overflow:auto}.gg-result-facts div{min-width:0;padding:5px 6px;border:1px solid rgba(255,255,255,.055);background:rgba(255,255,255,.018)}.gg-result-facts small{display:block;margin-bottom:2px;color:var(--sc-muted);font:800 7px ui-monospace,monospace;text-transform:uppercase}.gg-result-facts b{display:block;overflow:hidden;color:var(--sc-text);font-size:9.5px;line-height:1.18;text-overflow:ellipsis;white-space:normal}.gg-result-facts .guess-fact b{color:var(--sc-amber)}.gg-result-facts .correct-fact b{color:var(--sc-lime)}.gg-result-next{width:100%;height:34px;padding:0 10px;border:1px solid var(--sc-lime);background:var(--sc-lime);color:var(--sc-ink);font:950 9px "Exo 2",sans-serif;text-transform:uppercase;white-space:nowrap}.gg-result-next:hover{filter:brightness(1.06)}.gg-identify-panel .gg-round-result{padding:16px}.gg-identify-panel .gg-result-facts{grid-template-columns:1fr}.gg-error{min-height:0;color:#df8a8a;font-size:11px;text-align:center}.gg-error:not(:empty){padding:7px 9px;border:1px solid rgba(223,138,138,.25);background:rgba(119,40,40,.12)}

/* Final report */
.gg-summary{padding:8px 0 20px}.gg-summary-card{width:min(920px,100%);margin:0 auto;padding:28px;overflow:hidden}.gg-summary-card header{padding-bottom:13px;border-bottom:1px solid var(--sc-line);display:grid;grid-template-columns:1fr auto;gap:5px}.gg-summary-card header span{color:var(--sc-lime);font:900 10px ui-monospace,monospace}.gg-summary-card header b{grid-row:1/3;grid-column:2;align-self:center;font:900 15px "Orbitron",sans-serif}.gg-summary-card header small{color:var(--sc-muted);font:800 10px ui-monospace,monospace}.gg-summary-score{margin:28px 0 8px}.gg-summary-score strong{font:950 clamp(50px,9vw,92px)/.9 "Orbitron",sans-serif;letter-spacing:-.05em}.gg-summary-score span{color:var(--sc-muted);font:850 11px ui-monospace,monospace}.gg-summary-grade{margin-bottom:22px;color:var(--sc-amber);font:900 13px "Orbitron",sans-serif}.gg-summary-rounds{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.gg-summary-round{position:relative;aspect-ratio:1.48/1;border:1px solid var(--sc-line);overflow:hidden;background:#070a07}.gg-summary-round img{width:100%;height:100%;object-fit:cover;opacity:.62}.gg-summary-round span{position:absolute;left:0;right:0;bottom:0;padding:22px 7px 7px;background:linear-gradient(transparent,rgba(0,0,0,.92));font:800 9px ui-monospace,monospace}.gg-summary-round b{position:absolute;right:6px;top:6px;padding:4px 5px;background:rgba(8,11,8,.88);color:var(--sc-lime);font:900 9px ui-monospace,monospace}.gg-summary-card footer{margin-top:18px;padding-top:12px;border-top:1px solid var(--sc-line);display:flex;justify-content:space-between;color:var(--sc-muted);font:850 10px ui-monospace,monospace}.gg-summary-card footer b{color:var(--sc-text)}.gg-summary-actions{width:min(920px,100%);margin:9px auto 0;display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.gg-summary-actions button{min-height:46px;border:1px solid var(--sc-line);border-radius:0;background:var(--sc-panel);color:var(--sc-text);font:900 10px "Exo 2",sans-serif;text-transform:uppercase}.gg-summary-actions button:first-child{border-color:var(--sc-lime);background:var(--sc-lime);color:var(--sc-ink)}

/* Only screens wider than Full HD scale the working width to ~80%. */
@media(min-width:1921px){.gg-page{width:80vw;max-width:none}.gg-workspace{height:clamp(650px,calc(100dvh - 270px),850px)}}

@media(max-width:1260px){.gg-page{width:calc(100% - 24px)}.gg-identify-layout{grid-template-columns:minmax(0,1fr) minmax(430px,.9fr)}.gg-geo-layout{grid-template-columns:minmax(335px,36%) minmax(0,64%)}.gg-date-layout{grid-template-columns:minmax(0,1fr) minmax(285px,.94fr) minmax(0,1fr)}.gg-option span{font-size:8px}}

/* Tablet: natural page flow. */
@media(max-width:980px){.gg-page{width:calc(100% - 20px);margin-top:10px}.gg-mode-grid{grid-template-columns:1fr}.gg-mode-card{min-height:250px}.gg-workspace{height:auto}.gg-mode-layout{height:auto}.gg-identify-layout,.gg-geo-layout,.gg-date-layout{display:grid;grid-template-columns:1fr;gap:8px}.gg-identify-layout .gg-visual-slot,.gg-date-layout>.gg-visual-slot{height:470px}.gg-identify-panel{height:auto}.gg-identify-panel .gg-game-options{height:auto;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(2,160px)}.gg-side-pane{grid-template-rows:460px auto}.gg-geo-layout .gg-compact-guess{min-height:155px}.gg-geo-layout .gg-option{height:92px}.gg-map-panel{height:570px}.gg-date-guess-panel{height:430px;order:3}.gg-timeline-panel{height:460px;order:2}.gg-date-layout>.gg-visual-slot{order:1}.gg-year-ruler{grid-template-columns:repeat(8,1fr)}.gg-summary-rounds{grid-template-columns:repeat(2,1fr)}}

/* Mobile: cards deliberately remain at least five per row. */
@media(max-width:700px){.gg-page{width:calc(100% - 12px);margin-top:8px}.gg-main-hero{padding:20px 16px}.gg-main-hero h1{font-size:36px}.gg-mode-card{padding:18px 16px 56px}.gg-mode-card p{font-size:13px}.gg-game-top{height:auto;min-height:46px;align-items:flex-start;gap:3px;flex-direction:column}.gg-round-meta{width:100%;height:32px}.gg-round-meta span{flex:1;justify-content:center;border:1px solid var(--sc-line);padding:0 4px}.gg-identify-layout .gg-visual-slot,.gg-date-layout>.gg-visual-slot{height:390px}.gg-side-pane{grid-template-rows:390px auto}.gg-section-head{align-items:flex-start;flex-direction:column;gap:4px}.gg-section-head>p{text-align:left}.gg-shot-toolbar{align-items:flex-start;flex-direction:column}.gg-shot-actions{width:100%}.gg-shot-actions button{flex:1}.gg-identify-panel .gg-game-options,.gg-geo-layout .gg-compact-guess .gg-game-options,.gg-date-guess-panel .gg-game-options{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:none;gap:3px;padding:5px}.gg-identify-panel .gg-option{height:auto;aspect-ratio:2/3}.gg-geo-layout .gg-option,.gg-date-guess-panel .gg-option{height:auto;aspect-ratio:2/3}.gg-date-guess-panel .gg-option:last-child{grid-column:auto;width:auto}.gg-option span{left:3px;right:3px;bottom:3px;font-size:6.5px;line-height:1.05}.gg-option.active:after,.gg-option.wrong:after{width:16px;height:16px;right:2px;top:2px;font-size:10px}.gg-geo-layout .gg-compact-guess{min-height:138px}.gg-date-guess-panel{height:auto;min-height:170px;display:block;padding-bottom:7px}.gg-date-guess-panel .gg-accept{margin-top:4px}.gg-map-panel{height:500px}.gg-map-tip{max-width:calc(100% - 65px);font-size:8px}.gg-timeline-panel{height:auto}.gg-timeline-card{height:auto;min-height:430px;padding:9px}.gg-timeline-top{align-items:flex-start;flex-direction:column}.gg-timeline-top strong{font-size:18px}.gg-year-ruler{height:270px}.gg-month-grid{grid-template-columns:repeat(6,1fr)}.gg-month-btn{height:32px}.gg-round-result{padding:8px}.gg-round-score b{font-size:24px}.gg-result-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.gg-result-facts b{font-size:8px}.gg-result-next{height:32px}.gg-summary-card{padding:18px}.gg-summary-rounds{grid-template-columns:1fr 1fr}.gg-summary-actions{grid-template-columns:1fr}}

@media(max-width:430px){.gg-identify-layout .gg-visual-slot,.gg-date-layout>.gg-visual-slot{height:350px}.gg-side-pane{grid-template-rows:350px auto}.gg-map-panel{height:460px}.gg-option span{font-size:6px}.gg-summary-rounds{grid-template-columns:1fr 1fr}}

/* v4 refinement: date mode has its own composition; Full HD stays at the old comfortable width. */
.gg-workspace{height:clamp(520px,calc(100dvh - 310px),700px)}
.gg-date-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(430px,.82fr);gap:8px}
.gg-date-right{min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,1.06fr) minmax(252px,.94fr);gap:8px}
.gg-date-right>.gg-timeline-panel,.gg-date-right>.gg-date-guess-panel{min-height:0;height:100%}
.gg-date-guess-panel{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr) 40px;padding-bottom:8px;overflow:hidden}
.gg-date-guess-panel .gg-game-options{height:100%;padding:5px 7px 7px;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:5px}
.gg-date-guess-panel .gg-option,.gg-date-guess-panel .gg-option:last-child{width:auto;height:100%;grid-column:auto;justify-self:stretch}
.gg-date-guess-panel .gg-option span{font-size:8px}
.gg-date-right .gg-timeline-card{padding:9px;gap:6px;grid-template-rows:auto minmax(0,1fr) auto auto}
.gg-date-right .gg-timeline-top strong{font-size:18px}
.gg-date-right .gg-year-ruler{grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:3px}
.gg-date-right .gg-month-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}
.gg-date-right .gg-month-btn{height:27px;font-size:7.5px}
.gg-date-right .gg-date-inline-result{padding:5px 7px;font-size:8.5px}

/* The answer panel becomes the result panel in every mode; visual tools remain untouched. */
.gg-date-guess-panel.is-result,.gg-geo-layout .gg-compact-guess.is-result,.gg-identify-panel.is-result{position:relative}

/* Faster visual loading: no fade-to-nearly-hidden effect while already-cached media swaps. */
.gg-shot-stage img{transition:opacity .08s}

/* Above Full HD only: expand to 80% of the viewport. */
@media(min-width:1921px){
  .gg-page{width:80vw;max-width:none}
  .gg-workspace{height:clamp(640px,calc(100dvh - 300px),900px)}
  .gg-date-layout{grid-template-columns:minmax(0,1.22fr) minmax(500px,.78fr)}
}

@media(max-width:1260px){
  .gg-date-layout{grid-template-columns:minmax(0,1.14fr) minmax(405px,.86fr)}
}

@media(max-width:980px){
  .gg-date-layout{grid-template-columns:1fr;gap:8px}
  .gg-date-layout>.gg-visual-slot{height:430px;order:1}
  .gg-date-right{display:grid;grid-template-rows:auto auto;gap:8px;order:2}
  .gg-date-right>.gg-timeline-panel{height:auto;order:1}
  .gg-date-right>.gg-date-guess-panel{height:auto;min-height:220px;order:2}
  .gg-date-right .gg-timeline-card{height:auto;min-height:390px}
  .gg-date-right .gg-year-ruler{height:210px}
  .gg-date-guess-panel .gg-game-options{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:none}
  .gg-date-guess-panel .gg-option{height:auto;aspect-ratio:2/3}
}

@media(max-width:700px){
  .gg-date-layout>.gg-visual-slot{height:370px}
  .gg-date-right .gg-timeline-card{min-height:360px}
  .gg-date-right .gg-year-ruler{height:205px;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr))}
  .gg-date-right .gg-month-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .gg-date-guess-panel{min-height:165px}
  .gg-date-guess-panel .gg-game-options{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;padding:4px}
  .gg-date-guess-panel .gg-option{aspect-ratio:2/3}
  .gg-date-guess-panel .gg-option span{left:3px;right:3px;bottom:3px;font-size:6.3px;line-height:1.03}
}

@media(max-width:430px){
  .gg-date-layout>.gg-visual-slot{height:340px}
  .gg-date-right .gg-timeline-card{min-height:350px}
  .gg-date-guess-panel{min-height:155px}
}

/* ===== v5 refinements: proper cover cards, timeline ruler, mobile spacing ===== */
/* Covers keep a real 2:3 poster area. The game name lives in its own plate below it. */
.gg-option{display:flex;flex-direction:column;height:auto!important;aspect-ratio:auto!important;background:#080b08}
.gg-option:before{display:none!important}
.gg-option img{position:relative!important;inset:auto!important;display:block;width:100%;height:auto!important;aspect-ratio:2/3;object-fit:cover;object-position:center;flex:0 0 auto;transform:none!important;background:#050705}
.gg-option span{position:relative!important;z-index:3;left:auto!important;right:auto!important;bottom:auto!important;display:flex;align-items:center;justify-content:center;min-height:30px;padding:5px 6px;background:linear-gradient(180deg,#141914,#0d110d);border-top:1px solid var(--sc-line);color:#f1f4ee;font-size:8.5px;font-weight:850;line-height:1.12;text-align:center;text-shadow:none;overflow:hidden}
.gg-identify-panel .gg-game-options{grid-template-rows:repeat(2,auto);align-content:center}
.gg-geo-layout .gg-compact-guess .gg-game-options,.gg-date-guess-panel .gg-game-options{grid-template-rows:auto;align-content:center}
.gg-option:hover img{transform:none!important}
.gg-option.active:after,.gg-option.wrong:after{top:4px;right:4px}

/* Revealing all screenshots means the actual whole image is visible, not another crop inside the same frame. */
.gg-stage-card.is-full-images .gg-shot-stage img{object-fit:contain!important;background:#050705}

/* Bring back the expressive timeline: one continuous ruler instead of a wall of year buttons. */
.gg-date-right .gg-timeline-card{padding:11px 12px;gap:8px;grid-template-rows:auto minmax(130px,1fr) auto auto;background:radial-gradient(circle at 50% 46%,rgba(213,250,87,.05),transparent 46%),linear-gradient(180deg,#10170f,#0a0f09)}
.gg-date-right .gg-timeline-top{padding-bottom:7px;border-bottom:1px solid var(--sc-line)}
.gg-date-right .gg-timeline-top strong{color:var(--sc-amber);font-size:19px}
.gg-date-right .gg-year-ruler{position:relative;height:100%;min-height:130px;display:grid;grid-template-columns:repeat(32,minmax(0,1fr));grid-template-rows:1fr;gap:0;border:1px solid var(--sc-line);background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,.006));overflow:hidden}
.gg-date-right .gg-year-ruler:before{content:"";position:absolute;z-index:0;left:0;right:0;top:48%;height:1px;background:#465140;box-shadow:0 -38px 0 rgba(255,255,255,.022),0 38px 0 rgba(255,255,255,.022)}
.gg-date-right .gg-year-tick{position:relative;z-index:1;height:100%;min-width:0;min-height:0;padding:0;border:0;border-right:1px solid rgba(255,255,255,.035);background:transparent;color:#778271;font:800 7px ui-monospace,monospace;cursor:pointer}
.gg-date-right .gg-year-tick:before{content:"";position:absolute;left:50%;top:calc(48% - 13px);bottom:auto;width:1px;height:26px;background:#596553;transform:translateX(-50%);transition:height .12s,top .12s,width .12s,background .12s}
.gg-date-right .gg-year-tick span{position:absolute;left:50%;bottom:7px;transform:translateX(-50%) rotate(-58deg);transform-origin:center;white-space:nowrap}
.gg-date-right .gg-year-tick:hover{border-color:transparent;color:var(--sc-text);background:rgba(213,250,87,.025)}
/* Before accepting, and after a wrong date, BOTH the chosen year and chosen month are amber. */
.gg-date-right .gg-year-tick.active,.gg-date-right .gg-year-tick.guess{border-color:transparent;color:var(--sc-amber);background:rgba(255,174,78,.055)}
.gg-date-right .gg-year-tick.active:before,.gg-date-right .gg-year-tick.guess:before{top:22%;height:56%;width:3px;background:var(--sc-amber);box-shadow:0 0 14px rgba(255,174,78,.34)}
.gg-date-right .gg-year-tick.correct{border-color:transparent;color:var(--sc-lime);background:rgba(213,250,87,.045)}
.gg-date-right .gg-year-tick.correct:before{top:18%;height:64%;width:3px;background:var(--sc-lime);box-shadow:0 0 14px rgba(213,250,87,.32)}
.gg-date-right .gg-year-tick.both{color:#fff;background:linear-gradient(90deg,rgba(255,174,78,.075),rgba(213,250,87,.075))}
.gg-date-right .gg-year-tick.both:before{top:18%;height:64%;width:5px;background:linear-gradient(90deg,var(--sc-amber) 0 50%,var(--sc-lime) 50% 100%);box-shadow:0 0 14px rgba(213,250,87,.16)}
.gg-date-right .gg-month-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:3px}
.gg-date-right .gg-month-btn{height:34px;padding:2px;font-size:7px}
.gg-date-right .gg-month-btn.active,.gg-date-right .gg-month-btn.guess{border-color:var(--sc-amber);color:var(--sc-amber);background:rgba(255,174,78,.07)}
.gg-date-right .gg-month-btn.correct{border-color:var(--sc-lime);color:var(--sc-lime);background:rgba(213,250,87,.055);box-shadow:inset 0 0 0 1px var(--sc-lime)}
.gg-date-right .gg-month-btn.both{border-color:transparent;color:#fff;background:linear-gradient(90deg,rgba(255,174,78,.7) 0 50%,rgba(213,250,87,.7) 50% 100%)}

@media(max-width:980px){
  .gg-option span{min-height:28px;font-size:8px;padding:4px}
  .gg-date-right .gg-year-ruler{height:210px;min-height:210px;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:3px;border:0;background:transparent;overflow:visible}
  .gg-date-right .gg-year-ruler:before{display:none}
  .gg-date-right .gg-year-tick{height:auto;min-height:48px;border:1px solid var(--sc-line);background:var(--sc-panel)}
  .gg-date-right .gg-year-tick:before{top:8px;height:22px}
  .gg-date-right .gg-year-tick span{bottom:5px;transform:translateX(-50%);font-size:7px}
  .gg-date-right .gg-year-tick.active:before,.gg-date-right .gg-year-tick.guess:before,.gg-date-right .gg-year-tick.correct:before,.gg-date-right .gg-year-tick.both:before{top:6px;height:30px}
  .gg-date-right .gg-month-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
}

@media(max-width:700px){
  /* Keep the following/recommended mode strip visually separated from the game on phones. */
  .gg-page{padding-bottom:132px}
  /* All game choices stay at five cards per row on mobile; the lower title plate remains readable. */
  .gg-identify-panel .gg-game-options,.gg-geo-layout .gg-compact-guess .gg-game-options,.gg-date-guess-panel .gg-game-options{grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-template-rows:auto!important;gap:3px;padding:5px}
  .gg-identify-panel .gg-game-options{grid-template-rows:repeat(2,auto)!important}
  .gg-option{height:auto!important;aspect-ratio:auto!important}
  .gg-option img{aspect-ratio:2/3}
  .gg-option span{min-height:25px;padding:3px 2px;font-size:6.2px;line-height:1.02}
  .gg-option.active:after,.gg-option.wrong:after{width:15px;height:15px;top:2px;right:2px;font-size:9px}
  .gg-date-right .gg-timeline-card{min-height:350px}
  .gg-date-right .gg-month-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media(min-width:981px){.gg-geo-layout .gg-side-pane{grid-template-rows:minmax(0,1fr) 232px}}


/* ===== v6: large-screen scaling + geo answer panel fit ===== */
/* The 2:3 covers need a real reserved row in geography. Do not clip the title plates or Accept button. */
@media(min-width:981px){
  .gg-geo-layout .gg-side-pane{grid-template-rows:minmax(0,1fr) 264px}
  .gg-geo-layout .gg-compact-guess{display:grid;grid-template-rows:auto minmax(0,1fr) 36px;min-height:0;padding-bottom:7px;overflow:hidden}
  .gg-geo-layout .gg-compact-guess .gg-game-options{height:100%;min-height:0;align-items:center;align-content:center}
  .gg-geo-layout .gg-compact-guess .gg-option{min-height:0}
  .gg-geo-layout .gg-accept{align-self:end}
}

/* Above Full HD GameGuessr grows as a whole UI, not just as an empty wider canvas. */
@media(min-width:1921px){
  .gg-page{width:85vw;max-width:none}
  .gg-workspace{height:clamp(700px,calc(100dvh - 310px),960px)}
  .gg-game{gap:10px}
  .gg-game-top{height:58px;padding:7px 11px}
  .gg-back{height:40px;padding:0 13px;font-size:12px}
  .gg-round-meta{gap:5px}
  .gg-round-meta span{padding:0 14px;font-size:11px}
  .gg-round-meta b{margin-left:7px;font-size:14px}
  .gg-kicker,.gg-mini-label,.gg-timeline-label{font-size:12px}
  .gg-section-head{min-height:66px;padding:11px 15px}
  .gg-section-head h2{font-size:17px}
  .gg-section-head>p{max-width:520px;font-size:13px}
  .gg-section-head>strong{font-size:12px}
  .gg-compact-head{padding:10px 12px 4px}
  .gg-compact-head h2{font-size:15px}
  .gg-shot-head{min-height:60px}
  .gg-shot-toolbar{min-height:54px;padding:7px 9px}
  .gg-shot-dots{gap:5px}
  .gg-shot-dots button{width:36px;height:36px;font-size:10px}
  .gg-secondary{min-height:38px;padding:0 11px;font-size:10px}
  .gg-fragment-badge{left:12px;top:12px;padding:6px 9px;font-size:10px}
  .gg-option span{min-height:38px;padding:7px 8px;font-size:10.5px}
  .gg-option.active:after,.gg-option.wrong:after{width:25px;height:25px;font-size:14px}
  .gg-accept{height:44px;font-size:11px}
  .gg-geo-layout{grid-template-columns:clamp(480px,26vw,620px) minmax(0,1fr)}
  .gg-geo-layout .gg-side-pane{grid-template-rows:minmax(0,1fr) 310px}
  .gg-geo-layout .gg-compact-guess{grid-template-rows:auto minmax(0,1fr) 44px}
  .gg-map-tip{left:12px;top:12px;padding:8px 11px;font-size:11px}
  .gg-guess-marker,.gg-target-marker{width:28px;height:28px;border-width:5px}
  .gg-date-layout{grid-template-columns:minmax(0,1.22fr) minmax(540px,.78fr)}
  .gg-date-right{gap:10px}
  .gg-date-right .gg-timeline-card{padding:14px 15px;gap:10px}
  .gg-date-right .gg-timeline-top strong{font-size:24px}
  .gg-date-right .gg-year-tick{font-size:9px}
  .gg-date-right .gg-month-btn{height:42px;font-size:9px}
  .gg-date-right .gg-date-inline-result{padding:7px 9px;font-size:11px}
  .gg-round-result{padding:14px;gap:10px;border-left-width:5px}
  .gg-round-score b{font-size:42px}
  .gg-round-score small{font-size:9px}
  .gg-result-facts{gap:6px}
  .gg-result-facts div{padding:7px 8px}
  .gg-result-facts small{font-size:9px}
  .gg-result-facts b{font-size:12px;line-height:1.22}
  .gg-result-next{height:43px;font-size:11px}
  .gg-error{font-size:13px}
  .gg-summary-card,.gg-summary-actions{width:min(1120px,100%)}
  .gg-summary-card{padding:34px}
  .gg-summary-card header span,.gg-summary-card header small{font-size:12px}
  .gg-summary-card header b{font-size:18px}
  .gg-summary-grade{font-size:16px}
  .gg-summary-round span,.gg-summary-round b{font-size:11px}
  .gg-summary-card footer{font-size:12px}
  .gg-summary-actions button{min-height:54px;font-size:12px}
}

@media(min-width:3000px){
  .gg-game-top{height:66px}
  .gg-back{height:46px;font-size:14px}
  .gg-round-meta span{font-size:13px}
  .gg-round-meta b{font-size:16px}
  .gg-kicker,.gg-mini-label,.gg-timeline-label{font-size:14px}
  .gg-section-head h2{font-size:20px}
  .gg-section-head>p{font-size:15px}
  .gg-compact-head h2{font-size:18px}
  .gg-shot-dots button{width:42px;height:42px;font-size:12px}
  .gg-secondary{min-height:44px;font-size:12px}
  .gg-option span{min-height:44px;font-size:12px}
  .gg-accept,.gg-result-next{height:50px;font-size:13px}
  .gg-geo-layout{grid-template-columns:620px minmax(0,1fr)}
  .gg-geo-layout .gg-side-pane{grid-template-rows:minmax(0,1fr) 350px}
  .gg-geo-layout .gg-compact-guess{grid-template-rows:auto minmax(0,1fr) 50px}
  .gg-round-score b{font-size:50px}
  .gg-result-facts small{font-size:10px}
  .gg-result-facts b{font-size:14px}
}

/* v7: stronger UI scaling above Full HD. Keep 1920px and below unchanged. */
@media(min-width:1921px){
  .gg-game-top{height:62px;padding:8px 13px}
  .gg-back{height:44px;padding:0 15px;font-size:13px}
  .gg-round-meta span{padding:0 16px;font-size:12px}
  .gg-round-meta b{margin-left:8px;font-size:15px}
  .gg-kicker,.gg-mini-label,.gg-timeline-label{font-size:13px}
  .gg-section-head{min-height:70px;padding:12px 16px}
  .gg-section-head h2{font-size:19px}
  .gg-section-head>p{max-width:560px;font-size:14px;line-height:1.35}
  .gg-section-head>strong{font-size:13px}
  .gg-compact-head{padding:11px 13px 5px}
  .gg-compact-head h2{font-size:17px}
  .gg-shot-head{min-height:64px}
  .gg-shot-toolbar{min-height:58px;padding:8px 10px}
  .gg-shot-dots button{width:40px;height:40px;font-size:11px}
  .gg-secondary{min-height:42px;padding:0 13px;font-size:11.5px}
  .gg-fragment-badge{padding:7px 10px;font-size:11px}
  .gg-option span{min-height:42px;padding:8px 9px;font-size:11.5px;line-height:1.16}
  .gg-option.active:after,.gg-option.wrong:after{width:28px;height:28px;font-size:15px}
  .gg-accept{height:50px;font-size:13px}
  .gg-map-tip{padding:9px 12px;font-size:12px}

  /* Timeline needs its own scale because its desktop ruler uses tiny monospace labels. */
  .gg-date-right .gg-timeline-card{padding:16px 17px;gap:11px}
  .gg-date-right .gg-timeline-top strong{font-size:28px}
  .gg-date-right .gg-timeline-legend{font-size:10px;gap:12px}
  .gg-date-right .gg-timeline-legend span:before{width:10px;height:10px;margin-right:5px}
  .gg-date-right .gg-timeline-label{font-size:11px;margin-bottom:6px}
  .gg-date-right .gg-year-tick{font-size:11px}
  .gg-date-right .gg-year-tick span{bottom:9px}
  .gg-date-right .gg-month-btn{height:46px;font-size:11px}
  .gg-date-right .gg-date-inline-result{padding:8px 10px;font-size:12px;line-height:1.35}

  .gg-round-result{padding:16px;gap:11px}
  .gg-round-score b{font-size:46px}
  .gg-round-score small{font-size:10px}
  .gg-result-facts{gap:7px}
  .gg-result-facts div{padding:8px 9px}
  .gg-result-facts small{font-size:10px}
  .gg-result-facts b{font-size:13.5px;line-height:1.24}
  .gg-result-next{height:49px;font-size:13px}
  .gg-error{font-size:14px}

  .gg-summary-card header span,.gg-summary-card header small{font-size:13px}
  .gg-summary-card header b{font-size:20px}
  .gg-summary-grade{font-size:18px}
  .gg-summary-round span,.gg-summary-round b{font-size:12px}
  .gg-summary-card footer{font-size:13px}
  .gg-summary-actions button{min-height:58px;font-size:13px}
}

@media(min-width:3000px){
  .gg-game-top{height:72px}
  .gg-back{height:50px;font-size:15px}
  .gg-round-meta span{font-size:14px}
  .gg-round-meta b{font-size:18px}
  .gg-kicker,.gg-mini-label,.gg-timeline-label{font-size:15px}
  .gg-section-head h2{font-size:22px}
  .gg-section-head>p{font-size:16px}
  .gg-compact-head h2{font-size:20px}
  .gg-shot-dots button{width:46px;height:46px;font-size:13px}
  .gg-secondary{min-height:48px;font-size:13px}
  .gg-option span{min-height:48px;font-size:13px}
  .gg-accept,.gg-result-next{height:56px;font-size:15px}

  .gg-date-right .gg-timeline-top strong{font-size:32px}
  .gg-date-right .gg-timeline-legend{font-size:12px}
  .gg-date-right .gg-timeline-label{font-size:13px}
  .gg-date-right .gg-year-tick{font-size:13px}
  .gg-date-right .gg-month-btn{height:52px;font-size:13px}
  .gg-date-right .gg-date-inline-result{font-size:14px}

  .gg-round-score b{font-size:54px}
  .gg-round-score small{font-size:11px}
  .gg-result-facts small{font-size:11px}
  .gg-result-facts b{font-size:15px}
}

/* ===== v8: geo panel fit tweak ===== */
/* In geography mode the five cover cards should sit comfortably above the Accept button. */
@media(min-width:981px){
  .gg-geo-layout .gg-side-pane{grid-template-rows:minmax(0,1fr) 246px}
  .gg-geo-layout .gg-compact-guess{grid-template-rows:auto minmax(0,1fr) 34px;padding-bottom:6px}
  .gg-geo-layout .gg-compact-guess .gg-game-options{padding:4px 6px 6px;gap:4px}
  .gg-geo-layout .gg-option{height:92px}
  .gg-geo-layout .gg-option span{min-height:30px;padding:5px 5px 6px;font-size:8.2px;line-height:1.08}
  .gg-geo-layout .gg-accept{height:34px;margin:0 6px;width:calc(100% - 12px)}
}

@media(min-width:1921px){
  .gg-geo-layout .gg-side-pane{grid-template-rows:minmax(0,1fr) 286px}
  .gg-geo-layout .gg-compact-guess{grid-template-rows:auto minmax(0,1fr) 40px;padding-bottom:7px}
  .gg-geo-layout .gg-option{height:102px}
  .gg-geo-layout .gg-option span{min-height:34px;font-size:9.4px}
  .gg-geo-layout .gg-accept{height:40px}
}

@media(min-width:3000px){
  .gg-geo-layout .gg-side-pane{grid-template-rows:minmax(0,1fr) 324px}
  .gg-geo-layout .gg-compact-guess{grid-template-rows:auto minmax(0,1fr) 46px}
  .gg-geo-layout .gg-option{height:116px}
  .gg-geo-layout .gg-option span{min-height:38px;font-size:10.6px}
  .gg-geo-layout .gg-accept{height:46px}
}

/* ===== v9: real geo-card reduction + scalable option titles ===== */
/* v8 tried to reduce .gg-option height, but the v5 card model uses height:auto!important.
   Reduce the card itself (and therefore its 2:3 poster) instead of fighting that rule. */
@media(min-width:981px){
  .gg-geo-layout .gg-compact-guess .gg-option{
    width:94%!important;
    height:auto!important;
    justify-self:center;
  }
  .gg-geo-layout .gg-compact-guess .gg-option span,
  .gg-date-guess-panel .gg-option span{
    font-size:9px!important;
    line-height:1.1;
  }
}

/* Large-screen UI scaling must also reach the more-specific geo/date title selectors. */
@media(min-width:1921px){
  .gg-geo-layout .gg-compact-guess .gg-option{
    width:84%!important;
  }
  .gg-geo-layout .gg-compact-guess .gg-option span,
  .gg-date-guess-panel .gg-option span{
    min-height:40px;
    padding:7px 7px;
    font-size:12.5px!important;
    line-height:1.14;
  }
}

@media(min-width:3000px){
  .gg-geo-layout .gg-compact-guess .gg-option{
    width:82%!important;
  }
  .gg-geo-layout .gg-compact-guess .gg-option span,
  .gg-date-guess-panel .gg-option span{
    min-height:46px;
    padding:8px 8px;
    font-size:14.5px!important;
    line-height:1.15;
  }
}

/* ===== v10: restore full-size geo cards; give the answer panel more height; overlay screenshot controls ===== */
/* Restore the normal 2:3 cards. v8/v9 card shrinking is intentionally cancelled. */
@media(min-width:981px){
  .gg-geo-layout .gg-compact-guess .gg-option{
    width:100%!important;
    height:auto!important;
    justify-self:stretch;
  }

  /* The lower answer area gets the space instead of squeezing the cards. */
  .gg-geo-layout .gg-side-pane{
    grid-template-rows:minmax(0,1fr) 318px;
  }
  .gg-geo-layout .gg-compact-guess{
    grid-template-rows:auto minmax(0,1fr) 38px;
    padding-bottom:7px;
  }
  .gg-geo-layout .gg-compact-guess .gg-game-options{
    padding:5px 7px 7px;
    gap:5px;
  }
  .gg-geo-layout .gg-accept{
    width:calc(100% - 14px);
    height:38px;
    margin:0 7px;
  }

  /* Screenshot switchers/actions live on the image itself and no longer consume a row below it. */
  .gg-game[data-mode="geo"] .gg-stage-card{
    position:relative;
    grid-template-rows:auto minmax(0,1fr);
  }
  .gg-game[data-mode="geo"] .gg-shot-toolbar{
    position:absolute;
    z-index:12;
    left:8px;
    right:8px;
    bottom:8px;
    min-height:0;
    padding:0;
    border:0;
    background:transparent;
    align-items:flex-end;
    pointer-events:none;
  }
  .gg-game[data-mode="geo"] .gg-shot-dots,
  .gg-game[data-mode="geo"] .gg-shot-actions{
    pointer-events:auto;
    padding:4px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(5,8,5,.76);
    box-shadow:0 5px 18px rgba(0,0,0,.28);
    backdrop-filter:blur(5px);
  }
  .gg-game[data-mode="geo"] .gg-shot-actions:empty{display:none}
}

@media(min-width:1921px){
  .gg-geo-layout .gg-side-pane{
    grid-template-rows:minmax(0,1fr) 360px;
  }
  .gg-geo-layout .gg-compact-guess{
    grid-template-rows:auto minmax(0,1fr) 48px;
  }
  .gg-geo-layout .gg-accept{height:48px}
  .gg-game[data-mode="geo"] .gg-shot-toolbar{left:11px;right:11px;bottom:11px}
  .gg-game[data-mode="geo"] .gg-shot-dots,
  .gg-game[data-mode="geo"] .gg-shot-actions{padding:5px}
}

@media(min-width:3000px){
  .gg-geo-layout .gg-side-pane{
    grid-template-rows:minmax(0,1fr) 410px;
  }
  .gg-geo-layout .gg-compact-guess{
    grid-template-rows:auto minmax(0,1fr) 54px;
  }
  .gg-geo-layout .gg-accept{height:54px}
}

/* On tablet/phone the geo screenshot buttons also float over the image, but retain the natural page flow. */
@media(max-width:980px){
  .gg-game[data-mode="geo"] .gg-stage-card{
    position:relative;
    grid-template-rows:auto minmax(0,1fr);
  }
  .gg-game[data-mode="geo"] .gg-shot-toolbar{
    position:absolute;
    z-index:12;
    left:7px;
    right:7px;
    bottom:7px;
    min-height:0;
    padding:0;
    border:0;
    background:transparent;
    flex-direction:row;
    align-items:flex-end;
    pointer-events:none;
  }
  .gg-game[data-mode="geo"] .gg-shot-dots,
  .gg-game[data-mode="geo"] .gg-shot-actions{
    width:auto;
    pointer-events:auto;
    padding:3px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(5,8,5,.78);
    box-shadow:0 4px 15px rgba(0,0,0,.26);
    backdrop-filter:blur(4px);
  }
  .gg-game[data-mode="geo"] .gg-shot-actions{margin-left:auto}
  .gg-game[data-mode="geo"] .gg-shot-actions button{flex:0 0 auto}
}

/* ===== v11: sharing/result page ===== */
.gg-summary-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
.gg-summary-actions button:nth-child(2){border-color:rgba(255,174,78,.5);color:var(--sc-amber)}
.gg-share-page{padding-top:24px}.gg-share-shell{display:grid;gap:10px}.gg-shared-meta{margin:0 0 18px;display:flex;gap:10px;flex-wrap:wrap;color:var(--sc-muted);font:750 9px ui-monospace,monospace}.gg-shared-meta span,.gg-shared-meta a{padding:5px 7px;border:1px solid var(--sc-line);color:var(--sc-muted);text-decoration:none}.gg-shared-meta a{color:var(--sc-lime)}.gg-share-play{min-height:46px;border:1px solid var(--sc-lime);display:flex;align-items:center;justify-content:center;background:var(--sc-lime);color:var(--sc-ink);font:900 10px "Exo 2",sans-serif;text-decoration:none;text-transform:uppercase}.gg-share-page .gg-summary-actions{grid-template-columns:1fr 1fr}
@media(max-width:700px){.gg-summary-actions{grid-template-columns:1fr 1fr}.gg-share-page .gg-summary-actions{grid-template-columns:1fr}.gg-shared-meta{flex-direction:column}}

/* ===== v24: stable proportions, photo lightbox, SEO separation ===== */
/* Desktop layouts keep the same proportions while the whole workspace scales. */
@media(min-width:981px){
  .gg-identify-layout{grid-template-columns:minmax(0,55fr) minmax(0,45fr)}
  .gg-geo-layout{grid-template-columns:minmax(0,34fr) minmax(0,66fr)}
  .gg-geo-layout .gg-side-pane{grid-template-rows:minmax(0,64fr) minmax(245px,36fr)}
}
@media(min-width:1921px){
  .gg-identify-layout{grid-template-columns:minmax(0,55fr) minmax(0,45fr)}
  .gg-geo-layout{grid-template-columns:minmax(0,34fr) minmax(0,66fr)}
  .gg-geo-layout .gg-side-pane{grid-template-rows:minmax(0,64fr) minmax(0,36fr)}
}
@media(min-width:3000px){
  .gg-geo-layout .gg-side-pane{grid-template-rows:minmax(0,64fr) minmax(0,36fr)}
}

/* Photo-site style enlargement: no result card, just the current image over the page. */
.gg-zoom-btn{position:absolute;z-index:14;right:10px;top:10px;width:36px;height:36px;padding:0;border:1px solid rgba(255,255,255,.28);display:grid;place-items:center;background:rgba(5,8,5,.76);color:#fff;box-shadow:0 5px 18px rgba(0,0,0,.3);backdrop-filter:blur(5px);cursor:pointer}
.gg-zoom-btn:hover{border-color:var(--sc-lime);color:var(--sc-lime);background:rgba(10,15,9,.9)}
.gg-zoom-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.gg-lightbox{position:fixed;z-index:10050;inset:0;padding:30px 72px;display:flex;align-items:center;justify-content:center;background:rgba(2,4,2,.88);backdrop-filter:blur(4px)}
.gg-lightbox[hidden]{display:none!important}
.gg-lightbox img{display:block;max-width:min(92vw,1800px);max-height:90vh;width:auto;height:auto;object-fit:contain;box-shadow:0 22px 80px rgba(0,0,0,.62)}
.gg-lightbox-close,.gg-lightbox-nav{position:fixed;z-index:2;border:1px solid rgba(255,255,255,.24);background:rgba(10,14,10,.82);color:#fff;cursor:pointer;backdrop-filter:blur(5px)}
.gg-lightbox-close{right:24px;top:20px;width:46px;height:46px;font:300 30px/1 Arial,sans-serif}
.gg-lightbox-nav{top:50%;width:50px;height:72px;transform:translateY(-50%);font:300 42px/1 Arial,sans-serif}
.gg-lightbox-prev{left:16px}.gg-lightbox-next{right:16px}
.gg-lightbox-close:hover,.gg-lightbox-nav:hover{border-color:var(--sc-lime);color:var(--sc-lime)}

/* SEO description: exact local copy of the shared licence/diploma text block. */
.gg-seo{width:min(var(--sc-copy),calc(100% - 40px));margin:26px auto 0;padding:17px 19px;border:1px solid var(--sc-line-soft);border-radius:0;color:var(--sc-muted);background:rgba(13,18,12,.7);font-size:13px;line-height:1.65;text-align:left}
.gg-seo p{margin:0}

/* Date option titles are allowed to use several lines instead of being clipped. */
.gg-date-guess-panel .gg-option span{min-height:38px;white-space:normal;overflow:visible;overflow-wrap:anywhere}
@media(min-width:981px) and (max-width:1920px){.gg-date-guess-panel .gg-option span{min-height:40px;padding:5px 4px;font-size:8.4px!important;line-height:1.08}}

/* Keep MapLibre attribution inside the map on narrow screens. */
.gg-map-wrap .maplibregl-ctrl-bottom-right{max-width:100%}
.gg-map-wrap .maplibregl-ctrl-attrib{max-width:calc(100% - 8px)!important;white-space:normal!important;overflow-wrap:anywhere}

@media(max-width:980px){
  /* Mobile/tablet game layouts must stay in normal document flow so the SEO block can never sit on top of a map or answer panel. */
  .gg-workspace,.gg-mode-layout{height:auto!important}
  .gg-geo-layout,.gg-date-layout,.gg-identify-layout{min-height:0}
  .gg-map-panel{min-height:570px}
  .gg-date-right .gg-timeline-card{min-height:400px}
}
@media(max-width:700px){
  .gg-page{padding-bottom:0}
  .gg-seo{margin-top:34px;margin-bottom:0}
  .gg-map-panel{height:500px;min-height:500px}
  .gg-date-right .gg-timeline-card{min-height:390px}
  .gg-date-guess-panel .gg-option span{min-height:42px;padding:4px 2px;font-size:6.4px!important;line-height:1.06}
  .gg-map-wrap .maplibregl-ctrl-attrib{font-size:7px!important;line-height:1.18!important}
  .gg-lightbox{padding:54px 8px 70px}
  .gg-lightbox img{max-width:96vw;max-height:82vh}
  .gg-lightbox-close{right:10px;top:10px;width:42px;height:42px}
  .gg-lightbox-nav{top:auto;bottom:12px;width:54px;height:46px;transform:none;font-size:32px}
  .gg-lightbox-prev{left:calc(50% - 62px)}.gg-lightbox-next{right:calc(50% - 62px)}
  .gg-zoom-btn{right:8px;top:8px;width:34px;height:34px}
}

/* ===== v29: restore full 2:3 covers; reclaim height from date controls only ===== */
@media(min-width:981px) and (max-width:1920px){
  /* Keep the ~25px workspace increase requested earlier. */
  .gg-workspace{
    height:clamp(545px,calc(100dvh - 285px),725px);
  }

  /* Give the answer cards a little more of the existing right column.
     The whole workspace does not grow and no inner scrolling is introduced. */
  .gg-date-right{
    grid-template-rows:minmax(0,.97fr) minmax(270px,1.03fr);
  }

  /* Covers are back to the normal shared 2:3 card style.
     Reclaim the needed space from the timeline instead of shrinking posters. */
  .gg-date-guess-panel .gg-option img{
    aspect-ratio:2/3;
  }

  /* Tighten only the empty vertical space around the month selector. */
  .gg-date-right .gg-timeline-card{
    padding-top:9px;
    padding-bottom:5px;
    row-gap:3px;
  }
  .gg-date-right .gg-timeline-top{
    padding-bottom:3px;
  }
  .gg-date-right .gg-timeline-label{
    margin-bottom:1px;
  }
  .gg-date-right .gg-years-block{
    margin-bottom:0;
  }
  .gg-date-right .gg-year-tick span{
    bottom:7px;
  }
}

/* v18: final-screen feedback. Kept outside the saved result card. */
.gg-feedback{width:min(920px,100%);margin:9px auto 0;padding:16px 18px;border:1px solid var(--sc-line);background:var(--sc-surface);box-sizing:border-box}.gg-feedback-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:10px}.gg-feedback-head .gg-mini-label{padding-top:3px;white-space:nowrap}.gg-feedback-head p{max-width:660px;margin:0;color:var(--sc-muted);font-size:12px;line-height:1.45;text-align:right}.gg-feedback textarea{display:block;width:100%;min-height:104px;max-height:260px;resize:vertical;box-sizing:border-box;padding:12px 13px;border:1px solid var(--sc-line);border-radius:0;outline:0;background:#090d09;color:var(--sc-text);font:600 13px/1.45 "Exo 2",system-ui,sans-serif}.gg-feedback textarea:focus{border-color:rgba(213,250,87,.62);box-shadow:0 0 0 1px rgba(213,250,87,.12)}.gg-feedback textarea:disabled{opacity:.62;resize:none}.gg-feedback-foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:8px}.gg-feedback-foot>span{margin-right:auto;color:var(--sc-muted);font:800 9px ui-monospace,Consolas,monospace}.gg-feedback-foot button{min-height:38px;padding:0 15px;border:1px solid var(--sc-lime);border-radius:0;background:transparent;color:var(--sc-lime);font:900 10px "Exo 2",sans-serif;text-transform:uppercase}.gg-feedback-foot button:not(:disabled):hover{background:var(--sc-lime);color:var(--sc-ink)}.gg-feedback-foot button:disabled{opacity:.42;cursor:not-allowed}.gg-feedback-status{min-height:14px;margin:7px 0 0;color:var(--sc-muted);font:750 10px/1.35 ui-monospace,Consolas,monospace}.gg-feedback-status.ok{color:var(--sc-lime)}.gg-feedback-status.error{color:#ff8e8e}
@media(min-width:1921px){.gg-feedback{width:min(1120px,100%);padding:20px 22px}.gg-feedback-head p{font-size:14px;max-width:820px}.gg-feedback textarea{min-height:122px;font-size:15px}.gg-feedback-foot button{min-height:44px;font-size:12px}.gg-feedback-foot>span,.gg-feedback-status{font-size:11px}}
@media(max-width:700px){.gg-feedback{padding:13px 12px}.gg-feedback-head{display:block}.gg-feedback-head .gg-mini-label{margin-bottom:7px}.gg-feedback-head p{text-align:left;font-size:11px}.gg-feedback textarea{min-height:118px;font-size:13px}.gg-feedback-foot{align-items:stretch;flex-wrap:wrap}.gg-feedback-foot>span{display:flex;align-items:center}.gg-feedback-foot button{min-height:42px}}

/* ===== v38: slightly smaller geography screenshots on desktop =====
   Reserve a little more vertical room for the five game cards + Accept button.
   Only geography mode is affected; no inner scrolling is introduced. */
@media(min-width:981px) and (max-width:1920px){
  .gg-geo-layout .gg-side-pane{
    grid-template-rows:minmax(0,1fr) 285px;
  }
}
@media(min-width:1921px) and (max-width:2999px){
  /* On zoomed-out / >Full-HD desktop layouts the workspace itself grows.
     Give ~25px of that growth to the answer block so the screenshot is ~5% shorter. */
  .gg-geo-layout .gg-side-pane{
    grid-template-rows:minmax(0,1fr) 375px;
  }
}
@media(min-width:3000px){
  .gg-geo-layout .gg-side-pane{
    grid-template-rows:minmax(0,1fr) 485px;
  }
}

/* ===== v41: result cards use the real 2:3 game-cover aspect ratio ===== */
.gg-summary-round{aspect-ratio:2/3}
.gg-summary-round img{object-fit:cover;object-position:center}
