@charset "UTF-8";
/**
 * ==========================================================================
 * 單元 4 子分頁 3：九九乘法冒險闖關（全螢幕童話繪本小遊戲樣式）
 * 專為 iPad 平板觸控、粉紅小兔主角與繪本場景打造
 * ==========================================================================
 */

/* 放寬單元 4 子分頁導覽列以完美容納 3 個分頁按鈕（免水平捲動） */
#panel-mul .unit-sub-nav {
  max-width: 820px;
}

#panel-mul .unit-sub-tabs {
  flex-wrap: wrap;
  justify-content: center;
  border-radius: 26px;
}

/* ---------------- 內頁遊戲啟動封面卡 ---------------- */
.mqst-launcher-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(145deg, #fffdf7 0%, #fef3c7 100%);
  border: 3px solid var(--ink);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 6px 6px 0 var(--shadow-ink);
  margin-bottom: 28px;
}

.mqst-launcher-art {
  position: relative;
  border-radius: 20px;
  border: 3px solid var(--ink);
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--shadow-ink);
  aspect-ratio: 16 / 9;
  background: #bae6fd;
}

.mqst-launcher-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mqst-launcher-bunny {
  position: absolute;
  left: 14px;
  bottom: 10px;
  width: 86px;
  height: 86px;
  filter: drop-shadow(0 4px 0 rgba(51, 43, 34, 0.25));
}

.mqst-launcher-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.mqst-launcher-pill {
  padding: 4px 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #fce7f3;
  color: #9d174d;
  font-size: 13px;
  font-weight: 800;
}

.mqst-launcher-info h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  text-wrap: balance;
}

.mqst-launcher-info p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.mqst-launcher-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: "Baloo 2", "Noto Sans TC", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.mqst-launcher-stats span {
  padding: 5px 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #fff;
}

.mqst-play-big-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 26px;
  border-radius: 20px;
  border: 3px solid var(--ink);
  background: linear-gradient(180deg, #fb7185 0%, #e11d48 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 0 #881337, 4px 6px 0 var(--shadow-ink);
  transition: transform .08s ease, box-shadow .08s ease;
}

.mqst-play-big-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #881337, 2px 3px 0 var(--shadow-ink);
}

/* ---------------- 全螢幕沉浸式遊戲機台 ---------------- */
.mqst-arcade-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 950;
  background: #e0f7fa;
  flex-direction: column;
  overflow: hidden;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.mqst-arcade-overlay.is-open {
  display: flex;
}

