/* ------------------------------------------------------------------
   Prompt deck · shared engine
   Tap-to-draw text prompts. Used by Truth or Dare, Never Have I Ever,
   Would You Rather, and other prompt-style drinking games.
------------------------------------------------------------------ */

.prompt-deck-page {
  --pd-bg: #324E5B;
  --pd-text: #f1f7ee;
  --pd-accent: #ff2959;
  --pd-accent-hover: #e32751;
  --pd-card-bg: #f1f7ee;
  --pd-card-text: #1b2a31;
}

.prompt-deck {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 64px);
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: var(--pd-bg);
  color: var(--pd-text);
  font-family: 'Crete Round', serif;
}

.prompt-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 320px;
  background: var(--pd-card-bg);
  color: var(--pd-card-text);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.prompt-card.leaving {
  transform: translateY(-20px) scale(0.98);
  opacity: 0;
}
.prompt-card.entering {
  transform: translateY(20px) scale(0.98);
  opacity: 0;
}

.prompt-category {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--pd-accent);
  color: #fff;
  margin-bottom: 20px;
  min-height: 1em;
}
.prompt-category:empty { display: none; }

.prompt-text {
  margin: 0;
  font-family: 'Crete Round', serif;
  font-size: clamp(1.25rem, 2.4vw + 0.8rem, 1.9rem);
  line-height: 1.35;
  color: var(--pd-card-text);
}

.prompt-button {
  background: var(--pd-accent);
  color: #fff;
  font-family: 'Crete Round', serif;
  font-size: 22px;
  padding: 16px 40px;
  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;
}
.prompt-button:hover { background: var(--pd-accent-hover); }
.prompt-button:active { transform: translateY(1px); }

/* Rules / how-to-play section below */
.prompt-rules {
  background: var(--pd-bg);
  color: var(--pd-text);
  padding: 48px 0 32px;
  border-top: 1px solid rgba(241, 247, 238, 0.12);
  font-family: 'Crete Round', serif;
}
.prompt-rules h2 {
  font-family: 'Crete Round', serif;
  font-weight: 400;
  font-size: 36px;
  text-align: center;
  color: var(--pd-text);
  margin: 0 0 24px;
}
.prompt-rules .prose {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--pd-text);
  opacity: 0.92;
  line-height: 1.6;
}
.prompt-rules .prose p { color: inherit; }
