.oratory-counter {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 216, 144, .34);
  border-radius: 14px;
  background: rgba(15, 25, 45, .68);
  color: #ffe2a1;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.count-divider { color: #8793a7; }

.oratory-hud {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  width: min(390px, calc(100% - 32px));
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, .19);
  border-radius: 15px;
  background: rgba(17, 29, 43, .82);
  backdrop-filter: blur(7px);
}

.child-name {
  margin: 0;
  color: #ffe2a1;
  font: 700 .88rem var(--font-sans, sans-serif);
}

.child-dialogue {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, .86);
  font: .8rem/1.5 var(--font-sans, sans-serif);
}

.help-button {
  margin-top: 9px;
  border: 1px solid rgba(255, 221, 143, .6);
  border-radius: 999px;
  background: #e5bf68;
  padding: 8px 14px;
  color: #25313b;
  font: 700 .78rem var(--font-sans, sans-serif);
  cursor: pointer;
}

.help-button[hidden], .interact-touch[hidden], .choir-banner[hidden] { display: none; }
.help-button:hover { background: #f1d68e; }

.interact-touch {
  width: 82px !important;
  height: 82px !important;
  border-radius: 50% !important;
  background: rgba(224, 188, 99, .94) !important;
  color: #27313a !important;
  font-size: .68rem;
  font-weight: 800;
  pointer-events: auto !important;
  touch-action: none;
}

.choir-banner {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  display: flex;
  width: min(320px, calc(100% - 32px));
  flex-direction: column;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  padding: 10px 14px;
  border: 1px solid rgba(255, 223, 144, .45);
  border-radius: 15px;
  background: rgba(27, 38, 45, .72);
  color: #fff3cf;
  text-align: center;
  backdrop-filter: blur(5px);
}

.game-frame.is-singing .oratory-hud { display: none; }
.choir-banner strong { font: 700 .95rem var(--font-sans, sans-serif); }
.choir-song { color: #ffe2a1; font: 700 .82rem var(--font-sans, sans-serif); }
.choir-banner > span:last-child { color: rgba(255, 255, 255, .8); font: .78rem var(--font-sans, sans-serif); }
.choir-notes { color: #f3d16f; font-size: 1.2rem; letter-spacing: .3em; animation: choir-float 1.8s ease-in-out infinite; }

.music-note-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.music-note-field span {
  position: absolute;
  bottom: -20px;
  color: #ffe28a;
  font-size: 1.5rem;
  opacity: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  animation: music-note-rise 3.2s ease-in infinite;
}

.music-note-field span:nth-child(1) { left: 12%; animation-delay: 0s; }
.music-note-field span:nth-child(2) { left: 32%; animation-delay: 1.2s; font-size: 1.8rem; }
.music-note-field span:nth-child(3) { left: 58%; animation-delay: .6s; }
.music-note-field span:nth-child(4) { left: 76%; animation-delay: 1.8s; font-size: 1.7rem; }
.music-note-field span:nth-child(5) { left: 90%; animation-delay: 2.4s; }

.choir-restart {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  border: 1px solid rgba(255, 221, 143, .6);
  border-radius: 999px;
  background: rgba(229, 191, 104, .94);
  padding: 6px 12px;
  color: #25313b;
  font: 700 .75rem var(--font-sans, sans-serif);
  cursor: pointer;
}

.choir-restart:hover { background: #f1d68e; }

@keyframes choir-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes music-note-rise {
  0% { opacity: 0; transform: translateY(0) rotate(-8deg) scale(.8); }
  15% { opacity: .9; }
  85% { opacity: .75; }
  100% { opacity: 0; transform: translateY(-145px) rotate(16deg) scale(1.15); }
}

@media (max-width: 640px) {
  .oratory-hud { top: 10px; left: 10px; width: min(320px, calc(100% - 20px)); padding: 9px 11px; }
  .child-dialogue { font-size: .73rem; }
  .choir-banner { right: 10px; bottom: 10px; width: min(300px, calc(100% - 20px)); }
}

@media (prefers-reduced-motion: reduce) {
  .choir-notes, .music-note-field span { animation: none; }
  .music-note-field span { bottom: 65%; opacity: .8; }
}
