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

html, body {
  height: 100%;
  background: #0a1208;
  color: #f3e5c0;
  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% 8%, rgba(255, 180, 80, 0.18), transparent 55%),
    radial-gradient(ellipse at 12% 100%, rgba(40, 70, 30, 0.55), transparent 60%),
    radial-gradient(ellipse at 88% 100%, rgba(40, 70, 30, 0.55), transparent 60%),
    linear-gradient(180deg, #2a3a1a 0%, #1a2812 35%, #0e1908 100%);
  border: 2px solid #6a4f2a;
  border-radius: 12px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.65),
    inset 0 0 80px rgba(0, 0, 0, 0.55),
    inset 0 0 160px rgba(80, 45, 18, 0.12);
  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.65), 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;
}

/* Red team -> Jaguar (deep amber / sun-fire) */
.team.red .label, .team.red .score {
  color: #ff9b3d;
  text-shadow: 0 0 14px rgba(255, 155, 61, 0.65), 0 0 2px rgba(255, 200, 100, 0.95);
}

/* Blue team -> Quetzal (jade / emerald) */
.team.blue .label, .team.blue .score {
  color: #5ee0a0;
  text-shadow: 0 0 14px rgba(94, 224, 160, 0.6), 0 0 2px rgba(180, 255, 220, 0.9);
}

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

.meta {
  text-align: center;
}

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

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

#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;
  color: #d8c08a;
  opacity: 0.55;
  pointer-events: none;
}

/* Stone-rumble shake — slower & heavier than the base earthquake. */
@keyframes rumble {
  0%   { transform: translate(0, 0) rotate(0); }
  12%  { transform: translate(-2px, 3px) rotate(0.15deg); }
  24%  { transform: translate(3px, -2px) rotate(-0.18deg); }
  36%  { transform: translate(-3px, 1px) rotate(0.12deg); }
  48%  { transform: translate(2px, -3px) rotate(-0.15deg); }
  60%  { transform: translate(-1px, 3px) rotate(0.18deg); }
  72%  { transform: translate(3px, -1px) rotate(-0.12deg); }
  84%  { transform: translate(-2px, -2px) rotate(0.1deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

#stage.rumbling {
  animation: rumble 0.42s 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 60px rgba(180, 100, 30, 0.55);
}
