@font-face {
  font-family: "DotGothic16 Embedded";
  src: url("DotGothic16-yk-subset.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  height: var(--vv-h, 100dvh);
  background: #f7f7f7;
  color: #535353;
  overflow: hidden;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
:root {
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
}
/* ヘッダー帯（約60px＋セーフエリア）はゲーム画面の最上部にある。
   ここにはサイト共通の「← GAMES」と一時停止ボタンだけが入り、ゲームの絵・文字・十字キーは帯より下にしか出ない。
   （帯の高さ60pxと下線は game.js が canvas の中に描く。canvas は上端のセーフエリアの下から始まる。） */
#hdr {
  position: fixed;
  left: 0; right: 0; top: 0;
  height: var(--safe-t);
  background: #f7f7f7;
  z-index: 5;
}
#area {
  position: fixed;
  left: var(--safe-l);
  right: var(--safe-r);
  top: var(--safe-t);
  height: calc(100vh - var(--safe-t) - var(--safe-b));
  height: calc(100dvh - var(--safe-t) - var(--safe-b));
  height: calc(var(--vv-h, 100dvh) - var(--safe-t) - var(--safe-b));
  overflow: hidden;
  touch-action: none;
  z-index: 1;
}
#c { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; }

/* サイト共通ボタン（game-back.css / game-pause.js）を、ヘッダー帯の中へ移す。
   サイト側CSSより後で読まれても勝つように詳細度を上げている。
   サイト共通の CSS / JS は変更していない。 */
html body a.xx-back {
  top: calc(var(--safe-t) + 18px);
  bottom: auto;
  left: calc(var(--safe-l) + 10px);
  opacity: .9;
}
html body button.xx-pause {
  top: calc(var(--safe-t) + 18px);
  bottom: auto;
  left: calc(var(--safe-l) + 92px);
  opacity: .9;
}
