/* GeoChallenge 0.2.92 | Central Arena Button UI
   Source: player-approved Button-Designlabor. Applies visual roles only;
   existing DOM IDs, click handlers, disabled logic, game/scoring and overlays are unchanged.
   New components may opt into .gc92-btn--{primary,secondary,ghost,icon,chip,tab,option}.
   Adaptors below connect the existing game to these centralized roles.
   Chosen: primary C; secondary B; ghost A; icons B; chips B; tabs C;
   sticky B; dialogs B; selections C. Evening gold; compact; calm; soft; no transitions. */
:root{
 --gc92-gold:#ffd179;--gc92-gold-light:#ffe7a9;--gc92-gold-ink:#292112;
 --gc92-gold-stroke:#c9a66b;--gc92-gold-dim:#766548;
 --gc92-surface:#102d40;--gc92-surface-raised:#1a4052;
 --gc92-surface-selected:#52442d;--gc92-border:#55798a;
 --gc92-text:#f2f6f8;--gc92-muted:#b6cbd6;
 --gc92-radius:18px;--gc92-pill:999px;
 --gc92-btn-h:48px;--gc92-side-h:43px;--gc92-icon-size:44px;
 --gc92-gap:8px;
}
/* Respect native hidden and disabled semantics across every module, including old !important skins. */
html body button[hidden],html body [hidden].gc92-btn--primary,html body [hidden].gc92-btn--secondary{display:none!important}
html body button:disabled{cursor:not-allowed!important;filter:none!important;transform:none!important;box-shadow:none!important}
/* Accessibility and explicit 'transitions off' setting; don't affect map geometry or scroll position. */
html body :is(button,a,[role="button"],input,select):focus-visible{outline:2px solid var(--gc92-gold-light)!important;outline-offset:3px!important}
html body :is(button,[role="button"]){transition:none!important;animation:none!important}
html body :is(button,[role="button"]):active{transform:none!important}

