*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #0b0e16;
  --card-dark: #141824;
  --card-border: rgba(253, 200, 48, 0.55);
  --gold: #fdc830;
  --magenta: #c33764;
  --pink: #e94b8a;
  --purple: #7b2ff7;
  --orange: #f37335;
  --text: #ffffff;
  --text-muted: #9aa0b4;
  --radius: 18px;
  --grad: linear-gradient(90deg, #fdc830 0%, #f37335 45%, #c33764 100%);
  --grad-btn: linear-gradient(90deg, #fdc830 0%, #f37335 40%, #c33764 100%);
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  position: relative;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(195, 55, 100, 0.28) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 70%, rgba(253, 200, 48, 0.12) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 80%, rgba(123, 47, 247, 0.18) 0%, transparent 45%),
    #0b0e16;
  z-index: 0;
}

.stars-deco {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  opacity: 0.55;
  animation: twinkle 3s ease-in-out infinite;
}

.spark::before,
.spark::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 1px;
}

.spark::before {
  width: 2px;
  height: 14px;
  left: 2px;
  top: -4px;
}

.spark::after {
  width: 14px;
  height: 2px;
  left: -4px;
  top: 2px;
}

.s1 { top: 12%; left: 8%; animation-delay: 0s; }
.s2 { top: 22%; right: 12%; animation-delay: 0.8s; width: 4px; height: 4px; }
.s3 { top: 55%; left: 6%; animation-delay: 1.4s; }
.s4 { bottom: 18%; right: 10%; animation-delay: 2s; width: 5px; height: 5px; }
.s5 { top: 40%; right: 6%; animation-delay: 1.1s; opacity: 0.35; }

.big-star {
  position: absolute;
  width: 280px;
  height: 280px;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(18deg);
  background: radial-gradient(circle, rgba(253, 200, 48, 0.14) 0%, transparent 65%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.35;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 0.85; transform: scale(1.15); }
}

.app {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
  padding: 14px 16px 36px;
  min-height: 100vh;
}

.screen {
  display: none;
  animation: fadeIn 0.28s ease;
}

.screen.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-card {
  background: var(--grad);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  text-align: center;
  margin-bottom: 14px;
  box-shadow: 0 10px 28px rgba(195, 55, 100, 0.35);
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.star-badge {
  font-size: 1.45rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.hero-card h1 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  letter-spacing: -0.02em;
}

.hero-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.35;
}

.progress-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 14px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #e94b8a, #c33764, #7b2ff7);
  border-radius: 4px;
  transition: width 0.35s ease;
}

.question-card {
  background: var(--card-dark);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(253, 200, 48, 0.08);
}

.question-label {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.question-text {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 18px;
  color: var(--text);
}

.answer-area {
  margin-bottom: 16px;
}

.input-field {
  width: 100%;
  background: #0b0e16;
  border: 1.5px solid rgba(253, 200, 48, 0.55);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field::placeholder {
  color: #666a7a;
}

.input-field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(253, 200, 48, 0.15);
}

.select-wrap {
  position: relative;
}

.select-field {
  width: 100%;
  appearance: none;
  background: #0b0e16;
  border: 1.5px solid rgba(253, 200, 48, 0.55);
  border-radius: 12px;
  padding: 14px 40px 14px 16px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  cursor: pointer;
}

.select-field option {
  background: #141824;
  color: var(--text);
}

.select-wrap::after {
  content: "▾";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  pointer-events: none;
  font-size: 1.1rem;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-option {
  width: 100%;
  background: #0b0e16;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.12s;
  text-align: center;
}

.btn-option.selected {
  border-color: var(--gold);
  background: rgba(253, 200, 48, 0.1);
  box-shadow: 0 0 0 1px rgba(253, 200, 48, 0.2);
}

.btn-option:active {
  transform: scale(0.98);
}

.btn-next {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-btn);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(195, 55, 100, 0.4);
  transition: transform 0.15s, opacity 0.2s;
  letter-spacing: 0.01em;
}

.btn-next:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.btn-next:not(:disabled):active {
  transform: scale(0.98);
}

.confirm-card {
  background: var(--card-dark);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  margin-top: 40px;
}

.confirm-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.confirm-card h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.confirm-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.confirm-actions {
  display: flex;
  gap: 12px;
}

.confirm-actions .btn-option {
  flex: 1;
}

.result-content {
  text-align: center;
  padding-top: 16px;
}

.result-content .reward-card.compact {
  margin-bottom: 16px;
}

.result-content .payment-card {
  text-align: left;
}

.pay-icon {
  font-size: 1.4rem;
}

.success-emoji {
  font-size: 4rem;
  margin-bottom: 12px;
}

.success-title {
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.success-sub {
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.4;
}

.reward-card {
  background: var(--grad);
  border-radius: var(--radius);
  padding: 28px 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 28px rgba(195, 55, 100, 0.35);
}

.reward-card.compact {
  margin-bottom: 16px;
}

.reward-amount {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  margin-bottom: 6px;
}

.reward-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.payment-card {
  background: var(--card-dark);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.price-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #0b0e16;
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}

.price-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
}

.payment-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 20px;
}

.payment-info em {
  font-style: italic;
}
