@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');


*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


:root {
  --bg: #06080f;
  --surface: rgba(255, 255, 255, .04);
  --surface-hover: rgba(255, 255, 255, .07);
  --glass: rgba(255, 255, 255, .06);
  --glass-border: rgba(255, 255, 255, .1);
  --accent: #7c5cfc;
  --accent-2: #a78bfa;
  --accent-3: #c4b5fd;
  --accent-glow: rgba(124, 92, 252, .3);
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --green: #34d399;
  --green-deep: #059669;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --muted: #64748b;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --duration: .3s;
}

html {
  min-width: 320px;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
a,
.option-item {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(124, 92, 252, .15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(34, 211, 238, .08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(251, 191, 36, .05) 0%, transparent 50%);
  animation: bgShift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes bgShift {
  0% {
    opacity: .7;
    filter: hue-rotate(0deg);
  }

  100% {
    opacity: 1;
    filter: hue-rotate(20deg);
  }
}

body::after {
  content: '';
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 252, .12) 0%, transparent 70%);
  top: -80px;
  right: -80px;
  z-index: 0;
  animation: floatOrb 8s ease-in-out infinite alternate;
  pointer-events: none;
}


.bg-symbols {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-symbol {
  position: absolute;
  user-select: none;
  opacity: .17;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .22));
  transform-origin: center;
  animation: symbolDrift 11s ease-in-out infinite alternate;
}

.sym-cherries { width: 76px; top: 7%; left: 3%; transform: rotate(-10deg); animation-duration: 10s; }
.sym-diamond { width: 82px; top: 10%; right: 6%; transform: rotate(8deg); animation-duration: 12s; }
.sym-seven { width: 66px; top: 58%; left: 5%; transform: rotate(-10deg); animation-duration: 9s; }
.sym-bell { width: 64px; bottom: 18%; left: 8%; transform: rotate(-12deg); animation-duration: 11s; }
.sym-crown { width: 74px; bottom: 8%; right: 18%; transform: rotate(8deg); animation-duration: 13s; }
.sym-grapes { width: 70px; bottom: 12%; left: 24%; transform: rotate(-5deg); animation-duration: 10.5s; }
.sym-slot { width: 98px; bottom: 8%; right: 4%; transform: rotate(8deg); opacity: .14; animation-duration: 14s; }
.sym-strawberry { width: 70px; top: 28%; left: 1.5%; transform: rotate(-8deg); animation-duration: 10.8s; }
.sym-clover { width: 66px; top: 16%; left: 11%; transform: rotate(7deg); opacity: .16; animation-duration: 9.5s; }
.sym-coins { width: 74px; top: 44%; right: 2.5%; transform: rotate(9deg); opacity: .15; animation-duration: 12.5s; }
.sym-horseshoe { width: 68px; bottom: 28%; right: 7%; transform: rotate(-8deg); opacity: .14; animation-duration: 11.4s; }
.sym-dice { width: 62px; bottom: 24%; left: 16%; transform: rotate(10deg); opacity: .15; animation-duration: 9.6s; }
.sym-bar { width: 64px; top: 34%; right: 8%; transform: rotate(-6deg); opacity: .14; animation-duration: 13s; }

@keyframes symbolDrift {
  0% { transform: translate3d(0,0,0) rotate(var(--rot, 0deg)) scale(1); }
  50% { transform: translate3d(6px,-10px,0) rotate(calc(var(--rot, 0deg) + 5deg)) scale(1.04); }
  100% { transform: translate3d(-8px,12px,0) rotate(calc(var(--rot, 0deg) - 6deg)) scale(.98); }
}

@keyframes symbolPulse {
  0%,100% { opacity: .12; }
  50% { opacity: .2; }
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-40px, 60px) scale(1.15);
  }
}


.quiz-wrapper {
  width: 100%;
  max-width: 600px;
  min-height: calc(100dvh - 48px);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-wrapper > .screen {
  width: 100%;
}

.screen {
  display: none;
  animation: screenIn .5s var(--ease) both;
}

.screen.active {
  display: flex;
  flex-direction: column;
  gap: 24px;
}


@keyframes cardDecorFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(8px); }
}