.mqst-screen {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---------------- 遊戲通用懸浮 HUD 控制列 ---------------- */
.mqst-hud-bar,
.mqst-battle-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(255, 253, 246, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
  z-index: 20;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.mqst-hud-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mqst-hud-avatar {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: #fce7f3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--shadow-ink);
  transition: transform .1s ease, box-shadow .1s ease;
}

.mqst-hud-avatar:hover {
  transform: translateY(-1px) scale(1.04);
}

.mqst-hud-avatar:active {
  transform: translateY(1px);
  box-shadow: 1px 1px 0 var(--shadow-ink);
}

.mqst-hud-avatar:focus-visible {
  outline: 3px solid #ec4899;
  outline-offset: 2px;
}

.mqst-hud-avatar svg {
  width: 36px;
  height: 36px;
}

.mqst-hud-counters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mqst-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-family: "Baloo 2", "Noto Sans TC", sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  background: #fff;
  box-shadow: 2px 2px 0 var(--shadow-ink);
}

.mqst-hud-pill.star   { background: #fef9c3; }
.mqst-hud-pill.gem    { background: #e0f2fe; }
.mqst-hud-pill.sprite { background: #fce7f3; }

.mqst-hud-actions,
.mqst-battle-right-hud {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mqst-hud-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 42px;
  min-height: 42px;
  padding: 5px 10px;
  border-radius: 13px;
  border: 2.5px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--shadow-ink);
  transition: transform .08s ease, box-shadow .08s ease;
}

.mqst-hud-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--shadow-ink);
}

.mqst-hud-btn.wardrobe { background: #fce7f3; color: #9d174d; position: relative; }
.mqst-hud-btn.wardrobe.has-new {
  background: linear-gradient(180deg, #fbcfe8 0%, #f472b6 100%);
  color: #500724;
  border-color: #9d174d;
}
.mqst-hud-btn.wardrobe.has-new::after {
  content: "NEW";
  position: absolute;
  top: -8px;
  right: -6px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: #fde047;
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}
.mqst-hud-btn.dex      { background: #ede9fe; color: #4c1d95; }
.mqst-hud-btn.rescue   { background: #f1f5f9; color: var(--ink-soft); }
.mqst-hud-btn.rescue.has-rescue { background: #fee2e2; color: #991b1b; border-color: #991b1b; }
.mqst-hud-btn.settings { background: #fef3c7; }
.mqst-hud-btn.helper   { background: #dbeafe; color: #1e40af; }
.mqst-hud-btn.back     { background: #dcfce7; color: #166534; }
.mqst-hud-btn.exit     { background: #fff1f2; color: #9f1239; }
.mqst-hud-btn.audio-mini { background: #f0fdf4; color: #166534; padding: 6px 11px; }
.mqst-hud-btn.audio-mini.icon-only { padding: 6px 10px; }
.mqst-hud-btn.audio-mini.is-off { background: #f1f5f9; color: #64748b; opacity: 0.86; }
.mqst-hud-btn.audio-mini svg { width: 18px; height: 18px; flex-shrink: 0; }

.mqst-preview-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dcfce7;
  border: 2px solid #15803d;
  color: #166534;
  font-size: 12.5px;
  font-weight: 800;
}

/* ---------------- 視圖 1：繪本全景世界大地圖 ---------------- */
.mqst-world-viewport {
  position: relative;
  flex: 1;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 50%, #99f6e4 100%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 980px) {
  .mqst-world-viewport {
    justify-content: center;
  }
}

.mqst-world-canvas {
  position: relative;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  min-width: 940px;
  margin: 0 auto;
  flex-shrink: 0;
  user-select: none;
}

.mqst-world-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mqst-cloud {
  position: absolute;
  font-size: clamp(28px, 3.5vw, 44px);
  opacity: 0.78;
  pointer-events: none;
}
.mqst-cloud-btn {
  background: transparent;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  pointer-events: auto;
  z-index: 6;
  line-height: 1;
}
.mqst-cloud-btn:focus-visible {
  outline: 3px solid #fde047;
  border-radius: 16px;
}
.mqst-cloud-1 { left: 18%; top: 7%; }
.mqst-cloud-2 { left: 62%; top: 9%; }

@media (prefers-reduced-motion: no-preference) {
  .mqst-cloud-1 { animation: mqstCloudFloat 9s ease-in-out infinite; }
  .mqst-cloud-2 { animation: mqstCloudFloat 12s ease-in-out infinite reverse; }
}

@keyframes mqstCloudFloat {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(22px); }
}

.mqst-path-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mqst-island-signs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mqst-island-sign {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 4px 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: rgba(255, 253, 246, 0.94);
  box-shadow: 2px 3px 0 rgba(51, 43, 34, 0.3);
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
}

.mqst-nodes-layer {
  position: absolute;
  inset: 0;
}

.mqst-map-node {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 66px;
  min-height: 66px;
  padding: 5px 8px;
  border-radius: 22px;
  border: 3px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--shadow-ink);
  transition: transform .1s ease, box-shadow .1s ease;
  z-index: 6;
}

.mqst-map-node:active:not(:disabled) {
  transform: translate(-50%, calc(-50% + 3px));
  box-shadow: 0 2px 0 var(--shadow-ink);
}

.mqst-map-node.is-boss {
  min-width: 74px;
  min-height: 74px;
  background: linear-gradient(180deg, #ffe4e6 0%, #fda4af 100%);
  border-color: #9f1239;
}

.mqst-boss-sprite-tag {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1.5px solid #9f1239;
  background: #fef08a;
  color: #881337;
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 1.5px 2px 0 rgba(51, 43, 34, 0.25);
  pointer-events: none;
}

.mqst-map-node.is-current {
  background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);
  box-shadow: 0 0 0 5px rgba(250, 204, 21, 0.5), 0 5px 0 var(--shadow-ink);
  z-index: 8;
}

.mqst-map-node.is-cleared {
  background: linear-gradient(180deg, #dcfce7 0%, #86efac 100%);
}

.mqst-map-node.is-locked {
  background: rgba(241, 245, 249, 0.85);
  border-style: dashed;
  color: #64748b;
  box-shadow: none;
  cursor: not-allowed;
}

.mqst-map-node-id {
  font-family: "Baloo 2", sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.05;
}

.mqst-map-node-stars {
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.5px;
}

.mqst-map-node-title {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
}

/* 粉紅小兔子地圖主角與守護精靈跟班 */
.mqst-bunny-avatar {
  position: absolute;
  width: 66px;
  height: 66px;
  margin-top: -40px;
  transform: translate(-50%, -105%);
  z-index: 12;
  pointer-events: none;
  filter: drop-shadow(0 5px 0 rgba(51, 43, 34, 0.3));
}

.mqst-partner-map-avatar {
  position: absolute;
  width: 46px;
  height: 46px;
  margin-top: -32px;
  transform: translate(18%, -92%);
  z-index: 11;
  pointer-events: none;
  filter: drop-shadow(0 4px 0 rgba(51, 43, 34, 0.25));
}

.mqst-bunny-avatar svg,
.mqst-partner-map-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mqst-map-hint-toast {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 18px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: rgba(255, 253, 246, 0.95);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--shadow-ink);
  z-index: 15;
  white-space: nowrap;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------- 視圖 2：上下繪本戰鬥劇場 ---------------- */
.mqst-battle-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 140px;
  max-width: 440px;
}

.mqst-battle-stage-name {
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.mqst-progress-track {
  flex: 1;
  height: 16px;
  background: #f1ede4;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}

.mqst-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #34d399 0%, #facc15 100%);
  border-radius: 999px;
  transition: width .3s ease;
}

.mqst-q-counter {
  font-family: "Baloo 2", sans-serif;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.mqst-combo-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: #fff;
  font-size: 13.5px;
  font-weight: 900;
  box-shadow: 2px 2px 0 var(--shadow-ink);
}

.mqst-combo-pill.fever {
  background: linear-gradient(135deg, #fde047 0%, #fb923c 100%);
  color: #451a03;
}

/* 上半部繪本風景舞台 */
.mqst-stage-arena {
  position: relative;
  flex: 1;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 18px 10px;
  overflow: hidden;
  background: #d1fae5;
}

.mqst-stage-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
  transform-origin: center center;
}

.mqst-arena-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 48%, rgba(255, 255, 255, 0.08) 100%);
  z-index: 1;
  pointer-events: none;
}

/* 魔法木牌算式板 */
.mqst-wood-board {
  position: relative;
  z-index: 5;
  margin: 0 auto;
  width: min(560px, 100%);
  background: rgba(255, 251, 240, 0.94);
  backdrop-filter: blur(6px);
  border: 3.5px solid var(--ink);
  border-radius: 24px;
  padding: 10px 16px 12px;
  box-shadow: 0 6px 0 rgba(51, 43, 34, 0.28);
  text-align: center;
}

.mqst-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.mqst-board-tag {
  padding: 2px 11px;
  border-radius: 999px;
  background: #fef3c7;
  border: 2px solid var(--ink);
  font-size: 12.5px;
  font-weight: 900;
}

.mqst-board-speak-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: #e0f2fe;
  color: #0369a1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--shadow-ink);
}

.mqst-story-ribbon {
  background: #fffbeb;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 6px 10px;
  margin-bottom: 6px;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.4;
}

.mqst-equation-row {
  gap: 10px;
  font-size: clamp(30px, 4.5vw, 44px);
}

.mqst-board-hint {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
}

/* 角色對峙區 */
.mqst-actors-row {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: min(860px, 100%);
  margin: auto auto 0;
  padding: 0 12px clamp(56px, 11vh, 96px);
}

.mqst-hero-duo {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.mqst-hero-actor,
.mqst-partner-actor,
.mqst-enemy-actor {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mqst-partner-actor {
  z-index: 5;
}

.mqst-partner-svg {
  width: clamp(64px, 8.8vw, 84px);
  height: clamp(64px, 8.8vw, 84px);
  filter: drop-shadow(0 5px 0 rgba(51, 43, 34, 0.22)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.45));
  will-change: transform;
  transform-origin: 50% 90%;
}

.mqst-partner-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mqst-partner-speech {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-35%);
  background: #fefce8;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 2px 2px 0 rgba(51, 43, 34, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.mqst-partner-speech.visible {
  opacity: 1;
}

.mqst-partner-label {
  background: #ecfeff;
  border-color: #0e7490;
  color: #155e75;
}

.mqst-partner-skill-btn {
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--shadow-ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mqst-partner-skill-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.mqst-partner-skill-btn:disabled {
  background: #e5e7eb;
  color: #6b7280;
  border-color: #9ca3af;
  box-shadow: none;
  cursor: default;
}

.mqst-hero-aura {
  position: absolute;
  bottom: 16px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.55) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
}

.mqst-hero-aura.active {
  opacity: 1;
}

.mqst-hero-svg {
  width: clamp(92px, 13vw, 132px);
  height: clamp(92px, 13vw, 132px);
  filter: drop-shadow(0 6px 0 rgba(51, 43, 34, 0.25));
  will-change: transform;
  transform-origin: 50% 90%;
  cursor: pointer;
}

.mqst-hero-svg svg,
.mqst-enemy-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mqst-actor-label {
  padding: 2px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 900;
}

/* ---------------- 魔法光彈與命中爆破 FX 圖層 ---------------- */
.mqst-fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.mqst-projectile,
.mqst-partner-projectile {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}

.mqst-fx-bolt {
  width: 68px;
  height: 68px;
  filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.95));
}

.mqst-fx-bolt svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mqst-fx-partner-bolt {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 20%, rgba(14, 165, 233, 0.72) 64%, rgba(56, 189, 248, 0) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.9));
}

.mqst-fx-trail {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 12%, #facc15 48%, #f97316 78%, rgba(249, 115, 22, 0) 100%);
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}

.mqst-fx-impact {
  position: absolute;
  left: 0;
  top: 0;
  width: 176px;
  height: 176px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.mqst-fx-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 6px solid #f97316;
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.95);
  will-change: transform, opacity;
}

.mqst-fx-ring.shock {
  inset: -26px;
  border: 5px dashed #fde047;
  box-shadow: 0 0 28px rgba(250, 204, 21, 0.95), 0 0 42px rgba(244, 63, 94, 0.75);
}

.mqst-fx-ring.inner {
  inset: 28px;
  border-width: 5px;
  border-color: #ffffff;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.9);
}

.mqst-fx-flash {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 124px;
  height: 124px;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

.mqst-fx-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  margin-top: -8px;
  border-radius: 4px;
  background: #facc15;
  border: 2px solid #ea580c;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.95);
  will-change: transform, opacity;
}

.mqst-fx-spark:nth-child(even) {
  background: #fb7185;
  border-radius: 50%;
}

.mqst-fx-spark:nth-child(3n) {
  background: #38bdf8;
  border-color: #0284c7;
}

.mqst-fx-spark:nth-child(5n) {
  background: #a855f7;
  border-color: #7e22ce;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
}

/* ---------------- 最後一擊必殺技 FX 樣式 ---------------- */
.mqst-ult-backdrop {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background: radial-gradient(ellipse at 55% 60%, rgba(49, 46, 129, 0.38) 0%, rgba(15, 23, 42, 0.86) 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: opacity;
}

.mqst-ult-speedlines {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 220%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(
    from 0deg,
    rgba(250, 204, 21, 0.24) 0deg 4deg,
    transparent 4deg 11deg,
    rgba(56, 189, 248, 0.16) 11deg 14deg,
    transparent 14deg 24deg
  );
  -webkit-mask-image: radial-gradient(circle, transparent 16%, rgba(0, 0, 0, 0.92) 55%, rgba(0, 0, 0, 0.5) 100%);
  mask-image: radial-gradient(circle, transparent 16%, rgba(0, 0, 0, 0.92) 55%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
  will-change: transform, opacity;
}

.mqst-ult-flash-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 62%, rgba(255, 255, 255, 0.92) 0%, rgba(253, 224, 71, 0.55) 38%, rgba(249, 115, 22, 0) 78%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 11;
  will-change: opacity;
}

.mqst-ult-magic-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 170px;
  height: 170px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: drop-shadow(0 0 16px rgba(250, 204, 21, 0.95));
  z-index: 3;
  will-change: transform, opacity;
}

.mqst-ult-magic-ring svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mqst-hero-afterimage {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(92px, 13vw, 132px);
  height: clamp(92px, 13vw, 132px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: brightness(1.6) drop-shadow(0 0 18px #38bdf8) saturate(1.4);
  z-index: 4;
  will-change: transform, opacity;
}

.mqst-hero-afterimage svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mqst-ult-cutin {
  position: absolute;
  left: 50%;
  top: 32%;
  transform: translate(-50%, -50%) skewX(-8deg);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 26px 8px 12px;
  border-radius: 18px;
  border: 4px solid #fde047;
  background: linear-gradient(115deg, #312e81 0%, #be123c 48%, #f97316 100%);
  color: #ffffff;
  box-shadow: 0 8px 0 rgba(15, 23, 42, 0.68), 0 0 34px rgba(250, 204, 21, 0.9);
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 14;
  will-change: transform, opacity;
}

.mqst-ult-cutin-shine {
  position: absolute;
  top: -30%;
  left: -40%;
  width: 44px;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: skewX(20deg);
  pointer-events: none;
  will-change: transform;
}

.mqst-ult-cutin-hero {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 14px;
  border: 3px solid #ffffff;
  background: radial-gradient(circle, #fef08a 0%, #fb7185 100%);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.85);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: skewX(8deg);
}

.mqst-ult-cutin-hero svg {
  width: 58px;
  height: 58px;
  display: block;
}

.mqst-ult-cutin-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  transform: skewX(8deg);
}

.mqst-ult-cutin-tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: #fde047;
  color: #451a03;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 2px 0 rgba(69, 26, 3, 0.35);
}

.mqst-ult-cutin-title {
  font-family: "Baloo 2", "Noto Sans TC", sans-serif;
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #ffffff;
  -webkit-text-stroke: 1px #451a03;
  text-shadow: 0 3px 0 #451a03, 0 0 16px rgba(254, 240, 138, 0.9);
}

.mqst-ult-sky-rift {
  position: absolute;
  left: 0;
  top: 0;
  width: 220px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #ffffff 12%, #fde047 38%, #a855f7 72%, rgba(168, 85, 247, 0) 100%);
  box-shadow: 0 0 32px rgba(250, 204, 21, 0.95), 0 0 56px rgba(168, 85, 247, 0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: transform, opacity;
}

.mqst-ult-meteor {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: drop-shadow(0 0 14px rgba(249, 115, 22, 0.95));
  will-change: transform, opacity;
}

.mqst-ult-meteor.big {
  width: 118px;
  height: 118px;
  filter: drop-shadow(0 0 24px rgba(250, 204, 21, 1)) drop-shadow(0 0 38px rgba(239, 68, 68, 0.95));
}

.mqst-ult-meteor svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
}

.mqst-ult-meteor-tail {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 204, 21, 0.9) 35%, rgba(249, 115, 22, 0.45) 70%, rgba(249, 115, 22, 0) 100%);
  transform-origin: 0 50%;
  transform: translate(0, -50%) rotate(-135deg);
  z-index: 1;
}

.mqst-ult-meteor.big .mqst-ult-meteor-tail {
  width: 210px;
  height: 40px;
  background: linear-gradient(90deg, #ffffff 0%, #fde047 26%, #fb7185 58%, rgba(168, 85, 247, 0) 100%);
}

.mqst-ult-beam {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform-origin: 0 0;
  will-change: transform, opacity;
}

.mqst-ult-beam-orb {
  position: absolute;
  left: 0;
  top: 0;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 25%, #fde047 52%, #ec4899 78%, rgba(56, 189, 248, 0) 100%);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.98), 0 0 54px rgba(236, 72, 153, 0.92);
  z-index: 3;
}

.mqst-ult-beam-aura {
  position: absolute;
  left: 0;
  top: -54px;
  width: 540px;
  height: 108px;
  border-radius: 999px;
  background: linear-gradient(180deg,
    rgba(244, 63, 94, 0) 0%,
    rgba(250, 204, 21, 0.45) 28%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(56, 189, 248, 0.45) 72%,
    rgba(168, 85, 247, 0) 100%);
  transform-origin: 0 50%;
  z-index: 1;
  will-change: transform, opacity;
}

.mqst-ult-beam-shaft {
  position: absolute;
  left: 0;
  top: -40px;
  width: 540px;
  height: 80px;
  border-radius: 999px;
  background: linear-gradient(180deg,
    rgba(244, 63, 94, 0.95) 0%,
    rgba(251, 146, 60, 0.96) 18%,
    rgba(250, 204, 21, 0.98) 36%,
    rgba(52, 211, 153, 0.98) 54%,
    rgba(56, 189, 248, 0.96) 74%,
    rgba(168, 85, 247, 0.95) 100%);
  box-shadow: 0 0 34px rgba(250, 204, 21, 0.95), 0 0 58px rgba(56, 189, 248, 0.9);
  transform-origin: 0 50%;
  display: flex;
  align-items: center;
  z-index: 2;
  will-change: transform, opacity;
}

.mqst-ult-beam-core {
  width: 100%;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 18px #ffffff;
}

.mqst-ult-beam-ring {
  position: absolute;
  left: 0;
  top: -54px;
  width: 24px;
  height: 108px;
  border-radius: 50%;
  border: 5px solid #ffffff;
  box-shadow: 0 0 18px #fde047, 0 0 28px #38bdf8;
  opacity: 0;
  z-index: 4;
  will-change: transform, opacity;
}

.mqst-ult-target-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 150px;
  height: 54px;
  border-radius: 50%;
  border: 4px dashed #ef4444;
  background: radial-gradient(ellipse, rgba(239, 68, 68, 0.42) 0%, rgba(250, 204, 21, 0.16) 65%, transparent 100%);
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.85);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 3;
  will-change: transform, opacity;
}

.mqst-ult-shockwave {
  position: absolute;
  left: 0;
  top: 0;
  width: 220px;
  height: 76px;
  border-radius: 50%;
  border: 7px solid #fde047;
  box-shadow: 0 0 28px #f97316, inset 0 0 18px rgba(255, 255, 255, 0.85);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 9;
  will-change: transform, opacity;
}

.mqst-ult-carrot {
  position: absolute;
  left: 0;
  top: 0;
  width: 132px;
  height: 168px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: drop-shadow(0 0 24px rgba(249, 115, 22, 0.98)) drop-shadow(0 0 38px rgba(250, 204, 21, 0.9));
  z-index: 10;
  will-change: transform, opacity;
}

.mqst-ult-carrot svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mqst-ult-carrot-chip {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(249, 115, 22, 0.85));
  z-index: 11;
  will-change: transform, opacity;
}

