/* ═══════════════════════════════════════════════════════════════════════════
   KRIMINIS v10.0 — IMPROVEMENTS CSS
   Clases reutilizables + estilos para las 10 mejoras
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────
   [MEJORA #6] CLASES REUTILIZABLES — Reemplazo de inline styles
   ─────────────────────────────────────────────────────────────────────────  */

/* Layout utilities */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-col-center { display: flex; flex-direction: column; align-items: center; }
.flex-gap-8 { display: flex; gap: 8px; }
.flex-gap-10 { display: flex; gap: 10px; }
.flex-gap-15 { display: flex; gap: 15px; }
.flex-gap-20 { display: flex; gap: 20px; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.block { display: block; }

/* Grid systems */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.grid-file { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }

/* Spacing */
.mb-4 { margin-bottom: 4px; }
.mb-5 { margin-bottom: 5px; }
.mb-8 { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.mb-30 { margin-bottom: 30px; }
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.ml-auto { margin-left: auto; }
.p-10 { padding: 10px; }
.p-12 { padding: 12px; }
.p-15 { padding: 15px; }
.p-20 { padding: 20px; }
.p-25 { padding: 25px; }
.p-30 { padding: 30px; }
.p-50 { padding: 50px; }
.px-12 { padding-left: 12px; padding-right: 12px; }
.py-15 { padding-top: 15px; padding-bottom: 15px; }

/* Typography */
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }
.font-body { font-family: var(--font-body); }
.text-xs { font-size: 0.6rem; }
.text-sm { font-size: 0.7rem; }
.text-sml { font-size: 0.75rem; }
.text-base { font-size: 0.8rem; }
.text-md { font-size: 0.85rem; }
.text-normal { font-size: 0.9rem; }
.text-lg { font-size: 1rem; }
.text-xl { font-size: 1.1rem; }
.text-2xl { font-size: 1.2rem; }
.text-3xl { font-size: 1.3rem; }
.text-4xl { font-size: 1.4rem; }
.text-5xl { font-size: 2rem; }
.text-icon-sm { font-size: 2rem; }
.text-icon-md { font-size: 2.5rem; }
.text-icon-lg { font-size: 3.5rem; }
.text-icon-xl { font-size: 4rem; }
.text-icon-xxl { font-size: 5rem; }
.italic { font-style: italic; }
.bold { font-weight: bold; }
.ls-2 { letter-spacing: 2px; }
.ls-5 { letter-spacing: 5px; }
.lh-17 { line-height: 1.7; }
.lh-16 { line-height: 1.6; }

/* Colors */
.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted); }
.text-cyan { color: var(--neon-cyan); }
.text-magenta { color: var(--neon-magenta); }
.text-green { color: var(--neon-green); }
.text-red { color: var(--neon-red); }
.text-gold { color: var(--neon-gold); }
.text-orange { color: var(--neon-orange); }
.text-purple { color: var(--neon-purple); }

/* Cards & containers */
.card-dark { background: rgba(0, 0, 0, 0.2); border-radius: var(--radius-sm); }
.card-dark-md { background: rgba(0, 0, 0, 0.2); border-radius: var(--radius-md); }
.card-bg { background: var(--bg-card); border-radius: var(--radius-md); }
.card-glass { background: rgba(0, 0, 0, 0.3); border-radius: var(--radius-md); }
.section-comment { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); letter-spacing: 2px; margin-bottom: 10px; }
.stat-box { background: rgba(0, 0, 0, 0.2); padding: 15px; border-radius: var(--radius-sm); text-align: center; }
.stat-box-sm { background: rgba(0, 0, 0, 0.2); padding: 12px; border-radius: var(--radius-sm); text-align: center; }
.stat-box-inline { text-align: center; padding: 10px 15px; background: rgba(0, 0, 0, 0.2); border-radius: var(--radius-sm); }

/* Badges */
.badge { padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; }
.badge-sm { padding: 3px 10px; border-radius: 12px; font-size: 0.7rem; }
.badge-md { padding: 5px 12px; border-radius: 15px; font-size: 0.85rem; }

/* Progress bars */
.progress-track { height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; }
.progress-track-lg { height: 10px; background: rgba(255, 255, 255, 0.1); border-radius: 5px; overflow: hidden; }
.progress-fill { height: 100%; transition: width 0.5s; border-radius: inherit; }
.progress-fill-cyber { background: var(--gradient-cyber); }
.progress-fill-gold { background: var(--gradient-gold); }
.progress-fill-green { background: var(--neon-green); }

