/* ═══════════════════════════════════════════════════════════
   ASHBORN Landing — Halide topo hero, volcanic retheme
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&family=JetBrains+Mono:wght@400;600&family=Instrument+Sans:wght@400;500;600;700&display=swap');

:root {
  --lp-bg: #0a0a0a;
  --lp-silver: #e8e4dc;
  --lp-muted: #9a958c;
  --lp-accent: #ff3c00;
  --lp-ember: #ff8a3c;
  --lp-gold: #ffd9a0;
  --lp-panel: rgba(18, 14, 12, 0.82);
  --lp-border: rgba(224, 224, 224, 0.12);
  --lp-grain: 0.12;
  --lp-nav-h: 72px;
  --font-display: 'Syncopate', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

html.landing-active {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  background: var(--lp-bg) !important;
}
html.landing-active body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100%;
  background: var(--lp-bg) !important;
}

html.game-active,
html.game-active body {
  overflow: hidden !important;
  height: 100% !important;
}

#game-root {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: #07060a;
}
#game-root:not([hidden]) {
  display: block;
}

/* ── Shell visibility ─────────────────────────────────────── */
#landing-root {
  position: relative;
  z-index: 50;
  min-height: 100vh;
  background: var(--lp-bg);
  color: var(--lp-silver);
  font-family: var(--font-body);
}
#landing-root[hidden] { display: none !important; }

#game-root[hidden] { display: none !important; }

/* ── Grain overlay ────────────────────────────────────────── */
.lp-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: var(--lp-grain);
  filter: url(#lp-grain-filter);
}

/* ── Top nav ──────────────────────────────────────────────── */
.lp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--lp-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(to bottom, rgba(10,10,10,0.92), rgba(10,10,10,0.55) 70%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.lp-nav.is-solid {
  background: rgba(10, 10, 10, 0.94);
  border-bottom-color: var(--lp-border);
}

.lp-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--lp-silver);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.lp-nav__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 60, 0, 0.35));
}

.lp-nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: center;
}
.lp-nav__links a,
.lp-nav__links button.lp-link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-muted);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.lp-nav__links a:hover,
.lp-nav__links button.lp-link:hover,
.lp-nav__links a.is-active,
.lp-nav__links button.lp-link.is-active {
  color: var(--lp-silver);
  background: rgba(255, 255, 255, 0.06);
}

.lp-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lp-online {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #7dffa0;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(125, 255, 160, 0.25);
  border-radius: 999px;
  background: rgba(20, 40, 28, 0.55);
}
@media (min-width: 900px) {
  .lp-online { display: inline-flex; }
}
.lp-online__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #5dff8a;
  box-shadow: 0 0 8px #5dff8a;
  animation: lp-pulse 1.6s ease-in-out infinite;
}
@keyframes lp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.lp-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 0.7rem 1.15rem;
  transition: transform 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 88% 100%, 0 100%);
}
.lp-btn--primary {
  background: var(--lp-silver);
  color: var(--lp-bg);
}
.lp-btn--primary:hover {
  background: var(--lp-accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255, 60, 0, 0.35);
}
.lp-btn--buy {
  background: transparent;
  color: var(--lp-ember);
  border: 1px solid rgba(255, 138, 60, 0.55);
  clip-path: none;
  border-radius: 4px;
  padding: 0.55rem 0.9rem;
}
.lp-btn--buy:hover {
  background: rgba(255, 60, 0, 0.15);
  border-color: var(--lp-accent);
  color: #fff;
  transform: translateY(-2px);
}
.lp-btn--ghost {
  background: transparent;
  color: var(--lp-silver);
  border: 1px solid var(--lp-border);
  clip-path: none;
  border-radius: 4px;
}
.lp-btn--ghost:hover {
  border-color: var(--lp-silver);
  transform: translateY(-2px);
}
.lp-btn--icon {
  width: 38px; height: 38px;
  padding: 0;
  clip-path: none;
  border-radius: 4px;
  border: 1px solid var(--lp-border);
  background: rgba(255,255,255,0.04);
  color: var(--lp-silver);
  justify-content: center;
}
.lp-btn--icon:hover {
  border-color: var(--lp-silver);
  background: rgba(255,255,255,0.1);
}
.lp-btn--icon svg { width: 16px; height: 16px; fill: currentColor; }

