/* Music lives in the existing footer, leaving the scenery and card geometry intact. */
.game-shell .game-footer.has-game-music {
  position: absolute;
  z-index: 12;
  inset: auto 0 0;
  height: auto;
  min-height: 44px;
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 44px;
  align-items: center;
  gap: 16px;
  padding: 2px max(12px, env(safe-area-inset-right)) max(2px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  border-top-width: 2px;
  color: #fff3d8;
  background: rgba(3, 30, 48, .88);
}
.game-footer.has-game-music > [hidden] { display: none !important; }
.has-game-music .game-footer-brand { white-space: nowrap; }
.game-music-credit {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-align: left;
  letter-spacing: .02em;
  text-decoration: none;
}
.game-music-credit:hover .game-music-credit__title { text-decoration: underline; }
.game-music-credit:focus-visible { outline: 2px solid #f2c56a; outline-offset: 3px; }
.game-music-credit__prefix { flex: 0 0 auto; color: #f2c56a; font: 12px/1.3 var(--pixel); }
.game-music-credit__title {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff3d8;
  font: 20px/1.1 var(--display);
  text-shadow: 1px 1px #062b4b;
}
.game-sound-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 40px;
  padding: 6px;
  border: 2px solid #f2c56a;
  color: #fff3d8;
  background: #063e53;
  box-shadow: inset -2px -2px #052c41;
  cursor: pointer;
}
.game-sound-toggle:hover { background: #075f7a; }
.game-sound-toggle:focus-visible { outline: 2px solid #fff3d8; outline-offset: 2px; }
.game-sound-toggle:disabled { cursor: default; opacity: .5; }
.game-sound-toggle svg { width: 24px; height: 24px; overflow: visible; }
.game-sound-toggle path { stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; fill: none; }
.game-sound-toggle .speaker-body { fill: currentColor; stroke-width: 1; }
.game-sound-toggle .speaker-muted { display: none; }
.game-sound-toggle[data-sound="off"] { color: #bdc9cb; border-color: #8aafba; }
.game-sound-toggle[data-sound="off"] .speaker-waves { display: none; }
.game-sound-toggle[data-sound="off"] .speaker-muted { display: block; }
@media (max-width: 720px) {
  .game-shell .game-footer.has-game-music { grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
  .has-game-music .game-footer-brand { display: none; }
  .game-music-credit { gap: 8px; }
  .game-music-credit__prefix { font-size: 12px; }
  .game-music-credit__title { font-size: 19px; }
}
