/* ═══════════════════════════════════════════════════════════════
   THE DIVINATION — drink-recommendation card spread
   Extends satellite.css. Self-contained gold-foil treatment so
   we don't pull in the full homepage stylesheet.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Stage prompt + progress ─────────────────────────────────── */
.divination-progress {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 auto 1.4rem;
}
.divination-progress .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(212, 180, 88, 0.18);
  transition: background 0.3s, transform 0.3s;
}
.divination-progress .dot.active { background: var(--gold); transform: scale(1.25); }
.divination-progress .dot.done   { background: var(--gold-dark); }

.divination-stage {
  position: relative;
  min-height: 460px;
  padding: 1rem 0 2rem;
}

.divination-stage-prompt {
  text-align: center;
  margin-bottom: 1.6rem;
}
.divination-stage-prompt .eyebrow {
  display: block;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.6rem;
}
.divination-stage-prompt .question {
  font-family: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  font-weight: 400;
}

/* ─── Card row ─────────────────────────────────────────────────── */
.divination-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  perspective: 1400px;
}

/* ─── Minor arcana card ────────────────────────────────────────── */
.divination-card {
  --w: 132px;
  --h: 196px;
  position: relative;
  width: var(--w);
  height: var(--h);
  border-radius: 6px;
  cursor: pointer;
  background: #0a0810;
  /* Disable mobile double-tap zoom + 300ms tap delay so picks register cleanly. */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform-style: preserve-3d;
  transition:
    transform 0.45s cubic-bezier(0.23,1,0.32,1),
    box-shadow 0.4s ease,
    opacity 0.45s ease;
  opacity: 0;
  transform: translateY(28px) rotate(-2deg);
  animation: divination-deal 0.55s cubic-bezier(0.16,1,0.3,1) forwards;
  outline: none;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.35),
    0 8px 22px rgba(0,0,0,0.45);
}
.divination-card:focus-visible {
  box-shadow:
    0 0 0 2px var(--gold),
    0 2px 4px rgba(0,0,0,0.35),
    0 8px 22px rgba(0,0,0,0.45);
}
.divination-card:hover { transform: translateY(-6px) rotate(0); }
.divination-card.is-picked {
  transform: translateY(-14px) scale(1.04);
  box-shadow:
    0 0 0 2px rgba(212,180,88,0.7),
    0 4px 8px rgba(0,0,0,0.4),
    0 14px 32px rgba(212,180,88,0.18),
    0 22px 48px rgba(0,0,0,0.5),
    0 0 60px rgba(245, 230, 168, 0.35);
  animation: divination-picked-pulse 2.2s ease-in-out infinite;
}
@keyframes divination-picked-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(212,180,88,0.7),
      0 4px 8px rgba(0,0,0,0.4),
      0 14px 32px rgba(212,180,88,0.18),
      0 22px 48px rgba(0,0,0,0.5),
      0 0 60px rgba(245, 230, 168, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(245, 230, 168, 0.95),
      0 4px 8px rgba(0,0,0,0.4),
      0 18px 40px rgba(245, 230, 168, 0.32),
      0 28px 60px rgba(0,0,0,0.55),
      0 0 90px rgba(255, 245, 200, 0.55);
  }
}
.divination-card.is-flying-out {
  animation: divination-flyout 0.6s cubic-bezier(0.5, 0, 0.75, 0) forwards;
  pointer-events: none;
}
.divination-card.is-flying-out.fly-left  { --fly-x: -120vw; --fly-rot: -22deg; }
.divination-card.is-flying-out.fly-right { --fly-x:  120vw; --fly-rot:  22deg; }
@keyframes divination-flyout {
  to {
    opacity: 0;
    transform: translate(var(--fly-x, -120vw), -6vh) rotate(var(--fly-rot, -22deg));
  }
}

.divination-card.is-fading {
  animation: divination-pickfade 0.5s ease-in forwards;
  pointer-events: none;
}
@keyframes divination-pickfade {
  0%   { opacity: 1; transform: translateY(-14px) scale(1.04); }
  100% { opacity: 0; transform: translateY(-30px) scale(0.96); }
}

@keyframes divination-deal {
  0%   { opacity: 0; transform: translateY(38px) rotate(-3deg) scale(0.92); }
  100% { opacity: 1; transform: translateY(0)    rotate(0)    scale(1); }
}

