:root {
  --bg-main: #160e15;
  --bg-surface: #221420;
  --bg-card: #2c1a29;
  --bg-input: #1a0f18;
  --border-subtle: #41283d;
  --border-focus: #c7729e;
  
  --accent-pink: #d887b0;
  --accent-gold: #dfb271;
  --accent-green: #6bc99e;
  --text-main: #f8eef4;
  --text-muted: #bda6b5;
  --text-dim: #846f7f;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

[data-theme="light"] {
  --bg-main: #fbf5f8;
  --bg-surface: #f0e4ec;
  --bg-card: #ffffff;
  --bg-input: #f7eef3;
  --border-subtle: #ddc5d4;
  --border-focus: #b24d83;
  
  --accent-pink: #b24d83;
  --text-main: #2b1725;
  --text-muted: #6b4d62;
  --text-dim: #99788e;
  --shadow-card: 0 6px 20px rgba(80, 20, 60, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  line-height: 1.5;
}

.app-container {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
  padding-bottom: env(safe-area-inset-bottom, 24px);
}

/* TOP NAVIGATION */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(22, 14, 21, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--text-main);
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.brand-sub {
  font-size: 13px;
  color: var(--accent-pink);
  font-weight: 500;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-full);
}

/* SCREENS & VIEWS */
.view-screen {
  display: none;
  padding: 20px 18px 60px;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-screen.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SCREEN 1: WELCOME */
.hero-banner {
  text-align: center;
  padding: 20px 0 26px;
}

.badge-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-pink);
  background: rgba(216, 135, 176, 0.12);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.hero-banner h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 360px;
  margin: 0 auto;
}

.goal-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.goal-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  box-shadow: var(--shadow-card);
}

.goal-card:active {
  transform: scale(0.98);
}

.goal-card.featured {
  background: linear-gradient(145deg, #2c1a29, #20131f);
  border-color: rgba(216, 135, 176, 0.4);
}

.goal-icon {
  font-size: 32px;
  line-height: 1;
  background: rgba(216, 135, 176, 0.12);
  padding: 12px;
  border-radius: var(--radius-md);
}

.goal-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.goal-content p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 10px;
}

.goal-action {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-pink);
}

.community-banner {
  margin-top: 32px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 12.5px;
  color: var(--text-dim);
}

/* SCREEN 2 & 3: FORM SECTIONS */
.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.back-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.back-btn:active {
  transform: scale(0.95);
}

.step-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.form-section {
  margin-bottom: 24px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text-main);
  margin-bottom: 4px;
  display: block;
}

.counter-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-pink);
  background: rgba(216, 135, 176, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.field-hint {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

/* TABS */
.tab-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-surface);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border: 1px solid var(--border-focus);
}

.tab-icon {
  font-size: 20px;
}

.tab-text {
  display: flex;
  flex-direction: column;
  font-size: 13.5px;
  font-weight: 600;
}

.tab-text small {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-dim);
}

/* CHIPS (MULTI-SELECT) */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:active {
  transform: scale(0.96);
}

.chip.active {
  background: rgba(216, 135, 176, 0.2);
  color: #ffffff;
  border-color: var(--accent-pink);
  font-weight: 600;
}

/* TROPES */
.trope-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trope-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.15s ease;
}

.trope-card.active {
  background: var(--bg-card);
  border-color: var(--accent-pink);
}

.trope-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.trope-card p {
  font-size: 12px;
  color: var(--text-dim);
}

.custom-input-box {
  margin-top: 8px;
}

.custom-input-box input,
.text-field {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.text-field:focus,
.custom-input-box input:focus {
  border-color: var(--border-focus);
}

.mt-2 { margin-top: 8px; }
.hidden { display: none !important; }

/* AUTHOR CHOICES */
.author-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.author-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.author-card input[type="radio"] {
  margin-top: 4px;
  accent-color: var(--accent-pink);
}

.author-card.active {
  border-color: var(--border-focus);
  background: var(--bg-card);
}

.author-content h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.author-content p {
  font-size: 12px;
  color: var(--text-muted);
}

.author-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  display: inline-block;
}