/* Stat bars (used in character panels) */
.char-stat-row { margin-bottom: 8px; }
.char-stat-header { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 3px; }
.char-stat-track { height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; }
.char-stat-fill { height: 100%; transition: width 0.5s; }
.char-stat-track-sm { height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; overflow: hidden; }

/* Borders */
.border-left-gold { border-left: 3px solid var(--neon-gold); }
.border-left-muted { border-left: 3px solid var(--text-muted); }
.border-top-subtle { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.border-bottom-gold { padding-bottom: 20px; border-bottom: 1px solid rgba(255, 215, 0, 0.2); }

/* Interrogation styles */
.interr-char-card { background: var(--bg-card); padding: 25px; border-radius: var(--radius-md); cursor: pointer; text-align: center; transition: all 0.3s; border: 2px solid; }
.interr-char-card:hover { transform: translateY(-2px); }
.interr-header { display: flex; align-items: center; gap: 15px; padding: 20px; background: rgba(0, 0, 0, 0.3); border-radius: var(--radius-md) var(--radius-md) 0 0; border: 1px solid; }
.interr-body { background: var(--bg-card); border: 1px solid; border-top: none; border-radius: 0 0 var(--radius-md) var(--radius-md); padding: 25px; min-height: 300px; }
.interr-dialogue { margin-bottom: 20px; animation: fadeIn 0.5s ease; }
.interr-option { display: block; width: 100%; text-align: left; padding: 15px 20px; margin-bottom: 8px; background: rgba(0, 255, 255, 0.05); border: 1px solid rgba(0, 255, 255, 0.2); border-radius: var(--radius-sm); color: var(--text-light); font-size: 0.9rem; cursor: pointer; transition: all 0.3s; font-family: var(--font-body); }
.interr-option:hover, .interr-option:focus-visible { border-color: var(--neon-cyan); background: rgba(0, 255, 255, 0.1); outline: none; }
.interr-ending { margin-top: 25px; padding: 25px; border: 2px solid; border-radius: var(--radius-md); animation: fadeIn 0.5s ease; }
.interr-ending.full { background: rgba(0, 255, 136, 0.08); border-color: var(--neon-green); }
.interr-ending.partial { background: rgba(255, 215, 0, 0.08); border-color: var(--neon-gold); }

/* Result panels */
.result-correct { background: rgba(0, 255, 136, 0.1); border: 1px solid var(--neon-green); padding: 20px; border-radius: var(--radius-md); }
.result-wrong { background: rgba(255, 0, 102, 0.1); border: 1px solid var(--neon-red); padding: 20px; border-radius: var(--radius-md); }

/* File modal inner grid */
.file-modal-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }
@media (max-width: 768px) { .file-modal-grid { grid-template-columns: 1fr; } }

/* Achievement grid item */
.ach-icon-box { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid; border-radius: var(--radius-sm); font-size: 1.2rem; cursor: default; }
.ach-icon-box.unlocked { background: rgba(255, 215, 0, 0.15); border-color: var(--neon-gold); opacity: 1; }
.ach-icon-box.locked { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.05); opacity: 0.3; }

/* Settings panel stats */
.settings-stats-grid { padding: 15px; background: rgba(0, 0, 0, 0.2); border-radius: var(--radius-sm); }
.settings-stat-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.settings-stat-row:last-child { margin-bottom: 0; }

/* Fingerprint mini-game */
.fp-game-area { display: flex; gap: 12px; justify-content: center; }
.fp-option-btn { padding: 15px; background: rgba(0, 0, 0, 0.3); border: 2px solid rgba(255, 255, 255, 0.1); border-radius: 10px; cursor: pointer; text-align: center; transition: all 0.3s; min-width: 60px; }
.fp-option-btn:hover, .fp-option-btn:focus-visible { border-color: var(--neon-cyan); outline: none; }
.fp-option-btn.correct { border-color: var(--neon-green); background: rgba(0, 255, 136, 0.15); }
.fp-option-btn.wrong { border-color: var(--neon-red); background: rgba(255, 0, 68, 0.1); }

/* Evidence analyzer reveal */
.evidence-reveal-line { opacity: 0; transform: translateY(10px); transition: all 0.4s ease; margin-bottom: 6px; padding: 8px 12px; background: rgba(0, 0, 0, 0.2); border-radius: 6px; font-size: 0.9rem; }
.evidence-reveal-line.visible { opacity: 1; transform: translateY(0); }
.evidence-minigame { margin-top: 15px; padding: 15px; background: rgba(0, 255, 255, 0.05); border: 1px solid rgba(0, 255, 255, 0.2); border-radius: 8px; }

