/* V0.2.86 – focused, mobile-first profile overview. Scoped to stats dialog. */
#statsOverlay .stats-dialog{max-height:min(94dvh,1060px);padding:19px 17px 23px;scrollbar-width:thin;overscroll-behavior:contain}
#statsOverlay .stats-modal-head{position:sticky;top:-19px;z-index:2;padding:9px 0 16px;margin:-9px 0 0;background:linear-gradient(180deg,#122c45 82%,#122c4500)}
#statsOverlay .stats-modal-head h2{margin:3px 0 6px}
#statsOverlay .stats-modal-head p{max-width:420px}
#statsOverlay .stats-modal-head .stats-modal-close{min-width:42px;min-height:42px}
#statsOverlay .gc86-stats-scroll{display:grid;gap:17px;padding-bottom:2px}
#statsOverlay .gc86-section{border:1px solid #365e76;border-radius:20px;padding:15px 12px 13px;background:linear-gradient(155deg,#102c43e8,#0c2136e8)}
#statsOverlay .gc86-section-head{display:flex;align-items:center;gap:11px;padding:2px 1px 14px;border-bottom:1px solid #345875}
#statsOverlay .gc86-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;border:1px solid #4b8190;background:#1b444c;font-size:23px}
#statsOverlay .gc86-section-head small{font-size:10px;color:#69e6c7;font-weight:900;letter-spacing:.12em}
#statsOverlay .gc86-section-head h3{font-size:20px;line-height:1.12;letter-spacing:-.035em;color:#fff;margin:4px 0 0}
#statsOverlay .gc86-subgroup{margin-top:16px}
#statsOverlay .gc86-subgroup h4{font-size:15px;color:#e4f3fb;margin:0 0 12px;font-weight:850}
#statsOverlay .profile-stats{gap:8px}
#statsOverlay .profile-stats .stat-tile{min-height:83px;border-radius:13px;padding:13px 11px}
#statsOverlay .profile-stats .stat-value{font-size:27px}
#statsOverlay .profile-stats .stat-label{font-size:11px}
#statsOverlay .stats-note{font-size:11px;color:#a8c4d5;margin:10px 1px 0;line-height:1.5}
#statsOverlay .gc86-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#statsOverlay .gc86-metric{min-width:0;min-height:91px;border:1px solid #54778e;border-radius:16px;padding:14px 12px;background:linear-gradient(150deg,#1e405b,#19334d);display:flex;flex-direction:column;justify-content:center;gap:5px}
#statsOverlay .gc86-metric strong{font-size:29px;color:#f6feff;line-height:1.05;font-variant-numeric:tabular-nums}
#statsOverlay .gc86-metric span{font-size:12px;font-weight:750;line-height:1.3;color:#bfd7e4}
#statsOverlay .gc86-mode-card{grid-column:1/-1;border:1px solid #3c6277;border-radius:15px;padding:12px;background:linear-gradient(155deg,#112e46,#0c263d)}
#statsOverlay .gc86-mode-card>strong{font-size:13px;display:block;margin:1px 2px 11px;color:#9fe7d1}
#statsOverlay .gc86-mode-grid-inner{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#statsOverlay .gc86-mode-grid-inner .gc86-metric{padding:10px 8px;min-height:72px}
#statsOverlay .gc86-mode-grid-inner .gc86-metric strong{font-size:25px}
#statsOverlay .gc86-mode-grid-inner .gc86-metric span{font-size:11px}
#statsOverlay .gc86-extra{grid-column:1/-1;color:#a7c3d2;font-size:11px;margin:0 3px}
#statsOverlay .gc86-activity{margin-top:16px}
#statsOverlay .gc86-activity summary{font-size:12px}
#statsOverlay .gc86-stats-footer{display:grid;gap:10px;padding:0 2px}
#statsOverlay .gc86-stats-footer .outline-btn{min-height:52px;cursor:pointer}
#statsOverlay .gc86-stats-footer .save-note{margin:0;font-size:11px;color:#9eb8cb}
[data-theme="light"] #statsOverlay .stats-modal-head{background:linear-gradient(180deg,#f8fcff 80%,#f8fcff00)}
[data-theme="light"] #statsOverlay .gc86-section{background:#eaf5fb;border-color:#bfd5e1}
[data-theme="light"] #statsOverlay .gc86-section-head{border-color:#bfd4df}
[data-theme="light"] #statsOverlay .gc86-icon{background:#d4f2e9;border-color:#9ecbbc}
[data-theme="light"] #statsOverlay .gc86-section-head small{color:#087c68}
[data-theme="light"] #statsOverlay .gc86-section-head h3,[data-theme="light"] #statsOverlay .gc86-subgroup h4{color:#173e54}
[data-theme="light"] #statsOverlay .gc86-metric,[data-theme="light"] #statsOverlay .gc86-mode-card{background:#fff;border-color:#b9d2df}
[data-theme="light"] #statsOverlay .gc86-metric strong{color:#173b51}
[data-theme="light"] #statsOverlay .gc86-metric span{color:#527187}
[data-theme="light"] #statsOverlay .gc86-mode-card>strong{color:#167b67}
@media(max-width:420px){#statsOverlay .stats-dialog{padding:16px 11px 21px}#statsOverlay .stats-modal-head{top:-16px}#statsOverlay .gc86-section{padding:13px 9px}#statsOverlay .gc86-metric strong{font-size:24px}}

/* v0.2.87 – swipeable region records, after Solo + Online metrics. */
#statsOverlay .gc87-records-section{padding:15px 12px 16px}
#statsOverlay .gc87-records-heading{padding-bottom:14px}
#statsOverlay .gc87-records-section .gc86-help{margin:13px 1px 12px;color:#bad3e1;font-size:12px;line-height:1.5}
#statsOverlay .gc87-records{min-width:0}
#statsOverlay .gc87-area-strip{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;overscroll-behavior-x:contain;touch-action:pan-x;scrollbar-width:thin;scrollbar-color:#73c7bb transparent;max-width:100%;padding:3px 2px 13px}
#statsOverlay .gc87-area-card{flex:0 0 clamp(112px,36%,142px);scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:121px;padding:10px 7px;border:1px solid #50778f;border-radius:15px;color:#f3fbff;background:linear-gradient(145deg,#1b415d,#162f49);text-align:center;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
#statsOverlay .gc87-area-card[aria-pressed="true"]{border:2px solid #6df0c4;background:linear-gradient(135deg,#1a715c,#185665);box-shadow:0 0 0 1px #69f4c44d inset}
#statsOverlay .gc87-area-card:active{transform:scale(.98)}
#statsOverlay .gc87-area-card:focus-visible{outline:2px solid #9fffe5;outline-offset:2px}
#statsOverlay .gc87-area-flag{font-size:38px;line-height:1.1}
#statsOverlay .gc87-area-card strong{font-size:12px;font-weight:850;line-height:1.2;overflow-wrap:anywhere}
#statsOverlay .gc87-area-card small{font-size:10px;font-weight:750;color:#bcd2df;line-height:1.2}
#statsOverlay .gc87-record-panel{border-radius:16px;background:linear-gradient(160deg,#102c44,#0d263b);border:1px solid #4d7185;overflow:hidden;min-height:100px}
#statsOverlay .gc87-record-panel-head{display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:1px solid #3d5f74;padding:13px 14px;background:#1b3d54}
#statsOverlay .gc87-record-panel-head strong{font-size:14px;color:#f0fdff;min-width:0}
#statsOverlay .gc87-record-panel-head span{font-size:11px;color:#b2d0dd;white-space:nowrap}
#statsOverlay .gc87-record-rows{padding:3px 12px 7px}
#statsOverlay .gc87-record-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 1px;min-height:56px;border-bottom:1px solid #325168}
#statsOverlay .gc87-record-row:last-child{border-bottom:0}
#statsOverlay .gc87-record-detail{min-width:0;display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;font-size:12px;line-height:1.4;color:#bdd4df}
#statsOverlay .gc87-record-difficulty{display:inline-flex;padding:3px 7px;border-radius:6px;font-size:10px;font-weight:850;color:#d7f9ff;background:#295575;white-space:nowrap}
#statsOverlay .gc87-record-difficulty.gc87-medium{background:#67543a;color:#ffe6b9}
#statsOverlay .gc87-record-difficulty.gc87-hard{background:#71404b;color:#ffd7da}
#statsOverlay .gc87-record-row b{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums;color:#ffdb8b}
#statsOverlay .gc86-mode-grid-inner .gc86-metric{min-height:86px}
#statsOverlay .gc86-mode-grid-inner .gc86-metric strong{font-size:24px}
#statsOverlay .gc86-mode-grid-inner .gc86-metric span{font-size:11px}
#statsOverlay .gc86-extra{display:flex;align-items:center;padding:11px 13px;border:1px solid #4a7482;border-radius:12px;background:#154451;color:#b7f0dd;font-weight:750;font-size:12px}
[data-theme="light"] #statsOverlay .gc87-records-section .gc86-help{color:#5b798a}
[data-theme="light"] #statsOverlay .gc87-area-card{background:#fff;color:#194059;border-color:#b3cedd}
[data-theme="light"] #statsOverlay .gc87-area-card[aria-pressed="true"]{background:#d5f6ea;color:#0a4d3c;border-color:#25a883}
[data-theme="light"] #statsOverlay .gc87-area-card small{color:#4f6c80}
[data-theme="light"] #statsOverlay .gc87-record-panel{background:#f6fbff;border-color:#bbd3e0}
[data-theme="light"] #statsOverlay .gc87-record-panel-head{background:#e5f3f9;border-color:#bfd3de}
[data-theme="light"] #statsOverlay .gc87-record-panel-head strong{color:#244b60}
[data-theme="light"] #statsOverlay .gc87-record-panel-head span{color:#53788b}
[data-theme="light"] #statsOverlay .gc87-record-row{border-color:#d0e0e9}
[data-theme="light"] #statsOverlay .gc87-record-detail{color:#365b70}
[data-theme="light"] #statsOverlay .gc87-extra{background:#e1f7f0;color:#11694c}
@media(max-width:420px){#statsOverlay .gc87-records-section{padding:13px 9px}#statsOverlay .gc87-record-row b{font-size:13px}#statsOverlay .gc87-area-card{flex-basis:120px}}
@media(prefers-reduced-motion:reduce){#statsOverlay .gc87-area-card{transition:none}}

#statsOverlay .gc86-metric.gc87-metric-average{background:linear-gradient(150deg,#155b53,#134345);border-color:#4fdaaf}
#statsOverlay .gc86-metric.gc87-metric-average strong{color:#9df5d6}
#statsOverlay .gc86-metric.gc87-metric-accent{background:linear-gradient(150deg,#4b4029,#393627);border-color:#ab8950}
#statsOverlay .gc86-metric.gc87-metric-accent strong{color:#ffda83}
[data-theme="light"] #statsOverlay .gc86-metric.gc87-metric-average{background:#d9f7e9;border-color:#45b68e}
[data-theme="light"] #statsOverlay .gc86-metric.gc87-metric-average strong{color:#08765d}
[data-theme="light"] #statsOverlay .gc86-metric.gc87-metric-accent{background:#fff4d7;border-color:#c7a354}
[data-theme="light"] #statsOverlay .gc86-metric.gc87-metric-accent strong{color:#815b1a}

/* Prevent the horizontal swiper's intrinsic width from expanding the stats grid. */
#statsOverlay .stats-dialog{min-width:0}
#statsOverlay .gc86-stats-scroll{grid-template-columns:minmax(0,1fr);min-width:0;width:100%}
#statsOverlay .gc86-section,#statsOverlay .gc86-subgroup,#statsOverlay .gc86-mode-card,#statsOverlay .gc86-mode-grid,#statsOverlay .gc86-stats-footer{min-width:0;max-width:100%}
#statsOverlay .gc87-records-section,#statsOverlay .gc87-records{min-width:0;max-width:100%;width:100%}
#statsOverlay .gc87-area-strip{width:100%;min-width:0;max-width:100%}
#statsOverlay .gc87-record-panel{min-width:0;max-width:100%}
