/* GeoChallenge 0.2.100: desktop-first city setup and full-screen solo map.
   Scoped to coarse screen, mouse/fine pointer AND the existing desktop active class.
   No mobile or Daily/Party/Country rules are touched. */
@media (min-width:1080px) and (hover:hover) and (pointer:fine) {
 /* City quiz setup uses the available width and greatly reduces tall lists. */
 body.gc-d01-active #gcCityQuizSettings .gc-city-quiz-dialog.gc84-arena {
   width:min(1510px,calc(100vw - 30px))!important;
   max-width:none!important;
   height:min(920px,calc(100dvh - 22px))!important;
   max-height:calc(100dvh - 22px)!important;
   padding:16px clamp(17px,2vw,30px) 14px!important;
   grid-template-columns:minmax(285px,.76fr) minmax(0,1.66fr)!important;
   grid-template-rows:37px minmax(0,1fr) 32px!important;
   gap:10px 22px!important;
   overflow:hidden!important;
 }
 body.gc-d01-active #gcCityQuizSettings .gc-city-quiz-top {grid-column:1/-1!important;grid-row:1!important}
 body.gc-d01-active #gcCityQuizSettings .gc84-city-banner {
   grid-column:1!important;grid-row:2!important;
   align-self:start;min-height:193px!important;max-height:220px!important;
   padding:19px!important;
 }
 body.gc-d01-active #gcCityQuizSettings .gc84-city-banner h3 {font-size:clamp(27px,2.65vw,38px)!important}
 body.gc-d01-active #gcCityQuizSettings .gc84-settings {
   grid-column:2!important;grid-row:2!important;align-self:start!important;
   min-height:0;gap:8px!important;margin:0!important;
 }
 body.gc-d01-active #gcCityQuizSettings .gc-d02-guide {
   grid-column:1!important;grid-row:2!important;
   align-self:stretch!important;margin-top:210px;
   gap:8px;padding:16px;
 }
 body.gc-d01-active #gcCityQuizSettings .gc-d02-guide dl {gap:6px}
 body.gc-d01-active #gcCityQuizSettings .gc-d02-guide dl div {padding-bottom:6px}
 body.gc-d01-active #gcCityQuizSettings .gc-d02-guide .gc-d02-note {font-size:11px;line-height:1.35}
 body.gc-d01-active #gcCityQuizSettings #gcBackCityQuiz {
   grid-column:1/-1!important;grid-row:3!important;margin:0!important;align-self:center;
 }
 body.gc-d01-active #gcCityQuizSettings .gc16-area-head {margin:0 0 5px!important}
 body.gc-d01-active #gcCityQuizSettings .gc16-area-head > span {display:none!important}
 body.gc-d01-active #gcCityQuizSettings .gc-area-grid {
   display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
   gap:6px!important;width:100%;max-width:none;
   padding:0!important;overflow:visible!important;scroll-snap-type:none!important;
 }
 body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area] {
   flex:none!important;width:100%!important;min-width:0!important;min-height:63px!important;
   display:flex!important;flex-direction:column!important;align-items:center;justify-content:center;
   gap:4px!important;padding:5px 3px!important;border-radius:10px!important;
 }
 body.gc-d01-active #gcCityQuizSettings #gcAreaGrid .gc16-area-name {
   white-space:normal!important;line-height:1.12!important;font-size:10.5px!important;
   text-align:center;overflow-wrap:anywhere;
 }
 body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area] .gc16-flag {
   display:block!important;flex:0 0 auto!important;width:37px!important;height:24px!important;
   margin:0!important;font-size:0!important;line-height:0!important;
   border:1px solid #ffffff55;border-radius:3px;
   background-size:cover!important;background-repeat:no-repeat!important;background-position:center!important;
   box-shadow:0 2px 5px #0006;
 }
 body.gc-d01-active #gcCityQuizSettings .v575-label {margin:3px 0 1px!important;line-height:1.2!important}
 body.gc-d01-active #gcCityQuizSettings .v575-tabgrid {gap:7px!important;margin:0!important}
 body.gc-d01-active #gcCityQuizSettings .v575-tabgrid .v575-tab {min-height:50px!important;padding:6px 10px!important}
 body.gc-d01-active #gcCityQuizSettings .v575-tabgrid .v575-tab small {font-size:10px!important;line-height:1.15}
 body.gc-d01-active #gcCityQuizSettings .gc84-actions {margin-top:4px!important}
 body.gc-d01-active #gcCityQuizSettings .gc84-summary {font-size:11px!important;line-height:1.3!important}
 body.gc-d01-active #gcCityQuizSettings #startBtn {min-height:46px!important;padding:9px 15px!important}

 /* Hide the large right-hand rail, with its redundant step guide, altogether. */
 body.gc-d01-active.gc-d03-solo {--gc-d03-pad:clamp(12px,1.5vw,22px)!important;--gc-d03-side:var(--gc-d03-pad)!important}
 body.gc-d01-active.gc-d03-solo #gcDesktopSoloRailD03,
 body.gc-d01-active.gc-d03-solo .gc-d03-maplabel {display:none!important}
 body.gc-d01-active.gc-d03-solo main.map-area::before {
   inset:var(--gc-d03-pad)!important;border-radius:22px!important;
 }
 body.gc-d01-active.gc-d03-solo #map {
   top:var(--gc-d03-pad)!important;bottom:var(--gc-d03-pad)!important;
   left:var(--gc-d03-pad)!important;right:var(--gc-d03-pad)!important;
   width:calc(100% - 2 * var(--gc-d03-pad))!important;
   height:calc(100% - 2 * var(--gc-d03-pad))!important;
 }
 /* Live original HUD: centered city, total points and a discreet progress bar. */
 body.gc-d01-active.gc-d03-solo #hud {
   position:absolute!important;z-index:10!important;
   left:50%!important;right:auto!important;top:calc(var(--gc-d03-pad) + 12px)!important;
   width:min(570px,calc(100vw - 190px))!important;
   transform:translateX(-50%)!important;
   display:flex!important;flex-direction:column!important;gap:0!important;
 }
 body.gc-d01-active.gc-d03-solo #hud .hud-card {
   padding:11px 18px 10px!important;border-radius:16px!important;
   background:linear-gradient(150deg,#10384ddd,#08243ae8)!important;
   border:1px solid #50959a!important;box-shadow:0 10px 30px #0007!important;
   backdrop-filter:blur(10px);
 }
 body.gc-d01-active.gc-d03-solo #hud .top-meta {font-size:11px!important;letter-spacing:.04em}
 body.gc-d01-active.gc-d03-solo #cityName {
   text-align:center!important;font-size:clamp(24px,2.25vw,35px)!important;
   margin:8px 0 6px!important;line-height:1.04!important;
 }
 body.gc-d01-active.gc-d03-solo #hud .progress {height:3px!important;margin:8px 0 1px!important}
 body.gc-d01-active.gc-d03-solo #hud #quitRoundBtn {
   position:absolute;right:8px;top:100%;margin-top:7px;
   padding:5px 9px!important;font-size:11px!important;min-height:30px!important;
   border-radius:999px!important;background:#0c2b3dcc!important;
 }
 body.gc-d01-active.gc-d03-solo #hud .header-actions {
   position:absolute!important;left:calc(100% + 12px);top:7px;
   display:flex!important;gap:5px!important;pointer-events:auto!important;
 }
 body.gc-d01-active.gc-d03-solo #hud .header-actions button {width:37px!important;height:37px!important}
 /* The game itself still decides when actions are visible. No ghost buttons. */
 body.gc-d01-active.gc-d03-solo #actionArea {
   position:absolute!important;z-index:11!important;
   left:50%!important;right:auto!important;
   top:auto!important;bottom:calc(var(--gc-d03-pad) + 22px)!important;
   width:min(480px,calc(100vw - 120px))!important;
   max-width:none!important;transform:translateX(-50%)!important;
   margin:0!important;
 }
 body.gc-d01-active.gc-d03-solo #pendingActions,
 body.gc-d01-active.gc-d03-solo #resultPanel {width:100%!important;max-width:100%!important}
 body.gc-d01-active.gc-d03-solo #pendingActions .guess-hint {font-size:12px!important;margin-bottom:8px!important}
 body.gc-d01-active.gc-d03-solo #guessBtn,
 body.gc-d01-active.gc-d03-solo #nextBtn {width:100%!important;min-height:55px!important;}
 body.gc-d01-active.gc-d03-solo #guessBtn::after,
 body.gc-d01-active.gc-d03-solo #nextBtn::after {
   content:'  ·  ' attr(data-gc-shortcut-label);font-size:11px;font-weight:750;opacity:.73;
 }
 body.gc-d01-active.gc-d03-solo #resultPanel {
   max-height:min(49dvh,370px)!important;overflow:auto!important;
   background:linear-gradient(150deg,#11394ceE,#092438f5)!important;
   padding:15px 17px!important;
 }
 body.gc-d01-active.gc-d03-solo #zooms {
   left:auto!important;right:calc(var(--gc-d03-pad) + 16px)!important;
   bottom:calc(var(--gc-d03-pad) + 16px)!important;
 }
 body.gc-d01-active.gc-d03-solo[data-gc-d03-reveal="yes"] #hud .hud-card {opacity:.94}
}
@media (min-width:1080px) and (max-width:1300px) and (hover:hover) and (pointer:fine) {
 body.gc-d01-active #gcCityQuizSettings .gc-area-grid {grid-template-columns:repeat(5,minmax(0,1fr))!important}
 body.gc-d01-active #gcCityQuizSettings .gc-city-quiz-dialog.gc84-arena {grid-template-columns:minmax(250px,.72fr) minmax(0,1.6fr)!important;gap:8px 13px!important}
 body.gc-d01-active #gcCityQuizSettings .gc84-city-banner {min-height:160px!important;max-height:185px!important;padding:15px!important}
 body.gc-d01-active #gcCityQuizSettings .gc-d02-guide {margin-top:178px!important}
 body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area] {min-height:50px!important}
}
@media (min-width:1080px) and (max-height:740px) and (hover:hover) and (pointer:fine) {
 body.gc-d01-active #gcCityQuizSettings .gc-city-quiz-dialog.gc84-arena {overflow-y:auto!important;grid-template-rows:30px minmax(0,1fr) 30px!important}
 body.gc-d01-active #gcCityQuizSettings .gc84-city-banner {min-height:125px!important;max-height:150px!important}
 body.gc-d01-active #gcCityQuizSettings .gc-d02-guide {margin-top:155px!important}
 body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area] {min-height:46px!important}
 body.gc-d01-active #gcCityQuizSettings #startBtn {min-height:42px!important}
 body.gc-d01-active.gc-d03-solo #hud {top:calc(var(--gc-d03-pad) + 3px)!important}
 body.gc-d01-active.gc-d03-solo #hud .hud-card {padding:7px 12px!important}
 body.gc-d01-active.gc-d03-solo #cityName {font-size:24px!important;margin:3px 0!important}
 body.gc-d01-active.gc-d03-solo #resultPanel {max-height:44dvh!important}
}
@media (prefers-reduced-motion:reduce) {
 body.gc-d01-active.gc-d03-solo #guessBtn,
 body.gc-d01-active.gc-d03-solo #nextBtn {animation:none!important}
}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="de"] .gc16-flag {background-image:url("/desktop/flags/de.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="at"] .gc16-flag {background-image:url("/desktop/flags/at.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="ch"] .gc16-flag {background-image:url("/desktop/flags/ch.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="fr"] .gc16-flag {background-image:url("/desktop/flags/fr.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="it"] .gc16-flag {background-image:url("/desktop/flags/it.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="europe"] .gc16-flag {background-image:url("/desktop/flags/europe.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="eu"] .gc16-flag {background-image:url("/desktop/flags/eu.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="ar"] .gc16-flag {background-image:url("/desktop/flags/ar.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="be"] .gc16-flag {background-image:url("/desktop/flags/be.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="bo"] .gc16-flag {background-image:url("/desktop/flags/bo.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="br"] .gc16-flag {background-image:url("/desktop/flags/br.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="cl"] .gc16-flag {background-image:url("/desktop/flags/cl.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="dk"] .gc16-flag {background-image:url("/desktop/flags/dk.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="ec"] .gc16-flag {background-image:url("/desktop/flags/ec.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="co"] .gc16-flag {background-image:url("/desktop/flags/co.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="nl"] .gc16-flag {background-image:url("/desktop/flags/nl.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="pe"] .gc16-flag {background-image:url("/desktop/flags/pe.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="pl"] .gc16-flag {background-image:url("/desktop/flags/pl.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="se"] .gc16-flag {background-image:url("/desktop/flags/se.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="es"] .gc16-flag {background-image:url("/desktop/flags/es.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="cz"] .gc16-flag {background-image:url("/desktop/flags/cz.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="hu"] .gc16-flag {background-image:url("/desktop/flags/hu.svg")!important}}
@media(min-width:1080px) and (hover:hover) and (pointer:fine) {body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area="us"] .gc16-flag {background-image:url("/desktop/flags/us.svg")!important}}
/* Compact laptop variant – keep the complete setup visible at 1080 × 700 where possible. */
@media (min-width:1080px) and (max-width:1300px) and (hover:hover) and (pointer:fine) {
 body.gc-d01-active #gcCityQuizSettings .gc-area-grid {grid-template-columns:repeat(6,minmax(0,1fr))!important}
 body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area] {
  height:60px!important;min-height:60px!important;max-height:60px!important;padding:3px 2px!important;gap:3px!important;
 }
 body.gc-d01-active #gcCityQuizSettings .v575-tabgrid .v575-tab {min-height:44px!important;padding:4px 8px!important}
 body.gc-d01-active #gcCityQuizSettings .gc84-settings {gap:5px!important}
}
@media (min-width:1080px) and (max-height:740px) and (hover:hover) and (pointer:fine) {
 body.gc-d01-active #gcCityQuizSettings .gc-area-grid {grid-template-columns:repeat(6,minmax(0,1fr))!important}
 body.gc-d01-active #gcCityQuizSettings #gcAreaGrid button[data-gc-area] {height:55px!important;min-height:55px!important;max-height:55px!important}
 body.gc-d01-active #gcCityQuizSettings .gc-area-notice {display:none!important}
 body.gc-d01-active #gcCityQuizSettings .v575-tabgrid .v575-tab {min-height:40px!important;padding:3px 8px!important}
 body.gc-d01-active #gcCityQuizSettings .gc84-settings {gap:3px!important}
 body.gc-d01-active #gcCityQuizSettings .gc84-actions {margin-top:0!important}
}
/* Keep the existing general-menu control in the header, away from the top-right area card. */
@media (min-width:1080px) and (hover:hover) and (pointer:fine) {
 body.gc-d01-active #gcCityQuizSettings #gcCityQuizGeneralMenu {
   position:absolute!important;right:16px!important;top:16px!important;
   z-index:9!important;width:38px!important;height:38px!important;
   margin:0!important;
 }
}
/* The decorative right-aligned 'Spiel vorbereiten' tag collides with the existing menu icon. */
@media (min-width:1080px) and (hover:hover) and (pointer:fine) {
 body.gc-d01-active #gcCityQuizSettings .gc-city-quiz-top .gc84-wordmark > span {display:none!important}
}
