html, body {
  margin: 0;
  height: 100%;
  background: #0b0b16;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#wrap {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#wrap { position: relative; }
/* 召喚画面の名前入力（main.js がキャンバス座標に合わせて位置・大きさを設定） */
#pet-name {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
  padding: 0 0.6em;
  border: 2px solid #b48cff;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #2a1b5e;
  font-family: "Hiragino Maru Gothic ProN","Rounded M+ 1c","M PLUS Rounded 1c","Noto Sans JP","Yu Gothic",sans-serif;
  font-weight: bold;
  outline: none;
  -webkit-user-select: text;
  user-select: text;
}
#pet-name:focus { border-color: #ffe14d; box-shadow: 0 0 0 3px rgba(255, 225, 77, 0.4); }
#pet-name::placeholder { color: #9a8cc0; font-weight: normal; }
#game {
  /* 横持ち 960×540 をアスペクト比を保って画面に収める */
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  display: block;
  touch-action: none;
  background: #000;
}