.author-badge.green {
  background: rgba(107, 201, 158, 0.15);
  color: var(--accent-green);
}

.author-badge.gold {
  background: rgba(223, 178, 113, 0.15);
  color: var(--accent-gold);
}

/* BUTTONS */
.submit-bar {
  margin-top: 24px;
}

.primary-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #c76f9d, #9d3e71);
  color: #ffffff;
  border: none;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(199, 111, 157, 0.35);
  transition: transform 0.12s ease;
}

.primary-btn:active {
  transform: scale(0.98);
}

/* PHOTO UPLOAD */
.photo-upload-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.upload-tile {
  min-width: 90px;
  height: 110px;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-muted);
}

.upload-icon {
  font-size: 24px;
}

.upload-text {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.preview-strip {
  display: flex;
  gap: 10px;
}

.preview-item {
  width: 90px;
  height: 110px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

/* STYLE CARDS */
.style-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.style-btn {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  text-align: left;
  color: var(--text-main);
  cursor: pointer;
}

.style-btn.active {
  border-color: var(--accent-pink);
  background: var(--bg-card);
}

.style-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.style-btn small {
  font-size: 11.5px;
  color: var(--text-dim);
}

/* SCREEN 4: RESULT / PROLOGUE */
.result-header {
  text-align: center;
  margin-bottom: 20px;
}

.result-header h1 {
  font-size: 24px;
  font-weight: 800;
  margin: 8px 0 4px;
}

.result-tagline {
  font-size: 14px;
  color: var(--accent-pink);
  font-style: italic;
}

.hero-chip-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.hero-avatar {
  font-size: 22px;
  background: rgba(216, 135, 176, 0.15);
  padding: 8px;
  border-radius: var(--radius-full);
}

.hero-meta h4 {
  font-size: 14px;
  font-weight: 700;
}

.hero-meta span {
  font-size: 11.5px;
  color: var(--text-dim);
}

.prologue-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.prologue-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-main);
  white-space: pre-line;
}

.cliffhanger-box {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  color: var(--accent-gold);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
}

.scenes-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.scenes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 540px) {
  .scenes-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

.scene-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.scene-card:hover {
  border-color: rgba(216, 135, 176, 0.4);
}

.scene-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 13;
  max-height: 440px;
  background: #140912;
  overflow: hidden;
}

.scene-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scene-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, rgba(216, 135, 176, 0.92), rgba(157, 62, 113, 0.92));
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.scene-step {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-pink);
  text-transform: uppercase;
  margin-bottom: 4px;
  padding: 12px 14px 0;
}

.scene-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.scene-meta-row {
  margin-bottom: 6px;
}

.scene-model-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-pink);
  background: rgba(216, 135, 176, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.scene-card h5 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.scene-caption {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  font-style: italic;
  margin-bottom: 10px;
}

/* PROMPT ACCORDION & PROMPT ENGINEERING */
.prompt-accordion {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
}

.btn-prompt-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 0;
  cursor: pointer;
  font-family: inherit;
}

.btn-prompt-toggle:hover {
  color: var(--text-main);
}

.prompt-toggle-arrow {
  transition: transform 0.2s ease;
  font-size: 14px;
}

