/* =========================
   RESPONSIVE
========================= */

.mobile-only {
  display: none !important;
}

@media (min-width: 1025px) {
  body:not(.combat-mode) #bottomUI {
    height: 268px !important;
    grid-template-columns: minmax(0, 1.9fr) minmax(240px, 320px) minmax(300px, 380px) !important;
  }

  body:not(.combat-mode) #hudSection {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-content: start !important;
    gap: 8px !important;
    overflow-y: auto !important;
  }

  body:not(.combat-mode) #hudSection button {
    min-height: 48px !important;
    margin: 0 !important;
  }
}

@media (min-width: 3000px) {
  body.in-game {
    --world-camera-scale: 1.8;
  }

  body:not(.combat-mode) #bottomUI {
    height: 248px;
    grid-template-columns: minmax(0, 2.8fr) 360px 420px 260px;
    padding: 16px;
  }
}

@media (min-width: 2200px) and (max-width: 2999px) {
  body.in-game {
    --world-camera-scale: 1.45;
  }

  body:not(.combat-mode) #bottomUI {
    height: 236px;
    grid-template-columns: minmax(0, 2.5fr) 320px 380px 240px;
    padding: 14px;
  }
}

@media (min-width: 1600px) and (max-width: 2199px) and (min-height: 900px) {
  body.in-game {
    --world-camera-scale: 1.18;
  }

  body:not(.combat-mode) #bottomUI {
    height: 212px;
    grid-template-columns: minmax(0, 2.2fr) minmax(240px, 320px) minmax(280px, 360px) minmax(190px, 240px);
  }
}

@media (min-width: 1025px) and (max-width: 1280px), (min-width: 1181px) and (max-height: 760px) {
  body.in-game {
    --world-camera-scale: 0.94;
  }

  body:not(.combat-mode) #bottomUI {
    grid-template-columns: 2fr 160px 220px 160px !important;
    gap: 6px !important;
    padding: 6px !important;
    max-height: 220px !important;
    height: 220px !important;
  }
  body:not(.combat-mode) #minimap {
    width: 110px !important;
    height: 110px !important;
    border-width: 2px !important;
    margin: 0 !important;
  }
  body:not(.combat-mode) #minimapContainer {
    padding: 6px !important;
    gap: 4px !important;
  }
  body:not(.combat-mode) #minimapCoords {
    font-size: 0.82rem !important;
    min-height: 34px !important;
    padding: 4px 6px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
  }
  body:not(.combat-mode) #openWorldMapBtn {
    min-height: 28px !important;
    font-size: 10px !important;
    padding: 2px 6px !important;
    width: 100% !important;
    margin-top: auto !important;
  }
  body:not(.combat-mode) #hudSection {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4px !important;
    padding: 6px !important;
    align-content: start !important;
  }
  body:not(.combat-mode) #hudSection button {
    min-height: 32px !important;
    font-size: 10px !important;
    padding: 2px 4px !important;
    margin: 0 !important;
  }
  body:not(.combat-mode) #optionsSection {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding: 6px !important;
    justify-content: flex-start !important;
  }
  body:not(.combat-mode) #optionsSection button {
    min-height: 32px !important;
    font-size: 10px !important;
    padding: 2px 4px !important;
    margin: 0 !important;
  }
  body:not(.combat-mode) #chatControls {
    gap: 4px !important;
    margin-top: 2px !important;
  }
  body:not(.combat-mode) #chatControls select {
    width: 90px !important;
    padding: 4px !important;
    font-size: 10px !important;
    height: 30px !important;
    min-height: 30px !important;
  }
  body:not(.combat-mode) #chatControls input {
    padding: 4px 6px !important;
    font-size: 11px !important;
    height: 30px !important;
  }
  body:not(.combat-mode) #chatControls button {
    width: 70px !important;
    min-height: 30px !important;
    font-size: 10px !important;
  }
  body:not(.combat-mode) #chatBox {
    font-size: 0.76rem !important;
    padding: 6px !important;
  }
}

@media (min-width: 1025px) and (max-width: 1180px) and (max-height: 820px) {
  body.in-game {
    --world-camera-scale: 0.9;
  }

  body:not(.combat-mode) #bottomUI {
    height: 244px !important;
    max-height: 244px !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 280px) !important;
    grid-template-rows: 1fr 1fr !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  body:not(.combat-mode) #chatSection {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  body:not(.combat-mode) #minimapContainer {
    grid-column: 2;
    grid-row: 1;
  }

  body:not(.combat-mode) #hudSection {
    grid-column: 2;
    grid-row: 2;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  body:not(.combat-mode) #optionsSection {
    display: none !important;
  }
}

@media (min-width: 769px) and (max-width: 960px) {
  body.in-game {
    --world-camera-scale: 0.88;
  }

  #bottomUI {
    grid-template-columns: 1fr 1fr minmax(240px, 280px);
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 10px;
  }

  #chatSection {
    grid-column: 1 / span 2;
    grid-row: 1;
  }
  #minimapContainer {
    grid-column: 3;
    grid-row: 1;
    align-self: stretch;
    justify-content: center;
  }
  #hudSection {
    grid-column: 1 / span 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-content: start;
    gap: 8px;
    padding: 10px;
    min-height: auto;
  }
  #hudSection button {
    min-height: 38px !important;
    font-size: 11px !important;
    margin: 0 !important;
  }
  #optionsSection {
    grid-column: 3;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    min-height: auto;
  }
  #optionsSection button {
    min-height: 38px !important;
    font-size: 11px !important;
    margin: 0 !important;
  }
}

