/* Premium suite hamburger — forced visible above intro/modals (KO/EN/JA) */

.suite-menu-anchor {
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  /* Above intro (100000) / age-gate (100001) / teaser (100002) */
  z-index: 999999 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  isolation: isolate;
}

.suite-menu-toggle {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(200, 168, 74, 0.55);
  border-radius: 12px;
  background: rgba(6, 6, 18, 0.95) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
  visibility: visible !important;
  opacity: 1 !important;
}

.suite-menu-toggle:hover,
.suite-menu-toggle:focus-visible {
  border-color: rgba(255, 215, 0, 0.75);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.28);
  outline: none;
}

.suite-menu-bar {
  display: block !important;
  width: 18px;
  height: 2px;
  background: #FFD700 !important;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
  opacity: 1 !important;
  visibility: visible !important;
}

.suite-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  padding: 10px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  background: rgba(8, 10, 24, 0.98) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  display: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 999999 !important;
}

/* Open state: both .is-open and .active (legacy) */
.suite-menu-dropdown.is-open,
.suite-menu-dropdown.active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.suite-menu-dropdown.is-open[hidden],
.suite-menu-dropdown.active[hidden] {
  display: block !important;
}

.suite-menu-link,
button.suite-menu-link,
button.suite-menu-btn {
  display: block !important;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-family: 'Cinzel', 'Noto Serif KR', 'Noto Serif JP', serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  text-align: left;
  text-decoration: none;
  color: #F5EFE0 !important;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: color 0.22s ease, background 0.22s ease;
  pointer-events: auto !important;
  -webkit-text-fill-color: #F5EFE0;
  opacity: 1 !important;
  visibility: visible !important;
}

.suite-menu-link:hover,
.suite-menu-link:focus-visible,
button.suite-menu-link:hover,
button.suite-menu-btn:hover,
button.suite-menu-link:focus-visible,
button.suite-menu-btn:focus-visible {
  color: #FFD700 !important;
  -webkit-text-fill-color: #FFD700;
  background: rgba(255, 215, 0, 0.1);
  outline: none;
}

.suite-menu-link.is-active {
  color: #FFD700 !important;
  -webkit-text-fill-color: #FFD700;
  background: rgba(255, 215, 0, 0.14);
}

.suite-menu-sep {
  height: 1px;
  margin: 8px 6px;
  background: rgba(212, 175, 55, 0.28);
}

.suite-menu-section-label {
  margin: 4px 14px 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.85) !important;
}

/*
  Mobile suite legal (Terms / Privacy) — runtime-proof visibility.
  Authority lives HERE (suite-menu.css), not gated on body.mk-entry-surface.
  Desktop keeps #mkLegalHeaderNav; hide this block ≥721 to avoid duplicates.
*/
#suiteMenuLegalBlock,
.suite-menu-legal-block {
  display: none !important;
}

