/* ═══════════════════════════════════════════════
   Mystvale Landing Page — Premium Edition
   ═══════════════════════════════════════════════ */

:root {
  --bg-deep:    #0b0a10;
  --bg-stone:   #1a1620;
  --bg-arena:   #2a2028;
  --bg-card:    #100e16;
  --ember:      #ff6a2c;
  --ember-soft: #ffb07a;
  --gold:       #e8c572;
  --gold-hi:    #f5d98a;
  --gold-lo:    #c9922a;
  --steel:      #b8c5d6;
  --crimson:    #c4324a;
  --shadow-clr: #6a2aa8;
  --text:       #e8e4dc;
  --text-dim:   #9a8f85;
  --font-display: 'Cinzel', serif;
  --font-body:    'Inter', sans-serif;
  --gold-gradient: linear-gradient(160deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-lo) 100%);
  --ease-out: cubic-bezier(0.2, 0.65, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(232,197,114,0.35) rgba(11,10,16,0.8);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(232,197,114,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(232,197,114,0.55); }

::selection { background: rgba(232,197,114,0.2); color: var(--gold-hi); }

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── EMBER PARTICLES ── */
#lp-embers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.lp-ember {
  position: absolute;
  border-radius: 50%;
  background: var(--ember);
  animation: lp-ember-rise linear infinite;
  opacity: 0;
  filter: blur(0.5px);
}

@keyframes lp-ember-rise {
  0%   { transform: translateY(0) translateX(0) scale(1) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.9; }
  70%  { opacity: 0.5; }
  100% { transform: translateY(-110vh) translateX(var(--drift)) scale(0.2) rotate(180deg); opacity: 0; }
}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
#lp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 66px;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}

#lp-nav.scrolled {
  background: rgba(10, 9, 15, 0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: rgba(232,197,114,0.1);
  box-shadow: 0 1px 40px rgba(0,0,0,0.6);
}

.lp-nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(232,197,114,0.35));
  transition: filter 0.2s;
}

.lp-nav-logo:hover { filter: drop-shadow(0 0 20px rgba(232,197,114,0.6)); }

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.lp-nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.lp-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; right: 50%;
  height: 1px;
  background: var(--gold);
  transition: left 0.25s var(--ease-out), right 0.25s var(--ease-out);
  opacity: 0;
}

.lp-nav-links a:hover { color: var(--text); }
.lp-nav-links a:hover::after,
.lp-nav-links a.active::after { left: 0; right: 0; opacity: 1; }
.lp-nav-links a.active { color: var(--gold-hi); }

.lp-nav-cta {
  background: var(--gold);
  color: var(--bg-deep) !important;
  font-family: var(--font-display);
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  padding: 0.48rem 1.3rem;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s !important;
}

.lp-nav-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transition: left 0.45s;
}

.lp-nav-cta:hover { background: var(--gold-hi) !important; box-shadow: 0 0 24px rgba(232,197,114,0.5); }
.lp-nav-cta:hover::after { left: 160%; }
/* override the underline for the CTA */
.lp-nav-cta::before { display: none; }

.lp-nav-hamburger {
  display: none;
  background: none;
  border: 1px solid rgba(232,197,114,0.25);
  color: var(--gold);
  font-size: 1.1rem;
  padding: 0.35rem 0.65rem;
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lp-nav-hamburger:hover { border-color: rgba(232,197,114,0.6); box-shadow: 0 0 12px rgba(232,197,114,0.2); }

#lp-nav-drawer {
  display: none;
  position: fixed;
  top: 66px; left: 0; right: 0;
  z-index: 99;
  background: rgba(10, 9, 15, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232,197,114,0.1);
  flex-direction: column;
  padding: 1.2rem 2rem 1.8rem;
  gap: 0.8rem;
}

#lp-nav-drawer.open { display: flex; }

.lp-drawer-link {
  font-size: 0.88rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.2s;
}

.lp-drawer-link:hover { color: var(--text); }

.lp-drawer-cta {
  margin-top: 0.6rem;
  display: inline-block;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.65rem 1.6rem;
  border-radius: 3px;
  text-align: center;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.lp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 1.5rem 3rem;
}

/* layered atmospheric background */
.lp-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(106,42,168,0.16) 0%, transparent 65%),
    radial-gradient(ellipse 55% 35% at 50% 72%, rgba(255,106,44,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(26,22,32,0.5) 0%, transparent 100%),
    var(--bg-deep);
  z-index: 0;
}

/* grain texture overlay */
.lp-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.lp-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  max-width: 720px;
}

.lp-eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.45em;
  color: var(--text-dim);
  text-transform: uppercase;
  opacity: 0;
  animation: lp-fade-up 0.9s 0.15s forwards;
}

.lp-logo {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter:
    drop-shadow(0 0 30px rgba(232,197,114,0.45))
    drop-shadow(0 0 80px rgba(106,42,168,0.25))
    drop-shadow(0 2px 4px rgba(0,0,0,0.8));
  opacity: 0;
  animation: lp-fade-up 1s 0.35s forwards;
}

.lp-hero-ornament {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: rgba(232,197,114,0.35);
  margin-top: -0.4rem;
  opacity: 0;
  animation: lp-fade-up 0.8s 0.55s forwards;
}

.lp-tagline {
  font-style: italic;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: rgba(232,197,114,0.6);
  opacity: 0;
  animation: lp-fade-up 0.8s 0.7s forwards;
}

.lp-hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.4rem;
  opacity: 0;
  animation: lp-fade-up 0.8s 0.9s forwards;
}

.lp-btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 0.8rem 2.2rem;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out);
  box-shadow: 0 4px 20px rgba(232,197,114,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
}

.lp-btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transition: left 0.5s;
}

.lp-btn-primary:hover { background: var(--gold-hi); box-shadow: 0 6px 30px rgba(232,197,114,0.5), inset 0 1px 0 rgba(255,255,255,0.2); transform: translateY(-1px); }
.lp-btn-primary:hover::after { left: 160%; }

.lp-btn-ghost {
  display: inline-block;
  border: 1px solid rgba(232,197,114,0.3);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 0.8rem 2.2rem;
  border-radius: 3px;
  transition: border-color 0.25s, box-shadow 0.25s, color 0.25s;
  animation: lp-ghost-pulse 3s ease-in-out infinite;
}

@keyframes lp-ghost-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,197,114,0); }
  50%       { box-shadow: 0 0 12px 2px rgba(232,197,114,0.12); }
}

.lp-btn-disabled { opacity: 0.4; cursor: not-allowed; animation: none; }
.lp-btn-ghost:not(.lp-btn-disabled):hover { border-color: var(--gold); box-shadow: 0 0 24px rgba(232,197,114,0.3); color: var(--gold-hi); }

.lp-stats-pill {
  /* Phase 3 P0 distill landing (2026-05-09): glassmorphism removed. Per
     DESIGN.md the landing nav is the SINGLE permitted backdrop-filter
     exception. Opaque dark surface + gold edge does the work. */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14,12,22,0.65);
  border: 1px solid rgba(232,197,114,0.25);
  border-radius: 999px;
  padding: 0.45rem 1.3rem;
  font-size: 0.76rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-top: 0.4rem;
  opacity: 0;
  animation: lp-fade-up 0.8s 1.1s forwards;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}

.lp-stat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember), 0 0 16px rgba(255,106,44,0.4);
  animation: lp-pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes lp-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.8)} }

@keyframes lp-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   FEATURE STRIP
══════════════════════════════════════ */
.lp-features {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26,22,32,0.8) 0%, var(--bg-stone) 100%);
  border-top: 1px solid rgba(232,197,114,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 3rem 2.5rem;
}

.lp-features-grid {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.lp-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.2rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s;
}

.lp-feature-card:last-child { border-right: none; }
.lp-feature-card:hover { background: rgba(255,255,255,0.02); }

.lp-feature-icon {
  width: 28px; height: 28px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.85;
}

.lp-feature-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.lp-feature-card span {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* ══════════════════════════════════════
   SHARED SECTION BASE
══════════════════════════════════════ */
.lp-section {
  position: relative;
  z-index: 1;
  padding: 6rem 2.5rem;
}

.lp-section-dark {
  background: linear-gradient(180deg, var(--bg-stone) 0%, rgba(26,22,32,0.95) 100%);
}

.lp-container { max-width: 1120px; margin: 0 auto; }

.lp-section-title {
  /* Phase 3 P0 distill landing (2026-05-09): gradient text removed per
     DESIGN.md §3 "A solid divine-order-gold carries every other heading."
     The brand-mark exception is only .lp-nav-logo / .lp-logo / .lp-footer-logo.
     Atmospheric drop-shadow halo replaces the gradient flourish. */
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(232,197,114,0.45), 0 0 36px rgba(232,197,114,0.18);
  filter: drop-shadow(0 0 20px rgba(232,197,114,0.2));
}

.lp-section-title::before {
  content: '━━ ◆ ━━';
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(232,197,114,0.3);
  -webkit-text-fill-color: rgba(232,197,114,0.3);
  background: none;
  filter: none;
  margin-bottom: 0.7rem;
}

/* scroll reveal */
.lp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.lp-reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════
   CLASS SHOWCASE
══════════════════════════════════════ */
.lp-classes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  overflow: hidden;
}

.lp-class-card {
  /* Phase 3 P0 distill landing (2026-05-09): glassmorphism dropped; the
     90% opaque background already carries the surface. */
  background: rgba(14,12,20,0.95);
  display: flex;
  flex-direction: column;
  transition: background 0.3s var(--ease-out), transform 0.28s var(--ease-out), box-shadow 0.28s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.lp-class-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--fc-r,200),var(--fc-g,200),var(--fc-b,200),0) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.lp-class-card:hover {
  background: rgba(20,16,28,0.95);
  transform: scale(1.01);
  z-index: 2;
  box-shadow: 0 0 0 1px var(--faction-color), 0 8px 40px rgba(0,0,0,0.6);
}

.lp-class-card:hover::before { opacity: 1; }