@media (min-width: 769px) and (max-width: 1100px) and (orientation: portrait) {
  body.in-game {
    --world-camera-scale: 0.78;
  }

  body:not(.combat-mode) #bottomUI {
    height: 244px;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 300px);
    grid-template-rows: 1fr 1fr;
    gap: 8px;
  }

  body:not(.combat-mode) #chatSection {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  body:not(.combat-mode) #minimapContainer {
    grid-column: 2;
    grid-row: 1;
  }

  body:not(.combat-mode) #hudSection {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  body:not(.combat-mode) #optionsSection {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  body.in-game {
    --world-camera-scale: 0.8;
  }

  body.in-game {
    height: 100dvh !important;
    overflow: hidden !important;
  }

  #gamePanel {
    height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    gap: 0 !important;
  }

  #mapContainer {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 4px !important;
    border-bottom: 2px solid #5f4827 !important;
    overflow: hidden !important;
  }

  body:not(.combat-mode) #bottomUI,
  #bottomUI {
    flex: none !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    height: clamp(190px, 30dvh, 250px) !important;
    max-height: 34dvh !important;
    min-height: 190px !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    background: linear-gradient(180deg, #15110d, #0f0c09) !important;
    border-top: 2px solid #5f4827 !important;
    overflow: hidden !important;
    align-items: stretch !important;
  }

  body:not(.combat-mode) .mobile-only,
  .mobile-only {
    display: flex !important;
  }

  body:not(.combat-mode) #mobileTabBar,
  #mobileTabBar {
    width: 100% !important;
    height: 42px !important;
    background: rgba(30, 24, 20, 0.95) !important;
    border-bottom: 1px solid rgba(216, 180, 106, 0.25) !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: stretch !important;
    flex-shrink: 0 !important;
  }

  .mobileTabBtn {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    color: #a7977c !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s, color 0.2s, border-bottom-color 0.2s !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    padding: 6px 2px 4px !important;
    font-family: 'Outfit', sans-serif !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
  }

  .mobileTabBtn svg {
    display: block !important;
    flex-shrink: 0 !important;
  }

  .mobileTabBtn span {
    display: block !important;
    line-height: 1 !important;
  }

  .mobileTabBtn:active {
    transform: scale(0.98);
  }

  .mobileTabBtn.active {
    color: #ffd700 !important;
    background: rgba(216, 180, 106, 0.08) !important;
    border-bottom: 3px solid #ffd700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4) !important;
  }

  .mobileTabBtn.active svg {
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5)) !important;
  }

  body:not(.combat-mode) #chatSection,
  body:not(.combat-mode) #minimapContainer,
  body:not(.combat-mode) #hudSection,
  body:not(.combat-mode) #optionsSection,
  #chatSection,
  #minimapContainer,
  #hudSection,
  #optionsSection {
    display: none !important;
    width: 100% !important;
    height: calc(100% - 42px) !important;
    padding: 8px !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  body:not(.combat-mode) #chatSection.mobile-visible,
  #chatSection.mobile-visible {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  body:not(.combat-mode) #minimapContainer.mobile-visible,
  body:not(.combat-mode) #hudSection.mobile-visible,
  body:not(.combat-mode) #optionsSection.mobile-visible,
  #minimapContainer.mobile-visible,
  #hudSection.mobile-visible,
  #optionsSection.mobile-visible {
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
  }

  body.combat-mode .mobile-only,
  body.combat-mode #combatSceneTabBar {
    display: flex !important;
  }

  body.combat-mode #mapContainer,
  body.combat-mode #gameWorld {
    display: none !important;
  }

.kick-player-btn {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: #ffffff;
    border: 1px solid #ffffff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transition: transform 0.15s ease, background 0.15s ease;
}
.kick-player-btn:hover {
    background: #dc2626;
    transform: scale(1.15);
}

.grid-kick-btn {
    top: -14px !important;
    right: 50% !important;
    transform: translateX(50%) !important;
    z-index: 35 !important;
}
.grid-kick-btn:hover {
    transform: translateX(50%) scale(1.25) !important;
}