/* Story mode end */
.story-end-stats { display: flex; justify-content: center; gap: 30px; margin-bottom: 30px; }

/* Avatar option */
.avatar-option { font-size: 1.4rem; padding: 8px; background: rgba(0, 0, 0, 0.3); border: 2px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.3s; }
.avatar-option:hover, .avatar-option:focus-visible { border-color: var(--neon-cyan); outline: none; }
.avatar-option.selected { background: rgba(0, 255, 255, 0.2); border-color: var(--neon-cyan); }

/* Comparator slot */
.compare-slot-content { text-align: center; padding: 20px; }


/* ─────────────────────────────────────────────────────────────────────────
   [MEJORA #1] CASO CONECTADO — Meta-narrative linking all sections
   ─────────────────────────────────────────────────────────────────────────  */
.connected-case-banner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 0, 255, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 20px 25px;
    margin-bottom: 30px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.connected-case-banner::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.05), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer { to { transform: translateX(50%); } }
.connected-case-banner:hover { border-color: var(--neon-gold); transform: translateY(-2px); }
.cc-progress-bar { height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; overflow: hidden; margin-top: 12px; }
.cc-progress-fill { height: 100%; background: var(--gradient-gold); transition: width 0.8s ease; }
.cc-step { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-sm); margin-bottom: 8px; transition: all 0.3s; }
.cc-step.completed { background: rgba(0, 255, 136, 0.1); border-left: 3px solid var(--neon-green); }
.cc-step.active { background: rgba(0, 255, 255, 0.1); border-left: 3px solid var(--neon-cyan); animation: pulse-border 2s infinite; }
.cc-step.locked { opacity: 0.4; }
@keyframes pulse-border { 0%, 100% { border-left-color: var(--neon-cyan); } 50% { border-left-color: var(--neon-magenta); } }
.cc-clue-reveal {
    background: rgba(255, 215, 0, 0.1);
    border: 1px dashed var(--neon-gold);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
    text-align: center;
}


/* ─────────────────────────────────────────────────────────────────────────
   [MEJORA #2] VERSUS MODE
   ─────────────────────────────────────────────────────────────────────────  */
.versus-banner {
    background: linear-gradient(135deg, rgba(255, 0, 102, 0.08), rgba(0, 255, 255, 0.05));
    border: 1px solid rgba(255, 0, 102, 0.3);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}
.versus-badge { padding: 4px 12px; background: var(--neon-red); color: var(--bg-primary); border-radius: 20px; font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; }
.versus-modal { max-width: 500px; }
.versus-link-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--neon-cyan);
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    word-break: break-all;
    cursor: pointer;
    transition: all 0.3s;
}
.versus-link-box:hover { background: rgba(0, 255, 255, 0.1); }
.versus-result {
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: 15px;
}
.versus-result.win { background: rgba(0, 255, 136, 0.1); border: 1px solid var(--neon-green); }
.versus-result.lose { background: rgba(255, 0, 102, 0.1); border: 1px solid var(--neon-red); }
.versus-result.tie { background: rgba(255, 215, 0, 0.1); border: 1px solid var(--neon-gold); }


/* ─────────────────────────────────────────────────────────────────────────
   [MEJORA #3] DIARIO DEL DETECTIVE
   ─────────────────────────────────────────────────────────────────────────  */
.diary-section { max-width: 800px; margin: 0 auto; }
.diary-entry {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--neon-cyan);
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    position: relative;
    transition: all 0.3s;
}
.diary-entry:hover { border-left-color: var(--neon-gold); background: rgba(0, 0, 0, 0.4); }
.diary-entry .diary-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-cyan);
    margin-bottom: 6px;
}
.diary-entry .diary-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}
.diary-entry .diary-xp {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-green);
    margin-top: 6px;
}
.diary-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.diary-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.diary-filter {
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}
.diary-filter:hover, .diary-filter.active { border-color: var(--neon-cyan); color: var(--neon-cyan); }


/* ─────────────────────────────────────────────────────────────────────────
   [MEJORA #4] MODO EXAMEN
   ─────────────────────────────────────────────────────────────────────────  */
