@font-face{font-family:"DotGothic16";src:url("DotGothic16-mg-subset.woff2") format("woff2");font-display:block}
html,body{margin:0;height:100%;height:100dvh;background:#f7f7f7;overflow:hidden;overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#wrap{position:fixed;inset:0;box-sizing:border-box;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)}
canvas{display:block;width:100%;height:100%;touch-action:none;image-rendering:pixelated}
/* 広告（AD.href を入れたときだけ出る） */
.mg-ad{position:fixed;z-index:10;display:flex;align-items:center;justify-content:center;overflow:hidden;background:transparent;text-decoration:none;color:#535353;font:12px/1.3 system-ui,sans-serif;-webkit-tap-highlight-color:transparent}
.mg-ad:focus-visible{outline:2px solid #535353;outline-offset:1px}
.mg-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mg-ad img{background:#f7f7f7;max-width:100%;max-height:100%;object-fit:contain;image-rendering:auto}
.mg-pr{position:absolute;left:2px;top:2px;padding:1px 4px;font:700 9px/1.2 system-ui,sans-serif;color:#f7f7f7;background:#8a8a8a;border-radius:3px}

/* サイト共通の「← GAMES」と一時停止（/css/game-back.css・/js/game-pause.js）を、ゲームのヘッダー帯の左へ（位置は frame-ui.js） */
html body a.xx-back{top:var(--xx-top,6px);bottom:auto;left:var(--xx-left,10px);opacity:.9}
html body button.xx-pause{top:var(--xx-top,6px);bottom:auto;left:calc(var(--xx-left,10px) + 82px);opacity:.9}
