/* 音軌迷宮 — 黃昏音軌主題（獨立於節奏橋樑日間天空） */

:root {
  --nm-dusk-top: #6b5b95;
  --nm-dusk-mid: #4a7fa8;
  --nm-dusk-low: #5a8f6e;
  --nm-dusk-ink: #2a1f3d;
  --nm-dusk-panel: rgba(74, 58, 98, 0.72);
  --nm-dusk-panel-border: #3d2f52;
  --nm-dusk-gold: #f5c842;
  --nm-dusk-amber: #e8a838;
  --nm-dusk-cream: #fff4e0;
  --nm-dusk-lilac: #c9b8e8;
}

/* ── 封面 ── */

.note-maze-cover-screen {
  z-index: 15;
  background: linear-gradient(
    180deg,
    #5c4a82 0%,
    #6a5a9a 18%,
    #5a7faa 48%,
    #7a9a6a 78%,
    #4a6a52 100%
  );
  overflow: hidden;
}

.note-maze-cover-screen .nm-cover-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.note-maze-cover-screen .nm-cover-staff {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 244, 200, 0.12) 0,
    rgba(255, 244, 200, 0.12) 24px,
    transparent 24px,
    transparent 32px
  );
  opacity: 0.55;
}

.note-maze-cover-screen .nm-cover-staff--1 { top: 22%; }
.note-maze-cover-screen .nm-cover-staff--2 { top: 28%; }
.note-maze-cover-screen .nm-cover-staff--3 { top: 34%; }
.note-maze-cover-screen .nm-cover-staff--4 { top: 40%; }
.note-maze-cover-screen .nm-cover-staff--5 { top: 46%; }

.note-maze-cover-screen .nm-cover-glow {
  position: absolute;
  width: 55%;
  height: 35%;
  left: 22%;
  bottom: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(245, 200, 66, 0.28) 0%, transparent 70%);
}

.note-maze-cover-screen .nm-cover-path {
  position: absolute;
  bottom: 14%;
  left: 8%;
  right: 8%;
  height: 42%;
  border: 3px dashed rgba(245, 200, 66, 0.35);
  border-radius: 40% 40% 8% 8%;
  transform: perspective(200px) rotateX(12deg);
  opacity: 0.7;
}

.note-maze-cover-screen .nm-cover-note {
  position: absolute;
  font-size: clamp(18px, 5vmin, 32px);
  color: rgba(245, 200, 66, 0.75);
  text-shadow: 2px 2px 0 rgba(42, 31, 61, 0.6);
  animation: nm-cover-note-float 3.2s ease-in-out infinite;
}

.note-maze-cover-screen .nm-cover-note--1 { top: 18%; left: 12%; animation-delay: 0s; }
.note-maze-cover-screen .nm-cover-note--2 { top: 28%; right: 15%; animation-delay: -1.1s; }
.note-maze-cover-screen .nm-cover-note--3 { bottom: 32%; left: 22%; animation-delay: -2s; }
.note-maze-cover-screen .nm-cover-note--4 { bottom: 38%; right: 20%; animation-delay: -0.6s; }

@keyframes nm-cover-note-float {
  0%, 100% { transform: translateY(0) rotate(-6deg); opacity: 0.65; }
  50% { transform: translateY(-8px) rotate(4deg); opacity: 1; }
}

