/* GeoChallenge Desktop D01 - optional presentation layer.
 * Source: v0.2.91; never change selectors without the gc-d01-active guard.
 * Deliberately no live-round/game-map layout changes in D01.
 */
:root {
  --gc-d01-turquoise: #4bdec5;
  --gc-d01-gold: #f4c979;
  --gc-d01-ink: #e9f8fa;
  --gc-d01-soft: #a5c8d1;
  --gc-d01-line: rgba(145, 215, 229, .25);
}
/* The explicit body class is set only for a fine-pointer desktop viewport.
 * The additional media guard makes mobile/tablet styling a no-op even if
 * a future patch accidentally adds the class too early. */
@media (min-width: 1080px) and (hover: hover) and (pointer: fine) {
  body.gc-d01-active #startOverlay.gc16-start {
    padding: 24px clamp(16px, 3vw, 64px) 42px !important;
    background: radial-gradient(ellipse 80% 45% at 50% -15%, #116b73 0%, #0a3044 40%, #061621 94%) !important;
    scrollbar-gutter: stable;
  }
  body.gc-d01-active #startOverlay.gc16-start .gc16-shell {
    width: min(1220px, 100%) !important;
    max-width: 1220px !important;
    padding: 22px clamp(26px, 3vw, 44px) 32px !important;
    border-radius: 27px;
    border-color: rgba(148, 220, 227, .29);
  }
  /* The existing phone-first logo/menu header is still in the DOM. The D01
   * desktop header mirrors its actions, so no existing JS listener is lost. */
  body.gc-d01-active #startOverlay.gc16-start .gc16-home > .gch-header {
    display: none !important;
  }
  body.gc-d01-active #startOverlay.gc16-start .gc16-home {
    min-width: 0;
  }
  body.gc-d01-active #startOverlay.gc16-start .gch-section.gc16-online {
    margin-top: 21px;
  }
  body.gc-d01-active #startOverlay.gc16-start .gch-section h2 {
    font-size: clamp(23px, 2.2vw, 29px);
  }
  body.gc-d01-active #startOverlay.gc16-start .gch-card:focus-visible,
  body.gc-d01-active #startOverlay.gc16-start .gc-d01-nav button:focus-visible {
    outline: 3px solid var(--gc-d01-gold);
    outline-offset: 4px;
  }

  body.gc-d01-active .gc-d01-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 76px;
    margin: 0 0 25px;
    padding: 0 3px 16px;
    border-bottom: 1px solid var(--gc-d01-line);
    color: var(--gc-d01-ink);
    font-family: inherit;
  }
  body.gc-d01-active .gc-d01-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 0;
    text-decoration: none;
    color: inherit;
  }
  body.gc-d01-active .gc-d01-logo {
    display: block;
    width: 56px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(21, 211, 174, .16));
  }
  body.gc-d01-active .gc-d01-brand-copy {
    display: grid;
    gap: 3px;
  }
  body.gc-d01-active .gc-d01-brand-copy strong {
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: 1;
    white-space: nowrap;
  }
  body.gc-d01-active .gc-d01-brand-copy small {
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--gc-d01-soft);
  }
  body.gc-d01-active .gc-d01-links {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 3px;
    row-gap: 5px;
  }
  body.gc-d01-active .gc-d01-links button {
    appearance: none;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 39px;
    padding: 8px 11px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    color: #c8e4ec;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: 0;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
  }
  body.gc-d01-active .gc-d01-links button:hover {
    background: rgba(95, 209, 198, .12);
    border-color: rgba(95, 209, 198, .22);
    color: white;
  }
  body.gc-d01-active .gc-d01-links .gc-d01-primary {
    margin-right: 4px;
    border-color: rgba(67, 210, 178, .43);
    color: #042f2b;
    background: linear-gradient(120deg, #42dcc5, #78e5d0);
    font-weight: 850;
  }
  body.gc-d01-active .gc-d01-links .gc-d01-primary:hover {
    background: #a0f3df;
    color: #042f2b;
  }
  body.gc-d01-active .gc-d01-links .gc-d01-separator {
    width: 1px;
    height: 22px;
    background: var(--gc-d01-line);
    margin: 0 5px;
  }
  body.gc-d01-active .gc-d01-links .gc-d01-gold {
    border-color: rgba(244, 201, 121, .22);
    color: #f7d993;
  }
  body.gc-d01-active .gc-d01-links .gc-d01-gold:hover {
    border-color: rgba(244, 201, 121, .48);
    background: rgba(244, 201, 121, .09);
  }
  body.gc-d01-active #startOverlay.gc16-start .gch-integrated .gc16-mode-pair {
    gap: clamp(14px, 1.7vw, 22px);
  }
  body.gc-d01-active #startOverlay.gc16-start .gch-integrated .gch-card {
    border-radius: 22px;
  }
  body.gc-d01-active #startOverlay.gc16-start .gch-integrated .gch-card--city {
    max-height: 255px;
  }
}
/* Never reveal the desktop navigation on touch-only screens or compact windows. */
.gc-d01-nav {display: none;}
@media (min-width: 1080px) and (hover: hover) and (pointer: fine) and (max-width: 1199px) {
  body.gc-d01-active .gc-d01-brand-copy small {display:none;}
  body.gc-d01-active .gc-d01-links button {padding:7px 8px;font-size:11px;}
  body.gc-d01-active .gc-d01-nav {gap:10px;}
}
@media (prefers-reduced-motion: reduce) {
  body.gc-d01-active .gc-d01-links button {transition:none;}
}

/* GC_DESKTOP_D06G_SCROLL_GUARD_START
 * Desktop rounds only: .app is a full-viewport shell. With overflow:hidden,
 * Chromium treats it as a programmatically scrollable container and can
 * scroll it when the new result card receives focus or is revealed.
 * overflow:clip retains clipping without establishing a scroll container.
 * Keep scrolling inside dedicated panels (e.g. #resultPanel) functional.
 * No mobile, tablet, setup or menu changes. */
@media (min-width:1080px) and (hover:hover) and (pointer:fine) {
  body.gc-d01-active:is(.gc-d03-solo,.gc-d04-daily,.gc-d04-country,.gc-d05-game) .app {
    overflow: clip !important;
  }
}
/* D06G mode-isolation: labels created in previous rounds must not leak as
 * unstyled text when City / Country / Daily / Party is no longer active. */
.gc-d03-maplabel, .gc-d04-maplabel, .gc-d05-maplabel { display:none; }
/* GC_DESKTOP_D06G_SCROLL_GUARD_END */
