/*
 * galaxy-ui-3d.css v18b — LANGA Galaxy 3D UI
 * 1 April 2026
 *
 * POSITIONING RULE:
 * Desktop: wn-row at bottom:47px → back + CTA at bottom:47px (SAME LINE)
 * Mobile 768px: wn-row at bottom:90px → back + CTA at bottom:90px (SAME LINE)
 * Everything aligned with the console dot row.
 */

/* ═══ ROOT ═══ */
#langa-3d-ui {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9;
  font-family: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ═══ BACK — "← GALAXY" plain text, aligned to wn-row by JS ═══ */
#lx-back {
  position: fixed;
  bottom: 60px; left: clamp(16px, 4vw, 44px);
  right: auto; top: auto;
  height: 30px;
  display: flex; align-items: center; gap: 4px;
  padding: 0;
  pointer-events: auto; cursor: pointer;
  opacity: 0; transition: all .35s ease;
  color: rgba(255,255,255,.4);
  background: none; border: none;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Syne', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  line-height: 1; z-index: 199;
}
#lx-back.vis { opacity: 1; }
#lx-back:hover { color: rgba(255,255,255,.85); }
#lx-back:active { transform: scale(.95); }
#lx-back:focus { outline: none; box-shadow: none; }
#lx-back svg { width: 11px; height: 11px; transition: transform .2s; flex-shrink: 0; }
#lx-back:hover svg { transform: translateX(-2px); }

/* Scramble letters */
#lx-back-scramble { display: flex; gap: 1px; }
#lx-back-scramble span {
  display: inline-block; opacity: 0;
  transform: translateY(var(--iy, 6px)) rotate(var(--ir, 0deg));
  animation: lx-sc .45s ease forwards;
  animation-delay: var(--d, .1s);
}
@keyframes lx-sc {
  0%   { opacity: 0; transform: translateY(var(--iy, 6px)) rotate(var(--ir, 0deg)); }
  60%  { opacity: 1; transform: translateY(-1px) rotate(0deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg); }
}

/* ═══ CTA — gradient pill, aligned to wn-row by JS ═══ */
#lx-cta {
  position: fixed;
  bottom: 60px; right: clamp(16px, 4vw, 44px);
  left: auto; top: auto;
  height: 30px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 0 14px;
  border-radius: 980px; border: none;
  background: linear-gradient(135deg, #6a4c93, var(--nc, #f37f0d));
  pointer-events: auto; cursor: pointer;
  opacity: 0; transition: all .4s ease;
  text-decoration: none; z-index: 199;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--nc, #f37f0d) 25%, transparent);
  font-family: 'Syne', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: .04em; color: #fff;
}
#lx-cta.vis { opacity: 1; }
#lx-cta:hover {
  filter: brightness(1.15); transform: translateY(-1px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--nc, #f37f0d) 35%, transparent);
}
#lx-cta:active { transform: scale(.95); }
#lx-cta svg { width: 10px; height: 10px; color: #fff; flex-shrink: 0; }

/* ═══ NET NAME — hidden, already in .wn-name ═══ */
#lx-net-name { display: none; }

/* ═══ ENTER PHRASE — center screen ═══ */
#lx-enter {
  position: absolute; top: 42%; left: 50%;
  transform: translate(-50%, -50%) translateY(12px);
  opacity: 0; transition: all .6s ease;
  text-align: center; pointer-events: none; white-space: nowrap;
}
#lx-enter.vis { opacity: 1; transform: translate(-50%, -50%); }
#lx-enter span {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.5);
  background: rgba(10,10,25,.4); backdrop-filter: blur(12px);
  padding: 8px 20px; border-radius: 50px; border: 1px solid rgba(255,255,255,.04);
}

