@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #272727;
  --panel: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #22d3ee;
  --gold: #fbbf24;
  --silver: #d1d5db;
  --bronze: #d97706;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Rajdhani', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.02) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  width: 35%;
  left: -45%;
  transform: skewX(-20deg);
  animation: page-shimmer 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

@keyframes page-shimmer {
  0% { left: -50%; }
  65% { left: 120%; }
  100% { left: 120%; }
}

.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}


.title-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.header-copy h1 {
  margin: 0 0 0.25rem;
}

.title-logo {
  width: min(140px, 28vw);
  height: auto;
  display: block;
}

.header-copy p {
  color: var(--muted);
  margin: 0;
}

.brand-logo {
  width: min(130px, 28vw);
  height: auto;
  display: block;
  flex-shrink: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.filter-button {
  border: 1px solid #374151;
  color: var(--text);
  background: #1f2937;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.filter-button.active {
  background: #f5d21f;
  border-color: #f5d21f;
  color: #0b1120;
  font-weight: 700;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1rem;
  align-items: start;
}

.table-section {
  grid-column: 1;
}

.podium-section {
  grid-column: 2;
}

.podium {
  display: grid;
  gap: 0.75rem;
}

.podium-card {
  background: var(--panel);
  border: 1px solid #1f2937;
  border-radius: 0.75rem;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.podium-card.rank-1 {
  border-color: var(--gold);
  min-height: 220px;
}

.podium-card.rank-2 {
  border-color: var(--silver);
  min-height: 190px;
}

.podium-card.rank-3 {
  border-color: var(--bronze);
  min-height: 165px;
}

.rank-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.time {
  font-size: 1.2rem;
  font-weight: 700;
}

.table-wrapper {
  position: relative;
  overflow: hidden;
  border: 1px solid #1f2937;
  border-radius: 0.75rem;
  background: rgba(178, 32, 42, 0.8);
  isolation: isolate;
}

.table-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://sector3sims.com/wp-content/uploads/2026/02/S3S-Logo_DBG_Square_Seafoam@4x-scaled.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(420px, 70%);
  opacity: 0.17;
  z-index: 0;
}

table {
  position: relative;
  z-index: 2;
  width: 100%;
  border-collapse: collapse;
  background: rgba(178, 32, 42, 0.8);
}

table.hide-round .round-col {
  display: none;
}

th, td {
  padding: 0.7rem;
  text-align: left;
  border-bottom: 1px solid #1f2937;
}

th {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.status {
  color: var(--muted);
}

@media (max-width: 900px) {
  .title-row {
    flex-wrap: wrap;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .table-section,
  .podium-section {
    grid-column: 1;
  }

  .podium {
    grid-template-columns: 1fr;
  }

  .podium-card.rank-1,
  .podium-card.rank-2,
  .podium-card.rank-3 {
    min-height: auto;
  }
}