.combatHUD-lock-btn {
    padding: 6px 12px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(216, 180, 106, 0.4);
    border-radius: 8px;
    color: #ffd700;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.combatHUD-lock-btn:hover {
    background: rgba(51, 65, 85, 0.95);
    border-color: #ffd700;
    transform: translateY(-1px);
}

  body.combat-mode .combat-tab-bar {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    background: rgba(20, 16, 13, 0.9) !important;
    border-bottom: 1px solid rgba(216, 180, 106, 0.18) !important;
    width: 100% !important;
    margin-bottom: 8px !important;
    border-radius: 10px 10px 0 0 !important;
    flex-shrink: 0 !important;
  }

  body.combat-mode .combatTabBtn {
    flex: 1 1 0 !important;
    background: transparent !important;
    border: none !important;
    padding: 12px 14px !important;
    color: #a7977c !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s, color 0.2s, border-bottom-color 0.2s !important;
    border-bottom: 3px solid transparent !important;
    font-family: 'Outfit', sans-serif !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
  }

  body.combat-mode .combatTabBtn.active {
    color: #ffd700 !important;
    background: rgba(216, 180, 106, 0.06) !important;
    border-bottom: 3px solid #ffd700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4) !important;
  }

  body.combat-mode .combatScene {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  body.combat-mode #combatSceneTabBar {
    grid-column: 1 !important;
    grid-row: 1 !important;
    order: 0 !important;
  }

  body.combat-mode .combatSceneBoardPanel {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto !important;
    gap: 10px !important;
    min-height: 0 !important;
  }

  body.combat-mode .combatSceneSidebar {
    display: none !important;
  }

  body.combat-mode #chatSection {
    display: none !important;
  }

  body.combat-mode .combatScene.show-info #chatSection {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: flex !important;
    height: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: linear-gradient(180deg, rgba(28, 21, 17, 0.94) 0%, rgba(18, 14, 11, 0.92) 100%) !important;
    border: 1px solid rgba(216, 180, 106, 0.22) !important;
    border-radius: 16px !important;
    padding: 12px !important;
  }

  body.combat-mode .combatScene.show-info #chatBox {
    flex: 1 !important;
    max-height: none !important;
  }

  body.combat-mode .combatScene.show-info .combatSceneBoardPanel {
    display: none !important;
  }

  body.combat-mode #combatPositionBoard {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
  }

  body.combat-mode #combatHUD {
    width: 100% !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  body:not(.combat-mode) #bottomUI {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    height: clamp(190px, 32dvh, 250px) !important;
    max-height: 36dvh !important;
    min-height: 190px !important;
  }

  body:not(.combat-mode) #mobileTabBar,
  body:not(.combat-mode) .mobile-only {
    display: flex !important;
  }

  body:not(.combat-mode) #chatSection,
  body:not(.combat-mode) #minimapContainer,
  body:not(.combat-mode) #hudSection,
  body:not(.combat-mode) #optionsSection {
    display: none !important;
    width: 100% !important;
    height: calc(100% - 42px) !important;
  }

  body:not(.combat-mode) #chatSection.mobile-visible,
  body:not(.combat-mode) #minimapContainer.mobile-visible,
  body:not(.combat-mode) #hudSection.mobile-visible,
  body:not(.combat-mode) #optionsSection.mobile-visible {
    display: flex !important;
  }

  body:not(.combat-mode) #chatSection.mobile-visible {
    flex-direction: column !important;
    overflow: hidden !important;
  }

  body:not(.combat-mode) #minimapContainer.mobile-visible,
  body:not(.combat-mode) #hudSection.mobile-visible,
  body:not(.combat-mode) #optionsSection.mobile-visible {
    flex-direction: column !important;
    overflow-y: auto !important;
  }
}


