/* ================================================================
   Landing Entry Page v10 — Account Dropdown Logout Hotfix
   Reference: schematic mockup restoration
   ================================================================ */

/* ── Prevent body scroll when landing is active ── */
html.landing-active,
body.landing-active {
  height: 100%;
  overflow: hidden;
}

/* ── Hide original header topbar when landing overlay is active
   Prevents brand title overlap: the landing overlay provides its own
   brand title, language toggle, and login button. ── */
html.landing-active .topbar {
  display: none;
}

/* ── Lift ripple canvas above landing overlay ── */
#rippleCanvas {
  z-index: 26 !important;
}

/* ── Landing Overlay ── */
.landing-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  height: 100dvh;
  z-index: 25;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 72% 22%, rgba(28, 82, 180, 0.09), transparent 44%),
    radial-gradient(ellipse at 16% 18%, rgba(200, 160, 70, 0.05), transparent 26%),
    radial-gradient(ellipse at 50% 94%, rgba(230, 200, 110, 0.04), transparent 36%),
    linear-gradient(162deg,
      rgba(2, 10, 24, 1.000) 0%,
      rgba(3, 14, 36, 0.995) 34%,
      rgba(5, 22, 52, 0.994) 64%,
      rgba(7, 34, 70, 0.992) 100%);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Top Brand Bar (inside landing overlay) ── */
.landing-top-brand {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 35;
  pointer-events: none;
}

.landing-brand-name {
  font-family: var(--font);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #e8c860;
  text-shadow: 0 0 24px rgba(232, 200, 96, 0.25);
  line-height: 1.2;
}

.landing-brand-sub {
  font-family: var(--font);
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 400;
  letter-spacing: 0.14em;
  color: rgba(200, 200, 220, 0.55);
  margin-top: 4px;
  line-height: 1.3;
}

/* ── Top-Right Actions: Language + User Account (inside landing overlay) ── */
.landing-top-actions {
  position: absolute;
  top: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  z-index: 36;
}

.landing-lang-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.landing-lang-btn {
  background: none;
  border: none;
  color: rgba(180, 190, 220, 0.50);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
  transition: color 0.25s ease;
  letter-spacing: 0.03em;
}

.landing-lang-btn:hover {
  color: rgba(230, 215, 170, 0.80);
}

.landing-lang-btn.active {
  color: #e8c860;
}

.landing-lang-divider {
  color: rgba(120, 140, 180, 0.30);
  font-size: 12px;
  user-select: none;
}

/* ── User Group (profile chip + dropdown) ── */
.landing-user-group {
  position: relative;
}

.landing-user-group.hidden {
  display: none;
}