.mqst-ult-slash {
  position: absolute;
  left: 0;
  top: 0;
  width: 256px;
  height: 256px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: transform, opacity;
}

.mqst-ult-slash-blade,
.mqst-ult-slash-cross {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

.mqst-ult-slash-blade {
  width: 230px;
  height: 230px;
  filter: drop-shadow(0 0 16px rgba(250, 204, 21, 0.98));
}

.mqst-ult-slash-blade.b {
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.98));
}

.mqst-ult-slash-blade.c {
  filter: drop-shadow(0 0 16px rgba(236, 72, 153, 0.98));
}

.mqst-ult-slash-blade.d {
  filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.98));
}

.mqst-ult-slash-cross.sub {
  width: 210px;
  height: 210px;
  filter: drop-shadow(0 0 22px rgba(56, 189, 248, 0.98));
}

.mqst-ult-slash-cross.main {
  width: 170px;
  height: 170px;
  filter: drop-shadow(0 0 22px rgba(249, 115, 22, 1));
}

.mqst-next-big-btn.ult-waiting {
  background: linear-gradient(135deg, #fde68a 0%, #fbcfe8 100%);
  color: #7c2d12;
  opacity: 0.88;
  cursor: wait;
  box-shadow: 0 2px 0 rgba(51, 43, 34, 0.25);
}

.mqst-enemy-hp-card {
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 4px 10px;
  min-width: 148px;
  text-align: center;
  box-shadow: 2px 2px 0 rgba(51, 43, 34, 0.25);
}

.mqst-enemy-name {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: #881337;
  margin-bottom: 3px;
}

.mqst-boss-shield-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1.5px solid #3b82f6;
  font-size: 11.5px;
  font-weight: 900;
  color: #1d4ed8;
}

