:root {
  --bg: #0e1116;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --card: rgba(255, 255, 255, 0.06);
  --btn: rgba(255, 255, 255, 0.1);
  --btn-active: rgba(255, 255, 255, 0.2);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
}
#app { max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; }

.hero { width: 100%; border-radius: 18px; display: block; margin-bottom: 18px; }
.hero.square { aspect-ratio: 1 / 1; object-fit: cover; }

h1 { font-size: 26px; font-weight: 800; margin: 6px 0 4px; }
.tagline { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.story { font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.9); white-space: pre-wrap; margin-bottom: 22px; }

.btn {
  display: block; width: 100%; border: 0; border-radius: 14px;
  background: var(--btn); color: var(--fg);
  font-size: 16px; font-weight: 600; padding: 16px; margin: 10px 0;
  cursor: pointer; transition: background 0.15s; text-align: center;
}
.btn:active { background: var(--btn-active); }
.btn.primary { background: #2f8fff; }
.btn.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.18); }

.opts { display: grid; gap: 10px; margin-top: 16px; }
.opts.cols { grid-template-columns: repeat(4, 1fr); }
.opts.cols .btn { padding: 16px 4px; font-size: 18px; font-weight: 700; }

.result-title { font-size: 28px; font-weight: 800; margin: 14px 0 2px; }
.result-kicker { color: var(--muted); text-transform: uppercase; letter-spacing: 2px; font-size: 12px; }
.result-tagline { color: var(--muted); margin: 0 0 16px; }
.body { font-size: 16px; line-height: 1.55; margin-bottom: 16px; }
.details { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.85); background: var(--card); border-radius: 14px; padding: 16px; margin: 8px 0 16px; }
.muted-note { color: var(--muted); font-size: 13px; text-align: center; margin-top: 12px; }
.spinner { text-align: center; color: var(--muted); padding: 40px 0; }

/* ── Нативный экран вопроса ── */
.qhead { text-align: center; margin: 10px 0 18px; }
.dots { display: flex; justify-content: center; gap: 10px; margin-bottom: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.dot.on { background: #fff; }
.qnum { text-transform: uppercase; letter-spacing: 3px; font-size: 12px; color: var(--muted); }
.qprompt { font-size: 26px; font-weight: 800; text-align: center; line-height: 1.25; margin: 0 0 26px; }

.colorgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.color-tile {
  aspect-ratio: 1 / 1; border-radius: 20px; border: 3px solid rgba(255, 255, 255, 0.35);
  cursor: pointer; padding: 0; transition: transform 0.1s; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.color-tile:active { transform: scale(0.94); }

.optlist { display: flex; flex-direction: column; gap: 12px; }
.opt-card {
  width: 100%; text-align: left; border: 0; border-radius: 16px;
  background: rgba(255, 255, 255, 0.1); color: var(--fg);
  font-size: 17px; font-weight: 600; line-height: 1.35; padding: 18px 18px; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.opt-card:active { background: rgba(255, 255, 255, 0.2); transform: scale(0.99); }
