@import url("lernbro-schriften.css");
/* LB_THEME professional design system */
/* =============================================================================
   LernBro Design System — "Dark Neon, Professional"
   -----------------------------------------------------------------------------
   A production-ready theme for a Swiss ADHS learning platform (grades 1–9).
   Warm, trustworthy, kid-friendly — with restraint, hierarchy and breathing room.

   PRINCIPLES
   1. Elevation over glow    — depth comes from layered near-black surfaces,
                               not from neon glow on pure black.
   2. Pixel font is an accent — 'Press Start 2P' appears ONLY in the logo and
                               the occasional big level/number. Everything else
                               uses Plus Jakarta Sans (a warm geometric sans).
   3. Purposeful colour       — neon is a semantic/accent tool, not a coating.
   4. One spacing scale        — everything sits on a 4px baseline grid.
   5. Clear hierarchy          — a single type scale drives every heading & label.

   Usage: <link rel="stylesheet" href="lernbro-theme.css">
          Google Fonts are @imported below; no build step required.
============================================================================= */


/* =============================================================================
   1. DESIGN TOKENS
============================================================================= */
:root {
  /* ---- Brand palette (raw hues — keep for reference / accents) ------------ */
  --neon-cyan:   #00F5FF;
  --neon-purple: #6C3CE1;
  --neon-yellow: #FFD93D;
  --neon-green:  #39FF14;
  --neon-orange: #FF6B35;
  --neon-pink:   #FF006E;

  /* ---- Surfaces (elevation ladder) --------------------------------------- */
  /* Depth is expressed by stepping up in lightness, not by adding glow.       */
  --bg:         #08080C;   /* app background — deepest                         */
  --surface-1:  #101019;   /* base cards / panels                             */
  --surface-2:  #17172A;   /* raised cards, inputs, hover fills               */
  --surface-3:  #20203A;   /* popovers, active/selected, tooltips             */
  --surface-inset: #0B0B12;/* wells, progress tracks, code                    */

  /* ---- Borders / hairlines ----------------------------------------------- */
  --border:        rgba(255,255,255,0.08);  /* default hairline               */
  --border-strong: rgba(255,255,255,0.14);  /* emphasized / hover             */
  --border-brand:  rgba(108,60,225,0.45);   /* brand-tinted divider           */

  /* ---- Text ---------------------------------------------------------------- */
  --text:       #F4F4FA;   /* primary copy & headings                         */
  --text-muted: #A9A9BE;   /* secondary copy, descriptions                    */
  --text-dim:   #6C6C82;   /* captions, meta, disabled labels                 */
  --text-on-accent: #08080C;/* text placed on bright accents (yellow/cyan)    */

  /* ---- Accents (professional application of the neon palette) ------------- */
  /* Softened so they read as intentional accents, not RGB gamer lighting.     */
  --brand:      #7C5CFF;   /* primary brand — a calmer, richer purple         */
  --brand-ink:  #B8A6FF;   /* brand text/icon on dark                         */
  --accent:     #35E0EC;   /* cyan accent — links, focus, highlights          */
  --accent-ink: #7BE9F2;   /* cyan text on dark                               */

  /* ---- Semantic ----------------------------------------------------------- */
  --success:     #2FD873;  --success-ink: #7BE8A8;  --success-bg: rgba(47,216,115,0.12);
  --warn:        #FFC53D;  --warn-ink:    #FFDD8A;  --warn-bg:    rgba(255,197,61,0.12);
  --danger:      #FF4D7D;  --danger-ink:  #FF9BB8;  --danger-bg:  rgba(255,77,125,0.12);
  --info:        #35E0EC;  --info-ink:    #7BE9F2;  --info-bg:    rgba(53,224,236,0.12);
  --xp:          #FFD93D;  --xp-ink:      #FFE785;  /* gamification highlight  */

  /* ---- Typography families ------------------------------------------------ */
  --font-sans:  'Plus Jakarta Sans', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-pixel: 'Press Start 2P', monospace;  /* ACCENT ONLY — logo & big nums */

  /* ---- Type scale (fluid where it helps; label · size / line · weight) ---- */
  /* display  — hero numbers / marquee                                         */
  --fs-display: clamp(2.5rem, 6vw, 4rem);   --lh-display: 1.04; --ls-display: -0.02em;
  --fs-h1:      clamp(2rem, 4.5vw, 3rem);   --lh-h1:      1.08; --ls-h1:      -0.02em;
  --fs-h2:      clamp(1.5rem, 3vw, 2.125rem);--lh-h2:     1.15; --ls-h2:      -0.015em;
  --fs-h3:      1.375rem;                    --lh-h3:      1.25; --ls-h3:      -0.01em;
  --fs-title:   1.0625rem;                   --lh-title:   1.35; --ls-title:    0;
  --fs-body:    1rem;                        --lh-body:    1.6;  --ls-body:     0;
  --fs-small:   0.875rem;                    --lh-small:   1.55; --ls-small:    0;
  --fs-caption: 0.75rem;                     --lh-caption: 1.45; --ls-caption:  0.01em;
  --fs-eyebrow: 0.6875rem;                   --lh-eyebrow: 1.2;  --ls-eyebrow:  0.14em;

  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700; --fw-heavy: 800;

  /* ---- Spacing scale (4px baseline) --------------------------------------- */
  --sp-1:  0.25rem;  /*  4px */
  --sp-2:  0.5rem;   /*  8px */
  --sp-3:  0.75rem;  /* 12px */
  --sp-4:  1rem;     /* 16px */
  --sp-5:  1.25rem;  /* 20px */
  --sp-6:  1.5rem;   /* 24px */
  --sp-7:  2rem;     /* 32px */
  --sp-8:  2.5rem;   /* 40px */
  --sp-9:  3rem;     /* 48px */
  --sp-10: 4rem;     /* 64px */
  --sp-11: 5rem;     /* 80px */
  --sp-12: 6rem;     /* 96px */

  /* ---- Radius scale ------------------------------------------------------- */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 999px;

  /* ---- Elevation / shadow (soft, neutral — carries depth) ----------------- */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.40);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.40);
  --shadow-lg:  0 12px 32px rgba(0,0,0,0.50), 0 2px 6px rgba(0,0,0,0.40);
  --shadow-xl:  0 24px 60px rgba(0,0,0,0.55), 0 4px 12px rgba(0,0,0,0.45);

  /* ---- Glow tokens (SUBTLE — reserved for focus & special accents) -------- */
  --glow-brand:  0 0 0 1px rgba(124,92,255,0.35), 0 8px 24px rgba(124,92,255,0.18);
  --glow-accent: 0 0 0 1px rgba(53,224,236,0.30), 0 8px 24px rgba(53,224,236,0.15);
  --glow-xp:     0 0 16px rgba(255,217,61,0.22);

  /* ---- Focus ring --------------------------------------------------------- */
  --ring:        0 0 0 3px rgba(53,224,236,0.45);
  --ring-offset: 0 0 0 2px var(--bg);

  /* ---- Motion ------------------------------------------------------------- */
  --ease:        cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:    120ms;
  --dur-base:    180ms;
  --dur-slow:    280ms;
  --t-fast:      var(--dur-fast) var(--ease);
  --t-base:      var(--dur-base) var(--ease);
  --t-slow:      var(--dur-slow) var(--ease-out);

  /* ---- Layout ------------------------------------------------------------- */
  --container:   1120px;
  --container-narrow: 720px;
}

