/* Mobile is intentionally disabled for now. Keep only the unsupported gate so
   desktop layout rules cannot be affected by old mobile overrides. */

.mobile-unsupported {
  display: none;
}

@media (max-width: 768px), (pointer: coarse) and (max-width: 900px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #090806;
  }

  #gameViewport,
  #uiCanvas {
    width: 100vw !important;
    height: 100vh !important;
    transform: none !important;
  }

  #app,
  .overlay,
  #floating-text-container,
  #itemTooltip,
  .xp-bar,
  .consent-banner,
  .consent-dialog,
  .consent-overlay,
  .cookie-consent,
  [role="dialog"]:not(#mobileUnsupported) {
    display: none !important;
  }

  .mobile-unsupported {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 50% 0%, rgba(190, 160, 88, 0.16), transparent 38%),
      linear-gradient(180deg, rgba(7, 6, 4, 0.92), rgba(7, 6, 4, 0.98));
    color: #f6eedb;
  }

  .mobile-unsupported-card {
    width: min(420px, 100%);
    display: grid;
    gap: 12px;
    padding: 24px 22px;
    border-radius: 18px;
    border: 1px solid rgba(214, 184, 116, 0.26);
    background: linear-gradient(180deg, rgba(32, 27, 18, 0.96), rgba(15, 12, 8, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.56);
  }

  .mobile-unsupported-badge {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    border: 1px solid rgba(214, 184, 116, 0.28);
    background: rgba(135, 165, 111, 0.18);
    color: #dce8ba;
    font-weight: 900;
    letter-spacing: 0.04em;
  }

  .mobile-unsupported-kicker {
    margin: 4px 0 0;
    color: rgba(228, 194, 132, 0.86);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .mobile-unsupported h1 {
    margin: 0;
    font-size: clamp(24px, 8vw, 34px);
    line-height: 1.04;
  }

  .mobile-unsupported p {
    margin: 0;
    color: rgba(246, 238, 219, 0.76);
    font-size: 15px;
    line-height: 1.48;
  }
}