@keyframes cardDecorFloatB {
  0% { transform: translateX(0); }
  100% { transform: translateX(-6px); }
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.screen:not(#screen-intro):not(#screen-result) {
  position: relative;
  overflow: hidden;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.screen:not(#screen-intro):not(#screen-result)::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .14;
  background-image:
    url('../assets/symbols/diamond.png'),
    url('../assets/symbols/cherries.png'),
    url('../assets/symbols/clover.png'),
    url('../assets/symbols/coins.png');
  background-repeat: no-repeat;
  background-size: 44px, 48px, 42px, 46px;
  background-position: right 18px top 18px, left 14px bottom 24px, left 22px top 18px, right 16px bottom 16px;
  animation: cardDecorFloat 10s ease-in-out infinite alternate;
}

.screen:not(#screen-intro):not(#screen-result)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .08;
  background-image:
    url('../assets/symbols/seven.png'),
    url('../assets/symbols/bar.png'),
    url('../assets/symbols/grapes.png');
  background-repeat: no-repeat;
  background-size: 52px, 48px, 44px;
  background-position: left -8px center, right -6px 34%, center calc(100% - 18px);
  animation: cardDecorFloatB 12s ease-in-out infinite alternate;
}

.screen:not(#screen-intro):not(#screen-result) > * {
  position: relative;
  z-index: 1;
}


#screen-intro {
  align-items: center;
  text-align: center;
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 92, 252, .12);
  border: 1px solid rgba(124, 92, 252, .3);
  color: var(--accent-2);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
}

.intro-title {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #fff 0%, var(--accent-2) 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 520px;
}

.intro-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 460px;
  line-height: 1.7;
}

.bonus-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: .95rem;
  color: var(--text-secondary);
  max-width: 480px;
  text-align: left;
}

.bonus-box strong {
  color: var(--text);
}

.bonus-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.progress-bar {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, .06);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--cyan) 100%);
  border-radius: var(--radius-pill);
  transition: width .6s var(--ease);
  box-shadow: 0 0 12px rgba(124, 92, 252, .4);
}

.progress-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: .04em;
}

.question-title {
  font-size: clamp(1.05rem, 3.2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -.01em;
}

.insight-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251, 191, 36, .1);
  border: 1px solid rgba(251, 191, 36, .25);
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

.options {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1.5px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  padding: 15px 18px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    border-color var(--duration) var(--ease),
    background var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    color var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
  user-select: none;
  min-height: 58px;
}

.option-item::before {
  content: attr(data-letter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1.5px solid rgba(255, 255, 255, .1);
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  transition:
    background var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.option-item:hover {
  border-color: rgba(124, 92, 252, .4);
  background: rgba(124, 92, 252, .06);
  color: var(--text);
  transform: translateX(4px);
}

.option-item:hover::before {
  border-color: rgba(124, 92, 252, .4);
  background: rgba(124, 92, 252, .12);
  color: var(--accent-3);
}

.option-item.selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(124, 92, 252, .14) 0%, rgba(34, 211, 238, .06) 100%);
  color: var(--text);
  box-shadow:
    0 0 0 1px rgba(124, 92, 252, .25),
    0 8px 32px rgba(124, 92, 252, .15);
}

.option-item.selected::before {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
  transform: scale(1.05);
}

.option-item.selected::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      transparent 40%,
      rgba(255, 255, 255, .06) 45%,
      rgba(255, 255, 255, .06) 55%,
      transparent 60%);
  animation: shimmer 2.5s ease infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.option-item:active {
  transform: scale(.985);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.btn-next {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  padding: 14px 28px;
  letter-spacing: .01em;
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    background var(--duration) var(--ease);
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
}

.btn:focus-visible,
.option-item:focus-visible,
.result-explanation summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.btn:active {
  transform: scale(.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #6d28d9 50%, var(--accent-2) 100%);
  background-size: 200% 200%;
  animation: gradientMove 4s ease infinite;
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
  flex: 1;
}

@keyframes gradientMove {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.btn-primary:hover {
  box-shadow: 0 8px 36px rgba(124, 92, 252, .45);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, .04);
  color: var(--text-secondary);
  border: 1.5px solid rgba(255, 255, 255, .1);
  padding: 13px 20px;
  flex-shrink: 0;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, .2);
  color: var(--text);
  background: rgba(255, 255, 255, .07);
}

#btn-start {
  width: 100%;
  padding: 18px;
  font-size: 1.1rem;
  border-radius: var(--radius);
  max-width: 360px;
}

