/* ========== 共通ベース ========== */
body {
  margin: 0;
  background: #000;
  color: #fff;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#game-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

canvas {
  display: block;
  background: #000;
}

.game-canvas {
  max-width: 100%;
}

/* ========== サウンドボタン ========== */
#sound-control {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 30; /* ランキングティッカー(12)より前面に配置 */
}

#muteButton {
  background: #222;
  color: #eee;
  border: 1px solid #555;
  padding: 5px 10px;
  cursor: pointer;
}

#muteButton:hover {
  background: #555;
}

/* ========== 操作説明テーブル ========== */
.control-table {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 92vw);
  color: #fff;
  border-collapse: collapse;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 25;
  pointer-events: none; /* ゲーム操作を邪魔しない */
}

.control-table th,
.control-table td {
  border: 1px solid #555;
  padding: 8px 12px;
  text-align: center;
}

.control-table th {
  background-color: #333;
}
