html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #f5f5f5;
}

canvas {
  display: block;
}

/* 中央テキスト＋ロゴ（見た目用） */
#center-wrap {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

#logo-text {
  font-family: 'Comic Relief', cursive;
  font-size: 42px;
  color: #5fd0df;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

#center-logo {
  width: 320px;
  pointer-events: none;
  user-select: none;
}

/* === 横並びの中央下付け（bottom:14vh） === */
#controls {
  position: fixed;
  left: 50%;
  bottom: 14vh;
  transform: translateX(-50%);
  z-index: 11;
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 既存のpillボタン定義（ベース） */
.ctrl-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font:
    13px/1.1 system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    'Helvetica Neue',
    Arial,
    'Noto Sans JP',
    sans-serif;
  padding: 10px 14px;
  min-width: 160px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 0.12s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
  background: #111;
  color: #fff;
}

.ctrl-btn:active {
  transform: translateY(1px);
}

/* 丸い絵文字ボタン（共通） */
.icon-btn {
  min-width: auto;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

/* 🎵 サウンド（ONで #5fd0df） */
#soundToggle {
  background: #d6dcdd;
  color: #fff;
}

#soundToggle.on {
  background: #5fd0df;
  color: #111;
}

/* 📸 ショットは白ベース */
#shotBtn {
  background: #fff;
  color: #111;
}

/* 🤪 モーション（ONで #5fd0df） */
#motionBtn {
  background: #ffffff;
  color: #fff;
}

#motionBtn.on {
  background: #5fd0df;
  color: #111;
}

/* スマホ向け微調整 */
@media (max-width: 768px) {
  #center-logo {
    width: 40vw;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  #logo-text {
    font-size: 32px;
    margin-bottom: 14px;
  }

  .ctrl-btn {
    font-size: 14px;
    padding: 10px 14px;
  }

  .icon-btn {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  #controls {
    bottom: 10vh;
  }
}
#homeLink {
  background: #fff;
  color: #111;
  text-decoration: none;
  box-sizing: border-box;
  flex-shrink: 0;
}
.ctrl-btn:focus-visible {
  outline: 2px solid #286f81;
  outline-offset: 4px;
}
