:root {
  --void: #120b22;
  --deep: #0a0714;
  --nebula: #1e1233;
  --nebula-2: #2a1b45;
  --parchment: #faf3e6;
  --parchment-dim: #f0e6d2;
  --ink: #241934;
  --ink-soft: #4a3a5c;
  --gold: #c9974b;
  --gold-bright: #e0b871;
  --amethyst: #8c6fc9;
  --amethyst-soft: #b7a4e0;
  --glass: rgba(250, 243, 230, 0.06);
  --glass-line: rgba(224, 184, 113, 0.34);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--deep);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--parchment);
  background:
    radial-gradient(circle at 50% -10%, rgba(140, 111, 201, 0.22), transparent 36rem),
    radial-gradient(circle at 100% 0%, rgba(201, 151, 75, 0.14), transparent 28rem),
    var(--deep);
  font-family: "Work Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

noscript {
  display: block;
  padding: 14px;
  color: var(--parchment);
  text-align: center;
  background: var(--nebula);
}

.quiz-app {
  display: grid;
  min-height: 100svh;
  padding: clamp(12px, 3vw, 28px);
  place-items: center;
}

.quiz-frame {
  position: relative;
  display: grid;
  width: min(100%, 440px);
  min-height: min(760px, calc(100svh - 24px));
  overflow: hidden;
  border: 1px solid rgba(140, 111, 201, 0.18);
  border-radius: clamp(24px, 5vw, 40px);
  background:
    linear-gradient(180deg, rgba(30, 18, 51, 0.36), rgba(18, 11, 34, 0.96)),
    var(--void);
  box-shadow: var(--shadow), 0 0 0 1px rgba(224, 184, 113, 0.08);
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 90px 80px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 150px 40px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 60px 130px, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(2px 2px at 200px 100px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 280px 60px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 320px 160px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 30px 220px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 250px 220px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 340px 280px, rgba(255, 255, 255, 0.4), transparent);
  background-repeat: repeat;
  background-size: 360px 360px;
  opacity: 0.72;
  pointer-events: none;
}

.quiz-screen {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  overflow-y: auto;
  padding: clamp(24px, 6vw, 34px) clamp(20px, 5.8vw, 28px);
}

.screen-content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.screen-center {
  justify-content: center;
}

.screen-spread {
  justify-content: space-between;
}

.screen-stack {
  display: grid;
  gap: 16px;
}

.center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amethyst-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.display {
  margin: 0 0 14px;
  color: var(--parchment);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(31px, 9.4vw, 43px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
}

.body-text {
  margin: 0;
  color: rgba(250, 243, 230, 0.77);
  font-size: clamp(14.5px, 3.9vw, 16px);
  line-height: 1.62;
}

.body-text + .body-text {
  margin-top: 12px;
}

.muted {
  color: rgba(250, 243, 230, 0.58);
}

.constellation {
  margin: 0 auto 22px;
}

.constellation-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.progress-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(250, 243, 230, 0.16);
}

.progress-dot.done {
  background: var(--gold-bright);
  box-shadow: 0 0 7px rgba(224, 184, 113, 0.72);
}

.progress-line {
  width: clamp(4px, 1.8vw, 12px);
  height: 1px;
  background: rgba(250, 243, 230, 0.16);
}

.progress-line.done {
  background: var(--gold-bright);
  box-shadow: 0 0 6px rgba(224, 184, 113, 0.38);
}

