  :root {
    --navy:       #0a1628;
    --navy-mid:   #0d1f3c;
    --navy-card:  #101f38;
    --navy-hover: #162a4a;
    --navy-border:#1e3a5a;
    --gold:       #f0c040;
    --gold-dim:   #a88420;
    --teal:       #1d9e75;
    --teal-light: #5dcaa5;
    --teal-dim:   #0f4f3a;
    --purple:     #7f77dd;
    --purple-dim: #2a1f5a;
    --red:        #e24b4a;
    --red-dim:    #2a0f0f;
    --text-bright:#e8f0f8;
    --text-mid:   #8fb4cc;
    --text-dim:   #4a6a82;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  
  body {
    background: var(--navy);
    color: var(--text-bright);
    font-family: 'Nunito', sans-serif;
    display: flex; 
    flex-direction: column; 
    align-items: center;
    min-height: 100vh; 
    padding: 20px;
    -webkit-tap-highlight-color: rgba(240, 192, 64, 0.2);
  }

  /* ── Book promo ── */
  .book-promo-epoch { margin-top: 20px; padding: 14px 16px; background: linear-gradient(135deg, rgba(240,192,64,0.07), rgba(29,158,117,0.04)); border: 1px solid rgba(240,192,64,0.2); border-radius: 12px; text-align: center; width: 100%; }
  .book-promo-epoch-text { font-size: 0.78rem; color: var(--text-mid); line-height: 1.5; margin-bottom: 10px; }
  .book-promo-epoch-text strong { color: var(--text-bright); }
  .book-promo-epoch-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
  .book-promo-epoch-btn { display: inline-block; padding: 7px 18px; background: linear-gradient(135deg, var(--gold), #d4920a); color: var(--navy); font-family: 'Poppins', sans-serif; font-size: 0.78rem; font-weight: 700; border-radius: 50px; text-decoration: none; transition: all 0.2s; box-shadow: 0 3px 12px rgba(240,192,64,0.2); }
  .book-promo-epoch-btn:hover { box-shadow: 0 5px 18px rgba(240,192,64,0.35); transform: translateY(-1px); }
  .book-promo-epoch-btn-outline { display: inline-block; padding: 7px 18px; background: none; border: 1.5px solid rgba(240,192,64,0.4); color: var(--gold); font-family: 'Poppins', sans-serif; font-size: 0.78rem; font-weight: 700; border-radius: 50px; text-decoration: none; transition: all 0.2s; }
  .book-promo-epoch-btn-outline:hover { background: rgba(240,192,64,0.08); }

  .game-screen { 
    display: none; 
    width: 100%; 
    max-width: 500px; 
    animation: fadeIn 0.4s ease-out;
  }
  .game-screen.active { display: block; }
  
  @keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
  }

  .card { 
    background: var(--navy-card); 
    border: 1px solid var(--navy-border); 
    border-radius: 16px; 
    padding: 24px; 
    margin-bottom: 20px; 
  }
  
  h1 { 
    font-family: 'Poppins', sans-serif; 
    text-align: center; 
    color: var(--gold); 
    margin-bottom: 8px; 
    font-size: 2.2rem;
    line-height: 1.2;
  }
  
  .subtitle { 
    text-align: center; 
    color: var(--text-mid); 
    font-size: 0.95rem; 
    margin-bottom: 30px; 
  }

  /* --- MAIN MENU (4 MODES) --- */
  .menu-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 12px; 
  }
  
  .mode-card {
    background: var(--navy-mid); 
    border: 1px solid var(--navy-border); 
    border-radius: 15px;
    padding: 16px 20px; 
    display: flex; 
    align-items: center; 
    cursor: pointer; 
    transition: all 0.2s ease;
    min-height: 80px;
  }
  
  .mode-card:hover { 
    background: var(--navy-hover); 
    transform: translateX(5px); 
    border-color: var(--gold); 
  }
  
  .mode-card:active {
    transform: translateX(3px) scale(0.98);
  }
  
  .mode-card.disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
  }
  
  .mode-card.disabled:hover { 
    transform: none; 
    border-color: var(--navy-border); 
  }
  
  .mode-icon { 
    font-size: 2rem; 
    margin-right: 16px; 
    min-width: 50px;
    text-align: center; 
    flex-shrink: 0;
  }
  
  .mode-info h3 { 
    font-family: 'Poppins'; 
    color: var(--gold); 
    font-size: 1.1rem;
    margin-bottom: 4px;
  }
  
  .mode-info p { 
    color: var(--text-mid); 
    font-size: 0.8rem; 
    margin: 0;
    line-height: 1.4;
  }

  /* --- SETUP UI --- */
  .selection-header { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 20px; 
  }
  
  .back-link { 
    color: var(--text-dim); 
    cursor: pointer; 
    font-size: 0.9rem; 
    font-weight: 700; 
    transition: 0.2s;
    padding: 8px;
    margin: -8px;
  }
  
  .back-link:hover { 
    color: var(--gold); 
  }

  .horizon-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 10px; 
    margin-bottom: 20px; 
  }
  
  .horizon-btn {
    background: var(--navy-mid); 
    border: 2px solid var(--navy-border); 
    padding: 14px;
    border-radius: 12px; 
    text-align: center; 
    cursor: pointer; 
    transition: all 0.2s ease;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .horizon-btn:active {
    transform: scale(0.97);
  }
  
  .horizon-btn.active { 
    border-color: var(--teal); 
    background: var(--teal-dim); 
  }
  
  .hb-name { 
    font-size: 0.9rem; 
    font-weight: 700; 
    color: var(--text-mid); 
  }
  
  .horizon-btn.active .hb-name { 
    color: white; 
  }

  .option-row { 
    display: flex; 
    gap: 8px; 
    margin-bottom: 20px; 
  }
  
  .opt-choice { 
    flex: 1; 
    padding: 12px 10px; 
    border-radius: 8px; 
    border: 1px solid var(--navy-border); 
    background: var(--navy-mid); 
    color: var(--text-dim); 
    cursor: pointer; 
    font-weight: 700; 
    font-size: 0.85rem; 
    text-align: center;
    transition: all 0.2s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .opt-choice:active {
    transform: scale(0.95);
  }
  
  .opt-choice.active { 
    background: var(--navy-hover); 
    border-color: var(--gold); 
    color: var(--gold); 
  }
  
  .active-std { 
    background: var(--teal-dim) !important; 
    border-color: var(--teal) !important; 
    color: white !important; 
  }
  
  .active-hard { 
    background: var(--purple-dim) !important; 
    border-color: var(--purple) !important; 
    color: white !important; 
  }
  
  .active-exp { 
    background: var(--red-dim) !important; 
    border-color: var(--red) !important; 
    color: white !important; 
  }

  .btn-start {
    width: 100%; 
    padding: 16px; 
    border-radius: 12px; 
    border: none; 
    cursor: pointer;
    font-size: 1.1rem; 
    font-weight: 700; 
    font-family: 'Poppins'; 
    background: var(--teal); 
    color: white;
    transition: all 0.2s ease;
    min-height: 56px;
  }
  
  .btn-start:hover {
    background: var(--teal-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 158, 117, 0.3);
  }
  
  .btn-start:active {
    transform: translateY(0);
  }

  /* --- GAMEPLAY (IMPOSTER) --- */
  .hud { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 12px; 
    color: var(--text-mid); 
    font-weight: 700; 
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .progress-bar { 
    width: 100%; 
    height: 6px; 
    background: var(--navy-mid); 
    border-radius: 3px; 
    margin-bottom: 24px; 
    overflow: hidden; 
  }
  
  .progress-fill { 
    height: 100%; 
    background: var(--gold); 
    width: 0%; 
    transition: width 0.4s; 
  }
  
  #era-badge { 
    background: var(--navy-mid); 
    color: var(--gold); 
    padding: 6px 14px; 
    border-radius: 20px; 
    font-weight: 700; 
    font-size: 0.8rem; 
    display: inline-block; 
    margin-bottom: 10px; 
    border: 1px solid var(--gold-dim); 
  }
  
  #q-prompt { 
    font-size: 1.25rem; 
    font-weight: 700; 
    margin-bottom: 24px; 
    line-height: 1.4; 
  }
  
  .game-opt {
    width: 100%; 
    padding: 16px; 
    margin-bottom: 12px; 
    border-radius: 12px;
    border: 1px solid var(--navy-border); 
    background: var(--navy-mid);
    color: var(--text-bright); 
    font-size: 1.05rem; 
    font-weight: 600;
    text-align: left; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    min-height: 60px;
    gap: 12px;
  }
  
  .game-opt:hover {
    background: var(--navy-hover);
    border-color: var(--gold);
  }
  
  .game-opt:active {
    transform: scale(0.98);
  }
  
  .game-opt span:first-child {
    flex: 1;
    word-break: break-word;
  }
  
  .year-reveal { 
    font-family: 'Poppins'; 
    color: var(--gold); 
    opacity: 0; 
    transition: opacity 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.95rem;
  }
  
  .state-correct { 
    background: var(--teal-dim) !important; 
    border-color: var(--teal) !important; 
  }
  
  .state-wrong { 
    background: var(--red-dim) !important; 
    border-color: var(--red) !important; 
  }
  
  .state-reveal .year-reveal, 
  .state-correct .year-reveal, 
  .state-wrong .year-reveal { 
    opacity: 1; 
  }
  
  #reveal-panel { 
    margin-top: 15px; 
    display: none; 
    background: var(--navy-mid); 
    padding: 20px; 
    border-radius: 12px; 
    border-top: 4px solid var(--teal); 
  }

  /* --- TIMELINE MODE STYLES --- */
  .timeline-instruction {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
  }

  .timeline-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 20px;
    max-height: 60vh;
    overflow-y: auto;
    border-radius: 14px;
    border: 1px solid var(--navy-border);
    background: var(--navy-mid);
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
  }

  .timeline-list::-webkit-scrollbar {
    width: 8px;
  }

  .timeline-list::-webkit-scrollbar-track {
    background: transparent;
  }

  .timeline-list::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
  }

  .timeline-item {
    background: transparent;
    border-bottom: 1px solid rgba(240,165,0,0.1);
    padding: 12px 14px;
    cursor: default;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-bright);
    transition: background 0.15s, transform 0.1s;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
  }

  .timeline-item:last-child {
    border-bottom: none;
  }

  .timeline-item:hover {
    background: rgba(240,165,0,0.07);
  }

  .timeline-item.dragging {
    opacity: 0.4;
  }

  .timeline-item.drag-over {
    background: rgba(0,201,167,0.15);
    transform: scale(1.01);
  }

  .drag-handle {
    color: var(--text-mid);
    font-size: 1.3rem;
    flex-shrink: 0;
    cursor: grab;
    padding: 4px 6px 4px 0;
    touch-action: none;
    user-select: none;
  }

  .drag-handle:active {
    cursor: grabbing;
  }

  .event-text {
    flex: 1;
    line-height: 1.4;
  }

  .event-year {
    font-family: 'Poppins';
    color: var(--gold);
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .timeline-item.reveal .event-year {
    opacity: 1;
  }

  /* Timeline buttons */
  .timeline-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 16px 0;
    flex-wrap: wrap;
  }

  .btn-submit {
    padding: 12px 36px;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    color: var(--navy);
    box-shadow: 0 4px 16px rgba(29,158,117,0.3);
  }

  .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(29,158,117,0.45);
  }

  .btn-quit {
    padding: 12px 36px;
    background: transparent;
    color: var(--text-mid);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .btn-quit:hover {
    border-color: var(--red);
    color: var(--red);
    background: rgba(224,85,85,0.08);
  }

  /* Timeline Results */
  .timeline-results {
    display: none;
    animation: fadeUp 0.5s ease both;
  }

  .results-card {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: 18px;
    padding: 28px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
    margin-bottom: 20px;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
  }

  .score-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    text-align: center;
    margin-bottom: 8px;
  }

  /* ── Results screen: headline, animated score, witty line, personal best ── */
  .results-headline {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
    text-align: center;
    margin-bottom: 4px;
  }

  .score-text-big {
    font-family: 'Poppins', sans-serif;
    font-size: 3.4rem;
    font-weight: 800;
    color: var(--gold);
    text-align: center;
    line-height: 1.1;
    margin-top: 10px;
  }

  .score-suffix {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-mid);
    margin-left: 2px;
  }

  .score-subtext {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-mid);
    margin-top: 4px;
    margin-bottom: 14px;
  }

  .witty-line {
    text-align: center;
    font-size: 1rem;
    color: var(--teal-light);
    font-style: italic;
    margin-bottom: 18px;
    padding: 0 10px;
  }

  .personal-best-banner {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    background: linear-gradient(135deg, var(--gold), #d4920a);
    border-radius: 50px;
    padding: 8px 16px;
    margin: 0 auto 18px auto;
    max-width: fit-content;
    box-shadow: 0 4px 16px rgba(240,192,64,0.3);
  }

  .results-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
  }

  .btn-secondary {
    padding: 10px 22px;
    background: transparent;
    color: var(--teal-light);
    border: 1.5px solid var(--teal);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
  }

  .btn-secondary:hover {
    background: rgba(29,158,117,0.12);
  }

  .btn-ghost {
    padding: 10px 22px;
    background: transparent;
    color: var(--text-mid);
    border: 1.5px solid var(--navy-border);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
  }

  .btn-ghost:hover {
    color: var(--text-bright);
    border-color: var(--text-dim);
  }

  /* ── Score tier glow — applied dynamically to .results-card ── */
  .tier-perfect   { border-color: var(--gold); box-shadow: 0 8px 40px rgba(240,192,64,0.35); }
  .tier-excellent { border-color: var(--gold-dim); box-shadow: 0 8px 40px rgba(240,192,64,0.2); }
  .tier-good      { border-color: var(--teal); box-shadow: 0 8px 40px rgba(29,158,117,0.25); }
  .tier-okay      { border-color: var(--navy-border); box-shadow: 0 8px 40px rgba(0,0,0,0.4); }
  .tier-rough     { border-color: var(--purple-dim); box-shadow: 0 8px 40px rgba(127,119,221,0.15); }
  .tier-tough     { border-color: var(--red-dim); box-shadow: 0 8px 40px rgba(226,75,74,0.2); }

  .review-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 20px 0 12px 0;
    text-align: center;
  }

  /* ── Coexistence round-by-round review list ── */
  .coex-review-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
  }

  .coex-review-row {
    background: var(--navy-mid);
    border-left: 3px solid var(--navy-border);
    border-radius: 8px;
    padding: 12px 14px;
  }

  .coex-review-row.correct {
    border-left-color: var(--teal);
  }

  .coex-review-row.wrong {
    border-left-color: var(--red);
  }

  .coex-review-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
  }

  .coex-review-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    text-transform: uppercase;
  }

  .coex-review-icon {
    font-size: 0.9rem;
  }

  .coex-review-statement {
    font-size: 0.88rem;
    color: var(--text-bright);
    line-height: 1.4;
    margin-bottom: 6px;
  }

  .coex-review-answer {
    font-size: 0.78rem;
    color: var(--text-mid);
    margin-bottom: 4px;
  }

  .coex-review-answer strong {
    color: var(--text-bright);
  }

  .coex-review-explain {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.4;
    font-style: italic;
  }

  .feedback-text {
    text-align: center;
    font-size: 1rem;
    color: var(--teal);
    font-style: italic;
    margin-bottom: 20px;
  }

  .results-columns {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
  }

  .results-col {
    flex: 1;
    min-width: 200px;
  }

  .results-col h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
  }

  .results-col ol {
    padding-left: 22px;
  }

  .results-col ol li {
    font-size: 0.9rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-bright);
    line-height: 1.4;
  }

  .results-col ol li:last-child {
    border-bottom: none;
  }

  .choice-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }

  .btn-try-again {
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--gold), #d4920a);
    color: var(--navy);
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(240,165,0,0.3);
  }

  .btn-try-again:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240,165,0,0.45);
  }

  .btn-accept {
    padding: 10px 28px;
    background: transparent;
    color: var(--teal);
    border: 1.5px solid var(--teal);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
  }

  .btn-accept:hover {
    background: rgba(0,201,167,0.1);
  }

  .btn-new-game {
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--gold), #d4920a);
    color: var(--navy);
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(240,165,0,0.3);
  }

  .btn-new-game:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240,165,0,0.45);
  }

  .disabled {
    opacity: 0.4 !important;
    pointer-events: none !important;
  }

  .hidden {
    display: none !important;
  }

  /* --- MOBILE OPTIMIZATIONS --- */
  @media (max-width: 480px) {
    body {
      padding: 16px;
    }
    
    h1 {
      font-size: 1.8rem;
    }
    
    .subtitle {
      font-size: 0.85rem;
      margin-bottom: 24px;
    }
    
    .card {
      padding: 20px;
      margin-bottom: 16px;
    }
    
    .mode-card {
      padding: 14px 16px;
      min-height: 72px;
    }
    
    .mode-icon {
      font-size: 1.75rem;
      margin-right: 14px;
      min-width: 45px;
    }
    
    .mode-info h3 {
      font-size: 1rem;
    }
    
    .mode-info p {
      font-size: 0.75rem;
    }
    
    .horizon-btn {
      padding: 12px;
      min-height: 48px;
    }
    
    .hb-name {
      font-size: 0.85rem;
    }
    
    .opt-choice {
      padding: 10px 8px;
      font-size: 0.8rem;
      min-height: 44px;
    }
    
    .btn-start {
      padding: 14px;
      font-size: 1rem;
      min-height: 52px;
    }
    
    #q-prompt {
      font-size: 1.1rem;
      margin-bottom: 20px;
    }
    
    .game-opt {
      padding: 14px;
      font-size: 0.95rem;
      min-height: 56px;
    }
    
    .year-reveal {
      font-size: 0.85rem;
    }
    
    .hud {
      font-size: 0.85rem;
    }
    
    #reveal-panel {
      padding: 16px;
    }

    .timeline-item {
      padding: 10px 12px;
      font-size: 0.9rem;
      min-height: 52px;
    }

    .drag-handle {
      font-size: 1.2rem;
    }

    .event-year {
      font-size: 0.8rem;
    }

    .timeline-instruction {
      font-size: 0.9rem;
    }

    .btn-submit, .btn-quit {
      padding: 10px 24px;
      font-size: 0.9rem;
    }

    .score-text {
      font-size: 1.3rem;
    }

    .feedback-text {
      font-size: 0.9rem;
    }
  }
  
  @media (max-width: 360px) {
    body {
      padding: 12px;
    }
    
    h1 {
      font-size: 1.6rem;
    }
    
    .subtitle {
      font-size: 0.8rem;
    }
    
    .card {
      padding: 16px;
      border-radius: 12px;
    }
    
    .mode-card {
      padding: 12px 14px;
      min-height: 68px;
      border-radius: 12px;
    }
    
    .mode-icon {
      font-size: 1.5rem;
      margin-right: 12px;
      min-width: 40px;
    }
    
    .mode-info h3 {
      font-size: 0.95rem;
    }
    
    .mode-info p {
      font-size: 0.7rem;
    }
    
    .option-row {
      gap: 6px;
    }
    
    .opt-choice {
      padding: 10px 6px;
      font-size: 0.75rem;
    }
    
    #q-prompt {
      font-size: 1rem;
    }
    
    .game-opt {
      padding: 12px;
      font-size: 0.9rem;
      min-height: 52px;
      gap: 8px;
    }
    
    .year-reveal {
      font-size: 0.8rem;
    }

    .timeline-item {
      padding: 8px 10px;
      font-size: 0.85rem;
    }

    .event-year {
      font-size: 0.75rem;
    }
  }
  
  /* --- TABLET AND LARGER SCREENS --- */
  @media (min-width: 768px) {
    body {
      padding: 30px;
    }
    
    .game-screen {
      max-width: 600px;
    }
    
    h1 {
      font-size: 2.5rem;
    }
    
    .mode-card:hover {
      transform: translateX(8px);
    }
  }
  
  @media (min-width: 1024px) {
    .game-screen {
      max-width: 650px;
    }
    
    .card {
      padding: 28px;
    }
  }

  /* ── DEAD RECKONING MODE STYLES ── */
  .dr-slider-wrap {
    text-align: center;
    padding: 10px 4px 4px 4px;
  }

  .dr-slider-value {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 18px;
  }

  .dr-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background: var(--navy-border);
    outline: none;
    cursor: pointer;
  }

  .dr-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--navy);
    box-shadow: 0 2px 10px rgba(240,192,64,0.5);
    cursor: pointer;
  }

  .dr-slider::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--navy);
    box-shadow: 0 2px 10px rgba(240,192,64,0.5);
    cursor: pointer;
  }

  .dr-slider:disabled::-webkit-slider-thumb {
    background: var(--text-dim);
    box-shadow: none;
  }

  .dr-slider:disabled::-moz-range-thumb {
    background: var(--text-dim);
    box-shadow: none;
  }

  .dr-slider-bounds {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 8px;
    font-weight: 600;
  }

  .dr-review-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
  }

  .dr-review-row {
    background: var(--navy-mid);
    border-left: 3px solid var(--navy-border);
    border-radius: 8px;
    padding: 12px 14px;
  }

  .dr-review-row.good { border-left-color: var(--teal); }
  .dr-review-row.mid  { border-left-color: var(--gold); }
  .dr-review-row.bad  { border-left-color: var(--red); }

  .dr-review-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
  }

  .dr-review-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    text-transform: uppercase;
  }

  .dr-review-score {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
  }

  .dr-review-statement {
    font-size: 0.88rem;
    color: var(--text-bright);
    line-height: 1.4;
    margin-bottom: 6px;
  }

  .dr-review-answer {
    font-size: 0.78rem;
    color: var(--text-mid);
  }

  .dr-review-answer strong {
    color: var(--text-bright);
  }


/* Mode Title Styling */
.results-mode-header {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim, #6b7280);
    margin-bottom: 8px;
    font-weight: 600;
}

/* Round by Round Collapsible Accordion Styling */
.dr-review-details {
    margin-top: 24px;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
}

.dr-review-details summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none; /* Removes standard browser arrow marker */
    user-select: none;
}

/* Hide standard summary arrow indicator in Webkit/Safari browsers */
.dr-review-details summary::-webkit-details-marker {
    display: none;
}

.dr-review-details summary .toggle-icon {
    font-size: 0.75rem;
    color: var(--gold, #f59e0b);
    transition: transform 0.2s ease;
}

/* Rotate icon marker smoothly when expanded */
.dr-review-details[open] summary .toggle-icon {
    transform: rotate(180deg);
}

.dr-review-details .dr-review-list {
    margin-top: 16px;
}




