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

html, body {
  height: 100%;
  background: #1a0608;
  color: #fff5e6;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "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% 20%, rgba(255, 230, 180, 0.18), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(120, 20, 30, 0.5), transparent 60%),
    linear-gradient(180deg, #3a0a14 0%, #1d0408 100%);
  border: 2px solid #5c1820;
  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 20px rgba(255, 200, 130, 0.05);
  overflow: hidden;
}

/* Hanging paper lantern row above the scoreboard */
#lantern-row {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 18px;
  display: flex;
  justify-content: space-around;
  padding: 0 30px;
  z-index: 9;
  pointer-events: none;
}
.lantern {
  width: 12px;
  height: 14px;
  background: radial-gradient(ellipse at 50% 35%, #ffe2a1 0%, #ff9c4d 60%, #c1521a 100%);
  border-radius: 50% 50% 45% 45%;
  box-shadow: 0 0 12px rgba(255, 180, 90, 0.65), inset 0 -2px 3px rgba(120, 30, 10, 0.6);
  animation: lanternSway 5s ease-in-out infinite;
}
.lantern:nth-child(2) { animation-delay: -0.7s; animation-duration: 4.3s; }
.lantern:nth-child(3) { animation-delay: -1.5s; animation-duration: 5.8s; }
.lantern:nth-child(4) { animation-delay: -2.2s; animation-duration: 4.7s; }
.lantern:nth-child(5) { animation-delay: -3.1s; animation-duration: 5.2s; }

@keyframes lanternSway {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate( 3deg) translateY(1px); }
}

#scoreboard {
  position: absolute;
  top: 22px; left: 0; right: 0;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background:
    linear-gradient(180deg, rgba(20,0,4,0.7) 0%, rgba(20,0,4,0.0) 100%);
  z-index: 10;
  pointer-events: none;
}

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

.team .label {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  opacity: 0.95;
}

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

.team.red .label, .team.red .score {
  color: #ffd9a8;
  text-shadow:
    0 0 14px rgba(255, 180, 90, 0.85),
    0 0 3px rgba(255, 220, 160, 1);
}

.team.blue .label, .team.blue .score {
  color: #ffe8c2;
  text-shadow:
    0 0 14px rgba(255, 210, 130, 0.85),
    0 0 3px rgba(255, 235, 180, 1);
}

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

.meta {
  text-align: center;
}

.meta .title {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #fff1d4;
  text-shadow: 0 0 12px rgba(255, 180, 90, 0.7);
}

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

#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", serif;
  font-size: 12px;
  letter-spacing: 3px;
  opacity: 0.6;
  color: #ffe2a1;
  pointer-events: none;
  text-shadow: 0 0 6px rgba(255, 150, 60, 0.5);
}

/* "ITADAKIMASU!" banner for VIP plate scores */
#itadakimasu-banner {
  position: absolute;
  top: 116px;
  left: 50%;
  transform: translate(-50%, -20px) scale(0.6);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #fff1d4;
  text-shadow:
    0 0 20px rgba(255, 200, 90, 1),
    0 0 4px rgba(255, 240, 200, 1),
    2px 2px 0 #8a1a22;
  opacity: 0;
  z-index: 12;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.25s, transform 0.25s;
}

#itadakimasu-banner.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  animation: bannerPulse 0.85s ease-in-out;
}

@keyframes bannerPulse {
  0%   { transform: translate(-50%, 0) scale(0.6) rotate(-3deg); }
  35%  { transform: translate(-50%, 0) scale(1.15) rotate(2deg); }
  60%  { transform: translate(-50%, 0) scale(0.95) rotate(-1deg); }
  100% { transform: translate(-50%, 0) scale(1) rotate(0deg); }
}

/* Steam-shake (was earthquake) — gentler wobble fitting the kitchen theme */
@keyframes quake {
  0%   { transform: translate(0, 0) rotate(0); }
  15%  { transform: translate(-2px, 1px) rotate(0.15deg); }
  30%  { transform: translate(3px, -2px) rotate(-0.2deg); }
  45%  { transform: translate(-3px, 2px) rotate(0.18deg); }
  60%  { transform: translate(2px, -1px) rotate(-0.15deg); }
  75%  { transform: translate(-2px, 2px) rotate(0.2deg); }
  90%  { transform: translate(2px, -1px) rotate(-0.18deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

#stage.shaking {
  animation: quake 0.4s 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 50px rgba(255, 130, 50, 0.7);
}