/* =============================================================================
   2. BASE / RESET
============================================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
  /* A single, near-invisible radial lift keeps the page from feeling flat
     without resorting to loud neon washes. */
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(124,92,255,0.10), transparent 60%),
    radial-gradient(80% 60% at 100% 0%,   rgba(53,224,236,0.05), transparent 55%);
  background-attachment: fixed;
}

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

/* Custom scrollbar — quiet, on-brand */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border: 3px solid var(--bg);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: #2c2c4d; }

/* Selection */
::selection { background: rgba(124,92,255,0.40); color: #fff; }

/* Accessible focus — visible only for keyboard users */
:focus { outline: none; }
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============================================================================
   3. TYPOGRAPHY HELPERS
============================================================================= */
.lb-display, .lb-h1, .lb-h2, .lb-h3 {
  font-family: var(--font-sans);
  color: var(--text);
  text-wrap: balance;
}
.lb-display { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); font-weight: var(--fw-heavy); }
.lb-h1      { font-size: var(--fs-h1);      line-height: var(--lh-h1);      letter-spacing: var(--ls-h1);      font-weight: var(--fw-heavy); }
.lb-h2      { font-size: var(--fs-h2);      line-height: var(--lh-h2);      letter-spacing: var(--ls-h2);      font-weight: var(--fw-bold); }
.lb-h3      { font-size: var(--fs-h3);      line-height: var(--lh-h3);      letter-spacing: var(--ls-h3);      font-weight: var(--fw-bold); }
.lb-title   { font-size: var(--fs-title);   line-height: var(--lh-title);   font-weight: var(--fw-semibold); color: var(--text); }
.lb-body    { font-size: var(--fs-body);    line-height: var(--lh-body);    color: var(--text); }
.lb-small   { font-size: var(--fs-small);   line-height: var(--lh-small);   color: var(--text-muted); }
.lb-caption { font-size: var(--fs-caption); line-height: var(--lh-caption); letter-spacing: var(--ls-caption); color: var(--text-dim); }
.lb-muted   { color: var(--text-muted); }
.lb-dim     { color: var(--text-dim); }

