      :root {
        --blue-deep: #0a1628;
        --blue-mid: #0d3b7a;
        --blue-accent: #1a6ef5;
        --cyan: #00c8ff;
      }

      body {
        background-color: rgb(0, 43, 123);
        font-family: "Roboto", sans-serif;
      }

      .bg-grid {
        background-image:
          linear-gradient(rgba(26, 110, 245, 0.07) 1px, transparent 1px),
          linear-gradient(90deg, rgba(26, 110, 245, 0.07) 1px, transparent 1px);
        background-size: 40px 40px;
      }

      .header-glow {
        text-shadow:
          0 0 40px rgba(0, 200, 255, 0.6),
          0 0 80px rgba(26, 110, 245, 0.4);
      }

      .card {
        background: rgba(255, 255, 255, 0.96);
        border-radius: 16px;
        transition:
          transform 0.25s ease,
          box-shadow 0.25s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
      }

      .card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--blue-accent), var(--cyan));
        opacity: 0;
        transition: opacity 0.25s;
      }

      .card:hover {
        transform: translateY(-4px);
        box-shadow:
          0 20px 50px rgba(0, 200, 255, 0.18),
          0 8px 20px rgba(0, 0, 0, 0.3);
      }

      .card:hover::before {
        opacity: 1;
      }

      .phrase {
        font-family: "Roboto", sans-serif;
        font-weight: 500;
        color: #111;
      }

      .phonetic {
        font-family: "Roboto", sans-serif;
        font-weight: 430;
        color: #555;
      }

      .english {
        font-family: "Roboto", sans-serif;
        color: #888;
        font-size: 0.78rem;
      }

      /* The swappable part of a card line: <span class=gray>…</span> */
      .phrase .gray {
        color: #777;
      }

      /* Burmese translation line on the English pages */
      .english[lang="my"] {
        color: #4a76bb;
      }

      .sound-btn {
        background: linear-gradient(135deg, #e8f4ff, #cce8ff);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--blue-accent);
        cursor: pointer;
        transition:
          background 0.2s,
          transform 0.15s;
        flex-shrink: 0;
      }

      .sound-btn:hover {
        background: linear-gradient(135deg, var(--blue-accent), var(--cyan));
        color: white;
        transform: scale(1.1);
      }

      .note-wrapper {
        position: relative;
        flex-shrink: 0;
      }

      .note-btn {
        background: linear-gradient(135deg, #e8f4ff, #cce8ff);
        border-radius: 8px;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--blue-accent);
        cursor: pointer;
        transition: background 0.2s;
      }

      .note-btn:hover {
        background: linear-gradient(135deg, var(--cyan), var(--blue-accent));
        color: white;
      }

      .note-wrapper::after {
        content: attr(data-note);
        font-family: "Roboto", sans-serif;
        font-size: 0.72rem;
        line-height: 1.5;
        color: #444;
        position: absolute;
        bottom: calc(100% + 8px);
        right: 0;
        background: white;
        padding: 8px 10px;
        border-radius: 8px;
        width: 200px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s ease;
        z-index: 20;
        white-space: normal;
      }

      .note-wrapper:hover::after,
      .note-wrapper.show::after {
        opacity: 1;
      }

      /* Expression flashcards: note + example on separate lines */
      .note-wrapper.note-multiline::after {
        white-space: pre-line;
        width: 260px;
      }

      .badge {
        background: linear-gradient(135deg, var(--blue-accent), var(--cyan));
        border-radius: 6px;
        padding: 2px 10px;
        font-size: 0.7rem;
        color: white;
        letter-spacing: 0.08em;
        font-weight: 700;
      }

      @keyframes fadeUp {
        from {
          opacity: 0;
          transform: translateY(24px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .card {
        animation: fadeUp 0.5s ease both;
      }

      .card:nth-child(1) {
        animation-delay: 0.05s;
      }
      .card:nth-child(2) {
        animation-delay: 0.1s;
      }
      .card:nth-child(3) {
        animation-delay: 0.15s;
      }
      .card:nth-child(4) {
        animation-delay: 0.2s;
      }
      .card:nth-child(5) {
        animation-delay: 0.25s;
      }
      .card:nth-child(6) {
        animation-delay: 0.3s;
      }
      .card:nth-child(7) {
        animation-delay: 0.35s;
      }
      .card:nth-child(8) {
        animation-delay: 0.4s;
      }
      .card:nth-child(9) {
        animation-delay: 0.45s;
      }
      .card:nth-child(10) {
        animation-delay: 0.5s;
      }

      .diagonal-accent {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 280px;
        height: 280px;
        background: linear-gradient(135deg, var(--blue-mid), var(--cyan));
        clip-path: polygon(100% 0, 100% 100%, 0 100%);
        opacity: 0.12;
        pointer-events: none;
      }

      .header-line {
        background: linear-gradient(
          90deg,
          transparent,
          var(--cyan),
          transparent
        );
        height: 1px;
        opacity: 0.4;
      }

      /* ── Hamburger button ── */
      #hamburger {
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 110;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 10px;
        width: 42px;
        height: 42px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        transition: background 0.2s;
      }
      #hamburger:hover {
        background: rgba(255, 255, 255, 0.18);
      }
      #hamburger span {
        display: block;
        width: 18px;
        height: 2px;
        background: white;
        border-radius: 2px;
        transition:
          transform 0.3s ease,
          opacity 0.3s ease;
      }
      #hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
      }
      #hamburger.open span:nth-child(2) {
        opacity: 0;
      }
      #hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
      }

      /* ── Overlay ── */
      #sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
      }
      #sidebar-overlay.visible {
        opacity: 1;
        pointer-events: all;
      }

      /* ── Sidebar ── */
      #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 270px;
        background: linear-gradient(180deg, #0b1f4d 0%, #060f28 100%);
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 105;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }
      #sidebar.open {
        transform: translateX(0);
      }

      .sidebar-header {
        padding: 18px 16px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-shrink: 0;
      }
      .sidebar-title {
        font-family: "Playfair Display", serif;
        color: white;
        font-size: 1rem;
        font-weight: 700;
      }
      .sidebar-subtitle {
        font-family: "Roboto", sans-serif;
        color: rgba(0, 200, 255, 0.65);
        font-size: 0.62rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        margin-top: 3px;
      }

      /* ── Scrollable content area ── */
      .sidebar-scroll {
        flex: 1;
        overflow-x: auto;
        overflow-y: auto;
        min-width: 0;
      }
      .sidebar-scroll::-webkit-scrollbar {
        width: 5px;
        height: 5px;
      }
      .sidebar-scroll::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.04);
      }
      .sidebar-scroll::-webkit-scrollbar-thumb {
        background: rgba(0, 200, 255, 0.35);
        border-radius: 4px;
      }
      .sidebar-scroll::-webkit-scrollbar-corner {
        background: transparent;
      }

      /* ── Level accordion ── */
      .level-section {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      }

      .level-btn {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 13px 16px;
        background: none;
        border: none;
        color: white;
        font-family: "Roboto", sans-serif;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        cursor: pointer;
        transition: background 0.2s;
        white-space: nowrap;
        text-align: left;
      }
      .level-btn:hover {
        background: rgba(255, 255, 255, 0.06);
      }

      .level-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--blue-accent), var(--cyan));
        flex-shrink: 0;
      }
      .level-label {
        flex: 1;
      }

      .chevron {
        flex-shrink: 0;
        color: rgba(0, 200, 255, 0.6);
        transition: transform 0.25s;
      }
      .level-btn.open .chevron {
        transform: rotate(180deg);
      }

      /* ── Lessons list ── */
      .lessons-list {
        display: none;
        padding: 2px 0 8px;
        white-space: nowrap;
      }
      .lessons-list.open {
        display: block;
      }

      .lesson-link {
        display: block;
        padding: 7px 16px 7px 34px;
        font-family: "Roboto", sans-serif;
        font-size: 0.76rem;
        color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition:
          color 0.15s,
          background 0.15s;
        text-decoration: none;
        white-space: nowrap;
      }
      .lesson-link:hover {
        color: rgba(0, 200, 255, 0.9);
        background: rgba(0, 200, 255, 0.06);
      }
      .lesson-link.active {
        color: var(--cyan);
        background: rgba(0, 200, 255, 0.1);
        font-weight: 600;
      }
/* ---- additions for the new site (not in the original pimsleur.css) ---- */
.audio-pending .sound-btn { opacity: 0.35; pointer-events: none; }   /* audio not recorded yet */