/* Stagger card deal-in within a row */
.divination-card:nth-child(1) { animation-delay: 0.05s; }
.divination-card:nth-child(2) { animation-delay: 0.12s; }
.divination-card:nth-child(3) { animation-delay: 0.19s; }
.divination-card:nth-child(4) { animation-delay: 0.26s; }
.divination-card:nth-child(5) { animation-delay: 0.33s; }
.divination-card:nth-child(6) { animation-delay: 0.40s; }

.divination-card-face {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 0.6rem;
  text-align: center;
  isolation: isolate;
  animation: divination-idle-float 5.5s ease-in-out infinite;
}
.divination-card:nth-child(odd)  .divination-card-face { animation-delay: 0s;    }
.divination-card:nth-child(even) .divination-card-face { animation-delay: -2.7s; }
.divination-card.is-picked .divination-card-face { animation: none; }

@keyframes divination-idle-float {
  0%, 100% { transform: translateY(0)    rotate(0deg); }
  50%      { transform: translateY(-3px) rotate(0.4deg); }
}

/* Foil background — same palette as homepage gold-foil but inlined here */
.divination-card-face::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    135deg,
    #6b4e1f 0%, #8a6d2b 12%, #c9a84c 25%, #e8d48b 35%,
    #f5e6a8 44%, #fffbea 50%, #f5e6a8 56%, #e8d48b 65%,
    #c9a84c 75%, #8a6d2b 88%, #6b4e1f 100%
  );
}
/* Soft specular highlight */
.divination-card-face::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 90% 90% at 35% 30%,
    rgba(255, 252, 235, 0.55) 0%,
    rgba(255, 245, 200, 0.25) 22%,
    transparent 65%
  );
  pointer-events: none;
  transition: opacity 0.4s;
}
.divination-card:hover .divination-card-face::after { opacity: 0.85; }
.divination-card.is-picked .divination-card-face::after {
  background: radial-gradient(
    ellipse 100% 100% at 50% 35%,
    rgba(255, 252, 235, 0.75) 0%,
    rgba(255, 245, 200, 0.35) 25%,
    transparent 70%
  );
}

/* Diagonal shine sweep — sits above the foil, animates on hover/picked
   and lazily idles on every card so the whole spread feels alive. */
.divination-card-shine {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: 3;
  pointer-events: none;
  border-radius: 6px;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 252, 235, 0.0) 44%,
    rgba(255, 252, 235, 0.55) 50%,
    rgba(255, 252, 235, 0.0) 56%,
    transparent 62%
  );
  background-size: 260% 260%;
  background-position: 140% 140%;
  mix-blend-mode: screen;
  opacity: 0.6;
  animation: divination-shine-idle 6.5s ease-in-out infinite;
  animation-delay: 1.4s;
}
.divination-card:hover .divination-card-shine,
.divination-card.is-picked .divination-card-shine {
  animation: divination-shine-sweep 1.2s cubic-bezier(0.4,0,0.6,1) infinite;
  opacity: 1;
}

@keyframes divination-shine-sweep {
  0%   { background-position: 160% 160%; }
  100% { background-position: -60% -60%; }
}
@keyframes divination-shine-idle {
  0%, 100% { background-position: 160% 160%; }
  50%      { background-position: -60% -60%; }
}

/* Sparkles bloom on the picked card */
.divination-card-sparkles {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
}
.divination-card.is-picked .divination-card-sparkles {
  opacity: 1;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255,250,220,0.95) 0 1.2px, transparent 2px),
    radial-gradient(circle at 82% 30%, rgba(255,250,220,0.9)  0 1.5px, transparent 2.4px),
    radial-gradient(circle at 30% 78%, rgba(255,250,220,0.85) 0 1px,   transparent 2px),
    radial-gradient(circle at 72% 86%, rgba(255,250,220,0.95) 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 50% 14%, rgba(255,250,220,0.8)  0 1px,   transparent 1.8px),
    radial-gradient(circle at 12% 60%, rgba(255,250,220,0.8)  0 1px,   transparent 1.8px);
  animation: divination-sparkle 1.6s ease-in-out infinite;
}
@keyframes divination-sparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.92); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

/* Inner ornamental frame */
.divination-card-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(40, 28, 8, 0.35);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.4rem 0.55rem;
  color: #2a1f08;
}

