/* This control is part of the music strip, outside both the art and card areas. */
.game-shell .game-footer.has-game-music {
  grid-template-columns: auto minmax(0, 1fr) auto 44px;
}
.game-footer-brand { order: 0; }
.game-music-credit { order: 1; }
.card-settings-open { order: 2; }
.game-sound-toggle { order: 3; }
.card-settings-open, .card-settings-done {
  min-height: 40px;
  min-width: 44px;
  padding: 3px 12px;
  border: 2px solid #f2c56a;
  border-radius: 0;
  background: #063e53;
  color: #fff3d8;
  box-shadow: inset -2px -2px #052c41;
  font: 22px/1 var(--display);
  cursor: pointer;
}
.card-settings-open:hover, .card-settings-done:hover { background: #075f7a; }
.card-settings-open:focus-visible, .card-settings-done:focus-visible {
  outline: 2px solid #fff3d8; outline-offset: 2px;
}
.card-settings {
  box-sizing: border-box;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 0;
  margin: auto;
  border: 3px solid #f2c56a;
  border-radius: 0;
  background: #063e53;
  color: #fff3d8;
  box-shadow: 4px 4px 0 #032839;
}
.card-settings:not([open]) { display: none; }
.card-settings::backdrop { background: rgb(3 19 34 / .64); }
.card-settings-panel { padding: 20px; }
.card-settings h2 { margin: 0 0 21px; font: 36px/1 var(--display); color: #fff3d8; }
.card-settings fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.card-settings legend { margin: 0 0 9px; padding: 0; font: 14px/1.4 var(--pixel); color: #f2c56a; }
.card-settings p { margin: 12px 0 17px; font: 21px/1.15 var(--display); color: #e2ebdf; }
.card-style-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.card-style-options label { position: relative; min-width: 0; }
.card-style-options input {
  position: absolute; inline-size: 1px; block-size: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.card-style-options span {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 44px; border: 2px solid #839ea8; background: #042f44;
  font: 23px/1 var(--display); color: #fff3d8; cursor: pointer;
}
.card-style-options input:checked + span { color: #062b40; background: #f2c56a; border-color: #fff3d8; }
.card-style-options input:checked + span::before {
  content: ''; width: 0; height: 0; border: solid transparent;
  border-width: 4px 0 4px 6px; border-left-color: currentColor;
}
.card-style-options input:focus-visible + span { outline: 2px solid #fff3d8; outline-offset: 2px; }
.card-settings-done { min-height: 44px; }
@media (max-width: 720px) {
  .game-shell .game-footer.has-game-music { grid-template-columns: minmax(0, 1fr) auto 44px; gap: 6px; }
  .card-settings-open { padding-inline: 8px; font-size: 20px; }
}
/* Keep both full labels readable at narrow phone widths and larger text sizes. */
@media (max-width: 360px) {
  .card-style-options { grid-template-columns: 1fr; }
}
