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

html, body {
  height: 100%;
  background: #1f1a14;
  color: #2b241b;
  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;
  /* Warm cream/sand background with a subtle radial vignette from the upper edge. */
  background:
    radial-gradient(ellipse at 50% 0%, rgba(225, 200, 158, 0.55), transparent 65%),
    linear-gradient(180deg, #e9d6ad 0%, #d8c193 100%);
  border: 1px solid #b59870;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(60, 40, 20, 0.55), inset 0 0 80px rgba(120, 90, 50, 0.18);
  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(50, 35, 18, 0.18), rgba(50, 35, 18, 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: "Hiragino Mincho ProN", "Yu Mincho", "Times New Roman", serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  margin-top: 2px;
  transition: transform 0.15s ease;
}

/* Re-skin RED → ink (sumi black) and BLUE → vermilion brush, fitting karesansui aesthetic. */
.team.red .label, .team.red .score {
  color: #2a1f15;
  text-shadow: 0 0 10px rgba(60, 40, 20, 0.35), 0 0 1px rgba(60, 40, 20, 0.55);
}

.team.blue .label, .team.blue .score {
  color: #b53a1f;
  text-shadow: 0 0 10px rgba(181, 58, 31, 0.45), 0 0 1px rgba(181, 58, 31, 0.7);
}

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

.meta {
  text-align: center;
}

.meta .title {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Times New Roman", serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 6px;
  opacity: 0.85;
  color: #3b2c1d;
}

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

#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", "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.55;
  color: #3b2c1d;
  pointer-events: none;
}

/* Earthquake repurposed as "monk's rake gust" — gentler sway, dust-coloured glow. */
@keyframes quake {
  0%   { transform: translate(0, 0) rotate(0); }
  20%  { transform: translate(-2px, 1px) rotate(0.12deg); }
  40%  { transform: translate(2px, -1px) rotate(-0.14deg); }
  60%  { transform: translate(-1px, 2px) rotate(0.1deg); }
  80%  { transform: translate(2px, -1px) rotate(-0.08deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

#stage.shaking {
  animation: quake 0.55s linear infinite;
  box-shadow: 0 30px 80px rgba(60, 40, 20, 0.55),
              inset 0 0 80px rgba(120, 90, 50, 0.25),
              0 0 40px rgba(200, 160, 90, 0.6);
}