/* PRIMARY C – compact decisive action, warm-gold identity. */
html body :is(.gc92-btn--primary,#guessBtn,#nextBtn,#startBtn,#playAgainBtn,#gc262Continue,#closeTrophyDetail,
 #geoSubmit,#geoCreateParty,#geoJoinParty,#geoStartParty,#gc36StartVote,#geoPartyGuess,#geoPartyContinue,
 #gc88DailyStart,#gcDailyConfirm,#gcDailyNext,#gcCountryStart,#gcCountryConfirm,#gcCountryNext,#gcCountryAgain,
 #gc260ShareLink,#gcCountryQuitStay,#quitStayBtn,#gc260ShareFriendPrimary,
 .geo-primary,.gc88-primary,.gc-country-primary,.gc90-daily-share){
 background:var(--gc92-gold)!important;background-image:none!important;
 border:1px solid #ffe4a1!important;color:var(--gc92-gold-ink)!important;
 border-radius:var(--gc92-radius)!important;box-shadow:0 4px 14px #0003!important;
 min-height:var(--gc92-btn-h)!important;height:auto;
 padding:10px 15px!important;font-size:14px!important;font-weight:850!important;
 letter-spacing:.005em!important;line-height:1.22!important;text-shadow:none!important;
 cursor:pointer;
}
/* Preserve hierarchy when a primary button is disabled – explicit styling, never reenabling it. */
html body :is(.gc92-btn--primary,#guessBtn,#nextBtn,#startBtn,#gcDailyConfirm,#gcDailyNext,
 .geo-primary,.gc-country-primary,#geoPartyGuess):disabled{
 background:#34475a!important;border-color:#4a6270!important;color:#93aab6!important;
 opacity:.62!important;box-shadow:none!important;
}
/* Secondary B – tinted contour, not another gold primary. */
html body :is(.gc92-btn--secondary,.geo-secondary,.outline-btn,.gc88-secondary,
 #gcDailySummaryExit,#gc90DailyCancel,#gcDailyOpenRanking,#gcDailyJumpMe,#gc91DailyFriendsEntry,
 #geoMenuProfileBtn,#gc260ShareWhatsApp,#gc260ShareFriend,#gcCountryBack,
 #gcCountryQuitYes,#quitYesBtn,#gc91ProfileMedals,#gc91ProfileFriends,#gcProfileTrophyOpen,
 .gc91-profile-shortcuts button,.gc41-ranking-open,.gc91-friends-entry){
 background:var(--gc92-surface-raised)!important;background-image:none!important;
 color:var(--gc92-text)!important;border:1px solid var(--gc92-border)!important;
 border-radius:var(--gc92-radius)!important;box-shadow:inset 0 1px #ffffff0c!important;
 min-height:var(--gc92-side-h)!important;padding:9px 13px!important;
 font-size:13px!important;font-weight:750!important;line-height:1.25!important;
 text-shadow:none!important;cursor:pointer;
}
/* Ghost A – discreet; leave placement and menu semantics intact. */
html body :is(.gc92-btn--ghost,.geo-text-button,.quit-round-btn,.gc-back-btn,
 #gcDailyJumpTop,#geoLeaveLobby,#geoLeaveGame,.geo-danger-action){
 background:transparent!important;background-image:none!important;color:var(--gc92-muted)!important;
 border:1px solid transparent!important;box-shadow:none!important;
 border-radius:12px!important;min-height:32px!important;
 padding:5px 9px!important;font-size:12px!important;font-weight:700!important;
 text-decoration:none!important;text-shadow:none!important;
}
/* Retain warning semantics of leaving an active match. */
html body :is(#geoLeaveLobby,#geoLeaveGame,.geo-danger-action):focus-visible{outline-color:#ffafab!important}

/* ICON B – circular outlined controls; gameplay zoom, menus, theme and close. */
html body :is(.gc92-btn--icon,#zoomIn,#zoomOut,#gcCountryZoomIn,#gcCountryZoomOut,#gcCountryZoomReset,
 .gc-country-maptools button,#gcCountryGeneralMenu,#gcCountryTheme,#gcCountryLeave,
 .gc-country-menu-btn,.gc-country-close,.stats-modal-close,#closeStatsBtn,#closeTrophyBtn,
 #gcDailyCloseRanking,#gcDailyExit,#gc90DailyOlder,#gc90DailyNewer,#gcDailyDayOlder,#gcDailyDayNewer,
 #geoCloseJoinDialog,#gc260Close,.gc260-share-choice-close,.gc16-menu-btn,#gcCityQuizGeneralMenu,
 #themeGame,.header-actions .theme-btn,#gcCountryShell .theme-btn){
 display:inline-grid;place-items:center;align-content:center;justify-content:center;
 width:var(--gc92-icon-size)!important;min-width:var(--gc92-icon-size)!important;
 height:var(--gc92-icon-size)!important;min-height:var(--gc92-icon-size)!important;
 padding:7px!important;border-radius:var(--gc92-pill)!important;
 background:#18374aee!important;background-image:none!important;
 color:var(--gc92-gold-light)!important;border:1px solid var(--gc92-gold-stroke)!important;
 box-shadow:inset 0 1px #ffffff12!important;font-size:21px!important;line-height:1!important;
 text-shadow:none!important;
}
html body :is(.gc92-btn--icon,.gc-country-maptools button,.stats-modal-close,.gc16-menu-btn) svg{max-width:23px;max-height:23px}
/* Small day arrows keep their 44px target, but don't stretch their grid tracks. */
#gcDailySummary .gc90-day-picker{grid-template-columns:44px minmax(0,1fr) 44px!important;gap:7px!important}
#gcDailySummary .gc90-day-picker button{width:44px!important;min-width:44px!important}

/* CHIP B – thin warm-gold contour, calm status markers. */
html body :is(.gc92-btn--chip,.gc-country-phase,.gc36-legend-chip,.geo-select-pill,.gc88-rank-chip,
 .gc91-kicker,#gcDailySummary .gc40-rank,.gc90-daily-hero-badge){
 border:1px solid var(--gc92-gold-stroke)!important;background:#2d3340cc!important;
 background-image:none!important;border-radius:9px!important;
 color:var(--gc92-gold-light)!important;box-shadow:none!important;
 padding:4px 9px!important;font-size:11px!important;font-weight:800!important;
 letter-spacing:.025em!important;line-height:1.28!important;
}
/* Avoid reshaping the huge XP/achievement badges; status chips only. */

/* TABS C – compact pills. Actual active logic remains managed by existing JS. */
html body :is(.gc92-btn--tab,#gcDailySummary .gc91-rank-tabs button,
 #gc260Overlay .gc260-tab,.gc260-tab,#gc260Tabs button,#galleryFilters button){
 border:1px solid #547483!important;border-radius:var(--gc92-pill)!important;
 background:#122f43!important;background-image:none!important;
 color:#d4e3e8!important;box-shadow:none!important;
 min-height:36px!important;padding:7px 12px!important;
 font-size:12px!important;font-weight:750!important;line-height:1.2!important;
}
html body :is(.gc92-btn--tab[aria-pressed="true"],.gc92-btn--tab[aria-selected="true"],
 #gcDailySummary .gc91-rank-tabs button[aria-pressed="true"],.gc260-tab.selected,
 #galleryFilters button.active,#galleryFilters button[aria-pressed="true"]){
 color:var(--gc92-gold-light)!important;background:#493c2b!important;
 border-color:var(--gc92-gold-stroke)!important;
}
#gcDailySummary .gc91-rank-tabs{gap:6px!important;margin:9px 0!important}

/* SELECTION C – compact options: country start, city settings, multiplayer settings. */
html body :is(.gc92-btn--option,.gc-country-choice button,.gc-country-rounds button,
 .geo-select-grid button,.geo-select-options button,.geo-select-pills button,.v575-tabgrid button,.v575-tab,
 #gc82DuelSetup button[data-value],#gc82PartySettings button[data-value]){
 background:#122d40!important;background-image:none!important;
 border:1px solid #456477!important;border-radius:12px!important;
 color:var(--gc92-text)!important;box-shadow:none!important;
 padding:9px 12px!important;min-height:42px!important;
 font-size:13px!important;line-height:1.25!important;
}
html body :is(.gc92-btn--option[aria-pressed="true"],.gc92-btn--option.active,
 .gc-country-choice button.active,.gc-country-rounds button.active,.v575-tab.selected,.v575-tab.active,
 .geo-select-grid button.active,.geo-select-options button.active,.geo-select-pills button.selected,
 .geo-select-pills button[aria-pressed="true"],.v575-tabgrid button.selected,.v575-tabgrid button[aria-pressed="true"]){
 background:#4d402b!important;border-color:var(--gc92-gold-stroke)!important;
 color:var(--gc92-gold-light)!important;box-shadow:inset 0 0 0 1px #ffd17912!important;
}

/* Illustrated area cards keep their layout and hitbox; only frame + selected surface synchronize. */
html body :is(#gcAreaGrid button,#geoPartySettings .gc-party-area-cards button){
 border-color:#58778b!important;background-color:#132e43!important;
 background-image:none!important;border-radius:15px!important;
 box-shadow:none!important;
}
html body :is(#gcAreaGrid button.selected,#gcAreaGrid button[aria-pressed="true"],
 #geoPartySettings .gc-party-area-cards button.selected,
 #geoPartySettings .gc-party-area-cards button[aria-pressed="true"]){
 border-color:var(--gc92-gold-stroke)!important;background-color:#4d402b!important;
 color:var(--gc92-gold-light)!important;
}
/* Preserve the illustration/label flow of the mode cards, just reduce the shape and glow. */
.gc-country-settings-card .gc-country-choice button{min-height:104px!important;gap:5px!important;padding:10px!important}
.gc-country-settings-card .gc-country-choice button.active{transform:none!important}
.gc-country-settings-card .gc-country-rounds button{min-height:43px!important}
html body :is(#gc36HostSettings select,.geo-select-block select,#gcCountrySettings select){
 border:1px solid #596f77!important;border-radius:12px!important;
 background-color:var(--gc92-surface)!important;color:var(--gc92-text)!important;
 min-height:42px!important;
}

/* STICKY B – bordered dark dock; actual sticky/fixed position remains in the original layout. */
#actionArea,#gcCountryShell[data-screen="game"] .gc-country-bottom,
#gcDailySummary .gc90-daily-bottom,#geoPartyLobby .gc90-vote-dock,
#geoPartyGame .gc-party-fixed-actions,#geoPartyGame .geo-party-fixed-actions,
#finishOverlay .gc-finish-actions{
 background:#0d283bfa!important;background-image:none!important;
 border:1px solid #637887!important;border-radius:21px 21px 0 0!important;
 box-shadow:0 -7px 22px #0005!important;
 backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);
}
/* City map action dock is already absolutely positioned – preserve its hitboxes and width. */
#actionArea{padding:8px 11px max(10px,env(safe-area-inset-bottom))!important}
#actionArea #guessBtn,#actionArea #nextBtn{width:100%!important;min-height:54px!important;font-size:16px!important}
#actionArea:has(#pendingActions[hidden]):has(#resultPanel[hidden]){display:none!important}
#gcCountryShell[data-screen="game"] .gc-country-bottom{padding:9px 11px max(10px,env(safe-area-inset-bottom))!important}
#gcCountryShell[data-screen="game"] .gc-country-actions .gc-country-primary{
 min-height:52px!important;font-size:16px!important;background:var(--gc92-gold)!important;
 border:1px solid #ffe4a1!important;color:var(--gc92-gold-ink)!important;
}
#gcCountryShell[data-screen="game"] .gc-country-actions .gc-country-primary:disabled{
 background:#34475a!important;color:#93aab6!important;border-color:#4a6270!important;
}
#gcDailySummary .gc90-daily-bottom{padding:9px 8px max(11px,env(safe-area-inset-bottom))!important}
#gcDailySummary .gc90-daily-bottom button{min-height:48px!important}
#gcDailySummary .gc90-daily-bottom #gcDailySummaryExit.gc251-summary-exit{
 background:var(--gc92-surface-raised)!important;color:var(--gc92-text)!important;
 border:1px solid var(--gc92-border)!important;border-radius:var(--gc92-radius)!important;
 min-height:48px!important;
}
#geoPartyLobby .gc90-vote-dock{padding:9px 12px max(11px,env(safe-area-inset-bottom))!important}
#geoPartyLobby .gc90-vote-dock #gc36StartVote{min-height:48px!important}
#geoPartyLobby .gc90-vote-progress>span{transition:none!important}
#finishOverlay .gc-finish-actions{padding:12px 13px max(12px,env(safe-area-inset-bottom))!important}
/* Party HUD must not be obstructed by a new fixed dock: inherit its current position and stacking. */

