.play-settings{margin:0 0 18px;padding:17px 20px;border:1px solid #d4e5e7;border-radius:18px;background:linear-gradient(115deg,#edf7fa,#fffce9);color:#193e5e}
.play-settings-top{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.play-settings-title{font-size:14px;font-weight:750;margin-right:auto}
.play-mode-buttons{display:flex;padding:3px;background:#ffffffa6;border:1px solid #cbdcdd;border-radius:30px;gap:3px}
.play-mode-buttons button,.music-toggle{font:inherit;font-size:12px;min-height:40px;border-radius:24px;padding:9px 16px;font-weight:650;border:1px solid transparent;color:#274b59;background:transparent;touch-action:manipulation}
.play-mode-buttons button[aria-pressed=true]{background:#164e59;color:white;box-shadow:0 3px 8px #164e591c}
.music-toggle{background:white;border-color:#b7d2ce;white-space:nowrap;min-width:116px}
.music-toggle[aria-pressed=true]{background:#fff2a8;border-color:#c3a741;color:#4b431d}
.play-settings-description{font-size:12px;line-height:1.6;max-width:760px;margin:10px 0 0;color:#48616e}
.play-mode-badge{display:none;font-size:12px;font-weight:650}
.play-settings[data-active=true]{padding:5px 10px;margin:0 0 8px;border-radius:12px;background:#f0f8f7}
.play-settings[data-active=true] .play-settings-title,.play-settings[data-active=true] .play-mode-buttons,.play-settings[data-active=true] .play-settings-description{display:none}
.play-settings[data-active=true] .play-mode-badge{display:block;margin-right:auto}
.play-settings[data-expert=true]{border-color:#cab56c}
.play-settings[data-expert=true] .play-mode-badge{color:#765622}
.settings-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#city-root,#blackout-root,#grid-root{scroll-margin-top:62px}
@media(max-width:700px){.play-settings{padding:13px 12px;margin-bottom:14px}.play-settings-top{gap:8px}.play-settings-title{width:100%;font-size:13px}.play-mode-buttons{flex:1}.play-mode-buttons button{flex:1;padding:9px 11px;font-size:11px;min-height:44px}.music-toggle{padding:9px 11px;font-size:11px;min-width:100px;min-height:44px}.play-settings-description{font-size:11px}.play-settings[data-active=true]{padding:2px 7px;margin-bottom:5px}.play-settings[data-active=true] .play-mode-badge{font-size:10px}.play-settings[data-active=true] .play-settings-top{gap:5px}}
@media(prefers-reduced-motion:reduce){.play-settings *{transition:none}}
/* Keep the power switches in view with the shared music controls above them. */
@media(max-width:700px) and (max-height:880px){
 .grid-game[data-grid-phase="playing"] .gr-topbar>div>span{display:none}
 .grid-game .gr-chart{height:165px}
}
@media(max-width:360px) and (max-height:760px){
 .grid-game .gr-chart{height:110px}
 .grid-game .gr-weather-panel{min-height:105px}
 .grid-game .gr-sky>svg{height:110px;top:-24px}
 .grid-game .gr-plant{min-height:148px}
}
