*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #0d0d0f;
  --card-dark: #1a1a1e;
  --card-border: rgba(255, 204, 0, 0.35);
  --yellow: #ffcc00;
  --orange: #ff8800;
  --text: #ffffff;
  --text-muted: #aaaaaa;
  --radius: 18px;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: -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:
    linear-gradient(180deg, rgba(13, 13, 15, 0.78) 0%, rgba(13, 13, 15, 0.94) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(46, 204, 113, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 136, 0, 0.1) 0%, transparent 45%),
    #0a0a0c;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
  padding: 12px 16px 32px;
  min-height: 100vh;
}

.screen {
  display: none;
  animation: fadeIn 0.25s ease;
}

.screen.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-card {
  background: linear-gradient(180deg, #ffd700 0%, #ff9500 55%, #ff7700 100%);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  text-align: center;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(255, 136, 0, 0.35);
}

.gem-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gem-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.hero-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 6px;
}

.hero-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.35;
}

.progress-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  margin-bottom: 14px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  border-radius: 4px;
  transition: width 0.35s ease;
}

.question-card {
  background: var(--card-dark);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.question-label {
  color: var(--yellow);
  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: #0a0a0c;
  border: 1.5px solid rgba(255, 204, 0, 0.5);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.input-field::placeholder {
  color: #666;
}

.input-field:focus {
  border-color: var(--yellow);
}

.select-wrap {
  position: relative;
}

.select-field {
  width: 100%;
  appearance: none;
  background: #0a0a0c;
  border: 1.5px solid rgba(255, 204, 0, 0.5);
  border-radius: 12px;
  padding: 14px 40px 14px 16px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  cursor: pointer;
}

.select-field option {
  background: #1a1a1e;
  color: var(--text);
}

.select-wrap::after {
  content: "▾";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--yellow);
  pointer-events: none;
  font-size: 1.1rem;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-option {
  width: 100%;
  background: #0a0a0c;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  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;
  text-align: center;
}

.btn-option.selected {
  border-color: var(--yellow);
  background: rgba(255, 204, 0, 0.08);
}

.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: #1a1a1a;
  background: linear-gradient(180deg, #ffe066 0%, #ffb800 50%, #ff9500 100%);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 184, 0, 0.4);
  transition: transform 0.15s, opacity 0.2s;
}

.btn-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-next:not(:disabled):active {
  transform: scale(0.98);
}

.confirm-card {
  background: var(--card-dark);
  border: 1px 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;
  color: var(--yellow);
  margin-bottom: 10px;
}

.success-sub {
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.4;
}

.reward-card {
  background: linear-gradient(180deg, #ffd700 0%, #ff9500 55%, #ff7700 100%);
  border-radius: var(--radius);
  padding: 28px 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(255, 136, 0, 0.35);
}

.reward-card.compact {
  margin-bottom: 16px;
}

.reward-amount {
  font-size: 2rem;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.reward-note {
  font-size: 0.85rem;
  color: rgba(26, 26, 26, 0.75);
}

.payment-card {
  background: var(--card-dark);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.price-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #0a0a0c;
  border-left: 3px solid var(--yellow);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}

.price-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--yellow);
}

.payment-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 20px;
}

.payment-info em {
  font-style: italic;
}
