/* ------------------------------------------------------------------
   Spin the Bottle
------------------------------------------------------------------ */

.spin-bottle-page {
  --stb-bg: #324E5B;
  --stb-text: #f1f7ee;
  --stb-accent: #ff2959;
  --stb-accent-hover: #e32751;
  --stb-ring: rgba(241, 247, 238, 0.12);
  font-family: 'Crete Round', serif;
}

.stb-stage {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 64px);
  padding: 24px 16px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--stb-bg);
  color: var(--stb-text);
  overflow: hidden;
}

/* Circular mat the bottle sits on — helps players orient themselves around the phone */
.stb-mat {
  position: relative;
  width: min(70vw, 70vh, 520px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 41, 89, 0.14), transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(241, 247, 238, 0.04) 0%, rgba(241, 247, 238, 0.04) 68%, transparent 70%);
  border: 1px dashed var(--stb-ring);
  display: grid;
  place-items: center;
}

.stb-mat::before,
.stb-mat::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--stb-ring);
}
.stb-mat::before { inset: 8%; }
.stb-mat::after  { inset: 20%; }

.stb-bottle {
  width: 28%;
  height: auto;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  /* A long, smooth decelerating spin */
  transition: transform 4.6s cubic-bezier(0.17, 0.67, 0.16, 1);
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45));
  user-select: none;
  -webkit-user-select: none;
}

.stb-button {
  background: var(--stb-accent);
  color: #fff;
  font-family: 'Crete Round', serif;
  font-size: 22px;
  padding: 16px 44px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 8px 24px -10px rgba(255, 41, 89, 0.6);
  transition: background 0.2s ease, transform 0.1s ease;
}
.stb-button:hover { background: var(--stb-accent-hover); }
.stb-button:active { transform: translateY(1px); }
.stb-button[disabled] { opacity: 0.55; cursor: wait; }

.stb-hint {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--stb-text);
  opacity: 0.7;
  max-width: 42ch;
  text-align: center;
  margin: 0;
}

.stb-rules {
  background: var(--stb-bg);
  color: var(--stb-text);
  padding: 48px 0 32px;
  border-top: 1px solid var(--stb-ring);
  font-family: 'Crete Round', serif;
}
.stb-rules h2 {
  font-family: 'Crete Round', serif;
  font-weight: 400;
  font-size: 36px;
  text-align: center;
  margin: 0 0 24px;
}
.stb-rules .prose {
  max-width: 62ch;
  margin: 0 auto;
  opacity: 0.92;
  line-height: 1.6;
}
.stb-rules .prose p { color: inherit; }
