/* Darres Labs — public catalog */
:root {
  --lab-ink: #07131f;
  --lab-ink-2: #0c1c2e;
  --lab-fog: #e8f1f7;
  --lab-paper: #f4f8fb;
  --lab-cyan: #1ec8e0;
  --lab-teal: #0d9488;
  --lab-amber: #f0a202;
  --lab-mint: #5eead4;
  --lab-text: #0b1b2b;
  --lab-muted: #5b7388;
  --lab-line: rgba(14, 42, 67, 0.12);
  --lab-glass: rgba(255, 255, 255, 0.72);
  --lab-shadow: 0 18px 50px rgba(7, 19, 31, 0.14);
  --lab-radius: 1.25rem;
  --lab-font: "Sora", "Cairo", system-ui, sans-serif;
  --lab-display: "Sora", "Cairo", system-ui, sans-serif;
}

[dir="rtl"] {
  --lab-font: "Cairo", "Sora", system-ui, sans-serif;
  --lab-display: "Cairo", "Sora", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body.labs-page {
  margin: 0;
  min-height: 100%;
  font-family: var(--lab-font);
  color: var(--lab-text);
  background: var(--lab-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.labs-shell {
  position: relative;
  overflow-x: clip;
}

/* --- Nav --- */
.labs-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  padding-top: max(0.85rem, env(safe-area-inset-top));
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(244, 248, 251, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.labs-nav.is-scrolled {
  border-bottom-color: var(--lab-line);
  background: rgba(244, 248, 251, 0.92);
}
.labs-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}
.labs-brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
  padding: 0;
  box-shadow: 0 8px 20px rgba(13, 27, 42, 0.28);
}
.labs-brand-mark svg,
.labs-brand-mark .labs-brand-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.labs-nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.labs-nav-links a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--lab-muted);
  transition: color .2s, background .2s;
}
.labs-nav-links a:hover,
.labs-nav-links a.is-active {
  color: var(--lab-text);
  background: rgba(30, 200, 224, 0.12);
}
.labs-lang {
  border: 1px solid var(--lab-line);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--lab-text);
}

/* --- Hero --- */
.labs-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 6vw, 4rem);
  background:
    radial-gradient(1200px 600px at 80% 10%, rgba(30, 200, 224, 0.28), transparent 55%),
    radial-gradient(900px 500px at 10% 80%, rgba(240, 162, 2, 0.18), transparent 50%),
    linear-gradient(165deg, #06111c 0%, #0a2236 48%, #0d3b45 100%);
  color: #eef8fb;
  overflow: hidden;
}
.labs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
  animation: labs-grid-drift 28s linear infinite;
}
@keyframes labs-grid-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-48px, -48px, 0); }
}

.labs-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.labs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.14);
  border: 1px solid rgba(94, 234, 212, 0.35);
  color: var(--lab-mint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  animation: labs-fade-up .7s ease both;
}
.labs-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--lab-display);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
  animation: labs-fade-up .75s .08s ease both;
}
.labs-hero p {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.55;
  color: rgba(232, 246, 250, 0.82);
  animation: labs-fade-up .75s .16s ease both;
}
.labs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: labs-fade-up .75s .24s ease both;
}
.labs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
}
.labs-btn:active { transform: scale(0.98); }
.labs-btn-primary {
  background: linear-gradient(135deg, #5eead4, #1ec8e0);
  color: #042028;
  box-shadow: 0 12px 30px rgba(30, 200, 224, 0.35);
}
.labs-btn-primary:hover { box-shadow: 0 16px 36px rgba(30, 200, 224, 0.45); }
.labs-btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.labs-btn.is-active,
.exp-actions .labs-btn.is-active {
  box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.55), 0 10px 24px rgba(30, 200, 224, 0.28);
}

