.statistics-root .hidden,
.statistics-root .is-hidden {
  display: none !important;
}

.statistics-root .st-search {
  margin-bottom: 1.25rem;
}

.statistics-root .search-title {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.statistics-root .st-search-hint {
  margin: 0 0 1.1rem;
  color: var(--px-ink-muted);
  font-size: 0.95rem;
}

.statistics-root .st-games,
.statistics-root .st-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.statistics-root .st-games {
  margin-bottom: 1rem;
}

.statistics-root .st-game-tab,
.statistics-root .st-mode {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.statistics-root .st-game-tab:hover,
.statistics-root .st-mode:hover {
  background: rgba(255, 255, 255, 0.16);
}

.statistics-root .st-game-tab.is-active,
.statistics-root .st-mode.is-active {
  background: var(--px-accent);
  border-color: var(--px-accent);
  color: #1b1408;
}

.statistics-root .st-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: flex-end;
  justify-content: space-between;
}

.statistics-root .st-filter-field {
  min-width: 140px;
}

.statistics-root .st-filter-field input {
  max-width: 180px;
}

#st-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.st-highlight h3,
.st-board-head h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.st-highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 0.85rem;
}

.st-highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.st-highlight-val {
  font-size: 0.78rem;
  color: var(--px-ink-muted);
  font-weight: 600;
}

#st-panels {
  display: grid;
  gap: 1rem;
}

.st-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.st-key {
  display: flex;
  gap: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.st-key-count {
  color: #b7f39a;
}

.st-key-delay {
  color: #ffb4a8;
}

.st-legend {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  color: var(--px-ink-muted);
}

.st-legend-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4b6b88 0%, #0076b6 40%, #30d701 75%, #bf933a 100%);
}

.st-grid {
  display: grid;
  grid-template-columns: repeat(var(--st-cols, 9), minmax(0, 1fr));
  gap: 0.55rem;
}

.st-rank-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

@media (min-width: 800px) {
  .st-rank-list {
    grid-template-columns: 1fr 1fr;
  }
}

.st-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.35rem 0.45rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.st-rank-list .st-cell {
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
}

.st-rank {
  width: 1.6rem;
  color: var(--px-ink-muted);
  font-weight: 800;
  font-size: 0.85rem;
  text-align: right;
}

.st-ball {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #0f2433;
  background: radial-gradient(circle at 30% 28%, #fff 0%, #dce7f2 42%, #9bb4c9 100%);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 -3px 6px rgba(15, 36, 51, 0.18);
}

.st-ball.is-hot {
  color: #1b1408;
  background: radial-gradient(circle at 30% 28%, #fff4d4 0%, #bf933a 55%, #8a6620 100%);
}

.st-ball.is-cold,
.st-cell.is-delayed .st-ball {
  color: #fff;
  background: radial-gradient(circle at 30% 28%, #ff8a7a 0%, #a21502 62%, #5c0c02 100%);
}

.st-ball.is-bonus {
  color: #1b1408;
  background: radial-gradient(circle at 30% 28%, #fff4d4 0%, #bf933a 55%, #8a6620 100%);
}

.st-metrics {
  display: flex;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  width: 100%;
  justify-content: space-between;
  padding: 0 0.15rem;
}

.st-rank-list .st-metrics {
  width: auto;
  margin-right: auto;
}

.st-count {
  color: #b7f39a;
}

.st-delay {
  color: #ffb4a8;
}

.st-bar {
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.st-rank-list .st-bar {
  flex: 1;
  height: 8px;
}

.st-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #30d701;
}

.st-cell.heat-1 {
  background: rgba(75, 107, 136, 0.22);
}

.st-cell.heat-2 {
  background: rgba(0, 118, 182, 0.18);
}

.st-cell.heat-3 {
  background: rgba(48, 215, 1, 0.12);
}

.st-cell.heat-4 {
  background: rgba(48, 215, 1, 0.22);
}

.st-cell.heat-5 {
  background: rgba(191, 147, 58, 0.28);
  border-color: rgba(191, 147, 58, 0.45);
}

.st-cell.heat-1 .st-bar > span {
  background: #7f9bb3;
}

.st-cell.heat-5 .st-bar > span {
  background: #bf933a;
}

.st-empty {
  margin: 0.75rem 0 0;
  color: var(--px-ink-muted);
}

.statistics-root[data-game="kino"] .st-grid {
  --st-cols: 10;
}

@media (max-width: 800px) {
  .st-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .statistics-root[data-game="kino"] .st-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .st-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
