/* Shared, compact atmosphere controls. All sound starts only after a gesture. */
.atmosphere-dock {
  position: fixed; z-index: 40; right: 20px; bottom: 18px;
  display: flex; align-items: center; gap: 5px; padding: 6px;
  border: 1px solid #ffffff2b; border-radius: 16px;
  background: linear-gradient(120deg, #17252cf5, #0c1419f2);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px #0006, inset 0 1px #ffffff0c;
}
.atmosphere-dock[hidden], .home-music-panel[hidden], .arcade-open .atmosphere-dock { display: none; }
.atmosphere-dock .atmosphere-control, .atmosphere-dock .motion-toggle {
  position: static; display: flex; align-items: center; justify-content: center;
  gap: 7px; min-height: 42px; padding: 10px 12px; border: 1px solid transparent;
  border-radius: 10px; background: transparent; box-shadow: none;
  color: #e9eded; font: 600 12px/1.3 Inter, sans-serif; cursor: pointer;
}
.atmosphere-dock .motion-toggle[hidden] { display: none; }
.atmosphere-dock button:hover { background: #ffffff0d; border-color: #ffffff25; }
.atmosphere-dock button:focus-visible { outline: 2px solid #ff9b79; outline-offset: 2px; }
.atmosphere-dock button[aria-pressed=true], .atmosphere-dock button[aria-expanded=true] { color: #ffbaa4; background: #f7583914; }
.atmosphere-dock svg { width: 17px; height: 17px; flex-shrink: 0; }
.atmosphere-dock .motion-toggle-icon { font-size: 15px; }
.home-music-panel {
  position: absolute; bottom: calc(100% + 12px); right: 0;
  width: min(390px, calc(100vw - 32px)); padding: 19px; border-radius: 16px;
  border: 1px solid #ffffff30; background: #142027fa; color: #eef2ef;
  box-shadow: 0 12px 50px #0009;
}
.home-music-panel h2 { margin: 0 0 5px; font: 600 22px/1.2 Oswald, sans-serif; }
.home-music-panel p { margin: 0 0 16px; color: #c4d0d3; font: 13px/1.6 Inter, sans-serif; }
.home-music-panel iframe { width: 100%; height: 42px; border: 0; display: block; border-radius: 4px; }
.home-music-panel .music-source { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 14px; }
.home-music-panel .music-source a { color: #efb49d; font: 12px/1.4 Inter,sans-serif; }
.home-music-panel .music-stop { padding: 9px 10px; border: 1px solid #ffffff25; border-radius: 7px; background: #ffffff07; color: #e4ebeb; cursor: pointer; font: 12px Inter,sans-serif; }
.home-page .site-footer { padding-bottom: 100px; }
@media (max-width: 680px) {
  .atmosphere-dock { right: 10px; left: 10px; bottom: max(10px, env(safe-area-inset-bottom)); justify-content: space-between; padding: 4px; gap: 0; border-radius: 14px; }
  .atmosphere-dock .atmosphere-control, .atmosphere-dock .motion-toggle { min-height: 44px; padding: 8px; font-size: 11px; gap: 5px; }
  .home-music-panel { width: min(390px, calc(100vw - 20px)); padding: 16px; }
}
@media (max-width: 360px) {
  .atmosphere-dock .atmosphere-control, .atmosphere-dock .motion-toggle { font-size: 10px; padding: 7px 5px; }
  .atmosphere-dock svg { width: 14px; height: 14px; }
}
