* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--tg-theme-bg-color, #0f0f14);
  color: var(--tg-theme-text-color, #ffffff);
  padding: 12px;
  padding-bottom: 32px;
}

.hidden { display: none !important; }

.center {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60vh;
  color: var(--tg-theme-hint-color, #888);
  font-size: 15px;
}

.card {
  background: var(--tg-theme-secondary-bg-color, #1c1c24);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 10px;
}

.big-number {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.row {
  display: flex;
  gap: 16px;
}

.col { flex: 1; }

.label {
  font-size: 12px;
  opacity: 0.6;
  margin-bottom: 4px;
}

.rank {
  font-size: 22px;
  font-weight: 700;
}

.rank.gold { color: #f1c40f; }
.rank.ok { color: #2ecc71; }

.line { font-size: 13px; margin-bottom: 2px; }

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tab {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: inherit;
  font-size: 13px;
  cursor: pointer;
}

.tab.active {
  background: var(--tg-theme-button-color, #3390ec);
  color: var(--tg-theme-button-text-color, #fff);
}
