/* website/css/card_battler.css
   Maple-TFT 5v5 Auto-Battler Overlay UI
   Victoria Island / Henesys twilight arcade aesthetic, 100% mobile viewport fit.
*/

.mqt-cb-overlay,
.mqt-cb-overlay * {
  box-sizing: border-box;
}

.mqt-cb-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 8px 14px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(52, 211, 153, 0.14), transparent 52%),
    radial-gradient(ellipse at 85% 95%, rgba(246, 185, 65, 0.10), transparent 50%),
    linear-gradient(180deg, #071918 0%, #0b1424 55%, #070b14 100%);
  color: #f3f6fc;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  animation: mqtCbFadeIn 220ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mqt-cb-paused * {
  animation-play-state: paused !important;
}

.mqt-cb-overlay.is-touch-dragging {
  overflow-y: hidden !important;
  touch-action: none !important;
}

.mqt-cb-hud-icon {
  width: 16px;
  height: 16px;
 
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

@keyframes mqtCbFadeIn {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}

.mqt-cb-shell {
  width: 100%;
  max-width: 1060px;
  min-width: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Compact Single-Row Top HUD (~44px) ─────────────────────────────────────── */
.mqt-cb-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 44px;
  height: auto;
  overflow: visible;
  padding: 6px 10px;
  background: linear-gradient(180deg, rgba(16, 36, 36, 0.92), rgba(11, 19, 31, 0.95));
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mqt-cb-top-left,
.mqt-cb-top-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.mqt-cb-world-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1px solid transparent;
  touch-action: manipulation;
}
.mqt-cb-world-pill.windia {
  background: rgba(120, 180, 255, 0.16);
  color: #8fc2ff;
  border-color: rgba(120, 180, 255, 0.35);
}
.mqt-cb-world-pill.zenith {
  background: rgba(246, 185, 65, 0.18);
  color: #f6b941;
  border-color: rgba(246, 185, 65, 0.4);
}

.mqt-cb-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(246, 185, 65, 0.16);
  border: 1px solid rgba(246, 185, 65, 0.4);
  color: #ffd374;
  font-size: 11px;
  font-weight: 800;
}