/* Eyebrow — small uppercase label above a heading */
.lb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-eyebrow);
  line-height: var(--lh-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: var(--brand-ink);
}
.lb-eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.lb-eyebrow--accent { color: var(--accent-ink); }

/* Gradient text accent — use sparingly on a single word/number */
.lb-gradient {
  background: linear-gradient(120deg, var(--brand-ink), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =============================================================================
   4. LOGO  — the ONE prominent use of the pixel font
============================================================================= */
.lb-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-pixel);
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.lb-logo:hover { color: var(--text); }
.lb-logo__mark {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--brand), #4A2CB0);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), var(--shadow-sm);
  color: var(--neon-yellow);
  font-size: 14px;
}
.lb-logo__accent { color: var(--neon-yellow); }
.lb-logo--sm { font-size: 12px; }
.lb-logo--lg { font-size: 20px; }

/* Big "level" style number — the other sanctioned pixel-font moment */
.lb-level-num {
  font-family: var(--font-pixel);
  color: var(--xp);
  line-height: 1;
  text-shadow: var(--glow-xp);
}

/* =============================================================================
   5. LAYOUT PRIMITIVES
============================================================================= */
.lb-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-6); }
.lb-container--narrow { max-width: var(--container-narrow); }

.lb-section { padding-block: var(--sp-11); }
.lb-section--tight { padding-block: var(--sp-8); }

/* Section header block: eyebrow + heading + lead */
.lb-section-head { max-width: 640px; margin-bottom: var(--sp-8); }
.lb-section-head--center { margin-inline: auto; text-align: center; }
.lb-section-head .lb-eyebrow { margin-bottom: var(--sp-3); }
.lb-section-head > h2,
.lb-section-head > .lb-h2 { margin-bottom: var(--sp-3); }
.lb-lead { font-size: 1.0625rem; line-height: 1.6; color: var(--text-muted); }

/* Divider */
.lb-divider {
  border: 0;
  height: 1px;
  background: var(--border);
  margin-block: var(--sp-6);
}
.lb-divider--brand { background: linear-gradient(90deg, transparent, var(--border-brand), transparent); }

/* Simple auto-grid helpers */
.lb-grid { display: grid; gap: var(--sp-5); }
.lb-grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lb-grid--3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.lb-grid--4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* =============================================================================
   6. TOPBAR / NAV
