.green-games{--gg-ink:#eef4e9;--gg-muted:#bccdbf;--gg-line:#496052;--gg-accent:#d5e4c6;color:var(--gg-ink);padding-top:28px}
.green-games [hidden]{display:none!important}
.gg-tabs{display:flex;gap:32px;border-bottom:1px solid var(--gg-line);margin-bottom:36px}
.gg-tabs button{position:relative;min-height:48px;padding:8px 0 16px;color:var(--gg-muted);font:500 15px/1.4 var(--sans)}
.gg-tabs button[aria-selected=true]{color:var(--gg-ink)}
.gg-tabs button[aria-selected=true]::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--gg-accent)}
.green-games .gg-panel{outline-offset:8px}
.green-games .gg-heading h3{font:400 clamp(34px,3.8vw,52px)/1.1 var(--serif);letter-spacing:-.025em;margin:0 0 16px;color:var(--gg-ink)}
.green-games .gg-heading p{max-width:68ch;margin:0;color:var(--gg-muted);font-size:14px;line-height:1.8}
.gg-workspace{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:48px;margin:32px 0;align-items:center}
.gg-worksheet{display:grid;grid-template-columns:65px minmax(0,1fr);gap:12px;align-items:start}
.gg-row-labels{display:grid;grid-template-rows:48px 36px 28px;padding-top:0;color:var(--gg-muted);font-size:11px;align-items:center}
.gg-terms{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.gg-terms li{min-width:0;text-align:center;border-bottom:1px solid var(--gg-line);padding:0 0 12px}
.gg-terms span{display:block}
.gg-value{font:400 38px/48px var(--serif);font-variant-numeric:tabular-nums}
.gg-weight{font:400 13px/36px var(--sans);color:var(--gg-muted);white-space:nowrap}
.gg-operation{font:400 11px/28px var(--sans);color:var(--gg-muted)}
.gg-contribution{font:500 17px/32px var(--sans);font-variant-numeric:tabular-nums}
[data-phase=simple] .gg-operation{color:var(--gg-accent)}
.gg-skipped .gg-value,.gg-skipped .gg-contribution{color:#96ae9c}
.gg-answer{padding-left:28px;border-left:1px solid var(--gg-line);min-height:142px;display:flex;flex-direction:column;justify-content:center}
.gg-answer>span{font-size:12px;color:var(--gg-muted)}
.gg-answer output{font:400 68px/1.14 var(--serif);font-variant-numeric:tabular-nums;color:var(--gg-ink);margin:6px 0}
.green-games .gg-answer p{margin:0;color:var(--gg-accent);font-size:12px;line-height:1.7}
.gg-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.green-games .gg-primary,.green-games .gg-secondary,.gg-formats button{min-height:44px;padding:11px 22px;border-radius:50px;font:500 13px/1.5 var(--sans);transition:background .18s,color .18s}
.green-games .gg-primary{background:var(--gg-accent);color:#183a2b;border:1px solid var(--gg-accent)}
.green-games .gg-secondary{color:var(--gg-ink);border:1px solid #809c84}
.green-games button:disabled{background:transparent;border-color:#526b58;color:#95ae9b;cursor:default}
.green-games button:not(:disabled){cursor:pointer}
.green-games .gg-primary:hover:not(:disabled){background:#edf4e5}
.green-games .gg-secondary:hover:not(:disabled),.gg-formats button:hover{background:#294132}
.gg-next{display:inline-flex;align-items:center;gap:12px;min-height:44px;padding:8px 0;margin-left:12px;font:400 13px/1.5 var(--sans);color:var(--gg-ink)}
.gg-next svg{width:20px;height:20px}
.green-games .gg-feedback{font-size:14px;line-height:1.7;color:var(--gg-accent);margin:20px 0 12px;min-height:48px;max-width:74ch}
.green-games .gg-note{font-size:12px;line-height:1.85;color:var(--gg-muted);max-width:90ch;margin:0}
.gg-note a{text-decoration:underline;text-underline-offset:4px;color:var(--gg-ink)}
.gg-evidence{margin-top:32px;padding-top:24px;border-top:1px solid var(--gg-line);display:flex;align-items:center;justify-content:space-between;gap:24px}
.green-games .gg-evidence p{color:var(--gg-muted);font-size:12px;line-height:1.8;max-width:48ch;margin:0}
.gg-evidence .textlink{font-size:13px;gap:12px;flex-shrink:0}
.gg-evidence .textlink svg{width:20px;height:20px}
.gg-memory-workspace .gg-answer output{font-size:52px;white-space:nowrap}
.gg-memory-map{min-width:0}
.gg-memory-caption{display:flex;justify-content:space-between;align-items:baseline;font-size:12px;color:var(--gg-muted);margin-bottom:12px}
.gg-memory-caption strong{font-weight:500;color:var(--gg-ink)}
#gg-memory-grid{display:block;width:100%;height:auto;max-height:176px;border-block:1px solid var(--gg-line);padding:12px 0}
.gg-cell-track{fill:#294132}
.gg-cell-fill{fill:var(--gg-accent);transform-box:fill-box;transform-origin:left center;transition:transform .5s cubic-bezier(.16,1,.3,1)}
.green-games #gg-memory-space{font-size:13px;color:var(--gg-muted);margin:12px 0 0;line-height:1.6}
.green-games [data-fits=true] #gg-memory-space{color:var(--gg-accent)}
.gg-formats{display:flex;gap:12px;flex-wrap:wrap}
.gg-formats button{border:1px solid #809c84;color:var(--gg-ink);min-width:88px}
.gg-formats button[aria-pressed=true]{background:var(--gg-accent);color:#183a2b}
.green-games .gg-formula{margin:0 0 16px;font-size:13px;line-height:1.7;color:var(--gg-ink);font-variant-numeric:tabular-nums}
.green-games :is(button,a,[tabindex]):focus-visible{outline:2px solid #d5e4c6;outline-offset:5px}
.green-games ::selection{background:#d5e4c6;color:#183a2b}
.reduce-motion .green-games *{transition:none!important}
@media(max-width:1000px){.gg-workspace{grid-template-columns:minmax(0,1fr);gap:24px}.gg-answer{border-left:0;border-top:1px solid var(--gg-line);padding:16px 0 0;min-height:0;display:grid;grid-template-columns:1fr auto;column-gap:20px;align-items:center}.gg-answer>span{grid-column:1;grid-row:1}.gg-answer output{grid-column:2;grid-row:1/3;font-size:54px;margin:0}.gg-answer p{grid-column:1;grid-row:2;max-width:32ch}.gg-evidence{align-items:flex-start;flex-direction:column;gap:16px}.gg-memory-workspace{gap:12px}}
@media(max-width:600px){.green-games{padding-top:12px}.gg-tabs{margin-bottom:28px}.gg-workspace{margin:24px 0}.gg-worksheet{display:block}.gg-row-labels{display:none}.gg-terms{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px}.gg-value{font-size:34px;line-height:40px}.gg-weight{line-height:30px}.gg-operation{line-height:24px}.gg-contribution{line-height:28px}.gg-actions{gap:10px}.green-games .gg-primary,.green-games .gg-secondary{flex:1;padding-inline:12px}.gg-next{margin-left:0;flex-basis:100%}.green-games .gg-feedback{font-size:13px;min-height:67px}.green-games .gg-heading p{font-size:13px}.gg-evidence .textlink{flex-shrink:1;line-height:1.7}.gg-formats{gap:8px}.gg-formats button{flex:1;min-width:0;padding-inline:12px}.gg-memory-caption{font-size:11px}.gg-answer output,.gg-memory-workspace .gg-answer output{font-size:48px}}
@media(prefers-reduced-motion:reduce){.green-games *{transition:none!important}}
@media(forced-colors:active){.gg-cell-track{fill:Canvas;stroke:CanvasText}.gg-cell-fill{fill:Highlight}.gg-tabs button[aria-selected=true]::after{background:Highlight}}

/* Make the intent readable before the film, then let each game explain one mechanism. */
#green .green-opening{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:8%;padding-top:72px;padding-bottom:56px}
#green .green-opening h2{font-size:clamp(64px,6.6vw,96px);line-height:1.02;letter-spacing:-.035em;max-width:13ch}
#green .green-opening .green-intent{font-size:15px;line-height:1.8;margin:0 0 20px;max-width:48ch}
.green-goals{display:grid;gap:0}
.green-goals a{display:flex;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid #496052;color:#eef4e9;font:500 18px/1.45 var(--sans);text-decoration:none}
.green-goals a:hover{color:#d5e4c6}
.green-goals a:focus-visible{outline:2px solid #d5e4c6;outline-offset:5px}
.green-goals a>span{flex:1;min-width:0}
.green-goals small{display:block;font:400 12px/1.7 var(--sans);color:#bccdbf;margin-top:3px}
.green-goals svg,.gg-tabs svg{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.green-goals .green-goal-arrow{width:20px;height:20px}
.gg-symbols{position:absolute;width:0;height:0;overflow:hidden}
.green-games .gg-intro{margin:0 0 24px;font:400 15px/1.8 var(--sans);color:var(--gg-muted);max-width:68ch}
.gg-tabs{gap:32px}
.gg-tabs button{display:inline-flex;gap:10px;align-items:center}
.gg-actions{align-items:stretch}
.gg-tabs svg{width:20px;height:20px}
.gg-network{margin:28px 0 32px}
.gg-routes{display:grid;gap:28px;margin-bottom:28px}
.gg-route{min-width:0}
.gg-route-caption{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:12px;font-size:13px;line-height:1.6}
.gg-route-caption strong{font-weight:500}
.gg-route-caption span{font-size:12px;color:var(--gg-muted);text-align:right}
.gg-route ol{display:flex;list-style:none;margin:0;padding:0}
.gg-route li{flex:1;min-width:0;position:relative;padding:12px 12px 8px 0;color:var(--gg-muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.gg-route li::before{content:'';position:absolute;top:18px;left:0;right:0;height:1px;background:var(--gg-line)}
.gg-route li:last-child::before{right:12px}
.gg-route-node{position:relative;display:block;width:13px;height:13px;background:#101e18;border:1px solid var(--gg-muted);border-radius:50%;margin-bottom:16px}
.gg-route li.gg-reached{color:var(--gg-ink)}
.gg-reached .gg-route-node{background:var(--gg-accent);border-color:var(--gg-accent)}
.gg-route li.gg-unreached{color:#91aa98}
.gg-unreached .gg-route-node{border-style:dashed}
[data-network=offline][data-phase=finished] #gg-response-cloud{color:var(--gg-accent)}
@media(max-width:760px){
 #green .green-opening{display:block;padding-top:48px;padding-bottom:36px}
 #green .green-opening h2{font-size:clamp(46px,9.2vw,68px);max-width:14ch;margin-bottom:28px}
 #green .green-opening .green-intent{font-size:13px;margin-bottom:8px}
 .green-goals a{font-size:16px;padding:14px 0;gap:12px}
 .green-goals small{font-size:12px}
 .gg-tabs{gap:24px}
 .gg-tabs button{gap:8px;font-size:13px}
 .gg-tabs svg{width:18px;height:18px}
 .gg-route li{font-size:11px;padding-right:6px}
 .gg-route-caption{font-size:13px;gap:12px}
 .gg-route-caption span{font-size:11px;max-width:18ch}
}
@media(max-width:480px){
 .gg-tabs{gap:16px;justify-content:space-between}
 .gg-tabs button{flex-direction:column;align-items:flex-start;gap:8px;font-size:12px}
 .gg-network{gap:8px;margin:24px 0}
 .gg-network button{flex:1;min-width:0;min-height:56px;padding:8px 6px;font-size:12px}
 .gg-route ol{flex-wrap:wrap;row-gap:12px}
 .gg-route li{flex:0 0 33.333%;padding-right:10px}
 .gg-route li:nth-child(3n)::before{right:12px}
 .gg-route-caption{align-items:flex-start}
 .green-games .gg-intro{font-size:13px;margin-bottom:20px}
}
@media(forced-colors:active){.gg-route-node,.gg-reached .gg-route-node{background:Canvas;border-color:CanvasText}.gg-reached .gg-route-node{background:Highlight}.gg-route li::before{background:CanvasText}}
