.fullscreen-toggle{position:absolute;z-index:2147483000;pointer-events:auto;right:8px;bottom:8px;padding:8px 12px;border:1px solid #b18a71;background:#211b18;color:#fff;font:inherit;cursor:pointer}
.fullscreen-toggle:focus-visible{outline:3px solid #89d1ec;outline-offset:2px}
.game-frame:fullscreen,.online .screen:fullscreen{width:100vw;height:100vh;max-width:none;max-height:none;margin:0;border:0;aspect-ratio:auto;background:#000;display:flex;align-items:center;justify-content:center;overflow:hidden}
.game-frame:fullscreen #game,.online .screen:fullscreen #game{position:relative;inset:auto;width:min(100vw,133.333333vh);height:min(100vh,75vw);overflow:hidden;flex:none}
.game-frame:fullscreen #game ruffle-player,.online .screen:fullscreen #game ruffle-player{position:absolute;inset:0 auto 0 0;width:125%;height:100%;max-width:none}
.online .screen:fullscreen video{width:100%;height:100%;object-fit:contain}

/* 2026-11-20：网页全屏（浏览器拒绝真正全屏时的退路）与 Safari 前缀 */
.game-frame:-webkit-full-screen{width:100vw;height:100vh;max-width:none;max-height:none;margin:0;border:0;aspect-ratio:auto;background:#000;display:flex;align-items:center;justify-content:center;overflow:hidden}
.game-frame:-webkit-full-screen #game{position:relative;inset:auto;width:min(100vw,133.333333vh);height:min(100vh,75vw);overflow:hidden;flex:none}
.game-frame:-webkit-full-screen #game ruffle-player{position:absolute;inset:0 auto 0 0;width:125%;height:100%;max-width:none}
.game-frame.page-fullscreen{position:fixed;inset:0;z-index:2147482000;width:100vw;height:100vh;max-width:none;margin:0;border:0;aspect-ratio:auto;background:#000;display:flex;align-items:center;justify-content:center;overflow:hidden}
.game-frame.page-fullscreen #game{position:relative;inset:auto;width:min(100vw,133.333333vh);height:min(100vh,75vw);overflow:hidden;flex:none}
.game-frame.page-fullscreen #game ruffle-player{position:absolute;inset:0 auto 0 0;width:125%;height:100%;max-width:none}
html.page-fullscreen-on,html.page-fullscreen-on body{overflow:hidden}