@media (max-width: 767px), (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  :root {
    --font-base: 12.5px;
    --ui-gap: 6px;
    --panel-padding: 8px;
  }
  body.in-game {
    --world-camera-scale: 0.68;
  }
  body.in-game {
    height: 100dvh !important;
    overflow: hidden !important;
  }
  #gamePanel {
    height: 100dvh !important;
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 0;
  }
  #mapContainer {
    flex: 1;
    min-height: 0;
    max-height: none;
    padding: 2px;
    border-bottom: 2px solid #5f4827;
    position: relative;
    overflow: hidden;
  }
  body:not(.combat-mode) #bottomUI,
  #bottomUI {
    flex: none;
    display: flex !important;
    flex-direction: column;
    padding: 0;
    height: clamp(138px, 42dvh, 190px) !important;
    max-height: 46dvh !important;
    min-height: 138px !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    background: linear-gradient(180deg,#15110d,#0f0c09);
    border-top: 2px solid #5f4827;
    overflow: hidden;
    align-items: stretch;
  }
  body:not(.combat-mode) .mobile-only,
  .mobile-only {
    display: flex !important;
  }
  body:not(.combat-mode) #mobileTabBar,
  #mobileTabBar {
    width: 100%;
    height: 40px;
    background: rgba(30, 24, 20, 0.95);
    border-bottom: 1px solid rgba(216, 180, 106, 0.25);
    display: flex !important;
    justify-content: space-around;
    align-items: stretch;
    flex-shrink: 0;
  }
  .mobileTabBtn {
    flex: 1;
    background: transparent;
    border: none;
    color: #a7977c;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-bottom-color 0.2s;
    border-bottom: 3px solid transparent;
    padding: 6px 2px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
  }
  .mobileTabBtn svg { display: block; flex-shrink: 0; }
  .mobileTabBtn span { display: block; line-height: 1; }
  .mobileTabBtn:active {
    transform: scale(0.95);
  }
  .mobileTabBtn.active {
    color: #ffd700;
    background: rgba(216, 180, 106, 0.08);
    border-bottom: 3px solid #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  }
  body:not(.combat-mode) #chatSection,
  body:not(.combat-mode) #minimapContainer,
  body:not(.combat-mode) #hudSection,
  body:not(.combat-mode) #optionsSection,
  #chatSection, #minimapContainer, #hudSection, #optionsSection {
    display: none !important;
    width: 100%;
    height: calc(100% - 40px) !important;
    padding: 6px;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
  }
  body:not(.combat-mode) #chatSection.mobile-visible,
  #chatSection.mobile-visible {
    display: flex !important;
    flex-direction: column;
    overflow: hidden !important;
  }
  body:not(.combat-mode) #minimapContainer.mobile-visible,
  body:not(.combat-mode) #hudSection.mobile-visible,
  body:not(.combat-mode) #optionsSection.mobile-visible,
  #minimapContainer.mobile-visible,
  #hudSection.mobile-visible,
  #optionsSection.mobile-visible {
    display: flex !important;
    flex-direction: column;
    overflow-y: auto !important;
  }
  #chatSection {
    justify-content: space-between;
    padding: 6px;
  }
  #chatSection h3 {
    display: none !important;
  }
  #chatBox {
    flex: 1;
    max-height: none;
    margin-bottom: 3px;
    height: auto;
    padding: 5px;
    font-size: 11px;
    line-height: 1.12;
  }
  #chatControls {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    width: 100%;
    align-items: stretch;
    margin-top: 0;
  }
  #chatChannel {
    flex: 0 0 108px;
    width: 108px;
    min-width: 108px;
    max-width: 36vw;
    height: 30px;
    min-height: 30px;
    font-size: 11px;
    line-height: 1.2;
    padding: 6px 28px 6px 10px;
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, #d8b46a 50%),
      linear-gradient(135deg, #d8b46a 50%, transparent 50%),
      linear-gradient(180deg, #1d1813, #2a221a);
    background-position:
      calc(100% - 16px) calc(50% - 2px),
      calc(100% - 10px) calc(50% - 2px),
      0 0;
    background-size: 6px 6px, 6px 6px, 100% 100%;
    background-repeat: no-repeat;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #chatChannel option {
    font-size: 11px;
  }
  #chatPrivateTo {
    flex: 1 1 120px;
    height: 28px;
    font-size: 11px;
    padding: 5px 8px;
  }
  #chatInput {
    flex: 1 1 180px;
    height: 28px;
    font-size: 12px !important;
    padding: 5px 8px;
  }
  #chatSendBtn {
    display: none !important;
  }
  .chat-msg {
    margin-bottom: 4px;
    line-height: 1.12;
    font-size: 12px;
  }
  .chat-msg .tag {
    margin-right: 4px;
    font-size: 0.82em;
  }
  .chat-clickable {
    padding: 2px 4px;
  }
  #chatError {
    margin-top: 3px !important;
    font-size: 11px;
    line-height: 1.1;
  }
  body:not(.combat-mode) #minimapContainer.mobile-visible,
  #minimapContainer.mobile-visible {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px !important;
    overflow: hidden !important;
  }
  #minimap {
    width: clamp(84px, 13dvh, 118px) !important;
    height: clamp(84px, 13dvh, 118px) !important;
    border-width: 2.5px !important;
    margin: 0 !important;
  }
  #minimapCoords {
    font-size: 10px !important;
    font-weight: bold;
    color: var(--ui-gold) !important;
    margin: 0 !important;
    text-shadow: 0 1px 2px #000;
  }
  #openWorldMapBtn {
    min-height: 24px !important;
    font-size: 10px !important;
    padding: 2px 10px !important;
    width: auto !important;
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
  }
  body:not(.combat-mode) #hudSection.mobile-visible,
  #hudSection.mobile-visible {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 6px;
    padding: 8px;
    align-content: center;
  }
  #hudSection button {
    width: 100%;
    min-height: 32px !important;
    font-size: 11px !important;
    margin: 0;
  }
  #hudShortcutHint,
  #optionsShortcutHint {
    display: none !important;
  }
  #optionsSection {
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 6px 10px !important;
  }
  #optionsSection button {
    width: 90%;
    min-height: 30px !important;
    font-size: 11px !important;
    margin: 0 !important;
    padding: 3px 8px !important;
  }
  button:not(.mobileTabBtn):not(.combatTabBtn):not(.bagTabBtn):not(.statPlusBtn):not(.combatSpellButton):not(.unequipBtn):not(.combat-spell-slot):not(.spell-slot):not(.pass-turn-btn):not(.surrender-btn):not(.close-spell-desc-btn):not(.combatMonsterCard):not(.party-action-btn):not(.closeCardBtn):not(.enc-tab-btn):not(.sheet-tab-btn):not(.cat-tab):not(.audio-icon-btn):not(.audio-collapse-btn):not(.tracker-collapse-btn):not(.untrack-btn) {
    min-height: 42px !important;
    font-size: 13px !important;
    padding: 8px 16px !important;
  }
  .worldMapModal {
    padding: 8px;
  }
  .worldMapPanel {
    width: 100%;
    height: 100%;
  }
  .worldMapHeader {
    flex-direction: column;
    gap: 4px;
  }
  .worldMapActions {
    width: 100%;
    justify-content: space-around;
  }
  .overlayPanel {
    justify-content: center;
    align-items: center;
    padding: 8px;
  }

  .audio-controls-floating {
    top: 6px;
    right: 6px;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 14px;
    transform: scale(0.8);
    transform-origin: top right;
  }

  .audio-controls-floating .slider-group {
    gap: 4px;
  }

  .audio-controls-floating .audio-slider-label {
    font-size: 9px;
  }

  #audioMuteBtn {
    width: 16px;
    height: 16px;
    font-size: 11px;
  }

  #audioMusicVolumeSlider,
  #audioSFXVolumeSlider {
    width: 34px;
    height: 3px;
  }

  .overlayCard,
  .optionsCard,
  .optionsVueCard,
  .statsCard,
  .spellsCard,
  .inventoryCard,
  .craftCard,
  .bankCard,
  .merchantCard,
  .socialCard,
  .questsCard,
  .encyclopediaCard,
  .ladderCard,
  .mapCombatsCard,
  [class*="Card"] {
    width: min(540px, calc(100vw - 12px)) !important;
    max-height: calc(100vh - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
    padding: 12px !important;
  }
  .overlayCardHeader {
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 36px 8px 12px !important;
    min-height: 40px !important;
    margin-bottom: 0 !important;
  }

  .overlayCardHeader h2,
  .overlayCardHeader .header-title,
  .window-title-text,
  .window-title,
  #spellsModal .overlayCardHeader h2 {
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
    color: var(--ui-gold, #d8b46a) !important;
  }

  #spellsModal .overlayCardHeader p {
    font-size: 0.7rem;
  }

  .statsCard {
    max-height: 90vh !important;
  }

  .overlayStatsGrid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 0 12px 12px !important;
  }

  #hud > div,
  .statItem {
    font-size: 0.76rem !important;
    padding: 7px 8px !important;
    border-radius: 12px !important;
  }

  .statItem--allocatable {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 6px;
  }

  .statItem--allocatable .statAllocGroup {
    width: auto;
    justify-content: flex-start;
    margin-top: 0;
  }

  .statItem span {
    font-size: 0.76rem !important;
  }

  .xpBarContainer {
    margin-top: 4px !important;
    margin-bottom: 6px !important;
    padding: 10px 10px !important;
    border-radius: 12px !important;
  }

  #hud > .xpBarContainer {
    min-height: 68px;
    gap: 7px;
    padding: 10px 10px !important;
    align-items: stretch;
    justify-content: initial;
  }

  .xpBarHeader {
    gap: 6px;
    margin-bottom: 0;
  }

  .xpBarBadge {
    min-width: 30px;
    height: 18px;
    padding: 0 7px;
    font-size: 0.62rem;
  }

  .xpBarLabel {
    font-size: 0.74rem;
  }

  .xpBarOuter {
    height: 14px;
  }

  .xpBarValue {
    font-size: 0.6rem;
  }

  .statAllocInput {
    width: 30px !important;
    height: 22px !important;
    font-size: 0.72rem !important;
  }

  .statPlusBtn {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }

  .statAllocGroup .statPlusBtn {
    width: 22px;
    height: 22px;
    font-size: 14px;
  }

  /* Tab Bar for Mobile Combat */
  .combat-tab-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    background: rgba(20, 16, 13, 0.85);
    border-bottom: 1px solid rgba(216, 180, 106, 0.18);
    width: 100%;
    margin-bottom: 8px;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
  }
  .combatTabBtn {
    flex: none;
    background: transparent;
    border: none;
    padding: 10px 16px;
    color: #a7977c;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-bottom-color 0.2s;
    border-bottom: 3px solid transparent;
    font-family: 'Outfit', sans-serif;
  }
  .combatTabBtn.active {
    color: #ffd700;
    background: rgba(216, 180, 106, 0.06);
    border-bottom: 3px solid #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  }

  /* Combat Tab switching rules */
  .combatScene .combatSceneSidebar {
    display: none !important;
  }
  .combatScene #chatSection {
    display: none !important;
  }
  .combatScene.show-info #chatSection {
    display: flex !important;
    height: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(28, 21, 17, 0.94) 0%, rgba(18, 14, 11, 0.92) 100%) !important;
    border: 1px solid rgba(216, 180, 106, 0.22) !important;
    border-radius: 16px !important;
    padding: 16px !important;
  }
  .combatScene.show-info #chatBox {
    flex: 1 !important;
    max-height: none !important;
  }
  .combatScene.show-info .combatSceneBoardPanel {
    display: none !important;
  }


