@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{color-scheme:dark;--blue:#040f21;--green:#8ff000;--yellow:#f0ed00;--white:#ffffff;--black:#000000;--ink:#ffffff;--muted:#ffffffb3;--line:#ffffff26;--panel:#ffffff05;--font:'DM Sans',sans-serif;--display:'Manrope',sans-serif}

*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-bottom:145px}
body{margin:0;background:var(--blue);color:var(--ink);font:1rem/1.6 var(--font);-webkit-font-smoothing:antialiased}
button,input{font:inherit}
button,a,summary,label{-webkit-tap-highlight-color:transparent}
button,summary{cursor:pointer}
button{color:inherit}
a{color:inherit;text-decoration:none}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--yellow);outline-offset:4px}
[hidden]{display:none!important}
h1,h2,h3,p,figure{margin:0}
h1,h2,h3,strong{font-family:var(--display)}
h2,h3{line-height:1.3}
img{display:block;max-width:100%;object-fit:cover}
button{border:0}
summary{list-style:none}
summary::-webkit-details-marker{display:none}
summary::marker{content:''}
button,summary{touch-action:manipulation}
svg{display:block;max-width:100%}

.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:8px;left:16px;z-index:50;background:var(--yellow);color:var(--blue);padding:10px 18px;border-radius:8px;transform:translateY(-150%)}
.skip-link:focus{transform:translateY(0)}
.eyebrow{display:block;font-size:.75rem;font-weight:700;line-height:1.5;letter-spacing:1.6px;color:var(--green)}

.header{max-width:1420px;margin:auto;padding:21px 36px;display:flex;align-items:center;gap:27px;border-bottom:1px solid var(--line)}
.brand{flex-shrink:0}
.brand img{width:190px;height:auto}
.header h1{font-size:.875rem;font-weight:600;line-height:1.5;max-width:475px;color:var(--muted)}
.header h1 span{color:var(--white)}
.header>.text-button{margin-left:auto;white-space:nowrap}
.question{width:25px;height:25px;border:1px solid var(--line);border-radius:50%;display:inline-grid;place-items:center;margin-left:8px;font-size:.875rem}
.text-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:transparent;padding:8px 0;min-height:44px;font-size:.875rem;font-weight:600;line-height:1.4;color:var(--muted)}
.text-button:hover{color:var(--green)}

