:root {
  color-scheme: dark;
  --ink: #f7f8ff;
  --muted: #b5bed8;
  --surface: rgba(27, 41, 79, .76);
  --surface-solid: #1b294f;
  --line: rgba(206, 216, 255, .17);
  --primary: #a8ff60;
  --primary-ink: #102000;
  --accent: #8d8aff;
  --danger: #ffb4bd;
  font-family: Inter, ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #101a36;
  background-image: radial-gradient(circle at 10% 0%, #3b2e78 0, transparent 32rem), radial-gradient(circle at 100% 100%, #0c6e75 0, transparent 35rem);
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(100%, 470px); min-height: 100vh; margin: 0 auto; padding: 20px 16px 32px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; letter-spacing: .01em; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #172342; background: var(--primary); font-weight: 900; }
.screen { flex: 1; display: flex; flex-direction: column; justify-content: center; animation: enter .3s ease-out; }
.eyebrow { color: var(--primary); font-size: 13px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
h1 { margin: 12px 0 14px; font-size: clamp(34px, 10vw, 46px); line-height: 1.03; letter-spacing: -.055em; }
h2 { margin: 18px 0 10px; font-size: 27px; line-height: 1.08; letter-spacing: -.035em; }
p { margin: 0 0 12px; line-height: 1.48; }
.lead { color: var(--muted); font-size: 17px; }
.hero-art { position: relative; height: 184px; margin: 28px -16px 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(135deg, #6843cb, #1c557b 63%, #138178); }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.orbit-one { width: 190px; height: 190px; left: 30px; top: -42px; }
.orbit-two { width: 270px; height: 270px; right: -100px; bottom: -125px; }
.map-icon { position: absolute; inset: 0; display: grid; place-items: center; font-size: 76px; transform: rotate(-8deg); filter: drop-shadow(0 14px 13px rgba(4, 5, 31, .26)); }
.notice, .info-card { padding: 15px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); background: var(--surface); font-size: 14px; line-height: 1.45; }
.notice strong { color: var(--ink); }
.consent { display: flex; gap: 11px; align-items: flex-start; margin: 18px 0 8px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.consent input { width: 19px; height: 19px; margin: 0; accent-color: var(--primary); }
.link-button { display: inline; padding: 0; border: 0; color: var(--primary); text-decoration: underline; background: transparent; }
.actions { display: grid; gap: 10px; margin-top: 20px; }
.button { width: 100%; min-height: 54px; padding: 14px 18px; border: 0; border-radius: 16px; color: var(--primary-ink); background: var(--primary); font-weight: 800; font-size: 16px; transition: transform .15s, opacity .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .42; transform: none; }
.button.secondary { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.button.text { min-height: auto; color: var(--muted); background: transparent; font-weight: 650; font-size: 14px; }
.stage { display: flex; gap: 6px; margin: 14px 0 27px; }
.stage span { height: 5px; flex: 1; border-radius: 10px; background: rgba(255,255,255,.14); }
.stage span.active { background: var(--primary); }
.stage-label { margin: 0; color: var(--muted); font-size: 13px; }
.choice-list { display: grid; gap: 9px; margin: 23px 0 12px; }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 57px; padding: 13px 15px; text-align: left; color: var(--ink); border: 1px solid var(--line); border-radius: 15px; background: rgba(21, 33, 67, .62); }
.choice.selected { border-color: var(--primary); background: rgba(168, 255, 96, .11); }
.choice-mark { width: 21px; height: 21px; flex: none; border: 2px solid #91a0c8; border-radius: 50%; }
.choice.multi .choice-mark { border-radius: 7px; }
.choice.selected .choice-mark { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 4px #25343b; }
.helper { min-height: 20px; color: var(--muted); font-size: 13px; }
.error { color: var(--danger); }
.survey-footer { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: auto; padding-top: 25px; }
.field { width: 100%; min-height: 106px; padding: 15px; resize: vertical; color: var(--ink); border: 1px solid var(--line); border-radius: 15px; outline: none; background: rgba(21, 33, 67, .62); }
.field:focus { border-color: var(--primary); }
.small-field { min-height: 50px; margin-top: 10px; resize: none; }
.source-stack { display: grid; gap: 9px; margin: 20px 0 10px; }
.source-field { min-height: 52px; resize: none; }
.compact { min-height: 44px; font-size: 14px; }
.maxdiff-list { display: grid; gap: 13px; margin: 20px 0 8px; }
.maxdiff-counter { margin: 18px 0 10px; color: var(--primary); font-size: 13px; font-weight: 800; letter-spacing: .03em; }
.max-card { padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: rgba(21, 33, 67, .62); }
.max-card p { margin-bottom: 9px; color: var(--muted); font-size: 13px; }
.max-row { display: grid; grid-template-columns: 1fr auto auto; gap: 7px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(206, 216, 255, .1); font-size: 13px; line-height: 1.2; }
.mini-choice { min-height: 31px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.mini-choice.selected { color: var(--primary-ink); border-color: var(--primary); background: var(--primary); }
.result-card { position: relative; overflow: hidden; padding: 24px; border: 1px solid rgba(218,255,189,.34); border-radius: 27px; background: linear-gradient(145deg, #3b277d, #165a6a); box-shadow: 0 18px 40px rgba(3, 7, 28, .24); }
.result-card::after { content: ""; position: absolute; width: 190px; height: 190px; right: -75px; bottom: -80px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; }
.animal { margin: 10px 0 5px; font-size: 76px; line-height: 1; }
.result-card h2 { font-size: 31px; }
.result-card p { color: #e1e5ff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.chip { padding: 7px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #f5f7ff; font-size: 13px; background: rgba(9,14,42,.19); }
.demo-badge { margin-top: 20px; color: var(--muted); text-align: center; font-size: 13px; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 600px) { .app-shell { padding-top: 34px; } .hero-art { margin-left: 0; margin-right: 0; } }