#screen-result {
  align-items: center;
  text-align: center;
}

.result-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 20px rgba(52, 211, 153, .5));
  animation: popBounce .6s var(--ease) both;
}

@keyframes popBounce {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  60% {
    transform: scale(1.15);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

.result-heading {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #fff 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 480px;
}

.result-card {
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  max-width: 520px;
  width: 100%;
}

.result-profile-panel,
.result-preferences,
.result-offer-panel,
.result-explanation {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
}

.result-profile-panel,
.result-preferences,
.result-offer-panel {
  padding: 20px;
}

.result-profile-panel {
  background: rgba(52, 211, 153, .055);
  border-left: 3px solid var(--green);
}

.result-section-label {
  display: block;
  margin-bottom: 7px;
  color: var(--green);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.result-section-label-gold {
  color: var(--gold);
}

.result-verdict {
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-verdict::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, .6);
  flex-shrink: 0;
}

.result-secondary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

.result-preferences {
  background: rgba(255, 255, 255, .025);
}

.result-preferences h3,
.result-offer-panel h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.05rem;
}

.result-preference-list {
  display: grid;
  gap: 9px;
}

.result-preference-list > div {
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
}

.result-preference-list dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.result-preference-list dd {
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.45;
}

.result-explanation {
  overflow: hidden;
  background: rgba(255, 255, 255, .025);
}

.result-explanation summary {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-size: .9rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.result-explanation summary::-webkit-details-marker {
  display: none;
}

.result-explanation summary::after {
  content: '+';
  color: var(--accent-3);
  font-size: 1.2rem;
}

.result-explanation[open] summary::after {
  content: '−';
}

.result-explanation p {
  padding: 0 16px 16px;
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.6;
}

.result-offer-panel {
  border-color: rgba(251, 191, 36, .24);
  background: linear-gradient(145deg, rgba(251, 191, 36, .075), rgba(124, 92, 252, .045));
}

.result-priority {
  margin-bottom: 13px;
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.5;
}

.result-priority strong {
  color: var(--text);
}

.result-bonus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.result-bonus-value {
  min-width: 0;
  padding: 14px 10px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(251, 191, 36, .2);
  border-radius: 13px;
  background: rgba(7, 10, 20, .34);
  text-align: center;
}

.result-bonus-value strong {
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1.15;
}

.result-bonus-value span {
  color: var(--text-secondary);
  font-size: .78rem;
  line-height: 1.3;
}

.result-body {
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.7;
}

.result-body strong {
  color: var(--text);
  font-weight: 600;
}

.result-cta-hint {
  color: var(--muted);
  font-size: .88rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding-top: 16px;
  margin-top: 4px;
}


.result-actions {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.result-bonus-note {
  width: 100%;
  text-align: center;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: rgba(251, 191, 36, .08);
  border: 1px solid rgba(251, 191, 36, .22);
  box-shadow: 0 8px 28px rgba(251, 191, 36, .08);
}

.btn-install {
  width: 100%;
  max-width: 360px;
  padding: 18px;
  font-size: 1.1rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  background-size: 200% 200%;
  animation: gradientMove 4s ease infinite;
  box-shadow: 0 4px 28px rgba(52, 211, 153, .35);
  color: #fff;
}

.btn-install:hover {
  box-shadow: 0 8px 40px rgba(52, 211, 153, .5);
  transform: translateY(-2px);
}

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(30, 27, 75, .9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(124, 92, 252, .3);
  color: var(--accent-3);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .88rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  pointer-events: none;
  transition: transform .35s var(--ease), opacity .35s;
  opacity: 0;
  z-index: 9999;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

.shake {
  animation: shake .45s ease both;
}



.footer-spacer {
  width: 100%;
  height: 72px;
  flex: 0 0 auto;
  pointer-events: none;
}

.site-footer {
  width: 100%;
  max-width: 760px;
  position: relative;
  z-index: 1;
  padding: 0 0 max(28px, env(safe-area-inset-bottom));
}

.footer-card {
  width: 100%;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.025);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.footer-brand {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(241,245,249,.7);
  margin-bottom: 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px 28px;
}

.footer-item {
  min-width: 0;
  color: rgba(148,163,184,.7);
  font-size: .78rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.footer-label {
  display: block;
  margin-bottom: 4px;
  color: rgba(100,116,139,.72);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-item a {
  color: rgba(196,181,253,.8);
  text-decoration: none;
  border-bottom: 1px solid rgba(196,181,253,.18);
}

.footer-item a:hover {
  color: var(--text);
  border-bottom-color: rgba(196,181,253,.5);
}

.footer-address {
  grid-column: 1 / -1;
}

@media (max-width: 480px) {
  body {
    padding: max(16px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 18px max(10px, env(safe-area-inset-left));
  }

  body.result-screen-active {
    padding-bottom: max(104px, calc(86px + env(safe-area-inset-bottom)));
  }

  .screen:not(#screen-intro):not(#screen-result) {
    padding: 24px 18px;
    border-radius: var(--radius);
  }

  .nav-row {
    flex-direction: column-reverse;
  }

  .btn-outline,
  .btn-primary {
    width: 100%;
  }

  .option-item {
    min-height: 60px;
    padding: 14px;
    font-size: 1rem;
    line-height: 1.45;
  }

  .btn {
    min-height: 52px;
    font-size: 1rem;
  }

  .intro-title {
    font-size: 1.5rem;
  }


  .bg-symbol {
    opacity: .13;
  }

  .sym-cherries { width: 56px; top: 7%; left: 2%; }
  .sym-diamond { width: 60px; top: 11%; right: 3%; }
  .sym-seven { width: 50px; top: 61%; left: 2.5%; }
  .sym-bell { width: 48px; bottom: 18%; left: 3%; }
  .sym-crown { width: 56px; bottom: 7%; right: 12%; }
  .sym-grapes { width: 52px; bottom: 12%; left: 20%; }
  .sym-slot { width: 74px; bottom: 8%; right: 1%; opacity: .11; }
  .sym-strawberry { width: 52px; top: 30%; left: .5%; }
  .sym-clover { width: 50px; top: 15%; left: 9%; }
  .sym-coins { width: 54px; top: 44%; right: .5%; }
  .sym-horseshoe { width: 50px; bottom: 29%; right: 3%; }
  .sym-dice { width: 44px; bottom: 24%; left: 11%; }
  .sym-bar { width: 46px; top: 34%; right: 5%; }

  .screen:not(#screen-intro):not(#screen-result)::before {
    opacity: .18;
    background-size: 32px, 36px, 32px, 34px;
    background-position: right 8px top 10px, left 6px bottom 14px, left 10px top 10px, right 8px bottom 10px;
  }

  .screen:not(#screen-intro):not(#screen-result)::after {
    opacity: .1;
    background-size: 36px, 34px, 32px;
    background-position: left -8px center, right -8px 32%, center calc(100% - 12px);
  }

  .result-card {
    padding: 20px 16px;
  }

  .result-profile-panel,
  .result-preferences,
  .result-offer-panel {
    padding: 17px 15px;
  }

  .footer-spacer {
    height: 84px;
  }

  body.result-screen-active .btn-install {
    position: fixed;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    z-index: 1000;
    width: auto;
    max-width: 576px;
    min-height: 58px;
    margin-inline: auto;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 12px 36px rgba(5, 150, 105, .48);
  }

  .site-footer {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .footer-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-address {
    grid-column: auto;
  }

}

@media (max-width: 360px) {
  .result-bonus-grid {
    grid-template-columns: 1fr;
  }
}

/* Approved result-screen layout. */
.result-complete {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 14px;
  border: 1px solid rgba(52, 211, 153, .35);
  border-radius: var(--radius-pill);
  background: rgba(52, 211, 153, .1);
  color: #86efac;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#screen-result .result-heading {
  max-width: 560px;
  background: none;
  color: var(--text);
  -webkit-text-fill-color: currentColor;
  background-clip: border-box;
}

#screen-result .result-card {
  gap: 18px;
}

#screen-result .result-profile-panel {
  border-left: 4px solid var(--green);
  background: rgba(20, 25, 42, .92);
}

#screen-result .result-verdict::before {
  display: none;
}

#screen-result .result-verdict {
  display: block;
  margin-bottom: 10px;
}

#screen-result .result-preferences {
  background: rgba(20, 25, 42, .92);
}

#screen-result .result-preference-list > div {
  padding: 12px 14px;
  background: rgba(255, 255, 255, .045);
}

#screen-result .result-preference-list dd {
  color: var(--text);
  font-weight: 650;
}

#screen-result .result-offer-panel {
  background: linear-gradient(150deg, rgba(251, 191, 36, .11), rgba(20, 25, 42, .94) 48%);
}