.divination-card-glyph {
  font-size: 2.6rem;
  line-height: 1;
  color: #000;
  font-variant-emoji: text;
  margin-top: 0.5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.divination-card-label {
  font-family: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #1c1305;
  line-height: 1.15;
  font-weight: 700;
  padding: 0 0.15rem;
  margin-bottom: 0.3rem;
}
.divination-card-sublabel {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.7rem;
  color: rgba(28, 19, 5, 0.7);
  letter-spacing: 0.02em;
  margin-top: 0.15rem;
  text-transform: none;
}

/* Tiny corner marks (top-left + bottom-right rotated) — like minor arcana pips */
.divination-card-frame::before,
.divination-card-frame::after {
  content: '✦';
  position: absolute;
  font-size: 0.5rem;
  color: rgba(28, 19, 5, 0.55);
}
.divination-card-frame::before { top: 0.35rem; left: 0.4rem; }
.divination-card-frame::after  { bottom: 0.35rem; right: 0.4rem; transform: rotate(180deg); }

/* ─── Stage transitions ───────────────────────────────────────── */
.divination-stage.is-leaving .divination-card,
.divination-stage.is-leaving .divination-stage-prompt {
  transition: opacity 0.35s ease, transform 0.35s ease;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

/* ─── Reveal: the drawn cocktail card ─────────────────────────── */
.divination-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.divination-reveal-eyebrow {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
  text-align: center;
}

.divination-reveal-card {
  --w: 280px;
  --h: 420px;
  position: relative;
  width: var(--w);
  height: var(--h);
  border-radius: 8px;
  background: #0a0810;
  box-shadow:
    0 0 0 1px rgba(212,180,88,0.15),
    0 4px 8px rgba(0,0,0,0.4),
    0 18px 36px rgba(0,0,0,0.5),
    0 32px 80px rgba(212,180,88,0.12);
  isolation: isolate;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px) scale(0.96) rotate(-2deg);
  animation:
    divination-reveal-in 0.7s cubic-bezier(0.16,1,0.3,1) 0.1s forwards,
    divination-reveal-halo 3.4s ease-in-out 0.9s infinite;
}

@keyframes divination-reveal-in {
  0%   { opacity: 0; transform: translateY(40px) scale(0.92) rotate(-3deg); }
  60%  { opacity: 1; transform: translateY(-8px) scale(1.02) rotate(0.5deg); }
  100% { opacity: 1; transform: translateY(0)    scale(1)    rotate(0); }
}

@keyframes divination-reveal-halo {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(212,180,88,0.25),
      0 4px 8px rgba(0,0,0,0.4),
      0 18px 36px rgba(0,0,0,0.5),
      0 32px 80px rgba(212,180,88,0.18),
      0 0 60px rgba(245, 230, 168, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(245, 230, 168, 0.55),
      0 4px 8px rgba(0,0,0,0.4),
      0 22px 44px rgba(0,0,0,0.55),
      0 38px 100px rgba(245, 230, 168, 0.32),
      0 0 110px rgba(255, 245, 200, 0.45);
  }
}

/* Slow rotating sheen across the reveal — subtle conic that sweeps light. */
.divination-reveal-sheen {
  position: absolute;
  inset: -25%;
  z-index: 2;
  pointer-events: none;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(255, 252, 235, 0) 70deg,
    rgba(255, 252, 235, 0.55) 95deg,
    rgba(255, 252, 235, 0) 120deg,
    transparent 360deg
  );
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: divination-sheen-rotate 6s linear infinite;
}
@keyframes divination-sheen-rotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* A handful of sparkles sprinkled across the reveal foil. */
.divination-reveal-sparkles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 14% 18%, rgba(255,250,220,0.95) 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 86% 22%, rgba(255,250,220,0.9)  0 1.4px, transparent 2.4px),
    radial-gradient(circle at 22% 72%, rgba(255,250,220,0.85) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 78% 80%, rgba(255,250,220,0.95) 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 50% 8%,  rgba(255,250,220,0.8)  0 1.2px, transparent 2px),
    radial-gradient(circle at 50% 92%, rgba(255,250,220,0.8)  0 1.2px, transparent 2px),
    radial-gradient(circle at 8% 50%,  rgba(255,250,220,0.7)  0 1px,   transparent 1.8px),
    radial-gradient(circle at 92% 52%, rgba(255,250,220,0.7)  0 1px,   transparent 1.8px);
  animation: divination-sparkle 2.4s ease-in-out infinite;
}

