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

:root {
  color-scheme: dark light;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg: #0b0f14;
  --bg-soft: #111921;
  --fg: #e7edf5;
  --muted: #8e9cad;
  --primary: #207fdf;
  --card: rgba(26, 31, 38, 0.62);
  --line: rgba(255, 255, 255, 0.08);
  --secondary-bg: rgba(255, 255, 255, 0.05);
  --secondary-fg: #e7edf5;
  --badge-bg: rgba(32, 127, 223, 0.16);
}

html[data-theme="light"] {
  --bg: #f6f7f8;
  --bg-soft: #ffffff;
  --fg: #1e293b;
  --muted: #5f6e7f;
  --primary: #207fdf;
  --card: rgba(255, 255, 255, 0.92);
  --line: rgba(30, 41, 59, 0.1);
  --secondary-bg: rgba(30, 41, 59, 0.06);
  --secondary-fg: #1e293b;
  --badge-bg: rgba(32, 127, 223, 0.14);
}

body {
  margin: 0;
  color: var(--fg);
  background: radial-gradient(circle at 50% 8%, rgba(32, 127, 223, 0.12) 0%, transparent 45%), var(--bg);
  min-height: 100vh;
}

.app {
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 14px 14px 26px;
}

.screen {
  display: none;
  position: relative;
}

.screen.active {
  display: block;
  animation: fadeIn 220ms ease;
}

h1, h2, h3 { margin: 0 0 10px; }

button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 16px;
  min-height: 46px;
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-top: 12px;
  background: linear-gradient(180deg, rgba(32, 127, 223, 0.9), rgba(24, 103, 185, 0.9));
  color: #fff;
}

button.secondary {
  background: var(--secondary-bg);
  color: var(--secondary-fg);
  border-color: var(--line);
}

button.ghost {
  width: auto;
  margin-top: 0;
  min-height: 36px;
  border-radius: 999px;
  font-size: 12px;
  padding: 8px 12px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
}

.landing-shell {
  min-height: 150px;
  margin-bottom: 8px;
}

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid var(--primary);
}

.landing-nav,
.vertical { display: none; }

.header-actions {
  display: flex;
  gap: 6px;
}

.orbital {
  margin: 18px auto 0;
  width: 118px;
  height: 118px;
  position: relative;
}

.ring, .core {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 999px;
}

.ring { border: 1px solid rgba(32, 127, 223, 0.3); }
.r1 { width: 118px; height: 118px; }
.r2 { width: 92px; height: 92px; }
.r3 { width: 66px; height: 66px; }
.r4 { width: 40px; height: 40px; }
.core {
  width: 24px;
  height: 24px;
  background: var(--primary);
  box-shadow: 0 0 24px rgba(32, 127, 223, 0.55);
}

.hero-title {
  text-align: center;
  font-size: clamp(40px, 13vw, 66px);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-top: 2px;
}

