/* FRANKENBAND — haunted stage, pure CSS. No images, no AI art. */

* { box-sizing: border-box; }

:root {
  --night: #0d0a1a;
  --night-2: #17112e;
  --purple: #7b5cff;
  --green: #39ff88;
  --amber: #ffb347;
  --bone: #f2ead8;
  --muted: #b9b0d6;
  --red: #a4123f;
  --red-dark: #6e0b2a;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
}

h1 {
  margin: 0;
  padding-top: 18px;
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  letter-spacing: 0.14em;
  color: var(--amber);
  text-shadow: 0 0 18px rgba(255, 179, 71, 0.45), 0 3px 0 #000;
}

.tagline { color: var(--muted); margin: 6px 0 18px; font-style: italic; }

main { max-width: 760px; margin: 0 auto; padding: 0 16px 32px; }

/* ---- stage ---- */
.stage {
  position: relative;
  height: 260px;
  overflow: hidden;
  border: 3px solid #3a2b5c;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(#1b1440 0%, #241a55 55%, #120d2b 100%);
  touch-action: none;
  cursor: crosshair;
}

.moon {
  position: absolute;
  top: 22px; right: 34px;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fffbe8, #f5e6a8 60%, #d9c27a);
  box-shadow: 0 0 34px 8px rgba(245, 230, 168, 0.35);
}

.organ {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 4px;
  opacity: 0.9;
}

.pipe {
  width: 16px;
  background: linear-gradient(#cfc4f5, #6f5bb0);
  border-radius: 8px 8px 0 0;
  border: 1px solid #241a55;
}
.p1 { height: 46px; } .p2 { height: 74px; } .p3 { height: 100px; }
.p4 { height: 122px; } .p5 { height: 100px; } .p6 { height: 74px; }
.p7 { height: 46px; }

.curtain {
  position: absolute;
  top: 0; bottom: 0;
  width: 64px;
  background: repeating-linear-gradient(
    90deg, var(--red) 0 12px, var(--red-dark) 12px 24px);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.6);
}
.curtain.left { left: 0; border-radius: 9px 0 0 0; }
.curtain.right { right: 0; border-radius: 0 9px 0 0; }

.stage-floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 34px;
  background: linear-gradient(#3a2417, #1d120b);
  border-top: 2px solid #5a3a24;
}

.stage-hint {
  position: absolute;
  left: 0; right: 0; bottom: 40px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  pointer-events: none;
}

.theremin-readout {
  position: absolute;
  left: 0; right: 0; top: 10px;
  margin: 0;
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  pointer-events: none;
}

/* ---- organ badges ---- */
.organs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 12px 0 4px;
}

.organ-badge {
  padding: 6px 12px;
  border: 1px solid #4a3a78;
  border-radius: 999px;
  background: var(--night-2);
  color: var(--muted);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.organ-badge.on {
  border-color: var(--green);
  color: #06130a;
  background: var(--green);
  box-shadow: 0 0 14px rgba(57, 255, 136, 0.5);
}

/* ---- songwriter ---- */
.songwriter { margin-top: 18px; }

.songwriter label {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--amber);
}

.songwriter input {
  width: 100%;
  padding: 12px 14px;
  font-size: 1.05rem;
  font-family: Georgia, serif;
  color: var(--bone);
  background: #1d1538;
  border: 2px solid #4a3a78;
  border-radius: 8px;
  outline: none;
}
.songwriter input:focus { border-color: var(--purple); }

.buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

button {
  padding: 10px 18px;
  font-size: 1rem;
  font-family: Georgia, serif;
  color: var(--bone);
  background: #2a1f52;
  border: 2px solid #4a3a78;
  border-radius: 8px;
  cursor: pointer;
}
button:hover:not(:disabled) { border-color: var(--purple); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.primary { background: var(--red); border-color: #d61f5c; }
button.primary:hover:not(:disabled) { border-color: var(--amber); }

.song-meta, .record-meta, .now-playing {
  min-height: 1.3em;
  color: var(--muted);
  font-style: italic;
}
.now-playing { color: var(--green); font-style: normal; }

.controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

footer { color: var(--muted); font-size: 0.85rem; padding: 0 16px 24px; }
footer a { color: var(--amber); }