/* faction background tint on hover */
.lp-class-card:hover { background: linear-gradient(135deg, color-mix(in srgb, var(--faction-color) 8%, #100e16 92%) 0%, #100e16 60%); }

.lp-class-accent {
  height: 2px;
  background: linear-gradient(90deg, var(--faction-color), transparent);
  box-shadow: 0 0 16px var(--faction-color);
  transition: height 0.2s, box-shadow 0.2s;
}

.lp-class-card:hover .lp-class-accent {
  height: 3px;
  box-shadow: 0 0 28px var(--faction-color);
}

.lp-class-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.lp-class-header { display: flex; flex-direction: column; gap: 0.45rem; }

.lp-class-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text);
  transition: color 0.2s;
}

.lp-class-card:hover .lp-class-name { color: var(--gold-hi); }

.lp-class-badges { display: flex; gap: 0.35rem; flex-wrap: wrap; }

.lp-badge {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 2px;
  border: 1px solid var(--bc, rgba(255,255,255,0.15));
  color: var(--bc, var(--text-dim));
  opacity: 0.8;
}

.lp-badge-role {
  --bc: rgba(232,197,114,0.4);
  color: rgba(232,197,114,0.6);
}

.lp-class-quote {
  font-size: 0.73rem;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.45;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
  padding-left: 1rem;
}

.lp-class-quote::before {
  content: '"';
  position: absolute;
  left: 0; top: 0.4rem;
  font-size: 1.1rem;
  line-height: 1;
  color: rgba(232,197,114,0.2);
  font-style: normal;
}

/* ══════════════════════════════════════
   GAME MODES
══════════════════════════════════════ */
.lp-modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.lp-mode-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
  overflow: hidden;
}

/* top line accent */
.lp-mode-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mode-color), transparent);
  box-shadow: 0 0 20px var(--mode-color);
}

/* corner radial glow */
.lp-mode-card::after {
  content: '';
  position: absolute;
  top: -30%; left: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(ellipse at top left, color-mix(in srgb, var(--mode-color) 12%, transparent 88%), transparent 70%);
  pointer-events: none;
}

.lp-mode-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
}

.lp-mode-icon {
  width: 52px; height: 52px;
  color: var(--mode-color);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 12px var(--mode-color));
}

.lp-mode-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.lp-mode-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
  flex: 1;
  position: relative;
  z-index: 1;
}

.lp-mode-btn {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--mode-color);
  border: 1px solid var(--mode-color);
  padding: 0.42rem 1.1rem;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  font-family: var(--font-display);
}

.lp-mode-btn:hover {
  background: var(--mode-color);
  color: var(--bg-deep);
  box-shadow: 0 0 20px color-mix(in srgb, var(--mode-color) 40%, transparent 60%);
}

/* ══════════════════════════════════════
   ROADMAP
══════════════════════════════════════ */
.lp-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.lp-roadmap-col {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
}

.lp-roadmap-header {
  padding: 1rem 1.4rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.lp-rm-shipped  { color: #4a9a6a; background: rgba(74,154,106,0.06); }
.lp-rm-building { color: var(--ember-soft); background: rgba(255,106,44,0.08); }
.lp-rm-soon     { color: var(--gold); background: rgba(232,197,114,0.06); }

.lp-rm-shipped::after  { content: ' ─────'; opacity: 0.3; }
.lp-rm-building::after { content: ' ─────'; opacity: 0.3; }
.lp-rm-soon::after     { content: ' ─────'; opacity: 0.3; }

.lp-roadmap-list {
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lp-roadmap-list li {
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.4;
}

.lp-roadmap-list li::before {
  position: absolute;
  left: 0;
  font-size: 0.7rem;
}

/* Shipped — green check */
.lp-roadmap-list:not(.lp-roadmap-building):not(.lp-roadmap-soon) li::before {
  content: '✓';
  color: rgba(74,154,106,0.5);
}

/* Building — pulsing amber dot */
.lp-roadmap-building li {
  color: var(--text);
}

.lp-roadmap-building li::before {
  content: '●';
  color: var(--ember);
  animation: lp-building-pulse 2s ease-in-out infinite;
}

@keyframes lp-building-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* Coming soon — gold sparkle */
.lp-roadmap-soon li { color: var(--gold); }
.lp-roadmap-soon li::before { content: '✦'; color: var(--gold); }

/* ══════════════════════════════════════
   UPDATES
══════════════════════════════════════ */
.lp-updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.lp-update-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s var(--ease-out);
}

.lp-update-card:hover {
  border-color: rgba(232,197,114,0.18);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  transform: translateY(-2px);
}

.lp-update-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lp-version-badge {
  background: rgba(11,10,16,0.8);
  border: 1px solid rgba(232,197,114,0.35);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.22rem 0.65rem;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(232,197,114,0.1);
}

.lp-update-date { font-size: 0.7rem; color: var(--text-dim); }

.lp-update-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  line-height: 1.35;
}

.lp-update-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.lp-update-bullets li {
  /* Phase 3 P0 distill landing (2026-05-09): side-stripe replaced with a
     leading sigil glyph + indent (the codex-metaphor pattern). */
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.45;
  padding-left: 1rem;
  position: relative;
  transition: color 0.2s;
}
.lp-update-bullets li::before {
  content: '·';
  position: absolute;
  left: 0; top: 0;
  color: rgba(232,197,114,0.55);
  font-weight: 700;
}

/* Phase 3 polish (2026-05-09): orphan border-left-color hook removed
   (the base rule no longer has border-left after session-46 distill;
   the leading `·` sigil gets the lift on hover instead). */
.lp-update-card:hover .lp-update-bullets li {
  color: rgba(232,197,114,0.7);
}
.lp-update-card:hover .lp-update-bullets li::before {
  color: rgba(232,197,114,0.85);
}

/* ══════════════════════════════════════
   COMMUNITY
══════════════════════════════════════ */
.lp-community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.lp-community-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.lp-discord-card {
  border-color: rgba(88,101,242,0.2);
  background: linear-gradient(135deg, rgba(88,101,242,0.05) 0%, var(--bg-card) 50%);
}

.lp-discord-card:hover { border-color: rgba(88,101,242,0.4); box-shadow: 0 8px 40px rgba(88,101,242,0.08); }
.lp-share-card:hover { border-color: rgba(232,197,114,0.15); box-shadow: 0 8px 40px rgba(0,0,0,0.4); }

.lp-discord-logo {
  width: 44px; height: 44px;
  color: #5865f2;
  filter: drop-shadow(0 0 16px rgba(88,101,242,0.45));
}

.lp-discord-card h3, .lp-share-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
}

.lp-discord-card p, .lp-share-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.lp-discord-btn {
  display: inline-block;
  background: #5865f2;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0.65rem 1.6rem;
  border-radius: 6px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  align-self: flex-start;
}

.lp-discord-btn:hover {
  background: #4752c4;
  box-shadow: 0 0 24px rgba(88,101,242,0.45);
  transform: translateY(-1px);
}

.lp-share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: auto;
}

.lp-share-btn {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.48rem 1.1rem;
  border-radius: 999px;
  border: 1px solid;
  cursor: pointer;
  background: none;
  font-family: var(--font-body);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.lp-share-btn:hover { transform: translateY(-1px); }

.lp-share-x      { border-color: rgba(255,255,255,0.18); color: var(--text-dim); }
.lp-share-reddit { border-color: rgba(255,87,0,0.4);     color: #ff6314; }
.lp-share-copy   { border-color: rgba(232,197,114,0.3);  color: var(--gold); }

.lp-share-x:hover      { background: rgba(255,255,255,0.08); color: var(--text); border-color: rgba(255,255,255,0.3); }
.lp-share-reddit:hover { background: rgba(255,87,0,0.1); }
.lp-share-copy:hover   { background: rgba(232,197,114,0.1); box-shadow: 0 0 14px rgba(232,197,114,0.2); }

/* ══════════════════════════════════════
   SUPPORT
══════════════════════════════════════ */
.lp-support-card {
  max-width: 580px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(232,197,114,0.12);
  border-radius: 14px;
  padding: 2.8rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
  box-shadow:
    0 0 80px rgba(255,106,44,0.06),
    0 20px 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.lp-support-body {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 440px;
}

.lp-kofi-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.85rem 2.6rem;
  border-radius: 4px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(232,197,114,0.2);
}

.lp-kofi-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s;
}

.lp-kofi-btn:hover::after { left: 160%; }
.lp-kofi-btn:hover {
  background: var(--gold-hi);
  box-shadow: 0 6px 32px rgba(232,197,114,0.5);
  transform: translateY(-1px);
}

.lp-support-note {
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0.55;
}

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
.lp-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.lp-about-copy {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.lp-about-copy p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.72;
}

.lp-about-vision {
  /* Phase 3 P0 distill landing (2026-05-09): side-stripe replaced with a
     leading ✦ sigil + indent — chronicler's marginalia mark. */
  font-style: italic;
  color: var(--gold) !important;
  font-size: 1.05rem !important;
  line-height: 1.5 !important;
  padding-left: 1.4rem;
  margin: 0.3rem 0;
  position: relative;
}
.lp-about-vision::before {
  content: '✦';
  position: absolute;
  left: 0; top: 0.2rem;
  color: rgba(232,197,114,0.7);
  font-size: 0.85rem;
  font-style: normal;
}

.lp-about-cta { align-self: flex-start; margin-top: 0.5rem; }

.lp-faction-crests {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.lp-crest {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 1.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s var(--ease-out);
}

/* radial glow from top */
.lp-crest::before {
  content: '';
  position: absolute;
  top: -20px; left: 0; right: 0;
  height: 80px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--cc) 20%, transparent 80%), transparent 70%);
  pointer-events: none;
}

/* top bar */
.lp-crest::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cc), transparent);
  box-shadow: 0 0 14px var(--cc);
}

.lp-crest:hover {
  border-color: var(--cc);
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px color-mix(in srgb, var(--cc) 10%, transparent 90%);
}

.lp-crest-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cc);
  position: relative;
  z-index: 1;
}

.lp-crest-motto {
  font-size: 0.73rem;
  font-style: italic;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
#lp-footer {
  position: relative;
  background: var(--bg-deep);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 5rem 2.5rem 2.5rem;
  overflow: hidden;
}

/* ember glow at top of footer */
#lp-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,106,44,0.25), transparent);
}

#lp-footer-embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.lp-footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

