:root {
  --color-primary: #e2041b;
  --color-secondary: #003087;
  --color-accent: #ffd700;
  --color-bg: #f5f5f5;
  --color-text: #1f1f1f;
  --color-deep: #0a1e5a;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
  color: var(--color-text);
}

header {
  position: sticky;
  top: 0;
  background: #ffffffee;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ddd;
  z-index: 5;
}

.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand {
  font-weight: 700;
  color: var(--color-secondary);
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

nav a {
  color: var(--color-text);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
}

nav a.active {
  background: var(--color-secondary);
  color: #fff;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-3);
}

.card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}

.home-hero {
  background:
    radial-gradient(circle at 15% 20%, #ffffff 0%, #ffffffd9 35%, #ffffff00 65%),
    linear-gradient(130deg, #fef2f3 0%, #f7f9ff 48%, #eef3ff 100%);
  border-color: #dbe4ff;
}

.official-logo {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.logo-container {
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #dce4f7;
}

.logo-container--compact {
  padding: 0.35rem 0.55rem;
}

.logo-img {
  display: block;
  height: 58px;
  width: auto;
  object-fit: contain;
}

.logo-container--compact .logo-img {
  height: 44px;
}

.event-meta {
  margin: 0 0 1rem 0;
  color: #4e5770;
  font-size: 0.95rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 0.85rem;
}

.countdown-box {
  text-align: center;
  padding: 0.9rem 0.6rem;
  border-radius: 12px;
  border: 1px solid #dbe4ff;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.countdown-box strong {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--color-deep);
}

.countdown-box small {
  display: block;
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: #4e5770;
}

.team-parade {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #dbe4ff;
  background: #f7f9ff;
  padding: 0.75rem 0;
}

.team-parade__track {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: max-content;
  animation: team-marquee 90s linear infinite;
  padding-right: 0.7rem;
}

.team-parade:hover .team-parade__track {
  animation-play-state: paused;
}

.team-badge {
  display: grid;
  grid-template-columns: 34px auto;
  align-items: center;
  gap: 0.45rem 0.55rem;
  min-width: 160px;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #d7deef;
  background: #ffffff;
}

.team-badge__crest {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d6ddee;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #f6f8ff;
}

.team-badge__crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-badge__crest.is-fallback::before {
  content: "WC";
  font-weight: 700;
  font-size: 0.62rem;
  color: #526080;
}

.team-badge__code {
  font-weight: 700;
  color: var(--color-deep);
  font-size: 0.9rem;
  line-height: 1.1;
}

.team-badge__name {
  grid-column: 2;
  color: #616c86;
  font-size: 0.74rem;
  line-height: 1;
}

.muted,
small.muted {
  color: #666;
}

@keyframes team-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.signature-footer {
  margin-top: 3rem;
  padding: 2rem 1rem;
  background: linear-gradient(0deg, #f2f4fb, #fafbff);
  border-top: 1px solid #dce4f7;
  text-align: center;
  position: relative;
}

.footer-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4b6cff, #39c1de, #ff9f2d);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #d8deef;
  background: #fff;
  color: #4c5876;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(21, 34, 75, 0.12);
}

.signature-footer .copyright {
  font-weight: 600;
  color: #3f495f;
}

.donation-text {
  margin-top: 0.4rem;
  color: #5f6982;
}

.donation-text a {
  color: #214eb3;
  font-weight: 600;
  text-decoration: none;
}

.donation-text a:hover {
  text-decoration: underline;
}