.divination-reveal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    135deg,
    #6b4e1f 0%, #8a6d2b 12%, #c9a84c 25%, #e8d48b 35%,
    #f5e6a8 44%, #fffbea 50%, #f5e6a8 56%, #e8d48b 65%,
    #c9a84c 75%, #8a6d2b 88%, #6b4e1f 100%
  );
}
.divination-reveal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 100% 100% at 30% 25%,
    rgba(255, 252, 235, 0.55) 0%,
    rgba(255, 245, 200, 0.25) 25%,
    transparent 70%
  );
  pointer-events: none;
}

.divination-reveal-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(40, 28, 8, 0.4);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.6rem 1.2rem 1.4rem;
  color: #1c1305;
}
.divination-reveal-frame::before,
.divination-reveal-frame::after {
  content: '✦';
  position: absolute;
  font-size: 0.7rem;
  color: rgba(28, 19, 5, 0.6);
}
.divination-reveal-frame::before { top: 0.7rem; left: 0.8rem; }
.divination-reveal-frame::after  { bottom: 0.7rem; right: 0.8rem; transform: rotate(180deg); }

.divination-reveal-section {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(28, 19, 5, 0.7);
  margin-bottom: 0.7rem;
}

.divination-reveal-name {
  font-family: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: #16100a;
  margin-bottom: 0.6rem;
}

.divination-reveal-divider {
  width: 36px;
  height: 1px;
  background: rgba(28, 19, 5, 0.4);
  margin: 0.4rem 0 0.9rem;
}

.divination-reveal-desc {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(28, 19, 5, 0.85);
  font-style: italic;
  margin-bottom: auto;
}

.divination-reveal-price {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: #1c1305;
  margin-top: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(28, 19, 5, 0.25);
  align-self: stretch;
}

.divination-reveal-flavor {
  max-width: 520px;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--gold);
  margin: 0.2rem 1rem 0;
}

.divination-flourish {
  max-width: 480px;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
  padding: 0 1rem;
}
.divination-flourish::before,
.divination-flourish::after { content: '✦ '; color: var(--gold-dark); }
.divination-flourish::after { content: ' ✦'; }

/* Runners-up */
.divination-runners {
  text-align: center;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'Cormorant Garamond', Georgia, serif;
}
.divination-runners-label {
  display: block;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.4rem;
}
.divination-runners ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.divination-runners li {
  padding: 0.15rem 0;
}
.divination-runners .name {
  color: var(--text);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ─── Action buttons ──────────────────────────────────────────── */
.divination-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin: 2.4rem auto 0;
}

.divination-btn {
  display: inline-block;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.74rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--gold-muted);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.divination-btn:hover {
  background: rgba(212, 180, 88, 0.08);
  border-color: var(--gold);
}
.divination-btn-quiet {
  color: var(--text-muted);
  border-color: var(--divider);
}
.divination-btn-quiet:hover {
  color: var(--gold);
}

/* ─── Locked state (gate fallback) ────────────────────────────── */
.divination-locked {
  text-align: center;
  padding: 5rem 1.5rem;
  color: var(--text-muted);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .divination-stage { min-height: 380px; padding: 0.4rem 0 1.5rem; }
  .divination-row { gap: 0.55rem; }
  .divination-card { --w: 100px; --h: 150px; }
  .divination-card-glyph { font-size: 2rem; margin-top: 0.3rem; }
  .divination-card-label { font-size: 0.65rem; }
  .divination-card-sublabel { font-size: 0.6rem; }
  .divination-stage-prompt .question { font-size: 1.15rem; }
  .divination-reveal-card { --w: 240px; --h: 360px; }
  .divination-reveal-name { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .divination-card,
  .divination-reveal-card { animation-duration: 0.01s; }
  .divination-card { opacity: 1; transform: none; }
  .divination-card-face,
  .divination-card-shine,
  .divination-card-sparkles,
  .divination-reveal-sheen,
  .divination-reveal-sparkles { animation: none !important; }
  .divination-card.is-picked { animation: none !important; }
  .divination-card.is-flying-out,
  .divination-card.is-fading { animation: none !important; opacity: 0; }
  .divination-reveal-card {
    animation: divination-reveal-in 0.01s forwards !important;
  }
}