@media screen and (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  body.in-game {
    height: 100dvh !important;
    overflow: hidden !important;
  }

  body.in-game #gamePanel {
    height: 100dvh !important;
    min-height: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
  }

  body:not(.combat-mode).in-game #mapContainer {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 0 0 2px !important;
    overflow: hidden !important;
  }

  body:not(.combat-mode).in-game #bottomUI {
    display: flex !important;
    flex-direction: column !important;
    height: 154px !important;
    min-height: 154px !important;
    max-height: 154px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body:not(.combat-mode).in-game #mobileTabBar,
  body:not(.combat-mode).in-game .mobile-only {
    display: flex !important;
  }

  body:not(.combat-mode).in-game #chatSection,
  body:not(.combat-mode).in-game #minimapContainer,
  body:not(.combat-mode).in-game #hudSection,
  body:not(.combat-mode).in-game #optionsSection {
    display: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: calc(100% - 40px) !important;
    padding: 6px !important;
    overflow: hidden !important;
  }

  body:not(.combat-mode).in-game #chatSection.mobile-visible,
  body:not(.combat-mode).in-game #minimapContainer.mobile-visible,
  body:not(.combat-mode).in-game #hudSection.mobile-visible,
  body:not(.combat-mode).in-game #optionsSection.mobile-visible {
    display: flex !important;
  }

  body:not(.combat-mode).in-game #hudSection.mobile-visible {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }

  body:not(.combat-mode).in-game #chatSection {
    gap: 4px !important;
  }

  body:not(.combat-mode).in-game #chatBox {
    padding: 6px !important;
    font-size: 0.72rem !important;
    line-height: 1.08 !important;
    margin: 0 !important;
  }

  body:not(.combat-mode).in-game #chatControls {
    gap: 4px !important;
    margin-top: 0 !important;
  }

  body:not(.combat-mode).in-game #chatControls select,
  body:not(.combat-mode).in-game #chatControls input,
  body:not(.combat-mode).in-game #chatControls button {
    height: 28px !important;
    min-height: 28px !important;
    font-size: 10px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  body:not(.combat-mode).in-game #chatControls button {
    width: 84px !important;
  }

  body:not(.combat-mode).in-game #minimapContainer {
    gap: 4px !important;
    justify-content: center !important;
    align-items: center !important;
  }

  body:not(.combat-mode).in-game #minimapCoords {
    font-size: 0.68rem !important;
    line-height: 1.1 !important;
    margin: 0 !important;
  }

  body:not(.combat-mode).in-game #minimap {
    width: 80px !important;
    height: 80px !important;
    border-width: 2px !important;
  }

  body:not(.combat-mode).in-game #openWorldMapBtn {
    width: 100% !important;
    min-height: 22px !important;
    font-size: 9px !important;
    padding: 2px 6px !important;
    margin: 0 !important;
  }

  body:not(.combat-mode).in-game #hudSection button {
    min-height: 26px !important;
    font-size: 9px !important;
    line-height: 1.05 !important;
    padding: 2px 4px !important;
    margin: 0 !important;
  }

  body:not(.combat-mode).in-game #optionsSection {
    gap: 4px !important;
    justify-content: stretch !important;
  }

  body:not(.combat-mode).in-game #optionsSection button {
    min-height: 26px !important;
    font-size: 9px !important;
    line-height: 1.05 !important;
    padding: 2px 4px !important;
    margin: 0 !important;
  }

  body:not(.combat-mode).in-game .audio-controls-floating {
    top: 6px !important;
    right: 6px !important;
    gap: 4px !important;
    padding: 3px 6px !important;
    transform: scale(0.82) !important;
    transform-origin: top right !important;
  }
}

