/* ==========================================================================
   微乐园 · 私密社 — landing facade
   Shown before the mirrored funnel. Selecting any entry reveals the
   existing first page in place; no navigation or tracking is added.
   ========================================================================== */

.landing {
  --landing-ivory: #f4eef0;
  --landing-red: #a0182b;
  --landing-line: rgba(255, 255, 255, 0.16);
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(26px, 5.2vh, 54px) 24px clamp(20px, 3.4vh, 34px);
  color: var(--landing-ivory);
  background:
    radial-gradient(52% 36% at 50% -4%, rgba(108, 9, 26, 0.27) 0%, rgba(58, 5, 16, 0.08) 48%, rgba(0, 0, 0, 0) 74%),
    radial-gradient(40% 56% at -4% 30%, rgba(72, 5, 17, 0.17) 0%, rgba(0, 0, 0, 0) 72%),
    radial-gradient(40% 56% at 104% 30%, rgba(72, 5, 17, 0.17) 0%, rgba(0, 0, 0, 0) 72%),
    #000000;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: opacity 0.55s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.55s ease;
}

.landing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  mix-blend-mode: soft-light;
}

.landing[hidden] {
  display: none;
}

.landing.is-leaving {
  opacity: 0;
  transform: scale(1.012);
  filter: blur(3px);
  pointer-events: none;
}

.landing__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.landing__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.landing__eyebrow {
  font-family: "Times New Roman", Times, serif;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: rgba(238, 226, 229, 0.34);
}

.landing__title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(14px, 2.4vh, 22px);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  font-weight: 300;
  font-size: clamp(40px, 9.6vw, 84px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #f7f2f3;
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.07), 0 1px 0 rgba(255, 255, 255, 0.08);
}

.landing__dash {
  display: inline-block;
  width: 0.44em;
  height: 1px;
  margin: 0 0.04em;
  background: currentColor;
  opacity: 0.88;
}

.landing__subtitle {
  margin-top: clamp(12px, 2.2vh, 20px);
  font-family: "Didot", "Bodoni 72", "Bodoni MT", "Times New Roman", serif;
  font-size: clamp(10px, 1.05vw, 13px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  text-transform: uppercase;
  color: var(--landing-red);
}

.landing__menu {
  display: flex;
  flex-direction: column;
  gap: clamp(9px, 0.95vh, 12px);
  width: min(220px, 76vw);
  margin-top: clamp(32px, 6.4vh, 56px);
}

.landing__entry {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: clamp(50px, 5.4vh, 58px);
  padding: 9px 14px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--landing-line);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0%, rgba(255, 255, 255, 0.006) 100%);
  color: var(--landing-ivory);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, transform 0.2s ease;
}

.landing__entry-label {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 7px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  color: rgba(244, 238, 240, 0.27);
  transition: color 0.35s ease;
}

.landing__entry-name {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: rgba(247, 241, 243, 0.92);
  transition: color 0.35s ease;
}

.landing__entry--accent .landing__entry-label {
  color: rgba(183, 31, 53, 0.58);
}

.landing__entry--accent .landing__entry-name {
  color: #941a2d;
}

.landing__entry:hover,
.landing__entry:focus-visible {
  border-color: rgba(199, 48, 71, 0.66);
  background: linear-gradient(180deg, rgba(132, 13, 32, 0.2) 0%, rgba(66, 4, 15, 0.08) 100%);
  box-shadow: 0 12px 38px -22px rgba(190, 20, 45, 0.85), inset 0 0 24px rgba(150, 15, 38, 0.08);
  outline: none;
}

.landing__entry:hover .landing__entry-label,
.landing__entry:focus-visible .landing__entry-label {
  color: rgba(255, 255, 255, 0.5);
}

.landing__entry--accent:hover .landing__entry-name,
.landing__entry--accent:focus-visible .landing__entry-name {
  color: #c22a43;
}

.landing__entry:focus-visible {
  box-shadow: 0 0 0 1px rgba(213, 61, 84, 0.65), 0 0 30px rgba(150, 20, 40, 0.28);
}

.landing__entry:active {
  transform: translateY(1px);
}

.landing__collections {
  width: min(560px, 92vw);
  margin-top: auto;
  padding-top: clamp(38px, 8.5vh, 82px);
  text-align: center;
}

.landing__collections-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: "Times New Roman", Times, serif;
  font-size: 8px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: rgba(244, 238, 240, 0.27);
}

.landing__collections-title::before,
.landing__collections-title::after {
  content: "";
  width: clamp(28px, 5vw, 54px);
  height: 1px;
}

.landing__collections-title::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.19) 100%);
}

.landing__collections-title::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.19) 0%, rgba(255, 255, 255, 0) 100%);
}

.landing__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(8px, 1.35vh, 13px) clamp(24px, 2.8vw, 32px);
  max-width: 250px;
  margin: clamp(14px, 2.4vh, 22px) auto 0;
  padding: 0;
  list-style: none;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  font-size: 9.5px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.14em;
  color: rgba(244, 238, 240, 0.34);
}

.landing__tags li {
  white-space: nowrap;
}

/* The hidden external iframe sits at left:-1000px; in RTL that expands the
   scrollable area and can break fixed-layer painting. Keep it out of flow. */
html[dir="rtl"],
html[dir="rtl"] body {
  overflow-x: hidden;
}

html[dir="rtl"] body > iframe {
  position: fixed !important;
}

/* Localized typography: long Latin brands need a smaller display size;
   Japanese/Korean use their native serif stacks, Arabic drops tracking. */
