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

html, body {
  height: 100%;
  background: #060304;
  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, 90, 20, 0.18), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 60, 0, 0.30), transparent 50%),
    linear-gradient(180deg, #160f14 0%, #0a0608 60%, #1a0a05 100%);
  border: 1px solid #3a2418;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), inset 0 0 60px rgba(0,0,0,0.5);
  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,0,0,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: "SF Mono", "Menlo", "Courier New", monospace;
  font-size: 40px; font-weight: 900; line-height: 1; margin-top: 2px;
  transition: transform 0.15s ease;
}
.team.red .label, .team.red .score {
  color: #ff5566; text-shadow: 0 0 14px rgba(255, 85, 102, 0.65), 0 0 2px rgba(255, 85, 102, 0.9);
}
.team.blue .label, .team.blue .score {
  color: #5aa8ff; text-shadow: 0 0 14px rgba(90, 168, 255, 0.65), 0 0 2px rgba(90, 168, 255, 0.9);
}
.score.bump { transform: scale(1.35); }

.meta { text-align: center; }
.meta .title {
  font-size: 14px; font-weight: 800; letter-spacing: 5px;
  color: #ffb347; text-shadow: 0 0 16px rgba(255, 120, 20, 0.7);
}
.meta .subtitle { font-size: 11px; letter-spacing: 3px; opacity: 0.55; margin-top: 4px; }

/* Climbing jackpot counter — large, obvious, always growing */
#jackpot-bar {
  position: absolute;
  top: 88px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  padding: 5px 22px;
  background: linear-gradient(180deg, rgba(60,30,0,0.65), rgba(30,12,0,0.35));
  border: 1px solid rgba(255, 180, 60, 0.45);
  border-radius: 10px;
  z-index: 11;
  pointer-events: none;
  box-shadow: 0 0 24px rgba(255, 120, 20, 0.35);
}
.jp-label { font-size: 9px; font-weight: 800; letter-spacing: 3px; color: #ffcf6b; opacity: 0.9; }
.jp-value {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 30px; font-weight: 900; line-height: 1.05;
  color: #ffd23d;
  text-shadow: 0 0 18px rgba(255, 200, 40, 0.9), 0 0 3px rgba(255, 230, 120, 1);
  animation: jp-pulse 1.6s ease-in-out infinite;
}
@keyframes jp-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); text-shadow: 0 0 26px rgba(255, 210, 60, 1), 0 0 4px rgba(255, 240, 140, 1); }
}

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

/* Surge — violent screen shake + magma flare */
@keyframes surge-quake {
  0%   { transform: translate(0,0); }
  15%  { transform: translate(-5px, 3px); }
  30%  { transform: translate(6px, -4px); }
  45%  { transform: translate(-5px, 2px); }
  60%  { transform: translate(5px, -3px); }
  75%  { transform: translate(-4px, 3px); }
  90%  { transform: translate(4px, -2px); }
  100% { transform: translate(0,0); }
}
#stage.surging {
  animation: surge-quake 0.18s linear infinite;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7),
              inset 0 0 90px rgba(255, 60, 0, 0.55),
              0 0 50px rgba(255, 80, 0, 0.8);
}
