/* Статистика игры для владельца (js/screens/ownerstats.js, update/33_METRICS.md).
   Графики — по правилам dataviz: одна серия золотом, сетка волосками, столбики ≤ 24 px со скруглённым верхом,
   тепловая карта — пять ступеней одного тона (проверены на фоне #1C2D30). Без анимаций и размытия фона. */
.st .tm-sec { margin-top: 28px; }
.st-box { margin-top: 10px; border-radius: 20px; padding: 12px 12px 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.st-k { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 700; line-height: 1.3; color: rgba(246, 243, 236, .68); }
.st-none { margin: 4px 0 2px; font-size: 13.5px; line-height: 1.4; color: rgba(246, 243, 236, .8); }
.st-upd { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.st-seg { margin-top: 10px; }

.st-hero { margin-top: 10px; display: flex; flex-direction: column; }
.st-big { font-family: var(--f-text); font-size: 56px; font-weight: 800; line-height: 1; color: var(--ink); }
.st-hero-t { margin-top: 4px; font-size: 16px; font-weight: 800; color: var(--ink); }
.st-hero small { margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: rgba(246, 243, 236, .68); }

.st-tiles { margin-top: 10px; }
.st-tiles > span { padding-right: 8px; }
.st-tiles b { font-size: 26px; overflow: hidden; text-overflow: ellipsis; }
.st-tiles small { margin-top: 4px; font-family: var(--f-text); font-style: normal; font-size: 12px; font-weight: 700; line-height: 1.25; }
.st-box .st-tiles { margin-top: 0; }

.st-chart { position: relative; touch-action: pan-y; }
.st-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.st-grid { stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.st-grid.v { stroke: rgba(255, 255, 255, .05); }
.st-tick { font-family: var(--f-text); font-size: 10.5px; font-weight: 700; fill: rgba(246, 243, 236, .55); font-variant-numeric: tabular-nums; }
.st-tick.middle { text-anchor: middle; }
.st-tick.end { text-anchor: end; }
.st-peak { font-family: var(--f-text); font-size: 11.5px; font-weight: 800; fill: var(--ink); text-anchor: middle; }
.st-bar { fill: var(--accent); }
.st-bar.on { fill: #FFF1CC; }
.st-zero { fill: rgba(255, 255, 255, .14); }
.st-area { fill: rgba(243, 210, 139, .1); }
.st-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.st-dot { fill: var(--accent); stroke: #16262A; stroke-width: 2; }
.st-hl { fill: var(--accent); stroke: var(--ink); stroke-width: 2; opacity: 0; }
.st-cross { stroke: rgba(246, 243, 236, .35); stroke-width: 1; opacity: 0; }
.st-hl.on, .st-cross.on { opacity: 1; }
.st-cell.z { fill: rgba(255, 255, 255, .05); }
.st-tip { position: absolute; left: 0; top: 0; z-index: 2; transform: translate(-50%, calc(-100% - 10px)); max-width: 240px; width: max-content; padding: 6px 9px;
  border-radius: 10px; pointer-events: none; font-size: 12.5px; font-weight: 700; line-height: 1.3; text-align: center; color: var(--ink);
  background: rgba(8, 16, 18, .95); border: 1px solid rgba(255, 255, 255, .14); opacity: 0; }
.st-tip.on { opacity: 1; }
.st-legend { margin-top: 8px; display: flex; align-items: center; gap: 3px; flex-wrap: wrap; font-size: 11.5px; font-weight: 700; color: rgba(246, 243, 236, .62); }
.st-legend i { width: 18px; height: 10px; border-radius: 2px; }
.st-legend span:first-child { margin-right: 4px; }
.st-legend span:last-child { margin-left: 4px; }

.st-more { margin-top: 8px; }
.st-more summary { font-size: 12.5px; font-weight: 800; color: var(--accent); cursor: pointer; list-style: none; }
.st-more summary::-webkit-details-marker { display: none; }
.st-more summary::after { content: " ▾"; }
.st-more[open] summary::after { content: " ▴"; }
.st-nums { margin-top: 6px; display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; font-size: 12.5px; color: rgba(246, 243, 236, .78); }
.st-nums b { color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }

.st-tblwrap { margin-top: 10px; overflow-x: auto; border-radius: 16px; }
.st-tbl { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: 12px; color: var(--ink); }
.st-tbl thead th { padding: 2px 2px 4px; font-size: 11px; font-weight: 700; line-height: 1.2; color: rgba(246, 243, 236, .62); text-align: center; vertical-align: bottom; }
.st-tbl thead th:first-child { text-align: left; }
.st-tbl tbody th { padding: 4px 4px 4px 0; font-size: 11.5px; font-weight: 700; line-height: 1.2; text-align: left; color: rgba(246, 243, 236, .85); min-width: 70px; }
.st-tbl td { padding: 5px 2px; border-radius: 8px; text-align: center; background: rgba(255, 255, 255, .04); font-variant-numeric: tabular-nums; }
.st-tbl .st-n { font-weight: 800; }
.st-c b { display: block; font-size: 12.5px; }
.st-c small { display: block; margin-top: 1px; font-size: 9.5px; opacity: .78; white-space: nowrap; }
.st-c.dark { color: #16262A; }
.st-c.na { color: rgba(246, 243, 236, .35); }
.st-c.zero b { color: rgba(246, 243, 236, .7); }
.st-tbl tr.all th, .st-tbl tr.all .st-n { color: var(--accent); }
.st-tbl.src td { font-weight: 700; }

.st-fun-row + .st-fun-row { margin-top: 11px; }
.st-fun-top { display: flex; align-items: baseline; gap: 8px; }
.st-fun-top span { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.st-fun-row.step .st-fun-top span { font-weight: 600; color: rgba(246, 243, 236, .86); }
.st-fun-top b { font-size: 16px; font-variant-numeric: tabular-nums; }
.st-fun-top small { width: 40px; text-align: right; font-size: 12px; font-weight: 700; color: rgba(246, 243, 236, .6); font-variant-numeric: tabular-nums; }
.st-fun-bar { margin-top: 5px; height: 8px; border-radius: 4px; background: rgba(243, 210, 139, .12); overflow: hidden; }
.st-fun-bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.st-warn { margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 6px; border-radius: 10px; font-size: 12.5px; font-weight: 800;
  color: #F29A8E; background: rgba(242, 154, 142, .1); border: 1px solid rgba(242, 154, 142, .4); }
.st-warn svg { width: 15px; height: 15px; }

.st-empty p { margin: 4px 0 0; display: flex; gap: 8px; font-size: 13.5px; line-height: 1.4; color: rgba(246, 243, 236, .86); }
.st-empty p svg, .st-waves svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; color: rgba(246, 243, 236, .6); }
.st-waves { margin: 6px 0 0; padding: 0; list-style: none; }
.st-waves li { margin-top: 4px; display: flex; gap: 8px; font-size: 12.5px; line-height: 1.35; color: rgba(246, 243, 236, .78); }

.st-meter { height: 10px; border-radius: 5px; background: rgba(243, 210, 139, .18); overflow: hidden; }
.st-meter i { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.st-meter-t { margin: 6px 0 0; font-size: 13px; color: rgba(246, 243, 236, .8); }
.st-meter-t b { color: var(--ink); }

.st-tbl.fd { margin-top: -2px; }
.st-tbl.fd tbody th { min-width: 0; font-weight: 600; }
.st-tbl.fd td { font-size: 15px; font-weight: 800; padding: 7px 4px; }
.st-tbl.fd thead th { font-size: 12px; }
.st-none.st-small { margin-top: 8px; font-size: 12px; color: rgba(246, 243, 236, .6); }
