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

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.video-background video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Optional dark overlay for text readability */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    transparent 30%,
    transparent 70%,
    rgba(0, 0, 0, 0.2) 100%
  );
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ground shadow - elliptical shadow beneath the jar */
.logo-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 60%;
  height: 3vh;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 50%;
  filter: blur(20px);
  z-index: 0;
}

.content .logo {
  height: 66.67vh;
  width: auto;
  display: block;
  /* Downward cast shadow onto the ground */
  filter: drop-shadow(0 2vh 1.5vh rgba(0, 0, 0, 0.65));
}

/* ===== Scoreboard (old retro label, sun + water damaged) ===== */
.scoreboard {
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  position: relative;
  max-width: 90vw;
  width: min(42rem, 90vw);
  /* Mottled base: yellowed paper + sun-bleached patches + water stains */
  background:
    radial-gradient(ellipse 45% 35% at 85% 15%, rgba(255, 252, 248, 0.9), transparent 70%),
    radial-gradient(ellipse 40% 50% at 15% 85%, rgba(195, 175, 150, 0.22), transparent 65%),
    radial-gradient(ellipse 35% 30% at 75% 75%, rgba(180, 160, 135, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 25% 25%, rgba(220, 205, 180, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(245, 238, 225, 0.5), transparent 70%),
    linear-gradient(180deg, rgba(210, 195, 170, 0.12) 0%, transparent 30%, transparent 70%, rgba(170, 150, 125, 0.12) 100%),
    #e8dfcc;
  border: 1px solid rgba(107, 83, 68, 0.35);
  border-radius: 20px;
  box-shadow:
    inset 0 0 80px rgba(140, 120, 100, 0.06),
    inset 2px 2px 0 rgba(255, 255, 255, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.12);
  padding: 1.5rem 2rem 1.75rem;
  overflow: hidden;
}

/* Paper grain + age texture */
.scoreboard::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Soft water-damaged edges (lighter) */
.scoreboard::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 60px 2px rgba(120, 100, 80, 0.08),
    inset 0 0 120px rgba(130, 110, 90, 0.04);
  pointer-events: none;
}

.scoreboard-title {
  position: relative;
  z-index: 1;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 1.75rem);
  letter-spacing: 0.1em;
  color: #4a3d2e;
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(107, 83, 68, 0.4);
  text-transform: uppercase;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.3), 0 1px 0 rgba(0, 0, 0, 0.06);
}

.scoreboard-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.scoreboard-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.5rem 0.65rem;
  background: rgba(107, 83, 68, 0.06);
  border-radius: 10px;
  border-left: 3px solid rgba(107, 83, 68, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.scoreboard-team {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  letter-spacing: 0.06em;
  color: #453829;
  flex-shrink: 0;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.25), 0 1px 0 rgba(0, 0, 0, 0.05);
}

.scoreboard-players {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  font-weight: 400;
  color: #554738;
  text-align: right;
  letter-spacing: 0.03em;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.2), 0 1px 0 rgba(0, 0, 0, 0.04);
}

@media (max-width: 480px) {
  .scoreboard {
    padding: 1.25rem 1.5rem 1.5rem;
  }
  .scoreboard-row {
    flex-direction: column;
    gap: 0.1rem;
    align-items: flex-start;
  }
  .scoreboard-players {
    text-align: left;
  }
}
