/* Compact flight controls. The existing aerospace materials remain shared. */
.toy-gui :is(dialog,#queue-dialog,#settings-dialog,#booster-dialog) :is(.dialog-heading,.gui-title),
.toy-gui #booster-dialog[data-item=priority] .dialog-heading{
 min-height:64px;height:auto;padding:8px;gap:8px;box-sizing:border-box;
}
.toy-gui :is(dialog,#queue-dialog,#settings-dialog,#booster-dialog) .dialog-heading:has(.gui-close){
 grid-template-columns:minmax(0,1fr) 48px;gap:8px;
}
.toy-gui dialog .dialog-heading .gui-close{
 width:48px;min-width:48px;height:48px;min-height:48px;max-width:48px;max-height:48px;margin:0;justify-self:end;align-self:center;
}
.toy-gui dialog :is(.dialog-heading,.gui-title) h2{min-width:0;padding:0 4px;overflow-wrap:anywhere}
.toy-gui #pause-dialog{width:min(380px,calc(100% - 24px));gap:16px;overflow:auto}
.toy-gui #pause-dialog :is(.popup-scene,.pause-options,#pause-settings){display:none}
.toy-gui #pause-dialog .pause-quick-settings{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;padding:4px 0 0;flex:none;
}
.toy-gui #pause-dialog button.pause-toggle{
 display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;
 width:100%;min-width:0;min-height:92px;height:auto;padding:2px 0 4px;margin:0;
 background:none;border:0;border-radius:12px!important;box-shadow:none;color:#24475e;text-shadow:none;letter-spacing:0;
}
.toy-gui #pause-dialog .pause-toggle-icon{
 position:relative;display:grid;place-items:center;flex:none;width:56px;height:56px;
 border:2px solid #a9c8d6;border-bottom:4px solid #1c3c54;border-radius:14px;
 background:linear-gradient(150deg,#496e86,#29495f);color:#daeaf1;
 box-shadow:inset 0 1px #e0f8ff70,0 3px #122d43,0 5px 7px #122c4026;
}
.toy-gui #pause-dialog .pause-toggle-icon .ui-icon{display:block;width:28px;height:28px;margin:0;fill:currentColor;filter:none}
.toy-gui #pause-dialog .pause-toggle-label{
 display:block;max-width:100%;min-height:30px;font-size:13px;font-weight:800;line-height:15px;text-align:center;
 color:#24475e;white-space:normal;overflow-wrap:anywhere;text-shadow:none;
}
.toy-gui #pause-dialog .pause-toggle[aria-pressed=true] .pause-toggle-icon{
 border-color:#cbffff;border-bottom-color:#247a94;background:linear-gradient(150deg,#8bebec,#45c1d2);color:#103b52;
 box-shadow:inset 0 1px #f0ffff,0 3px #15506b,0 5px 7px #122c4026;
}
.toy-gui #pause-dialog .pause-toggle[aria-pressed=false] .pause-toggle-icon:after{
 content:'';position:absolute;left:11px;top:25px;width:30px;height:3px;border-radius:2px;
 background:#e4f2f7;box-shadow:0 0 0 2px #31526a;transform:rotate(-45deg);pointer-events:none;
}
.toy-gui #pause-dialog button.pause-toggle:active:not(:disabled){background:none;box-shadow:none;transform:translateY(2px)}
.toy-gui #pause-dialog .pause-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:0 0 4px;flex:none}
.toy-gui #pause-dialog .pause-actions :is(.primary,.secondary){width:100%;min-width:0;min-height:56px;margin:0;padding:12px 8px;font-size:18px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
/* Keep the energy illustration crisp and distinct from coin and item art. */
.toy-gui #confirm-dialog #confirm-title{color:#f1fcff}
.toy-gui img[src$="energy-v30.svg"]{object-fit:contain;filter:none}
.toy-gui #lives-dialog .life-hero{width:88px;height:88px;margin:4px auto;filter:none}
@media(max-width:350px){
 .toy-gui #pause-dialog{gap:14px}
 .toy-gui #pause-dialog .pause-quick-settings{gap:8px}
 .toy-gui #pause-dialog .pause-toggle-icon{width:52px;height:52px}
 .toy-gui #pause-dialog .pause-toggle-label{font-size:12px;line-height:15px}
 .toy-gui #pause-dialog .pause-actions{gap:10px}
}