.landing-user-trigger {
  background: none;
  border: 1px solid rgba(216, 175, 80, 0.30);
  border-radius: 10px;
  color: rgba(232, 200, 96, 0.85);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.landing-user-trigger:hover {
  border-color: rgba(232, 200, 96, 0.55);
  background: rgba(232, 200, 96, 0.08);
}

.landing-user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 128px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(8, 20, 48, 0.92);
  border: 1px solid rgba(218, 174, 74, 0.35);
  z-index: 100;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.landing-user-menu.hidden,
.landing-user-menu[hidden] {
  display: none;
}

.landing-user-menu-item {
  display: block;
  width: 100%;
  padding: 9px 16px;
  background: none;
  border: none;
  border-radius: 10px;
  color: rgba(220, 230, 250, 0.80);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  letter-spacing: 0.03em;
}

.landing-user-menu-item:hover {
  background: rgba(216, 175, 80, 0.10);
  color: #f0ddb0;
}

.landing-user-menu-item.logout {
  width: 100%;
  height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(218, 174, 74, 0.55);
  background: linear-gradient(135deg, rgba(238, 194, 93, 0.18), rgba(112, 81, 28, 0.16));
  color: #f4d47e;
  font-weight: 700;
}

.landing-user-menu-item.logout:hover {
  background: linear-gradient(135deg, rgba(238, 194, 93, 0.28), rgba(112, 81, 28, 0.22));
  border-color: rgba(232, 200, 96, 0.65);
  color: #ffe48a;
  box-shadow: 0 0 16px rgba(216, 175, 80, 0.14);
}

/* ── Toast Notification ── */
.landing-toast {
  position: absolute;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  padding: 10px 26px;
  border-radius: 12px;
  background: rgba(8, 22, 45, 0.95);
  border: 1px solid rgba(216, 175, 80, 0.35);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: rgba(242, 212, 130, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.landing-toast.visible {
  opacity: 1;
  visibility: visible;
}

/* ── Left Brand Copy Area ── */
.landing-copy {
  position: absolute;
  left: clamp(56px, 6.5vw, 120px);
  top: 22vh;
  width: min(480px, 36vw);
  max-width: calc(50vw - 40px);
  z-index: 28;
  pointer-events: none;
}

.landing-eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(210, 185, 110, 0.70);
  border-bottom: 1px solid rgba(210, 185, 110, 0.20);
  padding-bottom: 6px;
  margin-bottom: 18px;
  line-height: 1;
}

.landing-hero-title {
  font-family: var(--font);
  font-size: clamp(24px, 2.4vw, 38px);
  font-weight: 750;
  line-height: 1.28;
  color: #f0ddb0;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
  text-shadow: 0 0 40px rgba(240, 210, 160, 0.10);
}

.landing-hero-desc {
  font-family: var(--font);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 400;
  line-height: 1.75;
  color: rgba(180, 195, 225, 0.58);
  margin: 0 0 24px;
  max-width: 420px;
}

/* ── Pill Tags Row ── */
.landing-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.landing-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(200, 175, 90, 0.25);
  background: rgba(200, 175, 90, 0.06);
  color: rgba(220, 200, 150, 0.78);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.28s ease;
  pointer-events: auto;
  cursor: default;
  white-space: nowrap;
}

.landing-tag:hover {
  border-color: rgba(225, 195, 100, 0.45);
  background: rgba(200, 175, 90, 0.12);
  color: rgba(240, 218, 160, 0.92);
  box-shadow: 0 0 16px rgba(200, 175, 90, 0.10);
}

.landing-tag-icon {
  font-size: 13px;
  opacity: 0.80;
}

/* ── Chinese mode: left-align tags with copy area ── */
@media (min-width: 769px) {
  html[data-land-lang="zh"] .landing-tags {
    justify-content: flex-start;
  }
}

/* ── World Map Background ── */
.landing-map-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.landing-map-img {
  position: absolute;
  top: 22vh;
  left: 56%;
  transform: translateX(-50%);
  width: min(72vw, 1100px);
  height: auto;
  max-height: 58vh;
  object-fit: contain;
  opacity: 0.52;
  mix-blend-mode: screen;
  pointer-events: none;
  filter:
    drop-shadow(0 0 6px rgba(200, 160, 70, 0.08))
    drop-shadow(0 0 18px rgba(120, 170, 240, 0.07));
  will-change: transform;
}

.landing-map-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 40% 48%, rgba(200, 160, 70, 0.06), transparent 44%),
    radial-gradient(circle at 62% 44%, rgba(70, 140, 240, 0.05), transparent 50%),
    radial-gradient(circle at 70% 68%, rgba(240, 220, 160, 0.07), transparent 22%);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.68;
}

/* ── Energy Orbit / AI Ripple Field (Enhanced v7) ── */
.landing-energy-orbit {
  position: absolute;
  left: 50%;
  top: calc(73vh + 68px);
  transform: translateX(-50%);
  z-index: 22;
  pointer-events: none;
  width: min(820px, 76vw);
  height: 240px;
  overflow: visible;
}

/* Core glow — visible bright center beneath buttons */
.landing-energy-orbit::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 224, 134, 0.85) 0%,
      rgba(245, 190, 75, 0.42) 26%,
      rgba(83, 142, 255, 0.20) 50%,
      transparent 72%);
  filter: blur(6px);
  opacity: 0.92;
  animation: coreBreath 4.2s ease-in-out infinite;
}

@keyframes coreBreath {
  0%, 100% { opacity: 0.68; }
  50% { opacity: 0.96; }
}

.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 18px;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 238, 155, 0.90) 0%,
      rgba(255, 200, 80, 0.50) 30%,
      rgba(120, 170, 240, 0.20) 55%,
      transparent 75%);
  border-radius: 50%;
  filter: blur(3px);
  z-index: 2;
  animation: orbitCoreFade 3.8s ease-in-out infinite;
}