/* Hero illustration stage */
.labs-hero-art {
  position: absolute;
  inset-inline-end: -4%;
  top: 8%;
  width: min(52vw, 560px);
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
  animation: labs-float 7s ease-in-out infinite;
}
@keyframes labs-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.labs-hero-art svg { width: 100%; height: 100%; display: block; }
.orbit-ring {
  fill: none;
  stroke: rgba(94, 234, 212, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 6 10;
  animation: labs-spin 24s linear infinite;
  transform-origin: 200px 200px;
}
.orbit-ring.r2 { animation-duration: 36s; animation-direction: reverse; stroke: rgba(240, 162, 2, 0.35); }
.electron {
  animation: labs-orbit 8s linear infinite;
  transform-origin: 200px 200px;
}
.electron.e2 { animation-duration: 11s; animation-direction: reverse; }
@keyframes labs-spin { to { transform: rotate(360deg); } }
@keyframes labs-orbit { to { transform: rotate(360deg); } }
.flask-liquid {
  animation: labs-bubble 3.2s ease-in-out infinite;
  transform-origin: center bottom;
}
@keyframes labs-bubble {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.06); }
}
.bubble {
  animation: labs-rise 3s ease-in infinite;
  opacity: 0.7;
}
.bubble.b2 { animation-delay: 1s; }
.bubble.b3 { animation-delay: 1.8s; }
@keyframes labs-rise {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 0.8; }
  100% { transform: translateY(-46px); opacity: 0; }
}

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

@media (max-width: 900px) {
  .labs-hero {
    min-height: auto;
    padding-top: 2rem;
    align-items: start;
  }
  .labs-hero-art {
    position: relative;
    inset: auto;
    width: min(78vw, 340px);
    margin: 0 auto 1.25rem;
    order: -1;
  }
  .labs-hero {
    display: flex;
    flex-direction: column;
  }
}

/* --- Teacher access gate (between hero and catalog) --- */
.labs-gate-section {
  position: relative;
  z-index: 4;
  padding: 1.35rem clamp(1rem, 4vw, 2.5rem) 0;
  background: var(--lab-paper);
}

/* --- Catalog --- */
.labs-main {
  position: relative;
  z-index: 3;
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem) 4rem;
}
.labs-panel {
  background: var(--lab-glass);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: calc(var(--lab-radius) + 0.35rem);
  box-shadow: var(--lab-shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.labs-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.labs-panel-head h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
}
.labs-panel-head p {
  margin: 0;
  color: var(--lab-muted);
  font-size: 0.95rem;
}
.labs-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lab-teal);
  background: rgba(13, 148, 136, 0.1);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.labs-filters {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.85rem;
  margin-bottom: 0.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.labs-filters::-webkit-scrollbar { display: none; }
.labs-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--lab-line);
  background: #fff;
  color: var(--lab-muted);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform .15s, border-color .15s, color .15s, background .15s, box-shadow .15s;
}
.labs-chip:hover {
  color: var(--lab-text);
  border-color: rgba(30, 200, 224, 0.45);
}
.labs-chip.is-active {
  color: #042028;
  background: linear-gradient(135deg, #99f6e4, #7dd3fc);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(14, 148, 136, 0.2);
}
.labs-chip .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--chip-accent, var(--lab-cyan));
}
.labs-chip-count {
  font-size: 0.72rem;
  opacity: 0.7;
}

.labs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 980px) {
  .labs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .labs-grid { grid-template-columns: 1fr; }
}

.lab-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: var(--lab-radius);
  border: 1px solid var(--lab-line);
  background: #fff;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  animation: labs-fade-up .6s ease both;
}
.lab-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(7, 19, 31, 0.12);
  border-color: rgba(30, 200, 224, 0.35);
}
.lab-card.is-soon { cursor: default; }
.lab-card-media {
  position: relative;
  height: 150px;
  background:
    radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--card-accent, #1ec8e0) 35%, transparent), transparent 55%),
    linear-gradient(160deg, #0b1f2e, #123447);
  overflow: hidden;
}
.lab-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lab-card-media svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.95;
}

