/* Wrapper viewport only. No provider controls, touch events, ROMs or keymaps are replaced. */
:root .r17-player,:root .r17-player *{box-sizing:border-box}
:root .r14-game-modal.r17-player{box-sizing:border-box!important;margin:0!important;border:0!important;max-width:none!important;max-height:none!important;width:100vw;height:100vh;height:100dvh;overflow:hidden!important;padding:20px}
:root .r17-player .r14-game-shell{box-sizing:border-box;position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;width:min(100%,1100px);height:min(840px,calc(100vh - 40px));height:min(840px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);overflow:hidden}
:root .r17-player .r14-game-toolbar{flex:0 0 auto;min-width:0;position:relative;z-index:3;flex-wrap:nowrap;gap:6px;min-height:44px;padding:4px 8px}
:root .r17-player .r14-game-toolbar button{min-height:40px;white-space:nowrap;font-size:12px;touch-action:manipulation}
.r17-external-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:#52647b}
.r17-player-options{box-sizing:border-box;flex:0 1 auto;min-height:0;max-height:35%;overflow:auto;overscroll-behavior:contain;background:#fff;color:#172033;border-bottom:1px solid #dce5f1;padding:8px 12px}
.r17-player-options h2{font-size:16px;line-height:1.4;margin:3px 0 8px}.r17-player-options p{font-size:11px;line-height:1.6;margin:7px 0;padding:0}.r17-player-extra-controls{display:flex;gap:6px;flex-wrap:wrap}.r17-player-extra-controls button,.r17-player-extra-controls a{font:inherit;font-size:12px;line-height:1.4;min-height:40px;padding:8px 10px;box-sizing:border-box;border:1px solid #c9d4e5;border-radius:7px;background:#fff;color:#243e63;text-decoration:none;touch-action:manipulation}
:root .r17-player .r14-game-mount{position:relative;flex:1 1 0%;height:0!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;width:100%;overflow:hidden;overscroll-behavior:none}
:root .r17-player .r14-game-mount iframe{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;border:0;touch-action:auto}
:root .r14-game-modal.r17-player.r17-play-mode{inset:auto!important;left:var(--r17-vx,0px)!important;top:var(--r17-vy,0px)!important;width:var(--r17-vw,100vw)!important;height:var(--r17-vh,100vh)!important;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)!important;border-radius:0!important}
:root .r17-player.r17-play-mode .r14-game-shell{width:100%!important;height:100%!important;max-height:100%!important;border-radius:0!important}
:root .r17-player.r17-play-mode .r14-game-toolbar{height:44px;min-height:44px;padding:0 6px;gap:4px}
:root .r17-player.r17-play-mode .r14-game-toolbar button{height:44px;min-height:44px;padding:6px 9px}
:root .r17-player.r17-play-mode .r17-player-options{position:absolute;z-index:5;top:44px;left:6px;right:6px;max-height:calc(100% - 52px);border:1px solid #c9d4e5;border-radius:0 0 8px 8px;box-shadow:0 8px 24px #17203333}
.r17-player-options[hidden],.r17-player .r14-game-toolbar button[hidden]{display:none!important}
@media(max-width:420px){.r17-player.r17-play-mode .r17-external-label{font-size:10px}.r17-player-options{padding:8px}.r17-player-extra-controls button,.r17-player-extra-controls a{min-height:44px}}
