/* ============================================
   MOBILE GATE — Desktop only
   Japan aesthetic: ink black, sakura, wabi-sabi
   ============================================ */

/* ── Gate overlay — hidden on desktop ── */
.mobile-gate {
  display: none;
}

@media (max-width: 1024px) {
  /* Lock everything behind the gate */
  body.is-mobile-locked {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
  }

  body.is-mobile-locked > *:not(.mobile-gate) {
    display: none !important;
  }

  .mobile-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0A0A0A;
    color: #E8E4DC;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
  }

  /* ── Kanji watermark — 待 (matsu = attendre) ── */
  .mobile-gate__kanji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Zen Antique', serif;
    font-size: clamp(14rem, 50vw, 28rem);
    color: rgba(232, 228, 220, 0.018);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
  }

  /* ── Shoji screen lines ── */
  .mobile-gate__shoji-h {
    position: absolute;
    top: 35%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent 0%,
      rgba(212, 160, 181, 0.05) 20%,
      rgba(212, 160, 181, 0.08) 50%,
      rgba(212, 160, 181, 0.05) 80%,
      transparent 100%
    );
    pointer-events: none;
    z-index: 0;
  }

  .mobile-gate__shoji-v {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(212, 160, 181, 0.04) 20%,
      rgba(212, 160, 181, 0.07) 50%,
      rgba(212, 160, 181, 0.04) 80%,
      transparent 100%
    );
    pointer-events: none;
    z-index: 0;
  }

  /* ── Sakura petals ── */
  .mobile-gate__petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
  }

  .mobile-gate__petal {
    position: absolute;
    top: -20px;
    left: var(--x);
    width: var(--size);
    height: var(--size);
    opacity: 0;
    animation: gatePetalFall var(--dur) var(--delay) ease-in-out infinite;
  }

  .mobile-gate__petal::before {
    content: '';
    display: block;
    width: 100%;
    height: 60%;
    background: #D4A0B5;
    opacity: 0.25;
    border-radius: 50% 50% 50% 0 / 60% 60% 40% 0;
    transform: rotate(-30deg);
  }

  @keyframes gatePetalFall {
    0% {
      opacity: 0;
      transform: translateY(-10px) translateX(0) rotate(0deg);
    }
    10% {
      opacity: 0.5;
    }
    90% {
      opacity: 0.15;
    }
    100% {
      opacity: 0;
      transform: translateY(100vh) translateX(var(--drift)) rotate(540deg);
    }
  }

  /* ── Content — centered vertically ── */
  .mobile-gate__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
    max-width: 340px;
  }

  /* ── Seal stamp — hanko ── */
  .mobile-gate__seal {
    width: 52px;
    height: 52px;
    border: 1.5px solid rgba(212, 160, 181, 0.5);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(3deg);
    margin-bottom: 0.5rem;
  }

  .mobile-gate__seal-kanji {
    font-family: 'Zen Antique', serif;
    font-size: 1.6rem;
    color: #D4A0B5;
    line-height: 1;
  }

  /* ── Name — identity ── */
  .mobile-gate__name {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.6rem, 5vw, 2rem);
    color: #E8E4DC;
    letter-spacing: 0.02em;
    line-height: 1.2;
  }

  .mobile-gate__name em {
    font-style: normal;
    color: #D4A0B5;
  }

  /* ── Thin divider ── */
  .mobile-gate__line {
    width: 40px;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(212, 160, 181, 0.4),
      transparent
    );
  }

  /* ── Message paragraphs ── */
  .mobile-gate__msg {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    color: rgba(232, 228, 220, 0.78);
    line-height: 1.7;
    letter-spacing: 0.01em;
  }

  .mobile-gate__msg--accent {
    color: rgba(212, 160, 181, 0.85);
    font-style: italic;
    font-size: clamp(0.78rem, 2.5vw, 0.88rem);
  }


}
