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

html, body {
  height: 100%;
  background: #120a06;
  color: #f3e2c4;
  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;
  /* dark mahogany-brown with warm amber-rose candlelight rising from the bucket row */
  background:
    radial-gradient(ellipse at 50% 96%, rgba(255, 170, 120, 0.32), rgba(120, 60, 40, 0.10) 42%, transparent 66%),
    radial-gradient(ellipse at 50% 4%, rgba(90, 50, 30, 0.35), transparent 55%),
    linear-gradient(180deg, #2a160d 0%, #1a0d07 55%, #130a05 100%);
  border: 1px solid #3a2114;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), inset 0 0 80px rgba(0,0,0,0.55);
  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(20,8,4,0.72), rgba(0,0,0,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: 4px;
  opacity: 0.85;
}

.team .score {
  font-family: "Baskerville", "Hoefler Text", "Times New Roman", serif;
  font-style: italic;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  margin-top: 2px;
  transition: transform 0.15s ease;
}

.team.red .label, .team.red .score {
  color: #e6607a;
  text-shadow: 0 0 14px rgba(200, 60, 80, 0.6), 0 0 2px rgba(255, 120, 140, 0.9);
}

.team.blue .label, .team.blue .score {
  color: #e8b45a;
  text-shadow: 0 0 14px rgba(220, 160, 70, 0.6), 0 0 2px rgba(255, 210, 130, 0.9);
}

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

.meta {
  text-align: center;
}

.meta .title {
  font-family: "Baskerville", "Hoefler Text", "Times New Roman", serif;
  font-style: italic;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #f0d9a8;
  opacity: 0.92;
}

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

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

.ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 6px;
  text-align: center;
  font-family: "Baskerville", "Hoefler Text", "Times New Roman", serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 1.5px;
  opacity: 0.5;
  color: #e7c890;
  pointer-events: none;
}

/* candle-flicker screen glow while a curtain call is live */
@keyframes flicker {
  0%   { box-shadow: 0 30px 80px rgba(0,0,0,0.7), inset 0 0 80px rgba(0,0,0,0.55), 0 0 46px rgba(160, 30, 30, 0.5); }
  50%  { box-shadow: 0 30px 80px rgba(0,0,0,0.7), inset 0 0 80px rgba(0,0,0,0.55), 0 0 62px rgba(190, 40, 40, 0.7); }
  100% { box-shadow: 0 30px 80px rgba(0,0,0,0.7), inset 0 0 80px rgba(0,0,0,0.55), 0 0 46px rgba(160, 30, 30, 0.5); }
}

#stage.curtain-live {
  animation: flicker 1.6s ease-in-out infinite;
}
