    :root {
      --bg:var(--bg-card);
      --panel:var(--bg-card);
      --neon-blue:var(--color-primary);
      --neon-pink: #ff0055;
      --neon-green: #00ff66;
      --neon-gold: #ffcc00;
      --text: var(--text-muted);
    }

    .app-layout {
      display: flex;
      /* align-items: center; */
      justify-content: center;
      width: 100%;
      max-width: 1300px;
      gap: 15px;
      padding: 20px;
    }

    .mcq-game-container {
      background: var(--bg-card);
      border: 2px solid var(--color-primary);
      border-radius: var(--radius-max);
      padding: 24px;
      width: 100%;
      max-width: 600px;
      box-shadow: var(--shadow-blue);
      position: relative;
      flex-shrink: 0;
    }

    /* Side Drawers Common Styling */
    .side-drawer {
      width: 0;
      opacity: 0;
      pointer-events: none;
      background: var(--bg-card);
      border-radius: var(--radius-max);
      height: 620px;
      overflow-y: auto;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      padding: 0; color:var(--text-main);

    }

  /* Dynamic Word Highlighting Colors Rules */
  .highlight-correct { color: #00ffcc; font-weight: bold; text-shadow: 0 0 8px #00ffcc; }
  .highlight-wrong { color: #ff0055; font-weight: bold; text-shadow: 0 0 8px #ff0055; }
  .disabled-drawer { opacity: 0.4; pointer-events: none; cursor: not-allowed; }
  
  /* Dynamic Wave Intermission Notification Toast styles */
  .wave-toast {
      position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%);
      background: rgba(0, 0, 0, 0.9); border: 2px solid var(--neon-gold);
      padding: 15px 30px; border-radius: 8px; color: var(--neon-gold);
      font-size: 20px; font-weight: bold; text-align: center;
      z-index: 999; text-shadow: 0 0 10px var(--neon-gold);
      box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
      display: none;
  }
  .opt-card-clickable { cursor: pointer; transition: transform 0.1s ease; }
  .opt-card-clickable:active { transform: scale(0.98); }
    .side-drawer.open {
      width: 320px;
      opacity: 1;
      pointer-events: auto;
      padding: 18px;
    }

    /* Left Drawer - History */
    #historyDrawer {
      border: 2px solid var(--neon-pink);
      box-shadow: 0 0 25px rgba(255, 0, 85, 0.15);color:var(--text-main);
    }

    /* Right Drawer - Reading */
    #readDrawer {
      border: 2px solid var(--neon-gold);
      box-shadow: 0 0 25px rgba(255, 204, 0, 0.15);color:var(--text-main);
    }

    .drawer-title {
      font-size: 16px;
      margin-bottom: 15px;
      border-bottom: 1px solid rgba(255,255,255,0.1);color:var(--text-main);
      padding-bottom: 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    /* Top Controls Bar */
    .controls-bar {
      display: flex;color:var(--text-main);
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
      gap: 8px;
      flex-wrap: wrap;
    }

    .btn-ctrl {
      background: var(--bg-card);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color:var(--text-main);
      padding: 8px 12px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.2s;
    }

    .btn-ctrl:hover {
      background: rgba(255, 255, 255, 0.15);
    }

    select.btn-ctrl {
      outline: none;
      /* background: #0d1322; */
    }

    /* Glitch Damage Animation */
    .glitch-shake {
      animation: glitch 0.2s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
      border-color: var(--neon-pink) !important;
    }

    @keyframes glitch {
      0% { transform: translate(0); }
      20% { transform: translate(-8px, 5px); }
      40% { transform: translate(8px, -5px); }
      60% { transform: translate(-5px, -2px); }
      80% { transform: translate(5px, 2px); }
      100% { transform: translate(0); }
    }

    /* Bars HUD */
    .bars-container { display: flex; flex-direction: column; gap: 8px; margin-bottom: 15px; }
    .bar-wrapper { height: 8px; background: rgba(255,255,255,0.05); border-radius: 6px; overflow: hidden; }
    .hp-fill { height: 100%; width: 100%; background: var(--neon-green); transition: width 0.3s ease; }
    .timer-fill { height: 100%; width: 100%; background: var(--neon-blue); }

    /* HUD Stats */
    .hud { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
    .hud-title { font-size: 11px; color:var(--text-main); letter-spacing: 1px; }
    .hud-val { font-size: 18px; font-weight: 900; color: var(--neon-blue); }

    .q-box {
      background: rgba(255, 255, 255, 0.02);
      border-left: 4px solid var(--neon-blue);
      padding: 16px;
      border-radius: 8px;
      margin-bottom: 15px;
    }

    .options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
    .opt-card {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--color-primary);
      padding: 12px;
      border-radius: 8px;
      font-size: 13px;
    color:var(--text-main);
    }
h3{
  color:var(--text-main);
}
    .input-box {
      width: 100%;
      background:var(--bg-hover);
      border: 2px solid var(--neon-blue);
      border-radius: 8px;
      padding: 14px;
      color: var(--color-primary);
      font-size: 16px;
      font-weight: bold;
      outline: none;
    }

    .btn-action {
      background: linear-gradient(90deg, var(--neon-blue), #0077ff);
      color: #000;
      border: none;
      padding: 14px;
      border-radius: 8px;
      font-size: 15px;
      font-weight: 900;
      cursor: pointer;
      width: 100%;
      text-transform: uppercase;
    }

    /* History & Reading Items */
    .card-item {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 8px;
      padding: 10px;
      margin-bottom: 10px;
      font-size: 12px;
    }
    .badge-correct { color: var(--neon-green); font-weight: bold; }
    .badge-wrong { color: var(--neon-pink); font-weight: bold; }