.lp-footer-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(232,197,114,0.3));
  margin-bottom: 0.6rem;
}

.lp-footer-tagline {
  font-size: 0.76rem;
  font-style: italic;
  color: var(--text-dim);
  opacity: 0.6;
}

.lp-footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  opacity: 0.7;
}

.lp-footer-col a {
  display: block;
  font-size: 0.79rem;
  color: var(--text-dim);
  margin-bottom: 0.65rem;
  position: relative;
  overflow: hidden;
  transition: color 0.2s;
}

.lp-footer-col a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.lp-footer-col a:hover { color: var(--gold-hi); }
.lp-footer-col a:hover::after { transform: scaleX(1); }

.lp-footer-bar {
  max-width: 1120px;
  margin: 3.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-align: center;
  opacity: 0.45;
  position: relative;
  z-index: 1;
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .lp-classes-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-about-grid   { grid-template-columns: 1fr; gap: 3rem; }
  .lp-footer-grid  { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .lp-features-grid  { grid-template-columns: 1fr; }
  .lp-feature-card   { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 1rem 1.5rem; }
  .lp-feature-card:last-child { border-bottom: none; }
  .lp-modes-grid     { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .lp-roadmap-grid   { grid-template-columns: 1fr; }
  .lp-updates-grid   { grid-template-columns: 1fr; }
  .lp-community-grid { grid-template-columns: 1fr; }
  .lp-footer-grid    { grid-template-columns: 1fr; gap: 1.8rem; }
  .lp-section        { padding: 4.5rem 1.5rem; }
  .lp-features       { padding: 2rem 1.5rem; }
}

@media (max-width: 640px) {
  .lp-classes-grid { grid-template-columns: 1fr; }
  .lp-nav-links    { display: none; }
  .lp-nav-hamburger{ display: block; }
  #lp-nav          { padding: 0 1.2rem; }
}

/* ══════════════════════════════════════
   NAV KO-FI LINK
══════════════════════════════════════ */
.lp-nav-kofi {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  color: var(--ember-soft) !important;
  border: 1px solid rgba(255,176,122,0.25);
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s !important;
}
.lp-nav-kofi:hover {
  color: #fff !important;
  border-color: rgba(255,176,122,0.55);
  box-shadow: 0 0 14px rgba(255,106,44,0.2);
}
/* suppress underline dot from generic nav rule */
.lp-nav-kofi::after { display: none !important; }

/* ══════════════════════════════════════
   HERO SCROLL HINT
══════════════════════════════════════ */
.lp-hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: lp-fade-up 0.8s 1.6s forwards;
}
.lp-hero-scroll-hint span {
  display: block;
  width: 20px; height: 32px;
  border: 1px solid rgba(232,197,114,0.2);
  border-radius: 10px;
  position: relative;
}
.lp-hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 5px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 6px;
  background: rgba(232,197,114,0.4);
  border-radius: 2px;
  animation: lp-scroll-dot 2s ease-in-out infinite;
}
@keyframes lp-scroll-dot {
  0%   { top: 5px; opacity: 1; }
  80%  { top: 18px; opacity: 0; }
  100% { top: 5px; opacity: 0; }
}

/* ══════════════════════════════════════
   SECTION SUBTITLE
══════════════════════════════════════ */
.lp-section-sub {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: -2rem auto 3rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════
   TRAILER SECTION
══════════════════════════════════════ */
.lp-trailer-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-stone) 50%, var(--bg-deep) 100%);
}

.lp-trailer-outer {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(232,197,114,0.1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03);
  aspect-ratio: 16 / 9;
  position: relative;
}

.lp-trailer-outer iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.lp-trailer-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(106,42,168,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 80%, rgba(255,106,44,0.08) 0%, transparent 60%),
    var(--bg-deep);
}

.lp-trailer-bg-glow {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
}

.lp-trailer-play {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(232,197,114,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(232,197,114,0.06);
  position: relative;
  z-index: 1;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
  cursor: default;
}

.lp-trailer-play::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(232,197,114,0.1);
  animation: lp-ring-pulse 3s ease-in-out infinite;
}

@keyframes lp-ring-pulse {
  0%,100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.12); opacity: 0.15; }
}

.lp-trailer-coming {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.lp-trailer-cta {
  display: inline-block;
  background: rgba(232,197,114,0.1);
  border: 1px solid rgba(232,197,114,0.25);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 0.55rem 1.5rem;
  border-radius: 3px;
  position: relative;
  z-index: 1;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.lp-trailer-cta:hover {
  background: rgba(232,197,114,0.18);
  border-color: rgba(232,197,114,0.5);
  box-shadow: 0 0 20px rgba(232,197,114,0.2);
}

/* ══════════════════════════════════════
   CLASS PASSIVE TAG
══════════════════════════════════════ */
.lp-class-passive {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232,197,114,0.45);
  font-family: var(--font-body);
  padding: 0.25rem 0 0.1rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 0.1rem;
}

.lp-class-card:hover .lp-class-passive { color: rgba(232,197,114,0.7); }

/* ══════════════════════════════════════
   CLASSES CTA
══════════════════════════════════════ */
.lp-classes-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ══════════════════════════════════════
   FACTION SECTION
══════════════════════════════════════ */
.lp-factions-section {
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(106,42,168,0.08) 0%, transparent 65%),
    var(--bg-deep);
}

.lp-factions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.lp-faction-card {
  position: relative;
  background: rgba(12,10,18,0.9);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 2rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

/* top accent bar */
.lp-faction-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--fc), transparent 80%);
  box-shadow: 0 0 18px var(--fc);
}

.lp-faction-glow {
  position: absolute;
  top: -40px; left: -20px; right: -20px;
  height: 120px;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, color-mix(in srgb, var(--fc) 14%, transparent 86%), transparent 72%);
  pointer-events: none;
}

.lp-faction-card:hover {
  border-color: color-mix(in srgb, var(--fc) 40%, transparent 60%);
  transform: translateY(-5px);
  box-shadow: 0 20px 55px rgba(0,0,0,0.65), 0 0 30px color-mix(in srgb, var(--fc) 8%, transparent 92%);
}

.lp-faction-identity {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

.lp-faction-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fc);
  position: relative;
  z-index: 1;
  line-height: 1;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--fc) 40%, transparent 60%));
}

.lp-faction-fullname {
  font-size: 0.68rem;
  font-style: italic;
  color: var(--text-dim);
  opacity: 0.65;
  position: relative;
  z-index: 1;
  margin-top: -0.4rem;
}

.lp-faction-quote {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.55;
  flex: 1;
  position: relative;
  z-index: 1;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.lp-faction-classes {
  display: flex;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.lp-faction-classes span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  border: 1px solid color-mix(in srgb, var(--fc) 40%, transparent 60%);
  color: color-mix(in srgb, var(--fc) 80%, var(--text) 20%);
}

.lp-faction-motto {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fc);
  position: relative;
  z-index: 1;
  opacity: 0.8;
}

/* ══════════════════════════════════════
   REDESIGNED SUPPORT SECTION
══════════════════════════════════════ */
.lp-support-section {
  position: relative;
}

.lp-support-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255,106,44,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.lp-support-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  position: relative;
  z-index: 1;
}

.lp-support-ember {
  font-size: 2.8rem;
  line-height: 1;
  filter: drop-shadow(0 0 20px rgba(255,106,44,0.5));
  animation: lp-kofi-bob 3.5s ease-in-out infinite;
}

@keyframes lp-kofi-bob {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-6px) rotate(3deg); }
}

.lp-support-heading {
  /* Phase 3 P0 distill landing (2026-05-09): gradient text removed; solid
     gold + atmospheric halo per DESIGN.md §3. */
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(232,197,114,0.45), 0 0 36px rgba(232,197,114,0.18);
  filter: drop-shadow(0 0 20px rgba(232,197,114,0.2));
}

.lp-support-heading::before {
  content: '━━ ◆ ━━';
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(232,197,114,0.3);
  -webkit-text-fill-color: rgba(232,197,114,0.3);
  background: none;
  filter: none;
  margin-bottom: 0.7rem;
  font-weight: 400;
}

.lp-support-body {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 500px;
}

.lp-support-costs {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 380px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
}

.lp-cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}

.lp-cost-item:last-child { border-bottom: none; }
.lp-cost-item:hover { background: rgba(255,255,255,0.03); }

.lp-cost-label {
  font-size: 0.76rem;
  color: var(--text-dim);
}

.lp-cost-value {
  font-size: 0.76rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  color: var(--gold);
}

.lp-kofi-large {
  font-size: 1rem !important;
  padding: 1rem 3rem !important;
  border-radius: 6px !important;
  box-shadow: 0 6px 40px rgba(232,197,114,0.25), 0 0 80px rgba(255,106,44,0.1) !important;
  letter-spacing: 0.12em !important;
}

.lp-kofi-large:hover {
  box-shadow: 0 8px 50px rgba(232,197,114,0.45), 0 0 80px rgba(255,106,44,0.15) !important;
  transform: translateY(-2px) !important;
}

.lp-support-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  opacity: 0.5;
  max-width: 380px;
  line-height: 1.5;
}