.mqt-cb-econ-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(8, 14, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 800;
  color: #e2e8f0;
  white-space: nowrap;
}
.mqt-cb-econ-pill.mesos { color: #fbbf24; border-color: rgba(251, 191, 36, 0.35); }
.mqt-cb-econ-pill.streak-win { color: #4ade80; border-color: rgba(74, 222, 128, 0.35); }
.mqt-cb-econ-pill.streak-loss { color: #7dd3fc; border-color: rgba(125, 211, 252, 0.35); }

.mqt-cb-seg {
  display: inline-flex;
  background: rgba(8, 12, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.mqt-cb-seg button {
  background: transparent;
  border: 0;
  color: #93a3bd;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 6px;
  cursor: pointer;
  touch-action: manipulation;
}
.mqt-cb-seg button.is-active {
  background: rgba(246, 185, 65, 0.2);
  color: #ffd374;
  box-shadow: inset 0 0 0 1px rgba(246, 185, 65, 0.4);
}

.mqt-cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 9px;
  min-height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(22, 34, 48, 0.92);
  color: #e6edf8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.mqt-cb-btn:hover:not(:disabled) {
  background: rgba(34, 50, 70, 0.96);
  border-color: rgba(255, 255, 255, 0.26);
}
.mqt-cb-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.mqt-cb-btn-primary {
  background: linear-gradient(135deg, #f6b941 0%, #e07a16 100%);
  border-color: rgba(255, 219, 138, 0.7);
  color: #170e02;
  font-weight: 900;
  font-size: 14px;
  padding: 9px 18px;
  min-height: 44px;
  box-shadow: 0 4px 16px rgba(246, 185, 65, 0.38);
}

.mqt-cb-btn-danger {
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

/* ── Main Grid: Desktop Sidebar (210px) + Arena ─────────────────────────────── */
.mqt-cb-main {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.mqt-cb-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.mqt-cb-panel {
  background: linear-gradient(180deg, rgba(16, 30, 38, 0.92), rgba(11, 18, 29, 0.94));
  border: 1px solid rgba(52, 211, 153, 0.16);
  border-radius: 12px;
  padding: 9px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mqt-cb-panel-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #93a3bd;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mqt-cb-synergy-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mqt-cb-synergy-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 7px;
  border-radius: 8px;
  background: rgba(9, 14, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.mqt-cb-synergy-badge.is-active {
  background: linear-gradient(90deg, rgba(246, 185, 65, 0.18), rgba(52, 211, 153, 0.08));
  border-color: rgba(246, 185, 65, 0.48);
}

.mqt-cb-syn-left { display: flex; align-items: center; gap: 5px; min-width: 0; }
.mqt-cb-syn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.mqt-cb-syn-icon img {
  width: 18px;
  height: 18px;
 
  border-radius: 3px;
}
.mqt-cb-syn-name {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mqt-cb-syn-bonus { font-size: 9px; color: #93a3bd; }
.mqt-cb-synergy-badge.is-active .mqt-cb-syn-name { color: #ffd374; }
.mqt-cb-syn-count {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #94a3b8;
  flex-shrink: 0;
}
.mqt-cb-synergy-badge.is-active .mqt-cb-syn-count {
  background: rgba(52, 211, 153, 0.22);
  color: #6ee7b7;
}
.mqt-cb-synergy-badge.is-overcap .mqt-cb-syn-count {
  background: rgba(251, 191, 36, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fde047;
}

/* Trait tiers (2/4 style) and guild traits */
.mqt-cb-syn-steps { display: inline-flex; gap: 2px; margin-left: 3px; vertical-align: middle; }
.mqt-cb-syn-step { font-size: 8px; line-height: 12px; min-width: 12px; text-align: center; border-radius: 3px; background: rgba(255, 255, 255, 0.07); color: #64748b; }
.mqt-cb-syn-step.on { background: rgba(251, 191, 36, 0.3); color: #fde047; }
.mqt-cb-syn-bonus { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mqt-cb-synergy-badge.is-guild.is-active { background: linear-gradient(90deg, rgba(56, 189, 248, 0.18), rgba(167, 139, 250, 0.1)); border-color: rgba(96, 165, 250, 0.5); }
.mqt-cb-synergy-badge.is-guild.is-active .mqt-cb-syn-name { color: #93c5fd; }

/* IGN Drawer */
.mqt-cb-drawer-body { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.mqt-cb-drawer-body.is-collapsed { display: none; }
.mqt-cb-ign-row { display: flex; gap: 5px; }
.mqt-cb-input {
  flex: 1;
  min-width: 0;
  background: rgba(8, 12, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 6px 8px;
  color: #fff;
  font-size: 12px;
  outline: none;
}
.mqt-cb-input:focus { border-color: #f6b941; }
.mqt-cb-drawer-status { font-size: 10px; color: #93a3bd; min-height: 14px; }
.mqt-cb-drawer-status.is-err { color: #fca5a5; }
.mqt-cb-drawer-status.is-ok { color: #6ee7b7; }

@media (max-width: 959px) {
  .mqt-cb-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .mqt-cb-synergy-panel {
    padding: 6px 8px;
  }
  .mqt-cb-synergy-panel .mqt-cb-panel-title {
    display: none;
  }
  .mqt-cb-synergy-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
  }
  .mqt-cb-synergy-badge {
    padding: 3px 7px;
  }
  .mqt-cb-syn-bonus { display: none; }
  .mqt-cb-drawer-panel { display: none; }
  .mqt-cb-drawer-panel.is-mobile-open { display: block; }
}

/* ── 4x5 Victoria Island Arena Board ────────────────────────────────────────── */
.mqt-cb-arena-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  min-width: 0;
}

.mqt-cb-board-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 25%, rgba(248, 113, 113, 0.08), transparent 55%),
    radial-gradient(circle at 50% 75%, rgba(52, 211, 153, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(16, 26, 36, 0.96), rgba(10, 20, 26, 0.98));
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 14px;
  padding: 7px 8px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.mqt-cb-board-scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 20, 0.58);
  pointer-events: none;
  z-index: 0;
}

.mqt-cb-board-frame > *:not(.mqt-cb-board-scrim) {
  position: relative;
  z-index: 1;
}

.mqt-cb-side-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 2px 4px;
}
.mqt-cb-side-label.enemy { color: #fca5a5; }
.mqt-cb-side-label.player { color: #6ee7b7; padding: 4px 2px 0; }

.mqt-cb-grid-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4.2;
  max-height: 390px;
}

@media (max-width: 640px) {
  .mqt-cb-grid-stage {
    aspect-ratio: 5 / 4.6;
    max-height: none;
  }
}

.mqt-cb-tiles {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.mqt-cb-tile {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(15, 23, 42, 0.44);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: border-color 140ms ease, background 140ms ease;
}
.mqt-cb-tile[data-side="enemy"] {
  background: rgba(38, 18, 28, 0.42);
  border-color: rgba(248, 113, 113, 0.22);
}
.mqt-cb-tile[data-side="player"] {
  background: rgba(15, 32, 42, 0.42);
  border-color: rgba(52, 211, 153, 0.25);
}
.mqt-cb-tile.is-droppable { cursor: pointer; }
.mqt-cb-tile.is-drag-over {
  border-color: #f6b941;
  background: rgba(246, 185, 65, 0.22);
  box-shadow: inset 0 0 12px rgba(246, 185, 65, 0.4);
}
.mqt-cb-tile.is-in-range {
  border-color: rgba(56, 189, 248, 0.62);
  background: rgba(14, 116, 144, 0.26);
  box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.28);
}
.mqt-cb-tile[data-side="enemy"].is-in-range {
  border-color: rgba(251, 191, 36, 0.78);
  background: rgba(245, 158, 11, 0.22);
  box-shadow: inset 0 0 12px rgba(251, 191, 36, 0.34);
}
.mqt-cb-tile[data-side="enemy"].is-in-range-target {
  border-color: #fb7185;
  background: rgba(225, 29, 72, 0.28);
  box-shadow: inset 0 0 14px rgba(251, 113, 133, 0.5), 0 0 8px rgba(251, 113, 133, 0.35);
}
.mqt-cb-tile.is-range-origin {
  position: relative;
  border-color: #38bdf8;
  box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.45);
}
.mqt-cb-tile.is-range-origin::after {
  content: attr(data-range-badge);
  position: absolute;
  top: 3px;
  left: 4px;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(9, 13, 22, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.75);
  color: #bae6fd;
  font: 800 8.5px/1.2 Manrope, sans-serif;
  letter-spacing: 0.03em;
  pointer-events: none;
}
.mqt-cb-tile.is-aoe-flash { animation: mqtCbTileFlash 340ms ease-out; }
@keyframes mqtCbTileFlash {
  0% { background: rgba(246, 185, 65, 0.48); }
  100% { background: rgba(15, 24, 34, 0.72); }
}

.mqt-cb-midline {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(246, 185, 65, 0.55), transparent);
  pointer-events: none;
  z-index: 2;
}

.mqt-cb-units {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.mqt-cb-unit {
  position: absolute;
  width: 20%;
  height: 25%;
  padding: 3px;
  pointer-events: auto;
  will-change: left, top, transform;
  transition: left 290ms cubic-bezier(0.25, 0.9, 0.35, 1), top 290ms cubic-bezier(0.25, 0.9, 0.35, 1), opacity 240ms ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.mqt-cb-unit.is-draggable {
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.mqt-cb-unit.is-draggable:active { cursor: grabbing; }

/* Clean Unit Token: NO corner job/level text inside tiny tiles */
.mqt-cb-unit-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  padding: 2px 3px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: linear-gradient(160deg, rgba(22, 42, 48, 0.78), rgba(11, 20, 30, 0.88));
  border: 1.5px solid rgba(110, 231, 183, 0.42);
  overflow: hidden;
}

.mqt-cb-unit.side-enemy .mqt-cb-unit-card {
  background: linear-gradient(160deg, rgba(52, 22, 32, 0.80), rgba(20, 12, 20, 0.88));
  border-color: rgba(248, 113, 113, 0.48);
}

.mqt-cb-unit.is-selected .mqt-cb-unit-card {
  border-color: #f6b941;
  box-shadow: 0 0 0 2px rgba(246, 185, 65, 0.55), 0 0 14px rgba(246, 185, 65, 0.45);
}

.mqt-cb-unit[data-stars="2"] .mqt-cb-unit-card {
  border-color: #60a5fa;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.38);
}
.mqt-cb-unit[data-stars="3"] .mqt-cb-unit-card {
  border: 1.5px solid rgba(251, 191, 36, 0.78);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.45);
}
.mqt-cb-unit[data-stars="3"] .mqt-cb-unit-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, #fbbf24, #f472b6, #38bdf8, #4ade80, #fbbf24);
  opacity: 0.22;
  pointer-events: none;
  animation: mqtCbHoloRainbow 3s linear infinite;
}
.mqt-cb-unit[data-stars="3"] .mqt-cb-avatar img {
  transform: scale(1.12);
}
@keyframes mqtCbHoloRainbow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.mqt-cb-unit.is-ko { opacity: 0.42; }
.mqt-cb-unit.is-buried { display: none; }
.mqt-cb-unit.is-ko .mqt-cb-avatar {
  filter: grayscale(1);
}
.mqt-cb-unit.is-ko .mqt-cb-sprite-motion {
  animation: none !important;
  transform-origin: bottom center;
  transform: rotate(85deg);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mqt-cb-ko-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  z-index: 4;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(185, 28, 28, 0.92);
  border: 1px solid rgba(254, 202, 202, 0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.mqt-cb-unit.is-stunned .mqt-cb-unit-card { box-shadow: 0 0 0 2px #fde047; }
.mqt-cb-unit.is-move-hop .mqt-cb-unit-card { animation: mqtCbMoveHop 280ms cubic-bezier(0.22, 1, 0.36, 1); }
.mqt-cb-unit.is-lunge-up,
.mqt-cb-unit.is-lunge-down { animation: mqtCbLunge 290ms cubic-bezier(0.22, 1, 0.36, 1); z-index: 9; }
.mqt-cb-unit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 7px;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
}

.mqt-cb-unit.is-skill-cast .mqt-cb-unit-card { animation: mqtCbSkillCast 340ms cubic-bezier(0.22, 1, 0.36, 1); }
.mqt-cb-unit.is-skill-cast .mqt-cb-unit-card::before { background: #fde047; animation: mqtCbFlashOverlay 340ms ease-out; }
.mqt-cb-unit.is-hit-flash .mqt-cb-avatar { animation: mqtCbHitFlash 160ms ease-out; }
.mqt-cb-unit.is-hit-flash .mqt-cb-unit-card::before { background: #ffffff; animation: mqtCbFlashOverlay 150ms ease-out; }
.mqt-cb-unit.is-revive-flash .mqt-cb-unit-card { animation: mqtCbSkillCast 560ms ease-out; }
.mqt-cb-unit.is-revive-flash .mqt-cb-unit-card::before { background: #fde047; animation: mqtCbFlashOverlay 560ms ease-out; }

@keyframes mqtCbBreathe {
  0%, 100% { transform: scaleY(1) translateY(0); }
  50% { transform: scaleY(1.035) translateY(-1.5px); }
}

@keyframes mqtCbMoveHop {
  0% { transform: translateY(0); }
  45% { transform: translateY(-7px) scale(1.03); }
  100% { transform: translateY(0); }
}

@keyframes mqtCbLunge {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  38% { transform: translate3d(var(--cb-lunge-x, 0px), var(--cb-lunge-y, -10px), 0) scale(1.05); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes mqtCbSkillCast {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes mqtCbHitFlash {
  0% { transform: translateX(-3px); opacity: 0.75; }
  50% { transform: translateX(3px); opacity: 0.9; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes mqtCbFlashOverlay {
  0% { opacity: 0; }
  35% { opacity: 0.78; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mqt-cb-sprite-motion,
  .mqt-cb-unit.is-move-hop .mqt-cb-sprite-motion,
  .mqt-cb-unit.is-lunge-up .mqt-cb-sprite-motion,
  .mqt-cb-unit.is-lunge-down .mqt-cb-sprite-motion,
  .mqt-cb-unit.is-skill-cast .mqt-cb-unit-card,
  .mqt-cb-unit.is-hit-flash .mqt-cb-sprite-motion {
    animation: none !important;
    transition: none !important;
  }
}

.mqt-cb-star-corner {
  position: absolute;
  top: 2px;
  right: 3px;
  z-index: 2;
  line-height: 1;
}

/* ── ClassicRank Cutout Sprite + Ground Shadow + Job-Emblem Fallback ────────── */
.mqt-cb-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.mqt-cb-avatar::before {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 58%;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.62) 0%, transparent 72%);
  pointer-events: none;
}

.mqt-cb-facing-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scaleX(var(--cb-facing, 1));
  transition: transform 140ms ease-out;
}

.mqt-cb-sprite-motion {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: bottom center;
  animation: mqtCbBreathe 1.6s ease-in-out var(--cb-breath-delay, 0ms) infinite;
}

.mqt-cb-avatar img {
  position: relative;
  z-index: 1;
  max-width: 88%;
  max-height: 100%;
  object-fit: contain;
 
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
}

.mqt-cb-emblem {
  position: relative;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.mqt-cb-emblem.branch-warrior { background: radial-gradient(circle, rgba(239, 68, 68, 0.35), rgba(127, 29, 29, 0.55)); }
.mqt-cb-emblem.branch-cleric { background: radial-gradient(circle, rgba(250, 204, 21, 0.35), rgba(113, 63, 18, 0.55)); }
.mqt-cb-emblem.branch-thief { background: radial-gradient(circle, rgba(168, 85, 247, 0.35), rgba(88, 28, 135, 0.55)); }
.mqt-cb-emblem.branch-magician { background: radial-gradient(circle, rgba(56, 189, 248, 0.35), rgba(12, 74, 110, 0.55)); }
.mqt-cb-emblem.branch-bowman { background: radial-gradient(circle, rgba(52, 211, 153, 0.35), rgba(6, 78, 59, 0.55)); }

.mqt-cb-unit-name {
  width: 100%;
  text-align: center;
  font-size: 9.5px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.mqt-cb-bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5px;
  margin-top: 2px;
}
.mqt-cb-bar {
  width: 100%;
  height: 3.5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  overflow: hidden;
}
.mqt-cb-bar-fill { height: 100%; transition: width 240ms cubic-bezier(0.22, 1, 0.36, 1); }
.mqt-cb-bar-hp .mqt-cb-bar-fill { background: linear-gradient(90deg, #22c55e, #4ade80); }
.mqt-cb-unit.side-enemy .mqt-cb-bar-hp .mqt-cb-bar-fill { background: linear-gradient(90deg, #ef4444, #f87171); }
.mqt-cb-bar-mp { height: 2.5px; }
.mqt-cb-bar-mp .mqt-cb-bar-fill { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }

/* ── Star Badges ────────────────────────────────────────────────────────────── */
.mqt-cb-stars { font-size: 9px; letter-spacing: -0.05em; line-height: 1; color: #e2e8f0; text-shadow: 0 1px 2px #000; }
.mqt-cb-stars.s2 { color: #60a5fa; text-shadow: 0 0 6px rgba(96, 165, 250, 0.8); }
.mqt-cb-stars.s3 { color: #fbbf24; text-shadow: 0 0 8px rgba(251, 191, 36, 0.95); }

/* ── Floating MapleStory Damage Numbers ─────────────────────────────────────── */
.mqt-cb-fx-layer { position: absolute; inset: 0; pointer-events: none; z-index: 15; overflow: hidden; }
.mqt-cb-dmg {
  position: absolute;
  z-index: 22;
  transform: translate(-50%, -50%);
  font-weight: 900;
  font-size: 15px;
  text-shadow: -1px -1px 0 #111, 1px -1px 0 #111, -1px 1px 0 #111, 1px 1px 0 #111, 0 2px 5px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  animation: mqtCbDmgFloat 820ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.mqt-cb-dmg.is-normal { color: #fb923c; font-size: 16px; }
.mqt-cb-dmg.is-crit { color: #fb7185; font-size: 19px; text-shadow: -1px -1px 0 #111, 1px -1px 0 #111, -1px 1px 0 #111, 1px 1px 0 #111, 0 0 10px rgba(251, 191, 36, 0.8); }
.mqt-cb-dmg.is-skill { color: #c084fc; font-size: 17px; }
.mqt-cb-dmg.is-heal { color: #4ade80; font-size: 14px; }
.mqt-cb-dmg.is-revive { color: #fde047; font-size: 16px; text-shadow: -1px -1px 0 #111, 1px -1px 0 #111, -1px 1px 0 #111, 1px 1px 0 #111, 0 0 12px rgba(253, 224, 71, 0.9); }
.mqt-cb-dmg.is-miss { color: #94a3b8; font-size: 12px; }
.mqt-cb-dmg.is-stun { color: #fde047; font-size: 12px; }

/* ── Unit Equipped Item Badges & Item Tray ──────────────────────────────────── */
.mqt-cb-unit-items {
  position: absolute;
  top: 2px;
  left: 3px;
  z-index: 3;
  display: flex;
  gap: 2px;
  pointer-events: none;
}
.mqt-cb-unit-item-dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: rgba(11, 16, 28, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  overflow: hidden;
}
.mqt-cb-unit-item-dot img {
  width: 12px;
  height: 12px;
 
}

.mqt-cb-item-tray {
  width: 100%;
  background: rgba(14, 24, 34, 0.92);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 12px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mqt-cb-item-tray-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fde68a;
}
.mqt-cb-item-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mqt-cb-item-chip.is-crafted { border-color: rgba(244, 114, 182, 0.7); background: linear-gradient(135deg, rgba(76, 29, 149, 0.55), rgba(24, 38, 54, 0.95)); }
.mqt-cb-chest-from { margin-top: 6px; font-size: 10px; color: #a5b4fc; }
.mqt-cb-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 9px;
  background: rgba(24, 38, 54, 0.95);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.mqt-cb-item-chip.is-selected {
  border-color: #fde047;
  background: rgba(246, 185, 65, 0.22);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}
.mqt-cb-item-chip img {
  width: 18px;
  height: 18px;
 
}

/* ── Daily Leaderboard Drawer ───────────────────────────────────────────────── */
.mqt-cb-lb-panel {
  background: rgba(12, 20, 32, 0.96);
  border: 1px solid rgba(246, 185, 65, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mqt-cb-lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(8, 13, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
}

.mqt-cb-lb-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.mqt-cb-meta-av {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
  image-rendering: pixelated;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.mqt-cb-shop-new {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 3;
  padding: 1px 5px;
  border-radius: 999px;
  background: #c94430;
  color: #fff;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* ── Boss Telegraph Warning Banner ──────────────────────────────────────────── */
.mqt-cb-telegraph-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(153, 27, 27, 0.85), rgba(185, 28, 28, 0.72), rgba(153, 27, 27, 0.85));
  border: 1px solid rgba(252, 165, 165, 0.65);
  color: #fef2f2;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.4);
}

/* ── Active Maple Blessing Augment Chips ────────────────────────────────────── */
.mqt-cb-aug-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.mqt-cb-aug-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(18, 26, 40, 0.9);
  color: #e2e8f0;
}
.mqt-cb-aug-chip.tier-silver { border-color: rgba(148, 163, 184, 0.6); color: #e2e8f0; }
.mqt-cb-aug-chip.tier-gold { border-color: rgba(251, 191, 36, 0.75); color: #fde047; background: rgba(120, 53, 15, 0.35); }
.mqt-cb-aug-chip.tier-prismatic {
  border-color: rgba(244, 114, 182, 0.85);
  color: #f9a8d4;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.45), rgba(14, 116, 144, 0.45));
}

/* ── Maple Augment 1-of-3 Picker Modal ──────────────────────────────────────── */
.mqt-cb-aug-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99997;
  background: rgba(5, 8, 15, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.mqt-cb-aug-modal {
  width: 100%;
  max-width: 760px;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(20, 30, 48, 0.98), rgba(11, 16, 28, 0.99));
  border: 1.5px solid rgba(246, 185, 65, 0.45);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mqt-cb-aug-head {
  text-align: center;
}
.mqt-cb-aug-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #ffd374;
}
.mqt-cb-aug-head p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #93a3bd;
}
.mqt-cb-aug-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 640px) {
  .mqt-cb-aug-grid {
    grid-template-columns: 1fr;
  }
}
.mqt-cb-aug-card {
  position: relative;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  cursor: pointer;
  background: rgba(16, 24, 38, 0.96);
  border: 1.5px solid rgba(148, 163, 184, 0.4);
  transition: transform 130ms ease, border-color 140ms ease;
}
.mqt-cb-aug-card:hover {
  transform: translateY(-2px);
}
.mqt-cb-aug-card.tier-silver {
  border-color: rgba(203, 213, 225, 0.65);
  box-shadow: 0 6px 18px rgba(148, 163, 184, 0.18);
}
.mqt-cb-aug-card.tier-gold {
  border-color: rgba(251, 191, 36, 0.85);
  background: linear-gradient(160deg, rgba(45, 32, 14, 0.94), rgba(16, 20, 32, 0.98));
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.25);
}
.mqt-cb-aug-card.tier-prismatic {
  border-color: #f472b6;
  background: linear-gradient(145deg, rgba(64, 24, 92, 0.94), rgba(14, 48, 72, 0.96));
  box-shadow: 0 6px 24px rgba(244, 114, 182, 0.35);
}
.mqt-cb-aug-tier {
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
}
.mqt-cb-aug-icon {
  font-size: 28px;
  line-height: 1;
}
.mqt-cb-aug-title {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}
.mqt-cb-aug-desc {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.4;
}

/* ── 10-Second Onboarding Tip Bar & Quick Guide Modal ───────────────────────── */
.mqt-cb-tip-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 9px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  font-size: 11px;
  font-weight: 700;
}
.mqt-cb-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 600px) {
  .mqt-cb-guide-grid {
    grid-template-columns: 1fr;
  }
}
.mqt-cb-guide-card {
  padding: 10px;
  border-radius: 10px;
  background: rgba(12, 20, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  color: #cbd5e1;
}
.mqt-cb-guide-card b {
  display: block;
  color: #ffd374;
  margin-bottom: 3px;
  font-size: 12px;
}

/* ── Standalone /arena/ Page Mode ───────────────────────────────────────────── */
.mqt-cb-overlay.is-standalone {
  position: relative;
  inset: auto;
  z-index: 10;
  min-height: calc(100vh - 65px);
  animation: none;
}

@keyframes mqtCbDmgFloat {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(0.75); }
  20% { opacity: 1; transform: translate(-50%, -65%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -140%) scale(0.95); }
}

/* ── Tap-to-Inspect Selected Unit Bar ───────────────────────────────────────── */
.mqt-cb-selected-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(246, 185, 65, 0.14);
  border: 1px solid rgba(246, 185, 65, 0.45);
  font-size: 11px;
}

.mqt-cb-selected-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #fde68a;
}

/* ── 6-Slot Bench (Single Contained Row, Zero Horizontal Overflow) ───────────── */
.mqt-cb-bench-panel {
  width: 100%;
  background: rgba(12, 22, 30, 0.92);
  border: 1px solid rgba(52, 211, 153, 0.16);
  border-radius: 12px;
  padding: 6px 8px;
}

.mqt-cb-bench-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #93a3bd;
  margin-bottom: 5px;
}

.mqt-cb-bench-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}

.mqt-cb-bench-slot {
  height: 58px;
  min-width: 0;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(8, 13, 22, 0.68);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 3px;
  cursor: pointer;
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
}

.mqt-cb-bench-slot.has-unit {
  border-style: solid;
  border-color: rgba(110, 231, 183, 0.35);
  background: linear-gradient(155deg, rgba(22, 40, 48, 0.92), rgba(11, 18, 28, 0.95));
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.mqt-cb-bench-slot.is-selected {
  border-color: #f6b941;
  box-shadow: 0 0 0 2px rgba(246, 185, 65, 0.5);
}
.mqt-cb-bench-slot.is-drag-over {
  border-color: #f6b941;
  background: rgba(246, 185, 65, 0.18);
}

.mqt-cb-bench-slot .mqt-cb-avatar { height: 28px; flex: none; }
.mqt-cb-bench-slot .mqt-cb-avatar::before { display: none; }
.mqt-cb-bench-slot .mqt-cb-avatar img { max-height: 26px; }
.mqt-cb-bench-slot .mqt-cb-emblem { width: 20px; height: 20px; font-size: 11px; }
.mqt-cb-bench-name {
  width: 100%;
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mqt-cb-bench-empty {
  margin: auto;
  font-size: 9px;
  color: rgba(148, 163, 184, 0.42);
  font-weight: 700;
}

/* ── Streamlined 5-Card Armory Shop (Contained 100% Width) ──────────────────── */
.mqt-cb-shop-panel {
  width: 100%;
  min-width: 0;
  background: rgba(12, 22, 30, 0.94);
  border: 1px solid rgba(246, 185, 65, 0.25);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mqt-cb-shop-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mqt-cb-shop-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffd374;
}

.mqt-cb-shop-actions { display: flex; align-items: center; gap: 5px; }

.mqt-cb-shop-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

@media (max-width: 640px) {
  .mqt-cb-shop-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    width: 100%;
    max-width: 100%;
  }
  .mqt-cb-shop-cards::-webkit-scrollbar { display: none; }
  .mqt-cb-shop-card {
    flex: 0 0 calc((100% - 12px) / 3.15);
    scroll-snap-align: start;
  }
}

.mqt-cb-shop-card {
  position: relative;
  min-width: 0;
  border-radius: 9px;
  padding: 6px;
  background: linear-gradient(155deg, rgba(24, 40, 52, 0.95), rgba(11, 18, 28, 0.98));
  border: 1px solid rgba(110, 231, 183, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  touch-action: manipulation;
  overflow: hidden;
}

.mqt-cb-shop-card:hover:not(.is-sold):not(.is-unaffordable) { border-color: #f6b941; }
.mqt-cb-shop-card.is-sold { opacity: 0.26; pointer-events: none; }
.mqt-cb-shop-card.is-unaffordable { opacity: 0.56; }

.mqt-cb-shop-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 800;
  color: #cbd5e1;
}

.mqt-cb-shop-cost {
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.42);
  color: #fbbf24;
  font-size: 9px;
  font-weight: 900;
}

.mqt-cb-shop-card .mqt-cb-avatar { height: 38px; flex: none; }
.mqt-cb-shop-card .mqt-cb-avatar img { max-height: 36px; }
.mqt-cb-shop-card .mqt-cb-emblem { width: 28px; height: 28px; font-size: 14px; }

.mqt-cb-shop-name {
  width: 100%;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mqt-cb-shop-guild { width: 100%; text-align: center; font-size: 8.5px; color: #7d8ba3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -2px; }
.mqt-cb-shop-guild.is-match { color: #93c5fd; font-weight: 800; }

.mqt-cb-shop-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 9px;
  color: #93a3bd;
}

.mqt-cb-shop-trait {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mqt-cb-shop-trait > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mqt-cb-shop-top { gap: 3px; white-space: nowrap; }
.mqt-cb-shop-top .mqt-cb-rarity-pill { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mqt-cb-shop-up { white-space: nowrap; }
.mqt-cb-shop-trait img {
  width: 14px;
  height: 14px;
 
  flex-shrink: 0;
}

.mqt-cb-shop-up {
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  flex-shrink: 0;
}
.mqt-cb-shop-up.copy {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}
.mqt-cb-shop-up.s2 {
  background: rgba(59, 130, 246, 0.25);
  border: 1px solid rgba(96, 165, 250, 0.7);
  color: #93c5fd;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.45);
}
.mqt-cb-shop-up.s3 {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(244, 114, 182, 0.3));
  border: 1px solid #fbbf24;
  color: #fde047;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.65);
}

.mqt-cb-drag-ghost {
  position: fixed;
  z-index: 99998;
  pointer-events: none;
  transform: translate(-50%, -125%) scale(1.06);
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(16, 28, 42, 0.94);
  border: 1.5px solid #f6b941;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Full-Width Bottom Action Bar ───────────────────────────────────────────── */
.mqt-cb-action-bar {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px max(16px, env(safe-area-inset-bottom));
  background: rgba(12, 22, 30, 0.94);
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 12px;
}

.mqt-cb-ticker { font-size: 11px; color: #cbd5e1; flex: 1; min-width: 150px; }
.mqt-cb-action-btns { display: flex; align-items: center; gap: 6px; }

@media (max-width: 640px) {
  .mqt-cb-action-bar { flex-direction: column; align-items: stretch; }
  .mqt-cb-action-btns { width: 100%; }
  .mqt-cb-action-btns .mqt-cb-btn { flex: 1; min-height: 44px; }
}

/* ── Post-Battle Result Card ────────────────────────────────────────────────── */
.mqt-cb-result-card {
  background: rgba(14, 24, 34, 0.96);
  border: 1px solid rgba(246, 185, 65, 0.35);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mqt-cb-result-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mqt-cb-banner { font-size: 19px; font-weight: 900; }
.mqt-cb-banner.win { color: #4ade80; }
.mqt-cb-banner.lose { color: #f87171; }
.mqt-cb-banner.draw { color: #fbbf24; }

.mqt-cb-hitscore-box { display: flex; align-items: center; gap: 12px; }
.mqt-cb-metric { text-align: right; }
.mqt-cb-metric-label { font-size: 9px; font-weight: 800; text-transform: uppercase; color: #93a3bd; }
.mqt-cb-metric-val { font-size: 17px; font-weight: 900; color: #f6b941; }

.mqt-cb-mvp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(246, 185, 65, 0.16);
  border: 1px solid rgba(246, 185, 65, 0.45);
  color: #ffd374;
  font-size: 11px;
  font-weight: 800;
}

.mqt-cb-income-row { display: flex; flex-wrap: wrap; gap: 5px; font-size: 11px; font-weight: 700; }
.mqt-cb-income-chip {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

.mqt-cb-breakdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px; }
.mqt-cb-bd-row {
  background: rgba(10, 14, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mqt-cb-bd-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; }
.mqt-cb-bd-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mqt-cb-bd-pic { width: 26px; height: 26px; object-fit: contain; object-position: center bottom; flex: 0 0 auto; border-radius: 5px; background: rgba(255, 255, 255, 0.05); }
.mqt-cb-bd-stats { font-size: 10px; color: #94a3b8; }
.mqt-cb-bd-track { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.mqt-cb-bd-fill { height: 100%; background: linear-gradient(90deg, #38bdf8, #f6b941); border-radius: 999px; }

.mqt-cb-result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.mqt-cb-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f6b941, #e07a16);
  color: #170e02;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(246, 185, 65, 0.55);
  pointer-events: none;
  max-width: 92vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Skill Cast Badge & GPU-Accelerated Skill VFX ───────────────────────────── */
.mqt-cb-skill-badge {
  position: absolute;
  transform: translate(-50%, -100%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px 2px 3px;
  border-radius: 999px;
  background: rgba(11, 16, 28, 0.92);
  border: 1.5px solid #f6b941;
  box-shadow: 0 4px 12px rgba(246, 185, 65, 0.4);
  color: #fde68a;
  font-size: 9.5px;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
  z-index: 36;
  animation: mqtCbSkillBadgePop 500ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mqt-cb-vfx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 35;
}

.mqt-cb-skill-badge img,
.mqt-cb-skill-badge .mqt-cb-skill-fb {
  width: 20px;
  height: 20px;
  border-radius: 4px;
 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

@keyframes mqtCbSkillBadgePop {
  0% { opacity: 0; transform: translate(-50%, -70%) scale(0.75); }
  18% { opacity: 1; transform: translate(-50%, -108%) scale(1.06); }
  80% { opacity: 1; transform: translate(-50%, -115%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -135%) scale(0.95); }
}

.mqt-cb-board-frame.is-roar-shake {
  animation: mqtCbRoarShake 260ms ease-out;
}
@keyframes mqtCbRoarShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 2px); }
  50% { transform: translate(3px, -2px); }
  75% { transform: translate(-2px, -1px); }
}

/* Dragon Roar Shockwave Ring */
.mqt-cb-vfx-ring {
  position: absolute;
  width: 18%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0.4);
  border-radius: 50%;
  border: 3px solid #fb7185;
  box-shadow: 0 0 18px rgba(192, 132, 252, 0.85), inset 0 0 12px rgba(251, 113, 133, 0.6);
  pointer-events: none;
  animation: mqtCbVfxRing 420ms ease-out forwards;
}
@keyframes mqtCbVfxRing {
  0% { opacity: 0.95; transform: translate(-50%, -50%) scale(0.4); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.65); }
}

/* Heal Golden Glow */
.mqt-cb-vfx-heal {
  position: absolute;
  width: 16%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.65) 0%, rgba(74, 222, 128, 0.35) 50%, transparent 72%);
  pointer-events: none;
  animation: mqtCbVfxHeal 520ms ease-out forwards;
}
@keyframes mqtCbVfxHeal {
  0% { opacity: 0; transform: translate(-50%, -35%) scale(0.6); }
  30% { opacity: 1; transform: translate(-50%, -55%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -85%) scale(1.25); }
}

/* Magic Claw Arcane Slash */
.mqt-cb-vfx-claw {
  position: absolute;
  width: 14%;
  height: 14%;
  transform: translate(-50%, -50%) rotate(-35deg);
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.9), rgba(192, 132, 252, 0.95), transparent);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.8);
  border-radius: 999px;
  pointer-events: none;
  animation: mqtCbVfxClaw 300ms ease-out forwards;
}
@keyframes mqtCbVfxClaw {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-35deg) scaleX(0.3); }
  40% { opacity: 1; transform: translate(-50%, -50%) rotate(-35deg) scaleX(1.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(-35deg) scaleX(1.4); }
}

/* Arrow Bomb Burst */
.mqt-cb-vfx-burst {
  position: absolute;
  width: 16%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.9) 0%, rgba(249, 115, 22, 0.5) 45%, transparent 72%);
  pointer-events: none;
  animation: mqtCbVfxBurst 340ms ease-out forwards;
}
@keyframes mqtCbVfxBurst {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.4); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

/* Lucky Seven / Arrow Projectile Streak */
.mqt-cb-vfx-proj {
  position: absolute;
  font-size: 16px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.9));
  transition: left 210ms linear, top 210ms linear, opacity 120ms ease;
}

/* Real In-Game MapleStory Skill Animation GIF */
.mqt-cb-skill-anim-gif {
  position: absolute;
  width: 24%;
  max-width: 112px;
  height: auto;
  transform: translate(-50%, -55%);
 
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 18;
  filter: drop-shadow(0 0 8px rgba(246, 185, 65, 0.45));
}

/* ── Prominent Board Cap Indicator & Level-Up / Full Pulse ──────────────────── */
.mqt-cb-board-cap-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.48);
  color: #6ee7b7;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.mqt-cb-board-cap-pill.is-at-cap,
.mqt-cb-econ-pill.is-at-cap {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(251, 191, 36, 0.72);
  color: #fde68a;
}
.mqt-cb-board-cap-pill.is-cap-up,
.mqt-cb-econ-pill.is-cap-up {
  background: rgba(52, 211, 153, 0.34);
  border-color: #34d399;
  color: #ecfdf5;
  animation: mqtCbCapPulse 680ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mqt-cb-board-cap-pill.is-cap-warn,
.mqt-cb-econ-pill.is-cap-warn {
  background: rgba(239, 68, 68, 0.3);
  border-color: #f87171;
  color: #fee2e2;
  animation: mqtCbCapPulse 620ms ease-out;
}
@keyframes mqtCbCapPulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.1); }
  65% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

/* ── Card Rarity System (Shop Cards, Board Tiles, Bench Slots & Pills) ──────── */
.mqt-cb-rarity-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  flex-shrink: 0;
}
.mqt-cb-rarity-pill.rarity-mythic {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.35), rgba(168, 85, 247, 0.35));
  border: 1px solid #f472b6;
  color: #fbcfe8;
}
.mqt-cb-rarity-pill.rarity-legendary {
  background: rgba(245, 158, 11, 0.24);
  border: 1px solid #fbbf24;
  color: #fde68a;
}
.mqt-cb-rarity-pill.rarity-epic {
  background: rgba(168, 85, 247, 0.24);
  border: 1px solid #c084fc;
  color: #e9d5ff;
}
.mqt-cb-rarity-pill.rarity-rare {
  background: rgba(14, 165, 233, 0.24);
  border: 1px solid #38bdf8;
  color: #bae6fd;
}
.mqt-cb-rarity-pill.rarity-common {
  background: rgba(100, 116, 139, 0.24);
  border: 1px solid rgba(148, 163, 184, 0.65);
  color: #cbd5e1;
}
.mqt-cb-rarity-pill.rarity-boss {
  background: rgba(220, 38, 38, 0.28);
  border: 1px solid #f87171;
  color: #fecaca;
}
.mqt-cb-rarity-pill.rarity-mob {
  background: rgba(100, 116, 139, 0.26);
  border: 1px solid #94a3b8;
  color: #e2e8f0;
}

/* Colored borders & subtle top accent bar across Shop, Board, Bench */
.mqt-cb-shop-card[data-rarity],
.mqt-cb-bench-slot.has-unit[data-rarity],
.mqt-cb-unit[data-rarity] .mqt-cb-unit-card {
  border-top-width: 3px;
}

.mqt-cb-shop-card[data-rarity="mythic"],
.mqt-cb-bench-slot.has-unit[data-rarity="mythic"],
.mqt-cb-unit[data-rarity="mythic"] .mqt-cb-unit-card {
  border-color: rgba(244, 114, 182, 0.8);
  border-top-color: #f472b6;
  box-shadow: inset 0 2px 0 rgba(244, 114, 182, 0.45), 0 0 10px rgba(236, 72, 153, 0.22);
}
.mqt-cb-shop-card[data-rarity="legendary"],
.mqt-cb-bench-slot.has-unit[data-rarity="legendary"],
.mqt-cb-unit[data-rarity="legendary"] .mqt-cb-unit-card {
  border-color: rgba(251, 191, 36, 0.78);
  border-top-color: #fbbf24;
  box-shadow: inset 0 2px 0 rgba(251, 191, 36, 0.4), 0 0 9px rgba(245, 158, 11, 0.2);
}
.mqt-cb-shop-card[data-rarity="epic"],
.mqt-cb-bench-slot.has-unit[data-rarity="epic"],
.mqt-cb-unit[data-rarity="epic"] .mqt-cb-unit-card {
  border-color: rgba(192, 132, 252, 0.72);
  border-top-color: #c084fc;
  box-shadow: inset 0 2px 0 rgba(192, 132, 252, 0.35);
}
.mqt-cb-shop-card[data-rarity="rare"],
.mqt-cb-bench-slot.has-unit[data-rarity="rare"],
.mqt-cb-unit[data-rarity="rare"] .mqt-cb-unit-card {
  border-color: rgba(56, 189, 248, 0.68);
  border-top-color: #38bdf8;
  box-shadow: inset 0 2px 0 rgba(56, 189, 248, 0.3);
}
.mqt-cb-shop-card[data-rarity="common"],
.mqt-cb-bench-slot.has-unit[data-rarity="common"],
.mqt-cb-unit[data-rarity="common"] .mqt-cb-unit-card {
  border-color: rgba(148, 163, 184, 0.45);
  border-top-color: #94a3b8;
}
.mqt-cb-unit[data-rarity="boss"] .mqt-cb-unit-card {
  border-color: rgba(248, 113, 113, 0.8);
  border-top-color: #ef4444;
}

/* ── Compact Info (ⓘ) Trigger Button ────────────────────────────────────────── */
.mqt-cb-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(10, 16, 28, 0.88);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  flex-shrink: 0;
  z-index: 6;
}
.mqt-cb-info-btn:hover {
  border-color: #f6b941;
  color: #fde68a;
}
.mqt-cb-info-tile {
  position: absolute;
  right: 2px;
  bottom: 19px;
  opacity: 0.88;
}
.mqt-cb-info-corner {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 15px;
  height: 15px;
  font-size: 9px;
}

/* ── Tap-to-Inspect Unit Stats Modal / Drawer ───────────────────────────────── */
.mqt-cb-inspect-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(5, 8, 15, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.mqt-cb-inspect-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(18, 28, 44, 0.98), rgba(10, 15, 26, 0.99));
  border: 1.5px solid rgba(148, 163, 184, 0.5);
  border-top-width: 4px;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.78);
  display: flex;
  flex-direction: column;
  gap: 11px;
  color: #eef1f7;
}
.mqt-cb-inspect-modal[data-rarity="mythic"] { border-color: #f472b6; }
.mqt-cb-inspect-modal[data-rarity="legendary"] { border-color: #fbbf24; }
.mqt-cb-inspect-modal[data-rarity="epic"] { border-color: #c084fc; }
.mqt-cb-inspect-modal[data-rarity="rare"] { border-color: #38bdf8; }
.mqt-cb-inspect-modal[data-rarity="boss"] { border-color: #f87171; }

.mqt-cb-inspect-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.mqt-cb-inspect-close:hover {
  border-color: #f6b941;
  color: #fff;
}

.mqt-cb-inspect-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 30px;
}
.mqt-cb-inspect-portrait {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(8, 13, 22, 0.85);
  border: 1.5px solid rgba(148, 163, 184, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
}
.mqt-cb-inspect-portrait .mqt-cb-avatar { height: 54px; width: 100%; }
.mqt-cb-inspect-portrait .mqt-cb-avatar img { max-height: 52px; }
.mqt-cb-inspect-portrait[data-rarity="mythic"] { border-color: #f472b6; }
.mqt-cb-inspect-portrait[data-rarity="legendary"] { border-color: #fbbf24; }
.mqt-cb-inspect-portrait[data-rarity="epic"] { border-color: #c084fc; }
.mqt-cb-inspect-portrait[data-rarity="rare"] { border-color: #38bdf8; }
.mqt-cb-inspect-portrait[data-rarity="boss"] { border-color: #f87171; }

.mqt-cb-inspect-title-col {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mqt-cb-inspect-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.mqt-cb-inspect-name-row h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}
.mqt-cb-inspect-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #93a3bd;
}

.mqt-cb-inspect-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.mqt-cb-stat-chip {
  background: rgba(8, 13, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 6px 5px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mqt-cb-stat-chip span {
  font-size: 9px;
  font-weight: 800;
  color: #93a3bd;
  letter-spacing: 0.06em;
}
.mqt-cb-stat-chip b {
  font-size: 12.5px;
  font-weight: 900;
  color: #fef3c7;
}

.mqt-cb-inspect-sec {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mqt-cb-inspect-sec-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #93a3bd;
}
.mqt-cb-inspect-skill,
.mqt-cb-inspect-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(8, 13, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}
.mqt-cb-inspect-item-ic {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.mqt-cb-inspect-sub {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.35;
  margin-top: 1px;
}
.mqt-cb-inspect-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mqt-cb-inspect-empty {
  font-size: 11px;
  color: #64748b;
  padding: 4px 2px;
}
.mqt-cb-inspect-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 480px) {
  .mqt-cb-inspect-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── 5-Second Weekly Set Intro Overlay ──────────────────────────────────────── */
.mqt-cb-intro-replay {
  padding: 2px 8px;
  min-height: 22px;
  font-size: 10px;
  border-color: rgba(167, 139, 250, 0.45);
  color: #ddd6fe;
}
.mqt-cb-set-intro-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99996;
  background: rgba(5, 8, 16, 0.84);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.mqt-cb-set-intro-card {
  width: min(520px, 100%);
  background: linear-gradient(155deg, rgba(20, 27, 45, 0.98), rgba(11, 15, 27, 0.98));
  border: 1.5px solid rgba(167, 139, 250, 0.55);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72), 0 0 36px rgba(167, 139, 250, 0.22);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #f8fafc;
}
.mqt-cb-set-intro-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mqt-cb-set-intro-kicker {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c4b5fd;
}
.mqt-cb-set-intro-title {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 900;
  color: #fde68a;
  letter-spacing: 0.02em;
}
.mqt-cb-set-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.mqt-cb-set-intro-unit {
  background: rgba(9, 13, 24, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.mqt-cb-set-intro-unit img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center bottom;
}
.mqt-cb-set-intro-badge {
  font-size: 9px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.22);
  border: 1px solid rgba(167, 139, 250, 0.5);
  color: #e9d5ff;
}
.mqt-cb-set-intro-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.mqt-cb-set-intro-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #a78bfa, #f6b941);
  transform-origin: left center;
  animation: mqtCbIntroDrain 5s linear forwards;
}
@keyframes mqtCbIntroDrain {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
@media (max-width: 480px) {
  .mqt-cb-set-intro-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Classic Centered MapleStory Chat Balloons (Boss Telegraphs & MVP Quips) ── */
.mqt-cb-chat-balloon {
  position: absolute;
  z-index: 32;
  transform: translate(-50%, -100%);
  max-width: 175px;
  padding: 5px 9px;
  background: #ffffff;
  color: #000000;
  border: 1.5px solid #000000;
  border-radius: 6px;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.35);
  font: 11.5px/1.32 Tahoma, Verdana, sans-serif;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  pointer-events: none;
  animation: mqtCbBalloonPop 180ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.mqt-cb-chat-balloon.is-shout {
  background: #fef9c3;
  color: #991b1b;
  font-weight: 700;
}
.mqt-cb-chat-balloon::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #000000;
}
.mqt-cb-chat-balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #ffffff;
}
.mqt-cb-chat-balloon.is-shout::after {
  border-top-color: #fef9c3;
}
@keyframes mqtCbBalloonPop {
  from { opacity: 0; transform: translate(-50%, -88%) scale(0.86); }
  to { opacity: 1; transform: translate(-50%, -100%) scale(1); }
}

/* Shop odds by squad level (TFT-style) */
.mqt-cb-shop-odds { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 9.5px; font-weight: 800; margin: 0 0 4px; color: #93a3bd; }
.mqt-cb-shop-odds .lbl { margin-right: 2px; font-weight: 700; }
.mqt-cb-shop-odds .o { padding: 0 5px; border-radius: 999px; line-height: 15px; background: rgba(255, 255, 255, 0.06); font-variant-numeric: tabular-nums; }
.mqt-cb-shop-odds .rarity-common { color: #cbd5e1; }
.mqt-cb-shop-odds .rarity-rare { color: #38bdf8; }
.mqt-cb-shop-odds .rarity-epic { color: #c084fc; }
.mqt-cb-shop-odds .rarity-legendary { color: #fbbf24; }
.mqt-cb-shop-odds .rarity-mythic { color: #f472b6; }

/* Star-up burst */
.mqt-cb-starup { animation: mqtCbStarUp 1s ease-out; position: relative; z-index: 5; }
.mqt-cb-starup::after { content: '★'; position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); font-size: 26px; color: #fde047; text-shadow: 0 0 12px rgba(253, 224, 71, 0.9); animation: mqtCbStarPop 1s ease-out forwards; pointer-events: none; }
@keyframes mqtCbStarUp { 0% { filter: brightness(1); } 20% { filter: brightness(2) drop-shadow(0 0 10px #fde047); transform: scale(1.12); } 100% { filter: brightness(1); transform: scale(1); } }
@keyframes mqtCbStarPop { 0% { opacity: 0; transform: translate(-50%, -20%) scale(0.4); } 30% { opacity: 1; transform: translate(-50%, -60%) scale(1.3); } 100% { opacity: 0; transform: translate(-50%, -140%) scale(0.9); } }

/* Big-crit punch */
.mqt-cb-punch { animation: mqtCbPunch 0.18s ease-out; }
@keyframes mqtCbPunch { 0% { transform: scale(1); filter: brightness(1); } 35% { transform: scale(1.015); filter: brightness(1.35); } 100% { transform: scale(1); filter: brightness(1); } }
@media (prefers-reduced-motion: reduce) { .mqt-cb-starup, .mqt-cb-starup::after, .mqt-cb-punch { animation: none; } }

/* Weekly rule chip */
.mqt-cb-aug-chip.mqt-cb-rule-chip { background: linear-gradient(135deg, rgba(20, 184, 166, 0.22), rgba(56, 189, 248, 0.14)); border-color: rgba(45, 212, 191, 0.55); color: #99f6e4; }

/* ══ Platform board (Nov 2026): units stand on MapleStory-style footholds instead of boxes on a map picture ══
   The ledges are drawn in CSS (no game art); the map render stays as distant scenery behind them. */
.mqt-cb-board-frame.is-platforms {
  --ledge-top: linear-gradient(180deg, #a6e35a 0%, #6fbf3a 55%, #4b8f27 100%);
  --ledge-body-color: #7a5230;
  --ledge-stone: rgba(52, 32, 16, 0.55);
  --ledge-edge: #4a2f17;
  --ledge-tuft: #8fd14f;
}
.mqt-cb-board-frame.is-platforms[data-terrain="forest"] { --ledge-top: linear-gradient(180deg, #7ccf6a 0%, #3f9a47 60%, #2a6e33 100%); --ledge-body-color: #5b4330; --ledge-tuft: #6bc45c; }
.mqt-cb-board-frame.is-platforms[data-terrain="rock"] { --ledge-top: linear-gradient(180deg, #f0c27a 0%, #c98b45 60%, #9a6030 100%); --ledge-body-color: #8a4f2a; --ledge-stone: rgba(60, 25, 8, 0.5); --ledge-edge: #5a2e12; --ledge-tuft: transparent; }
.mqt-cb-board-frame.is-platforms[data-terrain="concrete"] { --ledge-top: linear-gradient(180deg, #d5d9df 0%, #a3a9b3 60%, #7b818b 100%); --ledge-body-color: #565b64; --ledge-stone: rgba(20, 22, 28, 0.45); --ledge-edge: #33363d; --ledge-tuft: transparent; }
.mqt-cb-board-frame.is-platforms[data-terrain="wood"] { --ledge-top: linear-gradient(180deg, #e0b070 0%, #b47a3c 60%, #8a5628 100%); --ledge-body-color: #6e4522; --ledge-stone: rgba(40, 22, 8, 0.0); --ledge-edge: #4a2c12; --ledge-tuft: transparent; }
.mqt-cb-board-frame.is-platforms[data-terrain="dungeon"] { --ledge-top: linear-gradient(180deg, #8fa36a 0%, #5d6e45 60%, #3c4a2c 100%); --ledge-body-color: #3d3a45; --ledge-stone: rgba(10, 10, 16, 0.55); --ledge-edge: #24222a; --ledge-tuft: #7c9156; }

.mqt-cb-board-frame.is-platforms .mqt-cb-board-scrim { background: linear-gradient(180deg, rgba(6, 10, 20, 0.18), rgba(6, 10, 20, 0.38)); }
.mqt-cb-board-frame.is-platforms .mqt-cb-midline { opacity: 0.35; }

.mqt-cb-ledges { display: none; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.mqt-cb-board-frame.is-platforms .mqt-cb-ledges { display: block; }
.mqt-cb-ledges i {
  position: absolute;
  left: 1.5%;
  right: 1.5%;
  top: calc(var(--r) * 25% + 19.2%);
  height: 5.4%;
  border-radius: 4px 4px 9px 9px;
  background:
    radial-gradient(circle at 18% 62%, var(--ledge-stone) 0 2px, transparent 2.6px) 0 0 / 23px 100%,
    radial-gradient(circle at 70% 40%, var(--ledge-stone) 0 1.6px, transparent 2.2px) 0 0 / 31px 100%,
    linear-gradient(180deg, var(--ledge-body-color), var(--ledge-edge));
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.45);
}
/* the walkable top: grass / rock / concrete strip with little tufts */
.mqt-cb-ledges i::before {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: -4px;
  height: 7px;
  border-radius: 5px;
  background: var(--ledge-top);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.mqt-cb-ledges i::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 6px;
  background: radial-gradient(ellipse at 50% 100%, var(--ledge-tuft) 0 2px, transparent 3px) 0 0 / 11px 100% repeat-x;
  opacity: 0.9;
}
.mqt-cb-ledges i:nth-child(1) { left: 3%; right: 3%; }
.mqt-cb-ledges i:nth-child(2) { left: 0.5%; right: 2%; }
.mqt-cb-ledges i:nth-child(3) { left: 2%; right: 0.5%; }

/* tiles become faint slots on the ground; highlights still show */
.mqt-cb-board-frame.is-platforms .mqt-cb-tiles { z-index: 0; }
.mqt-cb-board-frame.is-platforms .mqt-cb-tile:not(.is-drag-over):not(.is-in-range):not(.is-in-range-target):not(.is-range-origin):not(.is-aoe-flash) {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  box-shadow: none;
}
.mqt-cb-board-frame.is-platforms .mqt-cb-tile[data-side="player"].is-droppable:not(.is-drag-over):not(.is-in-range) { border-color: rgba(110, 231, 183, 0.14); }

/* units: a character standing on the ledge, Maple-style name tag at its feet */
.mqt-cb-board-frame.is-platforms .mqt-cb-unit { padding: 0; }
.mqt-cb-board-frame.is-platforms .mqt-cb-unit .mqt-cb-unit-card,
.mqt-cb-board-frame.is-platforms .mqt-cb-unit[data-rarity] .mqt-cb-unit-card,
.mqt-cb-board-frame.is-platforms .mqt-cb-unit[data-stars] .mqt-cb-unit-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  padding: 0;
  border-radius: 0;
}
.mqt-cb-board-frame.is-platforms .mqt-cb-unit[data-stars="3"] .mqt-cb-unit-card::after { display: none; }
.mqt-cb-board-frame.is-platforms .mqt-cb-avatar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22.5%;
  height: 70%;
  flex: none;
  align-items: flex-end;
}
.mqt-cb-board-frame.is-platforms .mqt-cb-facing-wrap,
.mqt-cb-board-frame.is-platforms .mqt-cb-sprite-motion { align-items: flex-end; }
.mqt-cb-board-frame.is-platforms .mqt-cb-avatar img { max-height: 100%; max-width: 100%; }
.mqt-cb-board-frame.is-platforms .mqt-cb-avatar::before { bottom: -3px; width: 62%; height: 6px; z-index: 0; }
/* rarity / star aura on the ground under the feet */
.mqt-cb-board-frame.is-platforms .mqt-cb-unit-card::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 20%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--cb-aura, rgba(110, 231, 183, 0.55)), transparent 70%);
  pointer-events: none;
}
.mqt-cb-board-frame.is-platforms .mqt-cb-unit.side-enemy { --cb-aura: rgba(248, 113, 113, 0.45); }
.mqt-cb-board-frame.is-platforms .mqt-cb-unit[data-rarity="rare"] { --cb-aura: rgba(56, 189, 248, 0.6); }
.mqt-cb-board-frame.is-platforms .mqt-cb-unit[data-rarity="epic"] { --cb-aura: rgba(192, 132, 252, 0.65); }
.mqt-cb-board-frame.is-platforms .mqt-cb-unit[data-rarity="legendary"] { --cb-aura: rgba(251, 191, 36, 0.7); }
.mqt-cb-board-frame.is-platforms .mqt-cb-unit[data-rarity="mythic"] { --cb-aura: rgba(244, 114, 182, 0.75); }
.mqt-cb-board-frame.is-platforms .mqt-cb-unit[data-rarity="boss"] { --cb-aura: rgba(239, 68, 68, 0.7); }
.mqt-cb-board-frame.is-platforms .mqt-cb-unit.is-selected .mqt-cb-unit-card { box-shadow: none; }
.mqt-cb-board-frame.is-platforms .mqt-cb-unit.is-selected { --cb-aura: rgba(246, 185, 65, 0.95); }
.mqt-cb-board-frame.is-platforms .mqt-cb-unit.is-selected .mqt-cb-unit-name { outline: 1px solid #f6b941; }

.mqt-cb-board-frame.is-platforms .mqt-cb-unit-name {
  position: absolute;
  left: 50%;
  bottom: 3.5%;
  transform: translateX(-50%);
  width: auto;
  max-width: 98%;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.66);
  font-size: 8.5px;
  line-height: 1.25;
  z-index: 3;
}
.mqt-cb-board-frame.is-platforms .mqt-cb-unit.side-enemy .mqt-cb-unit-name { color: #fecaca; }
.mqt-cb-board-frame.is-platforms .mqt-cb-bars {
  position: absolute;
  top: auto;
  bottom: -5%;
  left: 24%;
  right: 24%;
  width: auto;
  margin: 0;
  z-index: 3;
}
.mqt-cb-board-frame.is-platforms .mqt-cb-star-corner { top: auto; bottom: 25%; left: 4%; right: auto; }
.mqt-cb-board-frame.is-platforms .mqt-cb-unit-items { top: auto; bottom: 36%; left: 3%; flex-direction: column; }
.mqt-cb-board-frame.is-platforms .mqt-cb-info-tile { bottom: 25%; top: auto; right: 3%; width: 15px; height: 15px; font-size: 9px; opacity: 0.7; }
.mqt-cb-board-frame.is-platforms .mqt-cb-ko-badge { z-index: 4; }

/* Side-view scenery behind the platforms (CSS only): sky, clouds and far hills per terrain */
.mqt-cb-board-frame.is-platforms {
  --sky-a: #7cc4f2; --sky-b: #d4f0fd; --cloud: rgba(255, 255, 255, 0.85);
  --hill-a: rgba(96, 170, 84, 0.75); --hill-b: rgba(64, 132, 70, 0.8);
  background:
    radial-gradient(ellipse 18% 6% at 18% 14%, var(--cloud), transparent 70%),
    radial-gradient(ellipse 12% 5% at 26% 11%, var(--cloud), transparent 70%),
    radial-gradient(ellipse 20% 6% at 74% 22%, var(--cloud), transparent 70%),
    radial-gradient(ellipse 11% 4% at 83% 19%, var(--cloud), transparent 70%),
    radial-gradient(ellipse 45% 20% at 20% 100%, var(--hill-b), transparent 72%),
    radial-gradient(ellipse 55% 24% at 78% 100%, var(--hill-a), transparent 72%),
    radial-gradient(ellipse 60% 30% at 45% 62%, var(--hill-a), transparent 70%),
    linear-gradient(180deg, var(--sky-a), var(--sky-b));
  border-color: rgba(255, 255, 255, 0.18);
}
.mqt-cb-board-frame.is-platforms[data-terrain="forest"] { --sky-a: #5fb6c9; --sky-b: #c6ecd9; --hill-a: rgba(46, 120, 72, 0.8); --hill-b: rgba(30, 90, 56, 0.85); }
.mqt-cb-board-frame.is-platforms[data-terrain="rock"] { --sky-a: #f0b46a; --sky-b: #fbe3bb; --cloud: rgba(255, 240, 220, 0.7); --hill-a: rgba(176, 102, 52, 0.75); --hill-b: rgba(140, 76, 38, 0.8); }
.mqt-cb-board-frame.is-platforms[data-terrain="concrete"] { --sky-a: #3c3f66; --sky-b: #7e7aa2; --cloud: rgba(200, 200, 230, 0.25); --hill-a: rgba(40, 42, 60, 0.85); --hill-b: rgba(28, 30, 44, 0.9); }
.mqt-cb-board-frame.is-platforms[data-terrain="wood"] { --sky-a: #6fb6ee; --sky-b: #cfeaff; --hill-a: rgba(52, 120, 190, 0.7); --hill-b: rgba(40, 96, 160, 0.75); }
.mqt-cb-board-frame.is-platforms[data-terrain="dungeon"] { --sky-a: #19171f; --sky-b: #3a3346; --cloud: rgba(160, 150, 190, 0.12); --hill-a: rgba(28, 26, 34, 0.9); --hill-b: rgba(20, 18, 26, 0.95); }
.mqt-cb-board-frame.is-platforms .mqt-cb-board-scrim { background: linear-gradient(180deg, rgba(6, 10, 20, 0.12), rgba(6, 10, 20, 0.22)); }
.mqt-cb-board-frame.is-platforms .mqt-cb-side-label { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.6); }
.mqt-cb-board-frame.is-platforms .mqt-cb-side-label.enemy { color: #ffd2cc; }
.mqt-cb-board-frame.is-platforms .mqt-cb-side-label.player { color: #c8ffe3; }

/* ── Attract mode (teaser page): the real game UI playing itself ───────────────────────── */
.mqt-cb-overlay.is-demo,
.mqt-cb-overlay.is-demo * { pointer-events: none !important; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.mqt-cb-overlay.is-demo .mqt-cb-top-right,
.mqt-cb-overlay.is-demo .mqt-cb-intro-replay,
.mqt-cb-overlay.is-demo [data-el="set-pill"],
.mqt-cb-overlay.is-demo [data-el="mesos-pill"],
.mqt-cb-overlay.is-demo [data-el="streak-pill"],
.mqt-cb-overlay.is-demo .mqt-cb-drawer-panel,
.mqt-cb-overlay.is-demo .mqt-cb-lb-panel,
.mqt-cb-overlay.is-demo .mqt-cb-selected-bar,
.mqt-cb-overlay.is-demo .mqt-cb-item-tray,
.mqt-cb-overlay.is-demo .mqt-cb-bench-panel,
.mqt-cb-overlay.is-demo .mqt-cb-tip-bar,
.mqt-cb-overlay.is-demo .mqt-cb-shop-panel,
.mqt-cb-overlay.is-demo .mqt-cb-action-btns,
.mqt-cb-overlay.is-demo .mqt-cb-result-actions,
.mqt-cb-overlay.is-demo .mqt-cb-info-btn,
.mqt-cb-overlay.is-demo .mqt-cb-side-label.player > span:last-child,
.mqt-cb-overlay.is-demo .mqt-cb-toast { display: none !important; }
.mqt-cb-overlay.is-demo .mqt-cb-breakdown { max-height: 150px; overflow: hidden; }

.mqt-cb-overlay.is-demo .mqt-cb-main { grid-template-columns: minmax(0, 1fr); }
.mqt-cb-overlay.is-demo .mqt-cb-sidebar { order: 2; }
.mqt-cb-overlay.is-demo .mqt-cb-shell { max-width: 760px; margin: 0 auto; }
.mqt-cb-overlay.is-demo .mqt-cb-sidebar,
.mqt-cb-overlay.is-demo .mqt-cb-synergy-panel { height: auto; max-height: none; min-height: 0; }
.mqt-cb-overlay.is-demo .mqt-cb-synergy-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 5px; align-content: start; max-height: none; overflow: visible; }
.mqt-cb-overlay.is-demo .mqt-cb-synergy-badge { height: auto; min-height: 0; }
.mqt-cb-overlay.is-demo .mqt-cb-arena-wrap { position: relative; }
.mqt-cb-overlay.is-demo [data-el="result-wrap"] { position: absolute; left: 6%; right: 6%; top: 22%; z-index: 40; }
@media (max-width: 600px) {
  .mqt-cb-overlay.is-demo .mqt-cb-breakdown,
  .mqt-cb-overlay.is-demo .mqt-cb-income-row { display: none; }
  .mqt-cb-overlay.is-demo [data-el="result-wrap"] { top: 30%; }
}

/* ── Platforms built from real map tiles (map builder preset, test in /arena/play) ── */
.mqt-cb-ledges b { display: none; }
.mqt-cb-board-frame.is-platforms.is-wz {
  background:
    var(--wz-bg) repeat-x center var(--wz-bg-y, 100%) / var(--wz-bg-w, auto) var(--wz-bg-h, auto),
    var(--wz-sky, #9fd3f5);
}
.mqt-cb-board-frame.is-platforms.is-wz .mqt-cb-board-scrim { background: linear-gradient(180deg, rgba(6, 10, 20, 0.05), rgba(6, 10, 20, 0.15)); }
.mqt-cb-board-frame.is-platforms.is-wz .mqt-cb-ledges i {
  left: var(--wz-left-w, 0px);
  right: var(--wz-right-w, 0px);
  border-radius: 0;
  box-shadow: none;
  background: var(--wz-body) repeat left top / var(--wz-body-w) var(--wz-body-h);
  height: max(5.4%, var(--wz-body-h, 0px));
}
.mqt-cb-board-frame.is-platforms.is-wz .mqt-cb-ledges i:nth-child(n) { left: calc(var(--wz-left-w, 0px) + 1%); right: calc(var(--wz-right-w, 0px) + 1%); }
.mqt-cb-board-frame.is-platforms.is-wz .mqt-cb-ledges i::before {
  left: 0;
  right: 0;
  top: calc(-1 * var(--wz-top-oy, 0px));
  height: var(--wz-top-h);
  border-radius: 0;
  box-shadow: none;
  background: var(--wz-top) repeat-x left top / var(--wz-top-w) var(--wz-top-h);
}
.mqt-cb-board-frame.is-platforms.is-wz .mqt-cb-ledges i::after { display: none; }
.mqt-cb-board-frame.is-platforms.is-wz .mqt-cb-ledges b {
  display: block;
  position: absolute;
  top: calc(-1 * var(--wz-top-oy, 0px));
}
.mqt-cb-board-frame.is-platforms.is-wz .mqt-cb-ledges b:first-child {
  right: 100%;
  width: var(--wz-left-w);
  height: var(--wz-left-h);
  background: var(--wz-left) no-repeat right top / var(--wz-left-w) var(--wz-left-h);
}
.mqt-cb-board-frame.is-platforms.is-wz .mqt-cb-ledges b:last-child {
  left: 100%;
  width: var(--wz-right-w);
  height: var(--wz-right-h);
  background: var(--wz-right) no-repeat left top / var(--wz-right-w) var(--wz-right-h);
}