.note-maze-cover-screen .nm-cover-ui {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: max(16px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.note-maze-cover-screen .nm-cover-title {
  margin: 0 0 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(14px, 4.2vmin, 22px);
  line-height: 1.55;
  color: var(--nm-dusk-cream);
  text-shadow:
    3px 3px 0 var(--nm-dusk-ink),
    0 0 24px rgba(245, 200, 66, 0.35);
  text-align: center;
}

.note-maze-cover-screen .nm-cover-subtitle {
  margin: 0 0 20px;
  font-size: clamp(10px, 2.8vmin, 14px);
  color: var(--nm-dusk-lilac);
  text-shadow: 2px 2px 0 rgba(42, 31, 61, 0.7);
  letter-spacing: 0.08em;
}

.note-maze-cover-screen .nm-cover-desc {
  max-width: 26rem;
  margin: 0 0 24px;
  text-align: center;
  line-height: 1.6;
  font-size: clamp(10px, 2.6vmin, 13px);
  color: rgba(255, 244, 224, 0.88);
  text-shadow: 1px 1px 0 rgba(42, 31, 61, 0.5);
}

.note-maze-cover-screen .nm-cover-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(10px, 2.8vmin, 13px);
  line-height: 1.5;
  padding: 14px 22px;
  margin: 6px 0;
  min-width: min(100%, 280px);
  color: var(--nm-dusk-ink);
  cursor: pointer;
  border: 3px solid var(--nm-dusk-ink);
  box-shadow: 4px 4px 0 rgba(42, 31, 61, 0.55);
  -webkit-tap-highlight-color: transparent;
}

.note-maze-cover-screen .nm-cover-btn--start {
  background: linear-gradient(180deg, #f5d060 0%, var(--nm-dusk-amber) 100%);
}

.note-maze-cover-screen .nm-cover-btn--quick {
  background: linear-gradient(180deg, #c9b8e8 0%, #9a8ab8 100%);
  color: var(--nm-dusk-ink);
  font-size: clamp(9px, 2.4vmin, 11px);
  padding: 12px 18px;
}

.note-maze-cover-screen .nm-cover-btn--back {
  background: linear-gradient(180deg, #9a8ab8 0%, #6a5a88 100%);
  color: var(--nm-dusk-cream);
}

.note-maze-cover-screen .nm-cover-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(42, 31, 61, 0.55);
}

/* ── 關卡目錄 ── */

.note-maze-levels-screen {
  z-index: 15;
  background: linear-gradient(
    180deg,
    #5c4a82 0%,
    #6a5a9a 18%,
    #5a7faa 48%,
    #7a9a6a 78%,
    #4a6a52 100%
  );
  overflow: hidden;
}

.note-maze-levels-screen .nm-levels-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.note-maze-levels-screen .nm-levels-ui {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
  padding: max(16px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.note-maze-levels-screen .nm-levels-brand {
  margin: 0 0 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(14px, 4.2vmin, 22px);
  line-height: 1.55;
  color: var(--nm-dusk-cream);
  text-shadow:
    3px 3px 0 var(--nm-dusk-ink),
    0 0 24px rgba(245, 200, 66, 0.35);
  text-align: center;
}

.note-maze-levels-screen .nm-levels-title {
  margin: 0 0 6px;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(10px, 2.8vmin, 14px);
  line-height: 1.55;
  color: var(--nm-dusk-cream);
  text-shadow:
    3px 3px 0 var(--nm-dusk-ink),
    0 0 20px rgba(245, 200, 66, 0.3);
  text-align: center;
}

.note-maze-levels-screen .nm-levels-hint {
  margin: 0 0 18px;
  font-size: clamp(9px, 2.4vmin, 11px);
  color: var(--nm-dusk-lilac);
  text-shadow: 1px 1px 0 rgba(42, 31, 61, 0.6);
  letter-spacing: 0.06em;
}

.note-maze-levels-screen .nm-levels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2vmin, 12px);
  width: min(100%, 420px);
  margin: 0 auto 20px;
  flex: 1;
  align-content: start;
}

.note-maze-levels-screen .nm-level-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 72px;
  padding: 14px 10px;
  font-family: 'Press Start 2P', monospace;
  text-align: center;
  cursor: pointer;
  color: var(--nm-dusk-ink);
  background: linear-gradient(180deg, #f5d060 0%, var(--nm-dusk-amber) 100%);
  border: 3px solid var(--nm-dusk-ink);
  box-shadow: 4px 4px 0 rgba(42, 31, 61, 0.55);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.note-maze-levels-screen .nm-level-card:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(42, 31, 61, 0.55);
}

.note-maze-levels-screen .nm-level-card__label {
  font-size: clamp(9px, 2.6vmin, 12px);
  line-height: 1.5;
  color: var(--nm-dusk-ink);
}

.note-maze-levels-screen .nm-levels-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12px;
  color: var(--nm-dusk-cream);
}

/* ── 遊戲面板（對齊節奏橋樑日間風格） ── */

#noteMazePanel.note-maze-panel {
  position: relative;
  overflow: hidden;
  color: #e8f8ff;
  background: linear-gradient(180deg, #7ec8e8 0%, #a8d8f0 42%, #98d898 100%);
}

#noteMazePanel .nm-panel-deco {
  display: none;
}

#noteMazePanel .nm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: clamp(6px, 1.4vmin, 10px) clamp(10px, 2vmin, 14px);
  background: rgba(42, 74, 106, 0.72);
  border-bottom: 3px solid #1a2a3a;
  box-shadow: 0 3px 0 rgba(13, 26, 38, 0.3);
  flex-shrink: 0;
}

