/* GeoChallenge 0.2.91 — approved part 5: Profile A, Trophies A, Daily friend leaderboard C.
   Accent turquoise/gold, restrained illustration, compact density, quiet information. */
:root{--gc91-mint:#53e2b6;--gc91-gold:#ffcf72;--gc91-ink:#071d2b;--gc91-line:#526e93;--gc91-muted:#b5cde6}
.gc91-kicker{display:block;color:#92edd6!important;font-size:10px!important;letter-spacing:.17em;font-weight:900!important;line-height:1.4}
/* Profile: the existing statistics and source-of-truth functions are retained. */
#statsOverlay .stats-dialog{width:min(100%,620px);border-color:#587fa3!important;border-radius:22px 22px 16px 16px!important;background:radial-gradient(ellipse at 94% 2%,#274b8d44 0,transparent 41%),linear-gradient(155deg,#102b48,#071b2e)!important;box-shadow:0 24px 75px #0009,inset 0 1px #ffffff16!important}
#statsOverlay .stats-modal-head{background:linear-gradient(180deg,#0f2a45 83%,#102c4500)!important;border-bottom:1px solid #3d6a86;padding:10px 0 12px;margin:-8px 0 0}
#statsOverlay .stats-modal-head .profile-eyebrow{color:#6bebc6;font-size:10px;letter-spacing:.16em}
#statsOverlay .stats-modal-head h2{color:#effbff;font-size:22px!important;font-weight:950;letter-spacing:-.05em}
#statsOverlay .stats-modal-head p{display:none}
#statsOverlay .gc91-profile-hero{position:relative;isolation:isolate;overflow:hidden;border:1px solid #6598ad;border-radius:15px;background:radial-gradient(ellipse at 91% 0,#397b8b66 0,transparent 58%),linear-gradient(120deg,#154660,#19375c);padding:16px 16px 13px;margin:13px 0 15px;box-shadow:inset 0 1px #c3fff428,0 12px 23px #020e2070;color:#f2fbff}
#statsOverlay .gc91-profile-hero:before,#trophyOverlay .gc91-medal-hero:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(#d9fff80c 1px,transparent 1px),linear-gradient(90deg,#d9fff80c 1px,transparent 1px);background-size:28px 28px;mask-image:linear-gradient(#000,transparent 80%)}
#statsOverlay .gc91-profile-person{display:flex;gap:10px;align-items:center;margin:12px 0 15px;min-width:0}
#statsOverlay .gc91-avatar{flex:0 0 58px;width:58px;height:58px;display:grid;place-items:center;border:2px solid #94ffdc;border-radius:16px;background:linear-gradient(140deg,#2a907b,#174f74);box-shadow:0 5px 13px #021a2f8a;color:#e9fff8;font-size:22px;font-weight:950;letter-spacing:-.05em}
#statsOverlay .gc91-profile-identity{min-width:0;flex:1}#statsOverlay .gc91-profile-identity h3{font-size:clamp(17px,4.9vw,22px);line-height:1.1;margin:0 0 5px;color:#fff;overflow-wrap:anywhere;font-weight:950;letter-spacing:-.04em}#statsOverlay .gc91-profile-identity span{font-size:11px;color:#c4ecdf}
#statsOverlay .gc91-level{align-self:flex-start;flex-shrink:0;font-size:11px;font-weight:900;border:1px solid #deb771;color:#ffe1a3;border-radius:7px;background:#654a2d6e;padding:5px 6px;white-space:nowrap}
#statsOverlay .gc91-progress-head{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin:0 0 8px}#statsOverlay .gc91-progress-head strong{font-size:16px;color:#ffdc8d}#statsOverlay .gc91-progress-head small{font-size:10px;color:#bcd3e1;max-width:59%;text-align:right;line-height:1.35}
#statsOverlay .gc91-xp-track{height:9px;overflow:hidden;background:#081c33;border:1px solid #4e7581;border-radius:10px}#statsOverlay .gc91-xp-track span{display:block;height:100%;max-width:100%;background:linear-gradient(90deg,#22a98e,#79f7d0);box-shadow:0 0 12px #4fe3ac68;border-radius:10px;transition:width .25s}
#statsOverlay .gc91-profile-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}#statsOverlay .gc91-profile-shortcuts button{display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0;min-height:42px;background:#143b54;border:1px solid #5c849f;border-radius:10px;color:#e9fbfc;font-weight:850;font-size:12px;padding:8px 10px;text-align:left;cursor:pointer}#statsOverlay .gc91-profile-shortcuts button span{font-size:19px;color:#8feeda}
#statsOverlay .gc86-stats-scroll{gap:12px}#statsOverlay .gc86-section{padding:13px 11px!important;border-radius:14px!important;border-color:#456c85!important;background:linear-gradient(155deg,#152f4c,#10243a)!important;box-shadow:inset 0 1px #ffffff11}#statsOverlay .gc86-section-head{padding:0 0 10px!important}#statsOverlay .gc86-section-head h3{font-size:17px!important;color:#f0fcff!important}#statsOverlay .gc86-icon{width:38px;height:38px;font-size:21px;border-radius:11px}#statsOverlay .gc86-section-head small{color:#81eed4}#statsOverlay .gc86-subgroup{margin-top:12px}#statsOverlay .gc86-subgroup h4{font-size:13px;margin:0 0 9px}#statsOverlay .profile-stats .stat-tile{min-height:66px!important;padding:9px 11px!important;border-color:#4f7890!important;border-radius:11px!important;background:#173753!important}#statsOverlay .profile-stats .stat-value{font-size:22px!important}#statsOverlay .profile-stats .stat-tile-avg{background:#175148!important;border-color:#5cbaa0!important}#statsOverlay .profile-stats .stat-tile-avg .stat-value{color:#a3f6d8}#statsOverlay .gc86-metric{min-height:70px!important;padding:9px 11px!important;border-radius:10px!important;background:#183953!important;border-color:#46728b!important}#statsOverlay .gc86-metric strong{font-size:22px!important}#statsOverlay .gc86-mode-card{border-radius:11px!important}#statsOverlay .gc87-area-card{min-height:93px!important;border-radius:10px!important;gap:3px!important;padding:9px 5px!important}#statsOverlay .gc87-area-flag{font-size:30px!important}#statsOverlay .gc87-area-card strong{font-size:11px}#statsOverlay .gc87-record-panel{border-radius:11px!important}#statsOverlay .gc87-records-section .gc86-help{margin:9px 0;color:#9ebdcd;font-size:11px}#statsOverlay .gc86-stats-footer .outline-btn{border-radius:11px;border-color:#61c9b3;background:#145647;color:#eafff6}
/* Trophies Arena A: graphic hero, real medal counts, original award details retained. */
#trophyOverlay .v575-gallery-dialog{width:min(100%,640px);height:min(94dvh,1000px);background:radial-gradient(ellipse at 92% 0,#264a8544 0,transparent 45%),linear-gradient(155deg,#0f2944,#071b2d)!important;border-color:#5b81a9!important;border-radius:22px 22px 16px 16px!important;padding:15px 15px 21px!important;box-shadow:0 28px 80px #000b}
#trophyOverlay .v575-gallery-head{position:sticky;top:-15px;z-index:4;background:linear-gradient(180deg,#102e48 82%,#102e48eb);padding:10px 0!important;margin:-10px 0 12px!important;border-bottom:1px solid #4b7390}
#trophyOverlay .v575-gallery-head h2{font-size:21px;font-weight:950;letter-spacing:-.04em;color:#f5fcff;margin:3px 0}
#trophyOverlay .v575-gallery-head p{font-size:11px;color:#b8d8e7}
#trophyOverlay .gallery-eyebrow{color:#8debd0;font-size:10px;letter-spacing:.14em}
#trophyOverlay .gc91-medal-hero{display:flex;align-items:center;justify-content:space-between;position:relative;isolation:isolate;overflow:hidden;border:1px solid #7e91af;border-radius:15px;background:radial-gradient(ellipse at 90% 17%,#4b759278,transparent 48%),linear-gradient(130deg,#18365c,#122847);padding:16px 16px;min-height:137px;color:#fff}
#trophyOverlay .gc91-medal-hero-copy{max-width:67%;display:flex;flex-direction:column;gap:7px}#trophyOverlay .gc91-medal-hero-copy strong{font-size:clamp(21px,5.7vw,29px);line-height:1.06;font-weight:950;letter-spacing:-.055em}#trophyOverlay .gc91-medal-hero-copy small{font-size:11px;color:#b8d1e7;line-height:1.35}
#trophyOverlay .gc91-cup{position:absolute;right:0;top:1px;width:124px;height:129px;filter:drop-shadow(0 9px 10px #051a286b)}#trophyOverlay .gc91-cup svg{width:100%;height:100%}
#trophyOverlay .gc91-medal-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0 13px}#trophyOverlay .gc91-medal-totals>div{display:flex;flex-direction:column;align-items:center;gap:3px;padding:9px 4px;background:linear-gradient(150deg,#1d3d58,#142e46);border:1px solid #53778f;border-radius:10px}#trophyOverlay .gc91-medal-totals b{font-size:22px;line-height:1.1;color:#ffda86;font-variant-numeric:tabular-nums}#trophyOverlay .gc91-medal-totals>div:nth-child(2) b{color:#e7eefa}#trophyOverlay .gc91-medal-totals>div:nth-child(3) b{color:#efb692}#trophyOverlay .gc91-medal-totals small{color:#bcd8e4;font-size:10px;font-weight:800}
#trophyOverlay .v575-gallery-progress{margin:0 0 12px}#trophyOverlay .v575-gallery-filters{display:flex;overflow-x:auto;max-width:100%;flex-wrap:nowrap;scrollbar-width:none;gap:7px;padding-bottom:4px;scroll-snap-type:x proximity}#trophyOverlay .v575-gallery-filters::-webkit-scrollbar{display:none}#trophyOverlay .v575-gallery-filters .trophy-filter{flex:0 0 auto;scroll-snap-align:start;min-height:37px;border-radius:9px!important;border-color:#557c94!important;background:#173752;color:#cbdfea;font-size:11px;padding:7px 10px!important}#trophyOverlay .v575-gallery-filters .trophy-filter.selected{background:#1d635b!important;border-color:#88f1d2!important;color:#f5fff9}
#trophyOverlay .gc-area-trophy-gallery h3,#trophyOverlay .trophy-category h3{font-size:15px!important;color:#f2fbff!important;margin:13px 0 8px}#trophyOverlay .gc261-country-entry{border-radius:10px!important;background:#16354d!important;border-color:#476c85!important}#trophyOverlay .gc261-country-toggle{min-height:65px!important}#trophyOverlay .gc261-country-count{color:#ffd68c}#trophyOverlay .trophy-category-list{gap:6px!important}#trophyOverlay .trophy-card.trophy-row{background:linear-gradient(150deg,#19364f,#102c42)!important;border:1px solid #4e708c!important;border-radius:11px!important;min-height:69px;padding:10px!important}#trophyOverlay .trophy-card.trophy-row.earned{background:linear-gradient(130deg,#174c4b,#16324a)!important;border-color:#58ae9c!important}#trophyOverlay .trophy-row .trophy-icon{font-size:25px}#trophyOverlay .trophy-row .trophy-row-context,#trophyOverlay .trophy-row .trophy-row-progress{font-size:10px!important;color:#a9c8d9}#trophyOverlay .gallery-footnote{font-size:10px;color:#a8bfd0}
/* Existing detail dialogs – keep all grade states, hit conditions, dates, progress. */
#trophyDetail .v575-detail-panel{border-color:#6691a6;background:linear-gradient(155deg,#193c56,#0e2339);border-radius:17px}#trophyDetail .trophy-detail-medal{border-radius:11px}
/* Rank C: compact leaderboard only in completed Daily, all players are server verified. */
#gcDailySummary .gc41-rank-full{background:radial-gradient(ellipse at 86% -3%,#28568a60,transparent 51%),linear-gradient(180deg,#0c2440,#081a2c 78%)!important;color:#f0fbff;scroll-padding-top:20px}
#gcDailySummary .gc91-rank-inner{max-width:600px;padding:10px 13px max(72px,env(safe-area-inset-bottom))!important}
#gcDailySummary .gc91-rank-hero{display:flex;justify-content:space-between;align-items:center;gap:9px;position:relative;isolation:isolate;overflow:hidden;min-height:95px;padding:15px 15px;margin:0 0 9px;border:1px solid #507fa1;border-radius:15px;background:linear-gradient(116deg,#164d60,#193b67)}#gcDailySummary .gc91-rank-hero h3{font-size:24px!important;font-weight:950;line-height:1.03;margin:7px 0;color:#fff;letter-spacing:-.055em}#gcDailySummary .gc91-rank-hero p{font-size:11px;color:#b8d7e8;margin:0;line-height:1.35}#gcDailySummary .gc91-rank-emblem{font-size:50px;line-height:1.2;filter:drop-shadow(0 6px 7px #061b3a77);flex-shrink:0}
#gcDailySummary .gc41-rank-full-header{position:sticky;top:-10px;z-index:4;padding:9px 2px 12px;background:#0c2439f5;border-bottom:1px solid #4b6f91!important;margin-bottom:9px}#gcDailySummary .gc41-rank-full-header h2{font-size:18px!important;letter-spacing:-.03em}#gcDailySummary .gc41-rank-full-header button{border-radius:9px!important;min-height:38px;min-width:38px}
#gcDailySummary .gc91-rank-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:10px 0 12px}#gcDailySummary .gc91-rank-tabs button{min-height:43px;border:1px solid #587b96;border-radius:10px;background:#173750;color:#c4d8e9;font-size:13px;font-weight:850;padding:8px 7px;cursor:pointer}#gcDailySummary .gc91-rank-tabs button[aria-pressed="true"]{border-color:#83eacc;background:linear-gradient(135deg,#1e665e,#154b57);color:#eafff8;box-shadow:inset 0 1px #d5fff71e}
#gcDailySummary .gc41-rank-full .gc47-day-nav{margin:3px 0 11px!important;padding:8px!important;border-radius:11px!important;border:1px solid #436f8a!important;background:#13354d!important}#gcDailySummary #gcDailyPage{font-size:11px;color:#bdd2e4;margin:10px 0!important}
#gcDailySummary .gc91-rank-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch;margin:9px 0 12px}#gcDailySummary .gc91-rank-podium[hidden]{display:none!important}#gcDailySummary .gc91-podium-player{min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;border:1px solid #557b94;border-radius:12px;background:linear-gradient(150deg,#1a3b56,#122d44);padding:11px 4px 10px}#gcDailySummary .gc91-podium-1{border-color:#d6ad62;background:linear-gradient(155deg,#59462f,#193b4b)}#gcDailySummary .gc91-podium-2{border-color:#b4c3d0}#gcDailySummary .gc91-podium-3{border-color:#b28467}#gcDailySummary .gc91-podium-mark{font-size:26px}#gcDailySummary .gc91-podium-player small{color:#b3cadd;font-size:9px;letter-spacing:.1em;font-weight:850}#gcDailySummary .gc91-podium-name{max-width:100%;overflow-wrap:anywhere;text-align:center;font-size:12px!important;font-weight:850;color:#eefbff!important;border:0!important;padding:1px!important;background:transparent!important;cursor:pointer;line-height:1.25}#gcDailySummary .gc91-podium-player strong{font-size:12px;color:#ffdb91;font-variant-numeric:tabular-nums}
#gcDailySummary #gcDailyFullLeaders{gap:5px}#gcDailySummary #gcDailyFullLeaders .gc47-leader-row{padding:9px 9px!important;min-height:53px!important;background:linear-gradient(120deg,#17364e,#112c43)!important;border-color:#496e88!important;border-radius:10px!important}#gcDailySummary #gcDailyFullLeaders .gc47-leader-row.gc-daily-self{border-color:#5ce6c3!important;background:#175449!important}#gcDailySummary #gcDailyFullLeaders .gc40-row-index{min-width:34px;color:#e8d298;font-size:14px}#gcDailySummary #gcDailyFullLeaders .gc40-row-info{min-width:0}#gcDailySummary #gcDailyFullLeaders .gc40-row-score{color:#ffe0a0!important;font-weight:900;font-size:15px!important;white-space:nowrap}#gcDailySummary .gc47-ranking-actions{display:flex;gap:8px;position:sticky;bottom:0;padding:9px 0 max(10px,env(safe-area-inset-bottom));background:linear-gradient(180deg,#0c254000,#0c2540 24%)}#gcDailySummary .gc47-ranking-actions button{flex:1;min-height:42px;border-radius:10px!important}
#gcDailySummary .gc91-friends-entry{display:flex;width:100%;min-height:42px;align-items:center;justify-content:space-between;gap:10px;margin:7px 0 0!important;padding:9px 13px;border:1px solid #59869c;border-radius:10px;background:#143a50;color:#d8f8f1;font-size:12px;font-weight:850;cursor:pointer}#gcDailySummary .gc91-friends-entry span{font-size:20px;color:#8ae7cf}
/* Community public profiles continue to use their existing API and friendship controls. */
.gc260-profile-panel .gc260-head{background:linear-gradient(115deg,#16475a,#15365b);border-color:#598caa}.gc260-profile-panel .gc260-content{background:radial-gradient(ellipse at 100% 0,#26467322,transparent 55%),#0d263d}.gc260-profile-panel .gc260-profile-identity{border:1px solid #5a849a;border-radius:13px;background:linear-gradient(125deg,#1a5b60,#193753);padding:12px;margin:0 0 10px}.gc260-profile-panel .gc260-profile-avatar{width:54px;height:54px;flex-basis:54px;font-size:24px;border-radius:12px;border:1px solid #80e9ce;background:#246777}.gc260-profile-panel .gc260-profile-stat{background:#193b54;border-color:#52748e}.gc260-profile-panel .gc260-profile-stat strong{color:#efffff}.gc260-profile-panel .gc260-profile-stats{gap:7px}
@media(max-width:420px){#statsOverlay .stats-dialog{padding:14px 11px 17px!important}#statsOverlay .gc91-profile-hero{margin:10px 0 12px;padding:14px 12px}#statsOverlay .gc91-avatar{width:48px;height:48px;flex-basis:48px;border-radius:13px;font-size:18px}#statsOverlay .gc91-level{font-size:10px}#statsOverlay .gc91-progress-head small{font-size:9px}#statsOverlay .gc86-section{padding:12px 9px!important}#trophyOverlay .v575-gallery-dialog{padding:13px 11px 18px!important}#trophyOverlay .gc91-medal-hero{min-height:118px;padding:13px}#trophyOverlay .gc91-cup{right:-11px;width:104px;height:110px}#trophyOverlay .gc91-medal-hero-copy{max-width:68%}#gcDailySummary .gc91-rank-inner{padding-left:10px!important;padding-right:10px!important}#gcDailySummary .gc91-rank-hero h3{font-size:21px!important}#gcDailySummary .gc91-rank-emblem{font-size:42px}}
@media(prefers-reduced-motion:reduce){#statsOverlay .gc91-xp-track span{transition:none!important}}
/* Keep the existing light theme usable without touching shared app styles. */
[data-theme="light"] #statsOverlay .stats-dialog,[data-theme="light"] #trophyOverlay .v575-gallery-dialog{background:linear-gradient(135deg,#eff9fd,#deeff7)!important;color:#183748}
[data-theme="light"] #statsOverlay .stats-modal-head,[data-theme="light"] #trophyOverlay .v575-gallery-head{background:#ecf7fb!important}
[data-theme="light"] #statsOverlay .stats-modal-head h2,[data-theme="light"] #trophyOverlay .v575-gallery-head h2{color:#173d51}
[data-theme="light"] #statsOverlay .gc86-section{background:#eff8fd!important;border-color:#a8c5d8!important}
[data-theme="light"] #statsOverlay .gc86-section-head h3,[data-theme="light"] #statsOverlay .gc86-subgroup h4{color:#1e4357!important}
[data-theme="light"] #statsOverlay .profile-stats .stat-tile,[data-theme="light"] #statsOverlay .gc86-metric{background:#fff!important;border-color:#aacbdb!important}
[data-theme="light"] #statsOverlay .profile-stats .stat-value,[data-theme="light"] #statsOverlay .gc86-metric strong{color:#16465a!important}
[data-theme="light"] #trophyOverlay .gc261-country-entry,[data-theme="light"] #trophyOverlay .trophy-card.trophy-row{background:#edf7fb!important;color:#154058!important;border-color:#a6c5d6!important}
[data-theme="light"] #trophyOverlay .trophy-card.trophy-row.earned{background:#e1f7eb!important;border-color:#6fbea9!important}
/* Keep the two ranking actions centered on narrow phones; the original rank dock uses left:50% + translate. */
#gcDailySummary .gc41-rank-full .gc47-ranking-actions{position:fixed!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(580px,calc(100vw - 26px))!important;max-width:none!important;bottom:0!important;z-index:12!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;padding:10px 0 max(12px,env(safe-area-inset-bottom))!important;background:linear-gradient(0deg,#091e32 81%,#091e3200)!important}

#statsOverlay .gc91-profile-shortcuts button .gc91-shortcut-label{flex:1;color:inherit;font:inherit;font-size:inherit;letter-spacing:normal}
#statsOverlay .gc91-profile-shortcuts button .gc91-shortcut-label+span{font-size:19px;color:#8feeda}
