/* VSH game fit (2026-10-22): games fit every device, stay inline, swipes go to the game */
.g-fit,.gf-frame,#gf-iframe{touch-action:none;overscroll-behavior:contain;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
.g-fit{max-width:100%;margin-left:auto;margin-right:auto}
.g-fit canvas{max-width:100%!important;height:auto;touch-action:none}
.g-fit input,.g-fit textarea,.g-fit select{touch-action:manipulation;-webkit-user-select:text;user-select:text}
html.vsh-gfit,html.vsh-gfit body{overscroll-behavior-y:none}
.vsh-play-main,.g-main{min-width:0;max-width:100%}
@media (max-width:760px){.gf-frame{height:calc(100svh - 84px);min-height:0;max-height:none}}
@media (max-height:500px) and (orientation:landscape){.gf-frame{aspect-ratio:auto;height:calc(100svh - 16px);min-height:0;max-height:none}}
.g-fit #game{zoom:var(--vsh-z,1)}
@media (max-height:500px) and (orientation:landscape){html.vsh-gfit .site-header{position:static}}
@media (max-width:760px){.vsh-game-play .wrap{padding-left:6px;padding-right:6px}.vsh-game-play .tool.card-box{padding:10px 8px}}
#game .dbl{border:0!important;padding:0!important;min-width:0!important;min-height:0!important;box-shadow:none!important;margin:0!important}
#game .mm{grid-template-columns:repeat(4,1fr);max-width:min(100%,560px)}#game .mm.c24,#game .mm.c36{grid-template-columns:repeat(6,1fr)}
#game .kb{max-width:100%}#game .kb-row{display:flex;gap:4px;justify-content:center}#game .kb .key{flex:1 1 0;min-width:0!important;padding-left:0!important;padding-right:0!important;font-size:clamp(11px,3.4vw,16px)}#game .kb .key.wide{flex:1.5 1 0}