.mqst-shield-pip {
  font-size: 13px;
  line-height: 1;
  transition: opacity .2s ease, transform .2s ease;
}

.mqst-shield-pip.broken {
  opacity: 0.25;
  filter: grayscale(1);
  transform: scale(0.82);
}

.mqst-shield-txt.broken-all {
  color: #dc2626;
}

.mqst-boss-hp-bar {
  display: flex;
  gap: 4px;
}

.mqst-hp-pip {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: #fb7185;
  transition: background-color .2s ease, opacity .2s ease;
}

.mqst-hp-pip.lost {
  background: #e2e8f0;
  opacity: 0.45;
}

.mqst-enemy-speech {
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 800;
  max-width: 240px;
  text-align: center;
  box-shadow: 2px 2px 0 rgba(51, 43, 34, 0.2);
}

.mqst-enemy-svg {
  width: clamp(94px, 13.5vw, 138px);
  height: clamp(94px, 13.5vw, 138px);
  filter: drop-shadow(0 6px 0 rgba(51, 43, 34, 0.25));
  will-change: transform;
  transform-origin: 50% 90%;
  cursor: pointer;
}

/* GSAP 未載入時的離線待機呼吸動畫降級 */
@keyframes mqst-idle-bob {
  0%, 100% { transform: translateY(0) scaleY(0.97) scaleX(1.02); }
  50%      { transform: translateY(-6px) scaleY(1.03) scaleX(0.98); }
}

