/* Cinarverse V17.41 — scoped Instant Play modal stability rules.
   No changes to game ROM/emulation, game canvas, library scroll or coin engine. */
.cv-instant-modal[hidden]{display:none!important}
.cv-instant-modal{box-sizing:border-box;height:100vh;height:100dvh;max-height:100dvh;overscroll-behavior:contain;-webkit-overflow-scrolling:auto}
.cv-instant-modal *{box-sizing:border-box}
.cv-instant-modal-header,.cv-instant-modal-foot{position:relative;z-index:2}
.cv-instant-frame-wrap{min-height:0;overscroll-behavior:contain}
.cv-instant-frame-wrap iframe{display:block;width:100%;height:100%;border:0;touch-action:auto}
.cv-instant-modal-actions{flex-shrink:0}
.cv-instant-modal-actions button,.cv-instant-modal-actions a,.cv-instant-restart{min-height:36px;touch-action:manipulation}
.cv-instant-restart{flex:0 0 auto;min-width:36px;border:1px solid #4d7291;background:#14263a;color:#fff;border-radius:7px;cursor:pointer;font-size:21px;line-height:1;padding:3px 8px}
.cv-instant-restart:hover,.cv-instant-restart:focus-visible{background:#205568;outline:2px solid #7aeafa;outline-offset:2px}
.cv-instant-modal-foot{min-width:0;flex-wrap:nowrap}
.cv-instant-modal-foot>span{min-width:0;flex:1;overflow-wrap:anywhere}
.cv-instant-modal-foot>a{max-width:31%;overflow-wrap:anywhere;white-space:normal;text-align:end}
.cv-instant-modal:fullscreen{width:100%;height:100%;max-height:none}
.cv-instant-modal.cv-instant-focus .cv-instant-modal-foot{display:none}
.cv-instant-modal.cv-instant-focus .cv-instant-modal-header{padding-top:max(4px,env(safe-area-inset-top));padding-bottom:4px}
.cv-instant-modal.cv-instant-focus .cv-instant-modal-mark small{display:none}
@media(max-width:680px){
 .cv-instant-modal{width:100vw;min-width:0}
 .cv-instant-modal-mark{max-width:33%;font-size:10px}
 .cv-instant-modal-mark strong{display:block;overflow:hidden;text-overflow:ellipsis}
 .cv-instant-modal-actions{gap:4px}
 .cv-instant-modal-actions .cv-instant-direct{max-width:75px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .cv-instant-modal-actions button{padding:7px 6px;line-height:1.3}
 .cv-instant-modal-foot{gap:7px}
 .cv-instant-modal-foot>a{max-width:36%}
}
@media(max-width:380px){
 .cv-instant-modal-foot>span{display:none}
 .cv-instant-modal-foot>a{max-width:65%}
 .cv-instant-modal-foot{justify-content:space-between}
}
@media(orientation:landscape) and (max-height:500px){
 .cv-instant-modal-header{min-height:34px;padding-top:2px;padding-bottom:2px}
 .cv-instant-modal-foot{padding-top:2px;padding-bottom:max(2px,env(safe-area-inset-bottom))}
 .cv-instant-modal-actions button,.cv-instant-modal-actions a{min-height:30px}
}