/* ═══ HOTSPOTS ═══ */
#lx-hotspots { position: absolute; inset: 0; pointer-events: none; }
.lx-hs {
  position: absolute; width: 36px; height: 36px;
  transform: translate(-50%, -50%);
  pointer-events: auto; cursor: pointer;
  opacity: 0; transition: opacity .5s ease, transform .2s ease;
}
.lx-hs.vis { opacity: 1; }
.lx-hs:hover { transform: translate(-50%, -50%) scale(1.2); }
.lx-hs:active { transform: translate(-50%, -50%) scale(.85); }
/* Old done — hidden */
.lx-hs.done {
  opacity: 0; pointer-events: none;
  transform: translate(-50%, -50%) scale(2.5); transition: all .5s ease;
}
/* Completed — DIFFERENT SHAPE: dot becomes checkmark, always revisitable */
.lx-hs.lx-hs-completed {
  opacity: .8; pointer-events: auto; cursor: pointer;
  transform: translate(-50%, -50%) scale(1);
}
.lx-hs.lx-hs-completed .lx-hs-dot {
  background: transparent; box-shadow: none;
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
}
.lx-hs.lx-hs-completed .lx-hs-dot::after {
  content: '✓'; font-size: 10px; font-weight: 700; color: rgba(255,255,255,.7);
  line-height: 1;
}
.lx-hs.lx-hs-completed .lx-hs-ring { border-color: rgba(255,255,255,.12); animation: none; opacity: .3; border-style: dashed; }
.lx-hs.lx-hs-completed .lx-hs-ring2 { display: none; }
.lx-hs.lx-hs-completed .lx-hs-tier { color: rgba(255,255,255,.3); font-size: 7px; }
.lx-hs.lx-hs-completed:hover { transform: translate(-50%, -50%) scale(1.15); }
.lx-hs.lx-hs-completed:hover .lx-hs-dot { border-color: rgba(255,255,255,.6); }
.lx-hs.lx-hs-completed:hover .lx-hs-dot::after { color: #fff; }
/* Review mode — all pivots done, dimmed "off" look but still revisitable */
.lx-hs.lx-hs-completed.lx-hs-review {
  opacity: .35;
}
.lx-hs.lx-hs-completed.lx-hs-review .lx-hs-dot {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}
.lx-hs.lx-hs-completed.lx-hs-review .lx-hs-dot::after {
  color: rgba(255,255,255,.3); font-size: 8px;
}
.lx-hs.lx-hs-completed.lx-hs-review .lx-hs-ring {
  opacity: .1; border-style: dotted;
}
.lx-hs.lx-hs-completed.lx-hs-review .lx-hs-tier { opacity: .2; }
.lx-hs.lx-hs-completed.lx-hs-review:hover {
  opacity: .6;
  transform: translate(-50%, -50%) scale(1.1);
}
.lx-hs.lx-hs-completed.lx-hs-review:hover .lx-hs-dot {
  border-color: rgba(255,255,255,.35);
}
.lx-hs.lx-hs-completed.lx-hs-review:hover .lx-hs-dot::after { color: rgba(255,255,255,.6); }
/* Wrong answer — shake */
.lx-hs.lx-hs-wrong { animation: lx-hs-shake .4s ease; }
@keyframes lx-hs-shake {
  0%, 100% { transform: translate(-50%, -50%); }
  15% { transform: translate(calc(-50% - 4px), calc(-50% + 2px)); }
  30% { transform: translate(calc(-50% + 3px), calc(-50% - 2px)); }
  45% { transform: translate(calc(-50% - 3px), calc(-50% + 1px)); }
  60% { transform: translate(calc(-50% + 2px), calc(-50% - 1px)); }
  75% { transform: translate(calc(-50% - 1px), calc(-50% + 1px)); }
}
/* Correct answer — celebration pulse (white, universal) */
.lx-hs.lx-hs-correct .lx-hs-dot {
  background: #fff; box-shadow: 0 0 14px rgba(255,255,255,.8);
  animation: lx-hs-celebrate .6s ease;
}
@keyframes lx-hs-celebrate {
  0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 8px rgba(255,255,255,.6); }
  40% { transform: translate(-50%, -50%) scale(2.5); box-shadow: 0 0 30px #fff, 0 0 60px rgba(255,255,255,.4); }
  100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 10px rgba(255,255,255,.6); }
}
.lx-hs-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--hc, rgba(255,255,255,.5));
  animation: lx-pulse 2.5s ease-in-out infinite;
}
.lx-hs-ring2 {
  position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--hc, rgba(255,255,255,.15));
  animation: lx-pulse 2.5s ease-in-out infinite .9s; opacity: .3;
}
.lx-hs-dot {
  position: absolute; top: 50%; left: 50%; width: 6px; height: 6px;
  border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--hc, #fff); box-shadow: 0 0 6px var(--hc, #fff);
}
.lx-hs-tier {
  position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace; font-size: 7px; font-weight: 600;
  color: var(--hc, #fff); white-space: nowrap; opacity: .7;
}
@keyframes lx-pulse {
  0%, 100% { transform: scale(1); opacity: .6; }
  50%      { transform: scale(1.7); opacity: 0; }
}

/* ═══ LOADING ═══ */
#lx-loading {
  position: absolute; left: 50%; transform: translateX(-50%);
  opacity: 0; transition: all .5s ease; pointer-events: none;
  text-align: center; min-width: 140px;
}
#lx-loading.vis { opacity: 1; }
#lx-loading.above-name { bottom: auto; top: 45%; }
#lx-loading.below-name { top: auto; bottom: 140px; }
#lx-loading-wrap { height: 2px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
#lx-loading-bar { height: 100%; background: var(--nc, #f37f0d); border-radius: 2px; width: 0%; transition: width .3s; }
#lx-loading-txt {
  font-family: 'JetBrains Mono', monospace; font-size: 8px; font-weight: 500;
  letter-spacing: .12em; color: rgba(255,255,255,.2); text-transform: uppercase;
}

/* ═══ FLOATING REWARD ═══ */
.lx-reward {
  position: absolute; font-family: 'JetBrains Mono', monospace;
  font-size: 16px; font-weight: 800; color: #fff;
  transform: translate(-50%, -50%);
  animation: lx-rwd 1.4s cubic-bezier(.25,.46,.45,.94) forwards;
  pointer-events: none; letter-spacing: .06em;
  padding: 4px 12px; border-radius: 20px;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.lx-reward i { font-style: italic; font-size: 13px; opacity: .8; }
@keyframes lx-rwd {
  0%  { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  12% { opacity: 1; transform: translate(-50%, -100%) scale(1.3); }
  30% { transform: translate(-50%, -140%) scale(1); }
  100%{ opacity: 0; transform: translate(-50%, -260%) scale(.6); }
}
@keyframes lx-shake {
  0%, 100% { transform: none; }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(2px, -1px); }
  60% { transform: translate(-1px, 2px); }
  80% { transform: translate(1px, -1px); }
}
.lx-shaking { animation: lx-shake .3s ease; }

/* ═══ WORLD TOOLTIP ═══ */
#lx-world-tooltip {
  position: fixed; pointer-events: none; z-index: 11;
  background: rgba(10,10,25,.8); border: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(20px); border-radius: 12px; padding: 7px 13px;
  transform: translate(-50%, -140%); opacity: 0; transition: opacity .2s;
  white-space: nowrap; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
#lx-world-tooltip.vis { opacity: 1; }
.lx-tt-name { font-size: 12px; font-weight: 700; color: #fff; }
.lx-tt-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 7px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.3);
}

/* ═══════════════════════════════════════════
   QUIZ MODAL — glassmorphism card
   ═══════════════════════════════════════════ */
