@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&display=swap');
:root{--paper:#f4f0e6;--ink:#192e2c;--muted:#52635b;--amber:#f59e0b;--line:#b4b9a9;font-family:Jost,sans-serif;font-size:16px;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}button,select{font:inherit;color:inherit}button{cursor:pointer;background:transparent;border:1px solid #77877b;padding:6px 10px;line-height:1.4;transition:background .15s ease-out,transform .15s ease-out}button:hover{background:#dddccb}button:active{transform:scale(.97)}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #a35d00;outline-offset:3px}a{color:inherit}header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 24px;border-bottom:2px solid var(--ink)}header>a{font-size:24px;font-weight:700;text-decoration:none}header>a span{font-size:12px;font-weight:400;margin-left:12px}header>div{display:flex;gap:8px}header button{font-size:12px}main{max-width:1440px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.75fr) minmax(340px,1fr)}.stage{background:#193f3c;color:#f4f0e6;align-self:start;min-width:0}.world-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 20px}.world-head>div:first-child{display:flex;align-items:baseline;gap:12px}.world-head strong{font-size:24px;font-weight:500}.world-head span{font-size:12px}.speeds{display:flex;gap:4px}.speeds button{color:#f4f0e6;border-color:#738b77;font-size:12px;padding:5px 8px;min-height:32px}.speeds button[aria-pressed=true]{background:var(--amber);border-color:var(--amber);color:var(--ink)}.stage canvas{display:block;width:100%;height:auto;aspect-ratio:1120/680;image-rendering:pixelated}.world-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 20px}.world-bottom p{margin:0;font-size:12px;max-width:56ch}.world-bottom button{font-size:12px;color:inherit;border-color:#738b77;white-space:nowrap}#age-track{display:flex;gap:3px;padding:0 20px 12px}#age-track span{height:4px;flex:1;background:#60756a}#age-track span.past{background:var(--amber)}.decision{padding:20px 24px;align-self:start;min-width:0}.section-line{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted)}h1{font-size:32px;font-weight:500;line-height:1.15;margin:12px 0}p{line-height:1.45;max-width:65ch;margin:0 0 12px}#narrative{font-size:16px}#birth-info{font-size:16px}#birth-info dl{margin:18px 0}#birth-info dt{font-size:12px;color:var(--muted);margin-top:12px}#birth-info dd{margin:2px 0}.tabs{display:flex;gap:8px;margin:12px 0}.tabs button{font-size:12px;min-height:32px}.tabs button[aria-pressed=true]{border-bottom:3px solid var(--ink);font-weight:600}.radar-wrap{display:flex;align-items:center;gap:8px}.radar-wrap svg{width:64%;max-width:240px;height:auto;flex-shrink:0}.radar-wrap p{font-size:12px;max-width:14ch;margin:0}svg text{font-family:Jost,sans-serif;fill:var(--muted);font-size:12px}#allocation{max-width:340px}.allocation-row{display:grid;grid-template-columns:minmax(110px,1fr) 32px 24px 32px;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:4px 0}.allocation-row span{font-size:16px}.allocation-row button{padding:2px;min-height:32px}.allocation-row output{text-align:center;font-weight:600}.hint,.fine{font-size:12px;color:var(--muted)}.hint{margin:12px 0}.fine{margin:10px 0 0}.primary{background:var(--amber);border:2px solid var(--ink);font-weight:600;padding:9px 14px;min-height:44px}.primary:hover{background:#ffb629}#last-event{font-size:12px;border-left:3px solid var(--amber);padding-left:10px;margin-top:14px}#last-event:empty{display:none}.profile-field{display:block;margin:12px 0}.profile-field>label{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}select{max-width:100%;background:#fcfaf3;border:1px solid #77877b;padding:7px 8px;font-size:16px}.profile-note{font-size:12px;line-height:1.4}.resources{grid-column:1/-1;padding:16px 24px;border-top:2px solid var(--ink)}h2{font-size:24px;font-weight:500;margin:0}.graphs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin-top:12px}figure{margin:0;min-width:0}figcaption{display:flex;justify-content:space-between;gap:8px;align-items:baseline;font-size:12px}figcaption strong{font-size:24px;font-weight:500}.graphs svg{display:block;width:100%;height:auto;max-height:110px}.method{grid-column:1/-1;border-top:1px solid var(--line);margin:0 24px 20px;padding-top:10px}.method summary{font-size:12px;cursor:pointer;padding:4px 0}.method>div{columns:2;column-gap:32px;margin-top:12px}.method p{font-size:12px;break-inside:avoid}#recap ol{padding-left:20px;font-size:12px;max-height:240px;overflow:auto}#recap li{margin-bottom:10px}#recap strong{font-weight:600}.recap-metrics{display:flex;gap:20px;margin:12px 0}.recap-metrics strong{font-size:24px;display:block}.recap-metrics span{font-size:12px}.recap-title{font-size:16px;font-weight:600}.previous{font-size:12px}[hidden]{display:none!important}@media(max-width:1000px) and (min-width:721px){main{grid-template-columns:minmax(0,1.35fr) minmax(330px,1fr)}.decision{padding:16px}.world-head{padding:10px 12px;align-items:start;flex-wrap:wrap}.world-head>div:first-child{gap:8px}.world-bottom{padding:10px 12px}.radar-wrap svg{max-width:180px}h1{font-size:24px}.graphs{gap:16px}}@media(max-width:720px){header{padding:8px 12px}header>a span{display:none}header>div{gap:6px}main{display:block}.world-head{padding:8px 12px;gap:8px}.world-head strong{font-size:24px}.world-head>div:first-child{gap:8px}.world-head span{max-width:12ch;line-height:1.2}.speeds{gap:4px}.speeds button{padding:4px 6px}.stage canvas{height:260px;aspect-ratio:auto;object-fit:cover}.world-bottom{padding:8px 12px}.world-bottom p{max-width:30ch}#age-track{padding:0 12px 8px}.decision{padding:16px}h1{font-size:24px;margin:8px 0}#narrative{font-size:16px}.radar-wrap svg{max-width:170px;width:57%}.radar-wrap p{max-width:20ch}.allocation-row{padding:3px 0}.resources{padding:12px 16px}.section-line h2{font-size:16px;font-weight:600}.resources>.section-line>span{font-size:12px;max-width:16ch;text-align:right}.graphs{gap:12px;grid-template-columns:1fr;margin-top:12px}.graphs figure{display:grid;grid-template-columns:120px minmax(0,1fr);align-items:center;gap:8px}.graphs figcaption{display:block}.graphs figcaption strong{display:block;font-size:24px}.graphs svg{max-height:85px}.method{margin:0 16px 16px}.method>div{columns:1}.tabs{margin:8px 0}#birth-info dl{margin:12px 0}#birth-info dt{margin-top:8px}#last-event{margin-top:10px}.hint{margin:8px 0}.profile-field{margin:10px 0}#recap ol{max-height:none;overflow:visible}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Birth is an experience to watch, not a dashboard waiting for data. */
.birth-stage .stage{grid-column:1/-1}.birth-stage .decision,.birth-stage .resources,.birth-stage .method{display:none}.birth-stage .stage canvas{height:calc(100svh - 155px);aspect-ratio:auto;object-fit:cover}.birth-stage .world-bottom p{font-size:16px;max-width:65ch}.birth-stage .world-head{padding:10px 24px}.birth-stage .world-bottom{padding:10px 24px}@media(max-width:720px){.birth-stage .stage canvas{height:calc(100svh - 175px)}.birth-stage .world-head,.birth-stage .world-bottom{padding:10px 12px}.birth-stage .world-bottom p{font-size:12px}}
@media(max-width:720px){body:not(.birth-stage) .stage canvas{height:180px}#priorities{display:grid;grid-template-columns:138px minmax(0,1fr);gap:12px;align-items:start}.radar-wrap{display:flex;flex-direction:column;gap:4px}.radar-wrap svg{width:138px;max-width:138px}.radar-wrap p{max-width:20ch}.allocation-row{grid-template-columns:minmax(64px,1fr) 28px 18px 28px;gap:4px}.allocation-row button{min-width:28px}.allocation-row span{font-size:12px}.hint{font-size:12px}.decision{padding:12px 16px}}
#radar text{font-size:18px}@media(max-width:720px){#radar text{font-size:26px}.graphs svg text{font-size:20px}}
@media(max-width:720px){#priorities{grid-template-columns:minmax(115px,.95fr) minmax(150px,1fr);gap:8px}.radar-wrap svg{width:100%;max-width:220px}}
@media(min-width:721px) and (max-width:1100px){.stage{grid-column:1;grid-row:1}.decision{grid-column:2;grid-row:1/span 2}.resources{grid-column:1;grid-row:2;padding:12px 16px}.resources h2{font-size:16px}.graphs{grid-template-columns:1fr;gap:6px}.graphs figure{display:grid;grid-template-columns:120px minmax(0,1fr);gap:8px;align-items:center}.graphs figcaption{display:block}.graphs figcaption strong{display:block}.graphs svg{max-height:80px}.graphs svg text{font-size:16px}.method{grid-row:3}.birth-stage .stage{grid-column:1/-1}}
/* Controls occupy their labels and keep their hit areas unpainted. */
button{border:0;background:none;width:max-content;max-width:100%;padding:5px 7px;flex:0 0 auto}button:hover{background:none;color:#a35d00}header{padding:6px 12px}header>div{gap:6px}header button{min-height:32px;padding:4px 6px}.world-head{padding:6px 12px}.speeds{gap:6px}.speeds button{border:0;background:none;padding:4px 3px;min-width:26px}.speeds button[aria-pressed=true]{background:none;color:var(--amber);border-bottom:2px solid var(--amber)}.speeds button:hover{color:var(--amber)}.world-bottom{padding:6px 12px}.world-bottom button{padding:4px 0;min-height:32px;border:0;border-bottom:1px solid #738b77}.tabs{gap:16px}.tabs button{border:0;padding:4px 0;min-height:32px}.tabs button[aria-pressed=true]{border:0;border-bottom:2px solid var(--ink)}.allocation-row{display:flex;gap:6px;width:max-content;max-width:100%;border:0;padding:3px 0}.allocation-row>span{width:9ch;flex:0 0 9ch}.allocation-row output{width:20px;flex:0 0 20px}.allocation-row button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-width:28px;min-height:28px;padding:0;border:0;border-radius:50%;font-size:20px;line-height:1}.allocation-row button:hover{background:#e3ddcc}.primary{background:none;color:var(--ink);border:0;border-bottom:3px solid var(--amber);padding:6px 0;min-height:44px;font-size:16px}.primary:hover{background:none;color:#a35d00}select{border:0;border-bottom:1px solid #77877b;background:none;padding:5px 18px 5px 0;width:max-content;max-width:100%}#age-track{padding-bottom:8px}.birth-stage .world-head,.birth-stage .world-bottom{padding:6px 12px}@media(max-width:720px){.world-head{padding:5px 12px}.world-bottom{padding:5px 12px}.speeds{gap:5px}.tabs{gap:16px}.allocation-row>span{width:8ch;flex-basis:8ch}.allocation-row{gap:4px}.allocation-row output{width:16px;flex-basis:16px}.allocation-row button{width:26px;min-width:26px}.primary{padding:6px 0}.world-bottom p{max-width:35ch}}
@media(max-width:720px){.allocation-row button{width:32px;height:32px;min-width:32px;min-height:32px}}

/* One editor, with an explicitly separate optional comparison. */
#priorities{display:block}.allocation-heading{display:flex;align-items:baseline;gap:16px;margin:10px 0 4px;max-width:32ch;font-size:12px}.allocation-heading strong{font-weight:600}.allocation-heading #points-note{white-space:nowrap;color:var(--muted)}#allocation{width:max-content;max-width:100%}.allocation-row{display:grid;grid-template-columns:10ch 32px 24px 32px;gap:8px;padding:2px 0}.allocation-row>span{width:auto;min-width:0}.allocation-row output{width:auto;font-variant-numeric:tabular-nums}.allocation-row button{width:32px;height:32px;min-width:32px;min-height:32px}.allocation-help{font-size:12px;color:var(--muted);max-width:40ch;margin:6px 0 10px}#shape-comparison{width:max-content;max-width:100%;margin:8px 0 12px}#shape-comparison summary{cursor:pointer;font-size:12px;text-decoration:underline;text-underline-offset:3px;padding:4px 0}#shape-comparison .radar-wrap{display:flex;flex-direction:row;align-items:center;gap:12px;margin-top:6px}#shape-comparison #radar{width:200px;max-width:100%;flex-shrink:1}#shape-comparison #radar text{font-size:18px}.shape-key{display:flex;flex-direction:column;gap:8px;min-width:11ch;font-size:12px}.shape-key span::before{content:'';display:inline-block;width:16px;margin-right:5px;vertical-align:middle;border-top:2px solid #a35d00}.shape-key .starting-key::before{border-color:#52635b;border-top-style:dashed}#effect-preview{margin:10px 0 12px;max-width:40ch}@media(max-width:720px){#priorities{display:block}.allocation-row{grid-template-columns:10ch 32px 24px 32px;gap:8px}.allocation-row>span{font-size:16px;width:auto}.allocation-heading{margin-top:6px;gap:12px}#shape-comparison #radar{width:190px}.allocation-help{max-width:38ch}}
