/* ============================================================
   TREASURE UNLOCK — paywall-style card (Taller InShot-style layout)
   ============================================================ */

.treasure-unlock {
  max-width: 440px;
  margin: 0 auto 24px;
  padding: 0 4px;
}

.treasure-unlock[hidden] {
  display: none !important;
}

/* ---------------- Outer card / "phone screen" ---------------- */
.treasure-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl, 28px);
  border: 1px solid rgba(212, 168, 67, 0.32);
  background: #05060a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: treasure-card-in .35s cubic-bezier(.2,.8,.2,1);
}

@keyframes treasure-card-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------------- Top bar: close X · title · kicker ---------------- */
.treasure-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(5,6,10,0.85) 0%, rgba(5,6,10,0) 100%);
  pointer-events: auto;
}

.treasure-close-btn {
  appearance: none;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.treasure-close-btn:hover { background: rgba(255, 255, 255, 0.22); transform: scale(1.05); }

.treasure-topbar-title {
  font-family: var(--font-disp, 'Syne', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.treasure-topbar-details {
  appearance: none;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.treasure-topbar-details:hover { color: #fff; }

/* ---------------- Hero image carousel (25% Taller: 380px * 1.25 = 475px) ---------------- */
.treasure-hero {
  position: relative;
  height: 475px;
  overflow: hidden;
}

.treasure-hero-slides {
  position: absolute;
  inset: 0;
}

.treasure-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .55s ease, transform 6s linear;
}

.treasure-hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.treasure-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,6,10,0.4) 0%, rgba(5,6,10,0.05) 25%, rgba(5,6,10,0.65) 75%, rgba(5,6,10,0.95) 100%);
  pointer-events: none;
}

.treasure-hero-badge {
  position: absolute;
  top: 60px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: rgba(212, 168, 67, 0.92);
  color: #1a1408;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.treasure-hero-badge svg { width: 12px; height: 12px; }

.treasure-hero-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 85px;
  z-index: 3;
}

.treasure-hero-caption-title {
  font-family: var(--font-disp, 'Syne', sans-serif);
  font-size: 21px;
  font-weight: 750;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.treasure-hero-caption-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.treasure-hero-dots {
  position: absolute;
  top: 64px;
  right: 16px;
  z-index: 3;
  display: flex;
  gap: 4px;
}

.treasure-hero-dot {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  border: 0;
  transition: background .2s ease, width .2s ease;
}
.treasure-hero-dot.active {
  background: #F0C96A;
  width: 22px;
}

/* ---------------- Feature icon chip row ---------------- */
.treasure-feature-row {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  gap: 8px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.treasure-feature-row::-webkit-scrollbar { display: none; }

.treasure-feature-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 52px;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
}

.treasure-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(15, 17, 26, 0.75);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.treasure-feature-icon svg { width: 17px; height: 17px; }

.treasure-feature-chip.active .treasure-feature-icon {
  background: rgba(212, 168, 67, 0.2);
  border-color: #F0C96A;
  color: #F0C96A;
}

.treasure-feature-label {
  font-size: 9px;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.treasure-feature-chip.active .treasure-feature-label { color: #F0C96A; font-weight: 700; }

/* ---------------- Bottom sheet: price + CTA + legal ---------------- */
.treasure-sheet {
  padding: 16px 18px 20px;
  background: #05060a;
}

.treasure-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(212, 168, 67, 0.55);
  background: rgba(212, 168, 67, 0.08);
  margin-bottom: 14px;
}

.treasure-price-radio {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #F0C96A;
  color: #1a1408;
}
.treasure-price-radio svg { width: 13px; height: 13px; }

.treasure-price-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.treasure-price-main {
  font-family: var(--font-disp, 'Syne', sans-serif);
  font-size: 18px;
  font-weight: 750;
  color: var(--text-hi, #F2EEE8);
  letter-spacing: -0.01em;
}

.treasure-price-sub {
  font-size: 12px;
  color: var(--text-md, #9A9390);
}

.treasure-price-onetime-tag {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #F0C96A;
  border: 1px solid rgba(240, 201, 106, 0.4);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.treasure-continue-btn {
  appearance: none;
  width: 100%;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #F0C96A 0%, #D4A843 48%, #A8791F 100%);
  box-shadow: 0 10px 28px rgba(212, 168, 67, 0.35);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.treasure-continue-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 14px 32px rgba(212, 168, 67, 0.45);
}
.treasure-continue-btn:active:not(:disabled) { transform: translateY(0) scale(.99); }
.treasure-continue-btn:disabled { opacity: .65; cursor: wait; }

.treasure-continue-main {
  font-family: var(--font-disp, 'Syne', sans-serif);
  font-size: 16.5px;
  font-weight: 750;
  color: #1a1408;
}

.treasure-continue-sub {
  font-size: 12px;
  font-weight: 600;
  color: rgba(26, 20, 8, 0.75);
}

.treasure-continue-btn.treasure-buy-pulse {
  animation: treasure-buy-pulse 1.4s ease-out 1;
}

@keyframes treasure-buy-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(240, 201, 106, 0.55), 0 10px 28px rgba(212, 168, 67, 0.35);
    transform: scale(1);
  }
  40% {
    box-shadow: 0 0 0 12px rgba(240, 201, 106, 0), 0 14px 34px rgba(212, 168, 67, 0.55);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(240, 201, 106, 0), 0 10px 28px rgba(212, 168, 67, 0.35);
    transform: scale(1);
  }
}

.treasure-packs-link {
  display: block;
  text-align: center;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 12px 0 0;
  cursor: pointer;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 12.5px;
  color: var(--text-md, #9A9390);
  text-decoration: underline;
  text-underline-offset: 3px;
  width: 100%;
}
.treasure-packs-link:hover { color: #F0C96A; }

.treasure-legal {
  margin: 14px 0 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--text-lo, #52504E);
  text-align: center;
}
.treasure-legal a {
  color: var(--text-md, #9A9390);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.treasure-legal a:hover { color: #F0C96A; }

/* ---------------- Details expand (feature list) ---------------- */
.treasure-details-list {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
  padding: 0 16px;
  background: #05060a;
}
.treasure-details-list.open {
  max-height: 340px;
  padding: 6px 16px 8px;
}
.treasure-details-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.treasure-details-item:last-child { border-bottom: 0; }
.treasure-details-item svg {
  width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; color: #F0C96A;
}
.treasure-details-item-text strong {
  display: block;
  font-size: 13px;
  color: var(--text-hi, #F2EEE8);
  font-weight: 650;
}
.treasure-details-item-text span {
  font-size: 12px;
  color: var(--text-md, #9A9390);
  line-height: 1.35;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 520px) {
  .treasure-unlock { max-width: 100%; }
  .treasure-hero { height: 430px; }
}