@media (max-width: 420px), (max-height: 760px) {
  body:not(.combat-mode) #bottomUI,
  #bottomUI {
    height: clamp(156px, 26dvh, 210px) !important;
    min-height: 156px !important;
    max-height: 30dvh !important;
  }

  body:not(.combat-mode) #chatSection,
  body:not(.combat-mode) #minimapContainer,
  body:not(.combat-mode) #hudSection,
  body:not(.combat-mode) #optionsSection,
  #chatSection,
  #minimapContainer,
  #hudSection,
  #optionsSection {
    padding: 4px !important;
  }

  body:not(.combat-mode) #mobileTabBar,
  #mobileTabBar {
    height: 38px !important;
  }

  .mobileTabBtn {
    font-size: 12px !important;
  }

  body:not(.combat-mode).in-game #minimapContainer.mobile-visible,
  body:not(.combat-mode) #minimapContainer.mobile-visible,
  #minimapContainer.mobile-visible {
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px !important;
    overflow: hidden !important;
  }

  body:not(.combat-mode).in-game #minimapCoords,
  body:not(.combat-mode) #minimapCoords,
  #minimapCoords {
    font-size: 0.8rem !important;
    line-height: 1.25 !important;
    min-height: 32px !important;
    padding: 4px 6px !important;
    font-weight: 700 !important;
  }

  body:not(.combat-mode).in-game #minimap,
  body:not(.combat-mode) #minimap,
  #minimap {
    width: 126px !important;
    height: 126px !important;
    max-width: 126px !important;
    max-height: 126px !important;
    border-width: 2px !important;
  }

  body:not(.combat-mode).in-game #openWorldMapBtn,
  body:not(.combat-mode) #openWorldMapBtn,
  #openWorldMapBtn {
    width: min(160px, 100%) !important;
    min-height: 22px !important;
    font-size: 9px !important;
    padding: 2px 6px !important;
    margin: 0 !important;
  }
}

