/* =====================================================
   FIND YOUR CALM GLASS OVERRIDE
   Final visual layer for the quiz page.
===================================================== */

:root {
  --quiz-ink: rgba(255, 248, 255, 0.96);
  --quiz-soft: rgba(255, 238, 250, 0.78);
  --quiz-muted: rgba(255, 231, 248, 0.58);
  --quiz-line: rgba(255, 238, 255, 0.30);
  --quiz-line-bright: rgba(255, 242, 255, 0.54);
  --quiz-glass: rgba(255, 255, 255, 0.065);
  --quiz-glass-strong: rgba(255, 255, 255, 0.13);
}

html {
  min-height: 100%;
  background-color: #18143a;
  background-image: url("/assets/hand-desktop-bg.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: transparent !important;
  color: var(--quiz-ink) !important;
  font-family: "IM Fell English", Georgia, serif !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: url("/assets/hand-desktop-bg.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 231, 248, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(12, 16, 46, 0.42), rgba(62, 35, 86, 0.20) 44%, rgba(18, 15, 48, 0.64));
  pointer-events: none;
}

.yuna-bg {
  display: none !important;
}

.site-logo {
  position: fixed;
  top: 24px;
  left: 28px;
  z-index: 20;
  width: clamp(72px, 7vw, 96px);
  height: clamp(72px, 7vw, 96px);
}

.site-logo a,
.site-logo img {
  display: block;
  width: 100%;
  height: 100%;
}

.site-logo img {
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 0 18px rgba(255, 220, 245, 0.20));
}

.quiz-wrapper {
  max-width: 760px !important;
  padding: clamp(5.8rem, 9vh, 7rem) clamp(18px, 4vw, 32px) 5rem !important;
}

.quiz-container {
  position: relative;
  overflow: hidden;
  border-radius: 32px !important;
  border: 1px solid var(--quiz-line) !important;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.18), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(255, 205, 235, 0.11), transparent 32%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.052) 48%, rgba(183, 153, 221, 0.10)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    inset 18px 18px 46px rgba(255, 255, 255, 0.038),
    0 30px 82px rgba(17, 13, 48, 0.30) !important;
  backdrop-filter: blur(9px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(9px) saturate(150%) !important;
}

.quiz-container::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 31px;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(118deg, transparent 16%, rgba(255, 255, 255, 0.10) 42%, transparent 62%);
  opacity: 0.62;
  pointer-events: none;
}

.quiz-container > * {
  position: relative;
  z-index: 1;
}

h1,
.question-text,
.result-title,
.result-archetype,
.freq-result-hz,
.freq-result-name,
.promo-gift {
  color: var(--quiz-ink) !important;
  text-shadow: 0 0 24px rgba(255, 224, 248, 0.18) !important;
}

h1 {
  font-family: "Cinzel Decorative", Georgia, serif !important;
  font-size: clamp(2rem, 5vw, 2.8rem) !important;
  line-height: 1.1 !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
}

.subtitle,
.question-number,
.freq-result-label,
.freq-detail-label,
.promo-label,
.promo-expires,
.ios-text {
  color: var(--quiz-muted) !important;
  font-family: Cinzel, Georgia, serif !important;
}

.intro-text,
.result-description,
.freq-result-desc,
.freq-detail-value,
.option-text,
.copied-msg {
  color: var(--quiz-soft) !important;
}

.progress-bar {
  height: 7px !important;
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 238, 255, 0.18) !important;
  border-radius: 999px !important;
}

.progress-fill {
  background: linear-gradient(90deg, rgba(255, 241, 255, 0.70), rgba(255, 205, 235, 0.58), rgba(197, 188, 255, 0.62)) !important;
  box-shadow: 0 0 20px rgba(255, 224, 248, 0.22) !important;
}

.option,
.freq-result-card,
.promo-box,
.freq-detail,
.android-badge,
.cta-btn,
.waitlist-btn,
.freq-explore-btn,
.promo-code {
  border: 1px solid rgba(255, 238, 255, 0.24) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.15), transparent 32%),
    rgba(255, 255, 255, 0.065) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 14px 36px rgba(17, 13, 48, 0.12) !important;
  backdrop-filter: blur(7px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(7px) saturate(140%) !important;
}

.option {
  border-radius: 18px !important;
}

.option:hover {
  border-color: var(--quiz-line-bright) !important;
  transform: translateY(-2px) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 18px 44px rgba(17, 13, 48, 0.18) !important;
}

.option.selected {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.20), transparent 32%),
    linear-gradient(135deg, rgba(255, 219, 242, 0.16), rgba(197, 188, 255, 0.12)) !important;
  border-color: rgba(255, 248, 255, 0.62) !important;
}

.option-icon {
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 238, 255, 0.22) !important;
  color: var(--quiz-ink) !important;
}

.result-icon {
  filter: drop-shadow(0 0 18px rgba(255, 220, 245, 0.24));
}

.result-archetype {
  font-family: Cinzel, Georgia, serif !important;
  font-size: 1rem !important;
  letter-spacing: 0.20em !important;
}

.freq-result-card,
.promo-box {
  border-radius: 24px !important;
}

.freq-result-card::before {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 231, 248, 0.16), transparent 34%),
    linear-gradient(180deg, transparent, rgba(65, 34, 92, 0.10)) !important;
}

.freq-result-hz .hz-number,
.freq-result-hz .hz-unit,
.freq-result-name {
  color: var(--quiz-ink) !important;
}

.freq-result-desc {
  color: var(--quiz-soft) !important;
}

.freq-detail {
  border-radius: 14px !important;
}

.promo-code {
  color: var(--quiz-ink) !important;
  border-radius: 16px !important;
}

.android-badge {
  color: var(--quiz-ink) !important;
  border-radius: 999px !important;
}

.cta-btn,
.waitlist-btn,
.freq-explore-btn {
  color: var(--quiz-ink) !important;
  border-radius: 999px !important;
  text-decoration: none !important;
}

.cta-btn:hover,
.waitlist-btn:hover,
.freq-explore-btn:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: var(--quiz-line-bright) !important;
}

.ios-section {
  border-top-color: rgba(255, 238, 255, 0.16) !important;
}

#cookie-panel {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.16), transparent 32%),
    rgba(66, 43, 98, 0.76) !important;
  border-color: rgba(255, 238, 255, 0.24) !important;
  box-shadow: 0 18px 44px rgba(17, 13, 48, 0.28) !important;
}

#cookie-bubble-btn {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 238, 255, 0.28) !important;
}

@media (max-width: 768px) {
  html,
  body::before {
    background-image: url("/assets/hand-mobile-bg.webp") !important;
  }

  .site-logo {
    top: 14px;
    left: 14px;
    width: 64px;
    height: 64px;
  }

  .quiz-wrapper {
    padding-top: 5.25rem !important;
  }

  .quiz-container {
    border-radius: 24px !important;
  }

  .quiz-container::before {
    border-radius: 23px;
  }

  .option {
    gap: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  .quiz-wrapper {
    padding-inline: 14px !important;
  }

  .quiz-container {
    padding: 2rem 1.2rem !important;
  }

  .freq-result-details {
    grid-template-columns: 1fr !important;
  }
}
