:root {
  --ink: #18233c;
  --muted: #65708a;
  --paper: #fbfaf7;
  --night: #121f38;
  --blue: #446ee4;
  --teal: #22a59a;
  --coral: #f4775d;
  --gold: #edb53f;
  --lilac: #8868bf;
  --line: #dfe3eb;
  --shadow: 0 18px 50px rgba(24, 35, 60, .10);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(68,110,228,.5); outline-offset: 3px; }
.grain { position: fixed; inset: 0; z-index: -1; opacity: .35; background-image: radial-gradient(rgba(20,37,61,.08) .7px, transparent .8px); background-size: 6px 6px; pointer-events: none; }
.topbar { height: 76px; padding: 0 clamp(20px, 6vw, 88px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(24,35,60,.08); }
.brand { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; color: var(--ink); font-size: 21px; letter-spacing: -.8px; font-weight: 700; }
.brand-logo { width: 31px; height: 31px; object-fit: contain; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.quiet-button, .save-indicator { border: 0; background: transparent; color: var(--muted); font-size: 14px; }
.quiet-button:hover { color: var(--ink); }
.save-indicator { display: flex; align-items: center; gap: 7px; }
#save-dot { height: 7px; width: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(34,165,154,.15); }
main { width: min(1110px, calc(100% - 40px)); margin: 0 auto; min-height: calc(100vh - 76px); }
.screen { padding: clamp(45px, 8vw, 100px) 0 60px; animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { margin: 0 0 14px; color: var(--blue); font: 500 12px ui-monospace, "Cascadia Code", monospace; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 21px; font: 600 clamp(38px, 5.5vw, 64px)/1.04 Georgia, serif; letter-spacing: -2px; }
h2 { margin-bottom: 15px; font: 600 clamp(28px, 3.4vw, 42px)/1.1 Georgia, serif; letter-spacing: -1.25px; }
h3 { font-size: 18px; letter-spacing: -.3px; }
.lede { max-width: 620px; color: var(--muted); font-size: 19px; line-height: 1.55; }
.hero-context { max-width: 620px; margin: 24px 0; padding: 17px 19px; border-left: 3px solid var(--teal); border-radius: 0 10px 10px 0; background: rgba(34,165,154,.07); }.hero-context strong { color: var(--ink); }.hero-context p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }
.legal-note { max-width: 620px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; min-height: 670px; }
.hero-orbit { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 430px; margin-left: auto; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fdf9ec 0 32%, #e6f2ee 33% 100%); overflow: hidden; }
.hero-logo { width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 17px 19px rgba(24,35,60,.17)); }
.orbit-ring { position: absolute; border: 1px solid rgba(68,110,228,.28); border-radius: 50%; }
.orbit-ring.r1 { inset: 10%; } .orbit-ring.r2 { inset: 25%; } .orbit-ring.r3 { inset: 40%; }
.star { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: white; box-shadow: var(--shadow); color: var(--blue); font-size: 23px; }
.star.s1 { top: 10%; left: 46%; } .star.s2 { right: 11%; top: 43%; color: var(--coral); } .star.s3 { left: 17%; bottom: 18%; color: var(--teal); } .star.s4 { right: 33%; bottom: 9%; color: var(--gold); }
.center-star { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: var(--night); color: #fff4dc; transform: translate(-50%, -50%); font-size: 40px; box-shadow: 0 14px 30px rgba(18,31,56,.2); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 31px; }
.primary, .secondary, .choice, .scene-card { transition: transform .2s, box-shadow .2s, border-color .2s, background .2s; }
.primary { padding: 15px 21px; border: 0; border-radius: 10px; background: var(--ink); color: white; font-weight: 600; box-shadow: 0 8px 18px rgba(24,35,60,.15); }
.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(24,35,60,.19); }
.secondary { padding: 14px 19px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.55); color: var(--ink); font-weight: 500; }
.secondary:hover, .choice:hover { border-color: var(--blue); transform: translateY(-2px); }
.flow-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; margin-bottom: 37px; }
.step { color: var(--muted); font: 500 12px ui-monospace, "Cascadia Code", monospace; letter-spacing: .05em; }
.progress { width: 176px; height: 5px; margin-top: 9px; border-radius: 99px; background: #e2e6ef; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--teal); }
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.scene-card { min-height: 178px; padding: 22px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.76); color: var(--ink); box-shadow: 0 2px 7px rgba(24,35,60,.025); }
.scene-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); }
.scene-icon { display: block; margin-bottom: 23px; font-size: 27px; }
.scene-card small { display: block; margin-top: 7px; color: var(--muted); line-height: 1.35; }
.prompt-panel { max-width: 735px; padding: clamp(28px,4vw,48px); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.scene-tag { display: inline-flex; gap: 8px; align-items: center; padding: 7px 11px; border-radius: 99px; background: #edf2ff; color: var(--blue); font-size: 13px; }
.question { margin: 22px 0 26px; font: 500 clamp(26px,3.3vw,36px)/1.18 Georgia, serif; letter-spacing: -1px; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 17px 18px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); text-align: left; line-height: 1.38; }
.choice-key { flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #f0f2f7; color: var(--muted); font: 12px ui-monospace, "Cascadia Code", monospace; }
.choice:hover .choice-key { background: var(--blue); color: #fff; }
.escape-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.text-option { padding: 8px 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--muted); font-size: 13px; }
.text-option:hover { border-color: var(--muted); color: var(--ink); }
.reward { position: relative; max-width: 785px; overflow: hidden; padding: clamp(32px,5vw,62px); border-radius: 20px; background: var(--night); color: white; }
.reward::after { content: "✦"; position: absolute; right: -12px; bottom: -53px; color: rgba(255,255,255,.06); font-size: 240px; }
.reward .eyebrow { color: #79b7ff; }.reward h2 { max-width: 620px; color: #fff9ea; }.reward p { max-width: 580px; color: #cbd4e9; font-size: 18px; line-height: 1.55; }.reward .primary { background: #fff6df; color: var(--ink); }.reward .secondary { border-color: rgba(255,255,255,.25); background: transparent; color: #fff; }
.reward .next-step-copy { max-width: 650px; margin-top: 24px; margin-bottom: -10px; color: #e3eaf7; font-size: 15px; }
.ai-guide { position: relative; z-index: 1; max-width: 610px; margin-top: 22px; padding: 18px; border: 1px solid rgba(159,194,255,.35); border-radius: 12px; background: rgba(255,255,255,.08); }.ai-guide p { margin-bottom: 10px; font-size: 15px; }.ai-guide p:last-child { margin-bottom: 0; }.ai-guide strong { color: #fff9ea; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr); gap: 23px; align-items: start; }
.note-card { padding: 25px; border: 1px solid #f3dc9c; border-radius: 14px; background: #fff9e9; }.note-card p { color: #69572a; line-height: 1.5; }.note-card h3 { color: #6a5115; }
.map-grid { display: grid; gap: 13px; margin-top: 22px; }.route { position: relative; padding: 22px 23px 22px 29px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.78); overflow: hidden; }.route::before { content:""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--route-color, var(--blue)); }.route h3 { margin-bottom: 7px; }.route p { margin: 0; color: var(--muted); line-height: 1.45; }.route-meta { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 13px; }.pill { padding: 5px 9px; border-radius: 99px; background: #f0f3f8; color: #536078; font-size: 12px; }.pill.negative { background: #fff1ed; color: #a84b38; }
.duel { max-width: 850px; padding: 29px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }.duel-columns { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; margin-top: 22px; }.duel-option { padding: 23px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcff; color: var(--ink); text-align: left; }.duel-option:hover { border-color: var(--lilac); background: #faf7ff; }.duel-vs { align-self: center; color: var(--muted); font: 12px ui-monospace, "Cascadia Code", monospace; }.duel-option strong { display: block; margin-bottom: 8px; font-size: 17px; }.duel-option span { color: var(--muted); line-height: 1.38; }
.form-card { max-width: 705px; padding: clamp(28px, 5vw, 52px); border-radius: 18px; background: white; box-shadow: var(--shadow); }.field { display: grid; gap: 7px; margin: 15px 0; }.field label { font-size: 13px; font-weight: 600; }.field input, .field select, .field textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; outline-color: var(--blue); background: #fff; }.field textarea { min-height: 112px; resize: vertical; line-height: 1.45; }.fields-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.consent { margin: 26px 0; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfc; }.consent p { margin-bottom: 13px; color: var(--muted); font-size: 13px; line-height: 1.48; }.radio-row { display: flex; gap: 17px; font-size: 14px; }.radio-row label { display: flex; gap: 6px; align-items: center; }
.mission { max-width: 760px; padding: 42px; border-radius: 18px; background: linear-gradient(145deg,#e7faf3,#eaf1ff); }.mission-label { color: var(--teal); font: 500 12px ui-monospace, "Cascadia Code", monospace; letter-spacing: .1em; }.mission h2 { margin-top: 12px; }.mission p { color: #425168; line-height: 1.55; font-size: 17px; }
.summary-list { display: grid; gap: 12px; max-width: 720px; }.summary-item { padding: 17px 20px; border-left: 3px solid var(--teal); background: white; color: var(--muted); }.summary-item strong { display: block; margin-bottom: 3px; color: var(--ink); }
.library-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }.source { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: white; }.source p { color: var(--muted); font-size: 14px; line-height: 1.45; }.evidence { color: var(--lilac); font: 11px ui-monospace, "Cascadia Code", monospace; text-transform: uppercase; letter-spacing: .07em; }
.modal-backdrop { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; padding: 20px; background: rgba(18,31,56,.45); }.modal { width: min(620px, 100%); max-height: min(750px, 90vh); overflow: auto; padding: 33px; border-radius: 17px; background: var(--paper); box-shadow: 0 20px 70px rgba(0,0,0,.2); }.modal h2 { font-size: 34px; }.modal p, .modal li { color: var(--muted); line-height: 1.55; }.modal ul { padding-left: 21px; }.modal .button-row { margin-top: 24px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 10; padding: 11px 14px; border-radius: 8px; background: var(--ink); color: white; font-size: 13px; transform: translateY(20px); opacity: 0; transition: .2s; pointer-events: none; }.toast.show { opacity: 1; transform: translateY(0); }
.footer-note { margin-top: 36px; color: var(--muted); font-size: 13px; }
@media (max-width: 720px) { .topbar { height: 64px; padding: 0 20px; }.quiet-button { display: none; }.hero { grid-template-columns: 1fr; min-height: 0; }.hero-orbit { width: min(80vw, 340px); margin: 0 auto; order: -1; }.scene-grid { grid-template-columns: repeat(2,1fr); }.two-col { grid-template-columns: 1fr; }.duel-columns { grid-template-columns: 1fr; }.duel-vs { justify-self: center; }.fields-two, .library-grid { grid-template-columns: 1fr; } h1 { letter-spacing: -1.4px; }.screen { padding-top: 42px; }.flow-head { flex-direction: column; margin-bottom: 28px; }.progress { width: 100%; }.primary, .secondary, .choice, .scene-card, .duel-option { min-height: 44px; } }
@media (max-width: 420px) { main { width: min(100% - 28px, 1110px); }.scene-grid { grid-template-columns: 1fr; }.scene-card { min-height: 130px; }.topbar-actions { gap: 6px; }.save-indicator { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