.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(245, 203, 104, 0.40);
  box-shadow:
    0 0 20px rgba(245, 200, 100, 0.22),
    inset 0 0 18px rgba(73, 136, 255, 0.12);
  will-change: transform, opacity;
}

.ring-1 {
  width: 180px; height: 44px;
  opacity: 0.78;
  border-color: rgba(255, 230, 150, 0.44);
  animation: ringPulse1 6s ease-in-out infinite alternate;
}

.ring-2 {
  width: 310px; height: 78px;
  opacity: 0.52;
  border-color: rgba(107, 160, 255, 0.30);
  box-shadow:
    0 0 26px rgba(73, 136, 255, 0.16),
    inset 0 0 22px rgba(73, 136, 255, 0.08);
  animation: ringPulse2 7.4s ease-in-out infinite alternate;
}

.ring-3 {
  width: 480px; height: 118px;
  opacity: 0.34;
  border-color: rgba(245, 203, 104, 0.24);
  box-shadow:
    0 0 28px rgba(245, 200, 100, 0.12),
    inset 0 0 20px rgba(245, 200, 100, 0.06);
  animation: ringPulse3 9s ease-in-out infinite alternate;
}

.ring-4 {
  width: 660px; height: 162px;
  opacity: 0.20;
  border-color: rgba(107, 160, 255, 0.18);
  box-shadow:
    0 0 30px rgba(73, 136, 255, 0.08),
    inset 0 0 22px rgba(73, 136, 255, 0.04);
  animation: ringPulse4 10.5s ease-in-out infinite alternate;
}

@keyframes ringPulse1 {
  0% { transform: translate(-50%, -50%) scale(0.94); opacity: 0.58; }
  100% { transform: translate(-50%, -50%) scale(1.06); opacity: 0.82; }
}

@keyframes ringPulse2 {
  0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.36; }
  100% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.60; }
}

@keyframes ringPulse3 {
  0% { transform: translate(-50%, -50%) scale(0.90); opacity: 0.22; }
  50% { opacity: 0.40; }
  100% { transform: translate(-50%, -50%) scale(1.10); opacity: 0.16; }
}

@keyframes ringPulse4 {
  0% { transform: translate(-50%, -50%) scale(0.88); opacity: 0.14; }
  50% { opacity: 0.26; }
  100% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.10; }
}

@keyframes orbitCoreFade {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.90; }
}

/* ── Button Container ── */
.landing-buttons {
  position: absolute;
  left: 50%;
  top: 73vh;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* ── Shared Button Styles ── */
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  touch-action: manipulation;
  box-sizing: border-box;
}

/* ── Shine overlay ── */
.landing-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.landing-btn:hover::after {
  opacity: 1;
}

/* ── Login Button ── */
.landing-btn-login {
  color: #0a1a3a;
  background: linear-gradient(135deg, #e0c06e 0%, #c7a132 42%, #9e7820 100%);
  box-shadow:
    0 4px 18px rgba(200, 160, 70, 0.18),
    inset 0 1px 0 rgba(255, 238, 175, 0.24);
}

.landing-btn-login::after {
  background: linear-gradient(135deg, rgba(255, 238, 175, 0.20), transparent 55%);
}

.landing-btn-login:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 26px rgba(200, 160, 70, 0.30),
    inset 0 1px 0 rgba(255, 238, 175, 0.32);
}

.landing-btn-login:active {
  transform: scale(0.97);
}

/* ── Start Journey Button ── */
.landing-btn-start {
  color: #0a1a3a;
  background: linear-gradient(135deg, #f0ce6e 0%, #d8ac44 38%, #ae8826 100%);
  box-shadow:
    0 6px 22px rgba(216, 170, 70, 0.22),
    inset 0 1px 0 rgba(255, 238, 175, 0.32);
}

.landing-btn-start::after {
  background: linear-gradient(135deg, rgba(255, 238, 175, 0.26), transparent 55%);
}

.landing-btn-start:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 32px rgba(216, 170, 70, 0.34),
    inset 0 1px 0 rgba(255, 238, 175, 0.40);
}

.landing-btn-start:active {
  transform: scale(0.97);
}

/* ── Prompt Modal (unchanged logic, consistent aesthetics) ── */
.landing-prompt-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 8, 23, 0.70);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.landing-prompt-overlay.active {
  opacity: 1;
  visibility: visible;
}

.landing-prompt-overlay.hidden {
  display: none;
}

