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

html, body {
  height: 100%;
  background: #0a0510;
  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% 0%, rgba(255, 140, 60, 0.25), transparent 60%),
    linear-gradient(180deg, #4a0e3f 0%, #1a0420 100%);
  border: 1px solid #6a1e58;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 0 60px rgba(0,0,0,0.55);
  overflow: hidden;
  animation: jewelCycle 24s linear infinite;
}

@keyframes jewelCycle {
  0%   { background: radial-gradient(ellipse at 50% 0%, rgba(255, 60, 180, 0.30), transparent 60%),
                     linear-gradient(180deg, #4a0e3f 0%, #1a0420 100%); }
  33%  { background: radial-gradient(ellipse at 50% 0%, rgba(255, 170, 40, 0.30), transparent 60%),
                     linear-gradient(180deg, #5a2410 0%, #21100a 100%); }
  66%  { background: radial-gradient(ellipse at 50% 0%, rgba(80, 110, 255, 0.32), transparent 60%),
                     linear-gradient(180deg, #102060 0%, #060e2a 100%); }
  100% { background: radial-gradient(ellipse at 50% 0%, rgba(255, 60, 180, 0.30), transparent 60%),
                     linear-gradient(180deg, #4a0e3f 0%, #1a0420 100%); }
}

#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,0,0,0.55), 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.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;
}

.team.applause .label, .team.applause .score {
  color: #ffcf4a;
  text-shadow: 0 0 14px rgba(255, 207, 74, 0.75), 0 0 2px rgba(255, 207, 74, 0.95);
}

.team.total .label, .team.total .score {
  color: #ff5e95;
  text-shadow: 0 0 14px rgba(255, 94, 149, 0.7), 0 0 2px rgba(255, 94, 149, 0.95);
}

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

.meta {
  text-align: center;
}

.meta .title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 6px;
  opacity: 0.95;
  color: #ffd86a;
  text-shadow: 0 0 10px rgba(255, 216, 106, 0.65);
}

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

#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: #ffd86a;
  pointer-events: none;
}

@keyframes ovationFlash {
  0%   { box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 0 90px rgba(255, 90, 180, 0.55), 0 0 60px rgba(255, 200, 60, 0.7); }
  50%  { box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 0 100px rgba(80, 130, 255, 0.55), 0 0 80px rgba(255, 60, 160, 0.85); }
  100% { box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 0 90px rgba(255, 200, 60, 0.55), 0 0 60px rgba(80, 130, 255, 0.7); }
}

#stage.ovation {
  animation: jewelCycle 24s linear infinite, ovationFlash 0.6s linear infinite;
}
