.mgate { display: none; }

@media (max-width: 768px) {

  body > *:not(.mgate) { display: none !important; }

  html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    background: #000000;
  }

  .mgate {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 32px 26px calc(32px + env(safe-area-inset-bottom, 0px));
    text-align: center;
    background:
      radial-gradient(120% 70% at 50% 0%, rgba(59, 130, 246, 0.16) 0%, transparent 60%),
      #000000;
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
  }

  .mgate__logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin-bottom: 22px;
  }

  .mgate__title {
    margin: 0 0 12px;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    text-wrap: balance;
  }

  .mgate__body {
    margin: 0 0 10px;
    max-width: 34ch;
    font-size: 15px;
    line-height: 1.6;
  }

  .mgate__note {
    margin: 0;
    max-width: 34ch;
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.45);
  }

  .mgate__cta {
    margin-top: 26px;
    display: inline-block;
    padding: 13px 22px;
    border-radius: 12px;
    background: #fff;
    color: #000;
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
  }
  .mgate__cta:active { opacity: 0.85; }

  :root[data-theme="light"] html,
  :root[data-theme="light"] body { background: #f7f7f8; }

  :root[data-theme="light"] .mgate {
    background:
      radial-gradient(120% 70% at 50% 0%, rgba(37, 99, 235, 0.10) 0%, transparent 60%),
      #f7f7f8;
    color: #52525b;
  }
  :root[data-theme="light"] .mgate__title { color: #09090b; }
  :root[data-theme="light"] .mgate__note { color: #71717a; }
  :root[data-theme="light"] .mgate__cta {
    background: #09090b;
    color: #ffffff;
  }
}