/* Animated experiment covers */
.lab-cover {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: #0b1f2e;
}
.lab-cover-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.lab-cover-label {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.5rem;
  z-index: 2;
  font-size: clamp(0.68rem, 2.8vw, 0.78rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: #f1f5f9;
  background: linear-gradient(135deg, rgba(7, 19, 31, 0.72), rgba(15, 23, 42, 0.55));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 0.5rem;
  padding: 0.32rem 0.55rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.exp-hero-photo .lab-cover {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 160px;
}
.exp-hero-photo .lab-cover-label {
  font-size: 0.85rem;
  padding: 0.4rem 0.65rem;
}

@keyframes lc-swing {
  0%, 100% { transform: rotate(-18deg); }
  50% { transform: rotate(18deg); }
}
@keyframes lc-bounce-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(18px); }
}
@keyframes lc-slide-x {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(48px); }
}
@keyframes lc-fall {
  0% { transform: translateY(0); opacity: 1; }
  85% { transform: translateY(100px); opacity: 1; }
  100% { transform: translateY(100px); opacity: 0.4; }
}
@keyframes lc-fall-slow {
  0% { transform: translateY(0); }
  100% { transform: translateY(100px); }
}
@keyframes lc-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.18); opacity: 1; }
}
@keyframes lc-spin {
  to { transform: rotate(360deg); }
}
@keyframes lc-orbit {
  to { transform: rotate(360deg); }
}
@keyframes lc-spring {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.22); }
}
@keyframes lc-piston {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(22px); }
}
@keyframes lc-wave {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -40; }
}
@keyframes lc-current {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -20; }
}
@keyframes lc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes lc-jaw {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(18px); }
}
@keyframes lc-magnet {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(55px); }
}
@keyframes lc-gas {
  0%, 100% { transform: scaleY(1); opacity: 0.35; }
  50% { transform: scaleY(1.25); opacity: 0.55; }
}
@keyframes lc-ramp-ball {
  0% { transform: translate(0, 0); }
  100% { transform: translate(130px, -70px); }
}
@keyframes lc-glow-breathe {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(56,189,248,0)); opacity: 1; }
  50% { filter: drop-shadow(0 0 10px rgba(56,189,248,0.55)); opacity: 1; }
}
@keyframes lc-swap-fade {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0.35; }
  100% { opacity: 1; }
}

.lc-pendulum { animation: lc-swing 2.4s ease-in-out infinite; transform-origin: 160px 28px; }
.lc-spring { animation: lc-spring 1.6s ease-in-out infinite; transform-origin: 160px 40px; }
.lc-mass { animation: lc-bounce-y 1.6s ease-in-out infinite; }
.lc-cart-x { animation: lc-slide-x 2.8s ease-in-out infinite; }
.lc-cart-ramp { animation: lc-slide-x 2.2s ease-in-out infinite; }
.lc-fall { animation: lc-fall 2s ease-in infinite; }
.lc-fall-slow { animation: lc-fall-slow 3.5s linear infinite; }
.lc-bob-y { animation: lc-bounce-y 2s ease-in-out infinite; }
.lc-float { animation: lc-float 2.4s ease-in-out infinite; }
.lc-pulse { animation: lc-pulse 1.8s ease-in-out infinite; }
.lc-pulse-d { animation: lc-pulse 2.4s ease-in-out infinite 0.4s; }
.lc-spin { animation: lc-spin 3s linear infinite; transform-origin: 160px 42px; }
.lc-orbit { animation: lc-orbit 6s linear infinite; transform-origin: 160px 90px; }
.lc-orbit-r { animation: lc-orbit 9s linear infinite reverse; transform-origin: 160px 90px; }
.lc-piston-y { animation: lc-piston 2s ease-in-out infinite; }
.lc-piston-s { animation: lc-bounce-y 1.8s ease-in-out infinite; }
.lc-piston-l { animation: lc-bounce-y 1.8s ease-in-out infinite reverse; }
.lc-gas, .lc-gas-expand { animation: lc-gas 2.2s ease-in-out infinite; transform-origin: center bottom; }
.lc-liquid { animation: lc-float 3s ease-in-out infinite; }
.lc-jaw { animation: lc-jaw 2s ease-in-out infinite; }
.lc-jaw-b { animation: lc-jaw 2s ease-in-out infinite reverse; }
.lc-spindle { animation: lc-jaw 2.4s ease-in-out infinite; }
.lc-magnet { animation: lc-magnet 2.6s ease-in-out infinite; }
.lc-ball-ramp { animation: lc-ramp-ball 2.8s ease-in-out infinite alternate; }
.lc-wave, .lc-wave-r, .lc-current, .lc-dash, .lc-rays, .lc-ray-bend, .lc-thermo {
  stroke-dasharray: 8 6;
  animation: lc-current 1.2s linear infinite;
}
.lc-wave-r { animation-direction: reverse; animation-duration: 1.6s; }
.lc-energy { animation: lc-pulse 2s ease-in-out infinite; }
.lc-circuit-glow { animation: lc-glow-breathe 2.4s ease-in-out infinite; }
.lc-swap-a { animation: lc-swap-fade 4s ease-in-out infinite; }
.lc-swap-b { animation: lc-swap-fade 4s ease-in-out infinite reverse; }