/* DIALOG B – contour on confirmations, without changing dialog placement or focus logic. */
html body :is(.quit-dialog,#gcCountryQuit .quit-dialog,.gc35-join-card,
 .gc260-share-choice-panel,.gc260-profile-panel,.geo-modal-card,.v575-detail-panel){
 border:1px solid #8b876f!important;border-radius:22px!important;
 background:linear-gradient(155deg,#193647,#0c2436)!important;
 box-shadow:0 19px 48px #0008,inset 0 1px #ffffff12!important;
}
html body :is(.quit-dialog-actions,#gcCountryQuit .quit-dialog-actions,.gc260-share-choice-actions){gap:8px!important}
/* Status and accessibility integrity, including theme overrides that formerly greyed disabled buttons. */
html body :is(.gc92-btn--primary,.gc92-btn--secondary,.gc92-btn--icon,.gc92-btn--tab,
 #gcDailyOpenRanking,#gcCountryConfirm,#gcCountryNext,#guessBtn,#nextBtn):disabled{
 opacity:.48!important;pointer-events:none!important;
}
/* Low-motion selected globally. Map data and geolocation marker animation are not modified. */
@media(max-width:430px){
 :root{--gc92-btn-h:46px;--gc92-side-h:42px;--gc92-icon-size:43px;--gc92-radius:17px}
 #gcDailySummary .gc90-daily-bottom button{font-size:12px!important;padding-inline:9px!important}
 #gcDailySummary .gc91-rank-tabs button{font-size:12px!important}
}
@media(max-width:350px){:root{--gc92-icon-size:41px;--gc92-radius:15px}
 #gcCountryShell[data-screen="game"] .gc-country-maptools{right:6px!important}
}