@keyframes mqst-idle-float {
  0%, 100% { transform: translateY(-2px) rotate(-3deg); }
  50%      { transform: translateY(-9px) rotate(3deg); }
}

.mqst-stage-arena.no-gsap-idle .mqst-hero-svg,
.mqst-stage-arena.no-gsap-idle .mqst-enemy-svg {
  animation: mqst-idle-bob 1.4s ease-in-out infinite;
}

.mqst-stage-arena.no-gsap-idle .mqst-partner-svg {
  animation: mqst-idle-float 1.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .mqst-stage-arena.no-gsap-idle .mqst-hero-svg,
  .mqst-stage-arena.no-gsap-idle .mqst-enemy-svg,
  .mqst-stage-arena.no-gsap-idle .mqst-partner-svg {
    animation: none;
  }
}

.mqst-hit-callout {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: #fef08a;
  color: #9f1239;
  font-family: "Baloo 2", "Noto Sans TC", sans-serif;
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 12;
}

.mqst-hit-callout.is-ult {
  padding: 6px 18px;
  border: 3.5px solid #ffffff;
  background: linear-gradient(135deg, #fde047 0%, #f97316 55%, #e11d48 100%);
  color: #ffffff;
  font-size: clamp(22px, 3vw, 28px);
  text-shadow: 0 2px 0 #451a03;
  box-shadow: 0 5px 0 rgba(51, 43, 34, 0.45), 0 0 26px rgba(250, 204, 21, 0.95);
}

/* 懸浮半透明積木提示泡泡 */
.mqst-helper-bubble {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 24px));
  max-height: 76%;
  overflow-y: auto;
  background: rgba(255, 253, 246, 0.96);
  backdrop-filter: blur(8px);
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(51, 43, 34, 0.26);
  z-index: 18;
}

.mqst-helper-bubble.open {
  display: block;
}

.mqst-helper-bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 900;
  font-size: 14.5px;
  margin-bottom: 8px;
}

.mqst-helper-close {
  min-height: 38px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #fee2e2;
  color: #991b1b;
  font-weight: 800;
  cursor: pointer;
}

.mqst-stage-toast {
  position: relative;
  z-index: 6;
  margin: 0 auto;
  font-size: 14.5px;
  font-weight: 900;
  min-height: 24px;
  text-align: center;
  padding: 2px 14px;
  border-radius: 999px;
}

.mqst-stage-toast.good {
  background: #dcfce7;
  border: 2px solid #15803d;
  color: #166534;
}

.mqst-stage-toast.bad {
  background: #fee2e2;
  border: 2px solid #b91c1c;
  color: #991b1b;
}

.mqst-stage-toast.hint {
  background: #fef9c3;
  border: 2px solid #d97706;
  color: #92400e;
}

/* 下半部童趣遊戲控制台（固定最小高度，避免出題與攻擊切換時跳動） */
.mqst-console-dock {
  box-sizing: border-box;
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
  border-top: 3.5px solid var(--ink);
  padding: 12px 16px 14px;
  min-height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  flex-shrink: 0;
}

.mqst-choices-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.mqst-choice-bubble {
  min-height: 76px;
  padding: 10px 14px;
  border-radius: 22px;
  border: 3px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  font-family: "Baloo 2", "Noto Sans TC", sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--shadow-ink);
  transition: transform .08s ease, box-shadow .08s ease;
}

.mqst-choice-bubble:nth-child(1) { background: #fffbeb; }
.mqst-choice-bubble:nth-child(2) { background: #e0f2fe; }
.mqst-choice-bubble:nth-child(3) { background: #fce7f3; }
.mqst-choice-bubble:nth-child(4) { background: #dcfce7; }

.mqst-choice-bubble:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--shadow-ink);
}

.mqst-choice-bubble.is-correct {
  background: #34d399;
  color: #064e3b;
  border-color: #065f46;
}

.mqst-choice-bubble.is-wrong {
  background: #fecaca;
  color: #991b1b;
  opacity: 0.65;
}

/* 專屬彩色玩具數字鍵盤（6×2 寬屏等高佈局，不遮擋上方小兔子） */
.mqst-toy-keypad {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
}

.mqst-toy-keys-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(114px, 1.35fr);
  grid-auto-rows: 54px;
  gap: 8px;
}

.mqst-toy-key {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 54px;
  padding: 0 8px;
  border-radius: 16px;
  border: 2.5px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  font-family: "Baloo 2", "Noto Sans TC", sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--shadow-ink);
  transition: transform .08s ease, box-shadow .08s ease;
}

