/* Reading Game */
  #rdWelcome, #rdLevels, #rdResults { text-align: center; color: white; }
  #rdWelcome h1 { font-size: 2.7em; margin-bottom: 8px; text-shadow: 3px 3px 6px rgba(0,0,0,0.3); animation: bounce 2s infinite; }
  .rd-scene { font-size: 3.5em; margin: 18px 0; }
  #rdGame { justify-content: flex-start; padding: 10px 16px; overflow: hidden; }
  .rd-game-area {
    width: 100%; max-width: 560px; display: flex; flex-direction: column;
    align-items: center; gap: 8px; height: 100%; margin: 0 auto;
  }
  .rd-header {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 8px 14px; background: rgba(255,255,255,0.2); border-radius: 12px;
    color: white; font-weight: bold; flex-shrink: 0;
  }
  .rd-header .rd-score { font-size: 1.15em; }
  .rd-header .rd-streak { font-size: 0.9em; opacity: 0.9; }
  .rd-conveyor {
    width: 100%; background: linear-gradient(180deg, #5a4a3a, #4a3a2a);
    border-radius: 14px; padding: 12px; position: relative;
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.4); flex-shrink: 0;
  }
  .rd-conveyor::before {
    content: ''; position: absolute; top: 0; left: 20px; right: 20px; height: 4px;
    background: repeating-linear-gradient(90deg, #888 0, #888 20px, transparent 20px, transparent 30px);
    border-radius: 2px; animation: rdBelt 2s linear infinite;
  }
  @keyframes rdBelt { from { background-position: 0 0; } to { background-position: 30px 0; } }
  .rd-package {
    background: #fffde8; border: 3px solid #d4a574; border-radius: 12px;
    padding: 14px; min-height: 80px; position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: all 0.3s;
  }
  .rd-package.locked { opacity: 0.75; }
  .rd-package.unlocked { border-color: #4caf50; box-shadow: 0 0 0 3px rgba(76,175,80,0.3); }
  .rd-package.correct { animation: rdPkgOk 0.5s; }
  .rd-package.wrong { animation: rdPkgNo 0.5s; }
  @keyframes rdPkgOk { 50% { transform: scale(1.04); border-color: #4caf50; } }
  @keyframes rdPkgNo { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
  .rd-pkg-label {
    position: absolute; top: -10px; left: 14px; background: #ff7043;
    color: white; font-size: 0.72em; font-weight: bold; padding: 3px 10px; border-radius: 6px;
  }
  .rd-pkg-status {
    position: absolute; top: -10px; right: 14px; font-size: 0.72em;
    font-weight: bold; padding: 3px 10px; border-radius: 6px; background: #eee; color: #666;
  }
  .rd-pkg-status.unlocked { background: #4caf50; color: white; }
  .rd-qtext {
    font-size: 1.25em; line-height: 1.8; text-align: center; color: #333; font-weight: bold;
  }
  .rd-qtext .rd-kw {
    display: inline-block; padding: 2px 6px; border-radius: 6px;
    cursor: pointer; transition: all 0.2s; border: 2px solid transparent;
  }
  .rd-qtext .rd-kw:hover { background: rgba(102,126,234,0.1); }
  .rd-qtext .rd-kw.found {
    background: #c8e6c9; border-color: #4caf50; color: #2e7d32; animation: rdKwPop 0.3s;
  }
  .rd-qtext .rd-kw.pre { background: #fff3cd; border-color: #ffc107; color: #e65100; }
  @keyframes rdKwPop { 50% { transform: scale(1.15); } }
  .rd-hint {
    width: 100%; text-align: center; min-height: 30px; padding: 4px;
    color: white; font-weight: bold; font-size: 0.9em; flex-shrink: 0;
  }
  .rd-houses {
    width: 100%; display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 10px; flex-shrink: 0;
  }
  .rd-house {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 12px 6px; border-radius: 14px; cursor: pointer;
    background: rgba(255,255,255,0.92); border: 3px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: all 0.2s; font-family: inherit;
  }
  .rd-house:hover { transform: translateY(-3px); border-color: #667eea; }
  .rd-house:active { transform: scale(0.95); }
  .rd-house.disabled { pointer-events: none; opacity: 0.5; }
  .rd-house.rd-ok { border-color: #4caf50; background: #e8f5e9; animation: rdHouseOk 0.5s; }
  .rd-house.rd-no { border-color: #f44336; background: #ffebee; animation: rdHouseNo 0.4s; }
  .rd-house.flash-ok { border-color: #4caf50; background: #f1f8e9; }
  @keyframes rdHouseOk { 50% { transform: scale(1.08); } }
  @keyframes rdHouseNo { 25% { transform: translateX(-4px) rotate(-2deg); } 75% { transform: translateX(4px) rotate(2deg); } }
  .rd-house-roof { font-size: 1.8em; }
  .rd-house-val { font-size: 1.2em; font-weight: bold; color: #333; }
  .rd-fb-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    display: none; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.4); z-index: 100; padding: 20px;
  }
  .rd-fb-overlay.show { display: flex; }
  .rd-fb-card {
    background: white; border-radius: 20px; padding: 28px;
    text-align: center; max-width: 340px; width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: feedbackIn 0.3s;
  }
  .rd-fb-card .fb-icon { font-size: 3em; margin-bottom: 8px; }
  .rd-fb-card .fb-title { font-size: 1.3em; font-weight: bold; margin-bottom: 8px; }
  .rd-fb-card .fb-body { font-size: 0.95em; color: #555; line-height: 1.6; margin-bottom: 14px; }
  .rd-fb-card .fb-body .hl { color: #e65100; font-weight: bold; }
  .rd-fb-card .fb-ok-btn {
    border: none; border-radius: 30px; padding: 11px 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white; font-family: inherit; font-size: 1em; font-weight: bold; cursor: pointer;
  }
  .rd-change-alert {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
    background: rgba(255,152,0,0.95); color: white; padding: 14px 26px;
    border-radius: 14px; font-size: 1.3em; font-weight: bold;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3); z-index: 90;
    display: none; animation: alertPop 0.4s;
  }
  .rd-change-alert.show { display: block; }
  @keyframes alertPop { from { transform: translate(-50%,-50%) scale(0.5); } to { transform: translate(-50%,-50%) scale(1); } }
  .rd-level-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    width: 100%; max-width: 380px;
  }
  .rd-level-card {
    padding: 16px 8px; border-radius: 14px; border: 2px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.9); color: #333; cursor: pointer;
    font-family: inherit; font-weight: bold; font-size: 0.95em;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2); transition: all 0.2s;
  }
  .rd-level-card:hover { transform: translateY(-3px); }
  .rd-level-card:active { transform: scale(0.95); }
  .rd-level-card.locked { opacity: 0.5; cursor: default; filter: grayscale(0.4); }
  .rd-level-card.locked:hover { transform: none; }
  .rd-level-card.current { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,0.4); }
  .rd-level-card .lv-icon { font-size: 1.6em; margin-bottom: 4px; }
  .rd-level-card .lv-sub { font-size: 0.78em; color: #555; }
  .rd-results-card {
    background: rgba(255,255,255,0.92); color: #333; border-radius: 18px;
    padding: 22px; max-width: 380px; width: 100%; box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  }
  .rd-stat { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #eee; font-size: 1.05em; }
  .rd-stat:last-child { border: none; }
  .rd-stat .label { color: #555; }
  .rd-stat .val { font-weight: bold; color: #4b5fd5; }
  .rd-btn-row { display: flex; gap: 10px; margin-top: 16px; }
  .rd-btn-row button {
    flex: 1; padding: 12px; border: none; border-radius: 14px;
    font-family: inherit; font-size: 1em; font-weight: bold; cursor: pointer;
  }
  .rd-btn-retry { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
  .rd-btn-next { background: linear-gradient(135deg, #4caf50, #2e7d32); color: white; }
  .rd-btn-home { background: #eee; color: #555; }
