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

html, body {
  height: 100%;
  background: #1a0c08;
  color: #f5e9d4;
  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 ochre watercolor wash over deep lacquer red */
  background:
    radial-gradient(ellipse at 28% 12%, rgba(214, 150, 70, 0.30), transparent 55%),
    radial-gradient(ellipse at 78% 70%, rgba(180, 60, 40, 0.28), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(120, 30, 22, 0.45), transparent 65%),
    linear-gradient(180deg, #5c1c12 0%, #3a120c 55%, #240a06 100%);
  border: 2px solid #8a3a22;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), inset 0 0 70px rgba(20,4,2,0.6);
  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(20,4,2,0.6), rgba(20,4,2,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: 3px;
  opacity: 0.9;
}

.team .score {
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  margin-top: 2px;
  transition: transform 0.15s ease;
}

.team.red .label, .team.red .score {
  color: #ff7a5c;
  text-shadow: 0 0 14px rgba(220, 70, 40, 0.7), 0 0 2px rgba(255, 120, 80, 0.9);
}

.team.blue .label, .team.blue .score {
  color: #7ec7d8;
  text-shadow: 0 0 14px rgba(90, 160, 180, 0.7), 0 0 2px rgba(160, 220, 230, 0.9);
}

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

.meta { text-align: center; }

.meta .title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #f3d9a8;
  text-shadow: 0 0 12px rgba(214, 150, 70, 0.5);
}

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

/* ===== Active-flavor HUD (top-left, glowing bowl indicator) ===== */
#flavor-hud {
  position: absolute;
  top: 90px;
  left: 14px;
  z-index: 11;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flavor-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,240,210,0.95), rgba(244,210,150,0.92));
  border: 2px solid #b8431f;
  box-shadow: 0 0 18px var(--flavor-glow, rgba(214,150,70,0.85)),
              inset 0 0 8px rgba(255,255,255,0.5);
  transition: box-shadow 0.4s ease;
}

.flavor-kanji {
  font-size: 22px;
  font-weight: 900;
  color: #7a1d10;
  line-height: 1;
}

.flavor-name {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #b8431f;
}

.flavor-target {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f3d9a8;
  padding-left: 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.flavor-target b {
  color: #ffd97a;
  font-size: 12px;
}

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

.ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 6px;
  text-align: center;
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.45;
  color: #f3d9a8;
  pointer-events: none;
}

/* Earthquake repurposed as a "kitchen rush" boil-over shake */
@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 70px rgba(20,4,2,0.6),
              0 0 44px rgba(255, 140, 40, 0.65);
}