.mqst-toy-key:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--shadow-ink);
}

.mqst-toy-key.k1, .mqst-toy-key.k6 { background: #fef08a; }
.mqst-toy-key.k2, .mqst-toy-key.k7 { background: #bae6fd; }
.mqst-toy-key.k3, .mqst-toy-key.k8 { background: #fbcfe8; }
.mqst-toy-key.k4, .mqst-toy-key.k9 { background: #bbf7d0; }
.mqst-toy-key.k5, .mqst-toy-key.k0 { background: #e9d5ff; }

.mqst-toy-key.k-back {
  background: #fed7aa;
  color: #9a3412;
  font-size: clamp(13.5px, 1.4vw, 15.5px);
}

.mqst-toy-key.k-go {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  color: #064e3b;
  font-size: clamp(13.5px, 1.4vw, 15.5px);
}

.mqst-next-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
}

.mqst-mantra-banner {
  padding: 8px 16px;
  border-radius: 16px;
  border: 2px solid var(--ink);
  background: #ffffff;
  font-size: 15.5px;
  font-weight: 800;
}

.mqst-next-big-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 10px 26px;
  border-radius: 18px;
  border: 3px solid var(--ink);
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 #1e3a8a;
}

/* ---------------- 視圖 3：勝利大舞台結算 ---------------- */
.mqst-victory-screen {
  background: radial-gradient(circle at center, #fffbeb 0%, #fde68a 60%, #fbcfe8 100%);
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow-y: auto;
}

.mqst-victory-stage {
  width: min(640px, 100%);
  background: rgba(255, 255, 255, 0.95);
  border: 3.5px solid var(--ink);
  border-radius: 28px;
  padding: 22px 20px;
  text-align: center;
  box-shadow: 7px 7px 0 var(--shadow-ink);
}

.mqst-victory-actors {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 6px;
}

.mqst-victory-bunny {
  width: 96px;
  height: 96px;
}

.mqst-victory-sprite {
  width: 86px;
  height: 86px;
}

.mqst-victory-bunny svg,
.mqst-victory-sprite svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mqst-result-stars {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 46px;
  margin-bottom: 6px;
}

.mqst-star-item {
  display: inline-block;
  filter: grayscale(1) opacity(0.28);
}

.mqst-star-item.earned {
  filter: none;
}

.mqst-victory-stage h3 {
  margin: 0 0 4px;
  font-size: clamp(22px, 3vw, 28px);
  text-wrap: balance;
}

.mqst-result-sub {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 14.5px;
  text-wrap: pretty;
}

.mqst-unlock-showcase {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.mqst-unlock-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 2.5px solid var(--ink);
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  text-align: left;
  font-size: 14.5px;
  font-weight: 800;
}

.mqst-unlock-banner svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.mqst-unlock-subnote {
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid #d97706;
  color: #92400e;
  font-size: 12.5px;
  font-weight: 800;
}

.mqst-unlock-banner.is-costume {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border-color: #be185d;
  justify-content: space-between;
  flex-wrap: wrap;
}

.mqst-unlock-costume-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 210px;
}

.mqst-unlock-equip-btn {
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: #fde047;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--shadow-ink);
  flex-shrink: 0;
}

.mqst-unlock-equip-btn.equipped {
  background: #4ade80;
  color: #064e3b;
}

.mqst-unlock-equip-btn:focus-visible {
  outline: 3px solid #be185d;
  outline-offset: 2px;
}

.mqst-victory-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.mqst-vstat-pill {
  min-width: 110px;
  padding: 8px 14px;
  border-radius: 16px;
  border: 2px solid var(--ink);
  background: var(--surface-dim);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mqst-vstat-pill .lbl {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
}

.mqst-vstat-pill strong {
  font-family: "Baloo 2", "Noto Sans TC", sans-serif;
  font-size: 20px;
}

.mqst-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.mqst-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 8px 16px;
  border-radius: 16px;
  border: 2.5px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--shadow-ink);
}

/* ---------------- 原生 <dialog> 圖鑑與家長設定 ---------------- */
dialog.mqst-dialog {
  box-sizing: border-box;
  width: min(760px, calc(100vw - 28px));
  max-height: min(86vh, 760px);
  max-height: min(86dvh, 760px);
  margin: auto;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--shadow-ink);
  flex-direction: column;
  overflow: hidden;
}

dialog.mqst-dialog[open] { display: flex; }
dialog.mqst-dialog:modal { overscroll-behavior: contain; }
dialog.mqst-audio-dialog { width: min(500px, calc(100vw - 28px)); }
dialog.mqst-confirm-dialog { width: min(460px, calc(100vw - 28px)); }
.mqst-confirm-notice {
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid #f59e0b;
  background: #fffbeb;
}
.mqst-confirm-lead {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.mqst-confirm-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}
.mqst-confirm-partner-tip {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px dashed #7c3aed;
  background: #f5f3ff;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
  color: #4c1d95;
}
.mqst-confirm-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}
.mqst-confirm-form button {
  min-height: 44px;
}
dialog.mqst-dialog::backdrop {
  background: rgba(51, 43, 34, 0.52);
  backdrop-filter: blur(2px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.mqst-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 14px 18px;
  border-bottom: 2px solid rgba(51, 43, 34, 0.12);
  background: #fff8eb;
}

.mqst-dialog-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mqst-dialog-ico { font-size: 22px; }
.mqst-dialog-head h3 { margin: 0; font-size: 20px; text-wrap: balance; }
.mqst-dialog-head .close-modal-btn { min-width: 44px; min-height: 44px; }

.mqst-dex-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 18px;
  background: var(--surface-dim);
  border-bottom: 2px solid rgba(51, 43, 34, 0.1);
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  scrollbar-width: none;
  scroll-snap-type: inline proximity;
}
.mqst-dex-tabs::-webkit-scrollbar { display: none; }

