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

html, body {
  height: 100%;
  background: #1c0e07;
  color: #fff1d6;
  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% 12%, rgba(255, 180, 80, 0.28), transparent 65%),
    radial-gradient(ellipse at 50% 92%, rgba(80, 30, 10, 0.55), transparent 70%),
    linear-gradient(180deg, #c0682a 0%, #8a3a14 38%, #4a1d0a 100%);
  border: 1px solid #4a2010;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.65), inset 0 0 80px rgba(40, 10, 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 24px;
  background: linear-gradient(180deg, rgba(30, 10, 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.9;
  font-family: "Georgia", "Times New Roman", serif;
}

.team .score {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  margin-top: 2px;
  transition: transform 0.15s ease;
}

/* Scarlet team — burnt sienna */
.team.red .label, .team.red .score {
  color: #ff7038;
  text-shadow: 0 0 14px rgba(255, 112, 56, 0.7), 0 0 2px rgba(180, 60, 20, 0.9);
}

/* Indigo team — deep dye accent */
.team.blue .label, .team.blue .score {
  color: #d6c074;
  text-shadow: 0 0 14px rgba(214, 192, 116, 0.7), 0 0 2px rgba(120, 90, 30, 0.9);
}

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

.meta {
  text-align: center;
}

.meta .title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 5px;
  opacity: 0.92;
  color: #ffe2a8;
  font-family: "Georgia", "Times New Roman", serif;
}

.meta .subtitle {
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.6;
  margin-top: 4px;
  color: #ffd699;
  font-family: "Georgia", "Times New Roman", serif;
}

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

.ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 6px;
  text-align: center;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.55;
  pointer-events: none;
  color: #ffd9a0;
}

/* Sandstorm — long slow shudder rather than sharp earthquake jitter. */
@keyframes sandstorm {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2px, 1px); }
  40%  { transform: translate(2px, -1px); }
  60%  { transform: translate(-1px, 2px); }
  80%  { transform: translate(1px, -1px); }
  100% { transform: translate(0, 0); }
}

#stage.shaking {
  animation: sandstorm 1.2s ease-in-out infinite;
  box-shadow: 0 30px 80px rgba(0,0,0,0.65),
              inset 0 0 100px rgba(160, 80, 20, 0.85),
              0 0 40px rgba(200, 120, 40, 0.55);
}
