:root{color-scheme:dark;font-family:Inter,system-ui,sans-serif;color:#e9f5f3;background:#071d21}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 85% 0,#12474b88,transparent 50%),#071d21}header,main{max-width:1160px;margin:auto;padding:24px}header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ffffff14}a{color:inherit;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}header a:first-child{font-size:25px;font-weight:750}header a:last-child{font-size:14px;color:#a9c4c4}.eyebrow{font-size:11px;letter-spacing:.16em;color:#77c5bd;margin-top:30px}h1{font-size:clamp(34px,5vw,62px);line-height:1.08;letter-spacing:-.045em;margin:20px 0}em{font-style:normal;color:#6fe0c9}.intro{max-width:660px;color:#abc2c3;line-height:1.6}nav{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:28px 0 16px}button{font:inherit;cursor:pointer;color:inherit;border:1px solid #ffffff24;background:#123137;border-radius:12px;min-height:48px;padding:10px 14px}nav button{text-align:left;font-size:14px}button[aria-current=true]{border-color:#6fe0c9;background:#19534f}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ff9567;outline-offset:3px}.stage{background:linear-gradient(130deg,#103238,#0b2429);border:1px solid #ffffff19;border-radius:22px;padding:24px}.stage-head{display:flex;gap:12px;justify-content:space-between;font-size:14px}.badge{font-size:11px;color:#b1ccc8}#chart{height:285px;margin-top:14px}svg{width:100%;height:100%;overflow:visible}.legend{display:flex;gap:18px;color:#aac9c6;font-size:11px;flex-wrap:wrap}.transport{display:flex;gap:8px;align-items:center;margin:22px 0}#play{background:#ff5a1f;color:white;border:0;min-width:136px}input{width:100%;min-width:30px;accent-color:#6fe0c9;min-height:44px}#story{min-height:104px}h2{font-size:22px;letter-spacing:-.025em}#story h2{margin:0 0 8px}#story p,aside p{color:#b3ccca;line-height:1.6;margin-top:8px}#metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.metric{padding:16px;background:#071d2180;border-radius:12px}.metric span{font-size:11px;color:#a6bfbd;display:block}.metric strong{display:block;margin-top:8px;font-size:21px;font-weight:550}.bottom{display:grid;grid-template-columns:1.3fr 1fr;gap:40px;padding-top:15px}#lots{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.lot{border:1px solid #ffffff1b;border-radius:10px;padding:12px 7px;font-size:11px;color:#89aaa7}.lot.active{background:#1e5a51;color:#c8fff0;border-color:#5bc5ad}.lot b{display:block;margin-top:6px;font-size:13px}.note,footer{color:#94afad;line-height:1.65;font-size:12px}.note{border-top:1px solid #ffffff20;padding-top:20px}footer{padding:35px 0} @media(max-width:600px){header,main{padding:16px}nav{grid-template-columns:1fr 1fr}.stage{padding:16px;border-radius:16px}#chart{height:220px}.stage-head{font-size:12px}.badge{font-size:10px}#metrics{grid-template-columns:1fr 1fr}.metric{padding:12px}.metric strong{font-size:19px}.bottom{grid-template-columns:1fr;gap:8px}#story{min-height:155px}#lots{grid-template-columns:repeat(5,1fr)}.transport{gap:6px}#play{min-width:110px;padding:10px}h1{margin-top:16px}#story h2{font-size:20px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
@media(max-width:600px){#lots{grid-template-columns:repeat(2,minmax(0,1fr))}.stage-head{flex-wrap:wrap}.metric{min-width:0}.metric strong{overflow-wrap:anywhere}.legend span:nth-child(2){color:#e7c28a}.legend span:nth-child(3){color:#ff8855}}
/* Compact player: keep chart and essential controls together on a phone. */
header{padding:4px 20px;min-height:48px}header a:first-child{font-size:19px}main{padding:12px 20px}h1{font-size:20px;margin:0;letter-spacing:-.025em;display:flex;align-items:center;gap:12px}h1 span{font-size:12px;color:#9cbab7;font-weight:400;letter-spacing:0}nav{margin:12px 0;gap:6px}nav button{font-size:12px;padding:8px 10px}.stage{padding:14px 18px;border-radius:16px}.stage-head{font-size:12px}#chart{height:clamp(190px,35svh,350px);margin-top:5px}.legend{font-size:10px;gap:12px}.buy-key{color:#ff707b}.sell-key{color:#5ae5ac}.transport{margin:10px 0;gap:6px}#story{height:82px;min-height:0;overflow:auto}#story h2{font-size:16px;margin:0 0 4px}#story p{font-size:12px;line-height:1.4;margin:0}#metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.metric{padding:10px;min-width:0}.metric span{font-size:10px}.metric strong{font-size:18px;margin-top:4px;overflow-wrap:anywhere}.explanation{margin-top:12px;border-top:1px solid #ffffff1a}.explanation summary{min-height:44px;padding:12px 0;cursor:pointer;color:#a9c4c0;font-size:13px}#extra-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.bottom{padding-top:0}.bottom .eyebrow{margin-top:16px}footer{padding:12px 0;font-size:10px;max-width:850px}
@media(max-width:600px){header{padding:0 12px;min-height:44px}header a:first-child{font-size:17px}header a:last-child{font-size:11px}main{padding:7px 10px}h1{font-size:17px;gap:8px}h1 span{font-size:10px}nav{grid-template-columns:1fr 1fr;margin:8px 0;gap:5px}nav button{min-height:44px;font-size:11px;padding:6px 8px}.stage{padding:10px;border-radius:12px}.stage-head{font-size:11px;gap:5px}.badge{font-size:9px}#chart{height:clamp(160px,29svh,260px)}.legend{font-size:9px;gap:9px}.transport{margin:7px 0}#play{min-width:104px;font-size:13px}#back,#next{min-width:44px;padding:8px}#story{height:76px}#story h2{font-size:14px}#story p{font-size:11px;line-height:1.4}#metrics{grid-template-columns:1fr 1fr;gap:5px}.metric{padding:7px 8px}.metric span{font-size:9px}.metric strong{font-size:16px;margin-top:3px}#extra-metrics{grid-template-columns:1fr 1fr}.explanation{margin-top:5px}.bottom h2{font-size:18px}}
@media(max-height:690px) and (max-width:600px){#chart{height:155px}#story{height:66px}.metric{padding:5px 7px}}
nav{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:600px){nav{grid-template-columns:repeat(3,minmax(0,1fr))}nav button{font-size:10px}}
#recovery[hidden]{display:none}#recovery{border-top:1px solid #ffffff17;padding-top:7px}.recovery-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;font-size:9px;color:#a9c4c0}.recovery-stats b{display:block;font-size:12px;color:#efbf85;margin-top:3px}.equity-caption{display:flex;gap:9px;font-size:10px;color:#8cd9c3;margin-top:8px;align-items:center}.equity-caption span{margin-left:auto;color:#91aaa5;font-size:9px}#recovery svg{display:block;height:49px;width:100%}.stage:has(#recovery:not([hidden])) #chart{height:clamp(140px,24svh,230px)}@media(max-width:600px){.recovery-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;font-size:8px}.recovery-stats b{font-size:10px}.equity-caption{flex-wrap:wrap;font-size:9px;gap:4px}.equity-caption span{font-size:8px}.stage:has(#recovery:not([hidden])) #chart{height:155px}#recovery svg{height:38px}}
.capital-work{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:5px 0;font-size:9px;color:#aac4c0}.capital-work b{display:block;font-size:12px;margin-top:4px}.capital-work span:nth-child(1) b{color:#efbf85}.capital-work span:nth-child(n+2) b{color:#66dfba}@media(max-width:600px){.capital-work{grid-template-columns:1fr 1fr;font-size:8px}.capital-work b{font-size:11px;margin-top:2px}}
.sub-trade{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 0}.sub-trade span{display:block;color:#9ebeb5;font-size:10px}.sub-trade strong{display:block;font-size:13px;margin-top:5px;font-weight:600}.sub-trade i,.sub-trade em{font-style:normal}.sub-trade i{color:#ff808b}.sub-trade em,.sub-trade>b{color:#80ebbd}.sub-trade>b{font-size:19px;white-space:nowrap}.sub-trade small{display:block;font-size:8px;font-weight:400;color:#a7c4bb;margin-top:3px}.sub-status{color:#bdd4cd;font-size:11px;line-height:1.4;margin:4px 0 7px}@media(max-width:600px){.sub-trade strong{font-size:11px}.sub-trade>b{font-size:15px}.sub-trade span{font-size:9px}.sub-status{font-size:10px}}
nav{grid-template-columns:repeat(6,minmax(0,1fr))}nav button[data-chapter="presentation"]{border-color:#ff8c5d;color:#ffd1bd;background:#62352355}nav button[data-chapter="presentation"][aria-current="true"]{background:#a44120;color:#fff}#presentation-note{font-size:10px;color:#b7ccc6;margin:7px 0 0;line-height:1.4}#presentation-note[hidden]{display:none}@media(max-width:600px){nav{grid-template-columns:repeat(3,minmax(0,1fr))}}
#next-scene{margin-top:6px;min-height:44px;padding:6px 12px;font-size:12px;color:#c9f9e9;border-color:#6fe0c966}#next-scene[hidden]{display:none}
.account-caption{display:flex;justify-content:space-between;gap:8px;margin:5px 0;font-size:10px;color:#cfbf9c}.account-caption span:first-child{color:#96e7d0}.account-caption b{margin-left:5px}#recovery svg.account-curve{display:block;width:100%;height:62px}@media(max-width:600px){.account-caption{font-size:8px;flex-wrap:wrap;gap:3px}#recovery svg.account-curve{height:45px}}
/* Publication layout: quiet navigation, consistent type, compact mobile controls. */
body{background:#071d21}header{max-width:1160px;padding:6px 20px;min-height:48px}.demo-brand{gap:9px;font-size:19px!important}.demo-brand img{background:#eef3e8;border-radius:50%;padding:3px}header a:last-child{font-size:12px;letter-spacing:.04em}.demo-links{max-width:1120px;margin:0 auto;display:flex;gap:24px;border-bottom:1px solid #ffffff14;padding:0 0 2px}.demo-links a{font-size:12px;color:#9fbab6;border-bottom:2px solid transparent}.demo-links a[aria-current]{color:#effaf7;border-color:#67cbb4}main>h1{font-size:21px;font-weight:600;margin:5px 0 16px}#chapters{gap:6px}#chapters button{border-radius:8px;background:#0b282d;border-color:#ffffff1a;font-size:12px;line-height:1.4;padding:9px 12px}#chapters button[aria-current=true]{background:#1b443f;border-color:#73c8b3}.stage{background:#0b252a;border-color:#ffffff1a;border-radius:12px}.badge{font-size:10px;color:#91aaa6}.metric{border-radius:6px;background:#081f23}.metric strong{font-variant-numeric:tabular-nums}#play{border-radius:8px}.transport button{border-radius:8px}#story h2{font-weight:600}footer{color:#94aba7;font-size:11px;line-height:1.6}.explanation summary{color:#bdcfca}button{transition:background-color .15s,border-color .15s}
@media(max-width:600px){header{padding:3px 12px}.demo-links{margin:0 12px;gap:14px}.demo-links a{font-size:10px;line-height:1.3}.demo-links a:last-child{max-width:125px}main{padding:12px}main>h1{font-size:19px;margin:0 0 12px}#chapters{grid-template-columns:repeat(2,minmax(0,1fr));margin:0 0 10px}#chapters button{min-height:44px;font-size:11px;padding:6px 10px}.stage{padding:10px}.metric span{font-size:10px}.metric strong{font-size:16px}#story{height:82px}#story p{font-size:12px}.stage:has(#recovery:not([hidden])) #chart{height:175px}}
.guard-panel{padding:6px 0 9px}.guard-panel>span{font-size:10px;color:#9db6b0}.guard-panel>strong{display:block;font-size:17px;font-weight:600;margin:4px 0 8px}.guard-panel.paused>strong{color:#efbd76}.guard-panel.ready>strong{color:#84e5b9}.guard-panel>div{display:flex;gap:25px;font-size:11px;color:#aec4bd}.guard-panel b{color:#e9f5f3;margin-left:5px}.guard-panel small{display:block;color:#9bb2ab;font-size:10px;margin-top:7px;line-height:1.4}#chapters button:last-child:nth-child(7){border-color:#8d9fb755} @media(min-width:601px){#chapters:has(button:nth-child(7)){grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:600px){.guard-panel>strong{font-size:14px}.guard-panel>div{font-size:10px;gap:15px}.guard-panel small{font-size:9px}}
.cycle-dashboard{display:flex;align-items:center;gap:14px;padding:8px 0}.cycle-ring{width:66px;height:66px;flex:none;border-radius:50%;padding:4px;background:conic-gradient(#78d6b8 var(--cycle-progress),#ffffff12 0)}.cycle-ring>div{width:100%;height:100%;background:#0b252a;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center}.cycle-ring b{font-size:18px;color:#effaf6}.cycle-ring span{font-size:8px;color:#9ab8ae}.cycle-info{display:flex;flex-direction:column;gap:5px;font-size:10px;color:#a8bfb6}.cycle-info>strong{font-size:15px;color:#e7f5ee}.cycle-info b{color:#8be4ba}.cycle-dots{display:flex;gap:7px;flex-wrap:wrap;padding-bottom:8px}.cycle-dots>span{color:#71938a;background:#ffffff05;border:1px solid #ffffff12;border-radius:6px;padding:4px 7px;font-size:10px}.cycle-dots small{font-size:9px}.cycle-dots .done{color:#9ae8c2;border-color:#68c7a34d}.cycle-dots .active{color:#f2d5a6;border-color:#f2d5a660}@media(max-width:600px){.cycle-dashboard{gap:10px}.cycle-ring{width:54px;height:54px}.cycle-ring b{font-size:16px}.cycle-info>strong{font-size:13px}.cycle-info{font-size:9px}.cycle-dots{gap:4px}.cycle-dots small{display:none}.cycle-dots>span{min-width:26px;text-align:center}}
