/* GeoChallenge 0.2.68 — one visual system across menus, play, social and results. */
:root{
  --gc-bg:#061520;--gc-panel:#0b293d;--gc-panel-raised:#102f43;--gc-line:#3d7785;--gc-line-soft:#28576b;
  --gc-text:#eaf7f8;--gc-muted:#b2cbd4;--gc-mint:#5ee7cd;--gc-green:#20c98e;--gc-green-dark:#11aa72;
  --gc-gold:#efca70;--gc-radius-lg:26px;--gc-radius-md:18px;
}
/* Shared panel surfaces used by the game, setup flows, profile and result pages. */
#gcCityQuizSettings .gc-city-quiz-dialog,
#geoPartySettings .geo-party-create,
#geoPartyJoinDialog .gc35-join-card,
.geo-party-lobby-card,
#finishOverlay .gc-finish-card,
#gcCountryFinish .gc-country-finish-card,
#gcCountrySettings .gc-country-settings-card,
#gcDailySummary .gc251-adventure-header,
#gcDailySummary .gc251-rank-panel,
#gcDailySummary .gc251-score-panel,
#trophyOverlay .v575-gallery-dialog,
#trophyDetail .v575-detail-panel,
#statsOverlay .stats-card{
  color:var(--gc-text);border-color:var(--gc-line)!important;border-radius:var(--gc-radius-lg)!important;
  background:linear-gradient(150deg,#10364b,#0b293d 65%,#081f32)!important;box-shadow:0 16px 42px #0005!important;
}
#gcCityQuizSettings .gc-city-quiz-dialog>.v575-options,
#geoPartySettings .geo-party-selectors,
#gcCountrySettings .gc-country-settings-options{
  border:1px solid var(--gc-line);border-radius:22px;background:#0c2d41;padding:clamp(12px,3vw,19px);
}
#gcCityQuizSettings .gc-city-quiz-top h2,
#geoPartySettings #geoPartySettingsHeading,
.geo-party-lobby-card h2,
#gcCountryFinish .gc-country-finish-title,
#finishOverlay .gc-finish-card h1{color:var(--gc-text);letter-spacing:-.04em}
#geoPartySettings .geo-modal-kicker,
#gcDailySummary .gc251-adventure-header .geo-modal-kicker,
#gcCountryFinish .gc-country-finish-kicker{color:#7ce2d0;letter-spacing:.14em;font-weight:900}
#gcCityQuizSettings .gc-area-group h3,
#geoPartySettings .geo-select-label,
#gcCountrySettings .gc-country-settings-label{color:#c0d6df;letter-spacing:.1em;font-weight:900}
#gcCityQuizSettings .gc-area-grid button,
#geoPartySettings .geo-select-pills button,
#gcCountrySettings .gc-country-option,
#gcCountrySettings .gc-country-option button{
  border-color:#456f84;border-radius:17px;background:#09243a;color:#e3eff3;font-weight:850;
}
#gcCityQuizSettings .gc-area-grid button[aria-pressed="true"],
#geoPartySettings .geo-select-pills button.selected,
#gcCountrySettings [aria-pressed="true"]{
  border-color:#65e6c8;background:linear-gradient(145deg,#188b78,#137264);color:white;box-shadow:inset 0 0 0 1px #68e9cb70;
}
#gcCityQuizSettings #startBtn,
#geoPartySettings #geoCreateParty,
#gcCountrySettings .gc-country-settings-start,
#finishOverlay .gc-finish-actions .gc-main-replay,
#gcCountryFinish .gc-finish-actions .start-btn,
#gcDailySummary #gcDailySummaryExit{
  border:1px solid #67f1c9!important;border-radius:20px!important;background:linear-gradient(105deg,#22d899,#0fae71)!important;color:#04372f!important;font-weight:950!important;box-shadow:0 10px 26px #0ac78b20!important;
}
#geoPartySettings .gc35-join-trigger,
#geoPartyJoinDialog .gc35-join-back,
#finishOverlay .gc-finish-secondary-actions .outline-btn,
#gcCountryFinish .gc-finish-actions .outline-btn{border-color:#4c8292;border-radius:16px;background:#102f45;color:#e5f3f6}
/* Party uses the same swipeable flag cards as City Quiz; native select remains the value source. */
#geoPartySettings .geo-party-area-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
#geoPartySettings .geo-party-area-head>span{margin:0 0 6px;color:#bdd3dc;font-size:.74rem}
#geoPartySettings .gc-party-area-cards{display:flex;gap:9px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;padding:0 1px 5px;scrollbar-color:#426c7b transparent;scrollbar-width:thin}
#geoPartySettings .gc-party-area-card{flex:0 0 clamp(112px,34%,142px);min-width:112px;min-height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;scroll-snap-align:start;border:1.5px solid #456f84;border-radius:19px;background:#102f43;color:#e6f2f5;padding:8px;text-align:center}
#geoPartySettings .gc-party-area-card[aria-pressed="true"]{border:2px solid #65e6c8;background:linear-gradient(145deg,#188b78,#137264);box-shadow:inset 0 0 0 1px #68e9cb70}
#geoPartySettings .gc-party-area-flag{font-size:1.8rem;line-height:1.05}
#geoPartySettings .gc-party-area-card strong{font-size:.82rem;line-height:1.15}
#geoPartySettings #geoPartyArea.gc-party-area-select{display:block!important;position:absolute!important;visibility:visible!important;inset:auto!important;width:1px!important;min-width:0!important;height:1px!important;min-height:0!important;max-height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;padding:0!important;margin:0!important;opacity:0!important;pointer-events:none!important}
#geoPartySettings .geo-party-area-hint{display:block;margin:4px 2px 0;color:var(--gc-muted);font-size:.76rem;line-height:1.35}
/* Social pages: consistent header hierarchy, segmented tabs, scrollable content and clear empty states. */
.gc260-panel{width:min(96vw,650px)!important;height:min(720px,calc(100dvh - 30px))!important;max-height:calc(100dvh - 24px)!important;border:1.5px solid #4a9a9a!important;border-radius:30px!important;background:linear-gradient(155deg,#10374c,#0b293d 62%,#081f32)!important;box-shadow:0 24px 75px #0008!important}
.gc260-head{align-items:flex-start!important;padding:21px 22px 16px!important;border-bottom:1px solid #31596d!important}
.gc260-heading-copy{min-width:0;flex:1}
.gc260-kicker{display:block;color:#7ce2d0;font-size:.68rem;font-weight:900;letter-spacing:.15em;text-transform:uppercase}
.gc260-head h2{margin:9px 0 0!important;color:#f0fbfb!important;font-size:clamp(1.5rem,4vw,2rem)!important;line-height:1.1;letter-spacing:-.035em}
.gc260-subtitle{margin:9px 0 0;color:#c0d4dc;font-size:.93rem;line-height:1.4}
.gc260-head>button{flex:0 0 46px;width:46px;height:46px;border:1px solid #407388;border-radius:14px;background:#0b283b;font-size:25px!important}
.gc260-tabs{display:flex!important;gap:8px!important;padding:13px 18px!important;border-bottom:1px solid #31596d!important}
.gc260-tabs button{min-height:46px;padding:9px 6px!important;border:1.5px solid #47758a!important;border-radius:16px!important;background:#12364a!important;color:#d3e7ed!important;font-size:clamp(.68rem,2.7vw,.82rem)!important;font-weight:850!important;line-height:1.12}
.gc260-tabs button.selected{border-color:#5fe2c9!important;background:linear-gradient(145deg,#147b76,#0c635f)!important;color:#fff!important;box-shadow:inset 0 0 0 1px #5fe2c933}
.gc260-content{padding:17px!important}
.gc260-row{min-height:60px;padding:12px 10px!important;border:1px solid #31596d!important;border-radius:16px!important;background:linear-gradient(135deg,#102f43,#0b293d)!important}
.gc260-row-main strong{font-size:15px!important}
.gc260-row-main small,.gc260-muted{font-size:13px!important;color:#b2cbd4!important;line-height:1.42}
.gc260-button,.gc260-add-mini{min-height:42px;border:1px solid #64b7b2!important;border-radius:13px!important;background:linear-gradient(145deg,#147b76,#0c635f)!important;color:#f0fffd!important;padding:9px 13px!important;font-size:13px!important;font-weight:850!important}
.gc260-button.subtle,.gc260-add-mini{background:#102f45!important;border-color:#497083!important}
.gc260-input{min-height:54px;border:1.5px solid #5696a3!important;border-radius:16px!important;background:#0b2434!important;color:white!important;padding:13px 16px!important;font-size:16px!important}
.gc260-label{font-size:13px!important}
.gc260-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:260px;margin:0;border:1.5px solid #47788a;border-radius:22px;background:#0a2639;padding:26px 20px;text-align:center}
.gc260-empty-icon{font-size:2.2rem;margin-bottom:8px}
.gc260-empty-state h3{margin:0 0 8px;color:var(--gc-text);font-size:1.17rem}
.gc260-empty-state p{max-width:410px;margin:0;color:var(--gc-muted);font-size:.94rem;line-height:1.5}
.gc260-empty-state .gc260-create-account{width:min(100%,265px);min-height:54px;margin-top:18px;border-radius:18px!important;background:linear-gradient(105deg,#22d899,#0fae71)!important;color:#04372f!important;font-size:.98rem!important}
/* Results, maps, rankings, rounds and tables keep mode-specific data but share one card language. */
#finishOverlay .gc-finish-card,
#gcCountryFinish .gc-country-finish-card,
#gcDailySummary .gc251-adventure-header,
#gcDailySummary .gc251-rank-panel,
#gcDailySummary .gc251-score-panel,
.geo-party-foot.geo-is-finished,
#gc260Social .gc260-panel,
#gc262ChallengeDetail .gc262-details-panel{border-color:var(--gc-line)!important;border-radius:var(--gc-radius-lg)!important;background:linear-gradient(155deg,#10364b,#0b293d 62%,#081f32)!important}
#gcDailySummary .gc251-adventure-header #gcDailySummaryTitle{color:var(--gc-text)!important;text-shadow:none!important}
#gcDailySummary .gc251-rank-panel .gc-daily-list-row,
#gcDailySummary .gc251-rounds-list .gc-daily-expandable,
#gcDailySummary .gc251-rounds-list .gc-daily-map-detail,
#gcDailySummary .gc41-ranking-card{border-color:#3f6d80!important;border-radius:16px!important;background:#102f45!important;box-shadow:none!important}
#gcDailySummary .gc251-rank-panel .gc-daily-self,
#gcDailySummary .gc251-rounds-list .gc-daily-round-toggle[aria-expanded="true"]{border-color:#60d9bf!important;background:#124c4b!important}
#gcDailySummary .gc251-score-panel #gcDailyTotal{color:#62e3c0!important;text-shadow:none!important}
.geo-party-foot.geo-is-finished .gc-party-fixed-actions{border:0!important;background:linear-gradient(180deg,transparent,#0b293d 80%)!important;box-shadow:none!important}
.geo-party-foot.geo-is-finished .geo-history-round,.geo-party-foot.geo-is-finished .geo-history-player{border-color:#3f6d80!important;border-radius:15px!important;background:#102f45!important}
.geo-party-foot.geo-is-finished .geo-history-round.is-open{border-color:#62d7c1!important;background:#124c4b!important}
#finishOverlay .gc-finish-secondary-actions .outline-btn,
#gcCountryFinish .gc-finish-actions .outline-btn{min-height:48px;border-radius:15px;font-weight:850}
#trophyOverlay .trophy-card,#trophyDetail .trophy-detail-medal{border-color:#3f6d80;border-radius:17px;background:linear-gradient(145deg,#102f43,#0b293d);color:var(--gc-text)}
#trophyOverlay .trophy-card.earned,#trophyDetail .trophy-detail-medal.earned{border-color:#58bba2;background:linear-gradient(145deg,#123f47,#102f43)}
#trophyOverlay .trophy-category h3{color:#7ce2d0;font-size:.73rem;letter-spacing:.13em}
#trophyOverlay .trophy-filter{border-radius:14px;border-color:#456f84;background:#102f43;color:#d3e7ed}
#trophyOverlay .trophy-filter.selected{border-color:#5fe2c9;background:linear-gradient(145deg,#147b76,#0c635f);color:white}
#gcCountryFinish .gc-country-finish-score,
#finishOverlay .gc-finish-points{color:#62e3c0}
#gcCountryFinish .gc-country-finish-stats .final-row,
#finishOverlay .gc-finish-metrics>div{border-color:#3f6d80;border-radius:16px;background:#102f45}
/* Preserve clear focus and touch targets throughout every mode. */
#gcCityQuizSettings button:focus-visible,#geoPartySettings button:focus-visible,#gcDailySummary button:focus-visible,
#finishOverlay button:focus-visible,#gcCountryFinish button:focus-visible,#trophyOverlay button:focus-visible,
#gc260Social button:focus-visible{outline:2px solid #9fffe7;outline-offset:2px}
@media(max-width:600px){
 .gc260-panel{width:min(100%,650px)!important;height:min(680px,calc(100dvh - 20px))!important;max-height:calc(100dvh - 16px)!important;border-radius:25px!important}
 .gc260-head{padding:17px 16px 13px!important}.gc260-tabs{padding:10px 12px!important;gap:5px!important}.gc260-tabs button{min-height:43px;padding-inline:4px!important}
 .gc260-content{padding:13px!important}.gc260-empty-state{min-height:230px;padding:23px 14px}
 #geoPartySettings .geo-party-create{padding:16px 15px!important}
 #geoPartySettings .gc-party-area-card{min-height:82px;flex-basis:calc((100% - 18px)/3);min-width:108px;border-radius:16px}
 #geoPartySettings .gc-party-area-flag{font-size:1.55rem}
}

/* Trophy and profile dialogs join the same panel and navigation system. */
#trophyOverlay .v575-gallery-dialog,#trophyDetail .v575-detail-panel,#statsOverlay .stats-dialog{
  border:1.5px solid var(--gc-line)!important;border-radius:var(--gc-radius-lg)!important;
  background:linear-gradient(150deg,#10364b,#0b293d 65%,#081f32)!important;color:var(--gc-text)!important;
  box-shadow:0 24px 75px #0008!important;
}
#trophyOverlay .v575-gallery-head h2,#trophyDetail .v575-detail-panel h3{color:var(--gc-text)}
#trophyOverlay .gallery-eyebrow,#trophyDetail .gallery-eyebrow{color:#7ce2d0;letter-spacing:.14em}
#trophyOverlay .v575-gallery-progress{background:#15394d}
#trophyOverlay .v575-gallery-progress span{background:linear-gradient(90deg,#45c6d6,#83ffc2)}
#trophyOverlay .v575-gallery-filters .trophy-filter{min-height:40px;border-radius:14px}
#gcDailyRankFull .gc41-rank-full-inner,#gcDailyRankFull .gc41-rank-full-header{border-color:var(--gc-line)}
#gcDailyRankFull .gc47-top-1,#gcDailyRankFull .gc47-top-2,#gcDailyRankFull .gc47-top-3{border-radius:16px}
.gc-party-hud,.geo-party-hud{border-color:var(--gc-line)!important;border-radius:20px!important;background:linear-gradient(145deg,#10364b,#0b293d)!important;color:var(--gc-text)}
.geo-party-foot,.geo-party-lobby-card,.gc-country-card,.gc-country-finish-card{color:var(--gc-text)}
.gc-area-trophy-gallery,.gc-area-records,.gc-daily-map-detail,.gc-country-map-detail{border-color:#3f6d80!important;border-radius:16px!important;background:#0c293d!important}
#finishOverlay .gc-finish-round,#gcCountryFinish .gc-country-round,
#gcDailySummary .gc-daily-expandable,.geo-party-foot .geo-history-round{border-color:#3f6d80!important;border-radius:16px!important;background:#102f45!important}
#finishOverlay .gc-finish-round[aria-expanded="true"],#gcDailySummary .gc-daily-round-toggle[aria-expanded="true"]{background:#124c4b!important}

/* Keep the Party setup inside the phone viewport. Only the area cards may scroll sideways. */
#geoPartySettings,
#geoPartySettings .geo-party-create,
#geoPartySettings .geo-party-selectors,
#geoPartySettings .geo-select-group,
#geoPartySettings .geo-party-area-group{
  box-sizing:border-box;min-width:0;max-width:100%;
}
#geoPartySettings{overflow-x:hidden}
#geoPartySettings .geo-party-create{
  width:min(465px,100%);overflow-x:hidden;overscroll-behavior-x:none;
}
#geoPartySettings .geo-party-selectors,
#geoPartySettings .geo-select-group{width:100%}
#geoPartySettings .geo-select-pills{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:initial;
  width:100%;min-width:0;max-width:100%;box-sizing:border-box;
}
#geoPartySettings [data-party-select="geoPartyVariant"]{grid-template-columns:repeat(2,minmax(0,1fr))}
#geoPartySettings .geo-select-pills button{min-width:0;width:100%;max-width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere}
#geoPartySettings .geo-party-area-head,
#geoPartySettings .gc-party-area-cards{min-width:0;max-width:100%;box-sizing:border-box}
#geoPartySettings .gc-party-area-cards{width:100%;overflow-y:hidden;}
#geoPartySettings .gc-party-area-card{flex:0 0 min(34%,142px);min-width:min(112px,34%);max-width:142px;box-sizing:border-box}
@media(max-width:600px){
  #geoPartySettings .gc-party-area-card{flex-basis:calc((100% - 18px)/3);min-width:calc((100% - 18px)/3);max-width:calc((100% - 18px)/3)}
}
/* Both solo result screens use the same clearly separated replay footer. */
#gcCountryFinish .gc-country-finish-actions{
  grid-template-columns:minmax(0,1fr);gap:8px;padding:12px 13px max(12px,env(safe-area-inset-bottom));
  border-top:1px solid var(--gc-line);background:#0b293d;box-shadow:none!important;
}
#gcCountryFinish .gc-country-finish-actions #gcCountryAgain{
  order:0;width:100%;min-height:56px;border:1px solid #67f1c9;border-radius:19px;
  background:linear-gradient(105deg,#22d899,#0fae71);color:#04372f;font-size:16px;font-weight:950;
}
#gcCountryFinish .gc-country-finish-actions #gcCountryBack{
  order:1;width:100%;min-height:48px;border:1px solid #4c8292;border-radius:15px;background:#102f45;color:#e5f3f6;font-size:13px;font-weight:850;
}
/* Friends, invitations and challenge lists use the same cards and controls as the game screens. */
#gc260Social .gc260-panel{
  width:min(96vw,650px)!important;height:min(720px,calc(100dvh - 30px))!important;
  max-height:calc(100dvh - 24px)!important;min-width:0;border:1.5px solid var(--gc-line)!important;
  border-radius:30px!important;background:linear-gradient(155deg,#10374c,#0b293d 62%,#081f32)!important;
}
#gc260Social .gc260-head{padding:21px 22px 16px!important;border-bottom:1px solid #31596d!important}
#gc260Social .gc260-head>button{flex:0 0 46px;width:46px;height:46px;border:1px solid #407388;border-radius:14px;background:#0b283b;font-size:25px!important}
#gc260Social .gc260-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important;padding:13px 18px!important;border-bottom:1px solid #31596d!important}
#gc260Social .gc260-tabs button{min-width:0;min-height:46px;padding:8px 5px!important;border:1.5px solid #47758a!important;border-radius:15px!important;background:#12364a!important;color:#d3e7ed!important;font-size:clamp(.67rem,2.7vw,.82rem)!important;font-weight:850!important;line-height:1.12;white-space:normal;overflow-wrap:anywhere}
#gc260Social .gc260-tabs button.selected{border-color:#5fe2c9!important;background:linear-gradient(145deg,#147b76,#0c635f)!important;color:#fff!important;box-shadow:inset 0 0 0 1px #5fe2c933}
#gc260Social .gc260-content{display:flex;flex-direction:column;gap:10px;padding:17px!important}
#gc260Social .gc260-title{margin:8px 0 2px;color:var(--gc-text);font-size:1.15rem;font-weight:900;letter-spacing:-.025em}
#gc260Social .gc260-row{display:flex;align-items:center;gap:12px;justify-content:space-between;min-width:0;min-height:62px;padding:12px!important;border:1px solid #31596d!important;border-radius:16px!important;background:linear-gradient(135deg,#102f43,#0b293d)!important;box-shadow:none!important}
#gc260Social .gc260-row-main{min-width:0;flex:1}
#gc260Social .gc260-row-main strong{color:var(--gc-text);font-size:15px;font-weight:850}
#gc260Social .gc260-row-main small,#gc260Social .gc260-muted{color:var(--gc-muted);font-size:13px;line-height:1.42}
#gc260Social .gc260-notification-clickable{cursor:pointer;border-radius:12px}
#gc260Social .gc260-actions{gap:7px;flex:0 0 auto}
#gc260Social .gc260-button{min-height:42px;padding:9px 13px!important;border:1px solid #64b7b2!important;border-radius:13px!important;background:linear-gradient(145deg,#147b76,#0c635f)!important;color:#f0fffd!important;font-size:13px!important;font-weight:850!important}
#gc260Social .gc260-button.subtle{border-color:#497083!important;background:#102f45!important;color:#e5f3f6!important}
#gc260Social .gc260-input{min-height:50px;border:1.5px solid #5696a3;border-radius:15px;background:#0b2434;color:#fff;padding:12px 15px;font-size:16px}
#gc260Social .gc260-label{margin:5px 0 -3px;color:#7ce2d0;font-size:13px;font-weight:850}
#gc260Social .gc260-empty-state{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;min-height:230px;margin:0;border:1.5px solid #47788a;border-radius:22px;background:#0a2639;padding:26px 20px;text-align:center}
#gc260Social .gc260-empty-icon{font-size:2.2rem;margin-bottom:8px}
#gc260Social .gc260-empty-state h3{margin:0 0 8px;color:var(--gc-text);font-size:1.17rem}
#gc260Social .gc260-empty-state p{max-width:410px;margin:0;color:var(--gc-muted);font-size:.94rem;line-height:1.5}
#gc260Social .gc260-empty-state .gc260-create-account{width:min(100%,265px);min-height:54px;margin-top:18px;border-radius:18px!important;background:linear-gradient(105deg,#22d899,#0fae71)!important;color:#04372f!important;font-size:.98rem!important}
#gc260Social .gc260-alert{border:1px solid #806b46;border-radius:15px;background:#342b1b;padding:13px;color:#ffe0a3}
@media(max-width:600px){
  #gc260Social .gc260-panel{width:min(100%,650px)!important;height:min(680px,calc(100dvh - 20px))!important;max-height:calc(100dvh - 16px)!important;border-radius:25px!important}
  #gc260Social .gc260-head{padding:17px 16px 13px!important}
  #gc260Social .gc260-tabs{gap:5px!important;padding:10px 12px!important}
  #gc260Social .gc260-tabs button{min-height:44px;padding:7px 3px!important}
  #gc260Social .gc260-content{padding:13px!important}
  #gc260Social .gc260-row{align-items:flex-start;flex-wrap:wrap;padding:12px 10px!important}
  #gc260Social .gc260-actions{width:100%;justify-content:flex-end}
  #gc260Social .gc260-empty-state{min-height:220px;padding:23px 14px}
}
