:root {
  --bg: #050205;
  --deep: #15020f;
  --glow: #ff2b7a;
  --glow-soft: rgba(255, 43, 122, 0.4);
  --ink: #f7eaf1;
  --muted: rgba(247, 234, 241, 0.65);
  --ring: #ff3b8e;
  --accent: #ff5fa2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Atkinson Hyperlegible', sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 43, 122, 0.18), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(255, 43, 122, 0.08), transparent 45%),
    #050205;
  display: block;
  padding: 28px 20px 48px;
  overflow-y: auto;
}

.stage {
  display: grid;
  gap: 32px;
  align-items: start;
  justify-items: center;
  width: min(960px, 100%);
  margin: 0 auto;
}

.orb-shell {
  position: relative;
  width: min(70vw, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.orb-glow {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 43, 122, 0.45), transparent 60%);
  filter: blur(6px);
  animation: glowPulse 3.2s ease-in-out infinite;
}

.orb-ring,
.orb-ring--inner {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  border: 3px solid rgba(255, 59, 142, 0.65);
  box-shadow: 0 0 20px rgba(255, 59, 142, 0.35);
}

.orb-ring::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dotted rgba(255, 59, 142, 0.55);
  animation: spin 14s linear infinite;
}

.orb-ring--inner {
  inset: 10%;
  border-color: rgba(255, 95, 162, 0.7);
  box-shadow: 0 0 30px rgba(255, 95, 162, 0.35);
}

.orb-avatar {
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fbd5e4 0%, #f2a9c8 38%, #a6557d 68%, #3f162a 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  border: 6px solid rgba(255, 255, 255, 0.08);
}

.controls {
  text-align: center;
  display: grid;
  gap: 18px;
  width: min(640px, 100%);
}

.label {
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0;
}

.status {
  font-weight: 700;
  color: var(--muted);
}

.action-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

button {
  border: none;
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.primary {
  background: var(--accent);
  color: #15020f;
  box-shadow: 0 12px 24px rgba(255, 95, 162, 0.35);
}

.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 95, 162, 0.45);
}

.ghost {
  background: transparent;
  border: 1px solid rgba(255, 95, 162, 0.5);
  color: var(--ink);
}

.result {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 18px 20px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.result-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.text {
  margin: 0;
  font-size: 1.15rem;
}

audio {
  width: 100%;
  filter: drop-shadow(0 0 12px rgba(255, 95, 162, 0.3));
}

@keyframes glowPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 700px) {
  .stage {
    gap: 24px;
  }

  .orb-shell {
    width: min(82vw, 320px);
  }

  .action-row {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
