:root {
  color-scheme: dark;
  --cw-black: #050607;
  --cw-ink: #07090b;
  --cw-panel: rgba(10, 13, 16, 0.65);
  --cw-line: rgba(255, 255, 255, 0.08);
  --cw-muted: #8e98a0;
  --cw-white: #f1f5f9;
  
  /* Fire faction styling */
  --cw-orange: #ff7a00;
  --cw-orange-strong: #ff3c00;
  --cw-fire-glow: rgba(255, 79, 0, 0.15);
  --cw-fire-border: rgba(255, 79, 0, 0.25);
  
  /* Ice faction styling */
  --cw-ice: #a8c3d8;
  --cw-ice-strong: #d0e2f0;
  --cw-ice-glow: rgba(168, 203, 222, 0.12);
  --cw-ice-border: rgba(168, 203, 222, 0.22);
  
  --cw-shadow: rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--cw-black);
  color: var(--cw-white);
  overflow-x: hidden;
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4,
.brand,
.button,
.countdown__phase,
.countdown__range,
.timebox strong,
.store-card strong,
.faction h3,
.leaderboard th,
.leaderboard caption,
.rule strong,
.rule h3,
.status-badge {
  font-family: 'Orbitron', sans-serif;
}

/* Fixed full-viewport background, dimmed progressively by scroll */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--cw-black);
  pointer-events: none;
}

.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/cw-hero.jpg?v=20260706-clean-bg");
  background-size: cover;
  background-position: center;
  opacity: 0.56;
  filter: saturate(1.08) contrast(1.08);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(5, 6, 7, 0.18) 0%, rgba(5, 6, 7, 0.34) 45%, rgba(5, 6, 7, 0.78) 100%),
    linear-gradient(90deg, rgba(5, 6, 7, 0.4) 0%, rgba(5, 6, 7, 0.08) 50%, rgba(5, 6, 7, 0.38) 100%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.16) 0%, rgba(5, 6, 7, 0.26) 58%, rgba(5, 6, 7, 0.42) 100%);
}

.site-bg__dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--cw-black);
  opacity: 0;
  will-change: opacity;
}

.page {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 112, 0, 0.14), transparent 30rem),
    radial-gradient(circle at 85% 25%, rgba(168, 203, 222, 0.12), transparent 30rem);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
}


.topbar,
.hero__content,
.section,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  position: relative;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 18px;
}

.brand__logo {
  width: clamp(118px, 12vw, 178px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 122, 0, 0.36));
}

.brand__name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(241, 245, 249, 0.7);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.topbar__nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.topbar__nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cw-orange), var(--cw-ice));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.topbar__nav a:hover {
  color: var(--cw-white);
}

.topbar__nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hero Content */
.hero__content {
  flex: 1;
  display: grid;
  align-items: center;
  padding: 40px 0 96px;
  position: relative;
  z-index: 3;
}

.hero__copy {
  width: min(780px, 100%);
  margin-inline: auto;
  text-align: center;
}

.hero__logo-wrapper {
  width: min(820px, 100%);
  margin: 0 auto 18px;
  display: block;
  position: relative;
}

