/* GeoChallenge Desktop D02: home + pre-round setup presentation, source 0.2.91.
   Opt-in through body.gc-d01-active; never affects live gameplay, server or mobile.
   D01 loaded first; this stylesheet is loaded AFTER all 0.2.91 game styles. */
.gc-d02-hero,.gc-d02-guide {display:none}
@media (min-width:1080px) and (hover:hover) and (pointer:fine) {
  body.gc-d01-active .gc-d02-hero {
    display:grid;grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr);
    align-items:center;gap:30px;padding:28px 32px;margin:0 0 28px;
    border:1px solid rgba(154,221,222,.24);border-radius:24px;
    background:radial-gradient(ellipse at 14% -25%,rgba(42,166,157,.33),transparent 65%),linear-gradient(125deg,#0d3445,#10253b 77%);
    color:#eafffb;box-shadow:inset 0 1px 0 rgba(218,255,245,.08);
  }
  body.gc-d01-active .gc-d02-hero p {margin:0;color:#a8c9d4;line-height:1.5;font-size:14px}
  body.gc-d01-active .gc-d02-hero .gc-d02-kicker {text-transform:uppercase;letter-spacing:.19em;color:#f4c979;font-size:11px;font-weight:850;margin-bottom:8px}
  body.gc-d01-active .gc-d02-hero h1 {margin:0 0 10px;color:#f0fffc;font-size:clamp(27px,2.6vw,37px);line-height:1.1;letter-spacing:-.04em;font-weight:900}
  body.gc-d01-active .gc-d02-quick {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body.gc-d01-active .gc-d02-quick button {min-width:0;min-height:58px;display:flex;gap:10px;align-items:center;justify-content:flex-start;text-align:left;padding:12px 14px;
    background:rgba(13,49,65,.82);color:#e6fbf8;border:1px solid rgba(120,194,206,.3);border-radius:15px;cursor:pointer;font-weight:800;font-size:13px;line-height:1.2;box-shadow:none;transition:none}
  body.gc-d01-active .gc-d02-quick button:hover {background:#175060;border-color:#64dbc9}
  body.gc-d01-active .gc-d02-quick button:focus-visible {outline:3px solid #f4c979;outline-offset:3px}
  body.gc-d01-active .gc-d02-quick button .gc-d02-quick-icon {font-size:21px;line-height:1;flex:none}
  /* D06F: One primary mode-selection surface. Native tiles remain the full,
     accessible selection, including future/locked modes; desktop quick actions
     are not duplicated on this page. The nav still delegates to native tiles. */
  body.gc-d01-active #startOverlay .gc-d02-hero {
    grid-template-columns:minmax(0,1fr)!important;
    padding:21px 27px!important;
    margin-bottom:20px!important;
  }
  body.gc-d01-active #startOverlay .gc-d02-quick {display:none!important}
  body.gc-d01-active #startOverlay .gc-d02-hero .gc-d02-intro {max-width:850px}
  /* Main mode cards use the available monitor width without changing their click handlers. */
  body.gc-d01-active #startOverlay.gc16-start .gc16-games {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 20px;align-items:stretch}
  body.gc-d01-active #startOverlay.gc16-start .gc16-games > .gch-eyebrow,
  body.gc-d01-active #startOverlay.gc16-start .gc16-games > h2 {grid-column:1/-1;margin-bottom:0}
  body.gc-d01-active #startOverlay.gc16-start .gc16-games > .gc16-mode-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-column:2;gap:12px;margin:0;min-width:0}
  body.gc-d01-active #startOverlay.gc16-start #gcCityQuizTile {grid-column:1;min-height:196px;height:100%!important;max-height:none!important}
  body.gc-d01-active #startOverlay.gc16-start #gcDailyTile {grid-column:1/-1;min-height:142px}
  body.gc-d01-active #startOverlay.gc16-start .gc16-online .gc16-mode-pair {grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  body.gc-d01-active #startOverlay.gc16-start .gch-card {min-width:0;transition:none}
  /* City setup: existing interactive fields remain intact, with an informative left rail. */
  body.gc-d01-active #gcCityQuizSettings .gc-city-quiz-dialog.gc84-arena {width:min(1050px,calc(100vw - 76px))!important;max-width:1050px!important;max-height:min(800px,calc(100dvh - 38px))!important;overflow-y:auto!important;
    display:grid!important;grid-template-columns:minmax(0,.77fr) minmax(0,1.23fr);grid-template-rows:auto auto minmax(0,1fr) auto;column-gap:26px;row-gap:14px;padding:22px 24px 20px!important}
  body.gc-d01-active #gcCityQuizSettings .gc-city-quiz-top {grid-column:1/-1;grid-row:1;margin:0!important}
  body.gc-d01-active #gcCityQuizSettings .gc84-city-banner {grid-column:1;grid-row:2;min-width:0;min-height:203px;max-height:none;margin:0!important;border:1px solid rgba(152,217,220,.24);border-radius:17px;padding:24px!important}
  body.gc-d01-active #gcCityQuizSettings .gc84-city-banner .gc84-banner-copy {width:78%;max-width:78%}
  body.gc-d01-active #gcCityQuizSettings .gc84-city-banner h3 {font-size:clamp(27px,3vw,39px)!important}
  body.gc-d01-active #gcCityQuizSettings .gc84-settings {grid-column:2;grid-row:2/4;min-width:0;align-self:start;gap:14px!important}
  body.gc-d01-active #gcCityQuizSettings .gc-d02-guide {grid-column:1;grid-row:3}
  body.gc-d01-active #gcCityQuizSettings #gcBackCityQuiz {grid-column:1/-1;grid-row:4;justify-self:start;margin-top:0}
  body.gc-d01-active #gcCityQuizSettings .gc-area-grid {flex-wrap:wrap!important;overflow:visible!important;scroll-snap-type:none!important;margin:0!important;padding:0!important}
  body.gc-d01-active #gcCityQuizSettings .gc-area-grid button {flex:0 0 calc(25% - 6px)!important;width:calc(25% - 6px)!important;min-width:100px!important}
  /* Party / Duel setup: keep native form controls and existing game handlers. */
  body.gc-d01-active #geoPartySettings .geo-party-create.gc84-arena {width:min(1050px,calc(100vw - 76px))!important;max-width:1050px!important;max-height:calc(100dvh - 38px)!important;overflow-y:auto!important;display:grid!important;
    grid-template-columns:minmax(0,.77fr) minmax(0,1.23fr);grid-template-rows:auto auto auto auto auto auto 1fr auto;column-gap:26px;row-gap:12px;padding:22px 24px 20px!important}
  body.gc-d01-active #geoPartySettings .gc84-wordmark {grid-column:1/-1;grid-row:1;margin:0}
  body.gc-d01-active #geoPartySettings .gc84-party-banner {grid-column:1;grid-row:2;min-width:0;min-height:210px;max-height:none;margin:0!important;padding:23px!important;border:1px solid rgba(152,217,220,.25);border-radius:17px}
  body.gc-d01-active #geoPartySettings .gc84-party-banner h2 {font-size:clamp(30px,3vw,41px)!important}
  body.gc-d01-active #geoPartySettings .gc-d02-guide {grid-column:1;grid-row:3/8;align-self:start}
  body.gc-d01-active #geoPartySettings .geo-party-selectors {grid-column:2;grid-row:2/3;min-width:0}
  body.gc-d01-active #geoPartySettings .gc84-summary {grid-column:2;grid-row:3;margin:0}
  body.gc-d01-active #geoPartySettings #geoCreateParty {grid-column:2;grid-row:4}
  body.gc-d01-active #geoPartySettings #geoOpenJoinDialog {grid-column:2;grid-row:5}
  body.gc-d01-active #geoPartySettings #geoPartySettingsStatus {grid-column:2;grid-row:6}
  body.gc-d01-active #geoPartySettings #geoClosePartySettings {grid-column:1/-1;grid-row:8;justify-self:start}
  body.gc-d01-active #geoPartySettings .gc-party-area-cards {flex-wrap:wrap!important;overflow:visible!important;scroll-snap-type:none!important;margin:0!important;padding:0!important}
  body.gc-d01-active #geoPartySettings .gc-party-area-cards button {flex:0 0 calc(25% - 6px)!important;width:calc(25% - 6px)!important;min-width:100px!important}
  /* Original Duel / Party chooser becomes a wider desktop selection scene. */
  body.gc-d01-active #gc82ModeChoice .gc82-choice-card {width:min(920px,calc(100vw - 68px))!important;max-width:920px!important;padding:27px!important}
  body.gc-d01-active #gc82ModeChoice .gc82-mode-cards {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  body.gc-d01-active #gc82ModeChoice .gc82-mode-card {min-width:0;min-height:205px;transition:none}
  /* Country setup retains its existing input elements / country game shell. */
  body.gc-d01-active #gcCountryShell #gcCountrySettings {width:100%;padding:26px 24px 40px;align-items:center;justify-content:center}
  body.gc-d01-active #gcCountryShell .gc-country-settings-card {width:min(1010px,calc(100vw - 76px))!important;max-width:1010px!important;min-width:0;display:grid;grid-template-columns:minmax(0,.76fr) minmax(0,1.24fr);column-gap:32px;row-gap:12px;padding:28px!important}
  body.gc-d01-active #gcCountryShell .gc-country-settings-card > :not(.gc-d02-guide) {grid-column:2;min-width:0}
  body.gc-d01-active #gcCountryShell .gc-country-settings-card > .gc-d02-guide {grid-column:1;grid-row:1 / span 12;align-self:stretch}
  body.gc-d01-active #gcCountryShell .gc-country-settings-card h2 {font-size:31px;margin:0}
  body.gc-d01-active #gcCountryShell .gc-country-settings-intro {margin:0}
  body.gc-d01-active #gcCountryShell .gc-country-choice {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  /* Daily intro: large brief on left, mission and controls on right. */
  body.gc-d01-active #gc88DailyIntro .gc88-daily-intro-card {width:min(900px,calc(100vw - 68px))!important;max-width:900px!important;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);column-gap:25px;row-gap:16px;padding:26px!important;max-height:calc(100dvh - 36px);overflow-y:auto}
  body.gc-d01-active #gc88DailyIntro .gc88-brand {grid-column:1/-1}
  body.gc-d01-active #gc88DailyIntro .gc88-daily-intro-hero {grid-column:1;grid-row:2;margin:0!important;min-height:275px}
  body.gc-d01-active #gc88DailyIntro .gc88-daily-intro-body {grid-column:2;grid-row:2;min-width:0}
  body.gc-d01-active #gc88DailyIntro .gc88-daily-intro-actions {grid-column:1/-1;grid-row:3;display:flex;flex-direction:row;gap:14px;justify-content:flex-end}
  body.gc-d01-active #gc88DailyIntro .gc88-daily-intro-actions button {width:auto;min-width:190px}
  /* Desktop guides: read-only, progressive disclosure; never intercept form interaction. */
  body.gc-d01-active .gc-d02-guide {display:flex;flex-direction:column;align-items:stretch;gap:14px;min-width:0;padding:19px;border:1px solid rgba(116,207,200,.25);border-radius:17px;background:linear-gradient(160deg,rgba(24,72,82,.72),rgba(11,38,56,.86));color:#e7f8f8}
  body.gc-d01-active .gc-d02-guide h3 {color:#f4d38c;font-size:12px;letter-spacing:.11em;text-transform:uppercase;margin:0;font-weight:900}
  body.gc-d01-active .gc-d02-guide p {color:#bdd5dc;font-size:13px;line-height:1.55;margin:0}
  body.gc-d01-active .gc-d02-guide dl {margin:0;display:grid;gap:11px}
  body.gc-d01-active .gc-d02-guide dl div {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);align-items:baseline;gap:8px;padding-bottom:9px;border-bottom:1px solid rgba(158,224,217,.12)}
  body.gc-d01-active .gc-d02-guide dt {font-size:12px;color:#9bc3d0;font-weight:650}
  body.gc-d01-active .gc-d02-guide dd {margin:0;text-align:right;overflow-wrap:anywhere;color:#f0fffc;font-size:13px;font-weight:800}
  body.gc-d01-active .gc-d02-guide .gc-d02-note {font-size:11px;color:#9fcbd2}
  body.gc-d01-active .gc-d02-guide .gc-d02-art {display:block;max-width:210px;width:100%;height:145px;object-fit:contain;align-self:center;filter:drop-shadow(0 12px 23px rgba(0,0,0,.2))}
  body.gc-d01-active .gc-d02-guide[aria-hidden="true"] {display:none}
  /* Prevent accidental overlays from being forced open; desktop media does not override [hidden]. */
  body.gc-d01-active #gcCityQuizSettings[hidden], body.gc-d01-active #gc88DailyIntro[hidden], body.gc-d01-active #gcCountryShell[hidden] {display:none!important}
}
@media (min-width:1080px) and (max-width:1220px) and (hover:hover) and (pointer:fine) {
  body.gc-d01-active .gc-d02-hero {gap:15px;padding:19px 21px}
  body.gc-d01-active .gc-d02-quick button {font-size:12px;padding:9px 10px}
  body.gc-d01-active #gcCountryShell .gc-country-settings-card {column-gap:20px}
}
@media (prefers-reduced-motion:reduce) {
  body.gc-d01-active .gc-d02-hero button {transition:none!important}
}
/* D06F: native HTML hidden attribute must override the card's grid row rule.
   In duel mode this hides irrelevant rounds/players; party hides health. */
@media (min-width:1080px) and (hover:hover) and (pointer:fine) {
  body.gc-d01-active .gc-d02-guide dl > div[hidden] {display:none!important}
}
