@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #080320;
  --bg-2: #0d0728;
  --bg-3: #171030;
  --text: #f3eeff;
  --text-soft: #ddd3f3;
  --muted: #b3a4d2;
  --muted-2: #897aa8;
  --line: rgba(185, 160, 240, 0.14);
  --line-strong: rgba(200, 170, 255, 0.24);
  --violet: #7a46f2;
  --pink: #d94fae;
  --mint: #55d79a;
  --grad: linear-gradient(102deg, #6732e9 0%, #9b3bd8 48%, #cf4fae 100%);
  --grad-soft: linear-gradient(102deg, rgba(103, 50, 233, 0.26), rgba(207, 79, 174, 0.2));
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58% 38% at 50% 0%, rgba(100, 50, 190, 0.38), transparent 70%),
    radial-gradient(48% 34% at 12% 46%, rgba(45, 20, 110, 0.5), transparent 72%),
    radial-gradient(54% 36% at 92% 82%, rgba(155, 32, 126, 0.24), transparent 72%),
    linear-gradient(180deg, #0a0524 0%, #080320 48%, #0b0428 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  isolation: isolate;
}

.app::after {
  content: "";
  position: fixed;
  left: 50%;
  bottom: -130px;
  z-index: 0;
  width: min(100vw, 540px);
  height: 300px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(80, 12, 168, 0.58), transparent 70%);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 200;
  padding: 9px 14px;
  border-radius: 999px;
  background: #f3eeff;
  color: #1a0b38;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transform: translate(-50%, -180%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline: 2px solid #b786ff;
  outline-offset: 2px;
}

.screen {
  position: relative;
  display: none;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.screen.is-active {
  display: flex;
  animation: screen-in 0.42s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  flex: none;
  width: 100%;
  height: clamp(224px, 29.5vh, 300px);
  overflow: hidden;
  background: #0b0524;
}

.hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.012);
  filter: saturate(1.05) contrast(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 3, 32, 0.2) 0%, transparent 26%, transparent 58%, rgba(9, 4, 30, 0.72) 88%, #0a0524 100%),
    linear-gradient(90deg, rgba(8, 3, 32, 0.18), transparent 20%, transparent 80%, rgba(8, 3, 32, 0.18));
}

.hero--privacy {
  height: clamp(300px, 44.5vh, 430px);
}

.hero--privacy img {
  object-position: center 22%;
}

.hero--privacy::after {
  background:
    linear-gradient(180deg, rgba(8, 3, 32, 0.14) 0%, transparent 34%, rgba(8, 3, 32, 0.4) 72%, #0a0524 100%);
}

/* ---------- quiz content ---------- */

.content {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: 0;
  padding: 0 clamp(24px, 12.5%, 62px) max(20px, env(safe-area-inset-bottom));
}

.screen--text .hero {
  height: clamp(238px, 33.5vh, 330px);
}

.screen--pics .content {
  padding-right: clamp(28px, 15.5%, 74px);
  padding-left: clamp(28px, 15.5%, 74px);
}

.quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
}