============================================================================= */
.lb-topbar {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  height: 64px;
  padding-inline: var(--sp-6);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.lb-topbar__nav { display: flex; align-items: center; gap: var(--sp-2); }
.lb-navlink {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  transition: color var(--t-fast), background var(--t-fast);
}
.lb-navlink:hover { color: var(--text); background: var(--surface-2); }
.lb-navlink[aria-current="page"] { color: var(--text); background: var(--surface-2); }

/* =============================================================================
   7. BUTTONS
============================================================================= */
.lb-btn {
  --_bg: var(--surface-2);
  --_fg: var(--text);
  --_bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  padding: 0.6875rem var(--sp-5);           /* 11px / 20px */
  min-height: 44px;                          /* comfortable tap target */
  border: 1px solid var(--_bd);
  border-radius: var(--radius-md);
  background: var(--_bg);
  color: var(--_fg);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: transform var(--t-fast), background var(--t-fast),
              border-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
}
.lb-btn:hover  { transform: translateY(-1px); }
.lb-btn:active { transform: translateY(0); }
.lb-btn:focus-visible { box-shadow: var(--ring); }
.lb-btn:disabled, .lb-btn[aria-disabled="true"] {
  opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none;
}
.lb-btn .lb-btn__icon { font-size: 1.05em; line-height: 0; }

/* Primary — brand gradient, the single strongest CTA on a view */
.lb-btn--primary {
  --_fg: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand) 0%, #5B3BD4 100%);
  box-shadow: var(--shadow-sm);
}
.lb-btn--primary:hover  { box-shadow: var(--glow-brand); background: linear-gradient(135deg, #8B6BFF 0%, #6A47E4 100%); }
.lb-btn--primary:active { background: linear-gradient(135deg, var(--brand) 0%, #5B3BD4 100%); }

/* Accent — cyan, for a secondary emphasis / gamified action */
.lb-btn--accent {
  --_fg: var(--text-on-accent);
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent) 0%, #21C7D4 100%);
  box-shadow: var(--shadow-sm);
}
.lb-btn--accent:hover { box-shadow: var(--glow-accent); }

/* Secondary — quiet surface button with hairline */
.lb-btn--secondary {
  --_bg: var(--surface-2);
  --_fg: var(--text);
  --_bd: var(--border-strong);
}
.lb-btn--secondary:hover { --_bg: var(--surface-3); --_bd: rgba(255,255,255,0.22); }

/* Ghost — text-only until hovered */
.lb-btn--ghost {
  --_bg: transparent;
  --_fg: var(--text-muted);
  --_bd: transparent;
}
.lb-btn--ghost:hover { --_bg: var(--surface-2); --_fg: var(--text); transform: none; }

/* Danger */
.lb-btn--danger {
  --_fg: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--danger) 0%, #E23A67 100%);
}

/* Sizes */
.lb-btn--sm { min-height: 36px; padding: 0.5rem var(--sp-4); font-size: var(--fs-caption); border-radius: var(--radius-sm); }
.lb-btn--lg { min-height: 52px; padding: 0.875rem var(--sp-7); font-size: var(--fs-body); border-radius: var(--radius-md); }
.lb-btn--block { display: flex; width: 100%; }

/* =============================================================================
   8. CARDS
============================================================================= */
.lb-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-md);
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.lb-card--interactive { cursor: pointer; }
.lb-card--interactive:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
/* Raised variant for nested contrast */
.lb-card--raised { background: var(--surface-2); }
/* Glow — reserved for ONE hero/featured card per view */
.lb-card--glow {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-lg), var(--glow-brand);
}
/* Accent top-rail (subtle, replaces the old harsh 2px neon bars) */
.lb-card--rail { position: relative; overflow: hidden; }
.lb-card--rail::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0.9;
}
.lb-card__title { font-size: var(--fs-title); font-weight: var(--fw-bold); color: var(--text); margin-bottom: var(--sp-2); }
.lb-card__body  { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.6; }
.lb-card__icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: var(--sp-4);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 22px;
}

/* =============================================================================
   9. FORMS — inputs & fields
============================================================================= */
.lb-field { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.lb-label {
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lb-input, .lb-select, .lb-textarea {
  width: 100%;
  padding: 0.75rem var(--sp-4);
  min-height: 46px;
  background: var(--surface-inset);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: var(--fs-body);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.lb-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.lb-input::placeholder, .lb-textarea::placeholder { color: var(--text-dim); }
.lb-input:hover, .lb-select:hover, .lb-textarea:hover { border-color: rgba(255,255,255,0.22); }
.lb-input:focus, .lb-select:focus, .lb-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53,224,236,0.18);
  background: var(--surface-1);
}
.lb-input:disabled { opacity: 0.5; cursor: not-allowed; }
.lb-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A9A9BE' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: var(--sp-8);
}
.lb-select option { background: var(--surface-2); color: var(--text); }
.lb-help { font-size: var(--fs-caption); color: var(--text-dim); }
.lb-field--error .lb-input { border-color: var(--danger); }
.lb-field--error .lb-help { color: var(--danger-ink); }