.mqst-dex-tab {
  position: relative;
  flex: none;
  scroll-snap-align: start;
  min-height: 44px;
  padding: 6px 14px 8px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.mqst-dex-tab:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.mqst-dex-tab[aria-selected="true"],
.mqst-dex-tab.active {
  background: var(--ink);
  color: #fff;
}

.mqst-dex-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 18px 4px;
  border-block-end: 3px solid #f59e0b;
}
/* 採用 flex-basis: auto 避免 WebKit/iPadOS Safari 在 fit-content 原生 <dialog> 中把內容區高度計算為 0 */
.mqst-dialog-body {
  padding: 16px 18px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}
.mqst-dialog-foot {
  flex-shrink: 0;
  padding: 12px 18px;
  border-top: 2px solid rgba(51, 43, 34, 0.1);
  display: flex;
  justify-content: flex-end;
  background: #fff8eb;
}

.mqst-gem-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14.5px;
  font-weight: 800;
}

.mqst-gem-grid {
  display: grid;
  grid-template-columns: 32px repeat(9, minmax(30px, 1fr));
  gap: 4px;
}

.mqst-gem-cell {
  min-height: 38px;
  border-radius: 10px;
  border: 1.5px solid rgba(51, 43, 34, 0.25);
  background: #f1ede4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Baloo 2", sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #94a3b8;
}

.mqst-gem-cell.head { background: var(--ink); color: #fff; border-color: var(--ink); }
.mqst-gem-cell.lit {
  background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
  border-color: #b45309;
  color: #78350f;
  box-shadow: 0 2px 0 #b45309;
}

button.mqst-gem-cell {
  cursor: pointer;
  padding: 0;
  transition: transform .08s ease, box-shadow .08s ease;
}

button.mqst-gem-cell:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
}

button.mqst-gem-cell:active {
  transform: translateY(1px);
  box-shadow: none;
}

.mqst-gem-inspector {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 2px solid var(--ink);
  background: #fffbeb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.mqst-gem-inspector-msg {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  flex: 1;
  min-width: 210px;
}

.mqst-gem-inspector-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mqst-gem-hunt-btn {
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
  color: #451a03;
  font-size: 13.5px;
  min-height: 44px;
}

.mqst-gem-goto-btn {
  background: #dbeafe;
  color: #1e40af;
  font-size: 13.5px;
  min-height: 44px;
}

.mqst-gem-all-done {
  font-size: 13.5px;
  font-weight: 900;
  color: #15803d;
}

.mqst-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 12px;
}

.mqst-collect-card {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 12px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  box-shadow: 2.5px 2.5px 0 var(--shadow-ink);
}

