
    :root {
      --primary: #9a3412;
      --primary-dark: #7c2d12;
      --accent: #65a30d;
      --bg: #fffbeb;
      --card: #ffffff;
      --text: #1c1917;
      --muted: #78716c;
      --border: #f5e6c8;
      --success: #16a34a;
      --error: #dc2626;
      --tooltip-bg: #1c1917;
      --highlight: #fde68a;
      --radius: 14px;
      --shadow: 0 6px 24px rgba(120, 53, 15, 0.08);
    }

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

    body.story-page {
      font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.75;
      font-size: 17.5px;
      padding: 0 0 2.6rem;
    }
    body.story-page .container { padding: 0.4rem 0.9rem 0; }

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

    .level-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: #ffedd5;
      color: #9a3412;
      font-size: 0.78rem;
      font-weight: 600;
      padding: 0.28rem 0.7rem;
      border-radius: 999px;
      margin-bottom: 0.7rem;
    }

    h1 {
      font-size: clamp(1.55rem, 4.2vw, 2.05rem);
      color: var(--primary-dark);
      font-weight: 700;
      line-height: 1.25;
      margin-bottom: 0.35rem;
    }

    .story-meta {
      color: var(--muted);
      font-size: 0.9rem;
      margin-bottom: 1.3rem;
    }

    .hero {
      width: 100%;
      border-radius: var(--radius);
      overflow: hidden;
      margin-bottom: 1.5rem;
      box-shadow: var(--shadow);
      background: #fef3c7;
      aspect-ratio: 16/9;
      position: relative;
    }

    .hero img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .media-bar {
      position: sticky;
      top: 0;
      z-index: 200;
      background: rgba(255,251,235,0.78);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(245,230,200,0.7);
      border-radius: 14px;
      box-shadow: 0 4px 18px rgba(120,53,15,0.08);
      padding: 0.55rem 0.85rem 0.7rem;
      margin-bottom: 1.2rem;
      transition: box-shadow 0.2s, background 0.2s;
    }

    .media-bar.scrolled {
      background: rgba(255,251,235,0.92);
      box-shadow: 0 6px 24px rgba(120,53,15,0.14);
    }

    .controls {
      display: flex;
      flex-wrap: nowrap;
      gap: 0;
      justify-content: center;
      margin-bottom: 0.65rem;
    }

    .controls button {
      cursor: pointer;
      border: none;
      border-radius: 0;
      padding: 0.62rem 1.1rem;
      font-size: 0.9rem;
      font-weight: 600;
      transition: all 0.15s ease;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      margin: 0;
    }

    .controls button:first-child { border-radius: 9px 0 0 9px; }
    .controls button:last-child { border-radius: 0 9px 9px 0; }
    .controls { margin-bottom: 0; }

    .btn-primary { background: var(--primary); color: #fff; }
    .btn-primary:hover { background: var(--primary-dark); }
    .btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

    .btn-pause { background: #d97706; color: #fff; }
    .btn-pause:hover { background: #b45309; }
    .btn-pause:disabled { opacity: 0.55; cursor: not-allowed; }



    .media-row {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-end;
      justify-content: center;
      gap: 0.55rem 1.1rem;
      margin-bottom: 0.65rem;
    }
    .hover-tool {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      position: relative;
    }
    .hover-caption {
      font-size: 0.68rem;
      font-weight: 700;
      color: var(--muted);
      letter-spacing: 0.01em;
      white-space: nowrap;
    }
    .btn-hover-toggle {
      background: #15803d;
      color: #fff;
      border: none;
      border-radius: 9px !important;
      padding: 0.42rem 0.75rem !important;
      font-size: 0.8rem !important;
      font-weight: 800;
      cursor: pointer;
      min-width: 3.2rem;
    }
    .btn-hover-toggle.off { background: #a8a29e; }
    .hover-q {
      position: relative;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 1px solid #d6d3d1;
      color: #78716c;
      font-size: 0.72rem;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: help;
      background: #fff;
    }
    .hover-q .qtip {
      visibility: hidden;
      opacity: 0;
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      background: #1c1917;
      color: #fff;
      padding: 0.5rem 0.7rem;
      border-radius: 10px;
      font-size: 0.75rem;
      font-weight: 500;
      width: 210px;
      line-height: 1.35;
      z-index: 50;
      pointer-events: none;
    }
    .hover-q:hover .qtip, .hover-q:focus .qtip { visibility: visible; opacity: 1; }
    @media (max-width: 560px) {
      .media-row { flex-direction: column; align-items: center; }
      .hover-tool { justify-content: center; }
    }
    .btn-secondary { background: #f5e6c8; color: var(--text); }
    .btn-secondary:hover { background: #efd9a8; }

    .progress-wrap {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      width: 100%;
    }

    .progress-time {
      font-size: 0.78rem;
      color: var(--muted);
      font-variant-numeric: tabular-nums;
      min-width: 3.2rem;
      text-align: center;
    }

    .progress-bar-container {
      flex: 1;
      height: 8px;
      background: #efe6d6;
      border-radius: 999px;
      position: relative;
      cursor: pointer;
      overflow: hidden;
      container-type: inline-size;
    }

    .progress-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, #111 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66% 100%);
      background-size: 100cqi 100%;
      background-repeat: no-repeat;
      border-radius: 999px;
      width: 0%;
      transition: width 0.25s ease;
      pointer-events: none;
    }

    .progress-bar-container:hover .progress-bar-fill { filter: brightness(1.08); }

    .progress-handle {
      position: absolute;
      top: 50%;
      left: 0%;
      width: 16px;
      height: 16px;
      background: white;
      border: 3px solid var(--primary);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      box-shadow: 0 2px 6px rgba(0,0,0,0.25);
      pointer-events: none;
      transition: left 0.25s ease;
      opacity: 0;
    }

    .progress-bar-container:hover .progress-handle { opacity: 1; }

    .card {
      background: var(--card);
      border-radius: 20px;
      box-shadow: 0 10px 28px rgba(92, 47, 14, 0.06);
      padding: 1.55rem 1.4rem;
      margin-bottom: 1.8rem;
      border: 1px solid #efe2c8;
    }

    .story-title {
      font-size: 1.32rem;
      color: var(--primary);
      margin-bottom: 1.1rem;
      text-align: center;
      font-weight: 650;
      border-radius: 8px;
      padding: 0.25rem 0.5rem;
      transition: background 0.35s ease;
    }
    .story-title.highlight {
      background: var(--highlight);
      box-shadow: 0 0 0 3px rgba(253, 230, 138, 0.6);
    }

    .story p {
      margin-bottom: 1.15rem;
      text-align: justify;
      border-radius: 6px;
      padding: 0.15rem 0.25rem;
      transition: background 0.35s ease;
      font-weight: 650;
    }

    .story p.highlight {
      background: var(--highlight);
      box-shadow: 0 0 0 3px rgba(253, 230, 138, 0.6);
    }

    .vocab {
      position: relative;
      cursor: help;
      font-weight: 700;
      border-radius: 3px;
      padding: 0 1px;
    }
    .vocab-m, .g-m { color: #1d4ed8; } /* Duden/DaF: Maskulinum = Blau */
    .vocab-f, .g-f { color: #dc2626; } /* Femininum = Rot */
    .vocab-n, .g-n { color: #15803d; } /* Neutrum = Grün */
    .vocab:hover { filter: brightness(0.88); }

    .vocab .tooltip {
      visibility: hidden;
      opacity: 0;
      position: absolute;
      bottom: calc(100% + 9px);
      left: 50%;
      transform: translateX(-50%);
      background: var(--tooltip-bg);
      color: #fff;
      padding: 0.55rem 0.85rem;
      border-radius: 10px;
      font-size: 0.82rem;
      font-weight: 500;
      white-space: normal;
      min-width: 160px;
      max-width: 240px;
      z-index: 30;
      box-shadow: 0 8px 20px rgba(0,0,0,0.28);
      pointer-events: none;
      transition: opacity 0.18s, visibility 0.18s;
      line-height: 1.4;
      text-align: center;
    }
    .vocab .tooltip::after {
      content: '';
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      border: 6px solid transparent;
      border-top-color: var(--tooltip-bg);
    }
    .vocab:hover .tooltip { visibility: visible; opacity: 1; }
    .tooltip .en { color: #ffffff; font-size: 0.88rem; display: block; font-weight: 650; line-height: 1.45; }
    .tooltip .info { display: none; }
    .tooltip .art {
      display: block;
      margin-top: 6px;
      padding-top: 5px;
      border-top: 1px solid rgba(255,255,255,.18);
      font-weight: 800;
      font-size: 0.98rem;
      letter-spacing: .04em;
    }
    .tooltip .art::before {
      content: 'Artikel · ';
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: #d6d3d1;
    }
    .tooltip .art-der { color: #60a5fa; }
    .tooltip .art-die { color: #f87171; }
    .tooltip .art-das { color: #4ade80; }

    @media (max-width: 560px) {
      .vocab .tooltip { max-width: 200px; }
    }

    #word-tooltip {
      position: fixed;
      z-index: 9998;
      background: #1c1917;
      color: #fff;
      padding: 0.7rem 0.95rem;
      border-radius: 12px;
      font-size: 0.85rem;
      max-width: 280px;
      box-shadow: 0 12px 32px rgba(0,0,0,0.35);
      pointer-events: none;
      opacity: 0;
      transform: translateY(6px);
      transition: opacity 0.15s, transform 0.15s;
      line-height: 1.45;
    }
    #word-tooltip.visible {
      opacity: 1;
      transform: translateY(0);
    }
    #word-tooltip .wt-word {
      display: none;
    }
    #word-tooltip .wt-de,
    #word-tooltip .wt-syn,
    #word-tooltip .wt-info { display: none; }
    #word-tooltip .wt-en { color: #ffffff; font-size: 1rem; font-weight: 700; }
    #word-tooltip .wt-art {
      margin-top: 0.45rem;
      padding-top: 0.4rem;
      border-top: 1px solid #44403c;
      font-weight: 800;
      font-size: 1.05rem;
      letter-spacing: .03em;
    }
    #word-tooltip .wt-art-k {
      display: block;
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: #a8a29e;
      margin-bottom: 2px;
    }
    #word-tooltip .wt-art.der { color: #60a5fa; }
    #word-tooltip .wt-art.die { color: #f87171; }
    #word-tooltip .wt-art.das { color: #4ade80; }

    .life-lesson {
      background: #fff;
      border: 1px solid #efe2c8;
      border-radius: 18px;
      padding: 1.15rem 1.2rem;
      margin-top: 1.4rem;
      display: flex;
      gap: 0.85rem;
      align-items: flex-start;
      box-shadow: 0 8px 22px rgba(92, 47, 14, 0.05);
    }
    .life-lesson .icon { font-size: 1.5rem; flex-shrink: 0; }
    .life-lesson strong { color: var(--primary-dark); display: block; margin-bottom: 0.25rem; }
    .life-lesson p { font-size: 0.95rem; color: #57534e; margin: 0; }

    .en-toggle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      background: #fff7ed;
      border: 1px solid var(--border);
      border-radius: 11px;
      padding: 0.85rem 1.1rem;
      font-size: 0.98rem;
      font-weight: 600;
      color: var(--primary-dark);
      cursor: pointer;
      transition: background 0.15s;
      margin-top: 1.2rem;
    }
    .en-toggle:hover { background: #ffedd5; }

    .lesson-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.45rem;
      margin-top: 0.7rem;
      background: #fafaf9;
      border: 1px solid #e7e5e4;
      border-radius: 8px;
      padding: 0.32rem 0.65rem;
      font-size: 0.78rem;
      font-weight: 600;
      color: #78716c;
      cursor: pointer;
    }
    .lesson-toggle:hover { background: #f5f5f4; color: #44403c; }
    .lesson-toggle .arrow { font-size: 0.7rem; transition: transform 0.25s; }
    .lesson-toggle.open .arrow { transform: rotate(180deg); }
    .life-lesson .en-panel-inner {
      padding: 0.7rem 0.85rem 0.85rem;
      font-size: 0.88rem;
    }

    .en-toggle .arrow { transition: transform 0.25s; font-size: 1.1rem; }
    .en-toggle.open .arrow { transform: rotate(180deg); }

    .en-panel {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease;
      background: #fffbeb;
      border-radius: 0 0 11px 11px;
      border: 1px solid transparent;
      border-top: none;
    }
    .en-panel.open {
      max-height: 4000px;
      border-color: var(--border);
      margin-top: -1px;
    }
    .en-panel-inner {
      padding: 1.1rem 1.2rem 1.3rem;
      font-size: 0.95rem;
      line-height: 1.7;
      color: #44403c;
    }
    .en-panel-inner p { margin-bottom: 0.9rem; }

    .section-title {
      font-size: 1.28rem;
      color: var(--primary-dark);
      margin-bottom: 0.9rem;
      padding-bottom: 0.35rem;
      border-bottom: 2.5px solid var(--accent);
      display: inline-block;
    }

    .quiz-item {
      background: #ffffff;
      border: 1px solid #efe2c8;
      border-radius: 16px;
      padding: 1.05rem 1.05rem;
      margin-bottom: 0.9rem;
      box-shadow: 0 6px 16px rgba(92, 47, 14, 0.045);
    }
    .quiz-item h3 {
      font-size: 1.02rem;
      margin-bottom: 0.65rem;
      color: var(--text);
    }
    .quiz-item label {
      display: block;
      padding: 0.42rem 0.55rem;
      margin: 0.22rem 0;
      border-radius: 6px;
      cursor: pointer;
      transition: background 0.15s;
    }
    .quiz-item label:hover { background: #ffedd5; }
    .quiz-item input[type="radio"] {
      margin-right: 0.45rem;
      accent-color: var(--primary);
    }

    .feedback {
      margin-top: 0.55rem;
      font-weight: 600;
      font-size: 0.9rem;
      display: none;
    }
    .feedback.correct { color: var(--success); display: block; }
    .feedback.wrong { color: var(--error); display: block; }

    .score-box {
      text-align: center;
      font-size: 1.2rem;
      font-weight: 700;
      margin-top: 1.1rem;
      padding: 1rem;
      border-radius: 12px;
      display: none;
    }

    .vocab-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 0.85rem;
    }
    .vocab-card {
      flex: 1 1 240px;
      min-width: 220px;
      background: #ffffff;
      border-radius: 18px;
      padding: 1rem 1.05rem;
      border: 1px solid #efe2c8;
      box-shadow: 0 8px 22px rgba(92, 47, 14, 0.06);
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      transition: transform 0.18s ease, box-shadow 0.18s ease;
    }
    .vocab-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 28px rgba(92, 47, 14, 0.10);
    }
    .vocab-card-text {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
      min-width: 0;
    }
    .vocab-card .de { font-weight: 700; font-size: 1.06rem; }
    .vocab-card .de.g-m { color: #1d4ed8; }
    .vocab-card .de.g-f { color: #dc2626; }
    .vocab-card .de.g-n { color: #15803d; }
    .vocab-card .ipa { font-family: 'Courier New', Consolas, monospace; color: var(--muted); font-size: 0.86rem; }
    .vocab-card .en { color: #44403c; font-size: 0.95rem; font-weight: 550; }

    .speak-word {
      margin: 0;
      padding: 0;
      background: transparent;
      color: #44403c;
      border: none;
      box-shadow: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      line-height: 0;
      opacity: 0.78;
      transition: opacity 0.15s, transform 0.15s, color 0.15s;
    }
    .speak-word .spk-icon {
      width: 26px;
      height: 26px;
      fill: currentColor;
    }
    .speak-word:hover {
      background: transparent;
      color: var(--primary-dark);
      opacity: 1;
      transform: scale(1.08);
    }

    .hover-help-btn {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      padding: 0;
      border: 1px solid #e8d5b0;
      background: #fff;
      color: var(--primary-dark);
      border-radius: 50%;
      font-size: 0.95rem;
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(92, 47, 14, 0.06);
      flex-shrink: 0;
    }
    .hover-help-btn.on { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
    .hover-help-btn.off { color: #a8a29e; background: #f5f5f4; border-color: #e7e5e4; }
    .hover-help-btn .qtip {
      visibility: hidden;
      opacity: 0;
      position: absolute;
      top: calc(100% + 8px);
      left: 50%;
      transform: translateX(-50%);
      background: #1c1917;
      color: #fff;
      padding: 0.5rem 0.7rem;
      border-radius: 10px;
      font-size: 0.78rem;
      font-weight: 500;
      width: max-content;
      max-width: 220px;
      line-height: 1.35;
      z-index: 40;
      pointer-events: none;
      text-align: center;
      transition: opacity 0.15s;
    }
    .hover-help-btn .qtip::after {
      content: '';
      position: absolute;
      bottom: 100%;
      left: 50%;
      transform: translateX(-50%);
      border: 6px solid transparent;
      border-bottom-color: #1c1917;
    }
    .hover-help-btn:hover .qtip { visibility: visible; opacity: 1; }

    .genus-legend {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--muted);
    }
    .genus-legend b { font-weight: 800; }

    .top-tools {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      margin: 0 0 0.55rem;
    }

    body.hover-help-off .vocab .tooltip {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
    }
    body.hover-help-off #word-tooltip {
      display: none !important;
      opacity: 0 !important;
    }



    .en-panel-inner p {
      margin-bottom: 0.55rem;
      border-radius: 6px;
      padding: 0.05rem 0.2rem;
      transition: background 0.35s ease;
      font-family: Fredoka, Nunito, "Trebuchet MS", sans-serif;
      font-size: 11.5px;
      font-weight: 400;
      line-height: 1.4;
      color: #5d7190;
    }
    .en-panel-inner p.highlight {
      background: var(--highlight);
      box-shadow: 0 0 0 3px rgba(253, 230, 138, 0.6);
    }

    .en-media-bar {
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
      padding: 0.75rem 1.1rem 0.55rem;
      background: #fff7ed;
      border-bottom: 1px solid var(--border);
    }
    .en-media-bar .controls { margin-bottom: 0; }
    .en-hint-mini {
      font-size: 0.78rem;
      color: var(--muted);
      text-align: center;
    }


    .hint {
      background: #ffffff;
      border: 1px solid #efe2c8;
      border-radius: 16px;
      padding: 0.85rem 1rem;
      font-size: 0.88rem;
      color: #7c2d12;
      margin-bottom: 1.2rem;
      text-align: center;
      box-shadow: 0 6px 16px rgba(92, 47, 14, 0.045);
    }

    #confetti-canvas {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      pointer-events: none;
      z-index: 9999;
    }

    @media (max-width: 480px) {
      body.story-page { padding: 0.9rem 0.65rem 2.5rem; font-size: 16px; }
      .card { padding: 1.15rem 0.95rem; }
      .controls button { padding: 0.55rem 0.85rem; font-size: 0.85rem; }
      .media-bar { padding: 0.45rem 0.65rem 0.55rem; }
    }
  

.story-audio-line{background:#fff7ed;border:1px solid #fed7aa;color:#7c2d12;border-radius:12px;padding:8px 12px;font-weight:700;margin:8px 0 12px}
body.kids-story{background:#fff7ed}
body.kids-story .container{background:transparent}

/* slim recorder controls */
.media-bar, .en-media-bar {
  padding: 2px 6px !important;
  margin: 0 0 8px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
.media-row { gap: 4px 8px !important; margin: 0 !important; align-items: center !important; }
.media-bar .controls, .en-media-bar .controls { margin: 0 !important; gap: 2px !important; }
.media-bar .controls button, .en-media-bar .controls button,
.media-bar .btn-primary, .media-bar .btn-pause, .media-bar .btn-secondary,
.en-media-bar .btn-primary, .en-media-bar .btn-pause, .en-media-bar .btn-secondary,
.btn-hover-toggle {
  padding: 1px 6px !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  min-height: 0 !important;
  border-radius: 5px !important;
  font-weight: 700 !important;
}
.btn-hover-toggle { min-width: 0 !important; }
.hover-caption { font-size: 9px !important; font-weight: 650 !important; }
.hover-q { width: 13px !important; height: 13px !important; font-size: 9px !important; }
.progress-wrap { margin-top: 2px !important; gap: 6px !important; }
.progress-bar-container, #vbBar { height: 8px !important; container-type: inline-size; }
#vbFill, .progress-bar-fill {
  background: linear-gradient(90deg, #111 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66% 100%) !important;
  background-size: 100cqi 100% !important;
  background-repeat: no-repeat !important;
}
.progress-time, .vb-now, .en-hint-mini { font-size: 9px !important; }
.live-en {
  font-family: "Fredoka", "Nunito", "Trebuchet MS", sans-serif;
  font-style: normal;
  font-weight: 400;
  color: #5d7190;
  background: #f7f4f8;
  border-left: 3px solid #d7c4ea;
  border-radius: 0 10px 10px 0;
  font-size: 11.5px;
  line-height: 1.35;
  letter-spacing: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-3px);
  margin: 0;
  padding: 0 .55rem;
  transition: opacity .45s ease, transform .45s ease, max-height .5s ease, margin .45s ease, padding .45s ease;
}
.live-en.on {
  max-height: 8rem;
  opacity: .92;
  transform: none;
  margin: .15rem 0 .7rem;
  padding: .28rem .55rem;
}
.live-en .lw-m { color: #7eb0f0; font-style: italic; font-weight: 500; }
.live-en .lw-f { color: #f09aab; font-style: italic; font-weight: 500; }
.live-en .lw-n { color: #7dcea0; font-style: italic; font-weight: 500; }
.full-en-label {
  margin: 1rem 0 .35rem;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6d28d9;
  font-weight: 800;
}
.vb-row.has-gloss {
  display: grid;
  grid-template-columns: minmax(0,1.45fr) minmax(168px,.72fr);
  column-gap: 12px;
  align-items: start;
}
.vb-row.has-gloss .vb-wordline,
.vb-row.has-gloss .vb-meta,
.vb-row.has-gloss .vb-ex { grid-column: 1; min-width: 0; }
.vb-row.has-gloss .vb-gloss { grid-column: 2; grid-row: 1 / span 3; }
.vb-gloss, .de-explain {
  background: #f3f7f4;
  border: 1px solid #d5e5da;
  border-radius: 10px;
  padding: 6px 8px;
  color: #1f3d2e;
  min-width: 0;
}
.vb-gloss p, .de-explain p { margin: 3px 0 0; font-size: .72rem; line-height: 1.35; }
.vb-gloss-mark {
  display: inline-block;
  background: #14532d;
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .04em;
  border-radius: 4px;
  padding: 1px 4px;
  margin-right: 4px;
  vertical-align: middle;
}
.vb-gloss-kicker { font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #3f6b52; }
.de-explain { margin-top: 6px; }
.story-level-nav { display:flex; flex-wrap:wrap; gap:8px; margin: 12px 0 18px; }
.story-level-nav a { border:1px solid #e7e5e4; border-radius:999px; padding:4px 10px; font-size:.82rem; font-weight:800; text-decoration:none; color:#1c1917; background:#fff; }
.story-level-nav a.on { background:#111; color:#ffce00; }
@media (max-width:860px) {
  .vb-row.has-gloss { grid-template-columns: 1fr; }
  .vb-row.has-gloss .vb-gloss { grid-column: 1; grid-row: auto; margin-top: 6px; }
}
