/* Collectible danah, pearl moment, badge toasts */
.danah { position: relative; display: inline-block; width: 64px; height: 64px; }
.danah img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(16, 42, 74, 0.25)); }
.danah.drawn::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff 0 12%, #F7F1E8 28%, #E6DCCB 58%, #BBAE96 100%);
  box-shadow: inset -6px -8px 14px rgba(16, 42, 74, 0.18), 0 6px 12px rgba(16, 42, 74, 0.2);
}
.danah.golden.drawn::before { background: radial-gradient(circle at 34% 28%, #FFFDF2 0 12%, #F4D98C 34%, #D4A94A 64%, #9C7427 100%); }
.danah.drawn::after {
  content: ""; position: absolute; left: 24%; top: 18%; width: 22%; height: 14%; border-radius: 50%;
  background: rgba(255, 255, 255, 0.85); filter: blur(1px); transform: rotate(-25deg);
}

.pearl-moment {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 18px;
  background: radial-gradient(ellipse at 50% 38%, rgba(33, 68, 110, 0.985), rgba(12, 32, 58, 1) 70%);
  backdrop-filter: blur(6px);
  animation: pm-in 0.35s ease-out;
}
.pearl-moment.leaving { animation: pm-out 0.35s ease-in forwards; }
.pm-card { text-align: center; color: var(--ivory); max-width: 440px; }
.pm-card h2 { font-family: var(--font-read); font-size: 2rem; margin: 6px 0 6px; color: #F4E4BC; }
.is-golden .pm-card h2 { color: #F1CF7A; }
.pm-sub { margin: 0 0 20px; opacity: 0.9; }
.pm-stage { position: relative; width: 260px; height: 230px; margin: 0 auto; }
.oyster { position: absolute; left: 10px; right: 10px; bottom: 0; height: 150px; }
.oyster img, .oyster svg { width: 100%; height: 100%; object-fit: contain; }
.oyster .shell-top { transform-origin: 20px 70px; animation: shell-open 0.7s 0.15s cubic-bezier(.3,1.4,.5,1) both; }
.oyster img { animation: shell-bob 0.7s 0.1s ease-out both; }
.danah.rise { position: absolute; left: 50%; top: 92px; width: 108px; height: 108px; margin-left: -54px;
  animation: rise 1.1s 0.45s cubic-bezier(.2, 1.2, .4, 1) both; }
.pm-stage .danah.rise { filter: drop-shadow(0 0 18px rgba(255, 240, 200, 0.55)); }
.is-golden .pm-stage .danah.rise { filter: drop-shadow(0 0 26px rgba(241, 207, 122, 0.85)); }
.sparkles span {
  position: absolute; left: 50%; top: 70px; width: 6px; height: 6px; border-radius: 50%; background: #FFF4D2;
  box-shadow: 0 0 8px #FFE7A3; opacity: 0;
  animation: sparkle 1.2s calc(1s + var(--i) * 0.05s) ease-out both;
  --a: calc(var(--i) * 36deg);
}
@keyframes pm-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pm-out { to { opacity: 0; } }
@keyframes shell-open { from { transform: rotate(0); } to { transform: rotate(-24deg); } }
@keyframes shell-bob { from { transform: translateY(12px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise {
  0% { transform: translateY(50px) scale(.2); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: translateY(-58px) scale(1); opacity: 1; }
}
@keyframes sparkle {
  0% { transform: rotate(var(--a)) translateY(0) scale(.4); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: rotate(var(--a)) translateY(-95px) scale(1); opacity: 0; }
}
.pearl-moment.still, .pearl-moment.still * { animation: none !important; }
.pearl-moment.still .danah.rise { transform: translateY(-58px); }

.badge-toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; align-items: center; gap: 12px;
  max-width: 340px; padding: 12px 16px; border-radius: 12px; background: var(--navy); color: var(--ivory);
  border: 1.5px solid var(--gold); box-shadow: 0 12px 30px rgba(16, 42, 74, 0.35);
  animation: toast-in 0.45s cubic-bezier(.2, 1.3, .4, 1);
}
.badge-toast.leaving { animation: toast-out 0.45s forwards; }
.bt-icon { font-size: 1.9rem; }
.badge-toast strong { display: block; color: #F4E4BC; }
.bt-desc { font-size: 0.88rem; opacity: 0.9; }
@keyframes toast-in { from { transform: translateY(40px) scale(.9); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .badge-toast { animation: none; } }

/* ===== Gulf Gold: the pearl moment ===== */
.pearl-moment { background: radial-gradient(ellipse at 50% 38%, rgba(27, 61, 107, 0.985) 0%, rgba(11, 31, 58, 1) 55%, rgba(6, 17, 31, 1) 100%); }
.pm-card { max-width: 520px; }
.pm-stage { width: 360px; height: 330px; }
.pm-stage::before {
  content: ""; position: absolute; left: 50%; top: -10px; width: 420px; height: 420px; margin-left: -210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 213, 138, 0.3) 0%, rgba(241, 213, 138, 0) 60%);
  animation: pm-in 1s 0.4s both;
}
.oyster { left: 20px; right: 20px; height: 230px; }
.oyster img { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5)); }
.danah.rise { top: 96px; width: 132px; height: 132px; margin-left: -66px; }
.pm-stage .danah.rise { filter: drop-shadow(0 0 22px rgba(255, 240, 200, 0.6)); }
.is-golden .pm-stage .danah.rise { filter: drop-shadow(0 0 34px rgba(241, 207, 122, 0.9)); }
.pearl-moment.still .danah.rise { transform: translateY(-70px); }
@keyframes rise {
  0% { transform: translateY(60px) scale(.2); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: translateY(-70px) scale(1); opacity: 1; }
}
.sparkles span {
  top: 90px; width: 10px; height: 10px; border-radius: 0; background: #F4DE9C; box-shadow: 0 0 10px #FFE7A3;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.pm-kicker { margin: 18px 0 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--champagne); }
.pm-card h2 { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 600; line-height: 1; margin: 4px 0 12px; color: var(--ivory); }
.pm-card h2 em { font-style: italic; color: var(--gold-hi); }
.is-golden .pm-card h2 { color: var(--ivory); }
.pm-sub { color: #C9D2E0; font-size: 1.02rem; }

/* Badge toasts in the same finish */
.badge-toast { border-radius: 16px; border: 1px solid rgba(231, 200, 120, 0.55); box-shadow: 0 18px 40px rgba(11, 31, 58, 0.45); }
.badge-toast::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--hairline); }
.badge-toast strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-hi); }
/* proportions as designed: a large oyster, the pearl rising out of it */
.pm-stage { width: 380px; height: 390px; }
.oyster { left: 0; right: 0; height: 310px; }
.danah.rise { top: 118px; width: 120px; height: 120px; margin-left: -60px; }
@media (max-width: 480px) {
  .pm-stage { width: 300px; height: 320px; }
  .oyster { height: 250px; }
  .danah.rise { top: 100px; width: 100px; height: 100px; margin-left: -50px; }
}