#noteMazePanel .nm-header .game-level-tag {
  margin: 0;
  font-size: clamp(12px, 3.6vmin, 18px);
  text-align: left;
}

#noteMazePanel .nm-body {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-height: 0;
  gap: clamp(10px, 2vw, 18px);
  padding: clamp(6px, 1.4vmin, 12px);
}

#noteMazePanel .nm-maze-wrap {
  flex: 0.9 1 0;
  min-width: 0;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(42, 74, 106, 0.35);
  border: 3px solid #1a2a3a;
  box-shadow: 3px 3px 0 rgba(13, 26, 38, 0.35);
  padding: clamp(6px, 1.2vmin, 10px);
}

.nm-maze-slot {
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

.nm-maze-scale {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#noteMazeCanvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.nm-joy-layer {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  overflow: visible;
}

.nm-joystick {
  position: absolute;
  width: 72px;
  height: 72px;
  touch-action: none;
  user-select: none;
  pointer-events: auto;
}

.nm-joystick[hidden] {
  display: none !important;
}

.nm-joystick__canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 4px rgba(42, 31, 61, 0.45));
}

#noteMazePanel .nm-sidebar {
  flex: 0 0 min(308px, 42vw);
  width: min(308px, 42vw);
  min-width: 0;
}

#noteMazePanel .nm-card {
  background: rgba(26, 42, 58, 0.35);
  border: 2px solid rgba(168, 216, 240, 0.22);
  box-shadow: 2px 2px 0 rgba(13, 26, 38, 0.25);
  padding: 0.5rem 0.55rem;
  color: #e8f8ff;
  font-style: normal;
}

#noteMazePanel .nm-question-head h3,
#noteMazePanel .nm-card h3 {
  margin: 0 0 0.35rem;
  font-family: inherit;
  font-size: clamp(10px, 2.8vmin, 13px);
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 0 #2a6a8a;
  text-transform: none;
  letter-spacing: 0;
}

#noteMazePanel .nm-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(10px, 2.6vmin, 12px);
  color: #e8f8ff;
  padding: 0.2rem 0.45rem;
  background: rgba(26, 42, 58, 0.65);
  border: 2px solid #1a2a3a;
  box-shadow: 2px 2px 0 rgba(13, 26, 38, 0.35);
}

#noteMazePanel .nm-timer--warn {
  color: #ffd0d0;
  background: rgba(140, 50, 50, 0.65);
  animation: nm-timer-pulse 0.8s ease-in-out infinite;
}

#noteMazePanel .nm-timer--out {
  color: #b0c8d8;
  text-decoration: line-through;
}

@keyframes nm-timer-pulse {
  50% { opacity: 0.65; }
}

#noteMazePanel .nm-question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

#noteMazePanel .nm-question-host {
  margin: 0.25rem 0 0.4rem;
  overflow: visible;
}

#noteMazePanel .nm-question-meta {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
  font-size: 0.85em;
}

#noteMazePanel .nm-question-ts {
  font-weight: 800;
  color: #fff;
  text-shadow: 1px 1px 0 #2a6a8a;
}

#noteMazePanel .nm-question-title {
  color: #e8f8ff;
  opacity: 0.9;
}

#noteMazePanel .nm-question-bar {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 48px;
  height: 48px;
  background: rgba(42, 74, 106, 0.88);
  border: 3px solid #1a2a3a;
  box-shadow: 3px 3px 0 rgba(13, 26, 38, 0.35);
  box-sizing: border-box;
}

/* 統一 segment grid：拍界線 + 音符/? 同一層 */
#noteMazePanel .nm-question-strip {
  --slot-count: 16;
  --beat-count: 4;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--slot-count), minmax(0, 1fr));
  width: 100%;
  height: 48px;
  box-sizing: border-box;
}