.landing-prompt-dialog {
  background: rgba(8, 22, 45, 0.96);
  border: 1px solid rgba(216, 175, 80, 0.36);
  border-radius: 22px;
  padding: 38px 34px 30px;
  max-width: 440px;
  width: calc(100vw - 48px);
  text-align: center;
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(216, 175, 80, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: prompt-pop-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes prompt-pop-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.landing-prompt-icon {
  font-size: 44px;
  margin-bottom: 18px;
  display: block;
  line-height: 1;
}

.landing-prompt-text {
  color: rgba(242, 247, 255, 0.88);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 26px;
  font-weight: 500;
}

.landing-prompt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  min-width: 140px;
  padding: 0 32px;
  border-radius: 15px;
  border: 1px solid rgba(216, 175, 80, 0.55);
  background: rgba(216, 175, 80, 0.13);
  color: #fff0b8;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: var(--font);
}

.landing-prompt-btn:hover {
  background: rgba(216, 175, 80, 0.22);
  border-color: rgba(255, 238, 175, 0.75);
  box-shadow: 0 0 20px rgba(216, 175, 80, 0.18);
  transform: translateY(-1px);
}

.landing-prompt-btn:active {
  transform: scale(0.96);
}

/* ================================================================
   RESPONSIVE — TABLET / SMALL DESKTOP (max-width: 980px)
   ================================================================ */
@media (max-width: 980px) {
  .landing-copy {
    left: clamp(36px, 5vw, 72px);
    top: 18vh;
    width: min(400px, 42vw);
  }

  .landing-hero-title {
    font-size: clamp(20px, 2.2vw, 30px);
  }

  .landing-hero-desc {
    font-size: clamp(12px, 1vw, 14px);
  }

  .landing-top-brand {
    top: 20px;
  }

  .landing-top-actions {
    top: 22px;
    right: 18px;
  }

  .landing-map-img {
    top: 24vh;
    left: 54%;
    transform: translateX(-50%);
    width: clamp(420px, 78vw, 800px);
    max-height: 52vh;
    opacity: 0.46;
  }

  .landing-energy-orbit {
    top: calc(72vh + 56px);
    width: min(620px, 70vw);
    height: 210px;
  }

  .landing-energy-orbit::before {
    width: 160px; height: 32px;
  }

  .orbit-core {
    width: 100px; height: 15px;
  }

  .landing-buttons {
    top: 76%;
    gap: 16px;
  }

  .ring-1 { width: 140px; height: 34px; }
  .ring-2 { width: 240px; height: 60px; }
  .ring-3 { width: 370px; height: 90px; }
  .ring-4 { width: 500px; height: 122px; }
}

/* ================================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ================================================================ */
@media (max-width: 768px) {
  .landing-copy {
    left: 24px;
    top: 15vh;
    width: calc(100vw - 48px);
    max-width: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .landing-eyebrow {
    font-size: 10px;
  }

  .landing-hero-title {
    font-size: clamp(20px, 5.5vw, 28px);
    text-align: center;
  }

  .landing-hero-desc {
    font-size: 13px;
    text-align: center;
    max-width: 380px;
  }

  .landing-tags {
    justify-content: center;
  }

  .landing-tag {
    font-size: 11px;
    padding: 5px 12px;
  }

  .landing-top-brand {
    top: 16px;
  }

  .landing-brand-name {
    font-size: clamp(18px, 4vw, 26px);
  }

  .landing-top-actions {
    top: 18px;
    right: 14px;
  }

  .landing-btn {
    height: 48px;
    width: 180px;
    padding: 0 20px;
    font-size: 15px;
    border-radius: 14px;
  }

  .landing-buttons {
    top: 72vh;
    gap: 14px;
    flex-direction: row;
  }

  .landing-map-img {
    left: 50%;
    transform: translateX(-50%);
    width: clamp(340px, 88vw, 580px);
    top: 28vh;
    max-height: 44vh;
    opacity: 0.38;
  }

  .landing-energy-orbit {
    top: calc(71vh + 48px);
    width: min(480px, 64vw);
    height: 180px;
  }

  .landing-energy-orbit::before {
    width: 140px; height: 28px;
  }

  .orbit-core {
    width: 80px; height: 13px;
  }

  .ring-1 { width: 110px; height: 28px; }
  .ring-2 { width: 190px; height: 48px; }
  .ring-3 { width: 290px; height: 72px; }
  .ring-4 { width: 390px; height: 96px; }

  .landing-prompt-dialog {
    padding: 30px 24px 24px;
  }

  .landing-prompt-icon {
    font-size: 36px;
    margin-bottom: 14px;
  }

  .landing-prompt-text {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 22px;
  }

  .landing-prompt-btn {
    height: 44px;
    min-width: 120px;
    font-size: 14px;
    padding: 0 26px;
  }
}

/* ================================================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ================================================================ */
@media (max-width: 480px) {
  .landing-copy {
    left: 16px;
    top: 13vh;
    width: calc(100vw - 32px);
  }

  .landing-hero-title {
    font-size: clamp(18px, 5.8vw, 24px);
  }

  .landing-hero-desc {
    font-size: 12px;
    max-width: 320px;
    margin-bottom: 18px;
  }

  .landing-tags {
    gap: 6px;
  }

  .landing-tag {
    font-size: 10px;
    padding: 4px 10px;
  }

  .landing-tag-icon {
    font-size: 11px;
  }

  .landing-top-brand {
    top: 12px;
  }

  .landing-brand-sub {
    display: none;
  }

  .landing-top-actions {
    top: 14px;
    right: 10px;
  }

  .landing-btn {
    height: 44px;
    width: 158px;
    padding: 0 18px;
    font-size: 14px;
    border-radius: 13px;
  }

  .landing-buttons {
    top: 70vh;
    gap: 12px;
    flex-direction: row;
  }

  .landing-map-img {
    opacity: 0.28;
    max-height: 38vh;
  }

  .landing-energy-orbit {
    top: calc(69vh + 42px);
    width: min(380px, 62vw);
    height: 150px;
  }

  .landing-energy-orbit::before {
    width: 120px; height: 22px;
  }

  .orbit-core {
    width: 70px; height: 11px;
  }

  .ring-1 { width: 90px; height: 22px; }
  .ring-2 { width: 150px; height: 38px; }
  .ring-3 { width: 230px; height: 56px; }
  .ring-4 { width: 310px; height: 76px; }
}

/* ================================================================
   RESPONSIVE — TINY (max-width: 360px)
   ================================================================ */
@media (max-width: 360px) {
  .landing-copy {
    left: 12px;
    top: 11vh;
    width: calc(100vw - 24px);
  }

  .landing-hero-title {
    font-size: clamp(16px, 6vw, 20px);
  }

  .landing-hero-desc {
    font-size: 11px;
    margin-bottom: 14px;
  }

  .landing-tags {
    gap: 5px;
  }

  .landing-tag {
    font-size: 9px;
    padding: 3px 8px;
  }

  .landing-eyebrow {
    font-size: 9px;
    margin-bottom: 12px;
  }

  .landing-btn {
    height: 42px;
    width: 140px;
    padding: 0 16px;
    font-size: 13px;
    border-radius: 12px;
  }

  .landing-buttons {
    top: 68vh;
    gap: 10px;
    flex-direction: row;
  }

  .landing-map-img {
    display: block;
    opacity: 0.18;
    max-height: 34vh;
  }

  .landing-energy-orbit {
    top: calc(67vh + 36px);
    width: min(300px, 58vw);
    height: 120px;
  }

  .landing-energy-orbit::before {
    width: 100px; height: 18px;
  }

  .orbit-core {
    width: 56px; height: 9px;
  }

  .ring-1 { width: 70px; height: 18px; }
  .ring-2 { width: 120px; height: 30px; }
  .ring-3 { width: 180px; height: 44px; }
  .ring-4 { width: 240px; height: 58px; }

  .landing-prompt-dialog {
    padding: 24px 18px 18px;
    width: calc(100vw - 28px);
  }

  .landing-prompt-text {
    font-size: 13px;
    margin-bottom: 18px;
  }
}

/* ================================================================
   ACCESSIBILITY — Reduced Motion
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .landing-btn,
  .landing-btn-login:hover,
  .landing-btn-start:hover,
  .landing-btn-login:active,
  .landing-btn-start:active {
    transition: none;
    transform: none !important;
    animation: none !important;
  }

  .orbit-core,
  .orbit-ring {
    animation: none !important;
    opacity: 0.20;
  }

  .landing-overlay {
    transition: none;
  }

  .landing-prompt-dialog {
    animation: none;
  }
}

/* ================================================================
   Taste Skill polish - visual-only overrides
   Keeps the existing DOM, event hooks, and responsive flow intact.
   ================================================================ */
.landing-overlay {
  --landing-gold: #d8b75e;
  --landing-gold-bright: #f0d78f;
  --landing-ink: #061226;
  --landing-text: #f2ead4;
  background:
    radial-gradient(ellipse at 76% 40%, rgba(34, 78, 142, 0.22), transparent 45%),
    radial-gradient(ellipse at 18% 76%, rgba(188, 148, 64, 0.08), transparent 34%),
    linear-gradient(145deg, #030a16 0%, #07162c 52%, #09264b 100%);
}

.landing-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 62% 46%, black, transparent 74%);
  -webkit-mask-image: radial-gradient(circle at 62% 46%, black, transparent 74%);
}

.landing-copy {
  width: min(34rem, 39vw);
}

.landing-eyebrow {
  color: rgba(232, 204, 132, 0.82);
  border-bottom-color: rgba(216, 183, 94, 0.34);
  letter-spacing: 0.22em;
}

.landing-hero-title {
  max-width: 14em;
  color: var(--landing-text);
  font-size: clamp(2rem, 3.25vw, 3.7rem);
  font-weight: 780;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 18px 50px rgba(2, 9, 22, 0.52);
}

.landing-hero-desc {
  max-width: 29rem;
  color: rgba(211, 222, 241, 0.68);
  font-size: clamp(0.84rem, 1vw, 0.98rem);
  line-height: 1.85;
  text-wrap: pretty;
}

.landing-tags {
  gap: 0.55rem;
}

.landing-tag {
  padding: 0.48rem 0.8rem;
  border-radius: 0.55rem;
  border-color: rgba(216, 183, 94, 0.2);
  background: rgba(12, 30, 57, 0.48);
  color: rgba(232, 218, 180, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 28px rgba(1, 8, 20, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.landing-tag:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 204, 132, 0.42);
  background: rgba(27, 48, 78, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 32px rgba(1, 8, 20, 0.22);
}

.landing-map-img {
  opacity: 0.46;
  filter:
    saturate(0.72)
    drop-shadow(0 0 8px rgba(216, 183, 94, 0.1))
    drop-shadow(0 20px 44px rgba(3, 12, 30, 0.34));
}

.landing-brand-name {
  color: var(--landing-gold-bright);
  letter-spacing: 0.055em;
  text-shadow: 0 10px 32px rgba(216, 183, 94, 0.2);
}

.landing-btn {
  border-radius: 0.72rem;
  letter-spacing: 0.025em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 18px 42px rgba(1, 8, 20, 0.28);
}

.landing-btn-login {
  color: rgba(239, 218, 162, 0.9);
  border: 1px solid rgba(216, 183, 94, 0.42);
  background: rgba(8, 28, 55, 0.7);
}

.landing-btn-login:hover {
  border-color: rgba(240, 215, 143, 0.72);
  background: rgba(17, 42, 75, 0.82);
}

.landing-btn-start {
  color: var(--landing-ink);
  background: linear-gradient(120deg, #eed58e 0%, #d6b455 56%, #bb9437 100%);
}

.landing-btn:focus-visible,
.landing-lang-btn:focus-visible,
.landing-user-trigger:focus-visible,
.landing-user-menu-item:focus-visible,
.landing-prompt-btn:focus-visible {
  outline: 2px solid var(--landing-gold-bright, #f0d78f);
  outline-offset: 4px;
}

.landing-prompt-dialog,
.landing-user-menu {
  border-color: rgba(216, 183, 94, 0.3);
  background: rgba(7, 23, 45, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 28px 80px rgba(1, 8, 20, 0.56);
}

@media (min-width: 981px) {
  .landing-copy {
    top: 20vh;
  }

  .landing-buttons {
    left: clamp(56px, 6.5vw, 120px);
    top: auto;
    bottom: 11vh;
    transform: none;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .landing-hero-title {
    letter-spacing: -0.02em;
  }

  .landing-overlay::before {
    opacity: 0.16;
    background-size: 40px 40px;
  }
}

/* ================================================================
   Light workbench palette alignment
   Color-only pass: preserves the landing layout and interactions.
   ================================================================ */
.landing-overlay {
  --landing-gold: #9a7a35;
  --landing-gold-bright: #8b6e2d;
  --landing-ink: #17263e;
  --landing-text: #172033;
  background:
    radial-gradient(ellipse at 76% 40%, rgba(44, 73, 112, 0.09), transparent 45%),
    radial-gradient(ellipse at 18% 76%, rgba(185, 151, 72, 0.08), transparent 34%),
    #f2f0e9;
}

.landing-overlay::before {
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(23, 38, 62, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 38, 62, 0.02) 1px, transparent 1px);
}

.landing-brand-name,
.landing-eyebrow {
  color: #8b6e2d;
  text-shadow: none;
}

.landing-brand-sub,
.landing-hero-desc {
  color: #6f7885;
}

.landing-hero-title {
  color: #172033;
  text-shadow: none;
}

.landing-tag {
  border-color: rgba(30, 43, 63, 0.13);
  color: #4f5b6c;
  background: rgba(251, 250, 246, 0.82);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.landing-tag:hover {
  border-color: rgba(139, 110, 45, 0.32);
  color: #17263e;
  background: #fbfaf6;
  box-shadow: 0 8px 18px rgba(23, 38, 62, 0.08);
}

.landing-lang-btn {
  color: #7c8592;
}

.landing-lang-btn:hover,
.landing-lang-btn.active {
  color: #17263e;
}

.landing-lang-divider {
  color: #a4aab2;
}

.landing-user-trigger {
  border-color: rgba(30, 43, 63, 0.16);
  color: #354155;
  background: #ffffff;
}

.landing-user-trigger:hover {
  border-color: rgba(139, 110, 45, 0.38);
  background: #fbfaf6;
}

.landing-map-img {
  opacity: 0.58;
  mix-blend-mode: multiply;
  filter:
    grayscale(1)
    sepia(0.08)
    hue-rotate(172deg)
    saturate(0.88)
    contrast(1.22)
    brightness(0.58)
    drop-shadow(0 18px 34px rgba(23, 38, 62, 0.12));
}

.landing-map-glow {
  opacity: 0.42;
  mix-blend-mode: multiply;
  background:
    radial-gradient(circle at 50% 48%, rgba(44, 73, 112, 0.05), transparent 46%),
    radial-gradient(circle at 70% 68%, rgba(139, 110, 45, 0.03), transparent 24%);
}

.landing-energy-orbit {
  display: none;
}

.landing-btn {
  box-shadow: 0 12px 28px rgba(23, 38, 62, 0.12);
}

.landing-btn-login {
  color: #17263e;
  border: 1px solid rgba(30, 43, 63, 0.2);
  background: #ffffff;
}

.landing-btn-login::after {
  background: rgba(23, 38, 62, 0.035);
}

.landing-btn-login:hover {
  border-color: rgba(139, 110, 45, 0.42);
  background: #fbfaf6;
  box-shadow: 0 14px 30px rgba(23, 38, 62, 0.13);
}

.landing-btn-start {
  color: #ffffff;
  border: 1px solid #17263e;
  background: #17263e;
}

.landing-btn-start::after {
  background: rgba(255, 255, 255, 0.08);
}

.landing-btn-start:hover {
  border-color: #253a58;
  background: #253a58;
  box-shadow: 0 16px 34px rgba(23, 38, 62, 0.2);
}

.landing-btn:focus-visible,
.landing-lang-btn:focus-visible,
.landing-user-trigger:focus-visible,
.landing-user-menu-item:focus-visible,
.landing-prompt-btn:focus-visible {
  outline-color: #8b6e2d;
}

@media (min-width: 981px) {
  .landing-map-img {
    top: 25vh;
    left: 62%;
    transform: translateX(-50%) scale(1.2);
  }

  html[data-land-lang="en"] .landing-tags {
    width: max-content;
    max-width: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
}

/* ================================================================
   Landing mobile composition
   Keeps the world map visible while making the entry content fit.
   ================================================================ */
@media (max-width: 768px) {
  .landing-overlay {
    min-height: 100dvh;
  }

  .landing-top-brand {
    top: max(12px, env(safe-area-inset-top));
  }

  .landing-brand-name {
    font-size: clamp(20px, 5.5vw, 25px);
  }

  .landing-top-actions {
    top: max(54px, calc(env(safe-area-inset-top) + 42px));
    right: 14px;
  }

  .landing-copy {
    top: clamp(104px, 15dvh, 148px);
    left: 22px;
    width: min(76vw, 350px);
    align-items: flex-start;
    text-align: left;
  }

  .landing-eyebrow {
    margin-bottom: 14px;
    font-size: 9px;
    letter-spacing: 0.2em;
  }

  .landing-hero-title {
    max-width: none;
    margin-bottom: 12px;
    font-size: clamp(28px, 8.4vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.045em;
    text-align: left;
    text-wrap: wrap;
  }

  html[data-land-lang="en"] .landing-hero-title {
    font-size: clamp(26px, 7.8vw, 35px);
  }

  .landing-hero-desc {
    max-width: min(72vw, 330px);
    margin-bottom: 16px;
    font-size: clamp(11px, 3.15vw, 13px);
    line-height: 1.72;
    text-align: left;
  }

  .landing-tags {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: start;
    gap: 7px;
  }

  .landing-tag {
    min-width: 0 !important;
    padding: 6px 10px;
    font-size: 10px;
  }

  .landing-map-img {
    display: block;
    top: 32dvh;
    left: 65%;
    width: max(620px, 145vw);
    max-width: none;
    max-height: none;
    transform: translateX(-50%);
    opacity: 0.34;
  }

  .landing-buttons {
    top: auto;
    right: 16px;
    bottom: max(20px, calc(env(safe-area-inset-bottom) + 14px));
    left: 16px;
    width: auto;
    transform: none;
    gap: 10px;
  }

  .landing-btn {
    width: auto;
    min-width: 0;
    height: 48px;
    flex: 1 1 0;
    padding: 0 12px;
    font-size: clamp(12px, 3.4vw, 15px);
  }
}

@media (max-width: 480px) {
  .landing-brand-sub {
    display: none;
  }

  .landing-copy {
    top: clamp(96px, 13.5dvh, 126px);
    left: 18px;
    width: min(78vw, 330px);
  }

  .landing-hero-title {
    font-size: clamp(27px, 8.7vw, 35px);
  }

  .landing-hero-desc {
    max-width: 76vw;
    font-size: clamp(11px, 3.2vw, 12.5px);
  }

  .landing-map-img {
    top: 33dvh;
    left: 68%;
    width: max(580px, 158vw);
    opacity: 0.31;
  }

  .landing-buttons {
    right: 12px;
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px));
    left: 12px;
    gap: 8px;
  }

  .landing-btn {
    height: 46px;
    padding: 0 8px;
    font-size: clamp(11px, 3.4vw, 14px);
  }
}

@media (max-width: 360px) {
  .landing-copy {
    top: clamp(88px, 12.5dvh, 108px);
    left: 14px;
  }

  .landing-hero-title {
    font-size: clamp(25px, 8.5vw, 30px);
  }

  .landing-hero-desc {
    line-height: 1.58;
  }

  .landing-tag {
    padding: 5px 8px;
    font-size: 9px;
  }

  .landing-map-img {
    top: 34dvh;
    opacity: 0.28;
  }

  .landing-btn {
    height: 44px;
    font-size: 11px;
  }
}

/* Guest demo entry sits beneath the two primary actions without competing with them. */
.landing-btn-guest {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 210px;
  padding: 9px 20px;
  transform: translateX(-50%);
  border: 1px solid rgba(139, 110, 45, 0.28);
  border-radius: 12px;
  color: #6d5727;
  background: rgba(250, 249, 245, 0.78);
  box-shadow: 0 5px 16px rgba(27, 38, 55, 0.06);
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.landing-btn-guest:hover {
  border-color: rgba(139, 110, 45, 0.52);
  color: #17263e;
  background: rgba(250, 249, 245, 0.96);
  transform: translateX(-50%) translateY(-1px);
}

.landing-btn-guest:disabled {
  cursor: wait;
  opacity: 0.6;
}

@media (max-width: 767px) {
  .landing-btn-guest {
    top: auto;
    right: 0;
    bottom: calc(100% + 9px);
    left: 0;
    width: max-content;
    min-width: 0;
    margin: 0 auto;
    padding: 7px 15px;
    transform: none;
    font-size: 11px;
  }

  .landing-btn-guest:hover {
    transform: translateY(-1px);
  }
}