.lead {
  text-align: center;
  color: color-mix(in srgb, var(--fg) 78%, transparent);
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.disclaimer {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.dump-title,
.artifact-title,
.vault-title {
  text-align: center;
  font-size: clamp(28px, 8.8vw, 46px);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.dump-subtitle {
  text-align: center;
  margin-bottom: 12px;
}

.dump-ambient {
  position: absolute;
  inset: 8% 12% auto;
  height: 130px;
  background: radial-gradient(circle, rgba(32, 127, 223, 0.16), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

textarea,
input,
select {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
}

textarea {
  min-height: 34vh;
  padding: 12px;
  font-size: 21px;
  line-height: 1.45;
  text-align: center;
}

input,
select {
  padding: 11px 12px;
  font-size: 14px;
}

.switch {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.field-label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.dump-actions {
  position: sticky;
  bottom: 8px;
  padding-top: 8px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(8px);
  animation: cardIn 300ms ease forwards;
}

.saved-card {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 25%, transparent);
}

#screen-result .card:nth-of-type(1) { animation-delay: 25ms; }
#screen-result .card:nth-of-type(2) { animation-delay: 50ms; }
#screen-result .card:nth-of-type(3) { animation-delay: 75ms; }
#screen-result .card:nth-of-type(4) { animation-delay: 100ms; }
#screen-result .card:nth-of-type(5) { animation-delay: 125ms; }
#screen-result .card:nth-of-type(6) { animation-delay: 150ms; }
#screen-result .card:nth-of-type(7) { animation-delay: 175ms; }
#screen-result .card:nth-of-type(8) { animation-delay: 200ms; }

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badges span {
  background: var(--badge-bg);
  color: var(--fg);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.mood-board {
  height: 160px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at var(--x1, 25%) var(--y1, 32%), var(--c1, rgba(32,127,223,.52)) 0%, transparent 45%),
    radial-gradient(circle at var(--x2, 72%) var(--y2, 66%), var(--c2, rgba(99,176,255,.3)) 0%, transparent 42%),
    repeating-linear-gradient(var(--angle, 42deg), rgba(255,255,255,.055) 0 2px, transparent 2px 9px),
    #0f151d;
}

.loader {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--primary);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
  margin: 12px auto;
}

.progress-wrap {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2a8bea, #67b4ff);
  transition: width 260ms ease;
}

.stage {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.error {
  color: #ff7c8b;
  min-height: 18px;
  font-size: 13px;
}

.safety {
  display: none;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 13px;
}

.safety.show { display: block; }
.safety.medium { background: rgba(255, 195, 60, 0.18); }
.safety.high { background: rgba(255, 90, 90, 0.18); }

.price {
  font-size: 22px;
  font-weight: 600;
  margin: 12px 0;
}

.strong { font-weight: 600; }
.closure { margin-top: 8px; font-weight: 500; }

.vault-list {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

/* ── Dump time phrase ── */
.dump-time-phrase {
  font-size: 13px;
  text-align: center;
  margin: 0 0 10px;
  min-height: 18px;
  animation: fadeIn 400ms ease;
}

/* ── Vault list ── */
.vault-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--card);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  transition: border-color 150ms ease;
}

.vault-item:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }

.vault-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--secondary-bg);
}

.vault-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.vault-item-content {
  flex: 1;
  min-width: 0;
}

.vault-item-content h4 {
  margin: 0 0 3px;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vault-excerpt {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vault-item h4 { margin: 0 0 6px; }
.hidden { display: none; }

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

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

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

@media (min-width: 720px) {
  .app { width: min(100%, 900px); padding-top: 20px; }
  .landing-nav {
    display: flex;
    gap: 18px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 10px;
    color: var(--muted);
  }
  .vertical {
    display: block;
    position: absolute;
    top: 85px;
    font-size: 9px;
    letter-spacing: 0.35em;
    color: color-mix(in srgb, var(--muted) 70%, transparent);
    writing-mode: vertical-rl;
  }
  .vertical.left { left: -12px; }
  .vertical.right { right: -12px; }
  #screen-landing { max-width: 700px; margin: 0 auto; }
}

/* ── AI Artwork ── */
.artwork-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
}

.artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  opacity: 0;
  transition: opacity 600ms ease;
}

.artwork-loading .artwork-shimmer {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(
    100deg,
    rgba(255,255,255,0.04) 20%,
    rgba(255,255,255,0.10) 40%,
    rgba(255,255,255,0.04) 60%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

.artwork-loading .artwork-img { opacity: 0; }
.artwork-ready .artwork-shimmer { display: none; }
.artwork-ready .artwork-img { opacity: 1; }
.artwork-failed .artwork-shimmer { display: none; }
.artwork-failed .artwork-img { display: none; }

/* limit state: hide shimmer/img (prompt shown via JS) */
.artwork-limit .artwork-shimmer { display: none; }
.artwork-limit .artwork-img { display: none; }

/* ── Inline upgrade prompt (shown when image limit reached) ── */
.artwork-limit-prompt {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 0 4px;
  text-align: center;
}

.artwork-limit-text {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.upgrade-inline-btn {
  width: auto;
  background: rgba(42, 171, 238, 0.12);
  border-color: rgba(42, 171, 238, 0.4);
  color: #2AABEE;
  font-size: 13px;
  padding: 9px 18px;
  margin-top: 0;
}

.artwork-hint {
  text-align: center;
  font-size: 13px;
  margin: 0 0 10px;
  line-height: 1.5;
}

.share-btn {
  display: block;
  margin: 14px auto 0;
  background: rgba(32, 127, 223, 0.12);
  border-color: rgba(32, 127, 223, 0.35);
  color: var(--primary);
  font-size: 13px;
  padding: 9px 18px;
}

.share-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.painting-title {
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 12px 0 0;
  min-height: 20px;
  opacity: 0;
  transition: opacity 600ms ease;
}

.painting-title:not(:empty) {
  opacity: 1;
}

.micro-question {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.micro-q-text {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 400;
}

.micro-answer {
  width: 100%;
  box-sizing: border-box;
  min-height: auto;
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  resize: none;
  margin-top: 0;
  line-height: 1.5;
}

.artwork-caption {
  text-align: center;
  padding: 6px 0 2px;
  font-size: 12px;
}

.detail-artwork-wrap { margin: 10px 0; }
.artwork-img--detail { width: 100%; border-radius: 10px; opacity: 1; }

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ── Collage screen ── */
.collage-toggle {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 10px 0 16px;
}

.collage-toggle-btn.active-toggle {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(32, 127, 223, 0.12);
}

.collage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.collage-tile {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transform: rotate(var(--tile-rot, 0deg));
  transition: transform 180ms ease;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: tileIn 280ms ease forwards;
}

.collage-tile:hover { transform: rotate(0deg) scale(1.04); z-index: 2; }
.collage-tile-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collage-tile-label {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.collage-tile:nth-child(1)   { animation-delay: 20ms; }
.collage-tile:nth-child(2)   { animation-delay: 45ms; }
.collage-tile:nth-child(3)   { animation-delay: 70ms; }
.collage-tile:nth-child(4)   { animation-delay: 95ms; }
.collage-tile:nth-child(5)   { animation-delay: 120ms; }
.collage-tile:nth-child(6)   { animation-delay: 145ms; }
.collage-tile:nth-child(n+7) { animation-delay: 170ms; }

@keyframes tileIn {
  from { opacity: 0; transform: rotate(var(--tile-rot, 0deg)) scale(0.9); }
  to   { opacity: 1; transform: rotate(var(--tile-rot, 0deg)) scale(1); }
}

html[data-theme="light"] .artwork-loading .artwork-shimmer {
  background: linear-gradient(
    100deg,
    rgba(0,0,0,0.04) 20%,
    rgba(0,0,0,0.10) 40%,
    rgba(0,0,0,0.04) 60%
  );
  background-size: 200% 100%;
}

/* ── Friend result card ── */
.friend-text {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 16px;
}

.saved-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.saved-list li {
  padding: 5px 0;
  font-size: 14px;
  color: var(--muted);
}

.saved-list li::before {
  content: '✓ ';
  color: var(--primary);
  font-weight: 700;
}

.closure {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ── Info modal ── */
.info-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  animation: fadeIn 180ms ease;
}

.info-modal.hidden { display: none; }

.info-modal-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px 24px;
  max-width: 400px;
  width: 100%;
  position: relative;
}

.info-modal-box #info-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: auto;
  min-height: 30px;
  padding: 4px 10px;
  font-size: 13px;
  margin-top: 0;
}

.info-modal-box h3 { margin-bottom: 12px; }
.info-modal-box p { color: var(--muted); line-height: 1.6; margin: 0; }

/* ── SEO divider ── */
.seo-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 28px 0 0;
  opacity: 0.5;
}

/* ── SEO content blocks (visible to crawlers, unobtrusive in UI) ── */
.seo-description {
  margin: 24px 0 0;
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.seo-description p { margin: 0 0 10px; }
.seo-description p:last-child { margin: 0; }
.seo-description strong { color: var(--fg); font-weight: 500; }

/* ── FAQ section ── */
.faq-section {
  margin: 20px 0 0;
}

.faq-heading {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--fg);
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--bg-soft);
}

.faq-item summary {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 18px;
  color: var(--muted);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* ── Paywall screen ── */
#screen-paywall {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
}

#screen-paywall .dump-title {
  text-align: center;
  margin-bottom: 8px;
}

#screen-paywall .muted {
  text-align: center;
  max-width: 300px;
  line-height: 1.55;
  margin-bottom: 24px;
}