.exam-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 10, 0.97);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}
.exam-container {
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--neon-red);
    border-radius: var(--radius-lg);
    padding: 0;
}
.exam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(255, 0, 68, 0.1);
    border-bottom: 1px solid rgba(255, 0, 68, 0.3);
}
.exam-timer {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--neon-red);
    min-width: 90px;
    text-align: center;
}
.exam-timer.warning { animation: flash-red 0.5s infinite; }
@keyframes flash-red { 0%, 100% { color: var(--neon-red); } 50% { color: var(--neon-gold); } }
.exam-body { padding: 25px; }
.exam-question-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 15px;
}
.exam-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 18px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}
.exam-option:hover, .exam-option:focus-visible { border-color: var(--neon-cyan); outline: none; }
.exam-option.selected { border-color: var(--neon-cyan); background: rgba(0, 255, 255, 0.1); }
.exam-option.correct { border-color: var(--neon-green); background: rgba(0, 255, 136, 0.15); }
.exam-option.wrong { border-color: var(--neon-red); background: rgba(255, 0, 68, 0.1); }
.exam-progress { display: flex; gap: 4px; margin-bottom: 20px; }
.exam-progress-dot { width: 100%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); transition: background 0.3s; }
.exam-progress-dot.done { background: var(--neon-green); }
.exam-progress-dot.current { background: var(--neon-cyan); }
.exam-score-display { text-align: center; padding: 40px 20px; }
.exam-score-big { font-family: var(--font-display); font-size: 4rem; margin: 15px 0; }
.exam-rank { font-family: var(--font-display); font-size: 1.2rem; margin-top: 10px; }
.exam-breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 25px 0; }


/* ─────────────────────────────────────────────────────────────────────────
   [MEJORA #5] EASTER EGGS ENCADENADOS
   ─────────────────────────────────────────────────────────────────────────  */
.secret-clue-flash {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid var(--neon-gold);
    border-radius: var(--radius-md);
    padding: 15px 25px;
    z-index: var(--z-notification);
    animation: slideUpFade 0.5s ease, slideUpFade 0.5s ease 4s reverse forwards;
    text-align: center;
    max-width: 400px;
}
@keyframes slideUpFade {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.secret-unlock-effect {
    position: fixed;
    inset: 0;
    z-index: var(--z-notification);
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    animation: secretPulse 2s ease forwards;
}
@keyframes secretPulse { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }


/* ─────────────────────────────────────────────────────────────────────────
   [MEJORA #7] XP REBALANCE — Daily login indicator
   ─────────────────────────────────────────────────────────────────────────  */
.daily-bonus-popup {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid var(--neon-green);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    z-index: var(--z-notification);
    animation: slideIn 0.5s ease, slideIn 0.5s ease 3s reverse forwards;
    display: flex;
    align-items: center;
    gap: 12px;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}


/* ─────────────────────────────────────────────────────────────────────────
   [MEJORA #8] ERROR HANDLING — Toast notifications
   ─────────────────────────────────────────────────────────────────────────  */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: var(--z-notification);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-size: 0.85rem;
    color: var(--text-light);
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 350px;
}
.toast.error { border-color: var(--neon-red); }
.toast.warning { border-color: var(--neon-gold); }
.toast.success { border-color: var(--neon-green); }
.toast.info { border-color: var(--neon-cyan); }


/* ─────────────────────────────────────────────────────────────────────────
   [MEJORA #9] ACCESIBILIDAD
   ─────────────────────────────────────────────────────────────────────────  */

/* Focus visible for all interactive elements */
*:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neon-cyan);
    color: var(--bg-primary);
    padding: 10px 20px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 9999;
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Focus trap indicator */
.modal-focus-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Live region for announcements */
.aria-live-region {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --bg-card: rgba(0, 0, 0, 0.95);
        --text-muted: #aaaacc;
    }
    .btn { border-width: 2px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .connected-case-banner::before { animation: none; }
}

/* Keyboard nav indicators for game elements */
.profiler-option:focus-visible,
.suspect-card:focus-visible,
.whodunit-evidence-item:focus-visible,
.memory-card:focus-visible,
.interrogation-char-card:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

/* ─────────────────────────────────────────────────────────────────────────
   [MEJORA #10] OFFLINE INDICATOR
   ─────────────────────────────────────────────────────────────────────────  */
.offline-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 0, 68, 0.9);
    color: white;
    text-align: center;
    padding: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    z-index: 9998;
    transform: translateY(-100%);
    transition: transform 0.3s;
}
.offline-banner.visible { transform: translateY(0); }
