.lh-hero {
  display: block;
  padding: 0;
  min-height: 100vh;
}

.lh-stage {
  --acc: #8b94ff;
  --acc2: #cfd2ee;
  --deep: #6f63f7;
  --t1: #f3f3ff;
  --t2: #c4c9ef;
  --t3: #9ba1cf;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.lh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.lh-dom {
  position: absolute;
  inset: 0;
  cursor: grab;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
}

.lh-stage.is-looking .lh-dom { cursor: grabbing; }

.lh-3d {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}

.lh-ico {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lh-head-label,
.lh-di--logo,
.lh-board-title {
  background: linear-gradient(90deg, #ffffff 0%, #dfe2ff 55%, var(--acc) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ── category header (all sizes are 2x client px, the projection scales them back) ── */
.lh-head {
  width: 396px;
  height: 72px;
  border-radius: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px 0 20px;
  cursor: grab;
}

.lh-stage.is-dragging .lh-head { cursor: grabbing; }
.lh-head > .lh-ico { width: 30px; height: 30px; color: var(--acc); }
.lh-head-label { flex: 1; font-weight: 800; font-size: 27px; letter-spacing: 0.01em; white-space: nowrap; }

.lh-badge {
  min-width: 32px;
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  font: 600 18px/28px var(--mono);
  text-align: center;
  color: var(--acc);
  background: rgba(116, 125, 253, 0.22);
  box-shadow: inset 0 0 0 2px rgba(116, 125, 253, 0.38);
}

.lh-badge:empty { display: none; }
.lh-caret { width: 24px; height: 24px; color: var(--t2); transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1); }
.lh-head.is-closed .lh-caret { transform: rotate(-90deg); }

/* ── module list ── */
.lh-list {
  width: 360px;
  border-radius: 38px;
  overflow: hidden;
}

.lh-subs {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 10px;
  height: 40px;
  border-radius: 20px;
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.10);
  z-index: 1;
}

.lh-subs-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
  box-shadow: 0 0 20px rgba(116, 125, 253, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.25);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.lh-sub {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 21px;
  font-weight: 600;
  color: var(--t2);
  cursor: pointer;
  transition: color 0.3s ease;
}

.lh-sub .lh-ico { width: 20px; height: 20px; }
.lh-sub:hover { color: var(--t1); }
.lh-sub.is-on { color: #0a0a12; }

.lh-rows {
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  bottom: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.lh-rows::-webkit-scrollbar { display: none; }
.lh-list.has-subs .lh-rows { top: 60px; }
.lh-rows-in { padding-bottom: 12px; }
.lh-rows-in.is-in-r { animation: lh-swipe-r 0.34s cubic-bezier(0.23, 1, 0.32, 1) both; }
.lh-rows-in.is-in-l { animation: lh-swipe-l 0.34s cubic-bezier(0.23, 1, 0.32, 1) both; }

@keyframes lh-swipe-r { from { opacity: 0; transform: translateX(80px); } }
@keyframes lh-swipe-l { from { opacity: 0; transform: translateX(-80px); } }

.lh-row {
  position: relative;
  height: 60px;
  margin: 0 6px;
  padding-left: 40px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 600;
  color: var(--t3);
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lh-row::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  transition: height 0.32s cubic-bezier(0.23, 1, 0.32, 1), margin-top 0.32s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

.lh-row:hover { background: rgba(255, 255, 255, 0.06); color: var(--t2); }
.lh-row:focus-visible { box-shadow: inset 0 0 0 2px rgba(139, 148, 255, 0.7); }

.lh-row.is-on::before {
  height: 32px;
  margin-top: -16px;
  background: linear-gradient(180deg, #dfe2ff, var(--acc));
  box-shadow: 0 0 16px rgba(139, 148, 255, 0.8);
}

.lh-row.is-on .lh-name {
  background: linear-gradient(90deg, var(--acc) 0%, var(--acc2) 45%, var(--acc) 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: lh-shimmer 3.4s linear infinite;
}

@keyframes lh-shimmer { to { background-position: -200% 0; } }

.lh-row.is-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--px, 30%) 50%, rgba(139, 148, 255, 0.5), transparent 60%);
  animation: lh-pulse 0.55s ease-out both;
  pointer-events: none;
}

@keyframes lh-pulse { from { opacity: 1; transform: scale(0.6); } to { opacity: 0; transform: scale(1.4); } }

.lh-scroll {
  position: absolute;
  right: 10px;
  width: 5px;
  border-radius: 3px;
  background: rgba(116, 125, 253, 0.6);
  pointer-events: none;
  z-index: 1;
}

/* ── dock ── */
.lh-di {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 23px;
  font-weight: 600;
  color: var(--t2);
  cursor: pointer;
  transition: color 0.25s ease;
}

.lh-di .lh-ico { width: 24px; height: 24px; }
.lh-di--logo { font-weight: 800; font-size: 27px; cursor: default; }
.lh-di--tab { padding: 0 30px; }
.lh-di--tab:hover { color: var(--t1); }
.lh-di--tab.is-on, .lh-di--tab.is-on:hover { color: #0a0a12; }
.lh-di--btn { width: 56px; }
.lh-di--btn .lh-ico { width: 28px; height: 28px; }
.lh-di--close:hover { color: #ff7a86; }

.lh-dockbg {
  height: 72px;
  border-radius: 36px;
  pointer-events: none;
}

/* ── boards ── */
.lh-board {
  width: 1120px;
  padding: 44px 48px;
  border-radius: 38px;
}

.lh-board--add { width: 880px; }
.lh-board-head { display: flex; align-items: baseline; gap: 24px; }
.lh-board-title { font-weight: 800; font-size: 40px; }
.lh-board-sub { font-size: 23px; color: var(--t2); }

.lh-chip {
  margin-left: auto;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 48px;
  padding: 0 24px;
  border-radius: 24px;
  font: 600 21px var(--mono);
  color: var(--t1);
  box-shadow: inset 0 0 0 2px rgba(139, 148, 255, 0.55);
}

.lh-chip i { width: 16px; height: 16px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 16px var(--acc); }
.lh-hair { height: 2px; margin: 28px 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent); }
.lh-cfgs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }

.lh-cfg {
  min-height: 220px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.10);
  animation: lh-card-in 0.4s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes lh-card-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } }

.lh-cfg.is-active { box-shadow: inset 0 0 0 2px rgba(139, 148, 255, 0.7), 0 0 36px rgba(116, 125, 253, 0.2); }
.lh-cfg-top { display: flex; flex-direction: column; gap: 6px; }
.lh-cfg-name { font: 600 26px var(--mono); color: var(--t1); }
.lh-cfg-meta { font: 20px var(--mono); color: var(--t3); }
.lh-cfg-bar { height: 8px; margin: 24px 0 28px; border-radius: 4px; background: linear-gradient(90deg, #7cc4ff, var(--acc), #c77dff); }
.lh-cfg-btns { display: flex; gap: 10px; }

.lh-mini {
  height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 600 22px 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--t1);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.lh-mini:hover { background: rgba(255, 255, 255, 0.12); }
.lh-mini:active { transform: scale(0.96); }
.lh-mini .lh-ico { width: 22px; height: 22px; }
.lh-mini--acc { background: rgba(116, 125, 253, 0.24); box-shadow: inset 0 0 0 2px rgba(139, 148, 255, 0.6); }
.lh-mini--del { color: #ff8a95; background: rgba(255, 122, 134, 0.10); box-shadow: inset 0 0 0 2px rgba(255, 122, 134, 0.42); }

.lh-cfg--new {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 26px;
  font-weight: 600;
  color: var(--t2);
  background: none;
  cursor: pointer;
}

.lh-cfg--new:hover { color: var(--t1); box-shadow: inset 0 0 0 2px rgba(139, 148, 255, 0.5); }
.lh-plus { width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22); }

.lh-addon {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
  margin-bottom: 12px;
  padding: 0 24px;
  border-radius: 16px;
  font-size: 24px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
}

.lh-addon .lh-ico { color: var(--acc); }
.lh-addon em { margin-left: auto; font: normal 20px var(--mono); color: var(--t3); }
.lh-path { margin-bottom: 28px; font: 20px var(--mono); color: var(--t3); }

/* ── the slab in front ── */
.lh-slab {
  width: 1040px;
  height: 272px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 80px;
  cursor: default;
}

.lh-slab .title {
  font-size: 104px;
  margin: 0 0 8px;
  line-height: 1;
}

.lh-slab .subheading {
  max-width: none;
  margin: 0 0 26px;
  font-size: 26px;
  color: #b8bde6;
  text-shadow: 0 2px 14px rgba(5, 6, 20, 0.85);
}

.lh-slab .buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 0;
}

.lh-slab .btn { font-size: 26px; padding: 18px 20px 18px 42px; gap: 14px; }
.lh-slab .btn-secondary { padding: 18px 42px; }
.lh-slab .btn-icon { width: 46px; height: 46px; }
.lh-slab .btn-icon svg { width: 22px; height: 22px; }

.lh-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  padding: 6px 14px;
  border-radius: 14px;
  font: 500 12px 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #c4c9ef;
  background: rgba(15, 23, 42, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 50000;
}

.lh-hint.is-gone { opacity: 0; }

/* ── hero script never ran: centre the slab instead of leaving it at 0,0 ── */
.lh-stage:not(.lh-live) .lh-slab {
  left: 50%;
  top: 50%;
  transform-origin: 50% 50%;
  transform: translate(-50%, -50%) scale(0.5);
  animation: lh-fallback 0.4s ease 1.5s both;
}

@keyframes lh-fallback { from { opacity: 0; } to { opacity: 1; } }

.lh-nogl .lh-canvas { display: none; }

/* ── no WebGL2: CSS glass on the same elements ── */
.lh-nogl .lh-head,
.lh-nogl .lh-list,
.lh-nogl .lh-board,
.lh-nogl .lh-dockbg {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(111, 99, 247, 0.09) 55%, rgba(10, 12, 30, 0.30) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
          backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 0 36px rgba(116, 125, 253, 0.30), inset 0 2px 0 rgba(255, 255, 255, 0.30), inset 0 0 0 2px rgba(139, 148, 255, 0.35);
}

.hero--exit .lh-stage { animation: lh-out 0.45s cubic-bezier(0.32, 0.72, 0, 1) forwards; }
.hero--enter .lh-stage { animation: lh-in 0.6s cubic-bezier(0.32, 0.72, 0, 1) both; }

@keyframes lh-out { to { opacity: 0; transform: scale(1.04); filter: blur(8px); } }
@keyframes lh-in { from { opacity: 0; transform: scale(0.97); filter: blur(8px); } }

@media (prefers-reduced-motion: reduce) {
  .lh-row.is-on .lh-name { animation: none; }
}