#lx-quiz {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 500; pointer-events: none;
  opacity: 0; transition: opacity .35s ease;
}
#lx-quiz.vis { opacity: 1; pointer-events: auto; }
#lx-quiz-backdrop {
  position: absolute; inset: 0;
  background: rgba(4,4,12,.2);
  /* Very subtle — 3D scene + blob visible behind quiz card */
}
#lx-quiz-card {
  position: relative; z-index: 1;
  width: min(400px, calc(100vw - 32px));
  background: rgba(12,12,24,.92);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-radius: 0 0 20px 20px; padding: 28px 24px 24px;
  transform: translateY(20px) scale(.94);
  transition: transform .45s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 30px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03) inset;
}
#lx-quiz.vis #lx-quiz-card { transform: translateY(0) scale(1); }
#lx-quiz-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  overflow: hidden;
}
#lx-quiz-accent::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.06);
}
#lx-quiz-accent::after {
  content: ''; position: absolute; top: 0; left: 0; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--nc, #f37f0d), #6a4c93, transparent);
  animation: lx-quiz-accent-shift 3s ease-in-out infinite alternate;
}
#lx-quiz-tier {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--nc, #f37f0d); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
#lx-quiz-tier::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--nc, #f37f0d);
  box-shadow: 0 0 6px var(--nc, #f37f0d);
}
/* Quiz reward tracker */
#lx-quiz-reward {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 600;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.lx-qr-val {
  color: var(--nc, #f37f0d);
  text-shadow: 0 0 6px color-mix(in srgb, var(--nc, #f37f0d) 30%, transparent);
}
.lx-qr-reduced { color: #fbbf24; }
.lx-qr-pen {
  font-size: 10px; color: #ef4444; font-weight: 500;
  animation: lx-pen-in .3s ease;
}
@keyframes lx-pen-in {
  0% { opacity: 0; transform: translateX(-4px); }
  100% { opacity: 1; transform: none; }
}
#lx-quiz-question {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,.92); line-height: 1.55;
  margin-bottom: 20px;
}
#lx-quiz-options { display: flex; flex-direction: column; gap: 8px; }
.lx-quiz-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  font-size: 13px; color: rgba(255,255,255,.65);
  cursor: pointer; transition: all .2s ease;
  user-select: none;
}
.lx-quiz-opt:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  transform: translateX(2px);
}
.lx-quiz-opt:active { transform: scale(.98); }
.lx-quiz-opt .lx-qo-letter {
  width: 24px; height: 24px; border-radius: 8px;
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,.35);
  flex-shrink: 0; transition: all .25s;
}
.lx-quiz-opt:hover .lx-qo-letter {
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.6);
}
/* Correct */
.lx-quiz-opt.correct {
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.35);
  color: #34d399;
  animation: lx-correct .4s ease;
}
.lx-quiz-opt.correct .lx-qo-letter {
  background: #047857; color: #fff;
  box-shadow: 0 0 12px rgba(16,185,129,.4);
}
@keyframes lx-correct {
  0% { transform: scale(1); }
  30% { transform: scale(1.02) translateX(3px); }
  100% { transform: scale(1); }
}
/* Wrong */
.lx-quiz-opt.wrong {
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.2);
  color: rgba(239,68,68,.7);
}
.lx-quiz-opt.wrong .lx-qo-letter {
  background: #b91c1c; color: #fff;
}
/* Disabled */
.lx-quiz-opt[style*="pointer-events: none"] {
  opacity: .4;
}
/* Hint */
#lx-quiz-hint {
  margin-top: 14px; padding: 12px 14px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 10px; border-left: 2px solid var(--nc, #f37f0d);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  font-size: 12px; color: rgba(255,255,255,.5);
  line-height: 1.55; display: none;
}
#lx-quiz-hint.vis {
  display: block;
  animation: lx-hint-in .3s ease;
}
@keyframes lx-hint-in {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: none; }
}
/* Close */
#lx-quiz-close {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,.04); border: none;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.25); cursor: pointer; transition: all .2s;
}
#lx-quiz-close:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); }