/* ══════════════════════════════════════
   FOOTER KO-FI
══════════════════════════════════════ */
.lp-footer-kofi {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.73rem;
  color: var(--ember-soft) !important;
  border: 1px solid rgba(255,176,122,0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.lp-footer-kofi:hover {
  color: #fff !important;
  border-color: rgba(255,176,122,0.5);
  box-shadow: 0 0 12px rgba(255,106,44,0.2);
}
/* override footer link slide-in underline */
.lp-footer-kofi::after { display: none !important; }

/* ══════════════════════════════════════
   SCROLL PADDING (sticky nav offset)
══════════════════════════════════════ */
html { scroll-padding-top: 80px; }

/* ══════════════════════════════════════
   STATS STRIP
══════════════════════════════════════ */
.lp-stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 2rem 2.5rem;
  background: linear-gradient(to bottom, rgba(106,42,168,0.06), transparent);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.lp-stat-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 2rem;
}

.lp-stat-big {
  /* Phase 3 P0 distill landing (2026-05-09): gradient text removed; solid
     gold + atmospheric halo per DESIGN.md §3. The big stat numbers were
     also flagged as the AI-slop "hero metric template" tell — solid color
     reads more like a chronicler's count than a SaaS landing trope. */
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 22px rgba(232,197,114,0.4), 0 0 44px rgba(232,197,114,0.18);
  line-height: 1;
  letter-spacing: 0.02em;
}

.lp-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.lp-stat-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   MAPS SECTION
══════════════════════════════════════ */
.lp-maps-section {
  background: var(--bg-stone);
}

.lp-maps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.lp-map-card {
  position: relative;
  background: rgba(16,14,22,0.9);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1.5rem 1.2rem 1.3rem;
  overflow: hidden;
  transition: transform 0.28s var(--ease-out), border-color 0.28s ease, box-shadow 0.28s ease;
}

.lp-map-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(var(--mc-rgb, 184,197,214), 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.lp-map-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--mc, #b8c5d6) 35%, transparent);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 40px color-mix(in srgb, var(--mc, #b8c5d6) 10%, transparent);
}

.lp-map-glow {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 60px;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--mc, #b8c5d6) 25%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.lp-map-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--mc, var(--gold));
  margin-bottom: 0.6rem;
  position: relative;
}

.lp-map-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 0.9rem;
  position: relative;
}

.lp-map-tag {
  display: inline-block;
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dim);
  position: relative;
}

.lp-map-tag-hazard {
  color: var(--ember-soft);
  border-color: rgba(255,176,122,0.2);
  background: rgba(255,106,44,0.06);
}

/* ══════════════════════════════════════
   RANKED PROGRESSION
══════════════════════════════════════ */
.lp-ranked-section {
  text-align: center;
}

.lp-rank-ladder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 2.5rem auto 2rem;
  max-width: 960px;
}

.lp-rank-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--rc, #b8c5d6) 20%, transparent);
  background: color-mix(in srgb, var(--rc, #b8c5d6) 5%, transparent);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.lp-rank-tier:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--rc, #b8c5d6) 15%, transparent);
}

.lp-rank-sep {
  font-size: 1rem;
  color: rgba(255,255,255,0.15);
  padding: 0 0.4rem;
}

.lp-rank-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--rc, var(--text));
  white-space: nowrap;
}