@media (max-width: 380px), (max-height: 680px) {
  body:not(.combat-mode) #bottomUI,
  #bottomUI {
    height: clamp(146px, 24dvh, 190px) !important;
    min-height: 146px !important;
    max-height: 28dvh !important;
  }

  body:not(.combat-mode) #mobileTabBar,
  #mobileTabBar {
    height: 34px !important;
  }

  .mobileTabBtn {
    font-size: 11px !important;
  }

  body:not(.combat-mode).in-game #minimapCoords,
  body:not(.combat-mode) #minimapCoords,
  #minimapCoords {
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
    min-height: 30px !important;
    padding: 3px 5px !important;
    font-weight: 700 !important;
  }

  body:not(.combat-mode).in-game #minimap,
  body:not(.combat-mode) #minimap,
  #minimap {
    width: 116px !important;
    height: 116px !important;
    max-width: 116px !important;
    max-height: 116px !important;
  }

  body:not(.combat-mode).in-game #openWorldMapBtn,
  body:not(.combat-mode) #openWorldMapBtn,
  #openWorldMapBtn {
    width: min(150px, 100%) !important;
    min-height: 20px !important;
    font-size: 8px !important;
    padding: 2px 5px !important;
  }
}

@media screen and (max-width: 767px) and (orientation: portrait) {
  body.in-game {
    --world-camera-scale: 0.72;
  }

  body:not(.combat-mode) #bottomUI {
    height: clamp(170px, 34dvh, 250px) !important;
    min-height: 170px !important;
    max-height: 38dvh !important;
  }

  body:not(.combat-mode) #minimapContainer.mobile-visible,
  #minimapContainer.mobile-visible {
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 6px !important;
    overflow-y: auto !important;
  }

  body:not(.combat-mode) #minimapCoords,
  #minimapCoords {
    font-size: clamp(9px, 2.7vw, 12px) !important;
    line-height: 1.15 !important;
    text-align: center !important;
  }

  body:not(.combat-mode) #minimap,
  #minimap {
    width: clamp(128px, 32vw, 188px) !important;
    height: clamp(128px, 32vw, 188px) !important;
    max-width: min(52vw, 188px) !important;
    max-height: min(52vw, 188px) !important;
    border-width: 2px !important;
  }

  body:not(.combat-mode) #openWorldMapBtn,
  #openWorldMapBtn {
    width: min(180px, 100%) !important;
    min-height: 24px !important;
    font-size: 10px !important;
    padding: 3px 6px !important;
    margin-top: 2px !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  body:not(.combat-mode).in-game #gamePanel {
    height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
  }

  body:not(.combat-mode).in-game #mapContainer {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 4px !important;
    border-bottom: 2px solid #5f4827 !important;
    overflow: hidden !important;
  }

  body:not(.combat-mode).in-game #bottomUI {
    flex: none !important;
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    align-items: stretch !important;
    height: clamp(190px, 32dvh, 250px) !important;
    min-height: 190px !important;
    max-height: 36dvh !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, #15110d, #0f0c09) !important;
  }

  body:not(.combat-mode).in-game #mobileTabBar,
  body:not(.combat-mode).in-game .mobile-only {
    display: flex !important;
  }

  body:not(.combat-mode).in-game #chatSection,
  body:not(.combat-mode).in-game #minimapContainer,
  body:not(.combat-mode).in-game #hudSection,
  body:not(.combat-mode).in-game #optionsSection {
    display: none !important;
    width: 100% !important;
    height: calc(100% - 42px) !important;
    padding: 8px !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  body:not(.combat-mode).in-game #chatSection.mobile-visible {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  body:not(.combat-mode).in-game #minimapContainer.mobile-visible,
  body:not(.combat-mode).in-game #hudSection.mobile-visible,
  body:not(.combat-mode).in-game #optionsSection.mobile-visible {
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
  }
}


  /* Combat scene overall height adjustments */
  .combatScene {
    inset: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 6px !important;
    overflow: hidden;
    min-height: 0;
    align-content: stretch;
    border: none;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(18, 14, 10, 0.98), rgba(10, 8, 6, 0.97));
    backdrop-filter: none;
    box-shadow: none;
    z-index: 1200;
  }
  .combatSceneHeader {
    gap: 8px;
    padding: 10px 12px;
  }
  .combatSceneHeader p {
    margin-top: 4px;
    font-size: 0.92rem;
  }
  .combatSceneBoardPanel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    gap: 8px;
  }
  .combatSceneBoardPanel .combatSceneHeader {
    flex-shrink: 0;
  }
  .combatSceneBoardPanel .combatBattlefield {
    min-height: 0;
    align-content: start;
    gap: 4px;
    padding: 6px;
    grid-auto-rows: auto;
  }
  .combatSceneBoardPanel > .combat-hud-panel {
    align-self: end;
  }
  .combatSceneBoardPanel .combatBoardCell {
    min-height: 0;
    border-radius: 8px;
    padding: 2px;
    font-size: 0.56rem;
  }
  .combatSceneBoardPanel .combatBoardCellLabel {
    top: 3px;
    left: 4px;
    font-size: 0.48rem;
  }
  .combatSceneBoardPanel .combatBoardBadge--token {
    min-width: 30px;
    min-height: 30px;
  }
  .combatSceneSidebar {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    padding-right: 0;
    overflow-y: auto;
    height: 100%;
    min-height: 0;
  }
}

