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

html, body {
  height: 100%;
  background: #03100a;
  color: #b8ffd0;
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#stage {
  position: relative;
  width: 540px;
  height: 960px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(40, 180, 100, 0.18), transparent 65%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(180, 140, 50, 0.05) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(180, 140, 50, 0.05) 38px 39px),
    linear-gradient(180deg, #0e2e1c 0%, #051a10 100%);
  border: 1px solid #1d4a2c;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7),
              inset 0 0 80px rgba(0,30,15,0.7),
              inset 0 0 0 2px rgba(60, 130, 80, 0.15);
  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(0,15,8,0.78), rgba(0,15,8,0));
  z-index: 10;
  pointer-events: none;
}

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

.team .label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 5px;
  opacity: 0.95;
}

.team .score {
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  margin-top: 2px;
  transition: transform 0.15s ease;
}

/* "red" = V+ (orange copper) "blue" = V- (cyan trace) */
.team.red .label, .team.red .score {
  color: #ffb05e;
  text-shadow: 0 0 14px rgba(255, 176, 94, 0.7), 0 0 2px rgba(255, 200, 120, 0.9);
}

.team.blue .label, .team.blue .score {
  color: #6df2ff;
  text-shadow: 0 0 14px rgba(109, 242, 255, 0.7), 0 0 2px rgba(170, 250, 255, 0.9);
}

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

.meta {
  text-align: center;
}

.meta .title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 6px;
  color: #88ff9c;
  text-shadow: 0 0 8px rgba(110, 255, 130, 0.5);
}

.meta .subtitle {
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(180, 255, 200, 0.55);
  margin-top: 4px;
}

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

.ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 6px;
  text-align: center;
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(120, 255, 160, 0.55);
  pointer-events: none;
}

/* "Circuit Overload" surge effect replaces the earthquake shake */
@keyframes surge {
  0%   { transform: translate(0, 0); filter: brightness(1) hue-rotate(0deg); }
  20%  { transform: translate(-2px, 1px); filter: brightness(1.3) hue-rotate(-12deg); }
  40%  { transform: translate(3px, -2px); filter: brightness(1.5) hue-rotate(20deg); }
  60%  { transform: translate(-2px, 2px); filter: brightness(1.25) hue-rotate(-8deg); }
  80%  { transform: translate(2px, -1px); filter: brightness(1.4) hue-rotate(15deg); }
  100% { transform: translate(0, 0); filter: brightness(1) hue-rotate(0deg); }
}

#stage.shaking {
  animation: surge 0.28s linear infinite;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7),
              inset 0 0 80px rgba(0,30,15,0.7),
              0 0 50px rgba(120, 200, 255, 0.7),
              inset 0 0 0 2px rgba(150, 220, 255, 0.6);
}