.paywall-features {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paywall-features p {
  margin: 0;
  font-size: 15px;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.price {
  font-size: 28px;
  font-weight: 700;
  margin: 4px 0 20px;
  letter-spacing: -0.02em;
}

.price-sub {
  font-size: 13px;
  color: var(--muted);
  margin: -14px 0 20px;
}

#purchase-btn {
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  width: 100%;
}

#purchase-btn:hover {
  opacity: 0.92;
}

/* ═══════════════════════════════════════════
   Mobile-first optimisations  (≤ 480 px)
   Primary audience: mobile users
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {

  /* ── Remove tap-delay on all tappable elements ── */
  button, a, label, summary {
    touch-action: manipulation;
  }

  /* ── App container ── */
  .app {
    padding: 10px 12px 32px;
  }

  /* ── Landing header: keep it compact ── */
  .landing-header {
    gap: 6px;
  }

  /* Hide "Тема: авто" label, keep just the icon-sized button */
  #theme-toggle {
    font-size: 0;        /* hide text */
    width: 36px;
    min-height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #theme-toggle::before {
    content: '◑';
    font-size: 15px;
  }

  /* Slightly smaller orbital on narrow screens */
  .orbital {
    width: 88px;
    height: 88px;
    margin: 10px auto 0;
  }
  .r1 { width: 88px; height: 88px; }
  .r2 { width: 68px; height: 68px; }
  .r3 { width: 48px; height: 48px; }
  .r4 { width: 28px; height: 28px; }
  .core { width: 18px; height: 18px; }

  /* ── Hero typography ── */
  .hero-title {
    font-size: clamp(36px, 11.5vw, 52px);
    margin-top: 2px;
  }

  .lead {
    font-size: 16px;
    margin-bottom: 4px;
  }

  /* Start button: slightly taller CTA */
  #start-btn {
    margin-top: 14px;
    padding: 16px;
    font-size: 16px;
  }

  /* ── SEO text: visually secondary, not part of UX flow ── */
  .seo-description {
    font-size: 12.5px;
    padding: 12px 14px;
    margin-top: 20px;
    border-radius: 12px;
    opacity: 0.75;
  }

  /* ── FAQ: tighter on mobile ── */
  .faq-heading {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.7;
  }

  .faq-item summary {
    font-size: 13px;
    padding: 11px 13px;
  }

  .faq-item p {
    font-size: 12px;
    padding: 0 13px 12px;
  }

  /* ── Disclaimer ── */
  .disclaimer {
    font-size: 11px;
  }

  /* ═══════════════════
     Dump screen
     ═══════════════════ */

  /* Time phrase above textarea */
  .dump-time-phrase {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .dump-title {
    font-size: clamp(26px, 8vw, 38px);
    margin-bottom: 4px;
  }

  .dump-subtitle {
    font-size: 13px;
    margin-bottom: 8px;
  }

  /* Textarea: taller so keyboard doesn't cover too much */
  textarea {
    min-height: 38vh;
    font-size: 17px;
    text-align: left;   /* natural left-align for typing on mobile */
    padding: 14px;
    border-radius: 12px;
  }

  /* Window select */
  select {
    font-size: 15px;
    padding: 12px 12px;
    border-radius: 12px;
  }

  /* ── Switch (checkbox + label) ── */
  .switch {
    margin-top: 12px;
    align-items: flex-start;   /* handles multi-line label */
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
  }

  /* Give the checkbox a bigger tap area */
  .switch input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 1px;
    cursor: pointer;
  }

  /* Sticky action bar: add safe-area padding for notched phones */
  .dump-actions {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  #analyze-btn {
    font-size: 16px;
    padding: 16px;
  }

  /* ═══════════════════
     Result screen
     ═══════════════════ */

  .friend-text {
    font-size: 15px;
    line-height: 1.65;
  }

  /* ── Cards ── */
  .card {
    padding: 14px 12px;
    border-radius: 14px;
  }

  /* ── Artwork card ── */
  .artwork-hint {
    font-size: 12px;
  }

  /* ═══════════════════
     Vault screen
     ═══════════════════ */

  .vault-title {
    font-size: clamp(26px, 8vw, 40px);
  }

  /* Vault items: slightly tighter */
  .vault-item {
    padding: 10px;
    gap: 10px;
  }

  .vault-thumb {
    width: 54px;
    height: 54px;
  }

  .vault-item-content h4 {
    font-size: 14px;
  }

  /* ═══════════════════
     Paywall screen
     ═══════════════════ */

  #screen-paywall {
    padding-top: 24px;
  }

  .price {
    font-size: 24px;
  }

  /* ═══════════════════
     Collage grid
     ═══════════════════ */

  .collage-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .collage-tile {
    border-radius: 8px;
  }

  /* ── Info modal ── */
  .info-modal {
    padding: 12px;
  }

  .info-modal-box {
    padding: 22px 18px 18px;
    border-radius: 18px;
  }
}

