
/* Uploaded games fill their play area on every entrance, including the lobby. */
.machine-stage > iframe.community-game{display:block;position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;border:0;box-sizing:border-box;background:#080d1b}

/* Save confirmation belongs in the game viewport, not below its controls. */
.machine-close-panel{position:absolute;inset:0;z-index:5;display:grid;align-items:center;justify-items:center;overflow:auto;overscroll-behavior:contain;padding:16px;box-sizing:border-box;background:#080d1bea;color:#f4f7ff}
.machine-close-panel[hidden]{display:none}
.machine-close-card{box-sizing:border-box;width:min(100%,620px);margin:auto;padding:20px;border:2px solid #00b8ff;border-radius:10px;background:#101b2d;box-shadow:0 10px 40px #0009;text-align:center}
.machine-close-card h3{margin:0 0 12px;font:700 22px/1.2 system-ui,sans-serif}.machine-close-card p{display:block!important;margin:12px 0;font:15px/1.5 system-ui,sans-serif;overflow-wrap:anywhere}
.machine-close-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.machine-close-actions button{min-height:44px;max-width:100%;touch-action:manipulation;white-space:normal}
.machine-close-actions [data-close-stay]{border-color:#00b8ff}.machine-close-actions [data-close-unsaved]{border-color:#f5a623}
@media(max-height:500px){.machine-close-panel{padding:6px;align-items:start}.machine-close-card{padding:10px}.machine-close-card h3{font-size:17px;margin-bottom:6px}.machine-close-card p{font-size:13px;margin:6px 0}.machine-close-actions{gap:6px}}