.landing__title > span {
  white-space: nowrap;
}

:lang(en) .landing__title,
:lang(es) .landing__title,
:lang(fr) .landing__title,
:lang(de) .landing__title,
:lang(pt) .landing__title,
:lang(ru) .landing__title {
  flex-wrap: wrap;
  max-width: 100%;
  font-family: "Didot", "Bodoni 72", "Bodoni MT", "Times New Roman", serif;
  font-size: clamp(22px, 4.4vw, 58px);
  font-weight: 400;
  letter-spacing: 0.04em;
  row-gap: 0.08em;
  white-space: normal;
}

:lang(ja) .landing__title {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Songti SC", "STSong", serif;
}

:lang(ko) .landing__title {
  font-family: "Apple SD Gothic Neo", "Nanum Myeongjo", "Noto Serif KR", "Songti SC", serif;
  font-size: clamp(34px, 7vw, 68px);
}

:lang(ar) .landing__title {
  font-family: "Al Bayan", "Geeza Pro", "Noto Naskh Arabic", "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

:lang(ja) .landing__eyebrow,
:lang(ko) .landing__eyebrow {
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

:lang(ar) .landing__eyebrow,
:lang(ar) .landing__subtitle,
:lang(ar) .landing__entry-label,
:lang(ar) .landing__entry-name,
:lang(ar) .landing__collections-title,
:lang(ar) .landing__tags {
  letter-spacing: 0;
  text-indent: 0;
}

:lang(ar) .landing__eyebrow {
  font-family: "Geeza Pro", "Al Bayan", "Noto Naskh Arabic", serif;
  font-size: 10px;
}

:lang(ar) .landing__subtitle {
  font-family: "Geeza Pro", "Al Bayan", "Noto Naskh Arabic", serif;
  font-size: clamp(12px, 1.2vw, 15px);
}

:lang(ar) .landing__entry-label {
  font-size: 8px;
}

:lang(ar) .landing__entry-name {
  font-family: "Geeza Pro", "Al Bayan", "Noto Naskh Arabic", serif;
  font-size: 13px;
  line-height: 1.45;
}

:lang(ar) .landing__collections-title {
  font-family: "Geeza Pro", "Al Bayan", "Noto Naskh Arabic", serif;
  font-size: 9px;
}

:lang(ja) .landing__entry-name,
:lang(ja) .landing__tags {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Songti SC", "STSong", serif;
}

:lang(ko) .landing__entry-name,
:lang(ko) .landing__tags {
  font-family: "Apple SD Gothic Neo", "Nanum Myeongjo", "Noto Serif KR", "Songti SC", serif;
}

:lang(ar) .landing__tags {
  font-family: "Geeza Pro", "Al Bayan", "Noto Naskh Arabic", serif;
  max-width: 420px;
  font-size: 10px;
  gap: 10px 22px;
}

:lang(en) .landing__tags,
:lang(es) .landing__tags,
:lang(fr) .landing__tags,
:lang(de) .landing__tags,
:lang(pt) .landing__tags,
:lang(ru) .landing__tags {
  max-width: 420px;
  font-size: 9px;
  letter-spacing: 0.1em;
  gap: 10px 22px;
}

@keyframes landing-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes landing-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.landing__eyebrow {
  animation: landing-fade 0.9s 0.1s ease both;
}

.landing__title {
  animation: landing-rise 1.1s 0.2s cubic-bezier(0.2, 0.65, 0.25, 1) both;
}

.landing__subtitle {
  animation: landing-fade 1s 0.5s ease both;
}

.landing__menu {
  animation: landing-rise 0.95s 0.62s cubic-bezier(0.2, 0.65, 0.25, 1) backwards;
}

.landing__collections {
  animation: landing-fade 1.2s 1.05s ease both;
}

@media (max-width: 420px) {
  .landing {
    padding-left: 18px;
    padding-right: 18px;
  }

  .landing__eyebrow {
    font-size: 8px;
    letter-spacing: 0.32em;
    text-indent: 0.32em;
  }

  .landing__title {
    font-size: clamp(36px, 10.8vw, 52px);
  }

  .landing__menu {
    width: min(220px, 82vw);
  }

  .landing__collections {
    width: 100%;
  }

  .landing__tags {
    max-width: 250px;
    gap: 8px 20px;
  }
}

@media (max-height: 640px) {
  .landing {
    padding-top: 20px;
    padding-bottom: 16px;
  }

  .landing__title {
    font-size: clamp(36px, 7.8vw, 64px);
  }

  .landing__menu {
    gap: 8px;
    margin-top: 26px;
  }

  .landing__entry {
    min-height: 48px;
    padding: 7px 12px;
  }

  .landing__collections {
    padding-top: 28px;
  }

  .landing__tags {
    margin-top: 12px;
    gap: 7px 18px;
  }
}

@media (max-height: 520px) {
  .landing {
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .landing__eyebrow {
    display: none;
  }

  .landing__title {
    margin-top: 0;
    font-size: clamp(32px, 6vw, 48px);
  }

  .landing__subtitle {
    margin-top: 8px;
    font-size: 9px;
  }

  .landing__menu {
    gap: 6px;
    margin-top: 16px;
  }

  .landing__entry {
    min-height: 40px;
    padding: 5px 10px;
    gap: 4px;
  }

  .landing__collections {
    padding-top: 18px;
  }

  .landing__tags {
    margin-top: 8px;
    gap: 6px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing,
  .landing *,
  .landing *::before,
  .landing *::after {
    animation: none !important;
    transition: none !important;
  }
}