.progress-caption {
  margin-top: 10px;
  color: var(--amethyst-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.mystic-orb {
  position: relative;
  display: grid;
  width: 116px;
  height: 116px;
  margin: 26px auto 0;
  border: 1px solid rgba(224, 184, 113, 0.52);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 28%, rgba(250, 243, 230, 0.32), transparent 12%),
    radial-gradient(circle at 44% 36%, rgba(140, 111, 201, 0.96), rgba(42, 27, 69, 0.96) 64%, rgba(18, 11, 34, 0.92));
  box-shadow:
    0 0 30px rgba(140, 111, 201, 0.32),
    0 0 0 8px rgba(250, 243, 230, 0.03);
  color: var(--gold-bright);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 52px;
  place-items: center;
}

.mystic-orb::before,
.mystic-orb::after {
  position: absolute;
  border: 1px solid rgba(224, 184, 113, 0.28);
  border-radius: 50%;
  content: "";
}

.mystic-orb::before {
  inset: 13px -10px;
  transform: rotate(-18deg);
}

.mystic-orb::after {
  inset: -8px 18px;
  transform: rotate(28deg);
}

.mystic-orb.blurred {
  filter: blur(2px);
  opacity: 0.72;
}

.reveal-face-frame {
  width: min(100%, 250px);
  margin: 22px auto 0;
  overflow: hidden;
  border: 1px solid rgba(224, 184, 113, 0.38);
  border-radius: 22px;
  background: rgba(250, 243, 230, 0.06);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(140, 111, 201, 0.2);
}

.reveal-face-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.option-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.option-button,
.primary-button,
.input-field {
  border: 0;
  border-radius: 999px;
}

.option-button {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  color: var(--parchment);
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  background: var(--glass);
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.option-button:hover,
.option-button:focus-visible {
  border-color: rgba(224, 184, 113, 0.76);
  background: rgba(250, 243, 230, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.option-icon {
  display: grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(250, 243, 230, 0.08);
  font-size: 20px;
  place-items: center;
}

.primary-button {
  width: 100%;
  min-height: 57px;
  padding: 15px 20px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 12px 24px rgba(201, 151, 75, 0.32);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  box-shadow: 0 16px 30px rgba(201, 151, 75, 0.4);
  outline: none;
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: not-allowed;
  filter: saturate(0.65);
  opacity: 0.58;
  transform: none;
}

.offer-actions {
  display: grid;
  gap: 10px;
}

.secondary-button {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  color: var(--parchment);
  border: 1px solid rgba(224, 184, 113, 0.42);
  border-radius: 999px;
  background: rgba(250, 243, 230, 0.06);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: rgba(224, 184, 113, 0.78);
  background: rgba(250, 243, 230, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.form-grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(250, 243, 230, 0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.input-field {
  width: 100%;
  padding: 16px 17px;
  color: var(--parchment);
  border: 1px solid rgba(250, 243, 230, 0.2);
  border-radius: 15px;
  background: rgba(250, 243, 230, 0.08);
  outline: none;
}

.input-field:focus {
  border-color: rgba(224, 184, 113, 0.72);
  box-shadow: 0 0 0 3px rgba(224, 184, 113, 0.12);
}

.input-field::placeholder {
  color: rgba(250, 243, 230, 0.38);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin: 22px 0 18px;
}

.tarot-card {
  position: relative;
  display: grid;
  aspect-ratio: 2 / 3;
  min-height: 122px;
  overflow: hidden;
  color: var(--gold-bright);
  border: 1px solid rgba(224, 184, 113, 0.32);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(42, 27, 69, 0.98), rgba(30, 18, 51, 0.98)),
    var(--nebula);
  cursor: pointer;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  place-items: center;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.tarot-card::before {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(224, 184, 113, 0.22);
  border-radius: 7px;
  content: "";
}

.tarot-card::after {
  position: absolute;
  width: 52%;
  height: 52%;
  border: 1px solid rgba(224, 184, 113, 0.18);
  border-radius: 50%;
  content: "";
}

.tarot-card span {
  position: relative;
  z-index: 1;
}

.tarot-card:hover,
.tarot-card:focus-visible,
.tarot-card.selected {
  border-color: var(--gold-bright);
  box-shadow: 0 0 18px rgba(224, 184, 113, 0.32);
  outline: none;
  transform: translateY(-2px);
}

.tarot-card:disabled {
  cursor: default;
}

.selection-note {
  min-height: 22px;
  margin: 0;
  color: rgba(250, 243, 230, 0.6);
  font-size: 13px;
  text-align: center;
}

.loading-wrap {
  display: grid;
  gap: 22px;
  text-align: center;
}

.loading-ring {
  width: 108px;
  height: 108px;
  margin: 0 auto;
  border: 2px solid rgba(224, 184, 113, 0.2);
  border-radius: 50%;
  border-top-color: var(--gold-bright);
  animation: spin 1.4s linear infinite;
}

.loading-phrase {
  min-height: 52px;
  color: rgba(250, 243, 230, 0.78);
  font-size: 15px;
  line-height: 1.55;
}

.loading-bar {
  width: min(100%, 260px);
  height: 8px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(250, 243, 230, 0.1);
}

.loading-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  animation: loadFill 5s ease forwards;
  transform-origin: left;
}

.testimonial-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  color: var(--ink);
  border-radius: 20px;
  background: var(--parchment);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.testimonial-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.58;
}

.testimonial-card strong {
  color: var(--ink);
}

.social-proof-frame {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(224, 184, 113, 0.24);
  border-radius: 18px;
  background: rgba(250, 243, 230, 0.06);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.social-proof-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.inline-price {
  color: var(--gold-bright);
  font-weight: 700;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 8px;
}

.price-old {
  color: rgba(250, 243, 230, 0.43);
  font-size: 15px;
  text-decoration: line-through;
}

.price-new {
  color: var(--gold-bright);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(38px, 11vw, 52px);
  font-weight: 700;
  line-height: 1;
}

.bonus-list {
  display: grid;
  gap: 0;
  margin: 18px 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.bonus-list li {
  padding: 10px 0;
  color: rgba(250, 243, 230, 0.82);
  border-bottom: 1px solid rgba(250, 243, 230, 0.09);
  font-size: 13.4px;
  line-height: 1.42;
}

.guarantee {
  margin: 0 0 18px;
  padding: 12px 14px;
  color: rgba(250, 243, 230, 0.78);
  border: 1px solid rgba(224, 184, 113, 0.24);
  border-radius: 16px;
  background: rgba(250, 243, 230, 0.06);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  max-width: min(340px, calc(100vw - 32px));
  padding: 12px 14px;
  color: var(--ink);
  border-radius: 14px;
  background: var(--parchment);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  font-size: 14px;
}

.panel-mode .quiz-frame {
  width: min(100%, 980px);
  min-height: min(760px, calc(100svh - 24px));
}

.panel-shell {
  display: grid;
  gap: 22px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-link {
  padding: 10px 14px;
  color: var(--parchment);
  border: 1px solid rgba(224, 184, 113, 0.36);
  border-radius: 999px;
  background: rgba(250, 243, 230, 0.06);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.panel-warning {
  padding: 13px 15px;
  color: var(--parchment);
  border: 1px solid rgba(224, 184, 113, 0.32);
  border-radius: 14px;
  background: rgba(250, 243, 230, 0.08);
  font-size: 14px;
  line-height: 1.45;
}

.panel-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) minmax(160px, 220px) minmax(140px, 180px);
  gap: 10px;
  align-items: center;
}

.panel-login .body-text {
  font-size: 13.5px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(224, 184, 113, 0.22);
  border-radius: 16px;
  background: rgba(250, 243, 230, 0.07);
}

.metric-card span {
  color: rgba(250, 243, 230, 0.68);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-card strong {
  color: var(--gold-bright);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 7vw, 52px);
  line-height: 0.95;
}

.panel-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(224, 184, 113, 0.2);
  border-radius: 16px;
  background: rgba(250, 243, 230, 0.05);
}

.panel-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.panel-table th,
.panel-table td {
  padding: 12px 13px;
  border-bottom: 1px solid rgba(250, 243, 230, 0.08);
  color: rgba(250, 243, 230, 0.76);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  vertical-align: top;
}

.panel-table th {
  color: var(--amethyst-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loadFill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (max-width: 520px) {
  .quiz-app {
    min-height: 100svh;
    padding: 0;
  }

  .quiz-frame {
    width: 100%;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .quiz-screen {
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .tarot-card {
    min-height: 116px;
  }

  .panel-header,
  .panel-login {
    grid-template-columns: 1fr;
  }

  .panel-header {
    display: grid;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .cards-grid {
    gap: 8px;
  }

  .tarot-card {
    min-height: 104px;
  }

  .bonus-list li {
    font-size: 12.7px;
  }
}
