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

html, body {
  height: 100%;
  background: #f4ede0;
  color: #1a1a1a;
  font-family: "Georgia", "Times New Roman", serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#stage {
  position: relative;
  width: 540px;
  height: 960px;
  background: #fdf8ec;
  border: 1px solid #2a1f12;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), inset 0 0 90px rgba(40, 25, 10, 0.18);
  overflow: hidden;
}

#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(255,250,235,0.95), rgba(255,250,235,0));
  z-index: 10;
  pointer-events: none;
}

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

.team .label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 5px;
  color: #1a1a1a;
  opacity: 0.85;
  font-family: "Georgia", serif;
  font-style: italic;
}

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

.team.red .label, .team.red .score {
  color: #1a1a1a;
}

.team.blue .label, .team.blue .score {
  color: #1a1a1a;
}

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

.meta {
  text-align: center;
}

.meta .title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 7px;
  color: #1a1a1a;
  opacity: 0.88;
  font-family: "Georgia", serif;
}

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

#game {
  display: block;
  width: 100%;
  height: 100%;
}

.ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 6px;
  text-align: center;
  font-family: "Georgia", serif;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.5;
  pointer-events: none;
  color: #1a1a1a;
  font-style: italic;
}

@keyframes flicker {
  0%   { filter: brightness(1); }
  30%  { filter: brightness(1); }
  35%  { filter: brightness(0.35); }
  45%  { filter: brightness(0.35); }
  50%  { filter: brightness(1); }
  100% { filter: brightness(1); }
}

#stage.flicker {
  animation: flicker 0.12s linear;
}

@keyframes climax-pulse {
  0%   { box-shadow: 0 30px 80px rgba(0,0,0,0.45), inset 0 0 90px rgba(40, 25, 10, 0.18); }
  50%  { box-shadow: 0 30px 80px rgba(0,0,0,0.45), inset 0 0 120px rgba(255, 195, 70, 0.55), 0 0 60px rgba(220, 50, 70, 0.55); }
  100% { box-shadow: 0 30px 80px rgba(0,0,0,0.45), inset 0 0 90px rgba(40, 25, 10, 0.18); }
}

#stage.climax {
  animation: climax-pulse 0.9s ease-in-out infinite;
}