#noteMazePanel .nm-question-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  border-left: 3px solid rgba(232, 248, 255, 0.65);
  border-right: 3px solid rgba(232, 248, 255, 0.65);
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc((100% / var(--beat-count)) - 2px),
    rgba(232, 248, 255, 0.5) calc((100% / var(--beat-count)) - 2px),
    rgba(232, 248, 255, 0.5) calc(100% / var(--beat-count))
  );
}

#noteMazePanel .nm-seg-cell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  box-sizing: border-box;
  margin: 4px 1px;
}

#noteMazePanel .nm-seg-cell .nm-notation-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

#noteMazePanel .nm-seg-cell .nm-notation-chip .notation-svg--nm-chip {
  width: 1.35rem;
  height: 1.55rem;
}

#noteMazePanel .nm-seg-cell .nm-notation-chip .notation-svg {
  --notation-fill: #e8f8ff;
  --notation-stem: #e8f8ff;
  --notation-beam: #e8f8ff;
}

#noteMazePanel .nm-seg-cell .nm-notation-chip .nm-notation-smufl,
#noteMazePanel .nm-seg-cell .nm-notation-fallback {
  fill: #e8f8ff;
  color: #e8f8ff;
}

#noteMazePanel .nm-seg-cell--gap {
  border: 2px dashed rgba(168, 216, 240, 0.7);
  border-radius: 4px;
  background: rgba(26, 42, 58, 0.4);
  font-weight: 800;
  font-size: clamp(0.8rem, 2.6vmin, 1rem);
  line-height: 1;
  color: #e8f8ff;
  text-shadow: 1px 1px 0 #1a2a3a;
}

#noteMazePanel .nm-seg-cell--filled {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

#noteMazePanel .nm-seg-cell--pop {
  animation: nm-gap-fill 0.52s ease-out;
}

#noteMazePanel .nm-seg-cell--burst {
  animation: nm-gap-burst 0.48s ease-out;
}

#noteMazePanel .nm-question-progress {
  margin-top: 0.3rem;
  font-size: 0.85em;
  color: rgba(232, 248, 255, 0.85);
}

#noteMazePanel .nm-question-prompt,
#noteMazePanel #noteMazePrompt {
  margin: 0;
  line-height: 1.45;
  font-size: 0.9em;
  color: rgba(232, 248, 255, 0.92);
}

.nm-question-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.35rem 0;
}

.nm-question-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  background: rgba(255, 244, 224, 0.5);
  border: 2px solid var(--nm-dusk-panel-border);
  font-family: 'Bravura', 'Bravura Text', serif;
  font-size: 1rem;
  color: #1a1a1a;
}

.nm-question-slot--gap {
  border: 2px dashed var(--nm-dusk-ink);
  color: #1a1a1a;
  background: rgba(255, 244, 224, 0.35);
}

.nm-question-slot--filled {
  box-shadow: none;
}

#noteMazePanel .nm-question-host .notation-seg.nm-gap-pop,
#noteMazePanel .nm-seg-cell--pop {
  animation: nm-gap-fill 0.52s ease-out;
}

#noteMazePanel .nm-question-host .notation-seg.nm-gap-burst,
#noteMazePanel .nm-seg-cell--burst {
  animation: nm-gap-burst 0.48s ease-out;
}

@keyframes nm-gap-fill {
  0% { transform: scale(0.4); opacity: 0.2; filter: brightness(2); }
  60% { transform: scale(1.12); opacity: 1; filter: brightness(1.3); }
  100% { transform: scale(1); opacity: 1; filter: none; }
}

@keyframes nm-gap-burst {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); filter: hue-rotate(-30deg) brightness(1.4); }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.nm-inv-chip--burn {
  animation: nm-chip-burn 0.48s ease-out forwards;
}

@keyframes nm-chip-burn {
  0% { transform: scale(1); opacity: 1; filter: none; }
  35% { transform: scale(1.15); filter: brightness(1.6) saturate(2); }
  100% { transform: scale(0.2); opacity: 0; filter: grayscale(1) blur(2px); }
}

#noteMazePanel > *:not(.nm-panel-deco) {
  position: relative;
  z-index: 1;
}