@keyframes lc-drop {
  0% { transform: translateY(0); opacity: 0.2; }
  30% { opacity: 1; }
  100% { transform: translateY(28px); opacity: 0; }
}
@keyframes lc-bubble {
  0% { transform: translateY(0); opacity: 0.85; }
  100% { transform: translateY(-36px); opacity: 0; }
}
@keyframes lc-flame {
  0%, 100% { transform: scaleY(1) scaleX(1); }
  50% { transform: scaleY(1.12) scaleX(0.92); }
}
@keyframes lc-crystal {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes lc-deposit {
  0%, 100% { transform: scaleY(0.7); transform-origin: bottom center; }
  50% { transform: scaleY(1); transform-origin: bottom center; }
}
.lc-drop { animation: lc-drop 1.6s ease-in infinite; }
.lc-bubble { animation: lc-bubble 2s ease-out infinite; }
.lc-bubble-d { animation: lc-bubble 2.6s ease-out infinite 0.5s; }
.lc-flame, .lc-flame-core { animation: lc-flame 0.9s ease-in-out infinite; transform-origin: 160px 90px; }
.lc-crystal { animation: lc-crystal 2.4s ease-in-out infinite; }
.lc-crystal-d { animation: lc-crystal 2.4s ease-in-out infinite 0.4s; }
.lc-deposit { animation: lc-deposit 2.8s ease-in-out infinite; }
.lc-gas-rise { animation: lc-current 1.4s linear infinite; }
.lc-precip { animation: lc-float 2.8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .lab-cover * {
    animation: none !important;
  }
}
.lab-unit {
  margin: 0 !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  color: var(--lab-teal) !important;
  letter-spacing: 0.01em;
}
.lab-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1.05rem 1.15rem;
  flex: 1;
}
.lab-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.lab-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(13, 148, 136, 0.1);
  color: var(--lab-teal);
}
.lab-pill.soon {
  background: rgba(240, 162, 2, 0.14);
  color: #b45309;
}
.lab-pill.muted {
  background: var(--lab-fog);
  color: var(--lab-muted);
}
.lab-card h3 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.lab-card p {
  margin: 0;
  color: var(--lab-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}
.lab-card-cta {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--lab-teal);
}
.lab-card.is-soon .lab-card-cta { color: var(--lab-muted); }

.labs-gate {
  margin: 0;
  padding: 1.1rem 1.25rem;
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem 1rem;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.14), rgba(30, 200, 224, 0.1)),
    #fff;
  border: 1px solid rgba(13, 148, 136, 0.28);
  box-shadow: 0 12px 32px rgba(7, 19, 31, 0.08);
  font-family: var(--lab-font);
}
.labs-gate--alert {
  background:
    linear-gradient(135deg, rgba(240, 162, 2, 0.14), rgba(13, 148, 136, 0.08)),
    #fff;
  border-color: rgba(240, 162, 2, 0.35);
}
.labs-gate__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(13, 148, 136, 0.14);
  color: var(--lab-teal);
  flex-shrink: 0;
}
.labs-gate--alert .labs-gate__icon {
  background: rgba(240, 162, 2, 0.18);
  color: #b45309;
}
.labs-gate__copy strong {
  display: block;
  font-family: var(--lab-display);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lab-text);
  margin-bottom: 0.2rem;
}
.labs-gate__copy p {
  margin: 0;
  color: var(--lab-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 62ch;
}
.labs-gate__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lab-teal), #0f766e);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.88rem;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.labs-gate__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.34);
}
@media (max-width: 720px) {
  .labs-gate-section {
    padding-top: 1.1rem;
  }
  .labs-gate {
    grid-template-columns: auto 1fr;
    padding: 1rem 1.05rem;
  }
  .labs-gate__cta {
    grid-column: 1 / -1;
    width: 100%;
  }
  .labs-main {
    padding-top: 1rem;
  }
}

.labs-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--lab-muted);
}

.labs-footer {
  padding: 2rem clamp(1rem, 4vw, 2.5rem) calc(2rem + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--lab-muted);
  font-size: 0.9rem;
}