.mqst-collect-card.is-equipped {
  background: linear-gradient(135deg, #f0fdf4 0%, #fefce8 100%);
  border-color: #16a34a;
}

.mqst-equipped-tag {
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  background: #bbf7d0;
  border: 1.5px solid #16a34a;
  color: #14532d;
}

.mqst-collect-card.locked { background: var(--surface-dim); opacity: 0.72; }
.mqst-collect-card.locked .mqst-collect-art { filter: grayscale(1) opacity(0.4); }
.mqst-collect-art { width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; font-size: 38px; }
.mqst-collect-art svg { width: 72px; height: 72px; filter: drop-shadow(0 3px 0 rgba(51, 43, 34, 0.14)); }
.mqst-collect-name { font-size: 15.5px; font-weight: 900; color: var(--ink); }
.mqst-collect-desc { font-size: 12.5px; color: var(--ink-soft); margin: 0; text-wrap: pretty; }
.mqst-collect-skill { font-size: 12px; font-weight: 700; color: #0e7490; background: #ecfeff; border-radius: 10px; padding: 5px 8px; margin: 2px 0 0; text-wrap: pretty; }
.mqst-collect-skill.mqst-locked-goal { color: #9a3412; background: #fff7ed; }

.mqst-sprite-equip-btn {
  margin-top: auto;
  min-height: 44px;
  width: 100%;
  padding: 7px 12px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: #fef08a;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--shadow-ink);
}

.mqst-sprite-equip-btn.active {
  background: #4ade80;
  color: #064e3b;
}

.mqst-sprite-equip-btn.goto {
  background: #fed7aa;
  color: #9a3412;
}

/* ---------------- 小兔換裝試衣鏡與造型卡片 ---------------- */
.mqst-wardrobe-stage {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 20px;
  border: 2.5px solid var(--ink);
  background: linear-gradient(135deg, #fff1f2 0%, #fef9c3 100%);
  box-shadow: 3px 3px 0 var(--shadow-ink);
  flex-wrap: wrap;
}

.mqst-wardrobe-preview-btn {
  width: 112px;
  height: 112px;
  padding: 6px;
  border-radius: 22px;
  border: 2.5px solid var(--ink);
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #fce7f3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 2.5px 2.5px 0 var(--shadow-ink);
  transition: transform .1s ease;
}

.mqst-wardrobe-preview-btn:hover { transform: scale(1.03); }
.mqst-wardrobe-preview-btn:active { transform: scale(0.97); }
.mqst-wardrobe-preview-btn:focus-visible {
  outline: 3px solid #ec4899;
  outline-offset: 2px;
}
.mqst-wardrobe-preview-btn svg {
  width: 96px;
  height: 96px;
}

.mqst-wardrobe-info {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mqst-wardrobe-current {
  font-size: 16.5px;
  font-weight: 900;
  color: var(--ink);
}

.mqst-wardrobe-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}

.mqst-wardrobe-meters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.mqst-wardrobe-meter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
}

.mqst-wardrobe-next-tip {
  margin-top: 2px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px dashed #d97706;
  color: #92400e;
  font-size: 12.5px;
  font-weight: 800;
}

.mqst-costume-art {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px solid rgba(51, 43, 34, 0.16);
  background: #fff8eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mqst-costume-art svg {
  width: 70px;
  height: 70px;
}

.mqst-collect-card.locked .mqst-costume-art {
  filter: grayscale(0.85) opacity(0.55);
}

.mqst-costume-progress-wrap {
  width: 100%;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mqst-costume-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: #e2e8f0;
  overflow: hidden;
}

.mqst-costume-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #ec4899 100%);
  border-radius: 999px;
}

.mqst-costume-goal-text {
  font-size: 12px;
  font-weight: 800;
  color: #9a3412;
}

.mqst-costume-equip-btn {
  margin-top: auto;
  min-height: 48px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: #fde047;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--shadow-ink);
}

.mqst-costume-equip-btn.active {
  background: #4ade80;
  color: #064e3b;
}

.mqst-costume-equip-btn:focus-visible,
.mqst-sprite-equip-btn:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.mqst-parent-card { border: 2px solid var(--ink); border-radius: 18px; padding: 14px 16px; background: #fff; margin-bottom: 14px; }
.mqst-parent-card:last-child { margin-bottom: 0; }
.mqst-parent-card h4 { margin: 0 0 4px; font-size: 16px; }
.mqst-parent-card p { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-soft); text-wrap: pretty; }
.mqst-parent-card p:last-child { margin-bottom: 0; }
.mqst-parent-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.mqst-parent-row > div { flex: 1; min-width: 0; }
.mqst-switch-btn { min-width: 96px; min-height: 48px; padding: 8px 14px; border-radius: 999px; border: 2.5px solid var(--ink); background: var(--surface-dim); font-weight: 800; cursor: pointer; flex-shrink: 0; }
.mqst-switch-btn[aria-pressed="true"] { background: #4ade80; color: #064e3b; }
.mqst-parent-status {
  margin: 8px 0 0 !important;
  font-size: 13px !important;
  font-weight: 700;
  color: #475569 !important;
}
.mqst-parent-status.is-active { color: #047857 !important; }
.mqst-danger-card { background: #fff5f5; }
.mqst-lock-box { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mqst-lock-q { font-weight: 800; font-size: 15px; }
.mqst-lock-input { width: 82px; min-height: 44px; border: 2px solid var(--ink); border-radius: 12px; text-align: center; font-family: "Baloo 2", sans-serif; font-size: 18px; font-weight: 800; }
.mqst-parent-feedback {
  margin: 8px 0 0 !important;
  min-height: 20px;
  font-size: 13px !important;
  font-weight: 700;
  color: #b91c1c !important;
}
.mqst-parent-feedback:empty { display: none; }
.mqst-danger-btn { min-height: 48px; padding: 10px 18px; border-radius: 14px; border: 2.5px solid #7f1d1d; background: #ef4444; color: #fff; font-size: 14.5px; font-weight: 800; cursor: pointer; }

/* ---------------- 直向平板適配（維持 6×2 鍵盤與 4 欄選項，修正地圖過寬與舞台留白） ---------------- */
@media (orientation: portrait) {
  .mqst-world-viewport {
    background: linear-gradient(180deg, #eff8ff 0%, #dcf4fc 35%, #a7e8e4 100%);
  }
  .mqst-world-canvas {
    height: clamp(460px, 60dvh, 660px);
  }
  .mqst-world-bg {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  }
}

@media (orientation: portrait) and (min-width: 600px) {
  .mqst-stage-arena {
    justify-content: center;
    gap: clamp(28px, 6dvh, 68px);
    padding: 18px 22px 14px;
  }
  .mqst-actors-row {
    margin: 0 auto;
    padding: 0 18px clamp(20px, 4dvh, 44px);
  }
  .mqst-hero-svg,
  .mqst-enemy-svg {
    width: clamp(106px, 14vw, 134px);
    height: clamp(106px, 14vw, 134px);
  }
  .mqst-partner-svg {
    width: clamp(64px, 8.5vw, 76px);
    height: clamp(64px, 8.5vw, 76px);
  }
}

/* ---------------- 窄螢幕 / 手機適配 ---------------- */
@media (max-width: 960px) {
  .mqst-hud-bar,
  .mqst-battle-hud {
    padding: 6px 10px;
    gap: 6px;
  }
  .mqst-hud-avatar { width: 38px; height: 38px; }
  .mqst-hud-avatar svg { width: 32px; height: 32px; }
  .mqst-hud-pill {
    min-height: 30px;
    padding: 2px 8px;
    font-size: 12.5px;
  }
  .mqst-hud-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 4px 9px;
    border-radius: 12px;
    font-size: 13px;
  }
  .mqst-hud-bar .mqst-hud-btn.audio-mini span {
    display: none;
  }
  .mqst-battle-progress-wrap {
    min-width: 110px;
  }
  .mqst-combo-pill {
    padding: 4px 8px;
    font-size: 12.5px;
  }
}

@media (max-width: 780px) {
  .mqst-launcher-card {
    grid-template-columns: 1fr;
  }
  .mqst-gem-grid {
    grid-template-columns: 26px repeat(9, minmax(24px, 1fr));
    gap: 3px;
  }
  .mqst-gem-cell { min-height: 32px; font-size: 11.5px; }
}

@media (max-width: 600px) {
  .mqst-choices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mqst-console-dock {
    min-height: 184px;
  }
  .mqst-toy-keys-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 50px;
  }
  .mqst-toy-key {
    min-height: 50px;
  }
  .mqst-toy-key.k-back { grid-column: span 2; }
  .mqst-toy-key.k-go   { grid-column: span 2; }
  .mqst-actors-row { padding: 0 8px clamp(32px, 6.5vh, 52px); }
  .mqst-hero-duo { gap: 4px; }
  .mqst-partner-svg { width: 52px; height: 52px; }
  .mqst-partner-speech { display: none; }
  .mqst-partner-skill-btn { min-height: 44px; font-size: 11.5px; padding: 6px 8px; }
  .mqst-ult-cutin { padding: 6px 18px 6px 10px; gap: 10px; }
  .mqst-ult-cutin-hero { width: 48px; height: 48px; }
  .mqst-ult-cutin-hero svg { width: 44px; height: 44px; }
  .mqst-ult-magic-ring { width: 132px; height: 132px; }
}

@media (max-width: 560px) {
  .mqst-parent-row {
    flex-direction: column;
    align-items: stretch;
  }
  .mqst-switch-btn {
    align-self: flex-start;
  }
}
