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

html, body {
  height: 100%;
  background: #1a0c08;
  color: #f5ecd9;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Georgia", "Times New Roman", serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#stage {
  position: relative;
  width: 540px;
  height: 960px;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(212, 178, 112, 0.18), transparent 65%),
    linear-gradient(180deg, #3a1a10 0%, #1c0a06 100%);
  border: 2px solid #6e2a18;
  border-radius: 6px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    inset 0 0 80px rgba(0, 0, 0, 0.55),
    inset 0 0 0 4px rgba(212, 178, 112, 0.08);
  overflow: hidden;
}

/* Shimenawa rope shimmer that runs around the border during yokozuna bonus */
#stage.yokozuna-glow {
  animation: yokozuna-shimmer 1.4s ease-in-out infinite;
}

@keyframes yokozuna-shimmer {
  0%, 100% {
    box-shadow:
      0 30px 80px rgba(0,0,0,0.7),
      inset 0 0 80px rgba(0,0,0,0.55),
      inset 0 0 0 4px rgba(245, 236, 217, 0.35),
      0 0 36px rgba(212, 50, 36, 0.55);
  }
  50% {
    box-shadow:
      0 30px 80px rgba(0,0,0,0.7),
      inset 0 0 80px rgba(0,0,0,0.55),
      inset 0 0 0 4px rgba(245, 236, 217, 0.85),
      0 0 60px rgba(255, 220, 130, 0.75);
  }
}

#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: 6px;
  opacity: 0.95;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
}

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

/* EAST = brick-red (rikishi side), WEST = ink-indigo */
.team.red .label, .team.red .score {
  color: #d43224;
  text-shadow: 0 0 14px rgba(212, 50, 36, 0.55), 0 0 2px rgba(255, 200, 180, 0.85);
}

.team.blue .label, .team.blue .score {
  color: #d9c98c;
  text-shadow: 0 0 14px rgba(217, 201, 140, 0.5), 0 0 2px rgba(255, 240, 200, 0.85);
}

.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: #f0d9a5;
}

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

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

.ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 6px;
  text-align: center;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.55;
  pointer-events: none;
  color: #e8d6a8;
}

/* Earthquake retained as a "tachiai charge" tremor */
@keyframes quake {
  0%   { transform: translate(0, 0) rotate(0); }
  10%  { transform: translate(-3px, 2px) rotate(0.25deg); }
  20%  { transform: translate(4px, -3px) rotate(-0.3deg); }
  30%  { transform: translate(-4px, 1px) rotate(0.2deg); }
  40%  { transform: translate(3px, -2px) rotate(-0.25deg); }
  50%  { transform: translate(-2px, 3px) rotate(0.3deg); }
  60%  { transform: translate(3px, -1px) rotate(-0.2deg); }
  70%  { transform: translate(-3px, -2px) rotate(0.15deg); }
  80%  { transform: translate(4px, 2px) rotate(-0.15deg); }
  90%  { transform: translate(-2px, -1px) rotate(0.2deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

#stage.shaking {
  animation: quake 0.32s linear infinite;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7),
              inset 0 0 80px rgba(0,0,0,0.55),
              0 0 40px rgba(212, 50, 36, 0.7);
}