#screen-result .result-offer-panel .btn-install {
  width: 100%;
  max-width: none;
  margin-top: 16px;
}

#screen-result .result-offer-panel .result-cta-hint {
  margin: 11px auto 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
  text-align: center;
}

#screen-result .result-explanation {
  order: 4;
  background: rgba(20, 25, 42, .68);
}

.text-button {
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.text-button:hover {
  color: var(--text);
}

.text-button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .result-complete {
    font-size: .74rem;
  }

  #screen-result .result-card {
    gap: 14px;
  }

  #screen-result .result-offer-panel .btn-install {
    margin-top: 0;
  }
}

@media (hover: none) {
  .option-item:hover,
  .btn-primary:hover,
  .btn-install:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Final visual treatment, matched to the approved full redesign. */
body {
  background:
    radial-gradient(circle at 10% 5%, rgba(139, 92, 246, .18), transparent 34rem),
    radial-gradient(circle at 90% 90%, rgba(34, 211, 238, .1), transparent 32rem),
    #080b14;
}

body::before,
body::after {
  display: none;
}

.quiz-wrapper {
  max-width: 620px;
}

.bg-symbol {
  width: clamp(54px, 7vw, 92px);
  opacity: .09;
  filter: saturate(.8) drop-shadow(0 12px 24px rgba(0, 0, 0, .25));
}

.sym-cherries { top: 8%; left: 3%; }
.sym-diamond { top: 15%; right: 4%; }
.sym-seven { top: auto; bottom: 14%; left: 5%; }
.sym-clover { top: auto; right: 6%; bottom: 8%; left: auto; }
.sym-bell,
.sym-crown,
.sym-grapes,
.sym-slot,
.sym-strawberry,
.sym-coins,
.sym-horseshoe,
.sym-dice,
.sym-bar {
  display: none;
}

#screen-intro,
#screen-result {
  gap: 18px;
}