.lp-nav__burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--lp-border);
  background: transparent;
  color: var(--lp-silver);
  border-radius: 4px;
  cursor: pointer;
}
@media (max-width: 860px) {
  .lp-nav__links { display: none; }
  .lp-nav__burger { display: grid; place-items: center; }
  .lp-nav.is-open .lp-nav__links {
    display: flex;
    position: absolute;
    top: var(--lp-nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(10,10,10,0.97);
    padding: 1rem;
    border-bottom: 1px solid var(--lp-border);
  }
}

/* ── Hero — 3D Ashborn landmark map ───────────────────────── */
.lp-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 55% at 50% 70%, rgba(255, 70, 20, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 70% 20%, rgba(80, 40, 120, 0.12), transparent 50%),
    linear-gradient(180deg, #050408 0%, #0c080a 45%, #120a08 100%);
}

.lp-viewport {
  perspective: 1800px;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lp-viewport--webgl {
  perspective: none;
}

/* Live WebGL realm frame */
.lp-realm-frame {
  position: relative;
  width: min(920px, 94vw);
  height: min(560px, 68vh);
  border-radius: 14px;
  border: 1px solid rgba(255, 160, 80, 0.22);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(255, 60, 0, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  background:
    radial-gradient(ellipse 70% 50% at 40% 35%, rgba(255, 80, 20, 0.12), transparent 55%),
    linear-gradient(160deg, #100c0a 0%, #080608 100%);
  overflow: hidden;
  animation: lm-frame-in 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes lm-frame-in {
  from { opacity: 0; transform: translateY(28px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

.lp-realm-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.lp-realm-host canvas.lm-webgl {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.lm-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--lp-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2rem;
  text-align: center;
}

/* Elevation legend (high / low land) */
.lm-elev-scale {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: rgba(8, 6, 6, 0.72);
  border: 1px solid rgba(255, 160, 80, 0.22);
  backdrop-filter: blur(8px);
  pointer-events: none;
  min-width: 92px;
}
.lm-elev-scale__title {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: var(--lp-muted);
  margin-bottom: 0.35rem;
}
.lm-elev-scale__bar {
  height: 72px;
  width: 12px;
  margin: 0 auto 0.35rem;
  border-radius: 6px;
  background: linear-gradient(
    180deg,
    #c8c4cc 0%,
    #5a5458 22%,
    #3e383f 40%,
    #221d24 55%,
    #8a7254 72%,
    #4a6a3a 88%,
    #1a3040 100%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.lm-elev-scale__row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  color: #ffe0b8;
}
.lm-elev-scale__note {
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.04em;
  color: var(--lp-muted);
  text-align: center;
  max-width: 100px;
}

.lp-canvas3d {
  position: relative;
  width: min(720px, 90vw);
  height: min(520px, 62vh);
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s;
  will-change: transform;
}

/* Terrain plate (base of the diorama) */
.lm-plate {
  position: absolute;
  inset: 8% 4% 4%;
  transform-style: preserve-3d;
  border-radius: 12px;
  background:
    radial-gradient(ellipse 45% 40% at 32% 38%, rgba(255, 80, 20, 0.35), transparent 55%),
    radial-gradient(ellipse 30% 28% at 72% 58%, rgba(40, 90, 120, 0.25), transparent 50%),
    linear-gradient(160deg, #1a1210 0%, #2a1812 35%, #14100e 70%, #0e0c0c 100%);
  border: 1px solid rgba(255, 160, 80, 0.18);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(255, 60, 0, 0.12),
    inset 0 0 80px rgba(0, 0, 0, 0.45);
  overflow: visible;
}

.lm-plate::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 28px,
      rgba(255, 140, 60, 0.04) 29px,
      transparent 30px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 28px,
      rgba(255, 140, 60, 0.035) 29px,
      transparent 30px
    );
  pointer-events: none;
  transform: translateZ(1px);
}

/* Contour / ash haze layers */
.lm-haze {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  pointer-events: none;
  transform-style: preserve-3d;
}
.lm-haze-1 {
  background: radial-gradient(circle, rgba(255, 90, 30, 0.12), transparent 60%);
  transform: translateZ(8px);
}
.lm-haze-2 {
  background: radial-gradient(circle at 60% 40%, rgba(180, 100, 60, 0.08), transparent 55%);
  transform: translateZ(28px);
  opacity: 0.7;
}

/* Landmark pieces */
.lm-mark {
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.45s ease;
  pointer-events: auto;
  cursor: default;
}
.lm-mark:hover .lm-label {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px) translateZ(40px);
}

.lm-label {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%) translateZ(30px);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffe0b8;
  background: rgba(8, 6, 6, 0.82);
  border: 1px solid rgba(255, 140, 60, 0.35);
  padding: 0.28rem 0.5rem;
  border-radius: 3px;
  opacity: 0.85;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  z-index: 5;
}
.lm-label small {
  display: block;
  color: var(--lp-muted);
  font-size: 0.52rem;
  margin-top: 0.12rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* ── Stage: volcano diorama + dragon orbit ────────────────── */
.lm-stage {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: translateZ(20px);
  z-index: 3;
}

/* Volcano diorama — stacked elliptical rings (miniature model) */
.lm-volcano-dio {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: translateZ(40px);
}
.lm-volcano-dio .lm-label {
  left: 0;
  bottom: auto;
  top: -148px;
  transform: translateX(-50%) translateZ(90px);
}

.lm-volc {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

/* Ground pedestal under the cone */
.lm-volc__base {
  position: absolute;
  left: -110px;
  top: -36px;
  width: 220px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(60, 36, 24, 0.95) 0%, #1a100c 55%, #0c0806 100%);
  border: 1px solid rgba(255, 120, 40, 0.12);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    inset 0 0 30px rgba(0, 0, 0, 0.5);
  transform: rotateX(78deg) translateZ(0);
}

/* Stacked cone rings — each tilted flat like a topo model layer */
.lm-volc__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform-style: preserve-3d;
  border: 1px solid rgba(40, 22, 14, 0.65);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.35),
    inset 0 2px 8px rgba(255, 140, 60, 0.08);
}
.lm-volc__ring--1 {
  width: 200px; height: 68px; margin: -34px 0 0 -100px;
  background: linear-gradient(160deg, #3a2418 0%, #221410 50%, #140e0c 100%);
  transform: rotateX(78deg) translateZ(10px);
}
.lm-volc__ring--2 {
  width: 150px; height: 52px; margin: -26px 0 0 -75px;
  background: linear-gradient(160deg, #4a2c1c 0%, #2a1810 55%, #18100c 100%);
  transform: rotateX(78deg) translateZ(32px);
  border-color: rgba(255, 100, 40, 0.12);
}
.lm-volc__ring--3 {
  width: 100px; height: 36px; margin: -18px 0 0 -50px;
  background: linear-gradient(160deg, #5a3420 0%, #301c12 50%, #1c100c 100%);
  transform: rotateX(78deg) translateZ(54px);
  border-color: rgba(255, 100, 40, 0.18);
}
.lm-volc__ring--4 {
  width: 58px; height: 22px; margin: -11px 0 0 -29px;
  background: linear-gradient(160deg, #6a3a22 0%, #3a2014 50%, #24140e 100%);
  transform: rotateX(78deg) translateZ(72px);
  border-color: rgba(255, 120, 40, 0.28);
  box-shadow: 0 0 20px rgba(255, 60, 0, 0.25), inset 0 0 10px rgba(255, 100, 40, 0.15);
}

/* Vertical cone silhouette for depth cue */
.lm-volc__slope {
  position: absolute;
  left: 0; top: 0;
  width: 120px; height: 110px;
  transform-origin: 50% 100%;
  pointer-events: none;
  opacity: 0.92;
}
.lm-volc__slope--l {
  transform: translate(-60px, -100px) rotateY(28deg) rotateX(-8deg);
  background: linear-gradient(180deg, transparent 0%, #2a1812 18%, #1a100e 70%, transparent 100%);
  clip-path: polygon(50% 0%, 0% 100%, 50% 100%);
  filter: drop-shadow(-8px 4px 10px rgba(0, 0, 0, 0.4));
}
.lm-volc__slope--r {
  transform: translate(-60px, -100px) rotateY(-28deg) rotateX(-8deg);
  background: linear-gradient(180deg, transparent 0%, #4a2a18 18%, #2a1610 70%, transparent 100%);
  clip-path: polygon(50% 0%, 50% 100%, 100% 100%);
  filter: drop-shadow(8px 4px 10px rgba(0, 0, 0, 0.35));
}

/* Lava rivulet down the face */
.lm-volc__flow {
  position: absolute;
  left: -6px;
  top: -88px;
  width: 14px;
  height: 70px;
  background: linear-gradient(180deg, #ff6a20 0%, #ff3010 40%, #8a1808 100%);
  clip-path: polygon(40% 0%, 70% 0%, 100% 100%, 0% 100%);
  box-shadow: 0 0 14px #ff4020, 0 0 28px rgba(255, 40, 0, 0.5);
  transform: translateZ(48px) rotateZ(12deg);
  animation: lm-glow 1.6s ease-in-out infinite;
  opacity: 0.9;
}

/* Crater rim (raised ring) */
.lm-volc__rim {
  position: absolute;
  left: -28px;
  top: -100px;
  width: 56px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid #3a2218;
  background: transparent;
  box-shadow:
    0 0 0 2px rgba(20, 10, 8, 0.8),
    0 4px 12px rgba(0, 0, 0, 0.5),
    inset 0 0 12px rgba(255, 60, 0, 0.35);
  transform: rotateX(72deg) translateZ(88px);
}

.lm-volc__crater {
  position: absolute;
  left: -18px;
  top: -96px;
  width: 36px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #1a0804 0%, #0a0402 100%);
  transform: rotateX(72deg) translateZ(90px);
  box-shadow: inset 0 0 10px #000;
}

.lm-volc__lava {
  position: absolute;
  left: -14px;
  top: -94px;
  width: 28px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 40%, #ffcc60 0%, #ff5a10 45%, #c02008 100%);
  transform: rotateX(72deg) translateZ(92px);
  box-shadow:
    0 0 18px #ff5020,
    0 0 36px rgba(255, 40, 0, 0.7),
    inset 0 0 8px #ffe080;
  animation: lm-glow 1.4s ease-in-out infinite;
}

.lm-volc__glow {
  position: absolute;
  left: -50px;
  top: -130px;
  width: 100px;
  height: 80px;
  background: radial-gradient(ellipse at 50% 70%, rgba(255, 70, 15, 0.55), transparent 65%);
  filter: blur(8px);
  transform: translateZ(100px);
  animation: lm-glow 2s ease-in-out infinite;
  pointer-events: none;
}

.lm-volc__smoke {
  position: absolute;
  left: -16px;
  top: -150px;
  width: 32px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 80%, rgba(90, 80, 75, 0.55), transparent 70%);
  filter: blur(5px);
  transform: translateZ(110px);
  pointer-events: none;
}
.lm-volc__smoke--a { animation: lm-smoke-a 3.5s ease-in-out infinite; }
.lm-volc__smoke--b {
  left: -4px;
  width: 26px;
  animation: lm-smoke-b 4.2s ease-in-out infinite 0.6s;
  opacity: 0.7;
}

.lm-volc__ember {
  position: absolute;
  left: -2px;
  top: -120px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffb040;
  box-shadow:
    0 0 8px #ff8020,
    12px -18px 6px #ff6020,
    -10px -28px 5px #ff9040,
    6px -40px 4px #ff7030;
  transform: translateZ(115px);
  animation: lm-embers 2.2s ease-out infinite;
  pointer-events: none;
}

/* ── Dragon orbit around volcano ──────────────────────────── */
.lm-orbit {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: translateZ(50px);
  pointer-events: none;
  z-index: 6;
}
/* Faint orbit path ring on the diorama plane */
.lm-orbit__ring {
  position: absolute;
  left: -130px;
  top: -42px;
  width: 260px;
  height: 84px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 160, 80, 0.22);
  transform: rotateX(78deg) translateZ(20px);
  box-shadow: 0 0 20px rgba(255, 60, 0, 0.08);
  pointer-events: none;
}
.lm-orbit__arm {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  /* Spin around volcano center */
  animation: lm-orbit-spin 14s linear infinite;
}
.lm-orbit__face {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  /* Radius from volcano center + altitude above crater */
  transform: translateX(145px) translateY(-12px) translateZ(100px) rotateZ(90deg);
}

.lm-dragon--orbit {
  position: absolute;
  left: -40px;
  top: -20px;
  width: 80px;
  height: 40px;
  transform-style: preserve-3d;
  pointer-events: auto;
  /* Bob + slight bank as it circles */
  animation: lm-dragon-bob 1.05s ease-in-out infinite;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.55));
}
.lm-dragon--orbit .lm-label {
  left: 50%;
  bottom: 100%;
  top: auto;
  opacity: 0.75;
  transform: translateX(-50%) translateZ(20px);
}
.lm-dragon--orbit:hover .lm-label {
  opacity: 1;
}

.lm-dragon__body {
  position: absolute;
  left: 8%;
  top: 28%;
  width: 72%;
  height: 38%;
  background: linear-gradient(90deg, #1a0c08 0%, #3a1810 35%, #2a1008 70%, #4a2010 100%);
  clip-path: polygon(0% 60%, 18% 35%, 40% 45%, 58% 20%, 78% 40%, 100% 30%, 92% 65%, 70% 55%, 48% 75%, 22% 60%);
  box-shadow: 0 0 12px rgba(255, 50, 0, 0.35);
}
.lm-dragon__tail {
  position: absolute;
  left: -8%;
  top: 40%;
  width: 28%;
  height: 22%;
  background: linear-gradient(90deg, transparent, #2a1008);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  opacity: 0.9;
}
.lm-dragon__wing {
  position: absolute;
  top: 0;
  width: 42%;
  height: 70%;
  background: linear-gradient(180deg, rgba(255, 90, 30, 0.55), rgba(40, 12, 6, 0.9));
  clip-path: polygon(10% 100%, 50% 0, 90% 100%);
  opacity: 0.9;
  transform-origin: 50% 100%;
  animation: lm-wing 0.55s ease-in-out infinite alternate;
}
.lm-dragon__wing--l { left: 12%; }
.lm-dragon__wing--r {
  right: 8%;
  animation-delay: -0.12s;
  background: linear-gradient(180deg, rgba(255, 70, 20, 0.45), rgba(30, 10, 5, 0.85));
}
.lm-dragon__eye {
  position: absolute;
  left: 78%;
  top: 32%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff4a10;
  box-shadow: 0 0 10px #ff6020, 0 0 18px rgba(255, 80, 20, 0.8);
}
.lm-dragon__fire {
  position: absolute;
  left: 88%;
  top: 36%;
  width: 22px;
  height: 8px;
  background: linear-gradient(90deg, #ff8020, rgba(255, 120, 40, 0));
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 60%);
  filter: blur(0.5px);
  opacity: 0.85;
  animation: lm-fire-spit 1.4s ease-in-out infinite;
}

@keyframes lm-orbit-spin {
  from { transform: rotateZ(0deg); }
  to { transform: rotateZ(360deg); }
}
@keyframes lm-dragon-bob {
  0%, 100% { transform: translateY(0) rotateX(8deg) rotateZ(-6deg); }
  50% { transform: translateY(-6px) rotateX(4deg) rotateZ(-2deg); }
}
@keyframes lm-fire-spit {
  0%, 100% { opacity: 0.35; transform: scaleX(0.7); }
  40% { opacity: 0.95; transform: scaleX(1.15); }
  70% { opacity: 0.5; transform: scaleX(0.85); }
}
@keyframes lm-smoke-a {
  0%, 100% { transform: translateZ(110px) translateY(0) scale(1); opacity: 0.55; }
  50% { transform: translateZ(130px) translateY(-18px) scale(1.25); opacity: 0.28; }
}
@keyframes lm-smoke-b {
  0%, 100% { transform: translateZ(112px) translate(6px, 0) scale(1); opacity: 0.4; }
  50% { transform: translateZ(125px) translate(14px, -22px) scale(1.35); opacity: 0.18; }
}
@keyframes lm-embers {
  0% { opacity: 0.9; transform: translateZ(115px) translateY(0); }
  100% { opacity: 0; transform: translateZ(140px) translateY(-28px); }
}

/* Secondary peak */
.lm-cinder {
  left: 72%;
  top: 14%;
  width: 16%;
  height: 22%;
  transform: translateZ(22px);
}
.lm-cinder__body {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #2e2018, #16100e);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  opacity: 0.9;
  box-shadow: 0 0 16px rgba(255, 80, 30, 0.15);
}

/* Lava lake */
.lm-lava {
  left: 28%;
  top: 52%;
  width: 22%;
  height: 14%;
  transform: translateZ(12px);
}
.lm-lava__pool {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 40%, #ff8a30, #ff3010 45%, #5a1008 100%);
  box-shadow: 0 0 28px rgba(255, 50, 10, 0.55), inset 0 0 16px #ffaa40;
  animation: lm-glow 1.8s ease-in-out infinite;
  border: 1px solid rgba(255, 160, 40, 0.3);
}

/* Village Emberhold */
.lm-village {
  left: 62%;
  top: 58%;
  width: 18%;
  height: 16%;
  transform: translateZ(18px);
}
.lm-hut {
  position: absolute;
  bottom: 0;
  width: 28%;
  height: 55%;
  background: linear-gradient(180deg, #5a4030, #2a1810);
  border: 1px solid rgba(255, 200, 120, 0.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.lm-hut:nth-child(1) { left: 8%; height: 48%; }
.lm-hut:nth-child(2) { left: 36%; height: 62%; background: linear-gradient(180deg, #6a4830, #301c10); }
.lm-hut:nth-child(3) { left: 62%; height: 50%; }
.lm-hut__roof {
  position: absolute;
  top: -35%;
  left: -10%;
  right: -10%;
  height: 40%;
  background: linear-gradient(180deg, #8a5030, #4a2818);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.lm-village__glow {
  position: absolute;
  left: 30%;
  bottom: 20%;
  width: 40%;
  height: 30%;
  background: radial-gradient(circle, rgba(255, 180, 80, 0.5), transparent 70%);
  filter: blur(4px);
  transform: translateZ(4px);
}

/* Castle Kaer */
.lm-castle {
  left: 8%;
  top: 48%;
  width: 16%;
  height: 22%;
  transform: translateZ(28px);
}
.lm-castle__keep {
  position: absolute;
  left: 25%;
  bottom: 0;
  width: 50%;
  height: 85%;
  background: linear-gradient(180deg, #4a4458, #1e1a28);
  border: 1px solid rgba(180, 160, 220, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.lm-castle__tower {
  position: absolute;
  bottom: 0;
  width: 28%;
  height: 100%;
  background: linear-gradient(180deg, #55506a, #221e30);
  border: 1px solid rgba(180, 160, 220, 0.2);
}
.lm-castle__tower--l { left: 0; height: 70%; }
.lm-castle__tower--r { right: 0; height: 75%; }
.lm-castle__flag {
  position: absolute;
  top: -12%;
  left: 42%;
  width: 3px;
  height: 18%;
  background: #888;
}
.lm-castle__flag::after {
  content: '';
  position: absolute;
  top: 0;
  left: 3px;
  width: 10px;
  height: 7px;
  background: #ff4a20;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Temple ruins */
.lm-ruins {
  left: 78%;
  top: 38%;
  width: 14%;
  height: 14%;
  transform: translateZ(16px);
}
.lm-pillar {
  position: absolute;
  bottom: 0;
  width: 18%;
  height: 80%;
  background: linear-gradient(180deg, #5a6a58, #2a3228);
  border: 1px solid rgba(160, 220, 160, 0.2);
}
.lm-pillar:nth-child(1) { left: 10%; height: 70%; transform: rotateZ(-4deg); }
.lm-pillar:nth-child(2) { left: 40%; height: 90%; }
.lm-pillar:nth-child(3) { left: 68%; height: 55%; transform: rotateZ(6deg); }

/* Water falls pool */
.lm-falls {
  left: 48%;
  top: 72%;
  width: 14%;
  height: 10%;
  transform: translateZ(10px);
}
.lm-falls__pool {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 40%, #6ec8ff, #2a6080 60%, #102028 100%);
  box-shadow: 0 0 16px rgba(80, 180, 255, 0.35);
  border: 1px solid rgba(120, 200, 255, 0.25);
}

/* Path / relic trail */
.lm-path {
  position: absolute;
  left: 35%;
  top: 45%;
  width: 40%;
  height: 30%;
  transform: translateZ(6px);
  background: transparent;
  border: none;
  pointer-events: none;
  opacity: 0.55;
}
.lm-path::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 80%, rgba(255, 200, 120, 0.5) 0 3px, transparent 4px),
    radial-gradient(circle at 28% 65%, rgba(255, 200, 120, 0.45) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 48% 50%, rgba(255, 200, 120, 0.5) 0 3px, transparent 4px),
    radial-gradient(circle at 68% 40%, rgba(255, 200, 120, 0.4) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 88% 28%, rgba(255, 200, 120, 0.55) 0 3px, transparent 4px);
}

/* Sea edge */
.lm-sea {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18%;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(20, 40, 55, 0.75));
  transform: translateZ(2px);
  pointer-events: none;
}

@keyframes lm-glow {
  0%, 100% { filter: brightness(1); opacity: 1; }
  50% { filter: brightness(1.3); opacity: 0.92; }
}
@keyframes lm-wing {
  from { transform: scaleY(1) rotateZ(0deg); }
  to { transform: scaleY(0.62) rotateZ(-10deg); }
}

/* Legend chip under map */
.lm-legend {
  position: absolute;
  left: 50%;
  bottom: max(1.2rem, 4vh);
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-muted);
  width: min(90vw, 720px);
  z-index: 8;
  pointer-events: none;
}
.lm-legend--webgl {
  bottom: max(0.8rem, 2.5vh);
}
.lm-legend span::before {
  content: '◆';
  color: var(--lp-accent);
  margin-right: 0.3rem;
  font-size: 0.45rem;
}
.lm-legend__high::before { color: #c8c4cc; }
.lm-legend__low::before { color: #4a6a3a; }

/* Soft title readability over WebGL */
.lp-viewport--webgl + .lp-interface .lp-hero-title,
.lp-hero:has(.lp-viewport--webgl) .lp-hero-title {
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.65), 0 0 60px rgba(255, 60, 0, 0.2);
}

.lp-interface {
  position: absolute;
  inset: 0;
  padding: clamp(5.5rem, 10vh, 7rem) clamp(1.25rem, 4vw, 4rem) 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  z-index: 10;
  pointer-events: none;
}

.lp-hero-meta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}
.lp-hero-coords {
  text-align: right;
  font-family: var(--font-mono);
  color: var(--lp-accent);
  font-size: 0.68rem;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.lp-hero-title {
  grid-column: 1 / -1;
  align-self: center;
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 9.5rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0;
  mix-blend-mode: difference;
  text-shadow: 0 0 60px rgba(255, 60, 0, 0.25);
}

.lp-hero-foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  pointer-events: auto;
}
.lp-hero-archive {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--lp-muted);
  line-height: 1.55;
}
.lp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.lp-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--lp-silver), transparent);
  animation: lp-flow 2s infinite ease-in-out;
  z-index: 12;
}
@keyframes lp-flow {
  0%, 100% { transform: translateX(-50%) scaleY(0); transform-origin: top; }
  50% { transform: translateX(-50%) scaleY(1); transform-origin: top; }
  51% { transform: translateX(-50%) scaleY(1); transform-origin: bottom; }
}

/* ── CA strip ─────────────────────────────────────────────── */
.lp-ca-bar {
  position: relative;
  z-index: 20;
  margin: -1.5rem auto 0;
  max-width: 920px;
  padding: 0 1.25rem;
}
.lp-ca {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: var(--lp-panel);
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.lp-ca__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--lp-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lp-ca__value {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  color: var(--lp-gold);
  word-break: break-all;
}
.lp-ca__copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 217, 160, 0.35);
  background: rgba(255, 217, 160, 0.08);
  color: var(--lp-gold);
  cursor: pointer;
  transition: 0.2s;
}
.lp-ca__copy:hover,
.lp-ca__copy.is-copied {
  background: var(--lp-accent);
  border-color: var(--lp-accent);
  color: #fff;
}

/* ── Scroll archive sections (editorial panels) ───────────── */
.lp-main {
  position: relative;
  z-index: 15;
  padding: 5rem 0 7rem;
  background:
    radial-gradient(ellipse 80% 40% at 10% 0%, rgba(255, 60, 0, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 35% at 90% 40%, rgba(80, 40, 120, 0.06), transparent 45%),
    linear-gradient(180deg, transparent 0%, rgba(8, 6, 6, 0.4) 8%, transparent 20%);
}
.lp-main::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 138, 60, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 138, 60, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  opacity: 0.5;
}

.lp-main__intro {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  text-align: center;
}
.lp-main__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--lp-accent);
  margin: 0 0 0.75rem;
}
.lp-main__heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
  background: linear-gradient(180deg, #fff6ea, #ffb066 60%, #c45a20);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lp-main__lead {
  margin: 0 auto;
  max-width: 46ch;
  color: var(--lp-muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.lp-section {
  max-width: 1120px;
  margin: 0 auto 2.75rem;
  padding: 0 clamp(1.1rem, 3.5vw, 2rem);
  position: relative;
}

/* Asymmetric panel — clip-path breaks the plain rectangle */
.lp-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(28, 18, 14, 0.92) 0%, rgba(10, 8, 10, 0.88) 55%, rgba(16, 12, 18, 0.9) 100%);
  border: 1px solid rgba(255, 160, 80, 0.14);
  clip-path: polygon(
    0 0,
    calc(100% - 28px) 0,
    100% 28px,
    100% 100%,
    28px 100%,
    0 calc(100% - 28px)
  );
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 200, 140, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.lp-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 120, 40, 0.35);
  box-shadow:
    0 32px 70px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(255, 60, 0, 0.08),
    inset 0 1px 0 rgba(255, 200, 140, 0.1);
}

/* Accent edge line */
.lp-panel::after {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--sec-accent, var(--lp-accent)), transparent);
  opacity: 0.85;
  pointer-events: none;
}

.lp-section--ember { --sec-accent: #ff3c00; --sec-soft: rgba(255, 60, 0, 0.2); }
.lp-section--peak  { --sec-accent: #ff8a3c; --sec-soft: rgba(255, 138, 60, 0.18); }
.lp-section--gold  { --sec-accent: #ffd9a0; --sec-soft: rgba(255, 217, 160, 0.16); }
.lp-section--sol   { --sec-accent: #7ec8ff; --sec-soft: rgba(126, 200, 255, 0.16); }

@media (min-width: 860px) {
  .lp-panel {
    grid-template-columns: minmax(220px, 32%) 1fr;
    min-height: 280px;
  }
  .lp-section--flip .lp-panel {
    grid-template-columns: 1fr minmax(220px, 32%);
  }
  .lp-section--flip .lp-panel__visual { order: 2; }
  .lp-section--flip .lp-panel__body { order: 1; }
  .lp-section--flip .lp-panel::after {
    left: auto;
    right: 0;
  }
}

/* Visual rail */
.lp-panel__visual {
  position: relative;
  min-height: 200px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 50% 60%, var(--sec-soft), transparent 70%),
    linear-gradient(160deg, rgba(20, 12, 10, 0.5), rgba(8, 6, 8, 0.85));
}
.lp-visual__glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 40% 50%, var(--sec-soft), transparent 55%);
  animation: lp-visual-pulse 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes lp-visual-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.lp-visual__frame {
  position: relative;
  z-index: 2;
  width: min(78%, 200px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 200, 140, 0.18);
  background: rgba(0, 0, 0, 0.28);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}
.lp-visual__index {
  position: absolute;
  top: 18%;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--sec-accent, var(--lp-accent));
  opacity: 0.85;
}
.lp-visual__glyph {
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  color: var(--sec-accent, var(--lp-ember));
  text-shadow: 0 0 28px var(--sec-soft);
  line-height: 1;
}
.lp-visual__label {
  position: absolute;
  bottom: 16%;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  color: var(--lp-muted);
  text-align: center;
  max-width: 80%;
  line-height: 1.3;
}
.lp-visual__art {
  position: absolute;
  inset: 18%;
  opacity: 0.22;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 70%, var(--sec-accent), transparent 55%),
    conic-gradient(from 210deg, transparent, var(--sec-soft), transparent 40%);
  filter: blur(1px);
}
.lp-visual--map .lp-visual__art {
  background:
    repeating-linear-gradient(0deg, transparent 0 10px, rgba(255, 138, 60, 0.12) 10px 11px),
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(255, 138, 60, 0.1) 10px 11px);
  opacity: 0.35;
  clip-path: polygon(20% 30%, 55% 10%, 85% 35%, 70% 80%, 30% 85%, 10% 50%);
}
.lp-visual--hunt .lp-visual__art {
  background:
    radial-gradient(circle at 50% 50%, transparent 30%, var(--sec-soft) 31%, transparent 32%),
    radial-gradient(circle at 50% 50%, transparent 48%, var(--sec-soft) 49%, transparent 50%);
  opacity: 0.5;
}
.lp-visual--token .lp-visual__art {
  border-radius: 50%;
  border: 2px solid var(--sec-accent);
  opacity: 0.45;
  background: conic-gradient(from 0deg, transparent, var(--sec-soft), transparent, var(--sec-soft), transparent);
}

.lp-visual__scan {
  position: absolute;
  left: 0; right: 0;
  height: 28%;
  top: -30%;
  background: linear-gradient(180deg, transparent, rgba(255, 200, 120, 0.08), transparent);
  animation: lp-scan 6s linear infinite;
  pointer-events: none;
}
@keyframes lp-scan {
  0% { top: -30%; }
  100% { top: 110%; }
}

/* Body copy */
.lp-panel__body {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 3.5vw, 2.6rem) clamp(1.4rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lp-kicker {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--sec-accent, var(--lp-accent));
  margin: 0 0 0.55rem;
}
.lp-panel__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.95rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.85rem;
  line-height: 1.12;
  color: var(--lp-silver);
}

.lp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}
.lp-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lp-muted);
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.lp-teaser {
  color: var(--lp-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 1.1rem;
  max-width: 54ch;
}
.lp-full {
  color: var(--lp-silver);
  font-size: 0.95rem;
  line-height: 1.75;
  white-space: pre-line;
  margin: 0 0 1.15rem;
  max-width: 58ch;
  padding: 0.9rem 0 0.2rem;
  border-top: 1px solid rgba(255, 160, 80, 0.12);
}
.lp-full[hidden] { display: none !important; }

.lp-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.25rem;
}
.lp-chip-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a0c08;
  background: linear-gradient(180deg, #ffe0b0, #ff8a3c);
  border: none;
  padding: 0.65rem 1.05rem;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 88% 100%, 0 100%);
  transition: transform 0.2s, filter 0.2s;
}
.lp-chip-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.lp-chip-btn.is-open {
  background: linear-gradient(180deg, #ff8a3c, #c43a10);
  color: #fff;
}
.lp-chip-btn--ghost {
  color: var(--lp-silver);
  background: transparent;
  border: 1px solid rgba(255, 160, 80, 0.35);
  clip-path: none;
  border-radius: 2px;
}
.lp-chip-btn--ghost:hover {
  border-color: var(--lp-ember);
  color: #fff;
  background: rgba(255, 60, 0, 0.1);
}

/* Legacy class safety */
.lp-card { display: none; }
.lp-more { display: none; }

/* ── Dedicated pages ──────────────────────────────────────── */
.lp-page {
  min-height: 100vh;
  padding: calc(var(--lp-nav-h) + 2rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
  max-width: 820px;
  margin: 0 auto;
}
.lp-page[hidden] { display: none !important; }
.lp-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}
.lp-page .lp-kicker { margin-bottom: 1.5rem; }
.lp-page p, .lp-page .lp-prose {
  color: var(--lp-muted);
  line-height: 1.75;
  font-size: 1.02rem;
  white-space: pre-line;
}
.lp-page-back {
  margin-bottom: 2rem;
}

/* ── Wallet gate ──────────────────────────────────────────── */
.lp-wallet {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(var(--lp-nav-h) + 1rem) 1.25rem 2rem;
}
.lp-wallet[hidden] { display: none !important; }

.lp-wallet__card {
  width: min(440px, 100%);
  background: linear-gradient(160deg, rgba(28,18,14,0.95), rgba(10,10,10,0.92));
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,60,0,0.08);
}
.lp-wallet__logo {
  width: 64px; height: 64px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem;
}
.lp-wallet__card h1 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-align: center;
  letter-spacing: 0.12em;
  margin: 0 0 0.35rem;
}
.lp-wallet__sub {
  text-align: center;
  color: var(--lp-muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.lp-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-muted);
  margin-bottom: 0.4rem;
}
.lp-field input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--lp-border);
  border-radius: 6px;
  color: var(--lp-silver);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  outline: none;
  margin-bottom: 1.25rem;
}
.lp-field input:focus {
  border-color: var(--lp-accent);
  box-shadow: 0 0 0 3px rgba(255, 60, 0, 0.15);
}

.lp-wallets {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}
.lp-wallet-opt {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--lp-border);
  background: rgba(255,255,255,0.03);
  color: var(--lp-silver);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: 0.2s;
}
.lp-wallet-opt img {
  width: 32px; height: 32px;
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}
.lp-wallet-opt__demo {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff8a3c, #8c2b12);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}
.lp-wallet-opt:hover {
  border-color: rgba(255, 138, 60, 0.5);
  background: rgba(255, 60, 0, 0.08);
}
.lp-wallet-opt.is-selected {
  border-color: var(--lp-accent);
  box-shadow: 0 0 0 1px var(--lp-accent);
}
.lp-wallet-opt span {
  flex: 1;
}
.lp-wallet-opt small {
  display: block;
  color: var(--lp-muted);
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.lp-wallet__enter {
  width: 100%;
  justify-content: center;
  clip-path: none;
  border-radius: 6px;
  padding: 0.95rem;
  font-size: 0.72rem;
}
.lp-wallet__enter:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}
.lp-wallet__err {
  color: #ff6b6b;
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.2em;
  margin: 0.5rem 0 0;
}
.lp-wallet__back {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  text-align: center;
  background: none;
  border: none;
  color: var(--lp-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-transform: uppercase;
}
.lp-wallet__back:hover { color: var(--lp-silver); }

/* ── Footer ───────────────────────────────────────────────── */
.lp-footer {
  border-top: 1px solid var(--lp-border);
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--lp-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

/* ── Views ────────────────────────────────────────────────── */
.lp-view[hidden] { display: none !important; }

/* ── In-game back + tutorial cursor ───────────────────────── */
.game-back {
  position: fixed;
  top: 58px;
  left: 12px;
  z-index: 40;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.55);
  color: #eee;
  cursor: pointer;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.game-back:hover {
  border-color: #ff8a3c;
  color: #fff;
  background: rgba(255, 60, 0, 0.25);
}
#hud[hidden] ~ .game-back,
.game-back[hidden] { display: none !important; }

.tutorial-cursor {
  position: fixed;
  z-index: 200;
  width: 28px;
  height: 28px;
  margin: -4px 0 0 -4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.tutorial-cursor.is-on { opacity: 1; }
.tutorial-cursor__ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 217, 160, 0.85);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 60, 0, 0.55), inset 0 0 8px rgba(255,138,60,0.35);
  animation: tut-ring 1.2s ease-out infinite;
}
.tutorial-cursor__arrow {
  position: absolute;
  left: 10px; top: 10px;
  width: 0; height: 0;
  border-left: 10px solid #ffe0b0;
  border-top: 6px solid transparent;
  border-bottom: 8px solid transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
  transform: rotate(20deg);
}
@keyframes tut-ring {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.tutorial-curtain {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: radial-gradient(ellipse at center, transparent 20%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.tutorial-curtain.is-on { opacity: 1; }

.tutorial-bubble {
  position: fixed;
  z-index: 195;
  max-width: min(320px, 86vw);
  padding: 0.85rem 1rem;
  background: rgba(12, 10, 10, 0.92);
  border: 1px solid rgba(255, 138, 60, 0.45);
  border-radius: 8px;
  color: #f0ebe3;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.45;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.tutorial-bubble.is-on {
  opacity: 1;
  transform: translateY(0);
}
.tutorial-bubble strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-ember);
  margin-bottom: 0.35rem;
}
