
/* MOBILE FORCE FIX - LAST OVERRIDE */
@media screen and (max-width: 768px) {
  body .legend,
  html body .map-wrapper .legend,
  .map-wrapper > .legend {
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    top: auto !important;
    bottom: 8px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px 10px !important;
    padding: 8px 10px !important;
    border-radius: 18px !important;
    z-index: 9999 !important;
  }

  body .language-switcher {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 62px !important;
    transform: translateX(-50%) !important;
    z-index: 10000 !important;
  }

  /* Bigger mobile text, locked after rotation */
  body .plot-label {
    transform-box: fill-box !important;
    transform-origin: center center !important;
    transform: rotate(-90deg) !important;
    stroke-width: 2.6px !important;
    opacity: 1 !important;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.8)) !important;
  }

  body .plot-main {
    font-size: 30px !important;
    font-weight: 900 !important;
  }

  body .plot-area {
    font-size: 15px !important;
    font-weight: 900 !important;
  }

  body .plot-link:hover .plot-main {
    font-size: 31px !important;
  }

  body .plot-link:hover .plot-area {
    font-size: 16px !important;
  }
}

@media screen and (max-width: 430px) {
  body .legend,
  html body .map-wrapper .legend,
  .map-wrapper > .legend {
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
  }

  body .language-switcher {
    bottom: 58px !important;
  }

  body .plot-label {
    stroke-width: 2.35px !important;
  }

  body .plot-main {
    font-size: 26px !important;
  }

  body .plot-area {
    font-size: 13px !important;
  }

  body .plot-link:hover .plot-main {
    font-size: 27px !important;
  }

  body .plot-link:hover .plot-area {
    font-size: 14px !important;
  }
}