/* Extra-small screens (SE, older Androids) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 32px;
  }

  .orbital {
    width: 72px;
    height: 72px;
    margin: 8px auto 0;
  }
  .r1 { width: 72px; height: 72px; }
  .r2 { width: 56px; height: 56px; }
  .r3 { width: 40px; height: 40px; }
  .r4 { width: 24px; height: 24px; }

  textarea {
    font-size: 16px;
  }
}

/* ── Mirror Block ── */
.mirror-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

html[data-theme="light"] .mirror-block {
  border-top-color: rgba(0,0,0,0.08);
}

.mirror-phrase {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary, rgba(255,255,255,0.6));
  margin: 0 0 6px;
}

.mirror-question {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary, rgba(255,255,255,0.85));
  font-style: italic;
  margin: 0 0 10px;
}

.mirror-answer {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  color: var(--text-primary, rgba(255,255,255,0.85));
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 12px;
  resize: none;
  box-sizing: border-box;
  font-family: inherit;
}

.mirror-answer::placeholder {
  color: rgba(255,255,255,0.25);
}

html[data-theme="light"] .mirror-answer {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.10);
  color: var(--text-primary, #1a1a2e);
}

html[data-theme="light"] .mirror-answer::placeholder {
  color: rgba(0,0,0,0.25);
}
