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

html, body {
  height: 100%;
  background: #05060d;
  color: #f3e6c8;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#stage {
  position: relative;
  width: 540px;
  height: 960px;
  background:
    radial-gradient(ellipse 360px 220px at 50% 18%, rgba(255, 190, 90, 0.32), transparent 70%),
    radial-gradient(ellipse 300px 180px at 22% 70%, rgba(255, 150, 60, 0.18), transparent 70%),
    radial-gradient(ellipse 320px 200px at 78% 78%, rgba(255, 170, 70, 0.18), transparent 70%),
    linear-gradient(180deg, #15172e 0%, #0a0b1a 55%, #07080f 100%);
  border: 1px solid #3b2d0d;
  border-radius: 12px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 0 80px rgba(0,0,0,0.5),
    inset 0 0 0 4px rgba(180, 130, 50, 0.15);
  overflow: hidden;
}

/* Subtle smoke haze layer */
#stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 200px 80px at 30% 40%, rgba(255, 230, 180, 0.04), transparent 70%),
    radial-gradient(ellipse 240px 90px at 70% 55%, rgba(255, 220, 170, 0.05), transparent 70%),
    radial-gradient(ellipse 180px 70px at 50% 80%, rgba(255, 230, 180, 0.03), transparent 70%);
  pointer-events: none;
  z-index: 1;
  animation: smoke-drift 24s ease-in-out infinite alternate;
}

@keyframes smoke-drift {
  0%   { transform: translate(0, 0); opacity: 0.6; }
  50%  { transform: translate(8px, -6px); opacity: 0.9; }
  100% { transform: translate(-6px, 8px); opacity: 0.7; }
}

#scoreboard {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background:
    linear-gradient(180deg, rgba(20, 10, 0, 0.7), rgba(0,0,0,0)),
    repeating-linear-gradient(
      135deg,
      rgba(180, 130, 50, 0.08) 0px,
      rgba(180, 130, 50, 0.08) 6px,
      transparent 6px,
      transparent 12px
    );
  border-bottom: 1px solid rgba(180, 130, 50, 0.2);
  z-index: 10;
  pointer-events: none;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
}

.team .label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 5px;
  opacity: 0.85;
  font-family: "Georgia", "Times New Roman", serif;
  font-style: italic;
}

.team .score {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  margin-top: 4px;
  transition: transform 0.15s ease;
}

.team.red .label, .team.red .score {
  color: #ffb347;
  text-shadow:
    0 0 14px rgba(255, 179, 71, 0.7),
    0 0 2px rgba(255, 179, 71, 0.95);
}

.team.blue .label, .team.blue .score {
  color: #ffd27a;
  text-shadow:
    0 0 14px rgba(255, 210, 122, 0.65),
    0 0 2px rgba(255, 210, 122, 0.95);
}

.score.bump { transform: scale(1.35); }

.meta {
  text-align: center;
}

.meta .title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 5px;
  opacity: 0.92;
  font-family: "Georgia", "Times New Roman", serif;
  color: #f3d58a;
  text-shadow: 0 0 10px rgba(243, 213, 138, 0.5);
}

.meta .subtitle {
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.55;
  margin-top: 4px;
  font-style: italic;
  color: #e6c889;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 6px;
  text-align: center;
  font-family: "Georgia", "Times New Roman", serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.55;
  color: #f3d58a;
  pointer-events: none;
  z-index: 5;
}

/* "Jazz Explosion" pulse: a golden swing-shimmy instead of an earthquake */
@keyframes swing {
  0%   { transform: translate(0, 0) rotate(0); }
  12%  { transform: translate(-2px, 1px) rotate(0.15deg); }
  25%  { transform: translate(2px, -1px) rotate(-0.18deg); }
  37%  { transform: translate(-2px, -1px) rotate(0.12deg); }
  50%  { transform: translate(2px, 1px) rotate(-0.15deg); }
  62%  { transform: translate(-1px, 2px) rotate(0.18deg); }
  75%  { transform: translate(2px, -2px) rotate(-0.12deg); }
  87%  { transform: translate(-1px, 1px) rotate(0.1deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

#stage.shaking {
  animation: swing 0.42s ease-in-out infinite;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 0 80px rgba(0,0,0,0.5),
    inset 0 0 0 4px rgba(255, 200, 80, 0.4),
    0 0 60px rgba(255, 195, 80, 0.55);
}
