/* Small, touch-accessible counters shared by the portal and game navigation. */
.site-stats { position: relative; flex: 0 0 auto; color: #93a5bf; font: 11px/1.5 "Segoe UI", "Microsoft YaHei", sans-serif; }
.site-stats, .site-stats * { box-sizing: border-box; }
.site-stats .site-stats-disclosure { position: relative; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; }
.site-stats .site-stats-summary { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; max-width: none; margin: 0; padding: 6px 4px; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; list-style: none; white-space: nowrap; cursor: pointer; }
.site-stats .site-stats-summary::-webkit-details-marker { display: none; }
.site-stats .site-stats-summary::after, .site-stats .site-stats-summary::before { content: none; }
.site-stats .site-stats-summary:hover { color: #d9e9fa; }
.site-stats .site-stats-summary:focus-visible { outline: 2px solid #82ddd8; outline-offset: 3px; }
.site-stats .site-stats-summary strong { min-width: 10px; color: #cae2ed; font: 500 11px/1.5 "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
.site-stats .site-stats-icon { display: block; width: 22px; height: 22px; flex: 0 0 22px; fill: #a5d3de08; stroke: #a9c7d5; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px #a2d9df24); }
.site-stats-icon .stats-orbit { fill: none; stroke: #94aac8; stroke-width: .8; opacity: .42; }
.site-stats-icon .stats-iris { fill: #9ec7db1c; stroke: #c1e0e6; }
.site-stats-icon .stats-pupil { fill: #c9e9eb; stroke: none; }
.site-stats-icon .stats-glint { fill: #eefcff; stroke: none; }
.site-stats-summary:hover .site-stats-icon,.site-stats-disclosure[open] .site-stats-icon { filter: drop-shadow(0 0 5px #a2d9df55); }
.site-stats-summary:hover .stats-orbit,.site-stats-disclosure[open] .stats-orbit { opacity: .8; }
.site-stats .site-stats-panel { position: absolute; z-index: 100; top: calc(100% + 8px); left: 0; width: 226px; padding: 16px; border: 1px solid #80d7e52e; border-radius: 0; background: linear-gradient(135deg,#152333fa,#0d1725fc); box-shadow: 0 16px 40px #0007; color: #aebfd4; font: 12px/1.6 "Segoe UI", "Microsoft YaHei", sans-serif; }
.site-stats .site-stats-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 6px; }
.site-stats .site-stats-row strong { color: #e0f1f5; font: 500 13px/1.6 "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.site-stats .site-stats-note { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #85c3da21; color: #879db7; font: 11px/1.7 "Segoe UI", "Microsoft YaHei", sans-serif; }
.atlas-nav .site-stats { margin-left: -10px; }
@media (max-width: 480px) {
  .site-stats .site-stats-summary { gap: 5px; min-height: 44px; }
  .site-stats .site-stats-panel { left: -32px; width: 214px; }
  .atlas-nav .site-stats { margin-left: -6px; }
}
@media print { .site-stats { display: none; } }

.site-stats .site-stats-metric { display: inline-flex; align-items: baseline; gap: 5px; }
.site-stats .site-stats-metric + .site-stats-metric { margin-left: 7px; padding-left: 10px; border-left: 1px solid #b3ccd41c; }
.site-stats .site-stats-metric > span { color: #8297a8; font-size: 9px; letter-spacing: .06em; }
.site-stats .site-stats-counter { display: inline-block; width: auto; height: 1em; max-width: 6em; vertical-align: -.1em; }
.site-stats .site-stats-filter { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.site-stats .site-stats-panel { width: 252px; }
@media (max-width:480px) {
  .site-stats .site-stats-panel { width: 242px; }
  .atlas-nav .site-stats .site-stats-panel { left: -40px; }
}

/* Anchor narrow-screen disclosures to the navigation, not the right-edge counter. */
@media (max-width:760px) {
  .atlas-nav .site-stats,
  .atlas-nav .site-stats .site-stats-disclosure { position:static; }
  .atlas-nav .site-stats .site-stats-panel {
    left:auto; right:18px; top:calc(100% + 6px);
    max-width:calc(100vw - 36px);
  }
}
@media (pointer:coarse) { .site-stats .site-stats-summary { min-height:44px; } }