.prompt-details {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prompt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prompt-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.prompt-tag.algo {
  background: rgba(216, 135, 176, 0.14);
  color: var(--accent-pink);
}

.prompt-tag.neural {
  background: rgba(223, 178, 113, 0.14);
  color: var(--accent-gold);
}

.prompt-text-box {
  background: #100b11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.4;
  color: #f0e6ed;
  max-height: 110px;
  overflow-y: auto;
  word-break: break-word;
}

.prompt-actions {
  display: flex;
  gap: 8px;
}

.btn-copy-prompt,
.btn-run-magnific {
  flex: 1;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s ease;
  text-align: center;
}

.btn-copy-prompt {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-copy-prompt:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-copy-prompt.copied {
  background: rgba(72, 187, 120, 0.2);
  color: #48bb78;
  border-color: #48bb78;
}

.btn-run-magnific {
  background: linear-gradient(135deg, #c76f9d, #9d3e71);
  color: #ffffff;
}

.btn-run-magnific:hover {
  opacity: 0.92;
}

.action-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.action-btn.primary {
  background: var(--accent-pink);
  color: #ffffff;
}

.action-btn.secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.action-btn.outline {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid rgba(223, 178, 113, 0.4);
}

.link-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  padding: 10px;
  cursor: pointer;
}

/* VISUAL NOVEL MODE (result screen) */
.vn-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vn-toggle:active {
  transform: scale(0.98);
}

.vn-toggle[aria-checked="true"] {
  background: var(--bg-card);
  border-color: var(--border-focus);
}

.vn-toggle-icon {
  font-size: 20px;
}

.vn-toggle-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 13.5px;
  font-weight: 600;
}

.vn-toggle-text small {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-dim);
}

.vn-toggle-switch {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
  transition: background 0.2s ease;
}

.vn-toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.vn-toggle[aria-checked="true"] .vn-toggle-switch {
  background: var(--accent-pink);
}

.vn-toggle[aria-checked="true"] .vn-toggle-switch::after {
  transform: translateX(16px);
}

/* Reading progress: sits on the bottom edge of the sticky top nav */
.vn-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--border-subtle);
  overflow: hidden;
}

.vn-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* While reading, the whole screen is the tap target */
#screen-result.vn-on:not(.vn-done) {
  cursor: pointer;
  touch-action: manipulation;
}

#screen-result.vn-on:not(.vn-done) .prologue-content {
  -webkit-user-select: none;
  user-select: none;
}

.vn-line {
  display: none;
  scroll-margin: 84px 0;
}

.vn-line + .vn-line {
  margin-top: 1.7em;
}

.vn-line.is-shown {
  display: block;
  animation: vnReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* The cliffhanger is the last beat; scenes and actions wait until the prologue is read */
#screen-result.vn-on .cliffhanger-box {
  scroll-margin: 84px 0;
}

#screen-result.vn-on .cliffhanger-box:not(.is-shown),
#screen-result.vn-on:not(.vn-done) .scenes-section,
#screen-result.vn-on:not(.vn-done) .action-footer {
  display: none;
}

#screen-result.vn-on .cliffhanger-box.is-shown {
  animation: vnReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#screen-result.vn-done .scenes-section,
#screen-result.vn-done .action-footer {
  animation: vnReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.25s backwards;
}

@keyframes vnReveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.vn-hint {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  padding: 10px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

#screen-result.vn-on:not(.vn-done) .vn-hint {
  display: flex;
}

.vn-hint-arrow {
  color: var(--accent-pink);
  animation: vnHintBob 1.4s ease-in-out infinite;
}

@keyframes vnHintBob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(3px); opacity: 1; }
}

/* Reduced motion keeps the fade and drops the movement */
@media (prefers-reduced-motion: reduce) {
  @keyframes vnReveal {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .vn-hint-arrow {
    animation: none;
  }

  .vn-progress-fill {
    transition: none;
  }
}

/* SCREEN 5: SUCCESS */
.success-card {
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  box-shadow: var(--shadow-card);
}

.success-heart {
  font-size: 48px;
  margin-bottom: 12px;
}

.success-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.success-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.quote-box {
  background: rgba(216, 135, 176, 0.08);
  border-left: 3px solid var(--accent-pink);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 13px;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 12px;
}

.quote-author {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: var(--accent-pink);
  margin-top: 6px;
  font-style: normal;
}

/* LOADER OVERLAY */
.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(22, 14, 21, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-box {
  text-align: center;
  color: var(--text-main);
}

.pulse-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid var(--accent-pink);
  border-top-color: transparent;
  animation: spin 0.85s linear infinite;
  margin: 0 auto 16px;
}

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