.hero__logo-img {
  width: min(100%, clamp(360px, 58vw, 820px));
  height: auto;
  filter: drop-shadow(0 0 26px rgba(255, 122, 0, 0.24)) drop-shadow(0 0 48px rgba(168, 203, 222, 0.18));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero__logo-wrapper:hover .hero__logo-img {
  transform: scale(1.06) rotate(3deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero__subtitle {
  max-width: 600px;
  margin: 24px auto 0;
  color: rgba(241, 245, 249, 0.85);
  font-size: clamp(16px, 1.8vw, 24px);
  line-height: 1.3;
  font-weight: 500;
}

/* SEASON 0 line with spinning digit */
.hero__season {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.32em;
  margin-top: 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero__season-word {
  background: linear-gradient(135deg, #fff 30%, var(--cw-muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__season-digit {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  color: var(--cw-orange);
  text-shadow: 0 0 18px rgba(255, 122, 0, 0.55), 0 0 42px rgba(255, 79, 0, 0.3);
}

.hero__season-reel {
  display: flex;
  flex-direction: column;
  animation: season-reel-spin 2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s 1 both;
}

.hero__season-reel span {
  display: block;
  height: 1em;
  line-height: 1;
}

@keyframes season-reel-spin {
  0% { transform: translateY(-10em); }
  100% { transform: translateY(0); }
}

.hero__support {
  margin: 16px auto 0;
  color: var(--cw-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.4px;
}

.hero__support span {
  color: var(--cw-orange);
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.hero__meta li {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(10, 13, 16, 0.55);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(241, 245, 249, 0.8);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.5px;
}

.hero__meta li svg {
  color: var(--cw-orange);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

/* Buttons */
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(15, 20, 25, 0.7);
  color: var(--cw-white);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 15px 35px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button:hover {
  transform: translateY(-3px);
  background: rgba(25, 30, 40, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.button--primary {
  border-color: rgba(255, 122, 0, 0.4);
  background: linear-gradient(135deg, var(--cw-orange), var(--cw-orange-strong));
  color: var(--cw-black);
  box-shadow: 0 15px 30px rgba(255, 79, 0, 0.25);
  font-weight: 950;
}

.button--primary:hover {
  background: linear-gradient(135deg, #ffa033, var(--cw-orange));
  border-color: rgba(255, 122, 0, 0.6);
  box-shadow: 0 20px 40px rgba(255, 79, 0, 0.4);
}

.button--secondary {
  border-color: rgba(168, 203, 222, 0.3);
  box-shadow: 0 15px 30px rgba(168, 203, 222, 0.1);
}

.button--secondary:hover {
  border-color: var(--cw-ice);
  box-shadow: 0 20px 40px rgba(168, 203, 222, 0.2);
}

.button--white {
  border-color: rgba(208, 226, 240, 0.55);
  background: linear-gradient(135deg, var(--cw-ice-strong), var(--cw-ice));
  color: var(--cw-black);
  box-shadow: 0 15px 30px rgba(168, 203, 222, 0.22);
  font-weight: 950;
}

.button--white:hover {
  background: linear-gradient(135deg, #e6f1f9, var(--cw-ice-strong));
  border-color: var(--cw-ice-strong);
  box-shadow: 0 20px 40px rgba(168, 203, 222, 0.35);
}

.scroll-cue {
  width: 2px;
  height: 70px;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 122, 0, 0), var(--cw-orange));
  border-radius: 99px;
  box-shadow: 0 0 10px var(--cw-orange);
  z-index: 4;
}

/* Countdown Band */
.countdown-band {
  position: relative;
  margin-top: -50px;
  z-index: 5;
}

.countdown {
  width: min(1040px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 1.6fr 0.9fr;
  gap: 1px;
  border: 1px solid var(--cw-line);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
}

.countdown__cell {
  min-height: 110px;
  padding: 24px;
  background: rgba(8, 10, 13, 0.75);
}

.countdown__phase {
  margin: 0;
  color: var(--cw-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown__range {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--cw-white);
}

.countdown__digits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: center;
}

.timebox {
  text-align: center;
}

.timebox strong {
  display: block;
  color: var(--cw-white);
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -1px;
}

.timebox span {
  display: block;
  margin-top: 6px;
  color: var(--cw-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.progress__rail {
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.progress__fill {
  width: var(--progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--cw-orange), var(--cw-ice));
  box-shadow: 0 0 10px rgba(255, 122, 0, 0.4);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 99px;
}

.progress__label {
  margin-top: 12px;
  color: var(--cw-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section__heading {
  max-width: 780px;
  margin-bottom: 40px;
}

.section h2 {
  margin: 0;
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 30%, var(--cw-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section__lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(241, 245, 249, 0.7);
  font-size: 16px;
  line-height: 1.6;
}

/* Platform Download Grid */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.store-card {
  min-height: 130px;
  padding: 22px;
  border: 1px solid var(--cw-line);
  border-radius: 12px;
  background: var(--cw-panel);
  backdrop-filter: blur(12px);
  color: var(--cw-white);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.store-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.store-card__icon {
  width: 36px;
  height: 36px;
  color: var(--cw-white);
  flex-shrink: 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.store-card__labels strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.store-card__labels span {
  display: block;
  margin-top: 3px;
  color: var(--cw-muted);
  font-size: 11px;
  font-weight: 600;
}

.store-card__badge {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  color: var(--cw-muted);
  margin-top: 14px;
  letter-spacing: 0.5px;
}

.store-card--featured {
  border-color: rgba(255, 122, 0, 0.25);
  background: rgba(255, 122, 0, 0.03);
}

.store-card--featured .store-card__badge--glow {
  background: rgba(255, 122, 0, 0.1);
  border-color: rgba(255, 122, 0, 0.3);
  color: #ffaa55;
  box-shadow: 0 0 10px rgba(255, 122, 0, 0.15);
}

.store-card:hover {
  transform: translateY(-5px);
  background: rgba(20, 26, 32, 0.7);
  border-color: rgba(255, 122, 0, 0.35);
  box-shadow: 0 20px 40px rgba(255, 122, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.store-card:hover .store-card__icon {
  color: var(--cw-orange);
  transform: scale(1.05);
}

.store-card--featured:hover {
  border-color: var(--cw-orange);
  box-shadow: 0 20px 40px rgba(255, 122, 0, 0.25);
}

.store-card--featured:hover .store-card__icon {
  color: #ffa033;
}

.store-status {
  min-height: 24px;
  margin: 20px 0 0;
  color: var(--cw-orange);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Factions Section */
.factions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.faction {
  min-height: 320px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--cw-line);
  border-radius: 16px;
  background: #080a0c;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.faction::before {
  position: absolute;
  inset: 0;
  content: "";
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 1;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.faction:hover::before {
  transform: scale(1.06);
}

.faction::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.1) 0%, rgba(5, 6, 8, 0.9) 85%);
  z-index: 2;
}

.faction--black::before {
  background-image: url("/assets/cw-black-panel.jpg");
}

.faction--white::before {
  background-image: url("/assets/cw-white-panel.jpg");
}

.faction--black {
  border-color: var(--cw-fire-border);
  box-shadow: 0 20px 50px var(--cw-fire-glow);
}

.faction--white {
  border-color: var(--cw-ice-border);
  box-shadow: 0 20px 50px var(--cw-ice-glow);
}

.faction__content {
  position: relative;
  z-index: 3;
  padding: 32px;
}

.faction__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.faction__badge .faction-icon {
  width: 28px;
  height: 28px;
  margin-left: -4px;
}

.faction--black .faction__badge {
  background: rgba(255, 79, 0, 0.12);
  border: 1px solid rgba(255, 79, 0, 0.3);
  color: #ff9033;
}

.faction--white .faction__badge {
  background: rgba(168, 203, 222, 0.1);
  border: 1px solid rgba(168, 203, 222, 0.25);
  color: #b9d1e2;
}

.faction h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.faction--black h3 {
  color: var(--cw-white);
  text-shadow: 0 0 10px rgba(255, 122, 0, 0.25);
}

.faction--white h3 {
  color: var(--cw-white);
  text-shadow: 0 0 10px rgba(168, 203, 222, 0.25);
}

.faction p {
  max-width: 480px;
  margin: 14px 0 0;
  color: rgba(241, 245, 249, 0.75);
  font-size: 15px;
  line-height: 1.6;
}

/* Scoreboard */
.scoreboard {
  margin-top: 40px;
}

.scoreboard__tabs {
  display: inline-flex;
  background: rgba(8, 10, 13, 0.6);
  border: 1px solid var(--cw-line);
  border-radius: 50px;
  padding: 4px;
  margin-bottom: 24px;
}

.tab-button {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 10px 22px;
  background: transparent;
  border: none;
  border-radius: 50px;
  color: var(--cw-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.5px;
}

.tab-button .faction-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  opacity: 0.6;
}

.tab-button:hover {
  color: var(--cw-white);
}

.tab-button.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cw-white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.tab-button.active.tab-button--black {
  background: rgba(255, 79, 0, 0.15);
  color: #ff9b00;
  border: 1px solid rgba(255, 79, 0, 0.2);
  box-shadow: 0 4px 15px rgba(255, 79, 0, 0.15);
}

.tab-button.active.tab-button--white {
  background: rgba(168, 203, 222, 0.15);
  color: #a8c3d8;
  border: 1px solid rgba(168, 203, 222, 0.2);
  box-shadow: 0 4px 15px rgba(168, 203, 222, 0.15);
}

.scoreboard__stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1672 / 941;
  border: 1px solid var(--cw-line);
  background: #050607;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  border-radius: 20px;
}

.scoreboard__stage::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: url("/assets/cw-scoreboard.jpg?v=20260706-frame2");
  background-size: 100% 100%;
  background-position: center;
  opacity: 0.92;
  z-index: 1;
}

.scoreboard__stage::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 18% 48%, rgba(255, 122, 0, 0.14), transparent 22%),
    radial-gradient(circle at 86% 48%, rgba(168, 203, 222, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.06) 0%, rgba(5, 6, 7, 0.24) 86%);
  z-index: 2;
}

.leaderboard-board {
  position: absolute;
  z-index: 3;
  left: 18.6%;
  right: 18.6%;
  top: 29%;
  bottom: 23%;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  gap: clamp(4px, 0.42vw, 9px);
  color: var(--cw-white);
  font-variant-numeric: tabular-nums;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: clamp(26px, 2.4vw, 42px) minmax(0, 2.3fr) 1.3fr 1.2fr 1.4fr;
  align-items: center;
  column-gap: clamp(7px, 0.9vw, 16px);
}

.leaderboard-row {
  position: relative;
  min-width: 0;
  padding: 0 clamp(10px, 1vw, 18px);
  isolation: isolate;
}

.leaderboard-row::before {
  position: absolute;
  inset: 5% 0;
  content: "";
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(3, 4, 5, 0.36);
  clip-path: polygon(2.2% 0, 100% 0, 97.6% 50%, 100% 100%, 2.2% 100%, 0 50%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.leaderboard-row--black::before {
  border-color: rgba(255, 122, 0, 0.18);
  background:
    linear-gradient(90deg, rgba(255, 91, 0, 0.16), rgba(255, 91, 0, 0.025) 38%, rgba(255, 255, 255, 0.025)),
    rgba(3, 4, 5, 0.42);
}

.leaderboard-row--white::before {
  border-color: rgba(168, 203, 222, 0.18);
  background:
    linear-gradient(90deg, rgba(168, 203, 222, 0.15), rgba(168, 203, 222, 0.025) 38%, rgba(255, 255, 255, 0.025)),
    rgba(3, 4, 5, 0.42);
}

.leaderboard-row > span:nth-child(4) {
  text-align: center;
}

.leaderboard-row {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.leaderboard-row:hover {
  transform: translateX(3px);
}

.leaderboard-row--black:hover::before {
  border-color: rgba(255, 122, 0, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 0 18px rgba(255, 79, 0, 0.16);
}

.leaderboard-row--white:hover::before {
  border-color: rgba(168, 203, 222, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 0 18px rgba(168, 203, 222, 0.14);
}

.leaderboard-row.hidden {
  opacity: 0.16;
  filter: grayscale(0.8);
}

.leaderboard-row.hidden .clan-name-cell,
.leaderboard-row.hidden .rank,
.leaderboard-row.hidden .income,
.leaderboard-row.hidden .status-badge,
.leaderboard-row.hidden .leaderboard-track {
  visibility: hidden;
}

.income {
  color: rgba(246, 248, 248, 0.95);
  font-weight: 800;
  text-align: center;
}

.leaderboard-track {
  position: relative;
  display: block;
  width: min(100%, 126px);
  height: clamp(6px, 0.62vw, 9px);
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.leaderboard-track span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  transition: width 0.8s ease;
}

.leaderboard-track--black span {
  background: linear-gradient(90deg, var(--cw-orange-strong), var(--cw-orange));
  box-shadow: 0 0 10px rgba(255, 79, 0, 0.45);
}

.leaderboard-track--white span {
  background: linear-gradient(90deg, #6c8a9f, var(--cw-ice));
  box-shadow: 0 0 10px rgba(168, 203, 222, 0.36);
}

.leaderboard {
  position: absolute;
  z-index: 3;
  left: 15.2%;
  top: 36.8%;
  width: 70.6%;
  height: 43.2%;
  margin: 0;
  border-collapse: collapse;
  color: var(--cw-white);
  font-variant-numeric: tabular-nums;
  table-layout: fixed;
}

.leaderboard caption {
  position: absolute;
  left: 0;
  right: 0;
  top: -15%;
  margin: 0;
  color: rgba(241, 245, 249, 0.8);
  font-size: clamp(9px, 0.8vw, 12px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.leaderboard th,
.leaderboard td {
  padding: 0 clamp(5px, 0.78vw, 13px);
  height: auto;
  border-bottom: 0;
  box-sizing: border-box;
  white-space: nowrap;
}

.leaderboard th {
  color: var(--cw-muted);
  font-size: clamp(8px, 0.68vw, 10px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.leaderboard thead {
  height: 18%;
}

.leaderboard tbody {
  height: 82%;
}

.leaderboard tbody tr {
  height: 20%;
}

.leaderboard th:nth-child(1),
.leaderboard td:nth-child(1) {
  width: 7%;
  text-align: center;
}

.leaderboard th:nth-child(2),
.leaderboard td:nth-child(2) {
  width: 36%;
  text-align: left;
}

.leaderboard th:nth-child(3),
.leaderboard td:nth-child(3) {
  width: 21%;
  text-align: center;
}

.leaderboard th:nth-child(4),
.leaderboard td:nth-child(4) {
  width: 18%;
  text-align: center;
}

.leaderboard th:nth-child(5),
.leaderboard td:nth-child(5) {
  width: 18%;
  text-align: left;
}

.leaderboard td {
  font-size: clamp(10px, 0.98vw, 15px);
  font-weight: 500;
}

.leaderboard tbody tr {
  transition: background-color 0.25s ease, opacity 0.3s ease;
}

.leaderboard tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.leaderboard tbody tr.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.rank {
  width: 48px;
  color: var(--cw-orange);
  font-weight: 900;
  font-size: clamp(11px, 1.05vw, 16px);
}

.clan-name-cell {
  display: flex;
  align-items: center;
  gap: clamp(5px, 0.75vw, 12px);
}

.clan-name-cell strong {
  font-weight: 700;
}

.faction-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.faction-icon--black {
  filter: drop-shadow(0 0 7px rgba(255, 122, 0, 0.65));
}

.faction-icon--white {
  filter: drop-shadow(0 0 7px rgba(168, 203, 222, 0.7));
}

.clan-name-cell .faction-icon {
  width: clamp(18px, 1.4vw, 24px);
  height: clamp(18px, 1.4vw, 24px);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(7px, 0.62vw, 9px);
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px clamp(6px, 0.78vw, 10px);
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.status-badge--preparing {
  color: #ffb800;
  background: rgba(255, 184, 0, 0.08);
  border: 1px solid rgba(255, 184, 0, 0.25);
  position: relative;
}

.status-badge--preparing::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffb800;
  animation: pulse-dot 1.5s infinite alternate;
}

@keyframes pulse-dot {
  0% { opacity: 0.35; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.35); }
}

.bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
  width: min(100%, 112px);
}

.bar span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: 99px;
  transition: width 0.8s ease;
}

.bar--black span {
  background: linear-gradient(90deg, var(--cw-orange-strong), var(--cw-orange));
  box-shadow: 0 0 8px rgba(255, 79, 0, 0.4);
}

.bar--white span {
  background: linear-gradient(90deg, #6c8a9f, var(--cw-ice));
  box-shadow: 0 0 8px rgba(168, 203, 222, 0.3);
}

/* Rules Section */
.rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 40px;
  background: var(--cw-line);
  border: 1px solid var(--cw-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.rule {
  min-height: 170px;
  padding: 30px;
  background: rgba(8, 10, 13, 0.85);
  backdrop-filter: blur(12px);
}

.rule strong {
  display: block;
  color: var(--cw-orange);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rule h3 {
  margin: 16px 0 0;
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--cw-white);
}

.rule p {
  margin: 14px 0 0;
  color: var(--cw-muted);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

/* Fog / Smoke - fixed to viewport, parallax on scroll, GPU friendly */
.fog-container {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -40px;
  height: clamp(200px, 34vh, 360px);
  overflow: hidden;
  z-index: 40;
  pointer-events: none;
  mix-blend-mode: screen;
}

.fog-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.fog-layer::before,
.fog-layer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -50%;
  width: 200%;
  background-repeat: repeat-x;
  transform: translate3d(0, 0, 0);
}

/* Distant haze: slow, wide, dim */
.fog-layer--back::before {
  background-image:
    radial-gradient(ellipse 42% 70% at 22% 108%, rgba(214, 228, 238, 0.11), transparent 70%),
    radial-gradient(ellipse 50% 62% at 66% 112%, rgba(255, 178, 122, 0.06), transparent 72%),
    radial-gradient(ellipse 38% 58% at 90% 106%, rgba(214, 228, 238, 0.09), transparent 70%);
  background-size: 62% 100%;
  filter: blur(30px);
  animation: fog-drift 70s linear infinite;
}

.fog-layer--back::after {
  background-image:
    radial-gradient(ellipse 46% 64% at 40% 110%, rgba(200, 216, 228, 0.08), transparent 72%);
  background-size: 84% 100%;
  filter: blur(38px);
  animation: fog-drift-reverse 95s linear infinite;
}

/* Mid fog: uses the camera-fog texture for real cloud detail */
.fog-layer--mid::before {
  background-image: url("/assets/cw-camera-fog.jpg?v=20260706-camera-fog");
  background-size: auto 130%;
  background-position: left bottom;
  opacity: 0.34;
  filter: saturate(0.6) brightness(0.9) blur(1px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 55%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 55%, #000 100%);
  animation: fog-drift 48s linear infinite;
}

.fog-layer--mid::after {
  background-image:
    radial-gradient(ellipse 34% 74% at 30% 112%, rgba(226, 236, 244, 0.12), transparent 68%),
    radial-gradient(ellipse 40% 66% at 74% 108%, rgba(226, 236, 244, 0.1), transparent 70%);
  background-size: 56% 100%;
  filter: blur(22px);
  animation: fog-drift-reverse 58s linear infinite;
}

/* Front wisps: faster, brighter, thinner */
.fog-layer--front::before {
  background-image:
    radial-gradient(ellipse 24% 52% at 16% 110%, rgba(240, 246, 250, 0.13), transparent 64%),
    radial-gradient(ellipse 20% 44% at 52% 106%, rgba(255, 196, 150, 0.07), transparent 62%),
    radial-gradient(ellipse 26% 50% at 84% 112%, rgba(240, 246, 250, 0.11), transparent 66%);
  background-size: 48% 100%;
  filter: blur(14px);
  animation: fog-drift 32s linear infinite;
}

.fog-layer--front::after {
  background-image:
    radial-gradient(ellipse 18% 40% at 38% 108%, rgba(232, 240, 246, 0.09), transparent 60%),
    radial-gradient(ellipse 22% 46% at 70% 110%, rgba(232, 240, 246, 0.08), transparent 64%);
  background-size: 40% 100%;
  filter: blur(10px);
  animation: fog-drift-reverse 24s linear infinite;
}

@keyframes fog-drift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-25%, 0, 0); }
}

@keyframes fog-drift-reverse {
  0% { transform: translate3d(-25%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Season theme audio player */
.audio-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  border: 1px solid rgba(255, 122, 0, 0.22);
  border-radius: 99px;
  background: rgba(8, 10, 13, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.audio-player.playing {
  border-color: rgba(255, 122, 0, 0.45);
  box-shadow: 0 12px 32px rgba(255, 79, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.audio-player__toggle {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 122, 0, 0.4);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cw-orange), var(--cw-orange-strong));
  color: var(--cw-black);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 79, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
}

.audio-player__toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(255, 79, 0, 0.45);
}

.audio-player__icon {
  width: 18px;
  height: 18px;
}

.audio-player__icon--pause {
  display: none;
}

.audio-player.playing .audio-player__icon--play {
  display: none;
}

.audio-player.playing .audio-player__icon--pause {
  display: block;
}

.audio-player__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.audio-player__label {
  color: var(--cw-orange);
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.audio-player__title {
  color: rgba(241, 245, 249, 0.85);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.audio-player__eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  margin-left: 2px;
}

.audio-player__eq i {
  width: 3px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cw-orange), var(--cw-orange-strong));
  box-shadow: 0 0 6px rgba(255, 122, 0, 0.4);
  transition: height 0.3s ease;
}

.audio-player.playing .audio-player__eq i {
  animation: eq-bounce 0.9s ease-in-out infinite alternate;
}

.audio-player.playing .audio-player__eq i:nth-child(1) { animation-duration: 0.72s; }
.audio-player.playing .audio-player__eq i:nth-child(2) { animation-duration: 0.94s; animation-delay: -0.3s; }
.audio-player.playing .audio-player__eq i:nth-child(3) { animation-duration: 0.6s; animation-delay: -0.15s; }
.audio-player.playing .audio-player__eq i:nth-child(4) { animation-duration: 1.05s; animation-delay: -0.5s; }
.audio-player.playing .audio-player__eq i:nth-child(5) { animation-duration: 0.8s; animation-delay: -0.22s; }

@keyframes eq-bounce {
  0% { height: 4px; }
  100% { height: 16px; }
}

.audio-player__volume {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.audio-player__volume-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: rgba(241, 245, 249, 0.55);
}

.audio-player.playing .audio-player__volume-icon {
  color: var(--cw-orange);
}

.audio-player__volume-slider {
  --volume-level: 5%;
  -webkit-appearance: none;
  appearance: none;
  width: 72px;
  height: 4px;
  margin: 0;
  border-radius: 99px;
  background:
    linear-gradient(
      90deg,
      var(--cw-orange) 0%,
      var(--cw-orange) var(--volume-level),
      rgba(255, 255, 255, 0.12) var(--volume-level),
      rgba(255, 255, 255, 0.12) 100%
    );
  outline: none;
  cursor: pointer;
}

.audio-player__volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 122, 0, 0.6);
  border-radius: 50%;
  background: linear-gradient(135deg, #ffa033, var(--cw-orange-strong));
  box-shadow: 0 0 8px rgba(255, 122, 0, 0.5);
  transition: transform 0.2s ease;
}

.audio-player__volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.audio-player__volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 122, 0, 0.6);
  border-radius: 50%;
  background: linear-gradient(135deg, #ffa033, var(--cw-orange-strong));
  box-shadow: 0 0 8px rgba(255, 122, 0, 0.5);
}

@media (max-width: 620px) {
  .audio-player {
    right: 14px;
    bottom: 14px;
    gap: 10px;
    padding: 6px 12px 6px 6px;
  }

  .audio-player__title {
    display: none;
  }

  .audio-player__volume {
    padding-left: 8px;
  }

  .audio-player__volume-slider {
    width: 52px;
  }
}

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 36px 0 48px;
  color: rgba(241, 245, 249, 0.5);
  border-top: 1px solid var(--cw-line);
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 5;
}

.footer a {
  color: rgba(241, 245, 249, 0.7);
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--cw-white);
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 12px;
  font-weight: 500;
}

.footer__legal a {
  color: rgba(241, 245, 249, 0.45);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(241, 245, 249, 0.2);
}

.footer__legal a:hover {
  color: var(--cw-orange);
  text-decoration-color: var(--cw-orange);
}

/* Responsive queries */
@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar__nav {
    display: none;
  }

  .countdown {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  .countdown__cell {
    min-height: auto;
    padding: 20px;
  }

  .download-grid,
  .factions,
  .rules {
    grid-template-columns: 1fr;
  }

  /* Below 900px the frame's inner screen is too small - switch to a plain panel */
  .scoreboard__stage {
    aspect-ratio: auto;
    border-radius: 16px;
  }

  .scoreboard__stage::before {
    background-size: cover;
    background-position: center;
    opacity: 0.3;
  }

  .scoreboard__stage::after {
    background: linear-gradient(180deg, rgba(5, 6, 7, 0.55), rgba(5, 6, 7, 0.8));
  }

  .leaderboard-board {
    position: relative;
    z-index: 3;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 16px;
  }

  .leaderboard-row {
    min-height: 54px;
    grid-template-columns: 34px minmax(0, 1fr) auto 92px minmax(70px, 110px);
    column-gap: 10px;
    padding: 0 14px;
  }
}

@media (max-width: 620px) {
  .topbar,
  .hero__content,
  .section,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: 720px;
  }

  .site-bg::before {
    background-position: center top;
  }

  .hero__content {
    align-items: start;
    padding-top: 70px;
  }

  .hero__logo-img {
    width: min(100%, 420px);
  }

  .hero__subtitle {
    max-width: 100%;
    font-size: 15px;
    overflow-wrap: break-word;
  }

  .button {
    width: 100%;
  }

  .countdown-band {
    margin-top: -30px;
  }

  .countdown {
    width: min(100% - 28px, 1040px);
  }

  .countdown__digits {
    gap: 6px;
  }

  .timebox strong {
    font-size: 30px;
  }

  .section {
    padding: 64px 0;
  }

  .leaderboard-board {
    padding: 16px 12px;
    gap: 8px;
  }

  .leaderboard-row {
    min-height: 50px;
    grid-template-columns: 26px minmax(0, 1fr) auto 72px;
    column-gap: 8px;
    padding: 0 10px;
  }

  .leaderboard-row > span:nth-child(4) {
    display: none;
  }

  .leaderboard-row span {
    min-width: 0;
  }

  .clan-name-cell strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
  }

  .income {
    font-size: 12px;
  }

  .leaderboard-track {
    width: 64px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  
  .fog-layer::before,
  .fog-layer::after {
    animation: none !important;
  }

  .audio-player.playing .audio-player__eq i {
    animation: none !important;
  }
}