/* ==========================================================================
   LAPTOPS & SCALED RESOLUTIONS (e.g. MacBook M1 1440x900 viewport)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1730px) {
  /* Reduce sidebar height and padding to save vertical space on laptops */
  .combatSceneSidebar .combatMonsterList,
  .combatSceneSidebar .combatLog {
    max-height: 100px;
  }
  
  .combatSceneSidebar .combatSection {
    padding: 0 10px 8px;
  }

  .combatActorCard {
    padding: 10px;
    gap: 4px;
  }

  .combatSceneHeader {
    padding: 6px 12px;
    border-radius: 10px;
  }

  .combatSceneHeader p {
    margin-top: 1px;
    font-size: 0.88rem;
  }

  .combatSceneBoardPanel {
    gap: 6px !important;
  }

  .combatPositionBoard {
    padding: 10px;
    gap: 4px;
  }

  /* Compact Horizontal Timeline Bar */
  .combat-timeline-bar {
    height: 52px !important;
    padding: 2px 10px !important;
    gap: 8px !important;
  }

  .combat-timeline-bar .timeline-bar-header {
    gap: 6px !important;
    padding-right: 8px !important;
  }

  .combat-timeline-bar .timeline-bar-collapse-btn {
    min-height: 18px !important;
    font-size: 9px !important;
    padding: 1px 4px !important;
  }

  .combat-timeline-bar .timeline-bar-round #combatTimelineRoundText {
    font-size: 13px !important;
  }

  .combat-timeline-bar .timeline-bar-round .round-icon {
    font-size: 10px !important;
  }

  .combat-timeline-bar .timeline-card {
    width: 36px !important;
    height: 36px !important;
    border-width: 1.5px !important;
  }

  .combat-timeline-bar .timeline-card-avatar .charSprite {
    transform: translate(-50%, -50%) scale(0.25) !important;
  }

  body.isometric-mode .combat-timeline-bar .timeline-card-avatar .monsterEntity,
  .combat-timeline-bar .timeline-card-avatar .monsterEntity {
    transform: none !important;
  }

  body.isometric-mode .combat-timeline-bar .timeline-card-avatar .monsterEntity .monsterSprite,
  .combat-timeline-bar .timeline-card-avatar .monsterEntity .monsterSprite {
    transform: translate(-50%, -50%) scale(0.38) !important;
  }

  body.isometric-mode .combat-timeline-bar .timeline-card-avatar .monsterEntity.is-boss .monsterSprite,
  .combat-timeline-bar .timeline-card-avatar .monsterEntity.is-boss .monsterSprite {
    transform: translate(-50%, -50%) scale(0.26) !important;
  }

  /* Compact HUD Panel */
  .combat-hud-panel {
    padding: 6px 10px !important;
    gap: 10px !important;
  }

  .combat-hud-panel .status-container {
    width: 90px !important;
    height: 60px !important;
  }

  .combat-hud-panel .heart-orb {
    width: 50px !important;
    height: 50px !important;
    border-width: 2px !important;
  }

  .combat-hud-panel .heart-orb .heart-text {
    font-size: 9px !important;
  }

  .combat-hud-panel .badges {
    right: -4px !important;
  }

  .combat-hud-panel .badge {
    width: 18px !important;
    height: 18px !important;
    font-size: 8px !important;
  }

  .combat-hud-panel .combat-spell-zone {
    min-width: 300px !important;
    gap: 2px !important;
  }

  .combat-hud-panel .combat-spell-desc-inline {
    height: 32px !important;
    padding: 2px 8px !important;
  }

  .combat-hud-panel .spell-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    justify-content: flex-start !important;
    height: 48px !important;
    padding: 2px 4px 6px !important;
    width: 100% !important;
    scrollbar-width: thin !important;
  }

  .combat-hud-panel .spell-bar::-webkit-scrollbar {
    height: 4px !important;
  }

  .combat-hud-panel .spell-bar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 2px !important;
  }

  .combat-hud-panel .spell-bar::-webkit-scrollbar-thumb {
    background: rgba(216, 180, 106, 0.3) !important;
    border-radius: 2px !important;
  }

  .combat-hud-panel .spell-bar::-webkit-scrollbar-thumb:hover {
    background: rgba(216, 180, 106, 0.6) !important;
  }

  .combat-hud-panel .spell-slot {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
  }

  .combat-hud-panel .spell-slot[class*="vkey-"] .spell-graphic-icon {
    transform: translate(-50%, -50%) scale(0.5) !important;
  }

  .combat-hud-panel .hud-timer-badge {
    font-size: 14px !important;
    height: 28px !important;
    margin-bottom: 2px !important;
  }

  .combat-hud-panel .pass-turn-btn,
  .combat-hud-panel .surrender-btn {
    height: 28px !important;
    font-size: 11px !important;
  }

  /* Tab Bar for Laptop Combat */
  .combat-tab-bar {
    display: none !important;
  }

  /* Responsive Spell Pagination */
  .combat-spell-container {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    grid-template-rows: auto auto !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    align-items: center !important;
  }
  #combatSpellPagePrevBtn {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  #combatSpellBar {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
  }
  #combatSpellPageNextBtn {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }
  .combat-spell-pages {
    grid-column: 1 / span 3 !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 4px !important;
    gap: 6px !important;
  }
  .combat-spell-page-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 11px !important;
  }
  .combat-spell-page-dot {
    width: 28px !important;
    height: 20px !important;
    font-size: 10px !important;
  }
}



