*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0e1018;
  --panel: #151925;
  --panel-alt: #1e2436;
  --border: #2c354f;
  --text: #eef1f7;
  --muted: #a4adc4;
  --gold: #f0c850;
  --red: #e04444;
  --blue: #4c7cf0;
  --font-ui: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Code", "Consolas", ui-monospace, monospace;
}

html {
  scrollbar-gutter: stable;
}

html,
body {
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
}

.app-shell {
  height: 100dvh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-bar {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 6px 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-seal {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--red) 0%, #8f2222 48%, #21409a 52%, var(--blue) 100%);
  border: 1px solid var(--gold);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.brand-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.version-badge {
  flex: 0 0 auto;
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(240, 200, 80, 0.14);
  border: 1px solid rgba(240, 200, 80, 0.45);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

.version-badge:hover {
  background: rgba(240, 200, 80, 0.24);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.top-btn,
.top-link,
.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.top-btn:hover,
.top-link:hover,
.footer-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.top-btn.is-muted {
  border-color: rgba(224, 68, 68, 0.52);
  background: rgba(224, 68, 68, 0.12);
  color: #f4b6b6;
}

.footer-btn.is-active {
  border-color: var(--gold);
  background: rgba(240, 200, 80, 0.14);
  color: var(--gold);
}

.top-btn:focus-visible,
.top-link:focus-visible,
.footer-btn:focus-visible,
.version-badge:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.toggle-chip:focus-visible,
.count-btn:focus-visible,
.ai-mode-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.stage-wrap {
  flex: 1 1 auto;
  min-height: 0;
  container-type: size;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: min(100cqw, calc(100cqh * 16 / 9));
  height: min(100cqh, calc(100cqw * 9 / 16));
  max-height: 100%;
  background: #080a10;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.canvas-frame:fullscreen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #06070c;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.canvas-frame:fullscreen #game-canvas {
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
}

.music-toast {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(490px, calc(100% - 32px));
  padding: 7px 12px;
  border-radius: 9px;
  background: rgba(11, 14, 22, 0.86);
  border: 1px solid rgba(240, 200, 80, 0.48);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(6px);
  color: var(--text);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.music-toast.is-visible {
  opacity: 0.96;
  transform: translateY(0);
}

.music-toast-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(240, 200, 80, 0.16);
  border: 1px solid rgba(240, 200, 80, 0.42);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 0.95rem;
  font-weight: 800;
}

.music-toast-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.music-toast-primary {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.2;
}

.music-toast-game {
  color: var(--gold);
  font-weight: 800;
  white-space: nowrap;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-toast-sep {
  color: var(--muted);
  flex: 0 0 auto;
}

.music-toast-track {
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-toast-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(240, 200, 80, 0.14);
  border: 1px solid rgba(240, 200, 80, 0.35);
  color: var(--gold);
}

.music-toast-num:empty {
  display: none;
}

.music-toast-author {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overlay-screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 10, 18, 0.72);
  backdrop-filter: blur(4px);
  z-index: 10;
}

.overlay-card {
  background: rgba(18, 22, 34, 0.95);
  border: 1px solid rgba(240, 200, 80, 0.48);
  border-radius: 12px;
  padding: 22px 26px;
  color: var(--text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65);
  max-height: 100%;
  overflow-y: auto;
}

.compact-card {
  width: min(560px, 100%);
  text-align: center;
}

.moves-card {
  width: min(860px, 100%);
  padding: 16px 20px;
  border-color: rgba(124, 168, 212, 0.44);
}

.overlay-title-full {
  background: radial-gradient(circle at 50% 22%, #1d243b 0%, #0d1019 78%);
  backdrop-filter: none;
  padding: 18px 24px;
}

.title-menu-wrap {
  width: min(760px, 100%);
  max-height: 100%;
  overflow-y: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.setup-panel {
  width: 100%;
  background: rgba(18, 22, 34, 0.92);
  border: 1px solid rgba(240, 200, 80, 0.38);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
}

.setup-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.15s ease;
}

.setup-row.is-disabled {
  opacity: 0.45;
}

.setup-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.setup-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.setup-hint {
  font-size: 0.76rem;
  color: var(--muted);
}

.count-group,
.ai-mode-group {
  display: grid;
  gap: 8px;
}

.count-group {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-mode-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.count-btn,
.ai-mode-btn {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.count-btn:hover:not(:disabled),
.ai-mode-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
}

.count-btn.is-active,
.ai-mode-btn.is-active {
  background: rgba(240, 200, 80, 0.18);
  border-color: var(--gold);
  color: var(--gold);
}

.ai-mode-btn.is-ehtp.is-active {
  background: rgba(224, 68, 68, 0.22);
  border-color: var(--red);
  color: #ff9a9a;
}

.count-btn:disabled,
.ai-mode-btn:disabled {
  cursor: not-allowed;
}

.setup-toggles-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  white-space: nowrap;
  border-radius: 7px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.toggle-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.toggle-chip.is-active {
  background: rgba(240, 200, 80, 0.14);
  border-color: rgba(240, 200, 80, 0.65);
  color: var(--gold);
}

.speed-chip {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.speed-chip.is-active {
  background: rgba(240, 200, 80, 0.14);
  border-color: rgba(240, 200, 80, 0.65);
  color: var(--gold);
}

.speed-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.speed-btn {
  min-width: 26px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(14, 17, 26, 0.55);
  border: 1px solid rgba(110, 124, 156, 0.34);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.speed-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.speed-btn.is-default-selected {
  background: rgba(180, 194, 224, 0.22);
  border-color: rgba(180, 194, 224, 0.55);
  color: #e6ecf8;
}

.speed-btn.is-custom-selected {
  background: rgba(240, 200, 80, 0.28);
  border-color: var(--gold);
  color: var(--gold);
}

.speed-hint {
  margin-left: 2px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  opacity: 0.78;
}

.roster-pill {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.roster-pill.is-inactive {
  opacity: 0.26;
  filter: grayscale(0.75);
}

.badge-white {
  background: rgba(238, 242, 248, 0.16);
  border: 1px solid #d7dfec;
  color: #f4f7fb;
}

.badge-black {
  background: rgba(26, 30, 42, 0.85);
  border: 1px solid #6b7692;
  color: #d4dcf0;
}

.badge-green {
  background: rgba(46, 158, 91, 0.22);
  border: 1px solid #36b86a;
  color: #84ebad;
}

.title-eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hi-score-pill {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(240, 200, 80, 0.14);
  border: 1px solid rgba(240, 200, 80, 0.45);
  color: #ffe48a;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3.1vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.badge-red {
  background: rgba(224, 68, 68, 0.22);
  border: 1px solid var(--red);
  color: #ff9a9a;
}

.badge-blue {
  background: rgba(76, 124, 240, 0.22);
  border: 1px solid var(--blue);
  color: #9ec0ff;
}

.rules-brief,
.overlay-sub {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.btn-kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}

.btn-primary .btn-kbd {
  background: rgba(14, 16, 24, 0.22);
  border: 1px solid rgba(14, 16, 24, 0.35);
  color: #13151e;
}

.btn-keys {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  letter-spacing: 0.01em;
}

.btn-keys .btn-kbd {
  padding: 1px 4px;
  font-size: 0.65rem;
}

.btn-keys .kbd-sep {
  opacity: 0.65;
  font-size: 0.68rem;
  font-weight: 700;
}

.btn-primary:has(.btn-keys) {
  gap: 5px;
  padding-inline: 11px;
}

.btn-secondary .btn-kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--gold);
}

.btn-primary {
  background: linear-gradient(180deg, #f3ce5a 0%, #d8aa2d 100%);
  border: 1px solid #ffe48a;
  color: #13151e;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #fae07e 0%, #e5b738 100%);
}

.btn-secondary {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-compact {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.quick-keys {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.modal-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.moves-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.moves-card .modal-title {
  color: #eaf2ff;
}

.moves-card .btn-secondary .btn-kbd {
  color: #9ec8ee;
}

.moves-card .btn-secondary:hover {
  border-color: #7ec8d9;
  color: #b8e4f0;
}

.moves-card .btn-secondary:focus-visible {
  outline-color: #8ab8e8;
  border-color: #8ab8e8;
}

.moves-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.moves-ik-callout {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin: 0 0 11px;
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f6d565 0%, #eab732 100%);
  border: 2px solid #fff0b3;
  box-shadow: 0 4px 18px rgba(240, 200, 80, 0.28);
  color: #11141e;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
}

.moves-ik-callout::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.42) 50%, transparent 80%);
  transform: translateX(-120%);
  pointer-events: none;
  animation: movesIkSheen 0.9s ease-out 0.15s 1;
}

@keyframes movesIkSheen {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

.moves-ik-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 5px;
  background: #d43333;
  border: 1px solid #8c1a1a;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.moves-ik-text {
  line-height: 1.25;
}

@media (prefers-reduced-motion: reduce) {
  .moves-ik-callout::after {
    animation: none;
  }
}

body.hide-cursor,
body.hide-cursor *,
.canvas-frame.hide-cursor,
.canvas-frame.hide-cursor * {
  cursor: none !important;
}

.moves-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.moves-col {
  background: rgba(11, 13, 20, 0.72);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

.moves-col-title {
  margin: 0 0 8px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #7ec8d9;
}

.move-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.79rem;
}

.move-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(44, 53, 79, 0.45);
}

.move-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.move-key {
  flex: 0 0 auto;
  white-space: nowrap;
}

.unblockable {
  color: #6ec9a8;
  font-weight: 700;
}

.moves-footer-tip {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.footer-bar {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 4px 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.controls-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--muted);
}

.sep {
  opacity: 0.45;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pad-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(54, 184, 106, 0.16);
  border: 1px solid rgba(54, 184, 106, 0.55);
  color: #84ebad;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

kbd {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  background: #232a3e;
  border: 1px solid #3c4768;
  color: #eef1f7;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
}

.hidden {
  display: none;
}

@media (max-height: 660px) {
  .app-shell {
    padding: 5px 10px;
    gap: 5px;
  }

  .top-bar {
    min-height: 38px;
    padding: 4px 10px;
  }

  .footer-bar {
    min-height: 32px;
    padding: 3px 8px;
  }

  .overlay-card {
    padding: 14px 18px;
  }

  .moves-card {
    padding: 12px 14px;
  }

  .hero-title {
    font-size: 1.42rem;
    margin-bottom: 8px;
  }

  .overlay-title-full {
    padding: 10px 18px;
  }

  .setup-panel {
    padding: 8px 12px;
    margin-bottom: 8px;
    gap: 7px;
  }

  .setup-row {
    gap: 5px;
  }

  .count-btn,
  .ai-mode-btn {
    padding: 5px 8px;
    font-size: 0.74rem;
  }

  .toggle-chip {
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .speed-chip {
    padding: 3px 8px;
    font-size: 0.7rem;
  }

  .speed-btn {
    min-width: 24px;
    padding: 1px 6px;
    font-size: 0.7rem;
  }

  .speed-hint {
    font-size: 0.66rem;
  }

  .roster-pill {
    padding: 2px 8px;
    font-size: 0.7rem;
  }

  .rules-brief {
    margin-bottom: 10px;
    font-size: 0.82rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .quick-keys {
    margin-top: 8px;
    font-size: 0.74rem;
  }

  .move-list {
    font-size: 0.74rem;
    gap: 3px;
  }

  .moves-ik-callout {
    margin-bottom: 7px;
    padding: 5px 10px;
    gap: 6px 8px;
    font-size: 0.8rem;
  }

  .moves-ik-tag {
    padding: 1px 7px;
    font-size: 0.72rem;
  }

  .music-toast {
    bottom: 10px;
    left: 12px;
    padding: 5px 10px;
    gap: 8px;
  }

  .music-toast-icon {
    width: 22px;
    height: 22px;
    font-size: 0.82rem;
  }

  .music-toast-primary {
    font-size: 0.72rem;
  }

  .music-toast-num,
  .music-toast-author {
    font-size: 0.64rem;
  }
}

@media (max-width: 760px) {
  .setup-toggles-row {
    grid-template-columns: 1fr;
  }

  .moves-grid {
    grid-template-columns: 1fr;
  }

  .brand-title {
    font-size: 0.82rem;
  }
}