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

html, body {
  height: 100%;
  background: #04050c;
  color: #fff;
  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% 42%, rgba(70, 60, 160, 0.22), transparent 62%),
    linear-gradient(180deg, #0b0a22 0%, #050410 60%, #03030a 100%);
  border: 1px solid #1c1a3a;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.65), 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 26px;
  background: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0));
  z-index: 10;
  pointer-events: none;
}

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

.team .label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 4px;
  opacity: 0.8;
}

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

.team.alive .label, .team.alive .score {
  color: #8affd4;
  text-shadow: 0 0 16px rgba(138, 255, 212, 0.6), 0 0 2px rgba(138, 255, 212, 0.9);
}

.team.pulse .label, .team.pulse .score {
  color: #ff7ac2;
  text-shadow: 0 0 16px rgba(255, 122, 194, 0.6), 0 0 2px rgba(255, 122, 194, 0.9);
}

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

.meta { text-align: center; }

.meta .title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 6px;
  opacity: 0.9;
  background: linear-gradient(90deg, #8affd4, #b58aff, #ff7ac2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.meta .subtitle {
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.5;
  margin-top: 5px;
}

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

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

@keyframes quake {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-4px, 3px); }
  40%  { transform: translate(5px, -3px); }
  60%  { transform: translate(-4px, 2px); }
  80%  { transform: translate(4px, -2px); }
  100% { transform: translate(0, 0); }
}

#stage.shaking {
  animation: quake 0.3s linear infinite;
  box-shadow: 0 30px 80px rgba(0,0,0,0.65),
              inset 0 0 80px rgba(0,0,0,0.55),
              0 0 50px rgba(181, 138, 255, 0.55);
}
