:root{color-scheme:light;--paper:#f6f5ee;--panel:#fffef8;--ink:#183e32;--muted:#586659;--line:#ccd6c2;--soft:#e7eddf;--green:#183e32;--track:#d4ddcb;--fill:#527a50}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.45 Arial,Helvetica,sans-serif}main{max-width:860px;margin:auto;padding:18px}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Georgia,serif;font-weight:400}h1{font-size:30px;line-height:1.1}header{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;gap:10px;align-items:center}.brand img{flex:none}.brand p{font-size:12px;margin-top:4px}.language select{max-width:110px}.review{font-size:11px;text-transform:uppercase;letter-spacing:.7px;margin:8px 0;color:var(--muted)}.intro{font-size:13px}.book{font:italic 14px/1.4 Georgia,serif;margin-top:5px}.counter{text-align:center;margin-top:12px}.bank{font:48px/1.1 Georgia,serif;font-variant-numeric:tabular-nums}.bank small{font-size:22px}.counter>p{font-size:12px;margin:4px 0}.hint{font-size:11px;color:var(--muted);line-height:1.35;margin-top:4px}button,select{font:inherit;min-height:44px;border-radius:5px}button{cursor:pointer;padding:8px 10px;border:1px solid var(--line);background:var(--panel);color:var(--ink)}select{color:var(--ink);background:var(--panel);border:1px solid var(--line);padding:6px;max-width:100%}button.green,.action,.choice,.build{background:var(--green);color:#fffef8;border:1px solid var(--green)}button:enabled:hover{filter:brightness(1.15)}button:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b3913f;outline-offset:3px}button:disabled{background:#e4e5df;color:#586052;border-color:#bec6b8;cursor:not-allowed}#gain{display:flex;gap:8px;align-items:center;justify-content:center;width:100%;max-width:440px;margin:8px auto 0;font-size:13px}#gain img{flex:none}.journey{max-width:440px;margin:9px auto 0}.bar-label{display:flex;justify-content:space-between;gap:8px;font-size:12px;margin-bottom:5px}.segments{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px}.segments i{height:9px;background:var(--track);border-radius:2px}.segments .filled{background:var(--fill)}.segments .partial{background:linear-gradient(to right,var(--fill) var(--portion),var(--track) var(--portion))}.playback{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:5px;font-size:11px}.playback button{font-size:12px}section{padding:9px;background:var(--soft);border:1px solid var(--line);border-radius:7px;margin-top:9px}h2{display:flex;align-items:center;gap:7px;font-size:22px;line-height:1.15;margin-bottom:6px}h2 img{width:30px;height:30px;flex:none}.actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:6px}.action{display:flex;align-items:center;gap:7px;text-align:left;font-size:12px;line-height:1.3;padding:7px;min-width:0}.action img{width:25px;height:25px;flex:none;background:#fffef8;border-radius:4px}.action span{min-width:0}details{margin-top:5px;font-size:12px}summary{min-height:44px;display:flex;align-items:center;cursor:pointer}summary:before{content:'＋';margin-right:6px}details[open] summary:before{content:'−'}details label{display:flex;gap:8px;align-items:center;justify-content:space-between}#notice:empty{display:none}#notice{font-size:12px;margin-top:5px}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.metric{background:var(--panel);border:1px solid var(--line);border-radius:5px;padding:6px 8px;min-width:0}.label{font-size:12px;line-height:1.3;color:var(--muted)}.value{font:27px/1.2 Georgia,serif;font-variant-numeric:tabular-nums;margin-top:3px;overflow-wrap:anywhere}.value small{font:12px Arial,sans-serif}.production{grid-column:span 2;display:grid;grid-template-columns:1fr 1fr;gap:10px}.equivalent{border-left:1px solid var(--line);padding-left:10px}.operating{display:flex;gap:5px 16px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin-top:6px}meter{display:block;width:100%;height:6px;margin-top:5px;appearance:none;border:0;background:var(--track)}meter::-webkit-meter-bar{background:var(--track);border:0;height:6px}meter::-webkit-meter-optimum-value{background:var(--fill)}meter::-moz-meter-bar{background:var(--fill)}.projects{display:grid;gap:5px}.project{display:grid;grid-template-columns:32px minmax(0,1fr) 120px 102px;gap:6px 9px;align-items:center;padding:7px;background:var(--panel);border:1px solid var(--line);border-radius:5px}.project>img{width:32px;height:32px}.project h3{font-size:18px;line-height:1.2}.project .type{font-size:11px;color:var(--muted)}.project .track{min-width:0}.project .track p{font-size:11px;margin-top:3px}.project .segments{gap:3px}.project .segments i{height:7px}.build{padding:6px;font-size:12px}.build small{display:block;font-size:11px}.project-status{grid-column:2/5;font-size:11px;color:var(--muted)}.project-status:empty{display:none}.project:target{outline:2px solid #b3913f}#decision-content>h3{font-size:22px;margin-bottom:5px}#decision-content>p{font-size:13px;margin-bottom:6px}.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.choice{padding:8px;text-align:left;display:flex;flex-direction:column;gap:5px;min-width:0}.choice-head{display:flex;align-items:center;gap:7px;color:#fff4cd;font:18px/1.2 Georgia,serif}.choice img{width:26px;height:26px;flex:none;background:#fffef8;border-radius:4px}.choice small{font-size:12px;line-height:1.4;color:#eef3e8}.result-image{width:160px;height:160px;object-fit:cover;border-radius:6px;float:right;margin:0 0 8px 12px}.result-table{width:100%;border-collapse:collapse;font-size:12px;margin:8px 0}.result-table th,.result-table td{text-align:left;padding:5px;border-bottom:1px solid var(--line)}footer{font-size:11px;color:var(--muted);margin-top:12px}nav{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}nav button{font-size:11px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}[hidden]{display:none!important}
@media(max-width:600px){main{padding:12px 10px}header{align-items:flex-start}.brand img{width:44px;height:44px}.brand{gap:7px}h1{font-size:25px}.brand p{font-size:11px}.language select{max-width:88px;font-size:12px}.actions{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.production{grid-column:1/-1}.metric:not(.production) .label{min-height:32px;display:flex;align-items:center}h2{font-size:21px}.project{grid-template-columns:28px minmax(0,1fr) 94px;gap:4px 6px}.project>img{width:28px;height:28px;grid-row:1/3}.project h3{font-size:16px}.project .track{grid-column:2;display:flex;gap:5px;align-items:center}.project .track .segments{flex:1}.project .track p{margin:0;white-space:nowrap}.project .build{grid-column:3;grid-row:1/3}.project-status{grid-column:2/4}.choices{grid-template-columns:1fr}.result-image{width:110px;height:110px}.value{font-size:25px}}
@media print{header .language,.review,.counter,.journey,section:not(:last-of-type),footer,.result-actions{display:none!important}body,main{background:white;color:#183e32}section{background:white;border:0}.result-image{width:180px;height:180px}.result-table{font-size:14px}}
/* Website integration: shared masthead/community and actual scenario downloads. */
.choice:disabled .choice-head,.choice:disabled small{color:#586052}
:root{--serif:Georgia,serif;--sans:Arial,Helvetica,sans-serif}
.community-wrap{max-width:860px;margin:auto;padding:0 18px 18px}.community-wrap .game-community{background:transparent;border:0;border-top:1px solid var(--line);margin-top:12px;padding-top:16px}.community-wrap h2{display:block}.community-wrap .contribution{padding:14px;gap:12px}.community-wrap footer{display:flex;gap:10px;flex-wrap:wrap}
.button-link,.main-action,a.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:var(--green);color:#fffef8;padding:8px 12px;border:1px solid var(--green);border-radius:5px;text-decoration:none;font:13px/1.4 var(--sans)}
a{color:var(--green)}#legacy-open{display:inline-flex;align-items:center;min-height:44px}#legacy-notice{padding:10px;border:1px solid var(--line);border-radius:6px;background:var(--soft);font-size:12px;margin:8px 0}#legacy-notice a{margin-top:6px}#jump-key{font-size:12px}.playback{flex-wrap:wrap}
.scenario-panel{display:flow-root}.scenario-panel h3{font:24px/1.2 var(--serif);margin:4px 0}.scenario-panel p{font-size:13px;margin:5px 0}.scenario-question{font-style:italic}.future-options{display:flex;gap:6px;flex-wrap:wrap}.future-options button{font-size:12px}.future-options button[aria-pressed=true]{outline:2px solid #ae8b35;outline-offset:1px}.scenario-panel .button-link{margin:6px 0}
#share-dialog input,#share-dialog textarea{font-size:16px}#share-dialog .button{background:var(--green);color:#fffef8;border:1px solid var(--green);border-radius:5px;padding:8px 12px;min-height:44px}#share-dialog .quiet{display:inline-flex;align-items:center;min-height:44px;border:1px solid var(--line);padding:6px 10px;border-radius:5px;background:var(--panel);color:var(--ink);text-decoration:none}.share-dialog-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:600px){.community-wrap{padding:0 10px 12px}.contribution{grid-template-columns:1fr!important}.game-discussion{gap:8px!important}.game-discussion>img{width:30px!important;height:30px!important}.community-wrap .contribution h2,.community-wrap .game-discussion h2{font-size:23px}.playback{justify-content:space-between}}
@media print{aw-game-masthead,.community-wrap,#legacy-notice,#share-dialog,.scenario-panel details,.scenario-panel .button-link{display:none!important}#decade-game>section:not(#key-decisions){display:none!important}}


/* Personal-time choices remain compact and readable at narrow widths. */
#personal-options label{flex-wrap:wrap;margin-top:6px}#personal-options select{min-width:0;max-width:100%}#personal-budget{overflow-wrap:anywhere}.duration-note{margin-bottom:6px}

/* Keep restarting visible without widening the playback or result controls. */
.result-controls{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.playback button,.result-controls button{max-width:100%;white-space:normal}
@media print{.result-controls{display:none!important}}
