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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #f0e2c4;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-color: #1a0f06;
  background-image:
    /* firelit glow rising from the drum */
    radial-gradient(120% 80% at 50% 90%, rgba(214, 126, 34, 0.28), transparent 55%),
    /* cold moonlight from above */
    radial-gradient(90% 60% at 50% -10%, rgba(90, 130, 150, 0.22), transparent 60%),
    /* woven leather / wood tones */
    linear-gradient(180deg, #22140a 0%, #15100a 45%, #0d0b09 100%);
  background-attachment: fixed;
}

.ro-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 12, 4, 0.92);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: opacity 0.4s ease;
}

.ro-intro.hidden {
  opacity: 0;
}

.ro-intro.gone {
  pointer-events: none;
}

.ro-intro-card {
  text-align: center;
  user-select: none;
}

.ro-intro-text {
  color: #e7c987;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-size: 28px;
  line-height: 1.3;
  text-shadow: 0 2px 0 #2a1c10, 0 0 22px rgba(200, 150, 60, 0.35);
}

.ro-intro-hint {
  display: block;
  margin-top: 20px;
  color: rgba(231, 201, 135, 0.7);
  font-size: 14px;
  letter-spacing: 0.06em;
  animation: intro-pulse 1.6s ease-in-out infinite;
}

@keyframes intro-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 16px;
}

.ro-container {
  user-select: none;
  text-align: center;
}

.ro-title {
  color: #f0cf83;
  letter-spacing: 0.14em;
  font-variant: small-caps;
  font-weight: 800;
  font-size: 30px;
  text-shadow: 0 2px 0 #2a1c10, 0 3px 6px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(230, 170, 70, 0.45);
}

.ro-title::after {
  content: 'ᛃ ᛜ ᛟ ᛜ ᛃ';
  display: block;
  margin-top: 8px;
  color: rgba(214, 160, 84, 0.65);
  font-size: 16px;
  letter-spacing: 0.35em;
  text-shadow: 0 0 12px rgba(214, 160, 84, 0.4);
}

.ro-lead {
  color: #d8c39a;
  max-width: 46ch;
  margin: 18px auto;
  font-size: 16px;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ---- standalone drum ---- */

.robot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 6px auto 26px;
  padding: 8px 16px;
  color: #e7c987;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  background: rgba(58, 42, 27, 0.55);
  border: 2px solid #6b4a2b;
  border-radius: 8px;
  cursor: pointer;
}

.robot-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #b98f3c;
  cursor: pointer;
}

.robot-drum {
  display: block;
  margin: 10px auto 0;
  width: min(60vw, 260px);
  height: min(60vw, 260px);
  border-radius: 50%;
  /* drumhead over a bronze rim */
  background: radial-gradient(circle at 50% 40%, #f0dbaf 0%, #d8b579 55%, #a5762f 100%);
  border: 8px solid #6b4a2b;
  box-shadow: inset 0 0 40px rgba(90, 60, 30, 0.6), 0 8px 0 #2a1c10,
    0 0 30px rgba(200, 150, 60, 0.25);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.robot-drum:active {
  transform: translateY(4px);
  box-shadow: inset 0 0 46px rgba(90, 60, 30, 0.7), 0 4px 0 #2a1c10,
    0 0 30px rgba(200, 150, 60, 0.25);
}

.robot-drum:disabled {
  opacity: 0.5;
  cursor: default;
}

.robot-drum-face {
  display: inline-block;
  font-size: min(26vw, 120px);
  line-height: 1;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
  animation: robot-strike 0.16s ease-out;
}

.robot-horn {
  position: relative;
  display: block;
  margin: 60px auto 0;
  padding: 0;
  width: min(22vw, 84px);
  height: min(22vw, 84px);
  background: none;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.robot-horn:focus,
.robot-horn:focus-visible,
.robot-horn:active {
  outline: none;
  background: none;
  border: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.robot-horn-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.15s ease;
}

.robot-horn:hover .robot-horn-img {
  transform: scale(1.06) rotate(-2deg);
}

.robot-horn:active .robot-horn-img {
  transform: translateY(3px) scale(0.97);
}

.robot-horn.playing .robot-horn-img {
  transform: scale(1.04);
}

/* While playing, a red line through the horn signals that a tap will stop it. */
.robot-horn.playing::after {
  content: '';
  position: absolute;
  top: 58%;
  left: 2%;
  width: 116%;
  height: 8%;
  min-height: 4px;
  transform: translateY(-50%) rotate(-45deg);
  transform-origin: center;
  background: #e0342a;
  border-radius: 999px;
  box-shadow: 0 0 6px rgba(224, 52, 42, 0.7);
  pointer-events: none;
}

.robot-horn:disabled {
  opacity: 0.5;
  cursor: default;
}

@keyframes robot-strike {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.86);
  }
  100% {
    transform: scale(1);
  }
}

.ro-share {
  max-width: 600px;
  margin: 48px auto 40px;
  padding: 32px 16px 8px;
  text-align: center;
  border-top: 1px solid rgba(214, 160, 84, 0.4);
}

.ro-share-title {
  color: #f0cf83;
  letter-spacing: 0.08em;
  font-variant: small-caps;
  font-size: 22px;
  text-shadow: 0 2px 0 #2a1c10, 0 0 18px rgba(230, 170, 70, 0.35);
}

.ro-share-lead {
  margin: 10px auto 18px;
  max-width: 360px;
  color: #cbb488;
  font-size: 15px;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.ro-share-link {
  display: inline-block;
  color: #f0cf83;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: 0.03em;
  text-shadow: 0 0 14px rgba(230, 170, 70, 0.4);
}

.ro-share-link:hover {
  text-decoration: underline;
}

.ro-share-qr {
  display: block;
  margin: 18px auto 0;
  width: 180px;
  height: 180px;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  border: 3px solid #6b4a2b;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(230, 170, 70, 0.25);
}

