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

html, body {
  height: 100%;
  background: #02050a;
  color: #d7f7ee;
  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 50% 0%, rgba(40, 110, 100, 0.30), transparent 65%),
    radial-gradient(ellipse at 70% 85%, rgba(180, 120, 40, 0.18), transparent 55%),
    linear-gradient(180deg, #03100d 0%, #020608 100%);
  border: 1px solid #0c2620;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.75), inset 0 0 80px rgba(0,40,30,0.45);
  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,10,8,0.6), 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: "Courier New", "Menlo", monospace;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  margin-top: 2px;
  transition: transform 0.15s ease;
}

/* Teal team (was red) */
.team.red .label, .team.red .score {
  color: #4ff3d2;
  text-shadow: 0 0 14px rgba(79, 243, 210, 0.75), 0 0 2px rgba(180, 255, 240, 0.9);
}

/* Amber team (was blue) */
.team.blue .label, .team.blue .score {
  color: #ffc874;
  text-shadow: 0 0 14px rgba(255, 200, 116, 0.70), 0 0 2px rgba(255, 230, 180, 0.9);
}

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

.meta {
  text-align: center;
}

.meta .title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 5px;
  opacity: 0.85;
  color: #a8f0cc;
  text-shadow: 0 0 10px rgba(80, 220, 160, 0.55);
}

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

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

.ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 6px;
  text-align: center;
  font-family: "Courier New", "Menlo", monospace;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.55;
  color: #8cd6b0;
  pointer-events: none;
}

@keyframes sporeshake {
  0%   { transform: translate(0, 0) rotate(0); }
  15%  { transform: translate(-2px, 1px) rotate(0.12deg); }
  30%  { transform: translate(2px, -2px) rotate(-0.14deg); }
  45%  { transform: translate(-2px, 2px) rotate(0.10deg); }
  60%  { transform: translate(2px, -1px) rotate(-0.12deg); }
  75%  { transform: translate(-1px, -1px) rotate(0.08deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

#stage.shaking {
  animation: sporeshake 0.42s linear infinite;
  box-shadow: 0 30px 80px rgba(0,0,0,0.75),
              inset 0 0 80px rgba(0,40,30,0.45),
              0 0 50px rgba(120, 255, 200, 0.55);
}
