/* 0.3.55 e1/e2 — common profile shell, mobile-first, data stays in original nodes. */
#statsOverlay .stats-dialog{--gc55-card:linear-gradient(145deg,#123f56,#08283d);--gc55-border:#497f9a;--gc55-muted:#b7d5e1;--gc55-gold:#ffdf89;width:min(100%,720px);background:radial-gradient(ellipse at 70% 0,#12435a,transparent 55%),#071e30!important;border-color:#427f9b!important;padding:14px 14px 20px;}
#statsOverlay .stats-modal-head{position:relative;top:auto;margin:0;padding:0 0 12px;display:flex;align-items:center;gap:10px;background:transparent!important;border:0}
#statsOverlay .gc55-logo{width:clamp(92px,25vw,142px);height:auto;object-fit:contain;flex:0 0 auto}
#statsOverlay .stats-modal-head>div{flex:1;min-width:0}#statsOverlay .stats-modal-head h2{font-size:clamp(15px,4.2vw,21px)!important;line-height:1.16}
#statsOverlay .stats-modal-head .profile-eyebrow{font-size:9px;letter-spacing:.1em}
#statsOverlay .gc91-profile-hero{margin:0 0 12px;padding:14px;border:1px solid #53dfe7;border-radius:17px;background:linear-gradient(90deg,#062a40d9 0%,#062a40a0 60%,#062a403d),url('/home-design/profile55/hero.webp') center/cover!important;box-shadow:inset 0 1px #89f0ff28;color:#f4fbff}
#statsOverlay .gc91-profile-hero:before{display:none}#statsOverlay .gc91-profile-hero>.gc91-kicker{display:none}#statsOverlay .gc91-profile-person{margin:0 0 12px;display:grid;grid-template-columns:clamp(48px,17vw,80px) minmax(0,1fr);gap:4px 11px}
#statsOverlay .gc91-avatar{grid-row:span 2;width:100%;height:auto;aspect-ratio:1;border-radius:50%;border:2px solid #77f4ed;overflow:hidden;background:#0b3046;box-shadow:0 0 9px #44d9e355}
#statsOverlay .gc91-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}#statsOverlay .gc91-profile-identity h3{font-size:clamp(16px,5vw,25px);line-height:1.15}#statsOverlay .gc91-profile-identity span{font-size:12px}#statsOverlay .gc91-level{grid-column:2;justify-self:start;align-self:start;padding:4px 9px;color:#ffe395;background:#061c2db3;border-color:#e4c66b}
#statsOverlay .gc91-progress-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 8px}#statsOverlay .gc91-progress-head strong{font-size:clamp(20px,6vw,27px);color:var(--gc55-gold)}#statsOverlay .gc91-progress-head small{grid-column:1/-1;max-width:none;text-align:left;font-size:11px}
#statsOverlay #gc55Rank{padding:7px 10px 7px 22px;background:url('/home-design/daily40/laurel.svg') left center/19px auto no-repeat;color:#f9dd91;font-size:12px;font-weight:800}#statsOverlay #gc55Rank b{font-size:16px}
#statsOverlay .gc91-xp-track{height:8px}#statsOverlay .gc91-profile-shortcuts{display:none}
#statsOverlay .gc55-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0 0 12px}#statsOverlay .gc55-tabs button{min-width:0;min-height:44px;display:flex;align-items:center;justify-content:center;gap:5px;padding:7px 4px;border:1px solid #6197af;border-radius:15px;background:linear-gradient(#16445b,#0b293f);color:#eaf8ff;font-size:clamp(10px,3vw,14px);font-weight:800;overflow-wrap:anywhere;cursor:pointer}#statsOverlay .gc55-tabs button[aria-pressed=true]{background:linear-gradient(#0d969c,#08515e);border-color:#82f6ef;box-shadow:inset 0 0 10px #43ded044,0 0 8px #2ce3e32e}#statsOverlay .gc55-tabs button>span:first-child{font-size:17px}
#statsOverlay .gc86-stats-scroll{gap:10px}#statsOverlay .gc86-section{padding:11px;background:var(--gc55-card);border-color:var(--gc55-border);border-radius:16px}#statsOverlay .gc86-section-head{padding:0 0 8px;gap:8px}#statsOverlay .gc86-section-head small{display:none}#statsOverlay .gc86-section-head h3,#statsOverlay .gc55-summary h3{font-size:17px;line-height:1.2;color:#f4fbff;margin:0}#statsOverlay .gc86-icon{width:30px;height:30px;font-size:17px;border:0;background:transparent}
#statsOverlay .gc55-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}#statsOverlay .gc55-summary-grid>div{border:1px solid #497f9a;border-radius:12px;background:linear-gradient(145deg,#174359,#0b2d42);padding:10px;display:grid;gap:4px}#statsOverlay .gc55-summary-grid strong{font-size:24px;color:#effbff;font-variant-numeric:tabular-nums;line-height:1.1}#statsOverlay .gc55-summary-grid>div:nth-child(even) strong{color:var(--gc55-gold)}#statsOverlay .gc55-summary-grid>div:nth-child(3) strong{color:#7eeed3}#statsOverlay .gc55-summary-grid small{font-size:11px;line-height:1.25;color:var(--gc55-muted)}
#statsOverlay .gc55-mode{margin-top:7px;border:1px solid #3c728c;border-radius:12px;overflow:hidden;background:linear-gradient(125deg,#143f55,#09283d)}#statsOverlay .gc55-mode summary{list-style:none;display:grid;grid-template-columns:35px minmax(0,1fr) auto 10px;align-items:center;gap:7px;min-height:54px;padding:7px;cursor:pointer}#statsOverlay .gc55-mode summary::-webkit-details-marker{display:none}#statsOverlay .gc55-mode summary img{width:35px;height:35px;object-fit:cover;border-radius:8px}#statsOverlay .gc55-mode summary h4{margin:0;font-size:13px;font-weight:850;line-height:1.2;color:#f0fbff;overflow-wrap:anywhere}#statsOverlay .gc55-mode-value{font-size:11px;font-weight:800;color:var(--gc55-gold);text-align:right;max-width:90px;line-height:1.25}#statsOverlay .gc55-chevron{font-size:21px;color:#b5e3ed}#statsOverlay .gc55-mode[open] .gc55-chevron{transform:rotate(90deg)}#statsOverlay .gc55-mode-content{padding:9px;border-top:1px solid #346075}#statsOverlay .gc86-mode-grid,#statsOverlay .profile-stats{gap:7px}#statsOverlay .gc86-metric,#statsOverlay .profile-stats .stat-tile{min-height:70px;padding:9px;background:#11384d;border-color:#487e93}#statsOverlay .gc86-metric strong,#statsOverlay .profile-stats .stat-value{font-size:23px}
#statsOverlay .gc86-stats-scroll>[hidden],#statsOverlay #gc55Rank[hidden]{display:none!important}#statsOverlay .gc86-stats-footer #gcProfileTrophyOpen{display:none}#statsOverlay button:focus-visible,#statsOverlay summary:focus-visible{outline:2px solid #90ffee;outline-offset:-2px}
@media(max-width:420px){#statsOverlay .stats-dialog{padding:11px}#statsOverlay .gc86-section{padding:9px}#statsOverlay .gc91-profile-hero{padding:12px}#statsOverlay .gc55-mode summary{grid-template-columns:30px minmax(0,1fr) auto 9px;gap:5px}#statsOverlay .gc55-mode summary img{width:30px;height:30px}}
/* Keep the existing light theme legible for users who choose it. */
[data-theme=light] #statsOverlay .stats-dialog{background:#e8f4fa!important;color:#163c50}[data-theme=light] #statsOverlay .stats-modal-head h2{color:#173e54}[data-theme=light] #statsOverlay .stats-modal-head .profile-eyebrow{color:#187c78}[data-theme=light] #statsOverlay .gc86-section{background:#f3faff}[data-theme=light] #statsOverlay .gc86-section-head h3,[data-theme=light] #statsOverlay .gc55-summary h3{color:#163c50}[data-theme=light] #statsOverlay .gc86-metric strong,[data-theme=light] #statsOverlay .profile-stats .stat-value{color:#173c50}[data-theme=light] #statsOverlay .gc86-metric,[data-theme=light] #statsOverlay .profile-stats .stat-tile{background:white}[data-theme=light] #statsOverlay .gc86-metric span,[data-theme=light] #statsOverlay .profile-stats .stat-label{color:#496d80}
/* D06 keeps its two-column desktop shell until the unified navigation module. */
@media (min-width:1080px) and (hover:hover) and (pointer:fine){
 body.gc-d01-active.gc-d06-profile #statsOverlay .stats-dialog{grid-template-rows:auto auto minmax(0,1fr)}
 body.gc-d01-active.gc-d06-profile #statsOverlay .gc91-profile-hero{grid-row:2/4;align-self:start;background:linear-gradient(90deg,#062a40d9,#062a4066),url('/home-design/profile55/hero.webp') right center/cover!important}
 body.gc-d01-active.gc-d06-profile #statsOverlay .gc91-profile-person{grid-template-columns:58px minmax(0,1fr);gap:6px 9px;margin:0 0 8px}
 body.gc-d01-active.gc-d06-profile #statsOverlay .gc91-avatar{width:58px;height:58px}
 body.gc-d01-active.gc-d06-profile #statsOverlay .gc91-profile-shortcuts{display:none}
 body.gc-d01-active.gc-d06-profile #statsOverlay .gc55-tabs{grid-column:2;grid-row:2}
 body.gc-d01-active.gc-d06-profile #statsOverlay .gc86-stats-scroll{grid-row:3;align-content:start}
}
/* e3/e4 – shared profile tabs, compact records and independently scrollable trophy shelves */
#statsOverlay .gc55-record-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:10px 0}
#statsOverlay .gc55-record-metric{display:grid;align-content:start;gap:5px;padding:9px 6px;border:1px solid #497f9a;border-radius:12px;background:linear-gradient(145deg,#174359,#0b2d42);min-width:0}
#statsOverlay .gc55-record-metric strong{color:var(--gc55-gold);font-size:clamp(14px,4vw,21px);line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}#statsOverlay .gc55-record-metric small{color:var(--gc55-muted);font-size:11px;line-height:1.2;overflow-wrap:anywhere}
#statsOverlay .gc55-record-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}#statsOverlay .gc55-record-tools label{display:grid;gap:5px;min-width:0;font-size:11px;color:#b9e8ea}#statsOverlay .gc55-record-tools label[hidden],#statsOverlay #gc55RecordHelp[hidden]{display:none!important}#statsOverlay .gc55-record-tools select{width:100%;min-width:0;min-height:40px;padding:6px;border:1px solid #5ba5b7;border-radius:10px;background:#0b2e43;color:#ecfcff;font:inherit;font-size:13px}
#statsOverlay .gc87-area-card{min-height:91px;flex-basis:clamp(96px,32%,130px);background:linear-gradient(145deg,#16465c,#0a2b3f)}#statsOverlay .gc87-area-card[aria-pressed=true]{background:linear-gradient(#0d969c,#08515e);border:1px solid #82f6ef}#statsOverlay .gc87-area-flag{font-size:30px}#statsOverlay .gc87-record-panel{background:#0b2b40}#statsOverlay .gc55-server-record{padding:10px 12px;color:#e5f6ff}#statsOverlay .gc55-historical{margin:8px 0;padding:7px 0;border-top:1px solid #456b80}#statsOverlay .gc55-historical summary{font-size:12px;color:#bdd9e4;cursor:pointer;padding:7px 0}
#statsOverlay .gc55-trophy-count{color:#8eebdf;font-size:12px;margin:9px 0;font-weight:800}#statsOverlay .gc55-trophy-section{border:1px solid #437d95;background:#082a40;border-radius:13px;padding:9px;margin:10px 0;min-width:0}#statsOverlay .gc55-trophy-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px}#statsOverlay .gc55-trophy-head h4{font-size:13px;line-height:1.25;color:#effbff;margin:0}#statsOverlay .gc55-rail-controls{display:flex;gap:4px;flex-shrink:0}#statsOverlay .gc55-rail-controls[hidden]{display:none}#statsOverlay .gc55-rail-controls button{border:1px solid #5294af;border-radius:8px;color:#e4fbff;background:#16445a;min-width:30px;min-height:34px;font-size:23px;line-height:1;cursor:pointer}
#statsOverlay .gc55-trophy-rail{display:flex;align-items:stretch;gap:8px;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#65c7cb #0a2335;padding:2px 2px 8px}#statsOverlay .gc55-trophy-card{flex:0 0 clamp(116px,37%,155px);min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;scroll-snap-align:start;text-align:center;padding:9px 6px;background:linear-gradient(145deg,#144258,#0b2c41);color:#effbff;border:1px solid #4d849c;border-radius:12px;cursor:pointer}#statsOverlay .gc55-trophy-card.gc55-trophy-earned{border-color:#e6c46e}#statsOverlay .gc55-trophy-card.gc55-trophy-progress{border-color:#73e4dc}#statsOverlay .gc55-trophy-card strong{font-size:12px;line-height:1.2;overflow-wrap:anywhere}#statsOverlay .gc55-trophy-card small{font-size:10px;color:#b9d6e2;line-height:1.25;overflow-wrap:anywhere}#statsOverlay .gc55-trophy-art{position:relative;width:58px;height:58px;display:grid;place-items:center}#statsOverlay .gc55-trophy-medal{width:58px;height:58px;object-fit:contain}#statsOverlay .gc55-trophy-symbol{position:absolute;font-size:19px;bottom:2px;right:-5px}#statsOverlay .gc55-trophy-card.gc55-trophy-locked .gc55-trophy-art{filter:grayscale(1);opacity:.72}#statsOverlay .gc55-trophy-card progress{width:100%;height:8px;margin-top:auto;accent-color:#36d6bf}#statsOverlay .gc55-empty{font-size:12px;color:#bad3e1;margin:7px 0}#statsOverlay .gc55-trophy-card:focus-visible{outline:2px solid #90ffee;outline-offset:-2px}
#trophyDetail{position:fixed;z-index:10000}#trophyDetail .v575-detail-panel{max-height:90dvh;overflow:auto}
[data-theme=light] #statsOverlay .gc55-record-metric,[data-theme=light] #statsOverlay .gc55-trophy-section,[data-theme=light] #statsOverlay .gc55-trophy-card{background:#eef8fc;color:#163c50}[data-theme=light] #statsOverlay .gc55-record-metric strong{color:#805600}[data-theme=light] #statsOverlay .gc55-record-metric small,[data-theme=light] #statsOverlay .gc55-trophy-card small,[data-theme=light] #statsOverlay .gc55-trophy-head h4,[data-theme=light] #statsOverlay .gc55-empty{color:#31596a}[data-theme=light] #statsOverlay .gc55-trophy-count{color:#167b76}
#statsOverlay .gc55-special-tier{font-size:44px;line-height:1}#statsOverlay .gc55-tier-label{color:#ffdc89!important;font-weight:800}

/* Shared avatar in compact score/lobby rows; never alters map pin geometry. */
.gc55-inline-avatar{display:inline-block;width:22px;height:22px;max-width:22px;flex:0 0 22px;object-fit:cover;vertical-align:middle;border-radius:50%;border:1px solid #65bacd;margin-inline-end:5px;box-sizing:border-box}
.gc83-score-name .gc55-inline-avatar,.gc82-health-name .gc55-inline-avatar{width:18px;height:18px;max-width:18px;flex-basis:18px}

/* Never inherit the legacy .progress bar layout on a trophy card. */
#statsOverlay .gc55-trophy-card{height:auto;min-height:145px;margin:0;box-sizing:border-box;overflow:visible}
#statsOverlay .gc55-trophy-card progress{display:block;flex-shrink:0;min-height:8px}