.lp-rank-sub {
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.lp-rank-elite {
  border-color: color-mix(in srgb, var(--ember) 40%, transparent);
  background: color-mix(in srgb, var(--ember) 8%, transparent);
}

.lp-rank-mythic {
  border-color: rgba(232,197,114,0.4);
  background: rgba(232,197,114,0.07);
  box-shadow: 0 0 30px rgba(232,197,114,0.1);
}

.lp-rank-mythic .lp-rank-name {
  /* Phase 3 P0 distill landing (2026-05-09): gradient text removed. The
     mythic rank deserves ceremony but stays a heading, not the brand mark. */
  color: var(--gold);
  text-shadow: 0 0 14px rgba(232,197,114,0.55);
  font-size: 0.9rem;
}

.lp-rank-note {
  font-size: 0.77rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   LORE SECTION
══════════════════════════════════════ */
.lp-lore-section {
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

.lp-lore-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(106,42,168,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(255,106,44,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.lp-lore-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.lp-lore-ornament {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: rgba(232,197,114,0.35);
  margin-bottom: 1.2rem;
}

.lp-lore-title {
  /* Phase 3 P0 distill landing (2026-05-09): gradient text removed; solid
     gold + atmospheric halo. Lore is the page's strongest emotional moment
     per the audit's persona walk; the halo carries the ceremony. */
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-shadow: 0 0 22px rgba(232,197,114,0.5), 0 0 48px rgba(232,197,114,0.22);
  margin-bottom: 2rem;
}

.lp-lore-text {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.lp-lore-text p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.8;
}

.lp-lore-text strong {
  font-weight: 600;
}

.lp-lore-mottos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1.2rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.lp-lore-mottos span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  font-weight: 600;
}

/* ══════════════════════════════════════
   FAQ SECTION
══════════════════════════════════════ */
.lp-faq-section {
  /* inherits lp-section-dark */
}

.lp-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 2.5rem;
}

.lp-faq-item {
  padding: 1.6rem 1.8rem;
  background: var(--bg-stone);
  transition: background 0.2s;
}

.lp-faq-item:hover {
  background: rgba(30,26,38,0.9);
}

.lp-faq-q {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 0.7rem;
  line-height: 1.4;
}

.lp-faq-a {
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.lp-faq-a strong {
  color: var(--text);
  font-weight: 600;
}

.lp-faq-link {
  color: var(--ember-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,176,122,0.3);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.lp-faq-link:hover {
  color: var(--ember);
  text-decoration-color: rgba(255,106,44,0.6);
}

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .lp-ember,
  .lp-stat-dot,
  .lp-roadmap-building li,
  .lp-btn-ghost,
  .lp-support-ember,
  .lp-trailer-play::before,
  .lp-hero-scroll-hint span::after { animation: none; }

  .lp-eyebrow, .lp-logo, .lp-hero-ornament,
  .lp-tagline, .lp-hero-btns, .lp-stats-pill,
  .lp-hero-scroll-hint { opacity: 1; animation: none; }

  .lp-reveal { opacity: 1; transform: none; transition: none; }

  .lp-class-card, .lp-mode-card, .lp-update-card,
  .lp-crest, .lp-kofi-btn, .lp-btn-primary,
  .lp-faction-card { transition: none; }
}

/* ── factions responsive ── */
@media (max-width: 1024px) {
  .lp-factions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .lp-factions-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .lp-trailer-outer { aspect-ratio: 4 / 3; }
  .lp-support-costs { max-width: 100%; }
  .lp-kofi-large { font-size: 0.9rem !important; padding: 0.85rem 2rem !important; }
  .lp-stats-strip { gap: 0.5rem; padding: 1.5rem 1rem; }
  .lp-stat-num { padding: 0.4rem 1rem; }
  .lp-stat-big { font-size: 1.8rem; }
  .lp-stat-divider { display: none; }
  .lp-faq-grid { grid-template-columns: 1fr; }
  .lp-lore-mottos { gap: 0.8rem; }
  .lp-rank-ladder { gap: 0.3rem; }
  .lp-rank-sep { display: none; }
}

@media (max-width: 1200px) {
  .lp-maps-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .lp-maps-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-faq-grid { grid-template-columns: 1fr; }
  .lp-rank-ladder { gap: 0.25rem; }
  .lp-rank-tier { padding: 0.5rem 0.7rem; }
}

@media (max-width: 480px) {
  .lp-maps-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   GRIMOIRE ELEVATION — heraldic sigils, ornament, rank-chain
   Phase 4 (2026-05-10): elevate the landing from "premium product
   launch" to the Living Grimoire register PRODUCT.md commits to —
   Slay-the-Spire / Inscryption indie-grimoire lane. Sigils carry
   faction identity; chain medallions replace ladder pebbles; lore
   becomes an illuminated manuscript. Stroke-only gold linework so
   it reads etched, not painted (Tarnish Rule).
   ════════════════════════════════════════════════════════════════ */

/* --- shared sigil fill defaults --- */
.lp-class-watermark,
.lp-faction-sigil,
.lp-crest-sigil,
.lp-rank-apex,
.lp-rank-chain,
.lp-hero-mark {
  color: var(--gold);
  display: block;
  pointer-events: none;
  user-select: none;
}

/* ────────── HERO ────────── */
.lp-hero-mark {
  width: clamp(72px, 9vw, 108px);
  height: clamp(72px, 9vw, 108px);
  filter:
    drop-shadow(0 0 18px rgba(232,197,114,0.55))
    drop-shadow(0 0 42px rgba(232,197,114,0.2))
    drop-shadow(0 0 80px rgba(106,42,168,0.18));
  margin-bottom: 0.4rem;
  opacity: 0;
  animation: lp-mark-arrive 1.1s 0.05s var(--ease-out) forwards,
             lp-mark-breathe 7s 1.1s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes lp-mark-arrive {
  0%   { opacity: 0; transform: scale(0.82) rotate(-6deg); filter: drop-shadow(0 0 0 rgba(232,197,114,0)); }
  60%  { opacity: 1; transform: scale(1.04) rotate(0deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes lp-mark-breathe {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 18px rgba(232,197,114,0.55)) drop-shadow(0 0 42px rgba(232,197,114,0.2)); }
  50%      { transform: scale(1.025); filter: drop-shadow(0 0 24px rgba(232,197,114,0.7)) drop-shadow(0 0 60px rgba(232,197,114,0.28)); }
}

/* Wordmark letter-by-letter reveal (replaces the old single fade-up).
   Override the legacy single-element animation; each <span> rises and
   the gold tone settles a beat after the sigil mark above it. */
.lp-logo {
  animation: none;
  opacity: 1;
  display: inline-block;
  white-space: nowrap;
}
.lp-logo span {
  display: inline-block;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(28px) scaleY(1.06);
  filter: blur(6px);
  animation: lp-letter-rise 0.85s var(--ease-out) forwards;
  /* letter-spacing inherited from .lp-logo — preserves the 0.22em ceremony */
}
.lp-logo span:nth-child(1) { animation-delay: 0.42s; }
.lp-logo span:nth-child(2) { animation-delay: 0.50s; }
.lp-logo span:nth-child(3) { animation-delay: 0.58s; }
.lp-logo span:nth-child(4) { animation-delay: 0.66s; }
.lp-logo span:nth-child(5) { animation-delay: 0.74s; }
.lp-logo span:nth-child(6) { animation-delay: 0.82s; }
.lp-logo span:nth-child(7) { animation-delay: 0.90s; }
.lp-logo span:nth-child(8) { animation-delay: 0.98s; }

@keyframes lp-letter-rise {
  to { opacity: 1; transform: translateY(0) scaleY(1); filter: blur(0); }
}

/* Hero ornament — replace the ASCII fallback with an SVG flourish */
.lp-hero-ornament {
  display: flex;
  justify-content: center;
  width: min(420px, 78vw);
  height: 18px;
  color: var(--gold);
  font-size: 0;
  margin-top: -0.25rem;
}
.lp-hero-ornament svg {
  width: 100%;
  height: 100%;
  opacity: 0.68;
  filter: drop-shadow(0 0 6px rgba(232,197,114,0.35));
}

/* ────────── SECTION FLOURISHES (replace ASCII title prefix) ────────── */
/* Three SVG flourishes encoded as data URIs so the section title
   ::before swaps content per data-flourish, instead of every section
   carrying the same ━━━ ◆ ━━━. Per shared design law: vary, don't
   converge. The colors are baked in (gold @ 0.6 alpha) since CSS
   masks on <symbol> have inconsistent cross-browser behavior. */

.lp-section-title,
.lp-support-heading {
  position: relative;
}

/* Override the legacy text ornament defined ~line 510. */
.lp-section-title::before,
.lp-support-heading::before {
  content: '';
  display: block;
  width: clamp(180px, 28vw, 260px);
  height: 16px;
  margin: 0 auto 1rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 0 6px rgba(232,197,114,0.25));
  opacity: 0.85;
}

.lp-section-title[data-flourish="rosette"]::before,
.lp-support-heading[data-flourish="rosette"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24'><g fill='none' stroke='%23e8c572' stroke-width='1.2' stroke-linecap='round'><line x1='2' y1='12' x2='92' y2='12' opacity='.55'/><line x1='148' y1='12' x2='238' y2='12' opacity='.55'/><circle cx='100' cy='12' r='2.4' opacity='.75'/><circle cx='140' cy='12' r='2.4' opacity='.75'/><g transform='translate(120 12)'><circle r='6' opacity='.9'/><circle r='2.4' fill='%23e8c572'/><path d='M-9 0 H-12 M9 0 H12 M0 -9 V-12 M0 9 V12' opacity='.7'/></g></g></svg>");
}
.lp-section-title[data-flourish="daggers"]::before,
.lp-support-heading[data-flourish="daggers"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24'><g fill='none' stroke='%23e8c572' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'><line x1='2' y1='12' x2='100' y2='12' opacity='.55'/><line x1='140' y1='12' x2='238' y2='12' opacity='.55'/><path d='M112 4 L128 20 M128 4 L112 20' opacity='.95'/><path d='M120 12 L122 14 L120 16 L118 14 Z' fill='%23e8c572'/></g></svg>");
}
.lp-section-title[data-flourish="twin"]::before,
.lp-support-heading[data-flourish="twin"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24'><g fill='none' stroke='%23e8c572' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'><line x1='2' y1='12' x2='98' y2='12' opacity='.55'/><line x1='142' y1='12' x2='238' y2='12' opacity='.55'/><path d='M108 12 L114 6 L120 12 L114 18 Z' opacity='.9'/><path d='M120 12 L126 6 L132 12 L126 18 Z' opacity='.9'/><circle cx='114' cy='12' r='1' fill='%23e8c572'/><circle cx='126' cy='12' r='1' fill='%23e8c572'/></g></svg>");
}

/* ────────── CLASS CARDS — sigil watermark + corner flourishes ────────── */
.lp-class-card { padding-top: 0; }

/* Faction sigil watermark — sits behind the body content,
   tinted toward the faction color, low alpha so it reads as
   imprinted into the page rather than illustrative. */
.lp-class-watermark {
  position: absolute;
  top: 50%; right: -28px;
  transform: translateY(-50%);
  width: 132px;
  height: 132px;
  color: var(--faction-color);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), filter 0.4s var(--ease-out);
  filter: blur(0.4px);
}
.lp-class-card:hover .lp-class-watermark {
  opacity: 0.18;
  transform: translateY(-50%) scale(1.04) rotate(-3deg);
  filter: blur(0) drop-shadow(0 0 18px var(--faction-color));
}

/* Corner ornaments — drawn via data-URI gold scrollwork in the
   four card corners. Strokes only, no fills. */
.lp-class-body { position: relative; z-index: 1; }
.lp-class-body::before,
.lp-class-body::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.32;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}
.lp-class-body::before {
  top: 8px; left: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><g fill='none' stroke='%23e8c572' stroke-width='1.1' stroke-linecap='round'><path d='M2 2 L2 14 M2 2 L14 2'/><path d='M4 18 C8 14 12 12 18 12' opacity='.7'/><path d='M18 4 C14 8 12 12 12 18' opacity='.7'/><circle cx='2' cy='2' r='1.2' fill='%23e8c572'/></g></svg>");
}
.lp-class-body::after {
  bottom: 8px; right: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><g fill='none' stroke='%23e8c572' stroke-width='1.1' stroke-linecap='round' transform='rotate(180 16 16)'><path d='M2 2 L2 14 M2 2 L14 2'/><path d='M4 18 C8 14 12 12 18 12' opacity='.7'/><path d='M18 4 C14 8 12 12 12 18' opacity='.7'/><circle cx='2' cy='2' r='1.2' fill='%23e8c572'/></g></svg>");
}
.lp-class-card:hover .lp-class-body::before,
.lp-class-card:hover .lp-class-body::after { opacity: 0.7; }

/* Faction badge — re-skin to feel like a parchment chip rather
   than a generic outlined pill. Tighter, weathered. */
.lp-badge {
  background: rgba(11,10,16,0.55);
  box-shadow: inset 0 0 0 1px var(--bc, rgba(255,255,255,0.15));
  border: 0;
  padding: 0.22rem 0.62rem;
}

/* ────────── FACTION CARDS — sigil emblem on top ────────── */
.lp-faction-card {
  padding-top: 5.5rem;
  text-align: center;
  align-items: center;
}
.lp-faction-sigil {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  color: var(--fc);
  margin: 0 auto 0.4rem;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--fc) 50%, transparent 50%));
  transition: transform 0.4s var(--ease-out), filter 0.4s var(--ease-out);
}
.lp-faction-card:hover .lp-faction-sigil {
  transform: scale(1.08);
  filter: drop-shadow(0 0 22px color-mix(in srgb, var(--fc) 70%, transparent 30%));
}
.lp-faction-card .lp-faction-identity,
.lp-faction-card .lp-faction-name,
.lp-faction-card .lp-faction-fullname,
.lp-faction-card .lp-faction-quote,
.lp-faction-card .lp-faction-classes,
.lp-faction-card .lp-faction-motto {
  text-align: center;
  align-self: center;
}
.lp-faction-card .lp-faction-classes { justify-content: center; }
.lp-faction-card .lp-faction-quote {
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ────────── RANK LADDER as a chain of medallions ────────── */
.lp-rank-ladder { gap: 0.35rem; }

.lp-rank-tier {
  position: relative;
  padding: 0.85rem 1.05rem 0.7rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--rc, #b8c5d6) 18%, transparent 82%), transparent 70%),
    color-mix(in srgb, var(--rc, #b8c5d6) 5%, #100e16 95%);
  border: 1px solid color-mix(in srgb, var(--rc, #b8c5d6) 28%, transparent 72%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 4px 14px rgba(0,0,0,0.35);
}

/* Medallion dot above each tier name — the tarnish-coated hallmark */
.lp-rank-tier::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--rc, #b8c5d6) 80%, white 20%) 0%, var(--rc, #b8c5d6) 60%, color-mix(in srgb, var(--rc, #b8c5d6) 60%, black 40%) 100%);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    0 0 0 2px color-mix(in srgb, var(--rc, #b8c5d6) 35%, transparent 65%),
    0 0 14px color-mix(in srgb, var(--rc, #b8c5d6) 25%, transparent 75%);
}

.lp-rank-chain {
  width: 28px;
  height: 14px;
  flex-shrink: 0;
  color: var(--gold);
  opacity: 0.55;
  filter: drop-shadow(0 0 4px rgba(232,197,114,0.3));
}

.lp-rank-mythic {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(232,197,114,0.22), transparent 70%),
    rgba(232,197,114,0.08);
  border-color: rgba(232,197,114,0.55);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 0 28px rgba(232,197,114,0.2),
    0 8px 24px rgba(0,0,0,0.5);
  transform: translateY(-4px);
  padding-top: 1rem;
}

.lp-rank-mythic::before { display: none; } /* the apex sigil replaces the medallion */

.lp-rank-apex {
  width: 36px;
  height: 36px;
  margin: -0.35rem auto 0.3rem;
  color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(232,197,114,0.65));
}

/* ────────── LORE — illuminated manuscript ────────── */
.lp-lore-ornament {
  width: min(360px, 70vw);
  height: 22px;
  margin: 0 auto 1.2rem;
  font-size: 0;
  color: var(--gold);
}
.lp-lore-ornament svg {
  width: 100%;
  height: 100%;
  opacity: 0.55;
  filter: drop-shadow(0 0 5px rgba(232,197,114,0.3));
}

.lp-lore-text { position: relative; }

.lp-lore-lead {
  display: block;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}

.lp-lore-dropcap {
  float: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
  padding: 0.05em 0.35rem 0 0;
  margin-top: 0.05em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 14px rgba(232,197,114,0.35));
  letter-spacing: 0;
}

.lp-lore-marginalia {
  float: right;
  width: 64px;
  height: 64px;
  margin: 0.4rem -1.2rem 0.5rem 1rem;
  color: var(--gold);
  opacity: 0.18;
  filter: drop-shadow(0 0 6px rgba(232,197,114,0.25));
}
.lp-lore-marginalia svg { width: 100%; height: 100%; }

@media (max-width: 640px) {
  .lp-lore-marginalia { display: none; }
  .lp-lore-dropcap { font-size: 3.2rem; }
}

/* ────────── ABOUT CRESTS — sigil emblem ────────── */
.lp-crest {
  text-align: center;
  align-items: center;
  padding: 1.6rem 1.2rem 1.4rem;
}
.lp-crest-sigil {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  color: var(--cc);
  margin: 0 auto 0.5rem;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--cc) 40%, transparent 60%));
  transition: transform 0.35s var(--ease-out);
}
.lp-crest:hover .lp-crest-sigil {
  transform: scale(1.08) rotate(-2deg);
}
.lp-crest-name, .lp-crest-motto { text-align: center; }

/* ────────── FOOTER COLOPHON ────────── */
.lp-footer-colophon {
  width: min(280px, 60%);
  height: 16px;
  margin: 2.4rem auto 1.4rem;
  color: var(--gold);
  opacity: 0.42;
  font-size: 0;
  filter: drop-shadow(0 0 4px rgba(232,197,114,0.25));
}
.lp-footer-colophon svg { width: 100%; height: 100%; }
.lp-footer-bar { margin-top: 0; padding-top: 1rem; }

/* ────────── REDUCED MOTION ────────── */
@media (prefers-reduced-motion: reduce) {
  .lp-hero-mark,
  .lp-logo span,
  .lp-class-watermark,
  .lp-faction-sigil,
  .lp-crest-sigil,
  .lp-class-body::before,
  .lp-class-body::after { animation: none; transition: none; }
  .lp-hero-mark { opacity: 1; transform: none; }
  .lp-logo span { opacity: 1; transform: none; filter: none; }
}

/* ────────── RESPONSIVE TUNING ────────── */
@media (max-width: 1024px) {
  .lp-class-watermark { width: 96px; height: 96px; right: -16px; }
}
@media (max-width: 640px) {
  .lp-class-watermark { width: 80px; height: 80px; right: -8px; opacity: 0.05; }
  .lp-faction-sigil { width: 52px; height: 52px; }
  .lp-rank-apex { width: 30px; height: 30px; }
  .lp-rank-chain { width: 22px; height: 12px; }
  .lp-rank-mythic { transform: translateY(-2px); }
  .lp-section-title::before,
  .lp-support-heading::before { width: clamp(160px, 80vw, 240px); height: 14px; }
  .lp-hero-ornament { width: min(320px, 70vw); }
}

/* ════════════════════════════════════════════════════════════════
   GRIMOIRE ELEVATION — PHASE 2 (2026-05-10)
   Adds: faction sigils orbiting the hero rosette, etched champion
   silhouettes inside class cards, the live mini-arena combat demo
   in the trailer slot, and an ink-wipe scroll reveal that draws
   each section's flourish as you reach it.
   ════════════════════════════════════════════════════════════════ */

/* ────────── HERO FACTION ORBIT ──────────
   Four faction sigils orbit slowly around the central Mystvale
   rosette — tells the "four factions, one arena" story without
   a single line of copy. */
.lp-hero-orbit {
  position: relative;
  width: clamp(180px, 22vw, 260px);
  height: clamp(180px, 22vw, 260px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}
.lp-hero-orbit .lp-hero-mark {
  position: absolute;
  margin: 0;
  width: clamp(72px, 9vw, 108px);
  height: clamp(72px, 9vw, 108px);
  z-index: 2;
}
.lp-hero-orbit-sigil {
  position: absolute;
  width: clamp(22px, 2.6vw, 30px);
  height: clamp(22px, 2.6vw, 30px);
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 0 8px currentColor);
  opacity: 0;
  animation: lp-orbit-fade 1.6s 1.4s var(--ease-out) forwards;
}
/* the four sigils each ride their own circular orbit at 120°/45° lead */
.lp-orbit-1 {
  color: #b8c5d6; /* Iron Covenant */
  --orbit-radius: clamp(90px, 11vw, 130px);
  --orbit-start: 0deg;
  animation: lp-orbit-fade 1.6s 1.4s var(--ease-out) forwards,
             lp-orbit-spin-1 28s 1.4s linear infinite;
}
.lp-orbit-2 {
  color: #6a2aa8; /* Hollow Court */
  --orbit-radius: clamp(90px, 11vw, 130px);
  --orbit-start: 90deg;
  animation: lp-orbit-fade 1.6s 1.55s var(--ease-out) forwards,
             lp-orbit-spin-2 28s 1.55s linear infinite;
}
.lp-orbit-3 {
  color: #e8c572; /* Divine Order */
  --orbit-radius: clamp(90px, 11vw, 130px);
  --orbit-start: 180deg;
  animation: lp-orbit-fade 1.6s 1.7s var(--ease-out) forwards,
             lp-orbit-spin-3 28s 1.7s linear infinite;
}
.lp-orbit-4 {
  color: #c4324a; /* Abyssal Pact */
  --orbit-radius: clamp(90px, 11vw, 130px);
  --orbit-start: 270deg;
  animation: lp-orbit-fade 1.6s 1.85s var(--ease-out) forwards,
             lp-orbit-spin-4 28s 1.85s linear infinite;
}
@keyframes lp-orbit-fade { to { opacity: 1; } }
/* Each spin keyframe rotates the sigil around the rosette center.
   transform-origin tricks: we use a translate-rotate-translate idiom
   so the sigils orbit but don't tumble. */
@keyframes lp-orbit-spin-1 {
  from { transform: rotate(0deg)   translateX(var(--orbit-radius)) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(var(--orbit-radius)) rotate(-360deg); }
}
@keyframes lp-orbit-spin-2 {
  from { transform: rotate(90deg)  translateX(var(--orbit-radius)) rotate(-90deg); }
  to   { transform: rotate(450deg) translateX(var(--orbit-radius)) rotate(-450deg); }
}
@keyframes lp-orbit-spin-3 {
  from { transform: rotate(180deg) translateX(var(--orbit-radius)) rotate(-180deg); }
  to   { transform: rotate(540deg) translateX(var(--orbit-radius)) rotate(-540deg); }
}
@keyframes lp-orbit-spin-4 {
  from { transform: rotate(270deg) translateX(var(--orbit-radius)) rotate(-270deg); }
  to   { transform: rotate(630deg) translateX(var(--orbit-radius)) rotate(-630deg); }
}

/* ────────── CLASS CARD CHAMPION SILHOUETTES ──────────
   Etched stroke-only figures fit behind the body, faction-tinted,
   subtle by default and lit on hover. The watermark sigil already
   sits on the right; champions sit on the left so they don't fight
   for the same real estate. */
.lp-class-card { min-height: 220px; }

/* The actual in-game pixel-art class portrait sits behind the body
   content. Canvas is rendered at 180x240 logical px and scaled up via
   CSS to 130x172 visible — image-rendering: pixelated keeps the
   pixel art crisp. On hover the portrait brightens + lifts slightly. */
.lp-class-portrait {
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 130px;
  height: 172px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  pointer-events: none;
  z-index: 0;
  opacity: 0.78;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5))
          drop-shadow(0 0 8px color-mix(in srgb, var(--faction-color) 25%, transparent 75%));
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), filter 0.4s var(--ease-out);
}
.lp-class-card:hover .lp-class-portrait {
  opacity: 1;
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.6))
          drop-shadow(0 0 16px color-mix(in srgb, var(--faction-color) 55%, transparent 45%));
}

