/* ==========================================================================
   MOBILE PORTRAIT ISOLATION LAYER
   PC 版不會吃到任何規則；僅在 body.tz-mobile 生效
   ========================================================================== */
body:not(.tz-mobile) .mob-only {
  display: none !important;
}

body.tz-mobile {
  height: 100dvh;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

body.tz-mobile #app {
  width: 100vw;
  height: 100dvh;
}

/* 隱藏 PC 專用常駐區塊與 hover 浮層 */
body.tz-mobile #topbar,
body.tz-mobile #sidebar,
body.tz-mobile #unit-dock,
body.tz-mobile #pc-hud-card,
body.tz-mobile #map-top-hud,
body.tz-mobile #weather-hud,
body.tz-mobile #drag-hint-hud,
body.tz-mobile #targeting-preview-hud,
body.tz-mobile #targeting-corner-hud,
body.tz-mobile #unit-action-menu,
body.tz-mobile .leaflet-control-zoom,
body.tz-mobile .unit-hover-tip,
body.tz-mobile .boss-hover-tip {
  display: none !important;
}

/* 手機部隊圖標長按／觸控保護與懸停待機狀態 */
body.tz-mobile .unit-marker-wrapper,
body.tz-mobile .unit-token {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

body.tz-mobile .unit-token {
  cursor: pointer;
}

body.tz-mobile .unit-token.is-pressing {
  transform: scale(1.1);
  border-color: #7dd3fc;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.45), 0 6px 16px rgba(0, 0, 0, 0.85);
}

body.tz-mobile .unit-marker-wrapper.is-dragging .unit-token {
  transform: scale(1.22);
  border-color: #38bdf8;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.9), 0 0 20px rgba(56, 189, 248, 0.95);
}

body.tz-mobile .unit-marker-wrapper.is-pending-drop .unit-token {
  transform: scale(1.14);
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.72), 0 0 18px rgba(56, 189, 248, 0.95);
}

/* ==========================================================================
   MOBILE COMPACT TOPBAR
   ========================================================================== */
body.tz-mobile #mob-topbar {
  flex-shrink: 0;
  background: linear-gradient(180deg, #09101f 0%, #0e192d 100%);
  border-bottom: 1px solid var(--border-strong);
  padding: calc(4px + env(safe-area-inset-top)) 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
}

.mob-top-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mob-status-left {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: #f8fafc;
}

.mob-day-txt {
  white-space: nowrap;
  color: #38bdf8;
}

.mob-ctrl-txt {
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mob-top-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.mob-chip-btn {
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  border-radius: 99px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.mob-chip-btn.mob-boss-btn {
  position: relative;
  background: rgba(185, 28, 28, 0.8);
  border-color: #f43f5e;
  color: #fecdd3;
}
.mob-chip-btn.mob-boss-btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 10px 2px rgba(239, 68, 68, 0.85);
  opacity: 0;
  will-change: opacity;
  animation: pulseGlowOpacity 1.5s ease-in-out infinite;
}

.mob-res-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.mob-res-pill {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 6px;
  padding: 3px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  color: #f8fafc;
  min-width: 0;
}

.mob-res-pill.danger-warn {
  position: relative;
  border-color: #ef4444;
  background: rgba(127, 29, 29, 0.52);
}
.mob-res-pill.danger-warn::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 10px 2px rgba(239, 68, 68, 0.85);
  opacity: 0;
  will-change: opacity;
  animation: pulseGlowOpacity 1.8s ease-in-out infinite;
}

.mob-res-top {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.mob-res-pill.danger-warn .mob-res-top {
  color: #fca5a5;
}

.mob-res-delta {
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
}

/* ==========================================================================
   WORKSPACE & MAP FLOATING CONTROLS
   ========================================================================== */
body.tz-mobile #workspace {
  flex: 1;
  min-height: 0;
  position: relative;
  display: block;
  overflow: hidden;
}

body.tz-mobile #map-container {
  width: 100%;
  height: 100%;
  position: relative;
}

