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

html, body {
  height: 100%;
  background: #0a0612;
  color: #fff;
  font-family: "Cinzel", "Trajan Pro", "Times New Roman", Georgia, serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#stage {
  position: relative;
  width: 540px;
  height: 960px;
  /* Stained-glass sanctuary: deep violet vault, ruby rose-window, sapphire side aisles */
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 70, 110, 0.32), transparent 55%),
    radial-gradient(ellipse at 12% 35%, rgba(60, 130, 220, 0.22), transparent 50%),
    radial-gradient(ellipse at 88% 35%, rgba(220, 80, 60, 0.20), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(180, 130, 40, 0.28), transparent 60%),
    linear-gradient(180deg, #2a0e3e 0%, #160630 45%, #0a0418 100%);
  border: 3px solid #6b4d1a;
  border-radius: 16px 16px 60px 60px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 0 80px rgba(0,0,0,0.5),
    inset 0 0 30px rgba(255, 200, 80, 0.08);
  overflow: hidden;
}

/* Stained-glass leading: a faint cross-hatch grid overlay */
#stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 10, 30, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 10, 30, 0.18) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

#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;
  border-bottom: 1px solid rgba(220, 170, 60, 0.2);
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
}

.team .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 5px;
  opacity: 0.95;
  font-variant: small-caps;
}

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

/* Rose (ruby stained glass) */
.team.red .label, .team.red .score {
  color: #ff4d72;
  text-shadow:
    0 0 16px rgba(255, 60, 90, 0.85),
    0 0 3px rgba(255, 200, 200, 0.95);
}

/* Sapphire stained glass */
.team.blue .label, .team.blue .score {
  color: #6cc0ff;
  text-shadow:
    0 0 16px rgba(80, 140, 255, 0.85),
    0 0 3px rgba(200, 220, 255, 0.95);
}

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

.meta {
  text-align: center;
}

.meta .title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 7px;
  opacity: 0.95;
  color: #f5d782;
  text-shadow: 0 0 10px rgba(220, 170, 60, 0.6);
  font-variant: small-caps;
}

.meta .subtitle {
  font-size: 11px;
  letter-spacing: 4px;
  opacity: 0.55;
  margin-top: 4px;
  color: #d8b066;
  font-variant: small-caps;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 6px;
  text-align: center;
  font-family: "Cinzel", "Trajan Pro", serif;
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 10;
  color: #e8c87a;
  font-variant: small-caps;
}

/* Re-purposed "earthquake" → "ORGAN PEAL": deep bell-like reverberation,
   slower swaying motion. Different cadence than the base earthquake shake. */
@keyframes peal {
  0%   { transform: translate(0, 0) rotate(0); }
  15%  { transform: translate(-2px, 1px) rotate(0.18deg); }
  30%  { transform: translate(3px, -2px) rotate(-0.22deg); }
  45%  { transform: translate(-3px, 2px) rotate(0.20deg); }
  60%  { transform: translate(2px, -1px) rotate(-0.18deg); }
  75%  { transform: translate(-2px, -2px) rotate(0.14deg); }
  90%  { transform: translate(3px, 1px) rotate(-0.12deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

#stage.shaking {
  animation: peal 0.55s ease-in-out infinite;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 0 80px rgba(0,0,0,0.5),
    0 0 50px rgba(255, 180, 60, 0.55),
    inset 0 0 40px rgba(255, 180, 60, 0.18);
}