/* Pull body content right so it doesn't collide with the portrait */
.lp-class-body {
  padding-left: 138px;
  min-height: 200px;
}
@media (max-width: 1024px) {
  .lp-class-portrait { width: 112px; height: 148px; left: 4px; bottom: 4px; }
  .lp-class-body { padding-left: 120px; }
}
@media (max-width: 640px) {
  .lp-class-portrait { width: 96px; height: 128px; left: 4px; bottom: 2px; opacity: 0.7; }
  .lp-class-body { padding-left: 104px; min-height: 180px; }
}

/* ────────── REAL TRAILER IFRAME ──────────
   Phase 7 — the SEE IT IN ACTION slot now hosts the actual 78-second
   cinematic trailer (trailer/index.html). The iframe fills the
   existing trailer-outer 16:9 frame; an outer overlay carries the
   "OFFICIAL TRAILER" badge + Skip to Play link without blocking the
   trailer's own splash/play controls. pointer-events on overlay
   children only so clicks reach the iframe everywhere else. */
.lp-trailer-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: inherit;
  background: var(--bg-deep);
}
.lp-trailer-frame-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border-radius: inherit;
  z-index: 2;
}
.lp-trailer-badge {
  align-self: flex-start;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(11,10,16,0.78);
  color: var(--ember-soft);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding: 0.42rem 0.85rem;
  border: 1px solid rgba(255,176,122,0.35);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.6), inset 0 0 12px rgba(255,106,44,0.08);
  text-transform: uppercase;
  user-select: none;
}

