/* One chart, visible weather and three controls. Scoped to Sunny Grid. */
.grid-game{--gr-blue:#004eaa;--gr-ink:#23495c;--gr-muted:#657f8a;--gr-line:#d8e5e9;--gr-red:#bd555d;--gr-yellow:#cfa128;background:#fff;border:1px solid var(--gr-line);border-radius:21px;color:var(--gr-ink);overflow:hidden;scroll-margin-top:8px;box-shadow:0 15px 45px #254e4c08}
.grid-game *,.grid-game *:before,.grid-game *:after{box-sizing:border-box}
.grid-game [hidden]{display:none!important}
.grid-game button{font:inherit;touch-action:manipulation;cursor:pointer;-webkit-tap-highlight-color:transparent}
.grid-game button:focus-visible{outline:3px solid #0065bb;outline-offset:3px}
.grid-game button:disabled{cursor:default;opacity:1}
.grid-game [tabindex="-1"]:focus{outline:none}
.grid-game .gr-topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 22px;background:#f0f6f8;border-bottom:1px solid var(--gr-line)}
.grid-game .gr-topbar>div{display:flex;align-items:baseline;gap:14px;min-width:0}
.grid-game .gr-topbar strong{font-size:14px;line-height:1.3;font-weight:650}
.grid-game .gr-topbar span{font-size:12px;color:#68858e;line-height:1.3}
.grid-game .gr-primary,.grid-game .gr-secondary,.grid-game .gr-quiet{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 20px;border-radius:25px;border:1px solid transparent;background:var(--gr-blue);color:white;font-size:14px;font-weight:650;line-height:1.3}
.grid-game .gr-primary:hover:not(:disabled){background:#003f89}
.grid-game .gr-secondary{background:#fff;color:#356c87;border-color:#cbdee4}
.grid-game .gr-secondary:hover:not(:disabled){background:#f0f7fa}
.grid-game .gr-quiet{background:transparent;color:#557b89;padding:10px 12px;font-size:12px;white-space:nowrap}
.grid-game .gr-quiet:hover:not(:disabled){background:#e5eff3}
.grid-game .gr-eyebrow{font-size:10px;line-height:1.4;letter-spacing:.1em;color:#638374;font-weight:700}
.grid-game .gr-intro{display:grid;grid-template-columns:1.15fr 1fr;gap:30px;align-items:center;padding:34px 40px;background:radial-gradient(ellipse at 80% 25%,#fff6cd,transparent 46%),linear-gradient(130deg,#f2f8ff,#f5f9ed)}
.grid-game .gr-intro h2{font-size:38px;line-height:1.08;letter-spacing:-.04em;margin:12px 0 18px;font-weight:650}
.grid-game .gr-intro-copy>p{font-size:14px;line-height:1.65;color:#5a7786;margin:0 0 14px;max-width:470px}
.grid-game .gr-red-word{color:#ad4753}.grid-game .gr-yellow-word{color:#9d761d}
.grid-game .gr-intro-level{font-size:12px;color:#6a857b;line-height:1.5;margin:20px 0 18px}
.grid-game .gr-intro-level strong{display:block;color:#3e6f65;font-size:13px;margin-bottom:4px}
.grid-game .gr-intro-level span{display:block}
.grid-game .gr-intro-art{position:relative;min-width:0;height:300px}
.grid-game .gr-intro-art>svg{position:absolute;top:2px;width:100%;height:auto;transform:rotate(4deg);filter:drop-shadow(0 10px 12px #3a64740a)}
.grid-game .gr-intro-art>img{position:absolute;width:128px;height:176px;object-fit:contain;left:9%;bottom:0;filter:drop-shadow(0 7px 7px #4e715315)}
.grid-game .gr-play{padding:17px 22px 13px}
.grid-game .gr-roundbar{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-bottom:9px}
.grid-game .gr-roundbar h2{font-size:25px;line-height:1.15;letter-spacing:-.025em;font-weight:650;margin:4px 0 0}
.grid-game .gr-round-tools{display:flex;align-items:center;gap:8px;flex-shrink:0}
.grid-game .gr-clock{text-align:right;min-width:43px;font-variant-numeric:tabular-nums}
.grid-game .gr-clock strong{display:block;font-size:25px;font-weight:650;line-height:1.1}
.grid-game .gr-clock span{font-size:11px;color:#81939a}
.grid-game .gr-health{display:flex;align-items:center;gap:10px;font-size:12px;color:#648373;margin-bottom:12px}
.grid-game .gr-health>span{white-space:nowrap}.grid-game .gr-health strong{font-size:13px;color:#386c60;font-weight:650;margin-left:5px}
.grid-game .gr-health>small{font-size:12px;white-space:nowrap}
.grid-game .gr-health-track{position:relative;flex:1;height:5px;border-radius:4px;background:#e2ebe3}
.grid-game .gr-health-track>i{display:block;height:100%;width:var(--value,100%);background:#7baa84;border-radius:4px;transition:width .2s linear}
.grid-game .gr-health-track>b{position:absolute;left:var(--target,60%);top:-2px;height:9px;width:2px;background:#657f69;border-radius:1px}
.grid-game .gr-health-track[data-warning="true"]>i{background:#d29b58}
.grid-game .gr-dashboard{display:grid;grid-template-columns:minmax(270px,.9fr) minmax(340px,1fr);grid-template-areas:"weather plants" "chart chart";gap:13px}
.grid-game .gr-weather-panel{grid-area:weather;display:grid;grid-template-columns:1.15fr 1fr;min-height:156px;border:1px solid #d9e6eb;border-radius:14px;background:linear-gradient(130deg,#f3f9fc,#e6f0f5);overflow:hidden}
.grid-game .gr-sky{position:relative;min-width:0;overflow:hidden;border-right:1px solid #dbe6e8}
.grid-game .gr-sky>svg{position:absolute;width:194px;height:132px;max-width:none;top:-14px;left:calc(50% - 107px)}
.grid-game .gr-cloud,.grid-game .gr-snow{display:none}
.grid-game [data-weather="cloud"]>svg .gr-cloud,.grid-game [data-weather="snow"]>svg .gr-cloud,.grid-game [data-weather="snow"]>svg .gr-snow{display:block}
.grid-game [data-weather="cloud"]>svg .gr-sun{opacity:.65}.grid-game [data-weather="snow"]>svg .gr-sun{opacity:.1}
.grid-game .gr-weather-copy{position:absolute;bottom:9px;left:12px;right:8px;display:flex;flex-direction:column;gap:3px;line-height:1.2}
.grid-game .gr-weather-copy>strong{font-size:17px;font-weight:650;color:#426b7e}
.grid-game .gr-weather-copy>span{font-size:12px;color:#6a8697}
.grid-game .gr-wind{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px;position:relative;padding:8px 8px 10px;text-align:center;min-width:0;color:#6497b1}
.grid-game .gr-wind>svg{width:85px;height:60px;margin:auto 0 3px;color:#71a3bd}
.grid-game .gr-wind[data-wind="calm"]>svg{opacity:.4;transform:scale(.78)}
.grid-game .gr-wind[data-wind="strong"]>svg{color:#377ea9;transform:scale(1.1)}
.grid-game .gr-wind>strong{font-size:15px;color:#4c778a;font-weight:650;line-height:1.25}
.grid-game .gr-wind>span{font-size:12px;color:#7893a1;line-height:1.25;min-height:15px}
.grid-game .gr-incoming{position:absolute;right:5px;top:6px;width:45px;height:34px;background:#f9fcffed;border:1px solid #cfdee6;border-radius:9px;box-shadow:0 3px 9px #42697b10}
.grid-game .gr-incoming>svg{width:100%;height:100%;display:block}
.grid-game .gr-incoming:before{content:"→";position:absolute;left:-14px;top:6px;font-size:15px;color:#7596a4}
.grid-game .gr-plants{grid-area:plants;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0}
.grid-game .gr-plant{min-width:0;display:flex;flex-direction:column;align-items:stretch;padding:9px 10px 8px;border:1px solid #d4e1e3;border-radius:13px;background:#fbfdfd;color:#466b7b;text-align:center;min-height:156px;position:relative}
.grid-game .gr-plant:hover:not(:disabled){background:#f0f8fc;border-color:#7fa6b9}
.grid-game .gr-plant[data-state="running"]{border-color:#89b491;background:#f5fbf0;box-shadow:inset 0 -2px #a2c49b}
.grid-game .gr-plant[data-state="starting"]{border-color:#dfbf68;background:#fff9e8;box-shadow:inset 0 -2px #e2c878}
.grid-game .gr-plant-heading{display:flex;align-items:baseline;justify-content:space-between;gap:4px;line-height:1.2}
.grid-game .gr-plant-heading>strong{font-size:14px;font-weight:650}.grid-game .gr-plant-state{font-size:12px;color:#728895;white-space:nowrap}
.grid-game .gr-plant[data-state="running"] .gr-plant-state{color:#5f8a5d}.grid-game .gr-plant[data-state="starting"] .gr-plant-state{color:#a28034}
.grid-game .gr-plant-art{display:block;width:62px;height:45px;margin:7px auto 4px}
.grid-game .gr-plant-art svg{width:100%;height:100%;display:block}
.grid-game .gr-plant[data-state="off"] .gr-plant-art{filter:saturate(.65);opacity:.75}
.grid-game .gr-plant-output{display:flex;align-items:baseline;justify-content:center;gap:6px;font-variant-numeric:tabular-nums;line-height:1.2}
.grid-game .gr-plant-output>small{font-size:11px;color:#7f939a}.grid-game .gr-plant-output>strong{font-size:23px;font-weight:650;color:#315f77;white-space:nowrap}
.grid-game .gr-plant-potential{font-size:11px;line-height:1.25;color:#809298;margin-top:4px;min-height:14px}
.grid-game .gr-plant-action{font-size:12px;line-height:1.2;font-weight:650;color:#2d6b91;border-radius:7px;background:#e9f2f8;padding:7px 2px;margin-top:7px}
.grid-game .gr-plant[data-state="running"] .gr-plant-action{background:#e1eedc;color:#648653}.grid-game .gr-plant[data-state="starting"] .gr-plant-action{background:#f5e9c5;color:#9c7a36}
.grid-game .gr-chart-panel{grid-area:chart;background:#fff;border:1px solid #d9e6e8;border-radius:14px;overflow:hidden;padding:11px 12px 9px;min-width:0}
.grid-game .gr-chart-legend{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:12px;line-height:1.3;padding:0 4px 8px;color:#6d858e}
.grid-game .gr-chart-legend>span{display:flex;align-items:center;gap:5px;white-space:nowrap}
.grid-game .gr-chart-legend strong{font-size:17px;line-height:1.1;margin-left:3px;font-weight:650}
.grid-game .gr-chart-legend i{display:inline-block;width:17px;height:4px;border-radius:4px}
.grid-game .gr-legend-demand i{background:var(--gr-red)}.grid-game .gr-legend-demand strong{color:var(--gr-red)}.grid-game .gr-legend-supply i{background:#d4ad37}.grid-game .gr-legend-supply strong{color:#ac831f}.grid-game .gr-legend-band i{height:11px;background:#d8ecd8;border:1px solid #bfdcbf}
.grid-game .gr-chart{display:block;width:100%;height:235px;overflow:visible}
.grid-game .gr-future-bg{fill:#f3f8fb}.grid-game .gr-chart-grid line{stroke:#e3eaed;stroke-width:1}.grid-game .gr-chart-grid text,.grid-game .gr-chart-ticks text{font-size:12px;fill:#8598a1;font-family:inherit}
.grid-game .gr-tolerance-band{fill:#dcefd9;opacity:.85}
.grid-game .gr-demand-path{fill:none;stroke:#bd5960;stroke-width:2.8;stroke-linejoin:round}.grid-game .gr-demand-future{stroke-dasharray:6 4;stroke-width:2.4}
.grid-game .gr-supply-path{fill:none;stroke:#d1ab30;stroke-width:3.6;stroke-linejoin:round}
.grid-game .gr-now-line{stroke:#39697f;stroke-width:1.8;stroke-dasharray:4 4}.grid-game .gr-now-label{font-size:12px;font-weight:750;fill:#3e6f85;font-family:inherit;letter-spacing:.04em}
.grid-game .gr-demand-dot{fill:#bd5960;stroke:white;stroke-width:1.5}.grid-game .gr-supply-dot{fill:#d1ab30;stroke:white;stroke-width:1.5}
.grid-game .gr-chart-caption{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;color:#7a929c;padding:5px 4px 0;line-height:1.25}
.grid-game .gr-chart-caption>strong{font-size:12px;font-weight:650;color:#ac704b}.grid-game .gr-chart-caption>strong[data-good="true"]{color:#678e6c}
.grid-game .gr-message{font-size:13px;line-height:1.4;color:#688477;margin:10px 2px 0;min-height:18px}
.grid-game .gr-pause{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px;background:#fff7df;border-bottom:1px solid #e5d9b5}
.grid-game .gr-pause h2{font-size:20px;font-weight:650;margin:0 0 5px}.grid-game .gr-pause p{font-size:12px;line-height:1.4;margin:0;color:#877b58}.grid-game .gr-pause>div:last-child{display:flex;gap:5px;flex-shrink:0}
.grid-game .gr-result{padding:30px 30px 24px;text-align:center;background:linear-gradient(135deg,#f1f8ff,#f4f9ed)}
.grid-game .gr-result h2{font-size:35px;line-height:1.12;letter-spacing:-.035em;font-weight:650;max-width:630px;margin:12px auto 15px}
.grid-game .gr-result>p:not(.gr-award-caption){font-size:14px;line-height:1.6;color:#66808c;max-width:550px;margin:0 auto 21px}
.grid-game .gr-result-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:7px}
.grid-game .gr-result-stats{display:flex;justify-content:center;gap:40px;margin:23px auto 0;font-size:12px;color:#748b8b}
.grid-game .gr-result-stats strong{display:block;font-size:28px;font-weight:650;color:#477d71;margin-bottom:4px}
.grid-game .gr-result>p.gr-score-note{font-size:12px;margin:12px auto 0;line-height:1.45}
.grid-game .gr-celebration{position:relative;max-width:470px;height:170px;margin:16px auto 0}
.grid-game .gr-celebration>img{position:absolute;left:calc(50% - 55px);bottom:0;width:110px;height:165px;object-fit:contain}
.grid-game[data-grid-finale="true"] .gr-celebration>img{left:16%}
.grid-game .gr-award{position:absolute;width:103px;height:140px;top:8px;right:18%;filter:drop-shadow(0 6px 7px #705f1e18)}.grid-game .gr-award svg{width:100%;height:100%}
.grid-game .gr-celebration>span{position:absolute;left:11%;top:8px;font-size:29px;color:#d2ad3b}.grid-game .gr-celebration>span:last-child{left:auto;right:7%;bottom:17px;top:auto;font-size:39px}
.grid-game .gr-award-caption{font-size:13px;color:#718156;font-weight:650;margin:11px 0 0}
@media(max-width:760px){
 .grid-game{border-radius:16px;scroll-margin-top:6px}.grid-game .gr-topbar{padding:7px 12px;gap:8px}.grid-game .gr-topbar>div{display:block}.grid-game .gr-topbar strong{font-size:13px}.grid-game .gr-topbar span{display:block;font-size:12px;margin-top:3px}.grid-game .gr-topbar .gr-quiet{font-size:12px;padding:9px}
 .grid-game .gr-intro{grid-template-columns:1fr;padding:26px 24px;gap:20px}.grid-game .gr-intro h2{font-size:34px}.grid-game .gr-intro-copy>p{font-size:14px;max-width:none}.grid-game .gr-intro-art{height:195px;max-width:320px;width:100%;margin:auto}.grid-game .gr-intro-art>svg{width:85%;right:0}.grid-game .gr-intro-art>img{width:95px;height:130px;left:3%}.grid-game .gr-intro-level{margin-top:17px}.grid-game .gr-intro .gr-primary{width:100%}
 .grid-game .gr-play{padding:12px 12px 10px}.grid-game .gr-roundbar{margin-bottom:7px;gap:7px}.grid-game .gr-roundbar h2{font-size:20px;line-height:1.15}.grid-game .gr-roundbar .gr-eyebrow{font-size:10px}.grid-game .gr-round-tools{gap:2px}.grid-game .gr-round-tools .gr-quiet{padding:9px;font-size:12px}.grid-game .gr-clock strong{font-size:23px}.grid-game .gr-clock span{font-size:10px}.grid-game .gr-clock{min-width:40px}.grid-game .gr-health{font-size:11px;gap:7px;margin-bottom:9px}.grid-game .gr-health strong{font-size:12px;margin-left:3px}.grid-game .gr-health>small{font-size:11px}
 .grid-game .gr-dashboard{display:flex;flex-direction:column;gap:10px}.grid-game .gr-weather-panel{order:0;min-height:128px;grid-template-columns:1.12fr 1fr;border-radius:12px}.grid-game .gr-sky>svg{width:184px;height:124px;top:-18px;left:calc(50% - 106px)}.grid-game .gr-weather-copy{bottom:8px;left:10px;gap:3px}.grid-game .gr-weather-copy>strong{font-size:15px}.grid-game .gr-weather-copy>span{font-size:12px}.grid-game .gr-wind{padding:7px 7px 8px;gap:3px}.grid-game .gr-wind>svg{width:75px;height:45px;margin:0 auto 3px}.grid-game .gr-wind>strong{font-size:14px}.grid-game .gr-wind>span{font-size:12px;min-height:15px}.grid-game .gr-incoming{width:42px;height:32px;right:4px;top:4px}
 .grid-game .gr-chart-panel{order:1;padding:9px 7px 7px;border-radius:12px}.grid-game .gr-chart-legend{gap:6px;font-size:12px;padding:0 2px 7px;flex-wrap:wrap;row-gap:6px}.grid-game .gr-chart-legend strong{font-size:16px;margin-left:1px}.grid-game .gr-chart-legend>span{gap:4px}.grid-game .gr-chart-legend i{width:12px}.grid-game .gr-chart{height:205px}.grid-game .gr-chart-caption{font-size:12px;gap:5px;flex-wrap:wrap;padding:4px 2px 0}.grid-game .gr-chart-caption>strong{font-size:12px}.grid-game .gr-chart-caption>span:last-child{margin-left:auto}
 .grid-game .gr-plants{order:2;gap:7px}.grid-game .gr-plant{min-height:148px;padding:8px 7px 7px;border-radius:11px}.grid-game .gr-plant-heading{display:block;line-height:1.2}.grid-game .gr-plant-heading>strong{font-size:14px}.grid-game .gr-plant-state{display:block;font-size:12px;margin-top:3px}.grid-game .gr-plant-art{width:49px;height:35px;margin:6px auto 3px}.grid-game .gr-plant-output{display:block;line-height:1.15}.grid-game .gr-plant-output>small{display:block;font-size:11px;margin-bottom:2px}.grid-game .gr-plant-output>strong{display:block;font-size:21px}.grid-game .gr-plant-potential{font-size:11px;min-height:26px;line-height:1.2;margin-top:3px}.grid-game .gr-plant-action{font-size:12px;margin-top:5px;padding:7px 2px}.grid-game .gr-message{font-size:12px;line-height:1.35;margin-top:8px}
 .grid-game .gr-pause{padding:13px;gap:10px;align-items:flex-start}.grid-game .gr-pause h2{font-size:19px}.grid-game .gr-pause>div:last-child{flex-direction:column;gap:0}.grid-game .gr-pause .gr-primary,.grid-game .gr-pause .gr-quiet{padding:9px 12px;font-size:12px}.grid-game .gr-result{padding:26px 20px 20px}.grid-game .gr-result h2{font-size:29px}.grid-game .gr-result>p:not(.gr-award-caption){font-size:13px}.grid-game .gr-result-actions>.gr-primary{width:100%}.grid-game .gr-result-stats{margin-top:20px;gap:30px}.grid-game .gr-result-stats strong{font-size:25px}.grid-game .gr-celebration{height:150px}.grid-game .gr-celebration>img{height:145px}.grid-game .gr-award{width:92px;height:125px;right:10%}.grid-game[data-grid-finale="true"] .gr-celebration>img{left:8%}.grid-game .gr-award-caption{font-size:12px}
}
@media(max-width:360px){
 .grid-game .gr-topbar{padding:6px 8px;gap:5px}.grid-game .gr-topbar strong{font-size:12px}.grid-game .gr-topbar span{font-size:11px}.grid-game .gr-topbar .gr-quiet{padding:9px 6px;font-size:12px}.grid-game .gr-play{padding:9px}.grid-game .gr-roundbar h2{font-size:18px}.grid-game .gr-roundbar .gr-eyebrow{font-size:9px}.grid-game .gr-clock strong{font-size:21px}.grid-game .gr-round-tools .gr-quiet{padding:8px 6px;font-size:12px}.grid-game .gr-health{font-size:11px;gap:5px}.grid-game .gr-health>small{font-size:11px}.grid-game .gr-dashboard{gap:8px}.grid-game .gr-weather-panel{min-height:125px}.grid-game .gr-weather-copy{left:8px}.grid-game .gr-weather-copy>strong{font-size:14px}.grid-game .gr-wind>strong{font-size:13px}.grid-game .gr-chart{height:185px}.grid-game .gr-chart-panel{padding:8px 5px 6px}.grid-game .gr-chart-legend{font-size:12px;gap:6px}.grid-game .gr-chart-legend strong{font-size:16px}.grid-game .gr-chart-legend>span:last-child{font-size:11px}.grid-game .gr-plants{gap:5px}.grid-game .gr-plant{padding:7px 5px 6px}.grid-game .gr-plant-output>strong{font-size:20px}.grid-game .gr-plant-art{width:44px;height:32px}.grid-game .gr-plant-action{font-size:12px;padding:7px 1px}.grid-game .gr-plant-potential{font-size:11px}.grid-game .gr-intro{padding:23px 18px}.grid-game .gr-intro h2{font-size:31px}.grid-game .gr-result{padding:23px 16px}.grid-game .gr-result h2{font-size:27px}
}
@media(max-width:760px) and (max-height:780px){
 .grid-game[data-grid-phase="playing"] .gr-topbar>div>span{display:none}
 .grid-game .gr-play{padding-top:7px;padding-bottom:7px}.grid-game .gr-roundbar{margin-bottom:5px}.grid-game .gr-health{margin-bottom:7px}
 .grid-game .gr-dashboard{gap:7px}.grid-game .gr-weather-panel{min-height:116px}.grid-game .gr-sky>svg{top:-24px}.grid-game .gr-weather-copy{bottom:7px}
 .grid-game .gr-chart{height:165px}.grid-game .gr-chart-panel{padding-top:7px;padding-bottom:5px}.grid-game .gr-chart-legend{padding-bottom:4px}
 .grid-game .gr-plants{gap:5px}.grid-game .gr-plant{padding-top:6px;padding-bottom:5px;min-height:160px}.grid-game .gr-plant-art{height:28px;margin:4px auto 2px}.grid-game .gr-plant-potential{min-height:14px;line-height:1.2;margin-top:2px}.grid-game .gr-plant-action{margin-top:4px;padding-top:6px;padding-bottom:6px}
 .grid-game .gr-message{margin-top:6px}
}
@media(max-width:360px) and (max-height:760px){.grid-game .gr-chart{height:145px}.grid-game .gr-play{padding-top:5px;padding-bottom:5px}.grid-game .gr-dashboard{gap:6px}}
@media(prefers-reduced-motion:reduce){.grid-game *,.grid-game *:before,.grid-game *:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