/* Coming soon detail */
.labs-soon-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(30, 200, 224, 0.2), transparent 60%),
    var(--lab-paper);
}
.labs-soon-card {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid var(--lab-line);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--lab-shadow);
}
.labs-soon-card h1 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}
.labs-soon-card p { color: var(--lab-muted); margin: 0 0 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* —— Interactive experiment page —— */
.labs-exp-page { background: var(--lab-paper); }
.labs-btn-ghost.dark {
  background: #fff;
  color: var(--lab-text);
  border: 1px solid var(--lab-line);
}
.exp-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem) 0.5rem;
}
.exp-hero-copy h1 {
  margin: 0.65rem 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.exp-hero-copy p {
  margin: 0;
  color: var(--lab-muted);
  max-width: 40rem;
  line-height: 1.55;
}
.exp-hero-photo {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--lab-line);
  box-shadow: var(--lab-shadow);
  aspect-ratio: 16 / 9;
  background: #0b1f2e;
}
.exp-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.exp-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem) 2rem;
  align-items: start;
}
.exp-stage-card {
  background: #0b1f2e;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--lab-shadow);
}
#pendulumCanvas,
#labCanvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}
.exp-controls-mount .exp-label:first-child { margin-top: 0; }
.exp-result-box {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(30,200,224,0.12), rgba(13,148,136,0.12));
  border: 1px solid rgba(13,148,136,0.18);
}
.exp-result-box span {
  display: block;
  font-size: 0.78rem;
  color: var(--lab-muted);
}
.exp-result-box strong {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: #0f766e;
  font-variant-numeric: tabular-nums;
}
.exp-readouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(18,52,71,0.2), rgba(7,19,31,0.95));
}
.exp-readouts div {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 0.55rem 0.7rem;
  color: #e2e8f0;
}
.exp-readouts span {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}
.exp-readouts strong {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.exp-side { display: grid; gap: 0.85rem; }
.exp-panel {
  background: #fff;
  border: 1px solid var(--lab-line);
  border-radius: 1.1rem;
  padding: 1rem 1.05rem;
  box-shadow: 0 8px 24px rgba(7,19,31,0.05);
}
.exp-panel h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.exp-panel p {
  margin: 0;
  color: var(--lab-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.exp-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.exp-panel-head h2 { margin: 0; }
.exp-formula {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(13,148,136,0.08);
  color: #0f766e;
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
}
.exp-label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--lab-text);
}
.exp-panel input[type="range"] {
  width: 100%;
  accent-color: #0d9488;
}
.exp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.exp-actions .labs-btn {
  min-height: 2.55rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
}
.exp-hint {
  margin-top: 0.75rem !important;
  font-size: 0.8rem !important;
  color: var(--lab-muted);
}
.exp-table-wrap { overflow-x: auto; }
.exp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.exp-table th,
.exp-table td {
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid var(--lab-line);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.exp-table th {
  color: var(--lab-muted);
  font-weight: 700;
  font-size: 0.75rem;
}
.exp-table .empty-row td {
  color: var(--lab-muted);
  padding: 1rem 0.5rem;
}
.exp-g-box {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(30,200,224,0.12), rgba(13,148,136,0.12));
  border: 1px solid rgba(13,148,136,0.18);
}
.exp-g-box span {
  display: block;
  font-size: 0.78rem;
  color: var(--lab-muted);
}
.exp-g-box strong {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: #0f766e;
}
.exp-g-box small {
  display: block;
  margin-top: 0.25rem;
  color: var(--lab-muted);
}

.exp-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.55rem 0 0.25rem;
}
.exp-choice {
  border: 1px solid var(--lab-line);
  background: #fff;
  color: var(--lab-text);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 2.1rem;
}
.exp-choice:hover { border-color: rgba(13,148,136,0.45); }
.exp-choice.is-on {
  background: rgba(13,148,136,0.12);
  border-color: #0d9488;
  color: #0f766e;
}
.labs-chem .exp-stage-card {
  box-shadow: 0 18px 40px rgba(13,148,136,0.12);
}
.labs-chem .exp-readouts {
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
}
.labs-chem .exp-choice {
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.labs-chem #labCanvas {
  background: #0b1f2e;
}

@media (max-width: 960px) {
  .exp-hero,
  .exp-layout {
    grid-template-columns: 1fr;
  }
  .exp-hero-photo { order: -1; }
  .exp-readouts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .exp-actions .labs-btn { flex: 1 1 calc(50% - 0.5rem); }
}