.screen--text .quiz-head {
  padding-top: 21px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 620;
  letter-spacing: 0.05em;
  color: #f4efff;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--grad);
  box-shadow: 0 5px 16px rgba(160, 55, 220, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
}

.brand-mark .icon {
  width: 11px;
  height: 11px;
  fill: currentColor;
  stroke: none;
}

.timer-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border: 1px solid rgba(185, 160, 240, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #cfc0ef;
  font-size: 13px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.timer-chip .icon {
  width: 13px;
  height: 13px;
  color: #9c86d5;
}

.progress-meta {
  margin: 6px 0 0;
  color: #a294c1;
  font-size: 12.5px;
  font-weight: 520;
  letter-spacing: 0.06em;
}

.progress {
  height: 8px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #332d4a;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.screen--text .progress {
  width: calc(100% + 38px);
  margin-left: -19px;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6a46f1 0%, #a884f7 62%, #f3f0ff 100%);
  box-shadow: 0 0 14px rgba(158, 120, 255, 0.55);
  transition: width 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.question {
  margin-top: 48px;
  text-align: center;
}

.screen--pics .question {
  margin-top: 26px;
}

.question h2 {
  margin: 0;
  color: #f5f0ff;
  font-size: 19px;
  font-weight: 660;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.q-main {
  max-width: 94%;
  margin: 12px auto 0;
  color: #e8e0fa;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.q-main--sm {
  max-width: 100%;
  margin-top: 0;
  color: #ded4f4;
  font-size: 15px;
  font-weight: 520;
  line-height: 1.6;
}

.screen--pics .question h2 {
  font-size: 16px;
  font-weight: 620;
}

.q-hint {
  margin: 6px auto 0;
  color: #9384b2;
  font-size: 11.5px;
  line-height: 1.7;
}

/* ---------- options ---------- */

.options {
  width: 100%;
  margin: 18px auto 0;
}

.screen--pics .options {
  margin-top: 6px;
}

.options--stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.options--images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 96%;
  margin-top: 23px;
}

.btn {
  position: relative;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  font-size: 17px;
  font-weight: 620;
  line-height: 1.3;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.btn--primary {
  background: var(--grad);
  box-shadow: 0 14px 32px rgba(142, 48, 198, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 -1px 0 rgba(60, 10, 90, 0.18);
  overflow: hidden;
}

.btn--primary::after {
  content: "";
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -30%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn--primary:hover::after {
  left: 115%;
}

.btn--ghost {
  border: 1px solid rgba(185, 160, 240, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: #cbbbf1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

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

.btn:focus-visible,
.image-option:focus-visible,
.logo-cta:focus-visible,
.modal-close:focus-visible,
.retry-link:focus-visible {
  outline: 2px solid #b786ff;
  outline-offset: 3px;
}

.image-option {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  background: #15102b;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.24s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.image-option img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;
}

.image-option::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 2, 20, 0.2) 0%, transparent 24%, transparent 64%, rgba(6, 2, 20, 0.42) 100%);
}

.image-option::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.image-option:hover img {
  transform: scale(1.045);
}

.image-option:active {
  transform: scale(0.975);
}

.image-option.is-selected {
  border-color: rgba(230, 140, 255, 0.8);
  box-shadow: 0 0 0 2px rgba(205, 100, 240, 0.32), 0 16px 34px rgba(130, 30, 170, 0.3);
}

.image-option.is-selected img {
  filter: brightness(1.04) saturate(1.06);
}

.check {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.check .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}

.opt-label {
  position: absolute;
  top: 7px;
  right: 8px;
  z-index: 3;
  padding: 2px 4px;
  border-radius: 6px;
  background: rgba(8, 3, 26, 0.4);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.image-option.is-selected .check {
  opacity: 1;
  transform: scale(1);
}

/* ---------- stepper ---------- */

.stepper-slot {
  display: none;
}

.screen--quiz .content {
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.screen--quiz .stepper {
  position: absolute;
  right: 7%;
  bottom: max(42px, calc(env(safe-area-inset-bottom) + 32px));
  left: 7%;
  z-index: 3;
}

.screen--text .stepper {
  bottom: max(85px, calc(env(safe-area-inset-bottom) + 75px));
}

.screen--quiz[data-step="7"] .stepper {
  bottom: max(156px, calc(env(safe-area-inset-bottom) + 146px));
}

.stepper {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  width: auto;
  align-items: start;
}

.stepper[hidden] {
  display: none;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #71638f;
  text-align: center;
  transition: color 0.3s ease;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.step-icon .icon {
  width: 13px;
  height: 13px;
}

.step-label {
  font-size: 12px;
  font-weight: 520;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.step.is-done {
  color: #a58bd4;
}

.step.is-done .step-icon {
  background: rgba(137, 92, 220, 0.14);
  color: #c3a7ff;
}

.step.is-active {
  color: #f2ebff;
}

.step.is-active .step-icon {
  border-color: rgba(225, 170, 255, 0.34);
  background: linear-gradient(135deg, rgba(112, 62, 236, 0.72), rgba(190, 64, 190, 0.54));
  color: #fff;
  box-shadow: 0 0 18px rgba(162, 76, 255, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

/* ---------- privacy ---------- */

.screen--privacy {
  background: var(--bg);
}

.sheet {
  position: relative;
  z-index: 2;
  flex: 1;
  margin-top: -12px;
  padding: 0 clamp(26px, 15.5%, 66px) max(26px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(205, 175, 255, 0.14);
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, rgba(14, 8, 34, 0.9) 0%, rgba(9, 4, 28, 0.98) 28%, #080320 100%);
  box-shadow: 0 -26px 60px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.timer-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  margin: -17px auto 0;
  padding: 3px 12px;
  border: 1px solid rgba(205, 175, 255, 0.18);
  border-radius: 999px;
  background: #120b30;
  color: #dccdff;
  font-size: 13px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.07em;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.timer-pill .icon {
  width: 13px;
  height: 13px;
  color: #a78bdc;
}

.sheet-inner {
  padding-top: 11px;
  text-align: center;
}

.sheet-title {
  margin: 0;
  color: #f5f0ff;
  font-size: 22px;
  font-weight: 660;
  letter-spacing: 0.02em;
}

.sheet-copy {
  max-width: 34em;
  margin: 12px auto 0;
  color: #b9aad9;
  font-size: 13.5px;
  line-height: 1.7;
}

.sheet-note {
  margin: 13px 0 0;
  color: #8c7dab;
  font-size: 11.5px;
  line-height: 1.7;
}

.badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.badges li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #a99bc8;
  font-size: 12px;
  white-space: nowrap;
}

.badge-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(185, 160, 240, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #c5a8ff;
}

.badge-icon .icon {
  width: 13px;
  height: 13px;
}

.split-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.split-actions .btn {
  min-height: 56px;
  padding: 12px 8px;
  font-size: 16px;
}

/* ---------- finish ---------- */

.screen--finish {
  overflow: hidden;
  background: radial-gradient(70% 48% at 50% 0%, rgba(96, 38, 166, 0.34), transparent 70%), #080320;
}

.finish-bg {
  position: absolute;
  inset: 0 0 auto;
  height: 52%;
  pointer-events: none;
  background: url("assets/hero-privacy.webp") center top / cover no-repeat;
  opacity: 0.22;
  filter: saturate(0.85) brightness(0.94);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.72) 48%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.72) 48%, transparent 100%);
}

.finish-glow {
  position: absolute;
  top: 26%;
  left: 50%;
  width: 120%;
  height: 54%;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(205, 57, 167, 0.22), transparent 58%),
    radial-gradient(ellipse at 50% 68%, rgba(96, 50, 220, 0.2), transparent 62%);
  filter: blur(10px);
}

.finish-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: max(111px, 13.2vh) clamp(28px, 15.5%, 70px) max(30px, env(safe-area-inset-bottom));
  text-align: center;
}

.finish-top {
  width: 100%;
  text-align: center;
}

.finish-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 2px 10px;
  border: 1px solid rgba(190, 160, 255, 0.16);
  border-radius: 999px;
  background: rgba(128, 76, 220, 0.14);
  color: #d8c6ff;
  font-size: 11.5px;
  font-weight: 560;
  letter-spacing: 0.1em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.finish-eyebrow .icon {
  width: 12px;
  height: 12px;
  color: #d7b6ff;
  stroke-width: 2.2;
}

.finish-inner h1 {
  margin: 4px auto 0;
  max-width: 12em;
  color: #fff;
  font-size: clamp(19px, 4.9vw, 23px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-shadow: 0 0 30px rgba(210, 130, 255, 0.22);
  text-wrap: balance;
}

.online {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 13px 0 0;
  color: #c4b3e2;
  font-size: 12px;
  font-weight: 500;
}

.online strong {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(85, 215, 154, 0.55);
  animation: live-pulse 2.2s ease-out infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(85, 215, 154, 0.5); }
  65% { box-shadow: 0 0 0 7px rgba(85, 215, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(85, 215, 154, 0); }
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  margin-top: clamp(23px, 3.7vh, 33px);
}

.logo-cta {
  position: relative;
  width: clamp(82px, 22vw, 100px);
  height: clamp(82px, 22vw, 100px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.logo-cta::before {
  content: "";
  position: absolute;
  inset: -9px;
  z-index: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 90, 210, 0.76), rgba(104, 56, 255, 0.16) 34%, rgba(255, 90, 210, 0.76) 62%, rgba(104, 56, 255, 0.16) 86%, rgba(255, 90, 210, 0.76));
  filter: blur(9px);
  opacity: 0.78;
  animation: spin-slow 9s linear infinite;
}

.logo-cta::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 1;
  border: 1px solid rgba(255, 210, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

.logo-cta img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 18px 50px rgba(205, 45, 155, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.logo-cta:hover {
  transform: translateY(-2px) scale(1.02);
}

.logo-cta:active {
  transform: scale(0.97);
}

.logo-pulse,
.logo-pulse::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid rgba(232, 110, 220, 0.4);
  border-radius: 50%;
  animation: ring-pulse 3s ease-out infinite;
  pointer-events: none;
}

.logo-pulse::before {
  content: "";
  animation-delay: 1.5s;
}

@keyframes ring-pulse {
  0% { transform: scale(0.98); opacity: 0.55; }
  75% { transform: scale(1.34); opacity: 0; }
  100% { transform: scale(1.34); opacity: 0; }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.logo-hint {
  margin: 0;
  color: #e2d4ff;
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.16em;
}

.finish-desc {
  width: 100%;
  max-width: 23em;
  margin: 20px auto 0;
  color: #a99bc8;
  font-size: 12px;
  line-height: 1.65;
}

.rules {
  width: 100%;
  margin-top: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(185, 160, 240, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.rules h3 {
  margin: 0 0 4px;
  color: #cdbcf1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.rules ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #a99bc8;
  font-size: 11px;
  line-height: 1.55;
}

.rules .icon {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: #b88ce8;
  stroke-width: 2.2;
}

.btn--download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  min-height: 54px;
  font-size: 15px;
}

.btn--download .icon {
  width: 18px;
  height: 18px;
}

.retry-link {
  margin-top: 12px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #897aa8;
  font-size: 10.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 14, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in 0.22s ease both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  position: relative;
  width: min(100%, 360px);
  padding: 30px 24px 24px;
  border: 1px solid rgba(195, 165, 255, 0.2);
  border-radius: 24px;
  background: linear-gradient(180deg, #191131 0%, #0c0722 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  animation: modal-in 0.3s cubic-bezier(0.2, 0.95, 0.3, 1) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-card--small {
  width: min(100%, 332px);
}

.modal-card h2 {
  margin: 16px 0 0;
  color: #f5f0ff;
  font-size: 19px;
  font-weight: 660;
  line-height: 1.4;
}

.modal-card p {
  margin: 10px 0 0;
  color: #a99bc8;
  font-size: 12.5px;
  line-height: 1.85;
}

.modal-card .btn {
  margin-top: 20px;
  min-height: 48px;
  font-size: 14px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #cbbbf1;
  cursor: pointer;
}

.modal-close .icon {
  width: 15px;
  height: 15px;
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: #f0c9ff;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-icon--warn {
  background: rgba(255, 80, 120, 0.12);
  color: #ffb4c8;
}

.dl-icon {
  width: 76px;
  height: 76px;
  margin: 2px auto 0;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(205, 45, 155, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.dl-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.dl-status {
  min-height: 2.8em;
  margin-top: 8px !important;
}

.dl-bar {
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #2c2544;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dl-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6a46f1, #b34bd6 55%, #e055b8);
  box-shadow: 0 0 12px rgba(190, 80, 220, 0.4);
  transition: width 0.25s ease;
}

.dl-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #8e7fae;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

#dl-retry {
  margin-top: 16px;
  min-height: 48px;
  font-size: 14px;
}

.dl-note {
  margin-top: 18px !important;
  color: #6f628c !important;
  font-size: 10.5px !important;
  line-height: 1.7 !important;
}

/* ---------- small screens ---------- */

@media (max-width: 360px) {
  .content {
    padding-right: 12.5%;
    padding-left: 12.5%;
  }

  .screen--pics .content {
    padding-right: 15.5%;
    padding-left: 15.5%;
  }

  .hero {
    height: 224px;
  }

  .screen--text .hero {
    height: 244px;
  }

  .hero--privacy {
    height: 300px;
  }

  .question h2 {
    font-size: 18px;
  }

  .q-main {
    font-size: 21px;
  }

  .q-main--sm {
    font-size: 14px;
  }

  .btn {
    min-height: 54px;
    font-size: 16px;
  }

  .options--images {
    gap: 8px;
  }

  .step-label {
    font-size: 11px;
  }

  .split-actions .btn {
    font-size: 14px;
  }

  .badges li {
    gap: 4px;
    font-size: 11px;
  }

  .badge-icon {
    width: 22px;
    height: 22px;
  }

  .finish-inner {
    padding-right: 15.5%;
    padding-left: 15.5%;
  }
}

@media (max-height: 720px) and (min-width: 361px) {
  .hero {
    height: 196px;
  }

  .screen--text .hero {
    height: 220px;
  }

  .hero--privacy {
    height: 270px;
  }

  .screen--text .question {
    margin-top: 30px;
  }

  .screen--pics .question {
    margin-top: 16px;
  }

  .screen--pics .options {
    margin-top: 12px;
  }

  .stepper-slot {
    margin-top: 20px;
  }

  .sheet-inner {
    padding-top: 18px;
  }

  .sheet-copy {
    margin-top: 10px;
    line-height: 1.8;
  }

  .sheet-note {
    margin-top: 14px;
  }

  .badges {
    margin-top: 12px;
  }

  .split-actions {
    margin-top: 18px;
  }

  .finish-inner {
    padding-top: 76px;
  }

  .logo-wrap {
    margin-top: 18px;
  }
}

@media (max-height: 760px) {
  .screen--quiz .content {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .screen--quiz .stepper {
    position: static;
    width: 86%;
    margin: 18px auto 0;
    flex: none;
  }
}

@media (min-width: 620px) {
  .app {
    box-shadow: 0 0 110px rgba(0, 0, 0, 0.58);
  }

  .hero {
    height: clamp(250px, 30vh, 300px);
  }

  .screen--text .hero {
    height: clamp(280px, 36vh, 340px);
  }

  .hero--privacy {
    height: clamp(340px, 44vh, 430px);
  }

  .q-main {
    font-size: 23px;
  }

  .q-main--sm {
    font-size: 16px;
  }

  .options--images {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