main{max-width:1320px;padding:25px 32px 0;margin:auto}
.intro{display:flex;gap:25px;justify-content:space-between;align-items:center;margin-bottom:24px}
.intro p{margin-top:5px;font-size:1rem;color:var(--muted);max-width:600px}
.mode-control{display:flex;padding:5px;gap:3px;border:1px solid var(--line);border-radius:12px;flex-shrink:0}
.mode-control button{border-radius:8px;padding:9px 13px;background:transparent;color:var(--muted);font-size:.875rem;font-weight:600;min-height:43px}
.mode-control button.active{background:var(--white);color:var(--blue);box-shadow:0 3px 0 #00000066}
.mode-control button:not(.active):hover{color:var(--white);background:#ffffff0d}

.play-layout{display:grid;grid-template-columns:minmax(320px,380px) minmax(0,1fr);gap:26px;align-items:start}
.ecosystem{position:static;min-width:0}
.board-panel{min-width:0}
.mobile-overview{display:none}
.world-card{border:1px solid #ffffff33;background:var(--blue);border-radius:22px 6px 22px 6px;overflow:hidden;box-shadow:0 7px 0 #00000066;transition:border-color .5s,box-shadow .5s}
.world-meter{padding:20px 22px 0;position:relative;z-index:1}
.health-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.health-heading>span{display:flex;flex-direction:column;gap:5px}
.health-heading>strong{font-size:2.5rem;font-weight:800;line-height:1}
.health-heading small{font:500 .875rem var(--font);color:var(--muted);margin-left:3px}
.status{font-size:.875rem;color:var(--muted);line-height:1.3}
.health-track{height:10px;background:#ffffff1a;border-radius:4px;overflow:hidden;margin-top:15px}
.health-track i{display:block;width:50%;height:100%;background:var(--green);border-radius:4px;transition:width .65s ease,background .3s}
.health-track.at-risk i{background:var(--yellow)}
.world-visual{position:relative;isolation:isolate}
.world-visual>img{width:100%;height:auto;object-position:center top;transition:opacity .6s,filter .6s}
.world-caption{position:relative;margin-top:-25%;padding:14px 22px 15px;background:linear-gradient(0deg,var(--blue) 55%,#040f2100)}
.world-caption h2{font-size:1.6rem;letter-spacing:-.5px;margin-top:3px}
.world-caption p{font-size:.875rem;line-height:1.5;color:var(--muted);margin-top:6px;max-width:280px}
.world-caption .eyebrow{font-size:.75rem}
.world-card[data-vitality=growing]{border-color:#8ff00099;box-shadow:0 7px 0 #8ff0001a}
.world-card[data-vitality=risk]{border-color:var(--yellow)}
.world-card[data-vitality=risk] .world-visual>img{opacity:.58}
.world-card[data-vitality=empty] .world-visual>img{opacity:.3}
.world-card[data-vitality=empty] .status{color:var(--yellow)}

.scores{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:17px 20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#ffffff04}
.scores>div+div{border-left:1px solid var(--line);padding-left:13px}
.scores span{display:block;font-size:.8125rem;color:var(--muted);line-height:1.4}
.scores strong{display:block;font-size:1.65rem;line-height:1.4;margin-top:3px}
.scores>div:first-child strong{color:var(--green)}
.board-details{padding:0 20px}
.board-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:51px;font-size:.875rem;font-weight:600}
.board-details>summary>span{color:var(--muted);font-weight:400;font-size:.8125rem}
.board-details>summary::after{content:'+';font-size:1.25rem;color:var(--green)}
.board-details[open]>summary::after{content:'−'}
.journey-map{padding:1px 0 7px}
.path-group{padding:8px 12px 10px;border:1px solid transparent;border-radius:10px;margin-bottom:5px}
.path-group.active-chapter{background:#8ff00008;border-color:#8ff0004d}
.path-heading{font-size:.75rem;color:var(--muted);font-weight:600;letter-spacing:.4px}
.active-chapter .path-heading{color:var(--green)}
.path-nodes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;padding:0;margin:9px 0 0;gap:12px}
.path-nodes li{display:flex;justify-content:center;position:relative;min-width:0}
.path-nodes li:not(:nth-child(4n))::after{content:'';position:absolute;left:75%;right:-32%;top:24px;height:1px;background:#ffffff33;z-index:0}
.path-node{position:relative;z-index:1;display:grid;place-items:center;width:47px;height:47px;flex-shrink:0;border-radius:50%;background:var(--blue);border:1px dashed #ffffff66;color:var(--muted);font-size:.875rem;line-height:1}
.path-node img{border-radius:50%;width:35px;height:35px}
.path-node span{position:absolute;right:-5px;bottom:-1px;min-width:21px;height:21px;display:grid;place-items:center;padding:0 3px;border-radius:7px;background:var(--blue);border:1px solid #ffffff66;font-size:.75rem;color:var(--white)}
.path-node.left-value{border:2px solid var(--green)}
.path-node.took-value{border:2px solid var(--yellow)}
.path-node.current-node{border:2px solid var(--white);box-shadow:0 0 0 4px #ffffff1a}
.path-node.future-node{opacity:.6}
.path-node:is(button):hover{transform:translateY(-2px);box-shadow:0 3px 0 #00000088}
.map-note{font-size:.75rem;color:var(--muted);line-height:1.5;margin:5px 0 17px}
.missions-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:14px;border-top:1px solid var(--line)}
.missions-heading h3{font-size:.875rem}
.missions-heading>span{font-size:.75rem;color:var(--muted);white-space:nowrap}
.mission-list{display:grid;gap:13px;margin-top:16px}
.mission{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;align-items:start}
.mission-seal{display:grid;place-items:center;width:34px;height:38px;border:1px solid #ffffff4d;border-radius:11px 3px 11px 3px;color:var(--muted);font-size:1.5rem;line-height:1}
.mission.earned .mission-seal{background:var(--green);color:var(--blue);border-color:var(--green);box-shadow:0 3px 0 #8ff00033}
.mission-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mission-title>strong{font-size:.875rem}
.mission-title>span{font-size:.75rem;color:var(--muted)}
.mission p{font-size:.8125rem;line-height:1.5;color:var(--muted);margin-top:3px}
.mission-ticks{display:flex;gap:5px;margin-top:7px}
.mission-ticks i{height:4px;flex:1;border-radius:3px;background:#ffffff26}
.mission-ticks i.filled{background:var(--green)}
.board-details>.small-note{margin:14px 0 20px;font-size:.75rem}

.ecosystem-details{padding:0 18px;border:1px solid var(--line);border-radius:12px;margin-top:17px;background:var(--panel)}
.ecosystem-details>summary{min-height:49px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.875rem;font-weight:500}
.ecosystem-details>summary>span{color:var(--green);font-size:1.25rem}
.ecosystem-details>p{font-size:.875rem;line-height:1.6;color:var(--muted)}
.ecosystem-details>.small-note{margin-bottom:18px}
.impact-title{font-weight:700;margin:17px 0 6px;color:var(--green)!important}
.impact-metrics{margin:8px 0 0}
.impact-metrics>div{display:flex;gap:15px;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);font-size:.875rem;line-height:1.45}
.impact-metrics dt{color:var(--muted)}
.impact-metrics dd{margin:0;font-weight:700;white-space:nowrap}

.game-column{min-width:0}
.game-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;min-height:43px;margin-top:-4px}
.round-label{font-size:.75rem;letter-spacing:1px;font-weight:700;color:var(--green)}
.toolbar-actions{display:flex;gap:17px;flex-wrap:wrap;align-items:center}
.count{display:inline-grid;place-items:center;min-width:21px;height:21px;border-radius:6px;background:#ffffff0d;color:var(--white);font-size:.75rem}
.journey-progress{height:3px;background:#ffffff1a;margin:5px 0 17px;border-radius:3px;overflow:hidden}
.journey-progress span{display:block;width:0;height:100%;background:var(--green);transition:width .5s}
.game-stage{border:1px solid #ffffff33;border-radius:6px 22px 6px 22px;background:var(--panel);padding:25px;min-width:0;scroll-margin-top:15px;box-shadow:0 7px 0 #00000066}
.scene-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.topic{display:inline-block;font-size:.75rem;font-weight:600;color:var(--blue);background:var(--yellow);padding:4px 9px;border-radius:5px;line-height:1.5}
.scene-meta>span:last-child{font-size:.75rem;letter-spacing:1px;color:var(--muted);text-align:right}
.game-stage h2{font-family:var(--display);font-weight:800;font-size:clamp(1.65rem,2.25vw,2rem);letter-spacing:-.65px;line-height:1.25}
.encounter-title{display:flex;align-items:center;gap:20px}
.encounter-title>div:first-child{flex:1;min-width:0}
.encounter-title .eyebrow{font-size:.75rem;letter-spacing:1px;margin-bottom:7px}
.portrait-token{width:88px;flex-shrink:0;align-self:flex-start;position:relative;margin:0 2px 12px 0;transform:rotate(3deg)}
.portrait-token img{width:88px;height:88px;border:3px solid var(--white);border-radius:19px 5px 19px 5px;box-shadow:5px 5px 0 #8ff00040}
.portrait-token>span{display:block;position:absolute;left:50%;bottom:-12px;transform:translateX(-50%);background:var(--white);border-radius:5px;padding:2px 12px;font-size:.8125rem;line-height:1.6;color:var(--blue);font-weight:700;white-space:nowrap}
.scene-description{font-size:1rem;color:var(--muted);line-height:1.65;margin-top:16px}
.character-context{display:flex;gap:12px;border-left:2px solid #8ff00080;background:#8ff00007;margin:19px 0 23px;padding:14px 15px;border-radius:0 10px 10px 0}
.context-marker{font-family:Georgia,serif;font-size:2.7rem;line-height:1.1;color:var(--green)}
.character-context p{font-size:1rem;line-height:1.6}
.encounter-note{display:block;color:var(--muted);font-size:.8125rem;margin-top:8px}
.risk-note{display:flex;gap:10px;align-items:flex-start;font-size:.875rem;border:1px solid #f0ed0066;color:var(--white);background:#f0ed000a;border-radius:8px;padding:11px 13px;margin:0 0 19px}
.risk-note>span{display:grid;place-items:center;width:19px;height:19px;flex-shrink:0;border:1px solid var(--yellow);color:var(--yellow);border-radius:50%;font-weight:700;margin-top:2px}

.choices{display:flex;flex-direction:column;gap:10px;border:0;padding:0;margin:0;min-width:0}
.choices legend{width:100%;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;margin-bottom:14px;padding:0;font-size:1rem;font-weight:700;line-height:1.5}
.choices legend small{font-size:.75rem;font-weight:400;color:var(--muted)}
.choice{position:relative;display:flex;gap:13px;align-items:flex-start;min-width:0;padding:16px 14px;border:1px solid #ffffff33;border-radius:12px 4px 12px 4px;cursor:pointer;background:var(--blue);box-shadow:0 3px 0 #00000066;transition:transform .18s,border-color .18s,background .18s;animation:card-arrival .28s backwards;animation-delay:calc(var(--card-index)*35ms)}
.choice:hover{border-color:#ffffff99;transform:translateX(3px);background:#ffffff07}
.choice:focus-within{outline:3px solid var(--yellow);outline-offset:3px}
.choice:has(input:checked){border-color:var(--green);background:#8ff0000d;box-shadow:0 3px 0 #8ff00033;transform:translateX(3px)}
.choice input{position:absolute;left:14px;top:17px;width:1px;height:1px;opacity:0;margin:0}
.letter{display:grid;place-items:center;width:29px;height:29px;flex-shrink:0;background:#ffffff0d;border:1px solid #ffffff33;border-radius:6px;font:700 .8125rem var(--display);color:var(--muted);margin-top:1px}
.choice:has(input:checked) .letter{background:var(--green);color:var(--blue);border-color:var(--green)}
.choice-copy{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.choice-copy>strong{font-size:1rem;font-weight:700;line-height:1.5}
.choice-copy>span{font-size:1rem;line-height:1.55;color:var(--muted)}
.radio-mark{width:16px;height:16px;flex-shrink:0;border:1px solid #ffffff66;border-radius:50%;margin-top:6px}
.choice:has(input:checked) .radio-mark{border:4px solid var(--green);background:var(--blue)}

.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:12px 17px;min-height:48px;border-radius:9px 3px 9px 3px;font-size:.875rem;font-weight:700;line-height:1.5;border:1px solid transparent;transition:transform .15s,box-shadow .15s}
.primary{background:var(--green);color:var(--blue);box-shadow:0 4px 0 #8ff00040}
.primary:hover:enabled{background:var(--yellow);transform:translateY(-1px);box-shadow:0 5px 0 #f0ed0040}
.primary:active:enabled{transform:translateY(2px);box-shadow:0 2px 0 #8ff00040}
.primary:disabled{opacity:.4;box-shadow:none}
.secondary{background:#ffffff08;color:var(--white);border-color:#ffffff66;box-shadow:0 3px 0 #00000066}
.secondary:hover{border-color:var(--white);background:#ffffff12}
.turn-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;position:sticky;bottom:12px;z-index:5;margin-top:17px;padding:14px 17px;border:1px solid #8ff00080;border-radius:12px 4px 12px 4px;background:var(--blue);box-shadow:0 10px 30px #000000cc}
.turn-actions>div{min-width:0;flex:1}
.turn-actions>div>span:first-child{display:block;font-size:.75rem;font-weight:700;letter-spacing:1px;color:var(--green)}
.turn-actions p{font-size:.875rem;line-height:1.4;color:var(--white);margin-top:3px}
.turn-actions>.primary{max-width:45%;flex-shrink:0}
.keyboard-hint{display:block;margin-top:6px;font-size:.75rem;color:var(--muted)}

.outcome-arena{display:grid;grid-template-columns:1fr minmax(100px,.8fr) 1fr;align-items:center;gap:16px;margin:27px 0 19px;padding:0 5px}
.arena-player{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;position:relative;z-index:1}
.arena-player>strong{font-size:.9375rem}
.arena-photo,.you-token{width:64px;height:64px;border:2px solid var(--white);border-radius:17px 5px 17px 5px}
.you-token{display:grid;place-items:center;background:var(--green);color:var(--blue);font:800 1.9rem var(--display);border-color:var(--green)}
.outcome-badge{display:inline-block;font-size:.75rem;font-weight:600;line-height:1.4;color:var(--green);padding:5px 8px;border:1px solid #8ff0004d;border-radius:5px;background:#8ff0000d}
.outcome-badge.no-return{color:var(--yellow);border-color:#f0ed004d;background:#f0ed000d}
.arena-player .outcome-badge{text-align:center;font-size:.8125rem;max-width:145px;min-height:33px;display:flex;align-items:center;justify-content:center}
.arena-network{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;aspect-ratio:1;border-radius:50%;background:var(--blue);border:2px solid #8ff00080;color:var(--green);box-shadow:0 0 0 6px #8ff0000d}
.arena-network::before,.arena-network::after{content:'';position:absolute;top:50%;height:2px;width:23px;background:currentColor;opacity:.5}
.arena-network::before{right:100%}
.arena-network::after{left:100%}
.arena-network>.eyebrow{font-size:.75rem;letter-spacing:1px;color:inherit}
.arena-network>strong{font-size:2.35rem;line-height:1.2}
.arena-network>span:last-child{font-size:.75rem;color:var(--muted);margin-top:3px}
.arena-network.network-cost{border-color:#f0ed0080;color:var(--yellow);box-shadow:0 0 0 6px #f0ed000a}
.result-scores{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:21px 0}
.result-scores>div{min-width:0;padding:13px 14px;border:1px solid var(--line);border-radius:11px 3px 11px 3px;background:#ffffff04}
.result-scores span{display:block;font-size:.875rem;line-height:1.5;color:var(--muted)}
.result-scores strong{display:block;font-size:2rem;font-weight:800;line-height:1.25;margin:5px 0;color:var(--white)}
.result-scores>div:first-child strong{color:var(--green)}
.result-scores small{display:block;font-size:.75rem;color:var(--muted);line-height:1.5}
.game-stage[data-phase=result] .arena-player{animation:reveal .35s both}
.game-stage[data-phase=result] .arena-player:last-child{animation-delay:.13s}
.game-stage[data-phase=result] .arena-network{animation:reveal .4s .18s both}
.game-stage[data-phase=result] .result-scores{animation:reveal .35s .28s both}

.earned-banner{display:flex;gap:17px;align-items:center;border:1px solid var(--green);border-radius:15px 4px 15px 4px;background:#8ff0000d;padding:16px 18px;margin:17px 0;animation:reveal .35s .36s both}
.seal-symbol{font-size:2.5rem;color:var(--green);line-height:1}
.earned-banner strong{font-size:1.125rem}
.earned-banner p{font-size:.875rem;color:var(--muted);margin-top:3px}
.chapter-complete{display:flex;align-items:center;gap:11px;padding:13px 15px;border-radius:8px;background:#ffffff07;margin:16px 0;font-size:.875rem}
.chapter-complete>span{color:var(--green);font-size:1.4rem}
.chapter-complete strong{display:block}
.chapter-complete p{color:var(--muted)}
.chapter-complete strong{color:var(--white)}
.decision-pair{display:grid;grid-template-columns:1fr;gap:13px;margin-top:21px}
.decision-card{padding:19px;border:1px solid var(--line);border-radius:12px 4px 12px 4px;background:#ffffff03}
.decision-card h3{font-size:1rem;line-height:1.5;margin:6px 0 9px}
.decision-card p{font-size:1rem;color:var(--muted);line-height:1.7}
.character-impact{margin-top:18px;padding:17px 19px;border-left:3px solid var(--green);border-radius:0 9px 9px 0;background:#8ff00007}
.character-impact h3{font-size:1rem;margin-bottom:9px}
.character-impact p{font-size:1rem;color:var(--muted);line-height:1.7}
.lesson{font-size:1rem;line-height:1.7;color:var(--muted);margin:19px 0}
.lesson strong{color:var(--white)}
.small-note{font-size:.8125rem;line-height:1.65;color:var(--muted);margin-top:12px}
.limit-note{padding:10px 12px;background:#f0ed000a;border-radius:6px}

.comparison{margin-top:20px;border-top:1px solid var(--line)}
.comparison>summary{padding:17px 25px 17px 0;font-size:.9375rem;font-weight:600;position:relative;line-height:1.5}
.comparison>summary::after{content:'+';position:absolute;right:0;top:14px;font-size:1.25rem;color:var(--green)}
.comparison[open]>summary::after{content:'−'}
.comparison>.small-note{margin-top:0}
.table-scroll{width:100%;overflow:auto;margin:13px 0;overscroll-behavior-x:contain}
table{border-collapse:collapse;width:100%;font-size:.875rem;text-align:left}
caption{font-size:.8125rem;color:var(--muted);text-align:left;margin-bottom:10px}
th,td{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:top;line-height:1.5}
thead th{font-size:.8125rem;color:var(--muted);font-weight:500}
th:first-child{min-width:180px}
tbody th{font-weight:500}
td{font-variant-numeric:tabular-nums;min-width:78px}
th small,td small{display:block;font-size:.75rem;font-weight:400;color:var(--muted);margin-top:5px}
.selected-row{background:#8ff0000d}
.comparison-letter{font-weight:700;color:var(--green)}
.your-choice{display:block;font-size:.75rem;color:var(--green);margin-top:5px}
.alternative-explanations details{border-bottom:1px solid var(--line)}
.alternative-explanations summary{font-size:.875rem;padding:12px 0;line-height:1.5}
.alternative-explanations p{font-size:1rem;line-height:1.65;color:var(--muted);padding-bottom:14px}

.summary-seals{display:grid;gap:15px;padding:19px;border:1px solid #8ff0004d;border-radius:15px 4px 15px 4px;margin:24px 0 13px}
.health-chart{margin:24px 0;padding:15px 16px;border:1px solid var(--line);border-radius:12px;background:#ffffff03}
.health-chart figcaption{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 15px;font-size:.875rem;line-height:1.5;margin-bottom:14px}
.health-chart figcaption span{color:var(--green);white-space:nowrap}
.health-chart svg{width:100%;height:auto}
.reciprocity{margin:21px 0}
.reciprocity>div{display:flex;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid var(--line);font-size:.9375rem;line-height:1.5}
.reciprocity dt{color:var(--muted)}
.reciprocity dd{margin:0;font-weight:700;color:var(--green);font-size:1.125rem}
.summary-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:24px}
.summary-actions>.text-button{width:100%;justify-content:center}

footer{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;border-top:1px solid var(--line);font-size:.75rem;color:var(--muted);padding:24px 0 27px;margin-top:35px}
footer>span>span{margin:0 7px;color:var(--green)}
footer a:hover{color:var(--green)}
dialog{color-scheme:dark;width:calc(100% - 30px);max-width:760px;max-height:87dvh;padding:28px;border:1px solid #ffffff66;border-radius:19px 5px 19px 5px;background:var(--blue);color:var(--white);box-shadow:0 25px 80px #00000088}
dialog::backdrop{background:#000000cc;backdrop-filter:blur(4px)}
.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:10px}
.close-button{display:grid;place-items:center;font-size:1.6rem;width:44px;height:44px;background:#ffffff0d;border-radius:8px;color:var(--white)}
.close-button:hover{color:var(--green);background:#ffffff1a}
dialog h2{font-size:1.65rem;line-height:1.3;letter-spacing:-.4px;margin-bottom:17px}
dialog>p{font-size:1rem;line-height:1.7;color:var(--muted);margin-bottom:16px}
dialog p strong{color:var(--white)}
.rules-steps{font-size:1rem;padding-left:23px;line-height:1.7;color:var(--muted);margin:19px 0}
.rules-steps li{padding:4px 0 4px 3px}
.rules-steps li::marker{color:var(--green);font-weight:700}
.rule-details{border-top:1px solid var(--line)}
.rule-details summary{position:relative;font-size:1rem;font-weight:600;padding:16px 23px 16px 0;line-height:1.5}
.rule-details summary::after{content:'+';position:absolute;right:0;color:var(--green)}
.rule-details[open] summary::after{content:'−'}
.rule-details p{font-size:1rem;line-height:1.7;color:var(--muted);margin-bottom:16px}
dialog>.primary{margin-top:20px}
.dialog-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.history-entry{margin-top:13px;border:1px solid var(--line);border-radius:12px;padding:0 17px;background:#ffffff03}
.history-entry>summary{display:flex;align-items:center;gap:13px;padding:15px 0}
.history-entry>summary img{width:38px;height:38px;flex-shrink:0;border-radius:10px 3px 10px 3px}
.history-entry>summary>span:nth-child(2){flex:1;min-width:0}
.history-entry summary strong{display:block;font-size:.9375rem;line-height:1.5}
.history-entry summary small{display:block;font-size:.8125rem;color:var(--muted);margin-top:3px;line-height:1.5}
.history-indicator{color:var(--green);font-size:1.3rem}
.history-entry[open] .history-indicator{transform:rotate(45deg)}
.history-entry h3{font-size:1rem;margin:14px 0 9px}
.history-entry p{font-size:1rem;line-height:1.7;color:var(--muted);margin:12px 0}
.history-entry>.outcome-badge{margin-top:2px}
.history-entry .comparison{margin-bottom:12px}
.history-entry .small-note{font-size:.8125rem}
.empty-history{padding:30px 8px;color:var(--muted);text-align:center}
.empty-history p+p{font-size:.875rem;margin-top:7px}
.noscript{padding:20px;background:var(--yellow);color:var(--blue);text-align:center}

@keyframes card-arrival{from{opacity:0;transform:translateY(7px)}
to{opacity:1;transform:translateY(0)}
}
@keyframes reveal{from{opacity:0;transform:translateY(8px) scale(.97)}
to{opacity:1;transform:translateY(0) scale(1)}
}

@media(min-width:1400px){.game-stage{padding:28px}
.play-layout{gap:30px}
}

@media(max-width:1150px){.header{padding:19px 25px;gap:20px}
main{padding-left:25px;padding-right:25px}
.play-layout{grid-template-columns:315px minmax(0,1fr);gap:20px}
.game-stage{padding:21px}
.world-meter{padding-left:18px;padding-right:18px}
.world-caption{padding-left:18px;padding-right:18px}
.world-caption h2{font-size:1.4rem}
.world-caption p{font-size:.8125rem}
.scores{padding:15px;gap:8px}
.scores>div+div{padding-left:9px}
.scores span{font-size:.75rem}
.board-details{padding:0 15px}
.mission{gap:9px;grid-template-columns:30px 1fr}
.mission-seal{width:30px}
.missions-heading{align-items:flex-start;flex-direction:column;gap:3px}
.intro{gap:20px}
.intro p{font-size:.9375rem}
.mode-control button{padding:8px 10px}
.outcome-arena{gap:13px;padding:0}
.arena-network>strong{font-size:2rem}
.arena-network>span:last-child{font-size:.75rem}
.outcome-arena{grid-template-columns:1fr 107px 1fr}
.arena-network::before,.arena-network::after{width:16px}
.encounter-title{gap:15px}
.portrait-token,.portrait-token img{width:77px;height:77px}
.result-scores{gap:8px}
.result-scores>div{padding:12px 10px}
.result-scores span{font-size:.8125rem}
}

@media(max-width:959px){.header{padding:17px 5%;gap:15px}
.header h1{font-size:.8125rem;max-width:370px}
.brand img{width:160px}
.question{display:none}
main{padding:20px 5% 150px}
.intro{align-items:flex-start;margin-bottom:20px;gap:16px}
.intro p{font-size:1rem}
.mode-control{flex-shrink:0}
.play-layout{display:flex;flex-direction:column;gap:20px}
.ecosystem{position:static;width:100%}
.game-column{width:100%}
.mobile-overview{display:flex;align-items:center;gap:13px;padding:13px 16px;border:1px solid #ffffff4d;border-radius:14px 4px 14px 4px;background:#ffffff05;min-height:83px}
.mobile-overview>img{width:54px;height:54px;border-radius:9px;object-fit:cover;object-position:center top;border:1px solid var(--line)}
.mobile-overview>span:nth-child(2){flex:1;min-width:0}
.mobile-overview strong{display:block;font-size:1.3rem;line-height:1.5;font-family:var(--display);color:var(--white)}
.mobile-overview .eyebrow{font-size:.75rem;letter-spacing:.8px;line-height:1.5}
.mobile-score{padding-left:16px;border-left:1px solid var(--line)}
.mobile-score>span{font-size:.8125rem;color:var(--muted)}
.mobile-score>strong{color:var(--green)}
.overview-action{font-size:.8125rem;color:var(--muted);max-width:80px;line-height:1.5;padding-left:3px}
.overview-action>span{display:block;color:var(--green);font-size:1.2rem;line-height:1}
.board-panel[open]>.mobile-overview{border-color:#8ff00080;margin-bottom:15px}
.board-panel[open] .overview-action>span{transform:rotate(180deg);display:inline-block}
.board-panel[open] .world-card{max-width:580px;margin:auto}
.world-caption h2{font-size:1.6rem}
.world-caption p{font-size:.875rem;max-width:350px}
.world-meter{padding:20px 22px 0}
.scores{padding:16px 22px}
.scores span{font-size:.875rem}
.board-details{padding:0 22px}
.missions-heading{flex-direction:row}
.game-stage{padding:25px}
.game-stage h2{font-size:1.85rem}
.portrait-token,.portrait-token img{width:88px;height:88px}
.turn-actions{position:fixed;bottom:0;left:0;right:0;margin:0;padding:14px 5% max(14px,env(safe-area-inset-bottom));border:0;border-top:1px solid #8ff00080;border-radius:0;box-shadow:0 -8px 25px #00000088;gap:16px;max-height:40dvh;overflow:auto}
.turn-actions p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.turn-actions>.primary{max-width:45%;min-height:49px}
.keyboard-hint{display:none}
.outcome-arena{grid-template-columns:1fr 125px 1fr;gap:20px;padding:0 13px}
.arena-network::before,.arena-network::after{width:29px}
.decision-pair{grid-template-columns:1fr 1fr}
.decision-card{padding:16px}
.result-scores>div{padding:15px}
.result-scores span{font-size:.875rem}
.summary-seals{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.summary-seals .mission{grid-template-columns:1fr;gap:9px}
.summary-seals .mission-title{flex-wrap:wrap;gap:3px}
.summary-seals .mission-seal{width:37px}
.game-toolbar{margin-top:0}
.ecosystem-details{max-width:580px;margin-left:auto;margin-right:auto}
}

@media(max-width:640px){.header{flex-wrap:wrap;justify-content:space-between;padding-top:12px;padding-bottom:13px;gap:5px 15px}
.header h1{order:3;max-width:none;width:100%;font-size:.75rem;line-height:1.5}
.header>.text-button{font-size:.875rem}
.brand img{width:161px}
.intro{display:block;margin-bottom:17px}
.intro>.eyebrow{font-size:.75rem}
.intro p{font-size:.9375rem;line-height:1.5;margin-top:3px}
.mode-control{display:inline-flex;margin-top:12px}
.mode-control button{font-size:.875rem;padding:8px 11px;min-height:42px}
.play-layout{gap:16px}
.mobile-overview{gap:10px;padding:11px 12px;min-height:75px}
.mobile-overview>img{width:44px;height:44px}
.mobile-overview strong{font-size:1.12rem}
.mobile-overview .eyebrow{font-size:.75rem;letter-spacing:.3px}
.mobile-score{padding-left:10px}
.mobile-score>span{font-size:.75rem}
.overview-action{font-size:.75rem;max-width:65px}
.game-toolbar{gap:6px;min-height:44px}
.toolbar-actions{gap:13px}
.toolbar-actions .text-button{font-size:.875rem}
.round-label{font-size:.75rem;letter-spacing:.5px}
.game-stage{padding:19px 16px;border-radius:5px 18px 5px 18px}
.scene-meta{margin-bottom:17px;gap:10px}
.scene-meta>span:last-child{font-size:.75rem;letter-spacing:.5px}
.topic{font-size:.75rem;max-width:65%}
.game-stage h2{font-size:1.5rem;line-height:1.3;letter-spacing:-.3px}
.encounter-title{gap:12px}
.encounter-title .eyebrow{font-size:.75rem;letter-spacing:.5px;margin-bottom:6px}
.portrait-token,.portrait-token img{width:74px;height:74px}
.portrait-token{margin-right:3px}
.portrait-token>span{font-size:.75rem;padding:2px 9px}
.scene-description{font-size:1rem;line-height:1.6;margin-top:15px}
.character-context{padding:12px 11px;gap:9px;margin:17px 0 21px}
.character-context p{font-size:1rem;line-height:1.6}
.context-marker{font-size:2.2rem}
.encounter-note{font-size:.8125rem}
.choices legend{font-size:.9375rem;margin-bottom:12px}
.choice{padding:13px 11px;gap:10px}
.choice-copy>strong,.choice-copy>span{font-size:1rem}
.choice-copy>span{line-height:1.5}
.letter{width:26px;height:26px;font-size:.8125rem}
.radio-mark{width:13px;height:13px;margin-top:7px}
.turn-actions{padding-top:12px;gap:12px}
.turn-actions>div>span:first-child{font-size:.75rem;letter-spacing:.5px}
.turn-actions p{font-size:.8125rem;line-height:1.5}
.turn-actions>.primary{font-size:.875rem;max-width:48%;padding:11px 12px;gap:8px}
.outcome-arena{grid-template-columns:minmax(0,1fr) 99px minmax(0,1fr);gap:11px;margin:24px 0 19px;padding:0}
.arena-photo,.you-token{width:55px;height:55px;border-radius:14px 4px 14px 4px}
.you-token{font-size:1.65rem}
.arena-player{gap:8px}
.arena-player>strong{font-size:.875rem}
.arena-player .outcome-badge{font-size:.75rem;padding:4px 6px;min-height:42px;max-width:110px}
.arena-network>strong{font-size:1.8rem}
.arena-network>span:last-child{font-size:.75rem}
.arena-network::before,.arena-network::after{width:13px}
.result-scores{gap:7px;margin:18px 0}
.result-scores>div{padding:12px 9px}
.result-scores span{font-size:.8125rem;line-height:1.5}
.result-scores strong{font-size:1.7rem}
.result-scores small{font-size:.75rem;line-height:1.5}
.earned-banner{padding:14px;gap:12px}
.earned-banner .seal-symbol{font-size:2rem}
.earned-banner strong{font-size:1rem}
.decision-pair{grid-template-columns:1fr;gap:12px}
.decision-card{padding:16px}
.character-impact{padding:15px}
.comparison>summary{font-size:.9375rem}
th,td{padding:10px 8px}
.summary-seals{grid-template-columns:1fr;gap:17px}
.summary-seals .mission{grid-template-columns:34px minmax(0,1fr);gap:13px}
.summary-seals .mission-title{flex-wrap:nowrap}
.summary-seals .mission-seal{width:34px}
.mission p{font-size:.875rem}
.health-chart{padding:12px}
.health-chart figcaption{font-size:.8125rem}
.summary-actions{gap:10px}
.summary-actions>.primary,.summary-actions>.secondary{flex:1;min-width:140px;font-size:.875rem}
.world-meter{padding:18px 18px 0}
.scores{padding:15px 18px}
.scores span{font-size:.8125rem}
.board-details{padding:0 17px}
.path-nodes{gap:10px}
.missions-heading{flex-wrap:wrap}
.missions-heading h3{font-size:.9375rem}
.mission-title>strong{font-size:.9375rem}
.board-details>summary,.ecosystem-details>summary{font-size:.9375rem}
.health-heading>strong{font-size:2.3rem}
footer{display:block;font-size:.75rem;margin-top:27px;padding:20px 0}
footer>a{display:block;margin-top:8px}
dialog{padding:23px 20px;max-height:85dvh}
dialog h2{font-size:1.45rem}
.dialog-heading{gap:12px}
.dialog-actions button{flex:1;min-width:140px}
.history-entry{padding:0 13px}
.history-entry>summary{gap:10px}
.history-entry>summary img{width:34px;height:34px}
.history-entry summary strong{font-size:.875rem}
.history-entry summary small{font-size:.8125rem}
}

@media(max-width:380px){.mobile-overview>img{display:none}
.mobile-overview>span:nth-child(2){flex:1}
.overview-action{max-width:65px}
.scene-meta>span:last-child{font-size:.75rem;letter-spacing:0}
.topic{max-width:65%;padding:3px 6px}
.toolbar-actions{gap:11px}
.toolbar-actions .text-button{font-size:.8125rem}
.game-toolbar{flex-wrap:wrap}
.outcome-arena{grid-template-columns:minmax(0,1fr) 82px minmax(0,1fr);gap:10px}
.arena-network>strong{font-size:1.55rem}
.arena-network::before,.arena-network::after{width:10px}
.arena-network>.eyebrow{font-size:.75rem}
.arena-network>span:last-child{font-size:.75rem;line-height:1.4;max-width:70px;text-align:center}
.choice .radio-mark{display:none}
.encounter-title{gap:10px}
.portrait-token,.portrait-token img{width:64px;height:64px}
.turn-actions>.primary>span{display:none}
.turn-actions>.primary{max-width:48%;padding:10px;font-size:.875rem}
.world-caption h2{font-size:1.4rem}
.path-group{padding-left:8px;padding-right:8px}
}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}
*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
.choice:hover,.choice:has(input:checked),.primary:hover:enabled,.primary:active:enabled{transform:none}
}


.mission p,.scores span{font-size:.875rem}
.arena-player .outcome-badge{font-size:.875rem;min-height:4.8em}


h1,h2,h3,p,.choice-copy{overflow-wrap:anywhere}
.arena-network{min-height:6.2rem}
.portrait-token,.portrait-token img{min-width:4.5rem;min-height:4.5rem}

/* A shared plan, two contributions, one visible outcome. */
.character-context .character-promise{margin-top:12px;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:.9375rem}
.character-promise strong{color:var(--white)}
.pact-preview{margin-top:18px;padding:18px;border:1px solid #ffffff40;border-radius:4px 16px 16px 16px;background:#ffffff07;animation:reveal .2s both}
.pact-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.mini-you{display:grid;place-items:center;width:29px;height:29px;flex:0 0 29px;border-radius:50%;background:var(--white);color:var(--blue);font-weight:700;font-size:.8125rem}
.pact-heading .eyebrow{color:var(--white);letter-spacing:1px}
.pact-preview>p:not(.small-note){font-size:1rem;line-height:1.7}
.approach-tag{display:inline-flex;align-items:center;gap:7px;padding:5px 10px;margin-top:12px;border:1px solid var(--line);border-radius:20px;color:var(--white);font-size:.8125rem;line-height:1.5}
.approach-tag::before{content:'';width:6px;height:6px;border:1px solid var(--white);border-radius:50%;flex:0 0 6px}
.result-intro{margin-top:12px;color:var(--muted);line-height:1.7}
.agreement-path{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:0;margin:24px 0;list-style:none}
.agreement-path>li{position:relative;display:flex;gap:9px;align-items:flex-start;min-width:0}
.agreement-path>li>div{min-width:0}
.agreement-path strong,.agreement-path div>span{display:block;font-size:.8125rem;line-height:1.5;overflow-wrap:anywhere}
.agreement-path div>span{color:var(--muted);margin-top:3px}
.path-step{display:grid;place-items:center;flex:0 0 27px;height:27px;background:var(--blue);border:1px solid #ffffff80;border-radius:50%;font-size:.75rem;font-weight:700}
.persistent-step .path-step{color:var(--green);border-color:var(--green);background:#8ff0000d}
.momentary-step .path-step{color:var(--yellow);border-color:var(--yellow);background:#f0ed000d}
.decision-person{display:flex;align-items:center;gap:11px;margin-bottom:13px}
.decision-person img{width:40px;height:40px;border-radius:50%;border:1px solid #ffffff80}
.decision-card .agreed-quote{padding-bottom:15px;margin-bottom:15px;border-bottom:1px solid var(--line);font-size:.9375rem}
.agreed-quote strong{display:block;margin-bottom:5px;color:var(--white)}
.delivery-chips{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 0}
.delivery-chips>div{display:flex;flex-direction:column-reverse;gap:2px;border:1px solid #8ff0004d;background:#8ff00007;border-radius:7px;padding:9px 11px;flex:1 1 125px;min-width:0}
.delivery-chips dt{color:var(--muted);font-size:.75rem;line-height:1.5;overflow-wrap:anywhere}
.delivery-chips dd{margin:0;color:var(--green);font-weight:700;font-size:1.125rem}
.pending-step{margin-top:15px;padding:13px;border-left:2px solid var(--yellow);background:#f0ed0007;border-radius:0 8px 8px 0}
.pending-step>strong{display:block;color:var(--yellow);font-size:.8125rem;margin-bottom:5px}
.pending-step p{font-size:.9375rem}
.next-learning{display:flex;align-items:flex-start;gap:13px;padding:18px 0;margin:13px 0 0}
.learning-symbol{display:grid;place-items:center;flex:0 0 32px;height:32px;border:1px solid #f0ed0080;color:var(--yellow);border-radius:9px;font-size:1.25rem}
.next-learning h3{font-size:1rem;margin-bottom:8px}
.next-learning p{color:var(--muted);font-size:1rem;line-height:1.7}
.collaboration-balance{display:flex;height:12px;border-radius:8px;overflow:hidden;background:var(--yellow);margin-top:24px}
.collaboration-balance>span{display:block;height:100%;background:var(--green)}
.balance-legend{display:flex;flex-wrap:wrap;gap:7px 18px;font-size:.8125rem;color:var(--muted);margin-top:10px}
.balance-legend>span{display:flex;align-items:center;gap:7px}
.balance-legend i{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--green)}
.balance-legend>span:last-child i{background:var(--yellow)}
.arena-player .outcome-badge{max-width:100%;min-height:5.6em;overflow-wrap:anywhere}
.history-pact{border-left:2px solid var(--white);padding-left:12px}
.table-scroll:focus-visible{outline:2px solid var(--yellow);outline-offset:4px}
@media(max-width:640px){
  .pact-preview{padding:15px}
  .agreement-path{grid-template-columns:1fr;gap:0}
  .agreement-path>li{gap:12px;padding-bottom:18px}
  .agreement-path>li:last-child{padding-bottom:0}
  .agreement-path>li:not(:last-child)::before{content:'';position:absolute;width:1px;background:var(--line);left:13px;top:30px;bottom:3px}
  .agreement-path strong,.agreement-path div>span{font-size:.875rem}
  .next-learning{gap:10px}
  .arena-player .outcome-badge{font-size:.8125rem;padding:5px;min-height:6.5em}
}