.brand-mark {
  width: 82px;
  height: 82px;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark--result {
  width: 72px;
  height: 72px;
  border-radius: 21px;
}

.intro-badge {
  min-height: 30px;
  padding: 6px 14px;
  border-color: rgba(139, 92, 246, .35);
  background: rgba(139, 92, 246, .12);
  color: #c4b5fd;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.intro-title {
  max-width: 560px;
  font-size: clamp(2rem, 8vw, 3.15rem);
  line-height: 1.07;
  letter-spacing: -.045em;
  background: none;
  color: var(--text);
  -webkit-text-fill-color: currentColor;
}

.intro-desc {
  max-width: 500px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.bonus-box {
  width: min(100%, 470px);
  padding: 17px 20px;
  display: grid;
  gap: 4px;
  border-color: rgba(251, 191, 36, .3);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(251, 191, 36, .1), rgba(139, 92, 246, .08));
  text-align: center;
}

.bonus-box strong {
  color: #fcd34d;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bonus-box > span {
  display: grid;
  gap: 8px;
}

.bonus-box > span > span {
  color: var(--text);
  font-size: clamp(1.25rem, 6vw, 1.65rem);
  font-weight: 850;
  line-height: 1.25;
}

.privacy-note {
  max-width: 500px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

#btn-start {
  max-width: 390px;
  min-height: 56px;
  border-radius: 16px;
}

.screen:not(#screen-intro):not(#screen-result) {
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.screen.active:not(#screen-intro):not(#screen-result) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "back count"
    "progress progress"
    "card card";
  gap: 12px 18px;
}

.screen:not(#screen-intro):not(#screen-result)::before,
.screen:not(#screen-intro):not(#screen-result)::after {
  display: none;
}

.screen:not(#screen-intro):not(#screen-result) .nav-row {
  grid-area: back;
  width: 100%;
  margin: 0;
  justify-content: flex-start;
}

.screen:not(#screen-intro):not(#screen-result) .progress-wrap {
  display: contents;
}

.screen:not(#screen-intro):not(#screen-result) .progress-bar {
  grid-area: progress;
}

.screen:not(#screen-intro):not(#screen-result) .progress-label {
  grid-area: count;
  align-self: center;
  font-size: .92rem;
}

.question-card {
  grid-area: card;
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 22px;
  background: rgba(20, 25, 42, .92);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

.question-kicker {
  margin-bottom: 14px;
  color: #c4b5fd;
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-row .btn-back {
  width: auto;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  box-shadow: none;
}

.nav-row .btn-back:hover {
  background: transparent;
  color: var(--text);
}

.progress-bar {
  height: 7px;
  background: rgba(255, 255, 255, .08);
}

.question-title {
  margin: 0 0 24px;
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  line-height: 1.3;
  letter-spacing: -.02em;
}

.options {
  gap: 11px;
}

.option-item {
  min-height: 58px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  color: #a7b0c2;
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.42;
}

.option-item::before {
  content: '';
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 2px solid rgba(255, 255, 255, .26);
  border-radius: 50%;
  background: transparent;
}

.option-item:hover {
  border-color: rgba(139, 92, 246, .55);
  background: rgba(139, 92, 246, .07);
  color: var(--text);
  transform: none;
}

.option-item.selected {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, .14);
  color: var(--text);
  transform: translateX(2px);
}

.option-item.selected::before {
  border: 6px solid #8b5cf6;
  background: #fff;
  color: transparent;
  transform: none;
}

.option-item.selected::after {
  display: none;
}

#screen-result {
  padding-top: 10px;
}

.result-heading {
  max-width: 560px;
  font-size: clamp(1.9rem, 7vw, 2.8rem);
  line-height: 1.07;
  letter-spacing: -.045em;
}

.result-card {
  max-width: 620px;
  padding: 0;
  gap: 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.result-profile-panel,
.result-preferences,
.result-offer-panel,
.result-explanation {
  padding: clamp(20px, 5vw, 28px);
  border-color: rgba(255, 255, 255, .11);
  border-radius: 22px;
  background: rgba(20, 25, 42, .92);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .3);
}

.result-profile-panel {
  order: 1;
  border-left: 4px solid var(--green);
}

.result-preferences {
  order: 2;
  box-shadow: none;
}

.result-offer-panel {
  order: 3;
  border-color: rgba(251, 191, 36, .32);
  background: linear-gradient(150deg, rgba(251, 191, 36, .11), rgba(20, 25, 42, .94) 48%);
}

.result-cta-hint {
  order: 4;
}

.result-deposit-note {
  order: 5;
}

.result-explanation {
  order: 6;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
}

.result-verdict,
.result-preferences h3,
.result-offer-panel h3 {
  font-size: 1.35rem;
}

.result-preference-list dd,
.result-body,
.result-explanation p {
  font-size: 1rem;
}

.result-bonus-value {
  padding: 16px 10px;
  border-radius: 15px;
  background: rgba(8, 11, 20, .48);
}

.result-bonus-value strong {
  font-size: clamp(1.45rem, 7vw, 2rem);
}

.footer-card {
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (max-width: 480px) {
  .brand-mark {
    width: 70px;
    height: 70px;
    border-radius: 20px;
  }

  .brand-mark--result {
    width: 66px;
    height: 66px;
  }

  .intro-title {
    font-size: clamp(1.95rem, 10vw, 2.55rem);
  }

  .screen:not(#screen-intro):not(#screen-result) {
    padding: 0;
    border-radius: 0;
  }

  .nav-row {
    flex-direction: row;
  }

  .option-item {
    padding: 14px;
  }

  .question-card {
    padding: 22px 16px;
    border-radius: 18px;
  }

  .result-profile-panel,
  .result-preferences,
  .result-offer-panel {
    padding: 20px;
    border-radius: 18px;
  }
}
