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

html, body {
  height: 100%;
  background: #02030a;
  color: #d7e5ff;
  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 at 80% 12%, rgba(80, 140, 220, 0.18), transparent 55%),
    radial-gradient(ellipse at 20% 88%, rgba(40, 70, 140, 0.16), transparent 60%),
    linear-gradient(180deg, #050714 0%, #01020a 100%);
  border: 1px solid #1a2540;
  border-radius: 12px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 0 80px rgba(0,0,0,0.55),
    inset 0 0 22px rgba(100, 170, 255, 0.08);
  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(2,4,12,0.85), rgba(2,4,12,0));
  border-bottom: 1px solid rgba(120, 180, 255, 0.14);
  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;
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
}

.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 team becomes "ALPHA" — warmer amber/red caution light */
.team.red .label, .team.red .score {
  color: #ff8a3d;
  text-shadow: 0 0 14px rgba(255, 138, 61, 0.7), 0 0 2px rgba(255, 138, 61, 0.95);
}

/* Blue team becomes "BETA" — crisp station-cyan accent */
.team.blue .label, .team.blue .score {
  color: #4fd0ff;
  text-shadow: 0 0 14px rgba(79, 208, 255, 0.7), 0 0 2px rgba(79, 208, 255, 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.9;
  color: #c8e1ff;
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  text-shadow: 0 0 8px rgba(79, 208, 255, 0.45);
}

.meta .subtitle {
  font-size: 10px;
  letter-spacing: 3px;
  opacity: 0.55;
  margin-top: 4px;
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  color: #8fb6e8;
}

#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;
  opacity: 0.5;
  color: #7fb4e8;
  pointer-events: none;
}

/* Subtle hull-flex tremor when a gravity transition occurs */
@keyframes quake {
  0%   { transform: translate(0, 0) rotate(0); }
  20%  { transform: translate(-2px, 1px) rotate(0.12deg); }
  40%  { transform: translate(2px, -1px) rotate(-0.12deg); }
  60%  { transform: translate(-1px, 2px) rotate(0.10deg); }
  80%  { transform: translate(2px, -1px) rotate(-0.08deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

#stage.shaking {
  animation: quake 0.4s linear infinite;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 0 80px rgba(0,0,0,0.55),
    inset 0 0 30px rgba(255, 90, 50, 0.35),
    0 0 40px rgba(255, 90, 50, 0.45);
}