@media (max-width: 720px) {
  #suiteMenuLegalBlock,
  .suite-menu-legal-block {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(212, 175, 55, 0.28);
    box-sizing: border-box;
  }

  #suiteMenuLegalBlock .suite-menu-link--legal,
  .suite-menu-legal-block .suite-menu-link--legal {
    display: flex !important;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(200, 192, 168, 0.88) !important;
    -webkit-text-fill-color: rgba(200, 192, 168, 0.88);
  }

  #suiteMenuLegalBlock .suite-menu-link--legal:hover,
  #suiteMenuLegalBlock .suite-menu-link--legal:focus-visible,
  .suite-menu-legal-block .suite-menu-link--legal:hover,
  .suite-menu-legal-block .suite-menu-link--legal:focus-visible {
    color: #D4AF37 !important;
    -webkit-text-fill-color: #D4AF37;
    background: rgba(255, 215, 0, 0.08);
  }

  .suite-menu-dropdown {
    height: auto;
    max-height: min(72vh, calc(100dvh - 72px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }
}

@media (min-width: 721px) {
  #suiteMenuLegalBlock,
  .suite-menu-legal-block {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@media (max-width: 640px) {
  .suite-menu-anchor {
    top: 12px !important;
    right: 12px !important;
  }

  .suite-menu-dropdown {
    min-width: 230px;
    max-width: calc(100vw - 24px);
  }
}

/* Premium language toggle — shared across landing + reading pages */
.lang-selector {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 999999 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(200, 168, 74, 0.45);
  border-radius: 12px;
  background: rgba(6, 6, 18, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  pointer-events: auto !important;
}

.lang-btn {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 215, 0, 0.7) !important;
  -webkit-text-fill-color: rgba(255, 215, 0, 0.7);
  background: transparent;
  border: 0;
  padding: 2px 4px;
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: #FFD700 !important;
  -webkit-text-fill-color: #FFD700;
  outline: none;
}

.lang-btn.is-active {
  color: #FFD700 !important;
  -webkit-text-fill-color: #FFD700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}

.lang-sep {
  color: rgba(200, 168, 74, 0.45);
  font-size: 0.75rem;
  user-select: none;
}

.lang-selector.is-pulse {
  animation: langPulse 1.1s ease;
  border-color: #FFD700;
}

@keyframes langPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45); }
  40% { box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.35), 0 8px 28px rgba(0, 0, 0, 0.45); }
}

@media (max-width: 520px) {
  .lang-selector {
    top: 12px;
    left: 12px;
    padding: 8px 10px;
    gap: 5px;
  }

  .lang-btn {
    font-size: 0.65rem;
  }
}

/* ===== MASTER_K F7B2_LOW_RISK_STATIC BEGIN ===== */
/* F7B2 migrated from templates/chapter.html:170 */
.mk-s-chapter-L170-background-color-0f0f0f-colo {
  background-color: #0f0f0f; color: #ddd; margin: 0; min-height: 100vh;
}

/* F7B2 migrated from templates/partials/chapter6_cosmic_vitality.html:168 */
.mk-s-chapter6_cosmic_vitality-L168-margin-top-28px-padding-top- {
  margin-top:28px;padding-top:18px;border-top:1px solid rgba(255,215,0,0.12);font-size:0.85rem;line-height:1.55;opacity:0.78;color:rgba(224,226,236,0.85);
}


/* ==== F7B2 externalized from templates/chapter.html:19-165 ==== */
    :root {
      --gold: #FFD700;
      --gold-dim: rgba(255, 215, 0, 0.45);
      --bg: #0a0a0f;
      --panel: rgba(15, 15, 15, 0.92);
      --text: #ddd;
      --muted: #888;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      min-height: 100vh;
      background: radial-gradient(ellipse at top, rgba(255, 215, 0, 0.06) 0%, var(--bg) 45%), var(--bg);
      color: var(--text);
      font-family: 'Cormorant Garamond', Georgia, serif;
    }
    .reading-room-shell {
      max-width: 780px;
      margin: 0 auto;
      padding: 28px 24px 64px;
    }
    .reading-room-logo-wrap {
      text-align: center;
      margin-bottom: 28px;
    }
    .reading-room-logo {
      width: 72px;
      height: 72px;
      object-fit: contain;
      filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.25));
    }
    .reading-room-header {
      margin: 24px 0 28px;
      padding-bottom: 24px;
      border-bottom: 1px solid var(--gold-dim);
      text-align: center;
    }
    .reading-room-title {
      margin: 0 0 12px;
      color: var(--gold);
      font-family: 'Cinzel', serif;
      font-size: clamp(1.35rem, 3.8vw, 2rem);
      letter-spacing: 0.08em;
      line-height: 1.35;
      text-transform: uppercase;
    }
    .reading-room-meta {
      margin: 0;
      color: var(--muted);
      font-size: 1.05rem;
      font-style: italic;
    }
    .reading-room-meta span { color: #bbb; }
    .reading-room-panel {
      padding: 36px 32px;
      border: 1px solid rgba(255, 215, 0, 0.22);
      border-radius: 12px;
      background: var(--panel);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    }
    .reading-room-body {
      font-family: 'Cormorant Garamond', Georgia, serif;
    }
    .reading-room-body p {
      margin: 0 0 1.35em;
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.15rem;
      line-height: 1.8;
      color: #e0e0e0;
      max-width: 68ch;
      margin-left: auto;
      margin-right: auto;
    }
    .reading-room-body p:first-of-type {
      font-size: 1.18rem;
      color: #ececec;
    }
    .reading-room-loading {
      text-align: center;
      padding: 48px 16px 32px;
    }
    .reading-room-loading-visual {
      position: relative;
      width: 100px;
      height: 100px;
      margin: 0 auto 28px;
    }
    .reading-room-loading-mandala {
      position: absolute;
      inset: 0;
      border-radius: 50%;
      background: repeating-conic-gradient(
        from 0deg at 50% 50%,
        rgba(200, 168, 74, 0.2) 0deg 10deg,
        transparent 10deg 20deg
      );
      animation: rr-spin 24s linear infinite;
      opacity: 0.75;
    }
    .reading-room-loading-glow {
      position: absolute;
      inset: 18px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(200, 168, 74, 0.2) 0%, transparent 70%);
      animation: rr-pulse 3s ease-in-out infinite;
    }
    .reading-room-loading-ring {
      position: absolute;
      inset: 28px;
      border-radius: 50%;
      border: 2px solid transparent;
      border-top-color: var(--gold);
      animation: rr-spin 1.2s linear infinite;
    }
    .reading-room-loading-text {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.25rem;
      letter-spacing: 0.06em;
      color: #e6cc80;
      min-height: 2.5em;
      max-width: 420px;
      margin: 0 auto;
      line-height: 1.5;
      opacity: 1;
      transition: opacity 0.55s ease;
    }
    .reading-room-loading-text.is-fading { opacity: 0; }
    .reading-room-footer {
      margin-top: 28px;
      padding-top: 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      color: var(--muted);
      font-size: 0.95rem;
      font-style: italic;
      text-align: center;
    }
    @keyframes rr-spin { to { transform: rotate(360deg); } }
    @keyframes rr-pulse {
      0%, 100% { transform: scale(0.94); opacity: 0.55; }
      50% { transform: scale(1.05); opacity: 1; }
    }
    @media (max-width: 640px) {
      .reading-room-panel { padding: 24px 20px; }
      .reading-room-body p { font-size: 1.1rem; line-height: 1.75; }
    }
  