/* ────────── LIVE MINI-ARENA (retired phase 7 — kept for ref) ──── */
.lp-arena-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: var(--bg-deep);
  border-radius: inherit;
}
.lp-arena-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border-radius: inherit;
}
.lp-arena-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(11,10,16,0.78);
  color: var(--ember-soft);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding: 0.42rem 0.85rem;
  border: 1px solid rgba(255,176,122,0.35);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.6), inset 0 0 12px rgba(255,106,44,0.08);
  text-transform: uppercase;
  user-select: none;
}
.lp-arena-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember), 0 0 16px rgba(255,106,44,0.5);
  animation: lp-pulse 1.6s ease-in-out infinite;
}
.lp-arena-enter {
  align-self: flex-end;
  pointer-events: auto;
  display: inline-block;
  background: linear-gradient(180deg, rgba(232,197,114,0.18), rgba(232,197,114,0.05));
  color: var(--gold-hi);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 0.65rem 1.4rem;
  border: 1px solid rgba(232,197,114,0.5);
  border-radius: 4px;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out), color 0.25s;
}
.lp-arena-enter:hover {
  background: linear-gradient(180deg, var(--gold), var(--gold-lo));
  color: var(--bg-deep);
  border-color: var(--gold-hi);
  box-shadow: 0 8px 28px rgba(232,197,114,0.5), inset 0 1px 0 rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

/* The trailer-outer used to host a placeholder; now it hosts the
   canvas — turn off the inherited aspect-ratio override on small
   screens so the canvas can stretch to fill the wider/taller box. */
.lp-trailer-outer { aspect-ratio: 16 / 9; }

/* ────────── SECTION FLOURISH INK-WIPE ──────────
   The flourish ::before is set up by Phase 1 with a data-URI
   background. We add a clip-path mask that hides it from the right
   until the title hits the viewport — at which point the JS-added
   `.flourish-drawn` class slides the clip away over ~900ms. Reads
   like the chronicler's pen drawing the line. */
.lp-section-title[data-flourish]::before,
.lp-support-heading[data-flourish]::before {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.95s cubic-bezier(0.2, 0.65, 0.25, 1) 0.05s;
  will-change: clip-path;
}
.lp-section-title[data-flourish].flourish-drawn::before,
.lp-support-heading[data-flourish].flourish-drawn::before {
  clip-path: inset(0 0 0 0);
}

/* ────────── REDUCED MOTION (Phase 2) ────────── */
@media (prefers-reduced-motion: reduce) {
  .lp-hero-orbit-sigil,
  .lp-orbit-1, .lp-orbit-2, .lp-orbit-3, .lp-orbit-4 {
    animation: none;
    opacity: 0.6;
  }
  .lp-class-champion { transition: none; opacity: 0.5; }
  .lp-arena-pulse { animation: none; }
  .lp-section-title[data-flourish]::before,
  .lp-support-heading[data-flourish]::before {
    clip-path: inset(0 0 0 0) !important;
    transition: none;
  }
}

/* ────────── PHASE 2 RESPONSIVE ────────── */
@media (max-width: 768px) {
  .lp-hero-orbit { width: clamp(140px, 60vw, 200px); height: clamp(140px, 60vw, 200px); }
  .lp-hero-orbit-sigil { width: 22px; height: 22px; }
  .lp-orbit-1, .lp-orbit-2, .lp-orbit-3, .lp-orbit-4 { --orbit-radius: clamp(72px, 28vw, 100px); }
}
@media (max-width: 540px) {
  /* On very small screens, keep arena overlay readable */
  .lp-arena-badge { font-size: 0.56rem; padding: 0.32rem 0.65rem; }
  .lp-arena-enter { font-size: 0.7rem; padding: 0.5rem 1rem; }
}

/* ────────── MAP PREVIEW CANVASES ──────────
   Each map card now opens with a top-down arena thumbnail showing
   pillar layout, hazards, and team-tinted spawn markers. Static
   render — drawn once on viewport entry by IntersectionObserver
   in landing.js. Sits above the title so the eye lands on the
   layout first, then reads the description. */
.lp-map-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lp-map-canvas {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: var(--bg-card);
  border-bottom: 1px solid rgba(232,197,114,0.12);
  position: relative;
  z-index: 1;
}
/* Re-pad the text portion since the card itself is now padding:0 */
.lp-map-card .lp-map-name,
.lp-map-card .lp-map-desc,
.lp-map-card .lp-map-tag {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}
.lp-map-card .lp-map-name { padding-top: 1rem; }
.lp-map-card .lp-map-tag { margin-bottom: 1.2rem; align-self: flex-start; margin-left: 1.2rem; padding-left: 0.6rem; padding-right: 0.6rem; }

/* The preview catches a saturating tint on hover — a moment of
   "wait, is this the actual game?" recognition. */
.lp-map-card .lp-map-canvas {
  transition: filter 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.lp-map-card:hover .lp-map-canvas {
  filter: brightness(1.18) saturate(1.15);
}

@media (prefers-reduced-motion: reduce) {
  .lp-map-card .lp-map-canvas { transition: none; }
}

/* ════════════════════════════════════════════════════════════════
   GRIMOIRE ELEVATION — PHASE 4 (2026-05-10)
   Real game assets: faction banners replace SVG sigils on the
   faction cards; floor textures already wired into the map preview
   and mini-arena canvases via JS. New boss-raid teaser with the
   Elder Lich Overlord walking sprite.
   ════════════════════════════════════════════════════════════════ */

/* ────────── FACTION BANNERS — real illustrated heraldry ──────────
   The 4 faction banners (human/undead/celestial/demon) are
   ~320x780 painted PNGs. They replace the SVG <use> sigil on the
   faction cards. CSS hides the legacy .lp-faction-sigil rule's
   margin so layout doesn't double-count. */
.lp-faction-card {
  padding-top: 0;
  overflow: hidden;
}
.lp-faction-banner {
  display: block;
  width: 100%;
  max-width: 110px;
  height: auto;
  margin: 0 auto -0.6rem;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.6))
          drop-shadow(0 0 18px color-mix(in srgb, var(--fc) 25%, transparent 75%));
  transform: translateY(-4px);
  transition: transform 0.45s var(--ease-out), filter 0.45s var(--ease-out);
  position: relative;
  z-index: 2;
  /* preserve crisp painted pixels on tiny banners */
  image-rendering: -webkit-optimize-contrast;
}
.lp-faction-card:hover .lp-faction-banner {
  transform: translateY(-8px) scale(1.04);
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.7))
          drop-shadow(0 0 28px color-mix(in srgb, var(--fc) 50%, transparent 50%));
}

/* The faction-card padding-top from Phase 1 was 5.5rem to make
   room for the SVG sigil on top. With the banner, we want even
   more vertical room — banners are tall. */
.lp-faction-card { padding-top: 4rem; }

@media (max-width: 1024px) {
  .lp-faction-banner { max-width: 96px; }
}
@media (max-width: 640px) {
  .lp-faction-banner { max-width: 86px; }
  .lp-faction-card { padding-top: 3.4rem; }
}

/* ────────── BOSS RAID SECTION — the Elder Lich Overlord ──────────
   Single-purpose section between Maps and Roadmap that teases the
   incoming boss raid. Pixel-art sprite walks in place; meta panel
   on the right carries phase/party/loot stats. Drenched purple
   atmosphere — the page's only "Drenched" color moment, earned. */
.lp-boss-section {
  background:
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(106,42,168,0.28) 0%, rgba(106,42,168,0.06) 50%, transparent 80%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(74,154,106,0.10) 0%, transparent 70%),
    var(--bg-deep);
  position: relative;
  overflow: hidden;
}
.lp-boss-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='300' height='300' filter='url(%23n)' opacity='0.045'/></svg>");
  pointer-events: none;
  opacity: 0.7;
}
.lp-boss-stage {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}
.lp-boss-glow {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  background:
    radial-gradient(circle, rgba(106,42,168,0.45) 0%, rgba(74,154,106,0.18) 40%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
  animation: lp-boss-aura 5s ease-in-out infinite;
}
@keyframes lp-boss-aura {
  0%, 100% { opacity: 0.65; transform: translateY(-50%) scale(1); }
  50%      { opacity: 0.95; transform: translateY(-50%) scale(1.06); }
}
.lp-boss-figure {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 360px;
}
.lp-boss-sprite {
  display: block;
  /* the source frame is 180x180 — upscale crisply to 280px for impact */
  width: 280px;
  height: 280px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter:
    drop-shadow(0 12px 24px rgba(0,0,0,0.75))
    drop-shadow(0 0 28px rgba(160,80,255,0.5))
    drop-shadow(0 0 8px rgba(110,200,150,0.35));
  /* he hovers with his necromantic aura */
  animation: lp-boss-hover 3.6s ease-in-out infinite;
  will-change: transform;
}
@keyframes lp-boss-hover {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.lp-boss-meta {
  position: relative;
  z-index: 1;
  max-width: 580px;
}
.lp-boss-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--ember-soft);
  text-transform: uppercase;
  background: rgba(11,10,16,0.7);
  border: 1px solid rgba(160,80,255,0.45);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  box-shadow: 0 0 16px rgba(160,80,255,0.18);
}
.lp-boss-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-shadow: 0 0 22px rgba(232,197,114,0.5), 0 0 48px rgba(160,80,255,0.4);
  margin: 0 0 1rem;
  line-height: 1.15;
}
.lp-boss-desc {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.4rem;
}
.lp-boss-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 1.4rem;
  margin: 0 0 1.6rem;
  padding: 1rem 1.2rem;
  background: rgba(11,10,16,0.55);
  border: 1px solid rgba(160,80,255,0.22);
  border-radius: 10px;
  list-style: none;
  box-shadow: inset 0 0 24px rgba(160,80,255,0.08), 0 8px 28px rgba(0,0,0,0.4);
}
.lp-boss-stats li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.lp-boss-stats li:nth-last-child(-n+2) { border-bottom: none; }
.lp-boss-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.85;
}
.lp-boss-stat-value {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold-hi);
  text-shadow: 0 0 8px rgba(232,197,114,0.3);
}

@media (max-width: 900px) {
  .lp-boss-stage {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .lp-boss-figure { height: 280px; }
  .lp-boss-sprite { width: 220px; height: 220px; }
  .lp-boss-stats { grid-template-columns: 1fr; }
  .lp-boss-stats li { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-boss-glow,
  .lp-boss-sprite,
  .lp-faction-banner { animation: none; transition: none; }
}

/* ────────── REAL FOOTAGE GRID ──────────
   4 captured gameplay clips (one per faction) — lazy-loaded via
   IntersectionObserver in landing.js. Each video plays muted on a
   loop with the faction-tinted ember halo behind the card.

   Per faction color tokens piggyback on the data-faction attribute:
   the painted banners already established the saturation. */
.lp-footage-section { background: var(--bg-deep); }
.lp-footage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}
.lp-footage-card {
  position: relative;
  margin: 0;
  background: var(--bg-card);
  border: 1px solid rgba(232,197,114,0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.03);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
}
.lp-footage-card[data-faction="human"]     { --foot-color: #5a9aee; }
.lp-footage-card[data-faction="undead"]    { --foot-color: #9d4eff; }
.lp-footage-card[data-faction="celestial"] { --foot-color: #f5d98a; }
.lp-footage-card[data-faction="demon"]     { --foot-color: #e03252; }
.lp-footage-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--foot-color), transparent 80%);
  box-shadow: 0 0 16px var(--foot-color);
  z-index: 2;
}
.lp-footage-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--foot-color) 40%, transparent 60%);
  box-shadow: 0 16px 44px rgba(0,0,0,0.65),
              0 0 28px color-mix(in srgb, var(--foot-color) 14%, transparent 86%);
}
.lp-footage-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0b0a10;
}
.lp-footage-caption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1.1rem 1rem;
  background: linear-gradient(180deg, rgba(11,10,16,0.4), rgba(11,10,16,0.9));
}
.lp-footage-label {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--foot-color);
  text-shadow: 0 0 12px color-mix(in srgb, var(--foot-color) 50%, transparent 50%);
}
.lp-footage-sub {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.85;
}

