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

html, body {
  height: 100%;
  background: #06080f;
  color: #f3e2bf;
  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:
    radial-gradient(ellipse at 18% 18%, rgba(255, 175, 70, 0.18), transparent 38%),
    radial-gradient(ellipse at 82% 22%, rgba(255, 175, 70, 0.18), transparent 38%),
    radial-gradient(ellipse at 50% 100%, rgba(20, 30, 55, 0.7), transparent 60%),
    linear-gradient(180deg, #232a3a 0%, #11151f 55%, #1a1f2e 100%);
  border: 1px solid #5c3a1e;
  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 30px;
  background: linear-gradient(180deg, rgba(20,12,6,0.85), rgba(20,12,6,0.0));
  z-index: 10;
  pointer-events: none;
}

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

.team .label {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
  opacity: 0.9;
  text-transform: uppercase;
}

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

.team.red .label, .team.red .score {
  color: #f4a935;
  text-shadow: 0 0 14px rgba(255, 175, 70, 0.65), 0 0 2px rgba(255, 200, 90, 0.9);
}

.team.blue .label, .team.blue .score {
  color: #e8c879;
  text-shadow: 0 0 14px rgba(232, 200, 121, 0.55), 0 0 2px rgba(232, 200, 121, 0.9);
}

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

.meta {
  text-align: center;
}

.meta .title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 5px;
  color: #f4d99a;
  text-shadow: 0 1px 0 #3a2410, 0 0 12px rgba(255, 175, 70, 0.45);
}

.meta .subtitle {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-style: italic;
  letter-spacing: 3px;
  opacity: 0.7;
  color: #d4a96a;
  margin-top: 4px;
}

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

.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;
  color: #d4a96a;
  opacity: 0.55;
  pointer-events: none;
}

/* Lightning flash overlay (full-stage strobe on rogue wave slam) */
#stage.lightning::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(200, 220, 255, 0.6);
  pointer-events: none;
  animation: lightning-flash 350ms ease-out;
  z-index: 6;
}

@keyframes lightning-flash {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  30%  { opacity: 0.2; }
  45%  { opacity: 0.9; }
  100% { opacity: 0; }
}