/* =============================================================================
   10. BADGES / PILLS / CHIPS
============================================================================= */
.lb-badge {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  padding: 0.25rem var(--sp-2);
  border-radius: var(--radius-xs);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: 0.01em;
  line-height: 1.4;
  border: 1px solid transparent;
  white-space: nowrap;
}
.lb-badge--brand   { color: var(--brand-ink);   background: rgba(124,92,255,0.14); border-color: rgba(124,92,255,0.35); }
.lb-badge--accent  { color: var(--accent-ink);  background: var(--info-bg);        border-color: rgba(53,224,236,0.35); }
.lb-badge--success { color: var(--success-ink); background: var(--success-bg);     border-color: rgba(47,216,115,0.35); }
.lb-badge--warn    { color: var(--warn-ink);    background: var(--warn-bg);        border-color: rgba(255,197,61,0.35); }
.lb-badge--danger  { color: var(--danger-ink);  background: var(--danger-bg);      border-color: rgba(255,77,125,0.35); }
.lb-badge--xp      { color: var(--xp-ink);      background: rgba(255,217,61,0.12);  border-color: rgba(255,217,61,0.35); }
.lb-badge--neutral { color: var(--text-muted);  background: var(--surface-2);      border-color: var(--border); }

/* Pill — rounded, slightly larger status token */
.lb-pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.375rem var(--sp-3);
  border-radius: var(--radius-pill);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
}
.lb-pill--brand   { color: var(--brand-ink);   background: rgba(124,92,255,0.12); border-color: rgba(124,92,255,0.30); }
.lb-pill--success { color: var(--success-ink); background: var(--success-bg);     border-color: rgba(47,216,115,0.30); }
.lb-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* Chip — interactive filter/selector token */
.lb-chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.5rem var(--sp-4);
  min-height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-1);
  color: var(--text-muted);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: all var(--t-fast);
}
.lb-chip:hover { color: var(--text); border-color: rgba(255,255,255,0.25); background: var(--surface-2); }
.lb-chip[aria-pressed="true"], .lb-chip--active {
  color: #fff;
  background: rgba(124,92,255,0.18);
  border-color: var(--brand);
}

/* =============================================================================
   11. PROGRESS  (XP bars, mastery)
============================================================================= */
.lb-progress {
  --_val: 0%;
  height: 10px;
  width: 100%;
  border-radius: var(--radius-pill);
  background: var(--surface-inset);
  border: 1px solid var(--border);
  overflow: hidden;
}
.lb-progress__fill {
  display: block; height: 100%; width: var(--_val);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width var(--t-slow);
}
.lb-progress--xp .lb-progress__fill { background: linear-gradient(90deg, var(--neon-yellow), var(--neon-orange)); }
.lb-progress--success .lb-progress__fill { background: linear-gradient(90deg, var(--success), #17B85C); }
.lb-progress--sm { height: 6px; }
.lb-progress--lg { height: 14px; }

/* =============================================================================
   12. STAT
============================================================================= */
.lb-stat {
  display: flex; flex-direction: column; gap: var(--sp-1);
  padding: var(--sp-5);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.lb-stat__value {
  font-size: 1.75rem;
  font-weight: var(--fw-heavy);
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.1;
}
.lb-stat__value--accent { color: var(--accent-ink); }
.lb-stat__value--xp     { color: var(--xp); }
.lb-stat__label {
  font-size: var(--fs-caption);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: var(--fw-semibold);
}

/* =============================================================================
   13. UTILITIES  (small, purposeful set)
============================================================================= */
.lb-stack   { display: flex; flex-direction: column; gap: var(--sp-4); }
.lb-row     { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.lb-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.lb-center  { text-align: center; }
.lb-mt-2 { margin-top: var(--sp-2); }  .lb-mt-4 { margin-top: var(--sp-4); }  .lb-mt-6 { margin-top: var(--sp-6); }
.lb-mb-2 { margin-bottom: var(--sp-2); } .lb-mb-4 { margin-bottom: var(--sp-4); } .lb-mb-6 { margin-bottom: var(--sp-6); }
.lb-hide-mobile { }

@media (max-width: 640px) {
  :root { --sp-11: 3.5rem; --sp-12: 4rem; }
  .lb-container { padding-inline: var(--sp-4); }
  .lb-topbar { height: 58px; padding-inline: var(--sp-4); }
  .lb-hide-mobile { display: none !important; }
  .lb-btn--block-mobile { display: flex; width: 100%; }
}