@media (max-width: 1024px) {
  .lp-footage-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .lp-footage-grid { grid-template-columns: 1fr; max-width: 440px; margin: 2rem auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-footage-card { transition: none; }
}

/* ────────── MEET THE EIGHT ROSTER ──────────
   Replaces the duplicate 4-crest grid in the About section. Eight
   in-game pixel-art portraits in a 4x2 grid, faction-tinted halo
   per cell, hover lifts the champion and brightens the halo. Uses
   the same renderClassPortrait pipeline as the class showcase. */
.lp-roster {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.lp-roster-eyebrow {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: left;
  opacity: 0.85;
}
.lp-roster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.lp-roster-cell {
  position: relative;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 8%, var(--bg-card) 92%) 0%, var(--bg-card) 100%);
  border: 1px solid color-mix(in srgb, var(--rc) 20%, transparent 80%);
  border-radius: 10px;
  padding: 0.4rem 0.4rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transition: transform 0.32s var(--ease-out), border-color 0.32s ease, box-shadow 0.32s ease;
}
.lp-roster-cell::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rc), transparent 70%);
  box-shadow: 0 0 14px var(--rc);
}
.lp-roster-cell:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--rc) 45%, transparent 55%);
  box-shadow: 0 10px 28px rgba(0,0,0,0.55),
              0 0 24px color-mix(in srgb, var(--rc) 18%, transparent 82%);
}
.lp-roster-portrait {
  width: 96px;
  height: 120px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5))
          drop-shadow(0 0 6px color-mix(in srgb, var(--rc) 25%, transparent 75%));
  transition: filter 0.32s ease, transform 0.32s var(--ease-out);
}
.lp-roster-cell:hover .lp-roster-portrait {
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.6))
          drop-shadow(0 0 14px color-mix(in srgb, var(--rc) 55%, transparent 45%));
}
.lp-roster-name {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rc);
  text-shadow: 0 0 10px color-mix(in srgb, var(--rc) 40%, transparent 60%);
}

@media (max-width: 768px) {
  .lp-roster-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-roster-portrait { width: 84px; height: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-roster-cell,
  .lp-roster-portrait { transition: none; }
}

/* ────────── ROADMAP REDESIGN (Phase 7) ──────────
   Phase 1 had 3 columns with emoji headers and plain bullet lists.
   This redesign:
   - Card-style columns with a glyph + status + count/ETA header
   - Per-item glyph icons in each row
   - Per-item progress percentage on Building lane
   - Phase-coded chrome (gold/ember/holy-lumen)
   - "Half-built. Some already playable." flavor copy below header
   Visual coherence with the rest of the page (corner ornaments
   pattern, etched stroke iconography, codex-marginalia voice). */
.lp-roadmap-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}
@media (max-width: 1200px) {
  .lp-roadmap-grid { grid-template-columns: 1fr 1fr; }
}
.lp-roadmap-col {
  position: relative;
  background: linear-gradient(180deg, rgba(232,197,114,0.04) 0%, var(--bg-card) 100%);
  border: 1px solid rgba(232,197,114,0.12);
  border-radius: 12px;
  padding: 1.5rem 1.4rem 1.6rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.03);
}
.lp-rm-col-shipped {
  border-color: rgba(74,154,106,0.28);
  background: linear-gradient(180deg, rgba(74,154,106,0.08) 0%, var(--bg-card) 60%);
}
.lp-rm-col-building {
  border-color: rgba(255,176,122,0.32);
  background: linear-gradient(180deg, rgba(255,106,44,0.10) 0%, var(--bg-card) 60%);
}
.lp-rm-col-soon {
  border-color: rgba(232,197,114,0.30);
  background: linear-gradient(180deg, rgba(232,197,114,0.07) 0%, var(--bg-card) 60%);
}
.lp-roadmap-col::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, currentColor, transparent 80%);
  opacity: 0.7;
}
.lp-rm-col-shipped::before  { color: #4a9a6a; box-shadow: 0 0 16px rgba(74,154,106,0.5); }
.lp-rm-col-building::before { color: var(--ember-soft); box-shadow: 0 0 18px rgba(255,176,122,0.55); }
.lp-rm-col-soon::before     { color: var(--gold); box-shadow: 0 0 18px rgba(232,197,114,0.55); }

.lp-roadmap-card-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(232,197,114,0.1);
}
.lp-roadmap-glyph {
  font-size: 1.1rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px currentColor);
}
.lp-rm-col-shipped  .lp-roadmap-glyph { color: #6abf85; }
.lp-rm-col-building .lp-roadmap-glyph { color: var(--ember); animation: lp-building-pulse 1.6s ease-in-out infinite; }
.lp-rm-col-soon     .lp-roadmap-glyph { color: var(--gold-hi); }

.lp-roadmap-status {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  flex: 1;
}
.lp-rm-col-shipped  .lp-roadmap-status { color: #8ad6a4; }
.lp-rm-col-building .lp-roadmap-status { color: var(--ember-soft); }
.lp-rm-col-soon     .lp-roadmap-status { color: var(--gold-hi); }

.lp-roadmap-count,
.lp-roadmap-eta {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(11,10,16,0.65);
  border: 1px solid rgba(232,197,114,0.22);
  color: var(--gold);
}
.lp-rm-col-shipped .lp-roadmap-count {
  border-color: rgba(74,154,106,0.4);
  color: #8ad6a4;
}
.lp-rm-col-building .lp-roadmap-eta {
  border-color: rgba(255,176,122,0.45);
  color: var(--ember-soft);
}

.lp-roadmap-meta {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  opacity: 0.85;
  margin-top: -0.25rem;
}

.lp-roadmap-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}
.lp-roadmap-list li {
  display: grid;
  grid-template-columns: 1.4rem 1fr auto;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.45;
  padding: 0.45rem 0.1rem;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
}
.lp-roadmap-list li:last-child { border-bottom: none; }
.lp-roadmap-list li::before { content: none; } /* override the phase-1 ::before glyphs */

.lp-rm-icon {
  display: inline-block;
  width: 1.2rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(232,197,114,0.4));
  user-select: none;
}
.lp-rm-col-shipped  .lp-rm-icon { color: #8ad6a4; filter: drop-shadow(0 0 6px rgba(74,154,106,0.5)); }
.lp-rm-col-building .lp-rm-icon { color: var(--ember-soft); filter: drop-shadow(0 0 8px rgba(255,106,44,0.5)); }
.lp-rm-col-soon     .lp-rm-icon { color: var(--gold-hi); filter: drop-shadow(0 0 7px rgba(232,197,114,0.5)); }

/* Progress percentage tag on Building items */
.lp-rm-pct {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ember-soft);
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(255,106,44,0.12);
  border: 1px solid rgba(255,176,122,0.35);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .lp-roadmap-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-rm-col-building .lp-roadmap-glyph { animation: none; }
}

/* ────────── HERO STATS PILL — Chronicler's Ledger ──────────
   Phase 7 rephrase. "X players online · Y in queue" reads as
   a Discord member-count widget. "Tonight's Chronicle · X souls
   in the arena · Y in queue" reads as a chronicler annotating
   the page in real time. Same data, different voice. */
.lp-chronicle-eyebrow {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.92;
  white-space: nowrap;
}
.lp-chronicle-sep {
  color: rgba(232,197,114,0.4);
  margin: 0 0.25rem;
}
.lp-stats-pill strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-hi);
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px rgba(232,197,114,0.3);
}
@media (max-width: 540px) {
  .lp-stats-pill { flex-wrap: wrap; justify-content: center; max-width: 320px; padding: 0.55rem 1rem; font-size: 0.72rem; }
  .lp-chronicle-eyebrow { font-size: 0.55rem; letter-spacing: 0.22em; }
}

/* ────────── NEW-CLASS BADGES (Phase 9) ──────────
   The 3 Phase-4 extra-classes (Inquisitor / Sentinel / Hexblade) get
   a small "NEW" pip in the upper-right of their card + a faint glow
   on the whole card so the eye lands on them after the original 8. */
.lp-class-card-new {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--faction-color) 35%, transparent 65%),
              0 8px 28px rgba(0,0,0,0.45);
}
.lp-class-newbadge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--bg-deep);
  background: var(--gold-hi);
  padding: 0.18rem 0.45rem;
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(232,197,114,0.6), 0 2px 6px rgba(0,0,0,0.4);
  animation: lp-newbadge-pulse 2.2s ease-in-out infinite;
}
@keyframes lp-newbadge-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(232,197,114,0.45), 0 2px 6px rgba(0,0,0,0.4); }
  50%      { box-shadow: 0 0 18px rgba(232,197,114,0.85), 0 2px 6px rgba(0,0,0,0.4); }
}

/* Roster: 11 cells, 4 per row → last row has 3. Allow the grid to fit. */
.lp-roster-cell-new {
  position: relative;
}
.lp-roster-cell-new::after {
  content: 'NEW';
  position: absolute;
  top: 6px;
  right: 6px;
  font-family: var(--font-display);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--bg-deep);
  background: var(--gold-hi);
  padding: 0.12rem 0.34rem;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(232,197,114,0.55);
  z-index: 2;
}
/* Roster grid widening from 4 → 4 stays the same; 11 items wrap to 3 rows of 4 +
   a final row of 3. CSS already handles it; cells just align to start. */
.lp-roster-grid > :nth-child(n+9) {
  /* The last 3 (warlock, axeman, hexblade in the demon faction trio)
     ride row 3 naturally. No special override needed. */
}

@media (prefers-reduced-motion: reduce) {
  .lp-class-newbadge { animation: none; }
}

/* ────────── FOOTER SEAL ──────────
   The actual game logo (quartered Mystvale sigil with all four
   faction emblems) anchors the footer brand block. 1024x1536
   source, lazy-loaded, downsampled by the browser to ~96px. Sits
   above the wordmark so the visual hierarchy reads
   seal → wordmark → tagline → support. */
.lp-footer-seal {
  display: block;
  width: 96px;
  height: auto;
  margin: 0 0 1rem;
  filter:
    drop-shadow(0 6px 18px rgba(0,0,0,0.65))
    drop-shadow(0 0 18px rgba(232,197,114,0.18));
  transition: filter 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.lp-footer-seal:hover {
  filter:
    drop-shadow(0 8px 22px rgba(0,0,0,0.75))
    drop-shadow(0 0 24px rgba(232,197,114,0.32));
  transform: translateY(-2px) rotate(-1.5deg);
}
@media (max-width: 768px) {
  .lp-footer-seal { width: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-footer-seal { transition: none; }
}