/* ==== F7B2 externalized from templates/partials/feature_preview_modal.html:23-111 ==== */
  .mk-feat-preview-backdrop {
    position: fixed !important;
    inset: 0;
    z-index: 100040;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(4, 4, 12, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
  }
  .mk-feat-preview-backdrop[hidden] {
    display: none !important;
  }
  .mk-feat-preview-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .mk-feat-preview-modal {
    margin: auto;
    max-height: 85vh;
    overflow-y: auto;
    width: min(440px, 100%);
    padding: 2rem 1.75rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: linear-gradient(165deg, rgba(18, 16, 28, 0.96) 0%, rgba(8, 6, 14, 0.98) 100%);
    box-shadow: 0 0 48px rgba(212, 175, 55, 0.18);
    position: relative;
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    transition: transform 0.45s ease, opacity 0.45s ease;
  }
  .mk-feat-preview-backdrop.is-open .mk-feat-preview-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  .mk-feat-preview-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
    background: transparent;
    border: none;
    color: #D4AF37;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
  }
  .mk-feat-preview-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    color: #FFD700;
    margin: 0 0 14px;
    text-align: center;
  }
  .mk-feat-preview-body {
    color: #D1D5DB;
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 20px;
    text-align: center;
  }
  .mk-feat-preview-dismiss {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.12);
    color: #FFD700;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
  }
  .feats .feat.mk-feat-preview-trigger {
    cursor: pointer;
    transition: background 0.25s ease;
  }
  .feats .feat.mk-feat-preview-trigger:hover {
    background: rgba(212, 175, 55, 0.08);
  }
/* ===== MASTER_K F7B2_LOW_RISK_STATIC END ===== */