/* —— English / New Vocab —— */
.labs-english .exp-stage-card {
  min-height: 28rem;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(225, 29, 72, 0.22), transparent 55%),
    linear-gradient(165deg, #0b1f2e 0%, #123447 55%, #0a1926 100%);
  box-shadow: 0 18px 40px rgba(225, 29, 72, 0.1);
}
.exp-layout-vocab {
  grid-template-columns: 1.5fr 0.85fr;
}
.vocab-shell {
  width: 100%;
  min-height: 28rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(225, 29, 72, 0.22), transparent 55%),
    linear-gradient(165deg, #0b1f2e 0%, #123447 55%, #0a1926 100%);
  color: #e2e8f0;
}
.vocab-shell:fullscreen,
.vocab-shell:-webkit-full-screen,
.vocab-shell.is-fullscreen {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  box-sizing: border-box;
}
.vocab-shell:fullscreen .vocab-root,
.vocab-shell:-webkit-full-screen .vocab-root,
.vocab-shell.is-fullscreen .vocab-root {
  flex: 1;
  min-height: 100%;
  padding: clamp(1rem, 3vh, 2rem) clamp(1rem, 4vw, 2.5rem);
}
.vocab-shell:fullscreen .vocab-word,
.vocab-shell:-webkit-full-screen .vocab-word,
.vocab-shell.is-fullscreen .vocab-word {
  font-size: clamp(3rem, 10vw, 6.5rem);
}
.vocab-shell:fullscreen .vocab-ar,
.vocab-shell:-webkit-full-screen .vocab-ar,
.vocab-shell.is-fullscreen .vocab-ar {
  font-size: clamp(2rem, 6vw, 3.75rem);
}
.vocab-shell:fullscreen .vocab-choice-btn,
.vocab-shell:-webkit-full-screen .vocab-choice-btn,
.vocab-shell.is-fullscreen .vocab-choice-btn {
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  min-height: 4.25rem;
  padding: 1.15rem 1.35rem;
}
.vocab-shell:fullscreen .vocab-ring-wrap,
.vocab-shell:-webkit-full-screen .vocab-ring-wrap,
.vocab-shell.is-fullscreen .vocab-ring-wrap {
  width: 7.5rem;
  height: 7.5rem;
}
.vocab-shell:fullscreen .vocab-ring-label,
.vocab-shell:-webkit-full-screen .vocab-ring-label,
.vocab-shell.is-fullscreen .vocab-ring-label {
  font-size: 1.85rem;
}
.vocab-shell:fullscreen .vocab-choices,
.vocab-shell:-webkit-full-screen .vocab-choices,
.vocab-shell.is-fullscreen .vocab-choices {
  width: min(100%, 48rem);
  gap: 1rem;
}
.vocab-shell:fullscreen .vocab-btn,
.vocab-shell:-webkit-full-screen .vocab-btn,
.vocab-shell.is-fullscreen .vocab-btn {
  min-height: 3.25rem;
  font-size: 1.1rem;
  padding: 0.9rem 1.35rem;
}
.vocab-root {
  flex: 1;
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  padding: clamp(0.85rem, 2.5vw, 1.5rem);
  color: #e2e8f0;
}
.vocab-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
}
.vocab-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 0.85rem;
}
.vocab-hud-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.vocab-hud-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.vocab-stat-hud {
  padding: 0.45rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: 0.88rem;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}