#noteMazePanel #noteMazeInventory {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-style: normal;
  min-height: 2rem;
}

#noteMazePanel .nm-inv-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0 0.2rem 0.2rem 0;
  background: rgba(232, 248, 255, 0.88);
  border: 2px solid #1a2a3a;
  font-size: 1.2rem;
}

#noteMazePanel .nm-inv-empty {
  color: rgba(232, 248, 255, 0.7);
  font-style: italic;
}

#noteMazePanel .nm-deliver-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0;
  color: #e8f8ff;
}

.nm-notation-chip .notation-svg--nm-chip {
  width: 1.35rem;
  height: 1.55rem;
  display: block;
}

.nm-notation-chip .notation-svg {
  --notation-fill: #1a1a1a;
  --notation-stem: #1a1a1a;
  --notation-beam: #1a1a1a;
}

.nm-notation-chip .nm-notation-smufl,
.nm-notation-fallback {
  fill: #1a1a1a;
  color: #1a1a1a;
  font-family: 'Bravura', 'Bravura Text', serif;
}

#noteMazePanel .nm-deliver-row.nm-deliver-done {
  opacity: 0.55;
  text-decoration: line-through;
}

.nm-deliver-sym {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
}

.nm-deliver-sym .notation-svg--nm-chip {
  width: 1.2rem;
  height: 1.35rem;
}

#noteMazePanel #noteMazeMessage {
  min-height: 2.4em;
  color: #fff3a0;
  line-height: 1.35;
  font-size: 0.9em;
  text-shadow: 1px 1px 0 #2a6a8a;
}

#noteMazePanel .nm-card--move h3 {
  text-align: center;
  margin-bottom: 0.35rem;
}

#noteMazePanel .nm-dpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, minmax(48px, 1fr));
  gap: clamp(4px, 1vmin, 6px);
  width: min(100%, 168px);
  margin: 0 auto;
  touch-action: none;
  user-select: none;
}

#noteMazePanel .nm-dpad__btn {
  font-size: clamp(14px, 3.8vmin, 18px);
  line-height: 1;
  min-height: clamp(48px, 11vmin, 56px);
  padding: 0;
  margin: 0;
}

#noteMazePanel .nm-dpad__btn--up {
  grid-column: 2;
  grid-row: 1;
}

#noteMazePanel .nm-dpad__btn--left {
  grid-column: 1;
  grid-row: 2;
}

#noteMazePanel .nm-dpad__btn--right {
  grid-column: 3;
  grid-row: 2;
}

#noteMazePanel .nm-dpad__btn--down {
  grid-column: 2;
  grid-row: 3;
}

#noteMazePanel .nm-dpad__btn.is-pressed {
  transform: translate(2px, 2px);
}

#noteMazePanel .nm-actions {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.4vmin, 10px);
}

#noteMazePanel .nm-actions .btn-tap {
  min-height: clamp(40px, 10vmin, 56px);
  font-size: clamp(14px, 4vmin, 18px);
}

#noteMazePanel #noteMazeBtnNext[hidden] {
  display: none;
}

@media (max-width: 720px) and (orientation: portrait) {
  #noteMazePanel .nm-body {
    flex-direction: column;
    padding: 0.45rem;
    gap: 0.45rem;
  }

  #noteMazePanel .nm-maze-wrap {
    flex: 1 1 auto;
    width: 100%;
    min-height: min(50dvh, 52vh);
    max-height: min(62dvh, 65vh);
  }

  #noteMazePanel .nm-sidebar {
    width: 100%;
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem;
  }

  #noteMazePanel .nm-sidebar .nm-card {
    flex: 1 1 8.5rem;
    padding: 0.4rem 0.5rem;
  }

  #noteMazePanel .nm-sidebar .nm-card--question {
    flex: 1 1 100%;
  }

  #noteMazePanel .nm-sidebar .nm-card--move {
    flex: 1 1 100%;
    max-width: none;
  }

  #noteMazePanel .nm-dpad {
    width: min(100%, 200px);
  }

  #noteMazePanel .nm-question-prompt {
    font-size: 0.85em;
    line-height: 1.35;
    margin: 0.2rem 0 0;
  }

  #noteMazePanel .nm-actions {
    flex-direction: column;
    gap: 0.35rem;
  }
}
