  /* Self-hosted fonts (privacy: no requests to Google) */
  @font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(fonts/cinzel-latin.woff2) format('woff2');
  }
  @font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(fonts/nunito-latin.woff2) format('woff2');
  }

  :root {
    --gold: #c8aa6e;
    --muted: #918c97;
    --text: #d4cfc6;
    --text-light: #e8e0d0;
    --bg-dark: #1a1828;
    --bg-panel: #1c1b2e;
    --bg-panel-mid: #17182a;
    --accent-blue: #8b9dc3;
    --accent-purple: #b8b0c4;
    --correct: #a0d8a0;
    --correct-bg: rgba(60, 100, 60, 0.3);
    --wrong: #d8a0a0;
    --wrong-bg: rgba(100, 40, 40, 0.3);
    --wrong-accent: #e94560;
    --border: rgba(180, 155, 100, 0.15);
    --border-hover: rgba(200, 170, 110, 0.4);
  }

  .skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--bg-dark);
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 10000;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s;
  }
  .skip-link:focus {
    top: 8px;
  }

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

  :focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
  }

  body {
    font-family: 'Nunito', sans-serif;
    background: #111118;
    background-image:
      radial-gradient(ellipse at 20% 50%, rgba(66, 46, 92, 0.3) 0%, transparent 60%),
      radial-gradient(ellipse at 80% 20%, rgba(40, 55, 85, 0.3) 0%, transparent 50%);
    color: var(--text);
    display: flex; justify-content: center; align-items: flex-start;
    min-height: 100vh; padding: 20px;
  }

  .game {
    background: linear-gradient(165deg, #1c1b2e 0%, #17182a 50%, #1a1828 100%);
    border: 1px solid rgba(180, 155, 100, 0.15);
    border-radius: 4px;
    padding: 28px;
    max-width: 480px; width: 100%;
    box-shadow: 0 4px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(180,155,100,0.08);
  }

  .header { text-align: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(180,155,100,0.12); }
  .header h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  }
  .beta-badge {
    display: inline-block;
    font-family: 'Nunito', sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a1828;
    background: linear-gradient(135deg, #c8aa6e, #e8d5a3);
    padding: 2px 7px;
    border-radius: 3px;
    vertical-align: super;
    margin-left: 6px;
    text-shadow: none;
  }
  .header-meta { font-size: 0.8rem; color: var(--muted); display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; align-items: center; }
  .streak { color: var(--gold); }

  .game-layout { display: flex; flex-direction: column; }

  .glamour-info {
    text-align: center; padding: 12px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(180,155,100,0.1);
    border-radius: 3px;
  }
  .glamour-image {
    width: 100%; height: auto;
    border-radius: 2px; margin-bottom: 10px;
    border: 1px solid rgba(180,155,100,0.15);
    cursor: zoom-in;
  }

  /* Lightbox for native-resolution image viewing */
  .lightbox-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85);
    z-index: 500; display: flex; justify-content: center; align-items: center;
    cursor: zoom-out; padding: 20px;
  }
  .lightbox-overlay img {
    border-radius: 4px; border: 1px solid rgba(180,155,100,0.2);
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  }
  .lightbox-inner {
    position: relative; display: inline-block; max-width: 95vw; max-height: 95vh;
  }
  .lightbox-inner img { max-width: 95vw; max-height: 95vh; display: block; }
  .lightbox-overlay .gallery-btn {
    z-index: 501; position: absolute; top: 50%; transform: translateY(-50%);
  }
  .lightbox-overlay .gallery-prev { left: -48px; }
  .lightbox-overlay .gallery-next { right: -48px; }
  @media (max-width: 600px) {
    .lightbox-overlay .gallery-prev { left: 4px; }
    .lightbox-overlay .gallery-next { right: 4px; }
  }
  .glamour-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem; font-weight: 700;
    color: var(--text-light); margin-bottom: 6px;
    letter-spacing: 0.03em;
  }
  .glamour-author { color: #9a8fad; font-size: 0.8rem; margin-bottom: 4px; }
  .glamour-author span { color: #c0b5d0; font-weight: 600; }
  .glamour-link { color: var(--accent-blue); text-decoration: none; font-size: 0.8rem; }
  .glamour-link:hover { color: var(--gold); }
  .report-btn { background: none; border: 1px solid rgba(180,155,100,0.2); color: var(--muted); font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; cursor: pointer; margin-left: 8px; position: relative; }
  .report-btn::after { content: ''; position: absolute; inset: -8px; }
  .report-btn:hover { color: var(--gold); border-color: rgba(200,170,110,0.4); }
  .report-link-row { display: flex; align-items: center; justify-content: center; gap: 4px; }
  .report-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 10000; display: flex; align-items: center; justify-content: center; }
  .report-panel { background: #1e1a24; border: 1px solid rgba(180,155,100,0.15); border-radius: 10px; padding: 24px; max-width: 400px; width: 90%; color: var(--text-light); }
  .report-panel h3 { margin: 0 0 12px; font-size: 1rem; color: var(--gold); }
  .report-panel label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 4px; }
  .report-panel select, .report-panel textarea { width: 100%; background: #14111a; border: 1px solid rgba(180,155,100,0.15); color: var(--text-light); border-radius: 6px; padding: 8px; font-size: 0.85rem; margin-bottom: 12px; font-family: inherit; }
  .report-panel textarea { min-height: 60px; resize: vertical; }
  .report-panel .report-actions { display: flex; gap: 8px; justify-content: flex-end; }
  .report-panel button { padding: 6px 16px; border-radius: 6px; border: none; cursor: pointer; font-size: 0.85rem; }
  .report-submit { background: var(--gold); color: #14111a; }
  .report-cancel { background: none; border: 1px solid rgba(180,155,100,0.2) !important; color: var(--muted); }
  .report-toast { position: fixed; bottom: 60px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #14111a; padding: 8px 20px; border-radius: 6px; font-size: 0.85rem; z-index: 10001; animation: fadeout 2s forwards; }
  @keyframes fadeout { 0%,70% { opacity: 1; } 100% { opacity: 0; } }

  /* Streak flame tiers */
  .streak-ember { color: var(--gold); }
  .streak-fire { color: #e8a030; text-shadow: 0 0 6px rgba(232,160,48,0.4); }
  .streak-inferno { color: #f06030; text-shadow: 0 0 8px rgba(240,96,48,0.5), 0 0 16px rgba(240,96,48,0.2); }

  /* Hint button */
  .hint-btn {
    background: rgba(200,170,110,0.06); border: 1px solid rgba(200,170,110,0.15); color: var(--muted);
    font-size: 0.72rem; padding: 3px 10px; border-radius: 4px; cursor: pointer;
    margin-bottom: 10px; transition: all 0.15s; letter-spacing: 0.02em;
  }
  .hint-btn:hover:not(:disabled) { background: rgba(200,170,110,0.1); border-color: rgba(200,170,110,0.3); color: var(--gold); }
  .hint-btn:disabled { opacity: 0.35; cursor: default; }
  .hint-used-tag { color: var(--accent-blue); font-size: 0.7rem; margin-left: 6px; }
  .option-btn.eliminated {
    opacity: 0.3; cursor: default; pointer-events: none;
    text-decoration: line-through; border-color: rgba(120,100,80,0.15);
    background: rgba(0,0,0,0.1); color: #5a5560;
  }

  /* Yesterday's recap */
  .yesterday-recap {
    margin-top: 16px; padding: 12px;
    background: rgba(0,0,0,0.15); border: 1px solid rgba(180,155,100,0.08);
    border-radius: 3px; font-size: 0.8rem;
  }
  .yesterday-toggle { background: none; border: none; color: var(--muted); font-size: 0.8rem; cursor: pointer; width: 100%; text-align: center; padding: 4px; }
  .yesterday-toggle:hover { color: var(--gold); }
  .yesterday-body { margin-top: 8px; text-align: center; }
  .yesterday-body img { max-width: 120px; object-fit: contain; border-radius: 3px; border: 1px solid rgba(180,155,100,0.15); margin-bottom: 6px; }
  .yesterday-name { color: var(--text-light); font-family: 'Cinzel', serif; font-size: 0.85rem; margin-bottom: 2px; }
  .yesterday-author { color: var(--muted); font-size: 0.7rem; }
  .yesterday-slots { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 6px; }
  .yesterday-slot { font-size: 0.7rem; color: #b8b0a4; background: rgba(0,0,0,0.2); padding: 2px 6px; border-radius: 2px; }
  .yesterday-slot-label { color: var(--muted); text-transform: uppercase; font-size: 0.6rem; }

  /* Archive/calendar */
  .archive-section { margin-top: 20px; }
  .archive-toggle { background: none; border: 1px solid rgba(180,155,100,0.15); color: var(--muted); font-size: 0.8rem; padding: 6px 16px; border-radius: 3px; cursor: pointer; width: 100%; }
  .archive-toggle:hover { color: var(--gold); border-color: rgba(200,170,110,0.3); }
  .archive-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
    margin-top: 10px; max-height: 300px; overflow-y: auto;
  }
  .archive-day {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; border-radius: 2px; cursor: pointer;
    border: 1px solid rgba(180,155,100,0.08); transition: all 0.15s;
  }
  .archive-day:hover { border-color: rgba(200,170,110,0.4); }
  .archive-day.played { background: rgba(60,100,60,0.2); color: var(--correct); }
  .archive-day.selected { border-color: var(--gold); background: rgba(200,170,110,0.15); color: var(--gold); }
  .archive-preview {
    margin-top: 10px; padding: 10px; background: rgba(0,0,0,0.2);
    border-radius: 3px; text-align: center; font-size: 0.8rem;
  }
  .archive-preview img { width: 100px; height: auto; border-radius: 2px; margin-bottom: 6px; }

  /* Share card canvas */
  .share-card-btn {
    background: none; border: 1px solid rgba(180,155,100,0.2); color: var(--muted);
    font-size: 0.75rem; padding: 6px 14px; border-radius: 3px; cursor: pointer; margin-left: 8px;
  }
  .share-card-btn:hover { color: var(--gold); border-color: rgba(200,170,110,0.4); }

  .gameplay-panel { margin-top: 20px; }

  .dev-reset { background: #222; color: #666; border: 1px solid #333; padding: 6px 12px; border-radius: 2px; font-size: 0.7rem; cursor: pointer; opacity: 0.4; }
  .dev-reset:hover { opacity: 1; background: #8b2e2e; color: #ddd; }

  .slot-label { text-align: center; font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; }
  .slot-label strong {
    color: var(--gold);
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  .options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
  .option-btn {
    background: rgba(30, 28, 45, 0.8);
    border: 1px solid rgba(180,155,100,0.12);
    color: var(--text);
    padding: 12px 16px;
    border-radius: 3px;
    font-size: 0.9rem;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    min-height: 44px;
  }
  @media (hover: hover) {
    .option-btn:hover:not(:disabled) {
      border-color: rgba(200,170,110,0.4);
      background: rgba(200,170,110,0.08);
      color: var(--text-light);
    }
  }
  .option-btn:disabled { cursor: default; opacity: 0.8; }
  .option-btn.correct, .option-btn.reveal {
    background: rgba(60, 100, 60, 0.3);
    border-color: rgba(100, 180, 100, 0.4);
    color: var(--correct);
    opacity: 1;
    animation: shimmer-gold 0.6s ease-out;
  }
  .option-btn.wrong {
    background: rgba(100, 40, 40, 0.3);
    border-color: rgba(180, 80, 80, 0.4);
    color: var(--wrong);
    animation: shake-wrong 0.4s ease-out;
  }
  @keyframes shimmer-gold {
    0% { box-shadow: inset 0 0 0 0 rgba(200,170,110,0); }
    30% { box-shadow: inset 200px 0 60px -20px rgba(200,170,110,0.25); }
    100% { box-shadow: inset 0 0 0 0 rgba(200,170,110,0); }
  }
  @keyframes shake-wrong {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
  }

  .progress { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
  .progress-dot {
    width: 30px; height: 30px; border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; color: #888; font-weight: bold;
    border: 1px solid rgba(180,155,100,0.1);
  }
  .progress-dot.pending { background: rgba(0,0,0,0.2); }
  .progress-dot.clickable { cursor: pointer; transition: all 0.15s; }
  .progress-dot.clickable:hover { border-color: rgba(200,170,110,0.35); background: rgba(200,170,110,0.06); }
  .progress-dot.current { background: rgba(200,170,110,0.1); border-color: rgba(200,170,110,0.4); color: var(--gold); }
  .progress-dot.correct { background: rgba(60,100,60,0.35); border-color: rgba(100,180,100,0.3); color: var(--correct); }
  .progress-dot.wrong { background: rgba(100,40,40,0.35); border-color: rgba(180,80,80,0.3); color: var(--wrong); }

  .results { text-align: center; padding: 16px 0; }
  .results h2 { font-family: 'Cinzel', serif; font-size: 1.2rem; margin-bottom: 8px; color: var(--text-light); }
  .results .score { font-size: 1.8rem; font-weight: bold; color: var(--gold); margin-bottom: 12px; font-family: 'Cinzel', serif; }
  .results-grid { font-size: 1.4rem; letter-spacing: 4px; margin-bottom: 16px; }

  .breakdown { text-align: left; margin-bottom: 20px; }
  .breakdown-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 0; border-bottom: 1px solid rgba(180,155,100,0.08); font-size: 0.82rem;
  }
  .breakdown-slot { color: var(--muted); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.05em; }
  .breakdown-answer { color: #b8b0a4; }
  .breakdown-icon { font-size: 1rem; }

  .share-btn {
    background: linear-gradient(135deg, #8b6b3e, #a47d4a);
    color: #1a1828; font-weight: 700;
    border: none; padding: 10px 24px;
    border-radius: 3px; font-size: 0.9rem;
    cursor: pointer; transition: all 0.15s;
    font-family: 'Nunito', sans-serif;
    letter-spacing: 0.03em;
  }
  .share-btn:hover { background: linear-gradient(135deg, #a47d4a, #c8aa6e); }
  .share-msg { font-size: 0.8rem; color: #8bab8b; margin-top: 8px; min-height: 20px; }

  .next-info { font-size: 0.8rem; color: #706a78; margin-top: 12px; }

  /* Stats */
  .stats-btn {
    background: none; border: none; color: var(--muted); font-size: 0.8rem;
    cursor: pointer; font-family: 'Nunito', sans-serif; padding: 0;
  }
  .stats-btn:hover { color: var(--gold); }
  .stats-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7); z-index: 200;
    display: flex; justify-content: center; align-items: center;
    padding: 20px;
  }
  .stats-panel {
    background: linear-gradient(165deg, #1c1b2e 0%, #17182a 50%, #1a1828 100%);
    border: 1px solid rgba(180,155,100,0.2); border-radius: 4px;
    padding: 24px; max-width: 380px; width: 100%;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    max-height: 80vh; overflow-y: auto;
  }
  .stats-panel h2 {
    font-family: 'Cinzel', serif; color: var(--gold); font-size: 1.1rem;
    text-align: center; margin-bottom: 16px; letter-spacing: 0.08em;
  }
  .stats-close {
    float: right; background: none; border: none; color: var(--muted);
    font-size: 1.2rem; cursor: pointer; line-height: 1;
  }
  .stats-close:hover { color: var(--gold); }
  .info-btn {
    background: none; border: none; color: var(--muted); font-size: 0.8rem;
    cursor: pointer; font-family: 'Nunito', sans-serif; padding: 0;
  }
  .info-btn:hover { color: var(--gold); }
  .info-panel {
    background: linear-gradient(165deg, #1c1b2e 0%, #17182a 50%, #1a1828 100%);
    border: 1px solid rgba(180,155,100,0.2); border-radius: 4px;
    padding: 24px; max-width: 420px; width: 100%;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    max-height: 80vh; overflow-y: auto;
  }
  .info-panel h2 {
    font-family: 'Cinzel', serif; color: var(--gold); font-size: 1.1rem;
    text-align: center; margin-bottom: 16px; letter-spacing: 0.08em;
  }
  .info-panel h3 {
    font-family: 'Cinzel', serif; color: var(--gold); font-size: 0.85rem;
    margin: 14px 0 6px; letter-spacing: 0.05em;
  }
  .info-panel p, .info-panel li {
    color: var(--accent-purple); font-size: 0.8rem; line-height: 1.5; margin: 0 0 8px;
  }
  .info-panel ul { padding-left: 18px; margin: 0 0 8px; }
  .info-panel .info-emoji { font-size: 0.9rem; margin-right: 4px; }
  .info-panel .info-divider {
    border: none; border-top: 1px solid rgba(180,155,100,0.1);
    margin: 14px 0;
  }
  .stats-numbers {
    display: flex; justify-content: space-around; text-align: center;
    margin-bottom: 20px; padding-bottom: 16px;
    border-bottom: 1px solid rgba(180,155,100,0.1);
  }
  .stats-numbers .stat-val { font-size: 1.4rem; font-weight: 700; color: var(--text-light); font-family: 'Cinzel', serif; }
  .stats-numbers .stat-label { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
  .stats-dist-title { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
  .stats-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
  .stats-bar-label { font-size: 0.75rem; color: var(--muted); min-width: 14px; text-align: right; }
  .stats-bar-track { flex: 1; height: 18px; background: rgba(0,0,0,0.2); border-radius: 2px; overflow: hidden; }
  .stats-bar-fill {
    height: 100%; border-radius: 2px;
    display: flex; align-items: center; justify-content: flex-end;
    padding-right: 6px; font-size: 0.65rem; color: #1a1828; font-weight: 700;
    min-width: 18px; transition: width 0.3s;
  }
  .stats-bar-fill.gold { background: linear-gradient(90deg, #8b6b3e, #c8aa6e); }
  .stats-bar-fill.muted { background: rgba(180,155,100,0.25); color: var(--muted); }

  /* Confetti canvas */
  .confetti-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 300;
  }

  /* Mode toggle */
  .mode-toggle {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 0; font-size: 0.78rem; color: var(--muted);
  }
  .mode-toggle-btn {
    position: relative; width: 36px; height: 20px;
    background: rgba(30, 28, 45, 0.8); border: 1px solid rgba(180,155,100,0.2);
    border-radius: 10px; cursor: pointer; transition: all 0.2s;
  }
  .mode-toggle-btn::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #7a7580; transition: all 0.2s;
  }
  .mode-toggle-btn.active {
    background: rgba(200,170,110,0.2); border-color: rgba(200,170,110,0.5);
  }
  .mode-toggle-btn.active::after { left: 18px; background: var(--gold); }
  .mode-toggle-btn:disabled { opacity: 0.4; cursor: default; }
  .start-btn {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    padding: 12px 40px;
    background: linear-gradient(135deg, #c8aa6e, #e8d5a3);
    color: #1a1828;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: all 0.2s;
  }
  .start-btn:hover { transform: scale(1.05); box-shadow: 0 2px 12px rgba(200,170,110,0.3); }
  .mode-label-hard { color: var(--muted); transition: color 0.2s; }
  .mode-label-hard.active { color: var(--gold); }

  /* Searchable dropdown */
  .search-box { position: relative; margin-bottom: 20px; }
  .search-input {
    width: 100%; padding: 12px 16px;
    background: rgba(30, 28, 45, 0.8);
    border: 1px solid rgba(180,155,100,0.2);
    border-radius: 3px; color: var(--text);
    font-size: 0.9rem; font-family: 'Nunito', sans-serif;
    outline: none; transition: border-color 0.15s;
  }
  .search-input::placeholder { color: #706a78; }
  .search-input:focus { border-color: rgba(200,170,110,0.5); }
  .dropdown-list {
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: 240px; overflow-y: auto;
    background: #1c1b2e; border: 1px solid rgba(180,155,100,0.2);
    border-top: none; border-radius: 0 0 3px 3px;
    z-index: 100; display: none;
  }
  .dropdown-list.open { display: block; }
  .dropdown-item {
    padding: 8px 16px; font-size: 0.85rem; color: #b8b0a4;
    cursor: pointer; transition: all 0.1s;
  }
  .dropdown-item:hover, .dropdown-item.highlighted {
    background: rgba(200,170,110,0.1); color: var(--text-light);
  }
  .dropdown-item b { color: var(--gold); font-weight: 700; }
  .dropdown-empty {
    padding: 12px 16px; font-size: 0.82rem; color: #504a55;
    font-style: italic;
  }
  .dropdown-list::-webkit-scrollbar { width: 6px; }
  .dropdown-list::-webkit-scrollbar-track { background: transparent; }
  .dropdown-list::-webkit-scrollbar-thumb { background: rgba(180,155,100,0.2); border-radius: 3px; }

  /* Hard mode in-progress results */
  .hard-history { margin-bottom: 14px; }
  .hard-history-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 8px; font-size: 0.78rem; border-radius: 2px; margin-bottom: 2px;
  }
  .hard-history-row.correct { background: rgba(60,100,60,0.15); }
  .hard-history-row.wrong { background: rgba(100,40,40,0.15); }
  .hard-history-row.wrong-guess { background: none; padding-left: 20px; padding-top: 0; margin-bottom: 4px; }
  .hard-history-slot { color: var(--muted); text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.05em; min-width: 55px; }
  .hard-history-answer { color: #b8b0a4; flex: 1; text-align: left; margin-left: 8px; }
  .hard-history-row.wrong-guess .hard-history-slot { color: var(--wrong-accent); }
  .hard-history-row.wrong-guess .hard-history-answer { color: var(--wrong); }

  /* Desktop: side-by-side layout */
  @media (min-width: 860px) {
    .game { max-width: 860px; }
    .game-layout { flex-direction: row; gap: 24px; align-items: flex-start; }
    .glamour-info { flex: 0 0 380px; position: sticky; top: 20px; }
    .gameplay-panel { flex: 1; min-width: 0; margin-top: 0; }
  }

  /* Image Gallery */
  .image-gallery { position: relative; }
  .gallery-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.6); color: var(--gold); border: 1px solid rgba(180,155,100,0.3);
    font-size: 1.6rem; width: 44px; height: 44px; border-radius: 50%;
    cursor: pointer; display: grid; place-items: center;
    transition: all 0.15s; line-height: 1; padding: 0;
    font-family: 'Nunito', sans-serif; text-indent: 0;
  }
  .gallery-btn:hover { background: rgba(200,170,110,0.2); border-color: rgba(200,170,110,0.5); }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
  .gallery-dots {
    display: flex; justify-content: center; align-items: center; gap: 6px;
    padding: 8px 0 4px; position: relative;
  }
  .gallery-dots .report-btn { position: absolute; right: 0; margin-left: 0; }
  .feedback-btn {
    background: none; border: 1px solid rgba(180,155,100,0.2); color: var(--muted);
    font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; cursor: pointer;
    position: relative;
  }
  .feedback-btn::after { content: ''; position: absolute; inset: -8px; }
  .feedback-btn:hover { color: var(--gold); border-color: var(--border-hover); }
  .gallery-dots .feedback-btn { position: absolute; left: 0; }
  .gallery-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(180,155,100,0.2); border: 1px solid rgba(180,155,100,0.3);
    transition: all 0.2s;
  }
  .gallery-dot.active { background: var(--gold); border-color: var(--gold); }

  /* Mobile: small screens */
  @media (max-width: 400px) {
    .gallery-btn { width: 44px; height: 44px; font-size: 1.3rem; }
    .gallery-prev { left: 4px; }
    .gallery-next { right: 4px; }
    .header-meta { gap: 10px; }
    .game { padding: 16px; }
  }

  /* Error screen */
  .error-screen { text-align: center; padding: 40px; color: var(--accent-purple); }
  .error-screen h2 { color: var(--gold); font-family: Cinzel, serif; }
  .error-reset-btn {
    margin-top: 16px; padding: 8px 20px; background: var(--gold); color: #1a1828;
    border: none; border-radius: 4px; cursor: pointer; font-family: Nunito, sans-serif;
  }

  /* Modal system */
  .modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7); z-index: 200;
    display: flex; justify-content: center; align-items: center;
  }
  .modal-close {
    position: absolute; top: 10px; right: 14px; background: none; border: none;
    color: var(--muted); font-size: 1.6rem; cursor: pointer; line-height: 1;
  }
  .modal-close:hover { color: var(--gold); }

  /* Role badge */
  .role-badge {
    font-size: 0.7rem; padding: 2px 8px; border-radius: 10px;
    border: 1px solid; display: flex; align-items: center;
  }

  /* Info panel inline-style replacements */
  .info-highlight-gold { color: var(--gold); }
  .info-highlight-light { color: var(--text-light); }
  .info-color-correct { color: #4caf50; }
  .info-color-wrong { color: #f44336; }

  /* Progress dot bonus (dashed border) */
  .progress-dot.bonus { border-style: dashed; }

  /* Start screen */
  .start-wrapper { text-align: center; padding: 24px 0; }
  .start-instructions { color: var(--muted); margin-bottom: 16px; font-size: 0.85rem; }

  /* Hint wrapper */
  .hint-wrapper { text-align: center; margin-bottom: 8px; }

  /* View results */
  .view-results-wrapper { text-align: center; padding: 24px 0; }
  .view-results-btn { font-size: 1rem; padding: 12px 32px; }

  .breakdown-equivalent { color: #8bab8b; }
  .breakdown-wrong { color: var(--wrong-accent); }

  /* Info panel footer */
  .info-footer { color: var(--muted); font-size: 0.7rem; text-align: center; }

  /* Updates panel */
  .updates-list { font-size: 0.8rem; color: var(--accent-purple); }
  .updates-entry { margin-bottom: 10px; }
  .updates-date { color: var(--gold); }

  /* Results modal */
  .results-panel { max-width: 440px; }
  .hard-mode-label { font-size: 0.75rem; color: var(--gold); margin-bottom: 4px; letter-spacing: 0.1em; text-align: center; }
  .results-score { font-size: 1.8rem; font-weight: bold; color: var(--gold); text-align: center; margin-bottom: 8px; font-family: 'Cinzel', serif; }
  .results-grid { font-size: 1.4rem; letter-spacing: 4px; text-align: center; margin-bottom: 12px; }
  .results-glamour-section {
    margin: 12px 0; padding: 12px 0; text-align: center;
    border-top: 1px solid rgba(180,155,100,0.15); border-bottom: 1px solid rgba(180,155,100,0.15);
  }
  .results-glamour-name { color: var(--text-light); font-family: 'Cinzel', serif; font-size: 0.95rem; margin-bottom: 4px; }
  .results-glamour-author { color: #9a8fad; font-size: 0.8rem; margin-bottom: 6px; }
  .results-glamour-author span { color: #c0b5d0; font-weight: 600; }
  .results-glamour-link { text-align: center; }
  .results-glamour-cta { color: var(--muted); font-size: 0.75rem; margin-top: 6px; font-style: italic; }
  .results-share-row { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
  .bonus-tag { color: var(--accent-blue); font-size: 0.65rem; }
  .breakdown-sub { padding-left: 16px; border-bottom: none; }

  /* Stats mode label */
  .stats-mode-label { font-size: 0.7rem; color: var(--muted); font-weight: 400; }
  .stats-mode-label.hard { color: var(--gold); }

  /* Community stats */
  .community-stats-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(180,155,100,0.08); font-size: 0.75rem; color: var(--muted); }
  .community-stats-count { margin-bottom: 6px; }
  .community-stats-row { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
  .community-stats-label { width: 50px; text-transform: uppercase; font-size: 0.6rem; }
  .community-stats-track { flex: 1; background: rgba(0,0,0,0.2); border-radius: 2px; height: 14px; overflow: hidden; }
  .community-stats-fill { height: 100%; border-radius: 2px; }
  .community-stats-fill.tier-high { background: rgba(100,180,100,0.4); }
  .community-stats-fill.tier-mid { background: rgba(200,170,110,0.3); }
  .community-stats-fill.tier-low { background: rgba(180,80,80,0.3); }
  .community-stats-pct { width: 30px; text-align: right; font-size: 0.65rem; }

  /* Dev tools prompt */
  .dev-prompt-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 10000;
    display: flex; justify-content: center; align-items: center; padding: 20px;
  }
  .dev-prompt-panel {
    background: linear-gradient(165deg, #1c1b2e 0%, #17182a 50%, #1a1828 100%);
    border: 1px solid rgba(180,155,100,0.2); border-radius: 4px; padding: 24px;
    max-width: 320px; width: 100%; text-align: center;
  }
  .dev-prompt-title { font-family: Cinzel, serif; color: var(--gold); font-size: 1rem; margin-bottom: 16px; }
  .dev-prompt-input {
    width: 100%; padding: 8px 12px; background: #0f0e1a; border: 1px solid rgba(180,155,100,0.3);
    border-radius: 4px; color: var(--text); font-family: Nunito, sans-serif; font-size: 0.85rem;
    margin-bottom: 8px; outline: none;
  }
  .dev-prompt-error { color: var(--wrong-accent); font-size: 0.75rem; min-height: 1.2em; margin-bottom: 12px; }
  .dev-prompt-btn {
    width: 100%; padding: 8px; border-radius: 4px; font-family: Nunito, sans-serif;
    font-size: 0.85rem; cursor: pointer; margin-bottom: 8px;
  }
  .dev-prompt-btn-primary { background: var(--gold); color: #1a1828; border: none; font-weight: 700; }
  .dev-prompt-btn-tred { background: rgba(91,46,139,0.3); color: var(--accent-purple); border: 1px solid rgba(91,46,139,0.4); }
  .dev-prompt-btn-cancel { background: none; color: var(--muted); border: none; font-size: 0.8rem; }
  .dev-bar { position: fixed; bottom: 10px; right: 10px; display: flex; gap: 6px; z-index: 9999; }

