/* Compact dashboard and visible decisions, shared by EN/FR/ES. */
#decade-game{max-width:1024px}#decade-game .headline-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}#decade-game .headline-metrics>div{min-width:0;padding-right:8px;border-right:1px solid var(--line)}#decade-game .headline-metrics>div:last-child{border:0}#decade-game .headline-metrics .label{display:block}#decade-game .headline-metrics .value{font-size:32px}#decade-game .headline-metrics .hint{display:block}#decade-game .journey{max-width:none;margin-top:12px}#decade-game .playback{justify-content:flex-start;gap:8px;margin:10px 0}#decade-game #status{margin-left:auto}#pause:before{content:'';display:inline-block;width:10px;height:11px;margin-right:7px;background:currentColor;clip-path:polygon(0 0,100% 50%,0 100%)}#pause[aria-pressed=false]:before{clip-path:none;background:linear-gradient(to right,currentColor 0 30%,transparent 30% 70%,currentColor 70% 100%)}#restart-top:before{content:'↻';margin-right:7px;font-size:18px}
#decade-game .taskbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0}#decade-game .taskbar>div{min-width:0}#decade-game .taskbar>div:last-child{max-width:65%}#decade-game .available-bank{font-size:18px;font-variant-numeric:tabular-nums}#decade-game #gain{width:auto;margin:0}#decade-game #gain-hint{max-width:280px}#decade-game #seed{margin-bottom:8px}
#decade-game .dashboard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto repeat(5,auto);gap:10px 16px}#decade-game .dashboard-group{display:grid;grid-template-rows:subgrid;grid-row:span 6;gap:10px;padding:12px;min-width:0;margin:0;border-radius:12px}#decade-game .dashboard-group h2{margin:1px 0 4px;font-size:23px}#decade-game .dashboard-rows{display:contents}
#decade-game .dashboard-card{background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:12px;min-width:0;display:flex;flex-direction:column;gap:5px}#decade-game .dashboard-card h3,#decade-game .project h3{font:500 14px/1.3 Arial,sans-serif;display:flex;align-items:center;gap:8px;min-width:0}#decade-game .dashboard-card h3 img,#decade-game .project h3 img{width:32px;height:32px;flex-shrink:0;background:#fffdf6;border-radius:6px}#decade-game .dashboard-card-body{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:1}#decade-game .reading{display:flex;align-items:center;gap:7px;min-width:0}#decade-game .reading>div:last-child{min-width:0}#decade-game .reading .value{font-size:27px;margin:0}#decade-game .metric-caption{display:block;font-size:11px;line-height:1.3;color:var(--muted);margin-top:4px}#decade-game .dial{width:52px;flex-shrink:0}#decade-game .dial svg{display:block;width:100%;height:auto}#decade-game .dial-labels{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}#decade-game .action{display:block;text-align:center;min-width:102px;min-height:52px;font-size:13px;border-radius:7px;flex-shrink:0}#decade-game .action-cost,#decade-game .build small{display:block;font-size:11px;margin-top:3px;color:#fff0bc}#decade-game .action>span{display:block}
#decade-game #investment-section,#decade-game #key-decisions{padding:12px;border-radius:12px;margin-top:16px}#decade-game #investment-section h2,#decade-game #key-decisions h2{margin-bottom:12px;font-size:23px}#decade-game .projects,#decade-game #decision-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}#decade-game .project,#decade-game .strategy-card{min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:9px;background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:12px}#decade-game .project .track{display:block;margin-top:auto}#decade-game .project .track p{font-size:12px;text-align:right;margin:4px 0 0}#decade-game .project .build{width:100%;min-width:0;min-height:48px;border-radius:7px;font-size:13px}#decade-game .project-status{font-size:11px;color:var(--muted)}#decade-game .project-status:empty,#decade-game .development:empty{display:none}#decade-game .development-track{height:5px;background:var(--track);overflow:hidden;border-radius:3px;margin-top:4px}#decade-game .development-track>div{height:100%;background:#bc9237}#decade-game .strategy-card h3{font:500 14px/1.3 Arial,sans-serif}#decade-game .choices{display:flex;flex-direction:column;gap:8px}#decade-game .choice{border-radius:7px;min-height:48px}#decade-game .choice-head{font:500 13px/1.35 Arial,sans-serif;color:inherit}#decade-game .choice small{font-size:11px;color:#fff0bc}#decade-game .selected-choice{font-weight:500}
#decade-game button.action:disabled,#decade-game button.build:disabled,#decade-game button.choice:disabled{background:#e4e4e2;color:#5b5b59;border-color:transparent;opacity:1}#decade-game button:disabled .action-cost,#decade-game button.build:disabled small,#decade-game button.choice:disabled small,#decade-game button.choice:disabled .choice-head{color:#5b5b59}#decade-game button.action:enabled,#decade-game button.build:enabled,#decade-game button.choice:enabled{background:var(--green);color:#fff;border-color:var(--green)}#decade-game #decision-content.has-result{display:block}
.community-wrap{max-width:1024px}.community-wrap .contribution{display:flex;align-items:center;justify-content:space-between}.community-wrap .contribution>p{color:#171717;font:14px/1.6 Arial,sans-serif;flex:1}.community-wrap .contribution-action{flex-shrink:0}.community-wrap .share-buttons{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.community-wrap .share-buttons button{padding:0;border:0;background:none;width:44px;min-height:44px}.community-wrap .share-icon{display:grid;place-items:center;background:var(--green);color:white;width:44px;height:44px;border-radius:50%;border:0}.community-wrap .share-icon svg{width:24px;height:24px}.community-wrap .share-name{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:670px){#decade-game .headline-metrics{gap:8px}#decade-game .headline-metrics .value{font-size:22px}#decade-game .headline-metrics .value small,#decade-game .headline-metrics .label{font-size:11px}#decade-game .dashboard{gap:8px}#decade-game .dashboard-group{padding:8px 5px;gap:8px}#decade-game .dashboard-group h2{font-size:20px;justify-content:center}#decade-game .dashboard-card{padding:8px 7px}#decade-game .dashboard-card h3,#decade-game .project h3{font-size:13px;gap:6px}#decade-game .dashboard-card h3 img,#decade-game .project h3 img{width:24px;height:24px}#decade-game .dashboard-card-body{flex-direction:column;align-items:stretch;gap:6px}#decade-game .reading{justify-content:center;min-height:54px;gap:5px}#decade-game .reading .value{font-size:24px}#decade-game .dial{width:40px}#decade-game .action{width:100%;min-width:0;min-height:48px;margin-top:auto;font-size:13px;padding:8px 5px}#decade-game .projects,#decade-game #decision-content{gap:8px}#decade-game #investment-section,#decade-game #key-decisions{padding:8px 5px}#decade-game .project,#decade-game .strategy-card{padding:8px 7px;gap:8px}#decade-game .project .track .segments{flex:none}#decade-game .choice-head{flex-wrap:wrap;font-size:12px}#decade-game .choice-head>span{width:100%}#decade-game .choice{padding:8px 6px}.community-wrap .contribution{display:flex;flex-direction:column;align-items:stretch}.community-wrap .contribution-action a{width:100%}}
@media(max-width:350px){#decade-game .reading .value{font-size:21px}#decade-game .dial{width:34px}#decade-game .dashboard-card h3{font-size:12px}#decade-game .headline-metrics .value{font-size:20px}}
@media print{#game-animation,.headline-metrics,.taskbar,.dashboard,#personal-options,#model-details,#seed{display:none!important}}


#omm-animation{padding:20px 6px}
#omm-animation .an-half{--ink:light-dark(#244c39,#d9ebdf);--paper:light-dark(#fafbf7,#18271e);--pale:light-dark(#dce8cf,#354e3c);--line:light-dark(#315b45,#a6c8b0);--gold:light-dark(#ac812b,#e4bb64);--quiet:light-dark(#607263,#b0c1b4);--track:light-dark(#e5ebe1,#304535);}
#omm-animation .an-game{font-family:Arial,sans-serif;color:var(--ink);background:var(--paper);max-width:590px;margin:auto;padding:24px 18px 18px;border-radius:18px;box-shadow:0 8px 28px light-dark(#18352612,#00000035)}
#omm-animation *{box-sizing:border-box}
#omm-animation .an-half h2{font-size:21px;font-weight:500;margin:0 0 26px}
#omm-animation .an-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
#omm-animation .an-half{min-width:0;text-align:center}
#omm-animation .an-half h3{font-size:15px;font-weight:500;margin:0}
#omm-animation .an-scene{height:136px;position:relative;width:100%;max-width:220px;margin:auto}
#omm-animation .an-floor{position:absolute;left:5%;right:5%;bottom:17px;height:2px;background:var(--track)}
#omm-animation .an-robot{width:62px;height:53px;background:var(--pale);border:2px solid var(--line);border-radius:16px;position:absolute;left:calc(50% - 31px);bottom:29px;z-index:3}
#omm-animation .an-antenna{width:2px;height:12px;position:absolute;top:-14px;left:28px;background:var(--line)}
#omm-animation .an-antenna:after{content:'';position:absolute;width:7px;height:7px;left:-2.5px;top:-3px;border-radius:50%;background:var(--gold)}
#omm-animation .an-eyes{position:absolute;top:15px;left:14px;width:6px;height:6px;border-radius:50%;background:var(--line);box-shadow:24px 0 0 var(--line)}
#omm-animation .an-smile{position:absolute;left:22px;top:27px;width:15px;height:8px;border:2px solid var(--line);border-top:0;border-radius:0 0 12px 12px}
#omm-animation .an-feet{position:absolute;left:12px;bottom:-10px;height:8px;width:3px;background:var(--line);box-shadow:31px 0 0 var(--line)}
#omm-animation .an-cog{position:absolute;width:23px;height:23px;left:-12px;bottom:3px;border-radius:50%;background:var(--paper);display:grid;place-items:center;animation:omm-scene-spin var(--speed,7s) linear infinite}
#omm-animation .an-cog svg{width:23px;height:23px}
#omm-animation .an-addon{opacity:0;transform:translateY(4px);transition:opacity .6s,transform .6s}
#omm-animation .an-addon.an-visible{opacity:1;transform:translateY(0)}
#omm-animation .an-module{position:absolute;width:25px;height:35px;border:1.5px solid var(--line);border-radius:7px;background:var(--pale);bottom:28px;left:calc(50% - 60px)}
#omm-animation .an-module:before{content:'';position:absolute;top:8px;left:6px;width:10px;height:3px;border-radius:3px;background:var(--gold);box-shadow:0 8px 0 var(--line)}
#omm-animation .an-mini{left:calc(50% + 37px);height:32px;border-radius:9px}
#omm-animation .an-mini:before{top:10px;left:5px;width:4px;height:4px;border-radius:50%;background:var(--line);box-shadow:9px 0 0 var(--line)}
#omm-animation .an-mini:after{content:'';position:absolute;top:20px;left:7px;width:8px;height:3px;border-bottom:1px solid var(--line);border-radius:50%}
#omm-animation .an-clock{position:absolute;top:48px;left:calc(50% + 7px);height:15px;width:15px;border:1.5px solid var(--gold);border-radius:50%;opacity:0;animation:omm-scene-clock var(--flow,6s) linear infinite;z-index:4}
#omm-animation .an-clock:before{content:'';position:absolute;left:5.5px;top:2px;height:5px;width:1.5px;background:var(--gold)}
#omm-animation .an-clock:after{content:'';position:absolute;left:5.5px;top:6px;height:1.5px;width:4px;background:var(--gold)}
#omm-animation .an-clock.an-b{animation-delay:calc(var(--flow,6s) / -3)}
#omm-animation .an-clock.an-c{animation-delay:calc(var(--flow,6s) / -1.5)}
#omm-animation [data-step="0"] .an-clock{visibility:hidden}
#omm-animation [data-step="0"] .an-cog{animation-play-state:paused}
#omm-animation .an-driver{position:absolute;left:calc(50% - 38px);bottom:18px;width:76px;height:96px}
#omm-animation .an-head{position:absolute;left:28px;top:1px;width:20px;height:22px;border:2px solid var(--line);border-radius:45%;background:var(--pale)}
#omm-animation .an-face{position:absolute;top:8px;left:5px;width:2px;height:2px;border-radius:50%;background:var(--line);box-shadow:6px 0 0 var(--line)}
#omm-animation .an-body{position:absolute;left:19px;top:29px;width:38px;height:49px;border:2px solid var(--line);border-radius:15px 15px 5px 5px;background:var(--pale)}
#omm-animation .an-legs{position:absolute;left:25px;bottom:0;width:5px;height:21px;background:var(--line);border-radius:2px;box-shadow:21px 0 0 var(--line)}
#omm-animation .an-wheel-group{position:absolute;left:14px;top:38px;width:48px;height:48px;z-index:3;animation:omm-scene-steer 5s ease-in-out infinite}
#omm-animation .an-wheel{position:absolute;inset:0;background:var(--paper);border-radius:50%;color:var(--line);display:grid;place-items:center}
#omm-animation .an-wheel svg{width:48px;height:48px;stroke-width:1.6}
#omm-animation .an-hand{position:absolute;top:15px;width:9px;height:12px;border:1.5px solid var(--line);border-radius:5px;background:var(--pale);z-index:4}
#omm-animation .an-hand.an-left{left:-3px}#omm-animation .an-hand.an-right{right:-3px}
#omm-animation .an-arm{position:absolute;top:40px;width:8px;height:26px;background:var(--pale);border:1.5px solid var(--line);border-radius:5px;z-index:2}
#omm-animation .an-arm.an-left{left:10px;transform:rotate(14deg)}#omm-animation .an-arm.an-right{right:10px;transform:rotate(-14deg)}
#omm-animation .an-weak .an-wheel{color:var(--gold);animation:omm-scene-spin 4s linear infinite}
#omm-animation .an-weak .an-wheel-group{animation-duration:7s}
#omm-animation .an-weak .an-hand{transform:translateY(5px)}
#omm-animation .an-symbols{height:30px;display:flex;align-items:center;justify-content:center;gap:6px;color:var(--line)}
#omm-animation .an-symbol{display:inline-flex;width:22px;height:24px;align-items:center;justify-content:center}
#omm-animation .an-symbol svg{width:20px;height:20px;stroke-width:1.7}
#omm-animation .an-speed-symbols .an-symbol{position:relative}
#omm-animation .an-speed-symbols .an-current{color:var(--gold)}
#omm-animation .an-speed-symbols .an-current:after{content:'';position:absolute;left:7px;right:7px;bottom:-3px;height:2px;background:var(--gold);border-radius:2px}
#omm-animation .an-energy-symbol{position:relative}
#omm-animation .an-energy-symbol .an-bolt{position:absolute;right:-2px;bottom:0;background:var(--paper);display:flex;color:var(--gold)}
#omm-animation .an-energy-symbol .an-bolt svg{width:10px;height:10px;stroke-width:2.5}
#omm-animation .an-power{position:absolute;left:calc(50% + 36px);bottom:60px;width:27px;height:20px;color:var(--gold);display:grid;place-items:center}
#omm-animation .an-power svg{width:18px;height:18px}
#omm-animation .an-weak .an-governance-symbol{color:var(--gold)}
#omm-animation .an-security-symbol{color:var(--gold)}
#omm-animation .an-intelligence{position:absolute;left:calc(50% - 13px);top:10px;width:26px;height:26px;color:var(--line);background:var(--paper);display:grid;place-items:center}
#omm-animation .an-intelligence svg{width:25px;height:25px}
#omm-animation .an-research{position:absolute;left:calc(50% - 59px);top:14px;width:27px;height:35px;border:1.5px solid var(--gold);border-radius:9px 9px 4px 4px;color:var(--gold);background:var(--paper);display:grid;place-items:center}
#omm-animation .an-research svg{width:18px;height:18px}
#omm-animation .an-research:after{content:'';position:absolute;left:11px;top:-7px;width:3px;height:6px;background:var(--gold);border-radius:3px}
#omm-animation [data-step="5"] .an-robot{border-color:var(--gold)}
#omm-animation [data-step="5"] .an-antenna:after{box-shadow:0 0 0 4px color-mix(in srgb,var(--gold) 15%,transparent)}
#omm-animation .an-module.an-deployed-left{left:calc(50% - 61px)}
#omm-animation .an-caption,#omm-animation .an-control-caption{min-height:32px;font-size:12px;color:var(--quiet);display:flex;align-items:center;justify-content:center;margin:5px 0 0;line-height:1.3}
#omm-animation .an-controls{margin-top:20px;padding-top:14px;border-top:1px solid var(--track)}
#omm-animation .an-range-label{font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#omm-animation .an-stage{font-weight:500}
#omm-animation input[type=range]{width:100%;accent-color:var(--line);min-height:30px;margin:6px 0 9px}
#omm-animation .an-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#omm-animation .an-tools label{display:flex;align-items:center;gap:7px;min-height:44px;font-size:12px}
#omm-animation input[type=checkbox]{accent-color:var(--line);width:16px;height:16px}
#omm-animation .an-controls button{font-family:inherit;font-size:13px;min-height:44px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--paper);padding:8px 14px}
#omm-animation .an-paused .an-cog,#omm-animation .an-paused .an-clock,#omm-animation .an-paused .an-wheel-group,#omm-animation .an-paused .an-wheel,#omm-animation .an-paused .an-belt:before,#omm-animation .an-paused .an-link:after{animation-play-state:paused}
@keyframes omm-scene-spin{to{transform:rotate(360deg)}}
@keyframes omm-scene-clock{0%{opacity:0;transform:translate(0,0) scale(.6)}15%{opacity:.9}85%{opacity:.6}100%{opacity:0;transform:translate(34px,-36px) scale(.95)}}
@keyframes omm-scene-steer{0%,100%{transform:rotate(-17deg)}50%{transform:rotate(17deg)}}
@media(max-width:390px){#omm-animation .an-game{padding:22px 10px 16px}#omm-animation .an-pair{gap:10px}#omm-animation .an-symbols{gap:4px}#omm-animation .an-caption{font-size:11px}}
@media(prefers-reduced-motion:reduce){#omm-animation *,#omm-animation *:before,#omm-animation *:after{animation:none!important;transition:none!important}#omm-animation .an-clock.an-a{opacity:.8;transform:translate(23px,-23px)}}

#omm-animation{padding:0 0 18px}#omm-animation .an-game{padding:0;background:transparent;box-shadow:none;max-width:none;border-radius:0}#omm-animation .an-pair{gap:16px}#omm-animation .an-half h3{font:400 21px Georgia,serif;margin:0}#omm-animation .an-symbols{height:32px}#omm-animation .an-symbol{background:transparent}#omm-animation .an-symbol img{width:20px;height:20px}
#omm-animation .an-game,#omm-animation .an-half{margin:0;border:0;background:transparent;padding:0}#omm-animation .an-half h3{display:block;font:400 21px Georgia,serif}#omm-animation .an-half img{display:block;width:100%;height:100%;object-fit:contain}#omm-animation .an-symbol img{width:22px;height:22px}#omm-animation .wheel-drawing{display:block;width:100%;height:100%;border:3px solid var(--line);border-radius:50%;background:repeating-conic-gradient(var(--line) 0deg 8deg,transparent 8deg 60deg);box-shadow:inset 0 0 0 5px var(--paper)}#omm-animation .an-wheel .wheel-drawing{width:44px;height:44px}#omm-animation .an-cog .wheel-drawing{width:23px;height:23px;border-width:2px}#omm-animation .an-paused *{animation-play-state:paused!important}@media(prefers-reduced-motion:reduce){#omm-animation *{animation:none!important;transition:none!important}}

/* Spending balance first; all investments live in their corresponding card. */
#decade-game .taskbar{padding:14px;background:#e7eddc;border:1px solid #c9d4bb;border-left:5px solid #bd9335;border-radius:10px;align-items:center}
#decade-game .taskbar .label{color:var(--ink);font-weight:700;font-size:14px}#decade-game .budget-help{font-size:11px;color:var(--muted);margin-top:3px}#decade-game .available-bank{font:32px/1.3 Georgia,serif;margin-top:4px}#decade-game .available-bank small{font:13px Arial,sans-serif}
#decade-game .taskbar>div:last-child{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-width:62%}#decade-game #gain,#decade-game #jump-key{width:100%;font-size:12px;min-height:48px;margin:0}#decade-game #gain-hint{grid-column:1/-1;margin:0}#decade-game #jump-key:disabled,#decade-game #fast-forward:disabled{background:#e4e4e2;color:#5b5b59;border-color:transparent;opacity:1}#decade-game .playback{flex-wrap:wrap}#decade-game #fast-forward[aria-pressed=true]{background:#a5771e}
#decade-game .dashboard-card-body{flex:0;justify-content:center}#decade-game .card-investments{margin-top:auto;display:grid;gap:10px}#decade-game .project{display:flex;flex-direction:column;border:0;border-radius:0;padding:0;gap:5px;background:none}#decade-game .project+.project{border-top:1px solid var(--line);padding-top:10px}#decade-game .project h3{font-size:11px}#decade-game .project h3 img{display:none}#decade-game .project .track{width:100%;margin-top:1px}#decade-game .project .track p{font-size:10px}#decade-game .project .build{min-height:48px}#decade-game .project-status{font-size:10px}#decade-game #personal-options{width:100%;margin-top:auto}#decade-game #personal-options summary{font-size:11px;min-height:32px}#decade-game #personal-options label{display:block}#decade-game #personal-options select{width:100%;font-size:12px}#decade-game #personal-hint,#decade-game #personal-units{display:none}
#omm-animation .an-symbols{height:auto;min-height:60px;align-items:flex-start}#omm-animation .an-symbol{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;position:relative;gap:4px;width:28px;height:auto;min-height:50px;overflow:visible}#omm-animation .an-symbol .mini-dial{width:26px;opacity:1}#omm-animation .mini-dial svg{width:100%;height:auto}#omm-animation .an-energy-symbol .an-bolt{display:none}#omm-animation .an-symbol{opacity:1!important}
#decade-game .scenario-panel{display:flex;flex-direction:column;gap:12px}#decade-game .scenario-panel>.hint{font-size:12px}#decade-game .result-image{display:block;float:none;width:min(100%,360px);height:auto;aspect-ratio:1;margin:0 auto;object-fit:cover}#decade-game #future-title{font:30px/1.15 Georgia,serif;text-align:center}#decade-game .score-title{margin:24px 0 10px;font-size:23px}#decade-game .score-group th{padding-top:15px;background:#dfe7d5;font-weight:700}#decade-game .score-total{font-weight:700;background:#e7eddc}#decade-game .result-table{table-layout:fixed}#decade-game .result-table th:first-child{width:44%}#decade-game .result-table td,#decade-game .result-table th{overflow-wrap:anywhere}#decade-game .result-totals{font-size:12px;margin:12px 0}
@media(max-width:670px){#decade-game .taskbar{display:grid;grid-template-columns:1fr;padding:10px;gap:10px}#decade-game .taskbar>div:last-child{max-width:none}#decade-game .available-bank{font-size:30px}#decade-game .project{padding:0}#decade-game .dashboard-card-body{align-items:stretch}#decade-game .result-image{width:min(100%,320px)}#decade-game .result-table{font-size:11px}#decade-game #future-title{font-size:26px}}
@media print{#decade-game>header,#decade-game>.intro,#decade-game>.book,#notice{display:none!important}#decade-game #key-decisions{display:block!important}#decade-game .result-image{width:220px}#decade-game .result-table tr{break-inside:avoid}#decade-game .result-table{font-size:11px}.scenario-panel>details{display:none!important}}
/* Multiple upgrades share a row on wide screens, with compact stacked controls on phones. */
#decade-game .card-investments{margin-top:6px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}#decade-game .card-investments>.project:only-child{grid-column:1/-1}#decade-game .project+.project{border-top:0;padding-top:0}#decade-game #personal-options{margin-top:6px}#decade-game .project .track p{line-height:1.1;margin:2px 0 0}#decade-game .project .track .segments i{height:5px}#decade-game .dashboard-card{justify-content:flex-start}#decade-game .project h3{min-height:28px}
@media(max-width:670px){#decade-game .card-investments{grid-template-columns:1fr;gap:7px}#decade-game .project{gap:3px}#decade-game .project+.project{border-top:1px solid var(--line);padding-top:6px}#decade-game .project h3{min-height:0;font-size:10px}#decade-game .project .build{min-height:44px;padding:5px}#decade-game .project-status{font-size:9px;margin-top:0}}

/* Compact controls: preserve readable labels and a 44px tap target. */
#decade-game .taskbar{border:0;background:none;padding:0;gap:12px;margin:12px 0}
#decade-game .taskbar .label{font-weight:500;font-size:14px}
#decade-game .taskbar>div:last-child{max-width:none;flex:1;grid-template-columns:1fr 1fr}
#decade-game #gain,#decade-game #jump-key,#decade-game #fast-forward{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px;font-size:13px}
#decade-game #gain img,#decade-game #jump-key img{width:22px;height:22px;flex-shrink:0;background:transparent}
#decade-game #fast-forward svg{width:18px;height:16px;flex-shrink:0}
#decade-game .available-bank{font-size:28px;margin:2px 0}
#decade-game .dashboard{grid-template-rows:auto;align-items:start}
#decade-game .dashboard-group{display:block;grid-row:auto}
#decade-game .dashboard-rows{display:flex;flex-direction:column;gap:8px}
#decade-game .dashboard-group h2{margin-bottom:8px}
#decade-game .dashboard-card{padding:10px;gap:6px}
#decade-game .dashboard-card-body{flex-direction:column;align-items:stretch;gap:6px}
#decade-game .reading{justify-content:center;min-height:52px}
#decade-game .card-investments{margin-top:0;grid-template-columns:1fr;gap:6px}
#decade-game .project+.project{border-top:1px solid var(--line);padding-top:6px}
#decade-game .project h3{min-height:0;font-size:12px}
#decade-game .project .build,#decade-game .action{display:block;min-height:44px;padding:7px 5px;font-size:13px;line-height:1.35;width:100%;min-width:0}
#decade-game .action>span,#decade-game .action-cost,#decade-game .build small{display:inline;font-size:inherit;margin:0;color:inherit}
#decade-game .action-cost:before,#decade-game .build small:before{content:' · '}
#decade-game .project .track{display:flex;align-items:center;gap:6px;margin:0}
#decade-game .project .track .segments{flex:1}
#decade-game .project .track p{margin:0;white-space:nowrap;font-size:11px}
#decade-game .project-status{font-size:10px;line-height:1.25}
#decade-game .auto-reserve{font-size:11px;min-height:44px}
#decade-game #decision-alert{position:sticky;top:8px;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px;background:var(--panel);border:2px solid var(--green);border-radius:9px;margin:10px 0;box-shadow:0 2px 8px #183e3218}
#decade-game #decision-alert[hidden]{display:none}
#decade-game #decision-alert strong,#decade-game #decision-alert span{display:block;font-size:13px;line-height:1.35}
#decade-game #decision-alert span{font-size:11px;color:var(--muted)}
#decade-game #decision-go{min-height:44px;flex-shrink:0;font-size:13px}
#decade-game .strategy-card{scroll-margin-top:105px}
#decade-game .brand>img{width:80px;height:80px;object-fit:contain;background:none}
@media(max-width:670px){
 #decade-game .taskbar{display:grid;gap:8px;grid-template-columns:1fr;text-align:center}
 #decade-game .available-bank{font-size:26px}
 #decade-game .taskbar>div:last-child{width:100%}
 #decade-game #gain,#decade-game #jump-key{font-size:12px}
 #decade-game .dashboard-card{padding:8px 6px}
 #decade-game .project .build,#decade-game .action{font-size:12px}
 #decade-game .playback button{min-height:44px;font-size:12px;padding:8px}
 #decade-game #decision-alert{top:4px;padding:8px;gap:6px}
 #decade-game #decision-go{font-size:12px;padding:8px}
}
@media print{#decision-alert{display:none!important}}
#decade-game .action-cost,#decade-game .build small{white-space:nowrap}
#decade-game #fast-forward[aria-pressed=true]{background:var(--green);box-shadow:inset 0 0 0 2px #8eaa78}
#decade-game #fast-forward:disabled{background:#e4e4e2;box-shadow:none}
/* Wrap at the action/cost boundary on narrow translated cards. */
#decade-game .project .build,#decade-game .action{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;column-gap:3px;row-gap:0}
#decade-game .project .build>span,#decade-game .action>span{min-width:0;overflow-wrap:anywhere}

/* Balance column heights while retaining compact, independently sized cards. */
#decade-game .dashboard{align-items:stretch}
#decade-game .dashboard-group{display:flex;flex-direction:column}
#decade-game .dashboard-rows{flex:1;justify-content:space-between}
#decade-game #pause{scroll-margin-top:80px}
#decade-game .project-effect{font-size:10px;line-height:1.3;color:var(--muted);margin:0}


/* One compact crisis alert; no flashing or motion is required to notice it. */
#decade-game .crisis-alert{display:flex;gap:12px;align-items:flex-start;background:#fff2cd;border:1px solid #bd8b16;border-left:4px solid #bd8b16;border-radius:12px;padding:14px;margin:16px 0;color:#183e32}
#decade-game .crisis-alert[hidden]{display:none}
#decade-game .crisis-alert>img{width:36px;height:36px;flex:none}
#decade-game .crisis-alert p{margin:6px 0;font-size:13px}
#decade-game .crisis-alert button{min-height:44px;margin-top:4px}
#decade-game .crisis-card{grid-column:1/-1;border:2px solid #bd8b16;background:#fff9e9;border-radius:12px;padding:16px;min-width:0}
#decade-game .crisis-card h3{display:flex;gap:8px;align-items:center;margin:0 0 10px}
#decade-game .crisis-card h3 img{width:32px;height:32px;flex:none}
#decade-game .crisis-card p{margin:6px 0 12px}
#decade-game .crisis-card .choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#decade-game .crisis-card .choice{white-space:normal;min-width:0;min-height:44px}
#decade-game .crisis-card .choice-head{font-weight:600}
#decade-game .crisis-impact{font-size:13px;font-weight:600}
#decade-game .crisis-resolved{border-width:1px;padding:12px}
#decade-game .crisis-resolved p{margin-bottom:0}
@media(max-width:650px){#decade-game .crisis-card .choices{grid-template-columns:1fr}}
@media print{#crisis-alert{display:none!important}#decade-game .crisis-resolved{break-inside:avoid}}

#decade-game .instructions-title{font-size:16px;margin:16px 0 4px;font-weight:600}
#decade-game .result-table .score-total + .score-group th{border-top:16px solid var(--panel,#e8eedc)}
#decade-game .result-table .score-total{background:#dce7d2;border-top:2px solid #52765a}

/* Separate the instructions from the more compact animation. */
#decade-game .intro{white-space:pre-line;margin-bottom:24px}
#omm-animation .an-scene{zoom:.88}

/* Current decisions stay prominent; completed decisions form a compact timeline. */
#decade-game .crisis-card h3,#decade-game .history-entry h3{font:500 14px/1.35 Arial,Helvetica,sans-serif;display:flex;align-items:center;gap:8px;margin:0 0 6px}
#decade-game .crisis-card p,#decade-game .history-entry p{font:400 13px/1.45 Arial,Helvetica,sans-serif;margin:4px 0}
#decade-game #decision-history{padding:12px;margin-top:16px}
#decade-game #decision-history h2{font-size:23px;margin-bottom:12px}
#decade-game #history-content{display:grid;gap:8px}
#decade-game .history-entry{padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel);min-width:0}
#decade-game .history-entry h3 img,#decade-game .crisis-resolved h3 img{width:24px;height:24px;flex:none}
#decade-game .history-entry .history-effect{font-size:11px;color:var(--muted)}
#decade-game .metric-definition{display:block;max-width:100%;font-size:10px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#decade-game .reading>div:last-child{min-width:0}
@media print{#decade-game #decision-history{display:block!important}#decade-game #decision-history[hidden]{display:none!important}#decade-game .history-entry{break-inside:avoid}}

/* Keep cards compact instead of stretching gaps to equalise column heights. */
#decade-game .dashboard{align-items:start}
#decade-game .dashboard-rows{justify-content:flex-start}
#decade-game #decision-content{align-items:start}
#decade-game .personal-uses{display:grid;gap:6px;margin-top:0}
#decade-game .personal-use{display:flex;flex-direction:column;gap:3px;min-width:0}
#decade-game .personal-use+.personal-use{border-top:1px solid var(--line);padding-top:6px}
#decade-game .personal-use h3{font:500 12px/1.3 Arial,Helvetica,sans-serif;margin:0}
#decade-game .personal-use p{margin:0}
#decade-game .personal-allocation{font-size:10px;line-height:1.3;color:var(--muted)}
