body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  padding-bottom: 100px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: linear-gradient(180deg, var(--bg-header) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-trophy {
  font-size: 26px;
  filter: drop-shadow(0 0 6px rgba(201, 168, 76, 0.4));
  flex-shrink: 0;
}

.header-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--gold-primary);
  line-height: 1.1;
}

.header-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.header-progress {
  text-align: right;
  flex-shrink: 0;
}

.header-progress-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.header-progress-nums {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-primary);
  margin-bottom: 5px;
}

.progress-track {
  background: var(--bg-section);
  border-radius: 4px;
  height: 6px;
  width: 160px;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary));
  height: 100%;
  border-radius: 4px;
  box-shadow: 0 0 8px var(--gold-glow);
  transition: width 0.4s ease;
  width: 0%;
}

.progress-pct {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 3px;
  text-align: right;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

/* Controls */
.controls {
  padding: 14px 20px;
  background: #0D0D14;
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Main content */
.main-content {
  padding-bottom: 20px;
}

/* Section group */
.section {
  padding: 16px 20px 0;
}

.group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.group-line {
  flex: 1;
  height: 1px;
  background: rgba(201, 168, 76, 0.2);
}

.group-text {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-primary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-flag-special {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

/* Team header */
.team-header {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-flag {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.team-flag-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.team-flag-img {
  width: 40px;
  height: 30px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

.team-info {
  flex: 1;
  min-width: 0;
}

.team-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.team-count {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.team-progress-wrap {
  width: 120px;
  flex-shrink: 0;
}

.team-progress-track {
  background: var(--bg-section);
  border-radius: 4px;
  height: 5px;
  overflow: hidden;
}

.team-progress-fill {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary));
  height: 100%;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.35);
  transition: width 0.4s ease;
  width: 0%;
}

.team-pct {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 3px;
  text-align: right;
  font-family: var(--font-mono);
}

/* Sticker grid */
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

/* No results message */
.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  display: none;
}

.no-results.visible {
  display: block;
}

/* Lazy load placeholder */
.team-block {
  min-height: 50px;
}

/* Results counter */
.results-counter {
  font-size: 11px;
  color: var(--text-secondary);
  padding: 8px 20px 0;
  font-family: var(--font-mono);
}

/* Mobile */
@media (max-width: 480px) {
  .header {
    padding: 10px 14px;
    gap: 8px;
  }

  .header-title {
    font-size: 18px;
  }

  .header-subtitle {
    display: none;
  }

  .progress-track {
    width: 120px;
  }

  .stats-row {
    gap: 7px;
    padding: 12px 14px;
  }

  .controls {
    padding: 10px 14px;
  }

  .section {
    padding: 12px 14px 0;
  }

  .sticker-grid {
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 7px;
  }
}

@media (max-width: 768px) {
  .header-subtitle {
    font-size: 10px;
  }
}
