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

html, body {
  height: 100%;
  background: #02050d;
  color: #eaf6ff;
  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;
  /* Deep navy-to-arctic-teal gradient sky */
  background:
    radial-gradient(ellipse at 50% 110%, rgba(20, 70, 90, 0.55), transparent 65%),
    radial-gradient(ellipse at 50% 0%, rgba(60, 200, 180, 0.18), transparent 55%),
    linear-gradient(180deg, #050b1c 0%, #07203a 35%, #094864 70%, #0b6d7a 100%);
  border: 1px solid #0e3a52;
  border-radius: 12px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 0 80px rgba(0, 30, 50, 0.6),
    inset 0 0 30px rgba(80, 255, 200, 0.08);
  overflow: hidden;
}

/* Frosted-glass scoreboard panel */
#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(8, 25, 45, 0.7), rgba(8, 25, 45, 0.15));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(120, 220, 200, 0.12);
  z-index: 10;
  pointer-events: none;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(10, 30, 50, 0.45);
  border: 1px solid rgba(120, 220, 200, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

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

.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 = neon violet aurora */
.team.red .label, .team.red .score {
  color: #d28bff;
  text-shadow: 0 0 14px rgba(210, 139, 255, 0.75), 0 0 2px rgba(210, 139, 255, 0.95);
}

/* BLUE = neon green aurora */
.team.blue .label, .team.blue .score {
  color: #6dffb8;
  text-shadow: 0 0 14px rgba(109, 255, 184, 0.75), 0 0 2px rgba(109, 255, 184, 0.95);
}

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

.meta {
  text-align: center;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(10, 30, 50, 0.4);
  border: 1px solid rgba(120, 220, 200, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.meta .title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 6px;
  opacity: 0.95;
  color: #b9f2e6;
  text-shadow: 0 0 8px rgba(109, 255, 184, 0.4);
}

.meta .subtitle {
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.65;
  margin-top: 4px;
  color: #9fd8e6;
}

#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.55;
  color: #b9f2e6;
  pointer-events: none;
  text-shadow: 0 0 6px rgba(109, 255, 184, 0.35);
}

/* "Quake" is repurposed as an aurora-peak surge — a soft electromagnetic shimmer
   rather than a violent shake. Keeps the existing hook the engine uses. */
@keyframes quake {
  0%   { transform: translate(0, 0); filter: hue-rotate(0deg) brightness(1); }
  25%  { transform: translate(-1px, 0.5px); filter: hue-rotate(-12deg) brightness(1.08); }
  50%  { transform: translate(1px, -0.5px); filter: hue-rotate(15deg) brightness(1.12); }
  75%  { transform: translate(-0.5px, 1px); filter: hue-rotate(-8deg) brightness(1.06); }
  100% { transform: translate(0, 0); filter: hue-rotate(0deg) brightness(1); }
}

#stage.shaking {
  animation: quake 0.9s ease-in-out infinite;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 0 80px rgba(0, 30, 50, 0.6),
    inset 0 0 80px rgba(120, 255, 180, 0.25),
    0 0 60px rgba(180, 110, 255, 0.45);
}