.vocab-stat-hud.muted {
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-weight: 600;
}
.vocab-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.vocab-dock {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.vocab-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: flex-end;
}
.vocab-setting-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: min(100%, 14rem);
}
.vocab-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #cbd5e1;
}
.vocab-label strong { color: #fda4af; }
.vocab-range {
  width: min(100%, 18rem);
  accent-color: #fb7185;
}
.vocab-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.vocab-chip {
  min-width: 3rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.vocab-chip.is-on,
.vocab-btn.is-on {
  background: rgba(251, 113, 133, 0.22);
  border-color: rgba(251, 113, 133, 0.65);
  color: #fff;
}
.vocab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.vocab-btn {
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  font-size: 1rem;
  font-weight: 700;
  touch-action: manipulation;
}
.vocab-btn-fs {
  font-weight: 800;
}
.vocab-loading {
  flex: 1;
  display: grid;
  place-content: center;
  gap: 1rem;
  text-align: center;
  color: #94a3b8;
}
.vocab-spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(251, 113, 133, 0.25);
  border-top-color: #fb7185;
  animation: labs-spin 0.9s linear infinite;
}
.vocab-error { color: #fda4af; max-width: 28rem; margin: 0 auto; }
.vocab-modes {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.vocab-modes-title {
  margin: 0;
  font-family: Sora, Cairo, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
  color: #fff;
}
.vocab-bank-count {
  margin: 0;
  color: #fda4af;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.vocab-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.5rem;
}
.vocab-mode-card {
  text-align: start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.1rem;
  padding: 1.15rem 1.2rem;
  min-height: 6.5rem;
  color: #e2e8f0;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  touch-action: manipulation;
}
.vocab-mode-card:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 113, 133, 0.55);
  background: rgba(251, 113, 133, 0.1);
}
.vocab-mode-card strong {
  display: block;
  font-family: Sora, Cairo, sans-serif;
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
  color: #fff;
}
.vocab-mode-card span {
  display: block;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #94a3b8;
}
.vocab-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  text-align: center;
}
.vocab-stage-setup .vocab-word.ghost {
  opacity: 0.25;
  letter-spacing: 0.12em;
}
.vocab-topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.vocab-prompt {
  margin: 0;
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 600;
}
.vocab-word {
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  word-break: break-word;
  max-width: 100%;
}
.vocab-ar {
  min-height: 3.2rem;
  font-family: Cairo, sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  color: #fda4af;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.vocab-ar.is-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.vocab-ring-wrap {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
}
.vocab-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.vocab-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}
.vocab-ring-fg {
  fill: none;
  stroke: #fb7185;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.08s linear;
}
.vocab-ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.vocab-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 36rem);
  margin-top: 0.35rem;
}
.vocab-choice-btn {
  font-family: Cairo, sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.35;
  padding: 1rem 1.1rem;
  min-height: 3.6rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.vocab-choice-btn:hover:not(:disabled) {
  border-color: rgba(251, 113, 133, 0.55);
  background: rgba(251, 113, 133, 0.12);
  transform: translateY(-1px);
}
.vocab-choice-btn:disabled { cursor: default; }
.vocab-choice-btn.is-correct {
  background: rgba(34, 197, 94, 0.22);
  border-color: #22c55e;
  color: #bbf7d0;
}
.vocab-choice-btn.is-wrong {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #fecaca;
}
.vocab-feedback {
  margin: 0.25rem 0 0;
  font-weight: 800;
  font-size: 1.1rem;
}
.vocab-feedback.ok { color: #86efac; }
.vocab-feedback.bad { color: #fda4af; }
.vocab-number-input {
  margin-top: 0.15rem;
  width: 100%;
  max-width: 8rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  color: #f8fafc;
  padding: 0.55rem 0.7rem;
  font: inherit;
  min-height: 2.75rem;
}
.vocab-stats {
  display: grid;
  gap: 0.55rem;
}
.vocab-stat {
  padding: 0.65rem 0.8rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.08), rgba(13, 148, 136, 0.08));
  border: 1px solid rgba(225, 29, 72, 0.12);
  font-weight: 700;
  color: #0f172a;
}
.vocab-stat.muted {
  background: #f8fafc;
  border-color: var(--lab-line);
  color: var(--lab-muted);
  font-weight: 600;
}
.lc-vocab-en {
  animation: lc-swap-fade 3.2s ease-in-out infinite;
}
.lc-vocab-ar {
  animation: lc-swap-fade 3.2s ease-in-out infinite 0.4s;
}

@media (max-width: 960px) {
  .exp-layout-vocab { grid-template-columns: 1fr; }
  .vocab-mode-grid { grid-template-columns: 1fr; }
  .labs-english .exp-stage-card,
  .vocab-shell,
  .vocab-root { min-height: 22rem; }
}
@media (max-width: 640px) {
  .vocab-choices { grid-template-columns: 1fr; }
  .vocab-hud-tools .vocab-btn { flex: 1 1 auto; }
  .vocab-actions .vocab-btn { flex: 1 1 calc(50% - 0.55rem); }
}
@media (prefers-reduced-motion: reduce) {
  .vocab-ar { transition: none; }
  .vocab-spinner { animation: none; }
  .lc-vocab-en, .lc-vocab-ar { animation: none; opacity: 1; }
}