body.tz-mobile #map-container.heli-targeting-mode .unit-marker-wrapper,
body.tz-mobile #map-container.heli-targeting-mode .boss-marker-wrapper,
body.tz-mobile #map-container.heli-targeting-mode .bridge-marker-root {
  pointer-events: none !important;
  opacity: 0.72;
}
body.tz-mobile #map-container.heli-targeting-mode .bridge-map-badge {
  pointer-events: none !important;
}

/* Top-Left Map Buttons & Collapsible GIS Panel */
.mob-map-tl-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 820;
  display: flex;
  gap: 6px;
}

.mob-float-btn {
  background: rgba(10, 17, 32, 0.92);
  border: 1px solid var(--border-strong);
  color: #f8fafc;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-family: inherit;
}

.mob-float-btn.active {
  border-color: #38bdf8;
  background: rgba(14, 116, 144, 0.55);
}

body.tz-mobile #map-hud-tl {
  display: none;
  position: absolute;
  top: 48px;
  left: 10px;
  width: calc(100vw - 20px);
  max-width: 310px;
  max-height: 62vh;
  overflow-y: auto;
  z-index: 900;
}

body.tz-mobile #map-hud-tl.mob-open {
  display: flex;
}

body.tz-mobile #map-hud-tl.collapsed .hud-body {
  display: flex;
}

/* Targeting Mode Banner */
.mob-mode-banner {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 860;
  background: rgba(9, 16, 31, 0.96);
  border: 1.5px solid #38bdf8;
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  gap: 6px;
}

.mob-mode-banner.is-targeting {
  border-color: #f43f5e;
}

.mob-mode-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
}