/* ═══ GAME TYPE: TRUE/FALSE — two big buttons ═══ */
.lx-quiz-tf {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.lx-quiz-tf-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 20px 12px;
  background: rgba(255,255,255,.03);
  border: 1.5px solid rgba(255,255,255,.06);
  border-radius: 14px; cursor: pointer;
  transition: all .25s ease; user-select: none;
  color: rgba(255,255,255,.5);
}
.lx-quiz-tf-btn span {
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.lx-quiz-tf-btn:hover {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.8); transform: translateY(-2px);
}
.lx-quiz-tf-btn:active { transform: scale(.97); }
.lx-quiz-tf-btn.correct {
  background: rgba(16,185,129,.15); border-color: rgba(16,185,129,.4);
  color: #34d399; animation: lx-correct .4s ease;
}
.lx-quiz-tf-btn.correct svg { stroke: #34d399; }
.lx-quiz-tf-btn.wrong {
  background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.25);
  color: rgba(239,68,68,.7);
}
.lx-quiz-tf-btn.wrong svg { stroke: #ef4444; }

/* ═══ GAME TYPE: MATCH PAIRS — two columns ═══ */
.lx-quiz-match {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.lx-qm-col { display: flex; flex-direction: column; gap: 6px; }
.lx-qm-item {
  padding: 10px 12px; border-radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif; font-size: 12px;
  cursor: pointer; transition: all .2s ease; user-select: none;
}
.lx-qm-l {
  background: rgba(255,255,255,.04); border: 1.5px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.7); text-align: right;
  padding:10px 12px;border-radius:10px;font-size:12px;cursor:pointer;transition:all .2s;
}
.lx-qm-r {
  background: rgba(255,255,255,.02); border: 1.5px solid rgba(255,255,255,.04);
  color: rgba(255,255,255,.5); text-align: left;
  padding:10px 12px;border-radius:10px;font-size:12px;cursor:pointer;transition:all .2s;
}
.lx-qm-l:hover { border-color: rgba(255,255,255,.15); color: #fff; }
.lx-qm-r:hover { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
.lx-qm-l.selected {
  border-color: var(--nc, #f37f0d); color: #fff;
  background: color-mix(in srgb, var(--nc, #f37f0d) 8%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--nc, #f37f0d) 10%, transparent);
}
.lx-qm-item.matched {
  border-color: rgba(16,185,129,.35); color: #34d399;
  background: rgba(16,185,129,.08); pointer-events: none; opacity: .7;
}
.lx-qm-item.flash-wrong {
  border-color: rgba(239,68,68,.3); background: rgba(239,68,68,.08);
  animation: lx-flash-wrong .4s ease;
}
@keyframes lx-flash-wrong {
  0%, 100% { transform: none; }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* ═══ GAME TYPE: SEQUENCE — tap in order ═══ */
.lx-quiz-seq {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; margin-bottom: 6px;
  background: rgba(255,255,255,.03);
  border: 1.5px solid rgba(255,255,255,.06);
  border-radius: 12px; cursor: pointer;
  transition: all .25s ease; user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif; font-size: 13px;
  color: rgba(255,255,255,.65);
}
.lx-quiz-seq:hover {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85); transform: translateX(3px);
}
.lx-quiz-seq:active { transform: scale(.98); }
.lx-qs-num {
  width: 24px; height: 24px; border-radius: 8px;
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.25); flex-shrink: 0; transition: all .3s;
}
.lx-quiz-seq.numbered .lx-qs-num {
  background: var(--nc, #f37f0d); color: #fff;
  box-shadow: 0 0 8px color-mix(in srgb, var(--nc, #f37f0d) 30%, transparent);
}
.lx-quiz-seq.numbered.correct {
  border-color: rgba(16,185,129,.25); pointer-events: none;
  color: rgba(255,255,255,.5);
}
.lx-quiz-seq.numbered.correct .lx-qs-num {
  background: #10B981; box-shadow: 0 0 8px rgba(16,185,129,.3);
}
.lx-quiz-seq.flash-wrong {
  border-color: rgba(239,68,68,.3); background: rgba(239,68,68,.06);
  animation: lx-flash-wrong .4s ease;
}

/* ═══ QUIZ TIER STYLES — 4 visual levels ═══ */

/* Tier 1: +5L — simple, subtle */
#lx-quiz[data-tier="1"] #lx-quiz-card {
  border-color: rgba(255,255,255,.06);
}
#lx-quiz[data-tier="1"] #lx-quiz-tier::before { box-shadow: none; }

/* Tier 2: +20L — medium, accent glow */
#lx-quiz[data-tier="2"] #lx-quiz-card {
  border-color: color-mix(in srgb, var(--nc, #f37f0d) 15%, rgba(255,255,255,.06));
  box-shadow: 0 30px 100px rgba(0,0,0,.55), 0 0 40px color-mix(in srgb, var(--nc, #f37f0d) 5%, transparent);
}

/* Tier 3: +50L — strong, bigger glow */
#lx-quiz[data-tier="3"] #lx-quiz-card {
  border-color: color-mix(in srgb, var(--nc, #f37f0d) 25%, rgba(255,255,255,.08));
  box-shadow: 0 30px 100px rgba(0,0,0,.55), 0 0 60px color-mix(in srgb, var(--nc, #f37f0d) 8%, transparent);
}
#lx-quiz[data-tier="3"] #lx-quiz-tier {
  font-size: 10px;
  text-shadow: 0 0 8px color-mix(in srgb, var(--nc, #f37f0d) 40%, transparent);
}

/* Tier 4: +100L — legendary, full glow, premium feel */
#lx-quiz[data-tier="4"] #lx-quiz-card {
  border-color: color-mix(in srgb, var(--nc, #f37f0d) 35%, rgba(255,255,255,.1));
  box-shadow: 
    0 30px 100px rgba(0,0,0,.55),
    0 0 80px color-mix(in srgb, var(--nc, #f37f0d) 12%, transparent),
    0 0 0 1px color-mix(in srgb, var(--nc, #f37f0d) 8%, transparent) inset;
  animation: lx-quiz-legendary 3s ease-in-out infinite;
}
#lx-quiz[data-tier="4"] #lx-quiz-tier {
  font-size: 11px; letter-spacing: .18em;
  text-shadow: 0 0 12px color-mix(in srgb, var(--nc, #f37f0d) 50%, transparent);
}
#lx-quiz[data-tier="4"] #lx-quiz-tier::before {
  width: 6px; height: 6px;
  box-shadow: 0 0 10px var(--nc, #f37f0d), 0 0 20px color-mix(in srgb, var(--nc, #f37f0d) 50%, transparent);
  animation: lx-quiz-dot-pulse 1.5s ease-in-out infinite;
}
#lx-quiz[data-tier="4"] .lx-quiz-opt {
  border-color: rgba(255,255,255,.08);
}
#lx-quiz[data-tier="4"] .lx-quiz-opt:hover {
  border-color: color-mix(in srgb, var(--nc, #f37f0d) 20%, rgba(255,255,255,.1));
  box-shadow: 0 0 16px color-mix(in srgb, var(--nc, #f37f0d) 6%, transparent);
}
@keyframes lx-quiz-legendary {
  0%, 100% { box-shadow: 0 30px 100px rgba(0,0,0,.55), 0 0 60px color-mix(in srgb, var(--nc, #f37f0d) 8%, transparent); }
  50% { box-shadow: 0 30px 100px rgba(0,0,0,.55), 0 0 100px color-mix(in srgb, var(--nc, #f37f0d) 15%, transparent); }
}
@keyframes lx-quiz-accent-shift {
  0% { left: -40%; }
  100% { left: 100%; }
}
@keyframes lx-quiz-dot-pulse {
  0%, 100% { opacity: .8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ═══ BLOB TOOLTIP ═══ */
#lx-blob-tt {
  position: fixed; pointer-events: none; z-index: 12;
  opacity: 0; transition: opacity .3s ease;
  background: rgba(10,10,25,.85);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 10px; padding: 5px 11px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif; font-size: 11px;
  color: rgba(255,255,255,.7);
  white-space: normal; text-align: center;
  transform: translate(-50%, -180%);
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
  max-width: 200px; line-height: 1.4;
}

/* ═══ LEGHE UNIT ═══ */
.lx-hb-unit {
  font-style: italic; font-weight: 600;
  font-family: 'DM Sans', serif;
  margin-left: 2px; opacity: .7;
}
.lx-hb-leghe {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 600;
  color: #f37f0d;
  display: flex; align-items: center; gap: 2px;
  cursor: default !important;
}
.lx-hb-eur {
  font-size: 9px; font-weight: 400;
  color: rgba(255,255,255,.3);
  margin-left: 6px;
}
/* Leghe in quiz reward — italic L */
.lx-qr-val i, .lx-qr-reduced i {
  font-style: italic; font-weight: 700;
}

/* ═══ NARRATIVE OVERLAY — fullscreen dark, blob center, text types below ═══ */
#lx-narr-overlay {
  position: fixed; inset: 0; z-index: 15;
  background:
    radial-gradient(ellipse 60% 30% at 50% 50%, rgba(106,76,147,.06) 0%, transparent 70%),
    radial-gradient(ellipse 80% 15% at 45% 48%, rgba(140,120,180,.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 55% 52%, rgba(80,60,120,.03) 0%, transparent 50%),
    #020208;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0;
  pointer-events: none;
  opacity: 0; transition: opacity .8s ease;
}
#lx-narr-overlay::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 15%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 25% 45%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 40% 8%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 55% 70%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 70% 30%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 85% 55%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 15% 80%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.5px 1.5px at 50% 25%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 65% 85%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 90% 10%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 5% 50%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 35% 95%, rgba(255,255,255,.3), transparent),
    radial-gradient(2px 2px at 78% 42%, rgba(200,160,255,.5), transparent),
    radial-gradient(2px 2px at 22% 62%, rgba(200,160,255,.4), transparent),
    radial-gradient(1px 1px at 45% 52%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 88% 78%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.5px 1.5px at 62% 18%, rgba(200,180,255,.45), transparent),
    radial-gradient(1px 1px at 18% 35%, rgba(255,255,255,.4), transparent);
  animation: lx-narr-stars 60s linear infinite;
}
@keyframes lx-narr-stars {
  0% { transform: translateY(0) rotate(0deg); opacity: .7; }
  25% { opacity: .9; }
  50% { transform: translateY(-4px) rotate(.3deg); opacity: 1; }
  75% { opacity: .85; }
  100% { transform: translateY(0) rotate(0deg); opacity: .7; }
}
#lx-narr-overlay::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 30% 25%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 60% 55%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 15% 72%, rgba(200,160,255,.4), transparent),
    radial-gradient(1px 1px at 80% 15%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 42% 88%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.5px 1.5px at 72% 68%, rgba(200,180,255,.3), transparent);
  animation: lx-narr-twinkle 4s ease-in-out infinite alternate;
}
@keyframes lx-narr-twinkle {
  0% { opacity: .4; transform: scale(1); }
  50% { opacity: .8; transform: scale(1.01); }
  100% { opacity: .5; transform: scale(1); }
}
#lx-narr-overlay.vis { opacity: 1; pointer-events: auto; }
/* When world is loaded: reveal 3D scene behind (cambio guardia, blob, cordone visible) */
#lx-narr-overlay.vis.loaded {
  background: rgba(4,4,12,.4);
  transition: background 1.5s ease, opacity .8s ease;
}
/* Overlay blob — rendered by Three.js via main renderer */
/* GLOW is set dynamically by JS (galaxy-3d.js render loop) — initial subtle glow, JS overrides */
#lx-no-cv {
  touch-action: none; will-change: transform;
  display: block;
  cursor: grab; position: relative; z-index: 2;
  filter: none;
  animation: lx-cv-breathe 3s ease-in-out infinite;
}
@keyframes lx-cv-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
#lx-no-cv.draggable { cursor: grab; }
#lx-no-cv.draggable:active { cursor: grabbing; }
/* Text */
.lx-no-text {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  font-size: 14px; line-height: 1.8; font-weight: 400; letter-spacing: .01em;
  color: rgba(255,255,255,.45);
  text-align: center;
  max-width: min(380px, calc(100vw - 48px));
  min-height: 24px; padding: 0 16px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .6s ease, transform .6s ease;
  position: relative; z-index: 2;
}
.lx-no-text.vis { opacity: 1; transform: translateY(0); }
.lx-no-text.lx-no-title {
  font-size: 22px; line-height: 1.3;
  letter-spacing: -.01em; text-transform: none;
}
/* Intelligence LANGA — Fraunces italic + LANGA logo */
.lx-no-title .lx-t1 {
  font-family: 'Fraunces', serif;
  font-weight: 300; font-style: italic;
  color: rgba(155,114,207,.7);
  animation: lx-t1-in 1.2s ease forwards;
  opacity: 0;
}
.lx-no-title img.lx-t2 {
  display: inline-block;
  filter: brightness(1.1);
  opacity: 0;
  animation: lx-t2-in 1s ease .4s forwards;
}
@keyframes lx-t1-in {
  0% { opacity: 0; transform: translateX(-10px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes lx-t2-in {
  0% { opacity: 0; transform: translateX(10px); }
  100% { opacity: 1; transform: translateX(0); }
}
/* World name — scramble letters */
.lx-no-letter {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 13px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.85);
  animation: lx-no-scramble .6s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: var(--d, 0s);
  opacity: 0; transform: translateY(var(--iy, 10px)) rotate(var(--ir, 0deg));
}
@keyframes lx-no-scramble {
  0% { opacity: 0; transform: translateY(var(--iy, 10px)) rotate(var(--ir, 0deg)); }
  60% { opacity: 1; transform: translateY(-2px) rotate(0deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg); }
}
@keyframes lx-fling-wiggle {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  15% { transform: translate(-8px, -3px) rotate(-3deg); }
  30% { transform: translate(6px, 2px) rotate(2deg); }
  45% { transform: translate(-4px, -2px) rotate(-1.5deg); }
  60% { transform: translate(3px, 1px) rotate(1deg); }
  80% { transform: translate(-1px, 0) rotate(0deg); }
}
@keyframes lx-ng-breathe {
  0%, 100% { transform: translateX(-50%) scaleX(1) scaleY(1); opacity: .6; }
  50% { transform: translateX(-50%) scaleX(1.25) scaleY(1.35); opacity: 1; }
}
/* Overlay loading bar */
.lx-no-loader {
  width: 120px; height: 2px; margin: 0 auto 12px;
  background: rgba(255,255,255,.08); border-radius: 1px;
  overflow: hidden;
}
.lx-no-loader-bar {
  height: 100%; width: 0; border-radius: 1px;
  background: rgba(155,114,207,.5);
  transition: width .3s ease;
}
.lx-no-loader-label {
  font-size: 11px; font-weight: 400;
  color: rgba(255,255,255,.25);
  letter-spacing: .06em;
}
/* Progress indicator — stories-style segments with gaps, positioned at BOTTOM */
.lx-no-dots {
  display: flex; align-items: center; gap: 4px;
  width: min(220px, 45vw);
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2;
}
.lx-no-dot {
  flex: 1; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.1);
  transition: all .5s ease;
  cursor: pointer;
}
.lx-no-dot:hover { background: rgba(255,255,255,.25); }
.lx-no-dot.active { background: rgba(106,76,147,.45); }
.lx-no-dot.current { background: #9b72cf; box-shadow: 0 0 6px rgba(155,114,207,.35); }
/* Hide console during narrative */
.wn-row.lx-narr-hidden { opacity: 0 !important; pointer-events: none !important; transition: opacity .4s ease !important; }
body.lx-narr-active .foot { opacity: 0 !important; pointer-events: none !important; transition: opacity 1.5s ease .5s !important; }
body.lx-narr-active .nav { opacity: 0 !important; pointer-events: none !important; }
body.lx-narr-active .wn-row { opacity: 0 !important; pointer-events: none !important; }
body.lx-narr-active .wn-name { opacity: 0 !important; }
body.lx-narr-active #lx-header-bar { opacity: 0 !important; }
body.lx-narr-active #lx-world-tooltip,
body.lx-narr-active #lx-blob-tt,
body.lx-narr-active .wn-name { opacity: 0 !important; pointer-events: none !important; }
body.lx-narr-active #lx-back { opacity: 0 !important; pointer-events: none !important; }
body.lx-narr-active #lx-cta { opacity: 0 !important; pointer-events: none !important; }
/* Hide ALL floating UI when overlay is active */
#lx-narr-overlay.vis ~ #lx-world-tooltip,
#lx-narr-overlay.vis ~ .wn-name,
#lx-narr-overlay.vis ~ #langa-3d-ui #lx-world-tooltip { display: none !important; }
@media (max-width: 768px) {
  .lx-no-text { font-size: 13px; }
  .lx-no-blob { width: 36px; height: 36px; margin-bottom: 24px; }
  .lx-no-core { width: 12px; height: 12px; }
}

/* ═══ QUIZ LOGO HEADER ═══ */
#lx-quiz-logo {
  display: flex; align-items: center; justify-content: flex-start;
  margin-bottom: 14px; min-height: 50px;
}
.lx-ql-img {
  height: 50px; width: 50px; max-width: 50px;
  object-fit: contain;
  border-radius: 50%;
  opacity: .85;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}
/* Tier + Reward on one row */
#lx-quiz-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 8px;
}
#lx-quiz-tier { flex: 1; margin-bottom: 0; }
#lx-quiz-reward { flex: 0 0 auto; margin-bottom: 0; }

/* ═══ COUNTDOWN DOT — last dot fills as auto-close timer ═══ */
.lx-no-dot-countdown {
  animation: lx-dot-countdown 3s linear forwards !important;
}
@keyframes lx-dot-countdown {
  0% { transform: scaleX(1); opacity: 1; }
  85% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0); opacity: .3; }
}

/* ═══ BLOB DOM MIRROR — visible above quiz popup ═══ */
#lx-blob-dom {
  position: fixed; z-index: 600;
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(106,76,147,.9);
  box-shadow: 0 0 12px rgba(106,76,147,.5), 0 0 30px rgba(106,76,147,.2);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .3s ease;
  animation: lx-blob-pulse 2s ease-in-out infinite;
}
@keyframes lx-blob-pulse {
  0%, 100% { transform: translate(-50%,-50%) scale(1); box-shadow: 0 0 12px rgba(106,76,147,.5), 0 0 30px rgba(106,76,147,.2); }
  50% { transform: translate(-50%,-50%) scale(1.3); box-shadow: 0 0 18px rgba(106,76,147,.7), 0 0 40px rgba(106,76,147,.3); }
}

/* ═══ CROSSFADE ═══ */
#gx-crossfade {
  position: fixed; inset: 0; background: #0a0a14;
  pointer-events: none; z-index: 8; opacity: 0; transition: opacity .6s ease;
}
#gx-crossfade.active { opacity: 1; }

/* ═══════════════════════════════════════════
   MOBILE 768px — back + CTA aligned to wn-row by JS
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  #lx-back {
    left: clamp(16px, 4vw, 44px);
    font-size: 9px; height: 26px;
  }
  /* CTA: circle only, hide text */
  #lx-cta {
    right: clamp(16px, 4vw, 44px);
    width: 28px; height: 28px;
    padding: 0; border-radius: 50%;
  }
  #lx-cta #lx-cta-txt { display: none; }
  #lx-cta svg { width: 12px; height: 12px; }

  #lx-enter span { font-size: 12px; padding: 6px 16px; }
  .lx-hs { width: 44px; height: 44px; }
  .lx-hs-dot { width: 8px; height: 8px; }
  #lx-loading.below-name { bottom: 180px; }

  /* Quiz responsive */
  #lx-quiz-card { padding: 22px 18px 18px; }
  #lx-quiz-question { font-size: 14px; }
  .lx-quiz-opt { padding: 10px 12px; font-size: 12px; }
}

@media (max-width: 480px) {
  #lx-back { left: 12px; font-size: 8px; }
  #lx-cta { right: 12px; width: 26px; height: 26px; }
  #lx-cta svg { width: 11px; height: 11px; }
  .lx-hs { width: 48px; height: 48px; }
}

/* ═══ ERROR SHAKE — whole screen trembles ═══ */
body.lx-shaking { animation: lx-body-shake .4s ease; }
@keyframes lx-body-shake {
  0%, 100% { transform: none; }
  10% { transform: translate(-3px, 2px); }
  20% { transform: translate(4px, -2px); }
  30% { transform: translate(-4px, 1px); }
  40% { transform: translate(3px, -3px); }
  50% { transform: translate(-2px, 3px); }
  60% { transform: translate(3px, -1px); }
  70% { transform: translate(-3px, 2px); }
  80% { transform: translate(2px, -2px); }
  90% { transform: translate(-1px, 1px); }
}

/* ═══ REDUCE MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  .lx-hs-ring, .lx-hs-ring2 { animation: none; opacity: .5; }
  .lx-reward { animation: none; opacity: 0; }
  .lx-shaking { animation: none; }
  #lx-back-scramble span { animation: none; opacity: 1; transform: none; }
  .lx-quiz-opt.correct { animation: none; }
}
/* Nav behind canvas in 3D mode */
body.mode3d .nav{z-index:2!important}
body.mode3d .nav:hover{z-index:12!important}

/* ═══ MOBILE dvh + safe-area fix — v19 patch 2026-05-06 ═══ */
@supports (height: 100dvh) {
  #langa-3d-ui { height: 100dvh; }
}
@media (max-width: 768px) {
  #lx-back { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  #lx-cta { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 480px) {
  #lx-back { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); left: 12px; }
  #lx-cta { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); right: 12px; }
}

/* Blob wrap — glow behind */
#lx-no-wrap{position:relative;display:flex;justify-content:center;margin-bottom:24px;z-index:2}
#lx-no-wrap::before{content:"";position:absolute;top:50%;left:50%;width:200px;height:200px;transform:translate(-50%,-50%);background:radial-gradient(circle,rgba(var(--glow-r,139),var(--glow-g,111),var(--glow-b,176),.35) 0%,rgba(var(--glow-r,139),var(--glow-g,111),var(--glow-b,176),.1) 40%,transparent 70%);border-radius:50%;z-index:-1;animation:lx-glow-pulse 3s ease-in-out infinite;pointer-events:none}
@keyframes lx-glow-pulse{0%,100%{opacity:.6;transform:translate(-50%,-50%) scale(1)}50%{opacity:1;transform:translate(-50%,-50%) scale(1.15)}}
/* Nav arrows */
#lx-no-nav{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;justify-content:space-between;align-items:center;padding:0 16px;pointer-events:none;z-index:5}
#lx-no-nav button{pointer-events:auto;background:none;border:none;width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.4);cursor:pointer;transition:color .25s ease}
#lx-no-nav button:hover{color:rgba(255,255,255,.7)}
#lx-no-nav button:active{transform:scale(.9);color:rgba(255,255,255,.9)}
@media(max-width:768px){#lx-no-nav{padding:0 8px}#lx-no-nav button{width:36px;height:36px}#lx-no-nav button svg{width:16px;height:16px}}


/* ═══ INFO POPUP V2 ═══ */
#lx-info-popup {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 510; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
}
#lx-info-popup.vis { opacity: 1; pointer-events: auto; }
#lx-info-backdrop {
  position: absolute; inset: 0;
  background: rgba(4,4,12,.15);
}
#lx-info-card {
  position: relative; z-index: 1;
  width: min(380px, calc(100vw - 32px));
  background: rgba(12,12,24,.94);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-radius: 20px; padding: 28px 24px 20px;
  transform: translateY(16px) scale(.95);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.03) inset;
}
#lx-info-popup.vis #lx-info-card { transform: translateY(0) scale(1); }
#lx-info-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  overflow: hidden; border-radius: 20px 20px 0 0;
}
#lx-info-accent::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--nc, #f37f0d), transparent);
  animation: lx-info-accent-glow 2.5s ease-in-out infinite alternate;
}
@keyframes lx-info-accent-glow {
  0% { opacity: .4; transform: translateX(-30%); }
  100% { opacity: 1; transform: translateX(30%); }
}
#lx-info-close {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,.04); border: none;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3); cursor: pointer; transition: all .2s;
}
#lx-info-close:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
#lx-info-fav {
  display: flex; align-items: center; justify-content: flex-start;
  margin-bottom: 16px;
}
.lx-if-img {
  height: 44px; width: 44px;
  object-fit: contain;
  border-radius: 50%;
  opacity: .9;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}
#lx-info-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--nc, #f37f0d);
  margin-bottom: 6px;
}
#lx-info-title {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  font-size: 18px; font-weight: 600;
  color: rgba(255,255,255,.95);
  line-height: 1.35;
  margin-bottom: 12px;
}
#lx-info-text {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,.45);
  line-height: 1.65;
  margin-bottom: 20px;
}
#lx-info-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.05);
}
#lx-info-dots {
  display: flex; gap: 6px; align-items: center;
}
.lx-id {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  transition: all .3s ease;
}
.lx-id.active {
  background: var(--nc, #f37f0d);
  box-shadow: 0 0 6px color-mix(in srgb, var(--nc, #f37f0d) 40%, transparent);
}
.lx-id-quiz {
  width: auto; height: auto; border-radius: 4px;
  padding: 2px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px; font-weight: 700;
  color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.05);
}
#lx-info-step {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 500;
  color: rgba(255,255,255,.25);
  letter-spacing: .1em;
}


/* ═══════════════════════════════════════════════════════
 * R-V237 CSS PATCHES — preloader cleanup, text contrast, pivot fix, onboarding
 * ═══════════════════════════════════════════════════════ */

/* A1 — NO HALO/GLOW dietro al blob preloader */
#lx-no-wrap::before { display: none !important; }

/* A2 — NARRATIVE TEXT high contrast + leggibilità */
.lx-no-text {
  font-weight: 400 !important;
  color: rgba(255,255,255,.94) !important;
  text-shadow: 0 1px 16px rgba(0,0,0,.7), 0 0 24px rgba(0,0,0,.4) !important;
  letter-spacing: .005em !important;
}
.lx-no-text.lx-no-title {
  font-weight: 700 !important;
  text-shadow: 0 2px 24px rgba(0,0,0,.85), 0 0 40px rgba(0,0,0,.5) !important;
}

/* B — QUIZ PIVOT click force */
#lx-hotspots { pointer-events: none !important; z-index: 11 !important; }
.lx-hs { z-index: 11 !important; }
.lx-hs.vis { pointer-events: auto !important; cursor: pointer !important; }
.lx-hs.lx-hs-disabled {
  opacity: 0 !important;
  pointer-events: none !important;
  filter: none !important;
}
.lx-hs.lx-hs-unlocked {
  opacity: 1 !important;
  pointer-events: auto !important;
  animation: lx-hs-unlock-pulse .8s ease;
}
@keyframes lx-hs-unlock-pulse {
  0% { transform: translate(-50%,-50%) scale(.4); filter: brightness(2); }
  60% { transform: translate(-50%,-50%) scale(1.3); filter: brightness(1.4); }
  100% { transform: translate(-50%,-50%) scale(1); filter: brightness(1); }
}

/* C — ONBOARDING POPUP */
#lx-world-onboard {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(.85);
  z-index: 26;
  background: rgba(8,8,18,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--nc, rgba(243,127,13,.3));
  border-radius: 18px;
  padding: 32px 32px 24px;
  max-width: 380px; min-width: 280px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
#lx-world-onboard.vis { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
#lx-world-onboard .lx-ob-icon {
  width: 48px; height: 48px; margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nc,#f37f0d), #f37f0d);
  display: flex; align-items: center; justify-content: center;
}
#lx-world-onboard .lx-ob-title {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: #fff; margin-bottom: 12px;
}
#lx-world-onboard .lx-ob-text {
  font-size: 13px; line-height: 1.65;
  color: rgba(255,255,255,.82);
  margin-bottom: 22px;
}
#lx-world-onboard .lx-ob-btn {
  background: var(--nc, #f37f0d);
  color: #fff; border: 0;
  padding: 10px 28px; border-radius: 999px;
  font-family: 'Syne', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease;
}
#lx-world-onboard .lx-ob-btn:hover { transform: scale(1.06); }

/* Skip button in narrative */
.lx-no-skip{position:absolute;top:20px;right:20px;left:auto;bottom:auto;transform:none;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:rgba(255,255,255,.35);font-family:'Syne',sans-serif;font-size:9px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;padding:5px 14px;border-radius:14px;cursor:pointer;transition:all .3s ease;z-index:3}
.lx-no-skip:hover{color:rgba(255,255,255,.7);border-color:rgba(255,255,255,.4)}
.lx-no-skip.disabled{opacity:.2;pointer-events:none;cursor:default}
/* R-FIX-298F: blob shake reaction */
/* R-298.3 Console attention animation */
.wn-row.lx-attention .wn-dots{animation:lx-console-pulse 1.5s ease-in-out 3;border-color:rgba(243,127,13,.4)}
@keyframes lx-console-pulse{0%,100%{box-shadow:none;transform:scale(1)}50%{box-shadow:0 0 16px rgba(243,127,13,.3);transform:scale(1.06)}}
.wn-row .lx-hint{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",sans-serif;font-size:11px;color:rgba(255,255,255,.6);white-space:nowrap;opacity:0;transition:opacity .5s ease;pointer-events:none}
.wn-row.lx-attention .lx-hint{opacity:1;animation:lx-hint-fade 4.5s ease forwards}
@keyframes lx-hint-fade{0%{opacity:0;transform:translateX(-50%) translateY(4px)}15%{opacity:1;transform:translateX(-50%) translateY(0)}85%{opacity:1}100%{opacity:0}}
#lx-no-cv.lx-shake{animation:lx-blob-shake .4s ease-in-out!important}
/* R-298.3 Console attention animation */
.wn-row.lx-attention .wn-dots{animation:lx-console-pulse 1.5s ease-in-out 3;border-color:rgba(243,127,13,.4)}
@keyframes lx-console-pulse{0%,100%{box-shadow:none;transform:scale(1)}50%{box-shadow:0 0 16px rgba(243,127,13,.3);transform:scale(1.06)}}
.wn-row .lx-hint{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",sans-serif;font-size:11px;color:rgba(255,255,255,.6);white-space:nowrap;opacity:0;transition:opacity .5s ease;pointer-events:none}
.wn-row.lx-attention .lx-hint{opacity:1;animation:lx-hint-fade 4.5s ease forwards}
@keyframes lx-hint-fade{0%{opacity:0;transform:translateX(-50%) translateY(4px)}15%{opacity:1;transform:translateX(-50%) translateY(0)}85%{opacity:1}100%{opacity:0}}
@keyframes lx-blob-shake{0%,100%{transform:translateX(0) rotate(0)}15%{transform:translateX(-8px) rotate(-3deg)}30%{transform:translateX(6px) rotate(2deg)}45%{transform:translateX(-5px) rotate(-2deg)}60%{transform:translateX(4px) rotate(1deg)}80%{transform:translateX(-2px) rotate(0)}}