/* Top Slide-Down Unit Info Card */
.mob-unit-top-card {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  z-index: 930;
  background: rgba(11, 18, 32, 0.96);
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  padding: 9px 11px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.85), 0 0 18px rgba(56, 189, 248, 0.22);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 44%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(calc(-100% - 16px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease;
}

.mob-unit-top-card > * {
  flex-shrink: 0;
}

.mob-unit-top-card.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Bottom Targeting Two-Step Confirmation Card */
.mob-targeting-confirm {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  z-index: 950;
  background: rgba(10, 17, 32, 0.97);
  border: 1.5px solid #38bdf8;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  gap: 8px;
}

/* Map Bottom Floating Pills (above peek sheet) */
.mob-map-stats {
  position: absolute;
  left: 10px;
  bottom: 62px;
  z-index: 820;
  background: rgba(10, 17, 32, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 4px;
  color: #cbd5e1;
  backdrop-filter: blur(8px);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: calc(100vw - 140px);
  overflow: hidden;
  contain: layout style;
}

.mob-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 3px;
}

.mob-mini-cell {
  background: rgba(7, 11, 20, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-left: 2px solid #64748b;
  border-radius: 5px;
  padding: 2px 6px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
  font-size: 10.5px;
  white-space: nowrap;
}

.mob-mini-lbl { color: #94a3b8; font-weight: 600; }
.mob-mini-val { color: #f8fafc; font-weight: 800; font-variant-numeric: tabular-nums; }

.mob-mini-cell.is-blue { border-left-color: #38bdf8; }
.mob-mini-cell.is-amber { border-left-color: #fbbf24; }
.mob-mini-cell.is-amber .mob-mini-val { color: #fde68a; }
.mob-mini-cell.is-green { border-left-color: #10b981; }
.mob-mini-cell.is-green .mob-mini-val { color: #6ee7b7; }
.mob-mini-cell.is-danger { border-left-color: #f97316; background: rgba(124, 45, 18, 0.35); }
.mob-mini-cell.is-danger .mob-mini-val { color: #fdba74; }
.mob-mini-cell.is-red { border-left-color: #ef4444; background: rgba(127, 29, 29, 0.35); }
.mob-mini-cell.is-red .mob-mini-val { color: #fca5a5; }
.mob-mini-cell.is-gold { border-left-color: #f59e0b; }
.mob-mini-cell.is-gold .mob-mini-val { color: #fcd34d; }

.mob-mini-fx {
  font-size: 9.5px;
  font-weight: 700;
  color: #7dd3fc;
  padding: 1px 4px;
  text-align: center;
  white-space: nowrap;
}

.mob-fab-stack {
  position: absolute;
  right: 10px;
  bottom: 62px;
  z-index: 825;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: stretch;
  gap: 5px;
  pointer-events: none;
}

.mob-idle-fab {
  position: relative;
  pointer-events: auto;
  background: rgba(180, 83, 9, 0.94);
  border: 1.5px solid #fbbf24;
  color: #fff;
  border-radius: 99px;
  padding: 7px 10px;
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 800;
  box-shadow: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.mob-recall-fab {
  position: relative;
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.94);
  border: 1.5px solid rgba(248, 113, 113, 0.78);
  color: #fecaca;
  border-radius: 99px;
  padding: 7px 10px;
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.mob-idle-fab.is-danger {
  background: rgba(194, 65, 12, 0.95);
  border-color: #fb923c;
}
.mob-idle-fab.is-danger::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 10px 2px rgba(249, 115, 22, 0.85);
  opacity: 0;
  will-change: opacity;
  animation: pulseGlowOpacity 1.6s ease-in-out infinite;
}

.mob-idle-fab.is-clear {
  background: rgba(6, 95, 70, 0.92);
  border-color: #34d399;
}

/* ==========================================================================
   THREE-STATE DRAGGABLE BOTTOM SHEET
   ========================================================================== */
body.tz-mobile #mob-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 940;
  background: rgba(11, 18, 32, 0.97);
  border-top: 1.5px solid var(--border-strong);
  border-radius: 14px 14px 0 0;
  box-shadow: none;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: height 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

body.tz-mobile #mob-sheet.is-dragging-sheet {
  transition: none !important;
}

body.tz-mobile #mob-sheet[data-state="peek"] {
  height: 54px;
}

body.tz-mobile #mob-sheet[data-state="half"] {
  height: 48%;
}

body.tz-mobile #mob-sheet[data-state="full"] {
  height: 86%;
}

body.tz-mobile #mob-sheet.is-hidden-targeting {
  display: none !important;
}

.mob-sheet-handle {
  flex-shrink: 0;
  padding: 5px 12px 6px;
  background: rgba(9, 16, 31, 0.95);
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  touch-action: none;
  cursor: ns-resize;
  user-select: none;
}

.mob-grab-pill {
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.55);
  margin: 0 auto 4px;
}

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

.mob-sheet-title {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mob-sheet-head-btns {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.mob-sheet-tabs {
  flex-shrink: 0;
  display: flex;
  background: #09101f;
  border-bottom: 1px solid var(--border);
}

.mob-sheet-tab {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.mob-sheet-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(56, 189, 248, 0.09);
}

.mob-sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 10px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  contain: layout style;
}

.mob-sheet-body > * {
  flex-shrink: 0;
}

.mob-unit-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 11.5px;
}

.mob-unit-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mob-unit-name {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  min-width: 0;
}

.mob-unit-status-pill {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  white-space: nowrap;
}

.mob-unit-stats-box {
  background: rgba(7, 11, 20, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mob-unit-stats-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #cbd5e1;
}

.mob-unit-stats-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.mob-unit-sep {
  color: #64748b;
}

.mob-unit-xp-txt {
  font-size: 10.5px;
  font-weight: 700;
  color: #7dd3fc;
  white-space: nowrap;
  flex-shrink: 0;
}

.mob-unit-xp-txt.is-max {
  color: #fcd34d;
}

.mob-unit-xp-bar {
  width: 100%;
  max-width: none;
  height: 5px;
  margin-top: 0;
  flex: none;
}

.mob-unit-row-actions {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 6px;
}

body.tz-mobile .mob-unit-row-actions .btn {
  flex: 1 1 92px;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 11.5px;
  justify-content: center;
  white-space: nowrap;
}

body.tz-mobile .mob-unit-row-actions .mob-unit-fix-btn {
  flex: 1.45 1 148px;
}

/* ==========================================================================
   BOTTOM THUMB NAVIGATION BAR
   ========================================================================== */
body.tz-mobile #mob-bottombar {
  flex-shrink: 0;
  background: linear-gradient(180deg, #0c1426 0%, #070c17 100%);
  border-top: 1px solid var(--border-strong);
  padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
  display: flex;
  align-items: stretch;
  gap: 4px;
  z-index: 960;
}

.mob-nav-btn {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(18, 28, 48, 0.85);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 5px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-family: inherit;
  cursor: pointer;
  min-height: 44px;
}

.mob-nav-btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

body.tz-mobile .mob-nav-btn.is-recruit-ready {
  border-color: #fbbf24;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.55), rgba(217, 119, 6, 0.65));
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

body.tz-mobile .mob-nav-btn.is-order-free-ready {
  border-color: #34d399;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.58), rgba(16, 185, 129, 0.68));
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.mob-nav-ico {
  font-size: 15px;
  line-height: 1.1;
}

.mob-nav-lbl {
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.mob-endturn-btn {
  flex: 1.7;
  min-width: 84px;
  border: 1.5px solid #fbbf24;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  border-radius: 8px;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  min-height: 44px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.32);
}

.mob-endturn-btn.is-starve {
  border-color: #ef4444;
  background: linear-gradient(135deg, #b91c1c, #991b1b);
}

.mob-endturn-btn.is-gameover {
  border-color: #38bdf8;
  background: linear-gradient(135deg, #0284c7, #0369a1);
}

.mob-endturn-main {
  font-size: 11.5px;
  white-space: nowrap;
}

.mob-endturn-sub {
  font-size: 9.5px;
  opacity: 0.92;
  white-space: nowrap;
}

/* ==========================================================================
   MOBILE MODALS & TOAST ADAPTATIONS
   ========================================================================== */
body.tz-mobile .modal-backdrop {
  padding: 0;
  align-items: flex-end;
}

body.tz-mobile .modal-card {
  max-width: 100% !important;
  width: 100%;
  max-height: 92dvh;
  border-radius: 16px 16px 0 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

body.tz-mobile .modal-head {
  padding: 12px 14px;
  flex-wrap: wrap;
  gap: 8px;
}

body.tz-mobile .modal-title {
  font-size: 14.5px;
}

body.tz-mobile .modal-body {
  padding: 12px 14px;
  -webkit-overflow-scrolling: touch;
}

body.tz-mobile .modal-foot {
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  flex-wrap: wrap;
}

body.tz-mobile .modal-foot .btn {
  flex: 1;
  justify-content: center;
  min-height: 42px;
}

body.tz-mobile .grid-2 {
  grid-template-columns: 1fr;
}

body.tz-mobile .facility-grid {
  grid-template-columns: 1fr;
}

body.tz-mobile .briefing-delta-grid {
  grid-template-columns: repeat(3, 1fr);
}

body.tz-mobile .aar-grid-3 {
  grid-template-columns: repeat(2, 1fr);
}

body.tz-mobile .choice-card {
  min-height: 44px;
}

body.tz-mobile #recruit-modal-body > div:first-child {
  flex-direction: column;
  align-items: stretch !important;
}

body.tz-mobile #recruit-sector {
  width: 100% !important;
  margin-top: 4px;
}

body.tz-mobile .btn {
  min-height: 36px;
}

body.tz-mobile .btn-sm {
  min-height: 32px;
}

body.tz-mobile #toast-container {
  top: calc(84px + env(safe-area-inset-top));
  max-width: calc(100vw - 24px);
  width: max-content;
}

body.tz-mobile .toast {
  font-size: 12px;
  padding: 7px 12px;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

.mob-more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mob-more-card {
  background: rgba(22, 33, 54, 0.88);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 10px;
  color: #f8fafc;
  font-family: inherit;
  font-weight: 700;
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.mob-more-card.danger {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
}

body.tz-mobile .mob-cheat-btn {
  border-color: #fbbf24;
  background: linear-gradient(135deg, rgba(126, 34, 206, 0.72), rgba(217, 119, 6, 0.72));
  color: #fef3c7;
}

body.tz-mobile .cheat-res-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.tz-mobile .cheat-two-col {
  grid-template-columns: 1fr;
}