/**
 * Democracia Please - Estilos Expandidos
 * Nuevas pantallas, modales y elementos de UI
 */

/* ============================================
   BARRA DE NOTICIAS (TICKER)
   ============================================ */
.news-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
  border-bottom: 2px solid #e94560;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  z-index: 1000;
  font-family: 'VT323', monospace;
}

.news-source {
  background: #e94560;
  color: white;
  padding: 4px 12px;
  font-weight: bold;
  margin-right: 16px;
  text-transform: uppercase;
  font-size: 14px;
}

.news-ticker {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

#news-content {
  display: inline-block;
  animation: ticker 20s linear infinite;
  color: #00ff88;
  font-size: 16px;
  text-transform: uppercase;
}

@keyframes ticker {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ============================================
   HUD DEL PROTAGONISTA
   ============================================ */
.protagonist-hud {
  position: fixed;
  top: 40px;
  right: 16px;
  background: rgba(26, 26, 46, 0.95);
  border: 2px solid #0f3460;
  border-radius: 8px;
  padding: 12px;
  z-index: 999;
  font-family: 'VT323', monospace;
  min-width: 180px;
}

.hud-section {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.hud-section:last-child {
  margin-bottom: 0;
}

.hud-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.money-section .hud-icon {
  color: #00ff88;
}
.mood-section .hud-icon {
  color: #ffd700;
}
.fatigue-section .hud-icon {
  color: #ff6b6b;
}

#money-display {
  color: #00ff88;
  font-size: 18px;
  font-weight: bold;
}

.stat-bar {
  flex: 1;
  height: 12px;
  background: #0a0a1a;
  border-radius: 6px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  transition: width 0.3s ease;
}

.mood-fill {
  background: linear-gradient(90deg, #ffd700, #ffaa00);
}
.fatigue-fill {
  background: linear-gradient(90deg, #ff6b6b, #ff4444);
}

.date-section {
  justify-content: center;
  border-top: 1px solid #0f3460;
  padding-top: 8px;
}

#current-date-display {
  color: #a0a0ff;
  font-size: 14px;
}

/* ============================================
   PANTALLA DE INICIO EXPANDIDA
   ============================================ */
.save-info {
  margin-top: 16px;
  padding: 12px;
  background: rgba(15, 52, 96, 0.5);
  border-radius: 8px;
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: #a0a0ff;
}

/* ============================================
   PANTALLA DE OPCIONES
   ============================================ */
.settings-content {
  max-width: 400px;
  margin: 0 auto;
  padding: 24px;
}

.setting-item {
  margin-bottom: 20px;
}

.setting-item label {
  display: block;
  margin-bottom: 8px;
  color: #e0e0e0;
  font-family: 'VT323', monospace;
  font-size: 18px;
}

.setting-item input[type='range'] {
  width: 100%;
  height: 8px;
  background: #0f3460;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.setting-item input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #e94560;
  border-radius: 50%;
  cursor: pointer;
}

.setting-item select {
  width: 100%;
  padding: 10px;
  background: #0f3460;
  border: 2px solid #16213e;
  color: white;
  font-family: 'VT323', monospace;
  font-size: 16px;
  cursor: pointer;
}

.setting-item.checkbox label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.setting-item.checkbox input[type='checkbox'] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.small-btn {
  padding: 8px 16px;
  background: #16213e;
  border: 2px solid #0f3460;
  color: #a0a0ff;
  font-family: 'VT323', monospace;
  font-size: 14px;
  cursor: pointer;
  margin-right: 8px;
  transition: all 0.2s;
}

.small-btn:hover {
  background: #0f3460;
  color: white;
}

.danger-btn {
  padding: 10px 20px;
  background: #4a0000;
  border: 2px solid #8b0000;
  color: #ff6b6b;
  font-family: 'VT323', monospace;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.danger-btn:hover {
  background: #8b0000;
  color: white;
}

/* ============================================
   PANTALLA DE INTRO
   ============================================ */
.intro-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
}

.intro-text {
  font-family: 'VT323', monospace;
  font-size: 24px;
  line-height: 1.8;
  color: #e0e0e0;
  min-height: 300px;
}

.intro-text .typewriter {
  border-right: 3px solid #e94560;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%,
  50% {
    border-color: #e94560;
  }
  51%,
  100% {
    border-color: transparent;
  }
}

#skip-intro {
  position: absolute;
  top: 20px;
  right: 20px;
}

/* ============================================
   PANTALLA DE VIDA DIARIA
   ============================================ */
.daily-container {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.daily-header {
  text-align: center;
  margin-bottom: 32px;
}

.daily-header h2 {
  color: #e94560;
  font-size: 32px;
  margin-bottom: 8px;
}

.daily-context {
  color: #a0a0ff;
  font-style: italic;
  font-size: 18px;
}

.daily-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.daily-panel {
  background: rgba(15, 52, 96, 0.5);
  border: 2px solid #0f3460;
  border-radius: 12px;
  padding: 20px;
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.daily-panel:hover {
  transform: translateY(-4px);
  border-color: #e94560;
}

.daily-panel h3 {
  text-align: center;
  color: #ffd700;
  margin-bottom: 16px;
  font-size: 18px;
}

.location-img {
  width: 100%;
  height: 120px;
  background: #0a0a1a;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.home-img::before {
  content: '🏠';
}
.work-img::before {
  content: '🛒';
}
.metro-img::before {
  content: '🚇';
}

.location-desc {
  text-align: center;
  color: #a0a0ff;
  margin-bottom: 12px;
  font-size: 14px;
}

.home-status,
.work-status,
.metro-status {
  font-family: 'VT323', monospace;
  font-size: 16px;
}

.expense {
  color: #ff6b6b;
}
.income {
  color: #00ff88;
}

.daily-actions {
  text-align: center;
}

/* ============================================
   PANTALLA DE EVENTO ESPECIAL
   ============================================ */
.event-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px;
}

.event-header {
  text-align: center;
  margin-bottom: 24px;
}

.event-type {
  display: inline-block;
  background: #e94560;
  color: white;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.event-content {
  background: rgba(15, 52, 96, 0.5);
  border: 2px solid #0f3460;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.event-image {
  width: 100%;
  height: 200px;
  background: #0a0a1a;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.event-description {
  font-family: 'VT323', monospace;
  font-size: 20px;
  line-height: 1.6;
  color: #e0e0e0;
}

.event-choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-choice-btn {
  padding: 16px;
  background: #16213e;
  border: 2px solid #0f3460;
  color: white;
  font-family: 'VT323', monospace;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.event-choice-btn:hover {
  background: #0f3460;
  border-color: #e94560;
}

/* ============================================
   PANTALLA PRE-ELECCIÓN
   ============================================ */
.pre-election-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px;
}

.servel-notification {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  border: 3px solid #e94560;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e94560;
}

.servel-logo {
  font-family: 'Press Start 2P', cursive;
  font-size: 24px;
  color: #e94560;
}

.notification-date {
  color: #a0a0ff;
  font-family: 'VT323', monospace;
}

.notification-body h3 {
  color: #ffd700;
  margin-bottom: 12px;
}

.notification-body p {
  color: #e0e0e0;
  font-family: 'VT323', monospace;
  font-size: 18px;
  line-height: 1.6;
}

.election-info {
  background: rgba(15, 52, 96, 0.5);
  border: 2px solid #0f3460;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.election-info h3 {
  color: #00ff88;
  font-size: 24px;
  margin-bottom: 12px;
}

.election-details {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #a0a0ff;
}

.training-option {
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid #ffd700;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.training-option h4 {
  color: #ffd700;
  margin-bottom: 12px;
}

.bonus-info {
  color: #00ff88;
  font-family: 'VT323', monospace;
  font-size: 18px;
  margin: 12px 0;
}

.training-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 16px;
}

/* ============================================
   ELEMENTOS DE VOTACIÓN EXPANDIDOS
   ============================================ */
.apoderados-section {
  background: rgba(15, 52, 96, 0.3);
  border: 1px solid #0f3460;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.apoderado-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid #0f3460;
  font-size: 12px;
}

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

.apoderado-party {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.apoderado-name {
  flex: 1;
  color: #a0a0ff;
}

.apoderado-mood {
  font-size: 16px;
}

.voter-dialogue {
  background: rgba(0, 0, 0, 0.5);
  border-left: 4px solid #ffd700;
  padding: 12px;
  margin-top: 16px;
  font-family: 'VT323', monospace;
  font-style: italic;
}

#voter-speech {
  color: #e0e0e0;
  font-size: 18px;
  margin: 0;
}

.cedula-warnings {
  margin-top: 8px;
  padding: 8px;
  background: rgba(255, 107, 107, 0.2);
  border: 1px solid #ff6b6b;
  border-radius: 4px;
  font-size: 12px;
  color: #ff6b6b;
}

.decision-btn.delegado {
  background: #ffd700;
  color: #1a1a2e;
}

.decision-btn.delegado:hover {
  background: #ffaa00;
}

.reason-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* ============================================
   PANTALLA DE FIN DE MES
   ============================================ */
.month-end-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px;
}

.finance-summary {
  background: rgba(15, 52, 96, 0.5);
  border: 2px solid #0f3460;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.finance-summary h3 {
  text-align: center;
  color: #e94560;
  margin-bottom: 20px;
}

.finance-section {
  margin-bottom: 20px;
}

.finance-section h4 {
  color: #a0a0ff;
  margin-bottom: 12px;
  font-size: 14px;
  text-transform: uppercase;
}

.finance-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'VT323', monospace;
  font-size: 18px;
}

.finance-total {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 2px solid #0f3460;
  font-family: 'VT323', monospace;
  font-size: 24px;
  font-weight: bold;
}

.balance {
  color: #ffd700;
}

.balance.negative {
  color: #ff6b6b;
}

.savings-display {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  color: #00ff88;
  font-family: 'VT323', monospace;
  font-size: 20px;
}

.month-events {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.month-event-item {
  padding: 8px;
  border-left: 3px solid #e94560;
  margin-bottom: 8px;
  font-family: 'VT323', monospace;
}

/* ============================================
   PANTALLA DE ENDING
   ============================================ */
.ending-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
}

.ending-title h2 {
  color: #a0a0ff;
  font-size: 16px;
  margin-bottom: 8px;
}

.ending-title h3 {
  color: #ffd700;
  font-size: 32px;
  margin-bottom: 24px;
}

.ending-image {
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  background: #0a0a1a;
  border: 4px solid #e94560;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.ending-text {
  font-family: 'VT323', monospace;
  font-size: 20px;
  line-height: 1.8;
  color: #e0e0e0;
  margin-bottom: 32px;
}

.ending-stats {
  background: rgba(15, 52, 96, 0.5);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #a0a0ff;
}

.ending-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ============================================
   RESULTADOS EXPANDIDOS
   ============================================ */
.election-result {
  background: rgba(0, 255, 136, 0.1);
  border: 2px solid #00ff88;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.election-result h3 {
  color: #a0a0ff;
  font-size: 16px;
  margin-bottom: 8px;
}

.result-winner {
  color: #00ff88;
  font-size: 28px;
  font-weight: bold;
  font-family: 'VT323', monospace;
}

.earnings-summary {
  background: rgba(15, 52, 96, 0.5);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.earning-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-family: 'VT323', monospace;
  font-size: 18px;
}

/* ============================================
   MODALES EXPANDIDOS
   ============================================ */
.dialogue-content {
  max-width: 500px;
}

.dialogue-speaker {
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  color: #e94560;
  margin-bottom: 16px;
}

.dialogue-text {
  font-family: 'VT323', monospace;
  font-size: 22px;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 20px;
  min-height: 80px;
}

.dialogue-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.dialogue-choice {
  padding: 12px;
  background: #16213e;
  border: 2px solid #0f3460;
  color: white;
  font-family: 'VT323', monospace;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.dialogue-choice:hover {
  background: #0f3460;
  border-color: #ffd700;
}

/* Modal SERVEL (distópico) */
.servel-content {
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0000 100%);
  border: 3px solid #e94560;
  max-width: 450px;
}

.servel-header {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 2px solid #e94560;
  margin-bottom: 20px;
}

.servel-logo-large {
  display: block;
  font-family: 'Press Start 2P', cursive;
  font-size: 32px;
  color: #e94560;
  text-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
  margin-bottom: 8px;
}

.servel-subtitle {
  font-size: 12px;
  color: #a0a0ff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.servel-message {
  font-family: 'VT323', monospace;
  font-size: 24px;
  color: #ffd700;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 16px;
}

.servel-warning {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #ff6b6b;
  text-align: center;
  margin-bottom: 20px;
}

.servel-btn {
  background: #e94560;
  border-color: #ff6b6b;
  width: 100%;
}

.servel-btn:hover {
  background: #ff6b6b;
}

/* Modal de evento */
.event-content {
  max-width: 500px;
}

.event-modal-header {
  text-align: center;
  margin-bottom: 16px;
}

.event-modal-type {
  display: inline-block;
  background: #ffd700;
  color: #1a1a2e;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.event-modal-body {
  margin-bottom: 20px;
}

#event-modal-text {
  font-family: 'VT323', monospace;
  font-size: 20px;
  line-height: 1.6;
  color: #e0e0e0;
}

.event-modal-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Modal de soborno */
.bribe-content {
  max-width: 400px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1f00 100%);
  border: 3px solid #ffd700;
}

.bribe-header {
  text-align: center;
  margin-bottom: 16px;
}

.bribe-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 8px;
}

.bribe-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 16px;
  color: #ffd700;
}

.bribe-body {
  text-align: center;
  margin-bottom: 24px;
}

#bribe-text {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #e0e0e0;
  margin-bottom: 12px;
}

.bribe-amount {
  font-family: 'VT323', monospace;
  font-size: 36px;
  color: #00ff88;
  font-weight: bold;
}

.bribe-choices {
  display: flex;
  gap: 8px;
}

.bribe-btn {
  flex: 1;
  padding: 12px;
  font-family: 'VT323', monospace;
  font-size: 16px;
  cursor: pointer;
  border: 2px solid;
  transition: all 0.2s;
}

.bribe-btn.accept {
  background: rgba(0, 255, 136, 0.2);
  border-color: #00ff88;
  color: #00ff88;
}

.bribe-btn.accept:hover {
  background: #00ff88;
  color: #1a1a2e;
}

.bribe-btn.reject {
  background: rgba(255, 107, 107, 0.2);
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.bribe-btn.reject:hover {
  background: #ff6b6b;
  color: #1a1a2e;
}

.bribe-btn.report {
  background: rgba(160, 160, 255, 0.2);
  border-color: #a0a0ff;
  color: #a0a0ff;
}

.bribe-btn.report:hover {
  background: #a0a0ff;
  color: #1a1a2e;
}

/* Modal de importar */
#import-data {
  width: 100%;
  height: 150px;
  background: #0a0a1a;
  border: 2px solid #0f3460;
  color: white;
  font-family: monospace;
  font-size: 12px;
  padding: 12px;
  margin-bottom: 16px;
  resize: none;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: rgba(26, 26, 46, 0.95);
  border: 2px solid #0f3460;
  border-radius: 8px;
  padding: 12px 20px;
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #e0e0e0;
  animation: slideIn 0.3s ease;
  max-width: 300px;
}

.toast.success {
  border-color: #00ff88;
  color: #00ff88;
}

.toast.error {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.toast.warning {
  border-color: #ffd700;
  color: #ffd700;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS - MOBILE FIRST
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .daily-panels {
    grid-template-columns: 1fr;
  }

  .protagonist-hud {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 0;
    display: flex;
    justify-content: space-around;
    padding: 8px;
    min-width: auto;
  }

  .hud-section {
    margin-bottom: 0;
  }
}

/* Mobile L (425px - 768px) */
@media (max-width: 768px) {
  /* HUD móvil - Layout horizontal compacto */
  .protagonist-hud {
    padding: 6px 10px;
  }

  .hud-icon {
    font-size: 16px;
    width: 20px;
  }

  #money-display {
    font-size: 14px;
  }

  .stat-bar {
    height: 10px;
    min-width: 60px;
  }

  #current-date-display {
    font-size: 12px;
  }

  .date-section {
    padding-top: 6px;
  }

  /* News bar móvil */
  .news-bar {
    padding: 6px 12px;
  }

  .news-source {
    font-size: 12px;
    padding: 3px 8px;
    margin-right: 10px;
  }

  #news-content {
    font-size: 13px;
  }

  /* Pantalla de intro móvil */
  .intro-container {
    padding: 20px 15px;
  }

  .intro-text {
    font-size: 18px;
    line-height: 1.6;
    min-height: 200px;
  }

  #skip-intro {
    top: 10px;
    right: 10px;
  }

  /* Daily screen móvil */
  .daily-container {
    padding: 15px;
  }

  .daily-header h2 {
    font-size: 24px;
  }

  .daily-context {
    font-size: 14px;
  }

  .daily-panels {
    gap: 16px;
    margin-bottom: 20px;
  }

  .daily-panel {
    padding: 15px;
  }

  .daily-panel h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .location-img {
    height: 100px;
    font-size: 40px;
  }

  .location-desc {
    font-size: 13px;
  }

  /* Event screen móvil */
  .event-container {
    padding: 20px 15px;
  }

  .event-header h2 {
    font-size: 20px;
  }

  .event-type {
    font-size: 11px;
    padding: 5px 12px;
  }

  .event-content {
    padding: 16px;
  }

  .event-image {
    height: 150px;
    font-size: 48px;
  }

  .event-description {
    font-size: 16px;
  }

  .event-choice-btn {
    font-size: 15px;
    padding: 13px;
    min-height: 44px;
  }

  /* Pre-election screen móvil */
  .pre-election-container {
    padding: 20px 15px;
  }

  .servel-notification {
    padding: 16px;
  }

  .servel-logo {
    font-size: 18px;
  }

  .notification-date {
    font-size: 12px;
  }

  .notification-body h3 {
    font-size: 16px;
  }

  .notification-body p {
    font-size: 15px;
  }

  .election-info {
    padding: 16px;
  }

  .election-info h3 {
    font-size: 20px;
  }

  .election-details {
    font-size: 14px;
  }

  .training-option {
    padding: 16px;
  }

  .training-option h4 {
    font-size: 16px;
  }

  .bonus-info {
    font-size: 15px;
  }

  .training-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .training-buttons .menu-btn,
  .training-buttons .small-btn {
    width: 100%;
    min-height: 44px;
  }

  /* Apoderados móvil */
  .apoderados-section {
    padding: 10px;
  }

  .apoderado-item {
    font-size: 11px;
    padding: 6px;
  }

  /* Voter dialogue móvil */
  .voter-dialogue {
    padding: 10px;
  }

  #voter-speech {
    font-size: 15px;
  }

  /* Reason buttons móvil */
  .reason-buttons {
    grid-template-columns: 1fr;
  }

  /* Month end screen móvil */
  .month-end-container {
    padding: 20px 15px;
  }

  .finance-summary {
    padding: 16px;
  }

  .finance-summary h3 {
    font-size: 20px;
  }

  .finance-item {
    font-size: 15px;
  }

  .finance-total {
    font-size: 20px;
  }

  .savings-display {
    font-size: 16px;
  }

  /* Ending screen móvil */
  .ending-container {
    padding: 25px 15px;
  }

  .ending-title h3 {
    font-size: 24px;
  }

  .ending-image {
    width: 150px;
    height: 150px;
    font-size: 60px;
  }

  .ending-text {
    font-size: 16px;
  }

  .ending-stats {
    font-size: 14px;
  }

  .ending-actions {
    flex-direction: column;
    gap: 12px;
  }

  .ending-actions .menu-btn {
    width: 100%;
  }

  /* Election result móvil */
  .election-result {
    padding: 15px;
  }

  .election-result h3 {
    font-size: 14px;
  }

  .result-winner {
    font-size: 22px;
  }

  .earnings-summary {
    padding: 12px;
  }

  .earning-item {
    font-size: 15px;
  }

  /* Modales expandidos móvil */
  .dialogue-content {
    max-width: 90%;
  }

  .dialogue-speaker {
    font-size: 12px;
  }

  .dialogue-text {
    font-size: 18px;
    min-height: 60px;
  }

  .dialogue-choice {
    font-size: 14px;
    padding: 11px;
    min-height: 44px;
  }

  /* SERVEL modal móvil */
  .servel-content {
    max-width: 90%;
  }

  .servel-logo-large {
    font-size: 24px;
  }

  .servel-subtitle {
    font-size: 10px;
  }

  .servel-message {
    font-size: 18px;
  }

  .servel-warning {
    font-size: 14px;
  }

  /* Bribe modal móvil */
  .bribe-content {
    max-width: 90%;
  }

  .bribe-icon {
    font-size: 40px;
  }

  .bribe-title {
    font-size: 14px;
  }

  #bribe-text {
    font-size: 15px;
  }

  .bribe-amount {
    font-size: 28px;
  }

  .bribe-choices {
    flex-direction: column;
    gap: 10px;
  }

  .bribe-btn {
    min-height: 44px;
    font-size: 14px;
  }

  /* Settings móvil */
  .settings-content {
    padding: 16px;
  }

  .setting-item label {
    font-size: 15px;
  }

  .setting-item select {
    font-size: 14px;
    padding: 8px;
  }

  .small-btn {
    font-size: 13px;
    padding: 7px 14px;
    min-height: 40px;
  }

  .danger-btn {
    font-size: 14px;
    padding: 9px 18px;
    min-height: 44px;
  }

  /* Toast móvil */
  .toast-container {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }

  .toast {
    font-size: 14px;
    padding: 10px 16px;
    max-width: 100%;
  }
}

/* Mobile M (375px - 425px) */
@media (max-width: 425px) {
  /* HUD extra compacto */
  .protagonist-hud {
    padding: 5px 8px;
  }

  .hud-icon {
    font-size: 14px;
    width: 18px;
  }

  #money-display {
    font-size: 13px;
  }

  .stat-bar {
    min-width: 50px;
  }

  #current-date-display {
    font-size: 11px;
  }

  /* Intro super compacta */
  .intro-text {
    font-size: 16px;
    min-height: 150px;
  }

  /* Daily panels compactos */
  .daily-panel h3 {
    font-size: 14px;
  }

  .location-img {
    height: 80px;
    font-size: 32px;
  }

  .home-status,
  .work-status,
  .metro-status {
    font-size: 14px;
  }

  /* Event compacto */
  .event-image {
    height: 120px;
    font-size: 40px;
  }

  .event-description {
    font-size: 14px;
  }

  .event-choice-btn {
    font-size: 13px;
  }

  /* Election info compacta */
  .election-info h3 {
    font-size: 18px;
  }

  .election-details {
    font-size: 13px;
  }

  /* Dialogue compacto */
  .dialogue-text {
    font-size: 16px;
  }

  .dialogue-choice {
    font-size: 13px;
  }

  /* SERVEL modal compacto */
  .servel-logo-large {
    font-size: 20px;
  }

  .servel-message {
    font-size: 16px;
  }

  /* Finance compacto */
  .finance-item {
    font-size: 14px;
  }

  .finance-total {
    font-size: 18px;
  }
}

/* Mobile S (320px - 375px) */
@media (max-width: 375px) {
  /* HUD minimalista */
  .protagonist-hud {
    padding: 4px 6px;
  }

  .hud-icon {
    font-size: 12px;
    width: 16px;
  }

  #money-display {
    font-size: 12px;
  }

  .stat-bar {
    height: 8px;
    min-width: 40px;
  }

  #current-date-display {
    font-size: 10px;
  }

  /* News bar compacta */
  .news-source {
    font-size: 10px;
    padding: 2px 6px;
    margin-right: 8px;
  }

  #news-content {
    font-size: 11px;
  }

  /* Intro minimalista */
  .intro-container {
    padding: 15px 10px;
  }

  .intro-text {
    font-size: 14px;
    min-height: 120px;
  }

  /* Daily super compacto */
  .daily-header h2 {
    font-size: 20px;
  }

  .daily-context {
    font-size: 12px;
  }

  .daily-panel {
    padding: 12px;
  }

  .daily-panel h3 {
    font-size: 13px;
  }

  .location-img {
    height: 70px;
    font-size: 28px;
  }

  .location-desc {
    font-size: 11px;
  }

  .home-status,
  .work-status,
  .metro-status {
    font-size: 13px;
  }

  /* Event minimalista */
  .event-header h2 {
    font-size: 18px;
  }

  .event-type {
    font-size: 10px;
    padding: 4px 10px;
  }

  .event-image {
    height: 100px;
    font-size: 36px;
  }

  .event-description {
    font-size: 13px;
  }

  .event-choice-btn {
    font-size: 12px;
    padding: 11px;
  }

  /* Pre-election compacta */
  .servel-logo {
    font-size: 16px;
  }

  .notification-body h3 {
    font-size: 14px;
  }

  .notification-body p {
    font-size: 13px;
  }

  .election-info h3 {
    font-size: 16px;
  }

  .bonus-info {
    font-size: 13px;
  }

  /* Month end compacto */
  .finance-summary h3 {
    font-size: 18px;
  }

  .finance-item {
    font-size: 13px;
  }

  .finance-total {
    font-size: 16px;
  }

  .savings-display {
    font-size: 14px;
  }

  /* Ending compacto */
  .ending-title h3 {
    font-size: 20px;
  }

  .ending-image {
    width: 120px;
    height: 120px;
    font-size: 48px;
  }

  .ending-text {
    font-size: 14px;
  }

  .ending-stats {
    font-size: 13px;
  }

  /* Modales super compactos */
  .dialogue-speaker {
    font-size: 11px;
  }

  .dialogue-text {
    font-size: 15px;
  }

  .dialogue-choice {
    font-size: 12px;
  }

  .servel-logo-large {
    font-size: 18px;
  }

  .servel-subtitle {
    font-size: 9px;
  }

  .servel-message {
    font-size: 15px;
  }

  .servel-warning {
    font-size: 13px;
  }

  .bribe-icon {
    font-size: 36px;
  }

  .bribe-title {
    font-size: 12px;
  }

  #bribe-text {
    font-size: 13px;
  }

  .bribe-amount {
    font-size: 24px;
  }

  .bribe-btn {
    font-size: 13px;
  }

  /* Settings compacto */
  .setting-item label {
    font-size: 14px;
  }

  .setting-item select {
    font-size: 13px;
  }

  .small-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  .danger-btn {
    font-size: 13px;
    padding: 8px 16px;
  }

  /* Toast compacto */
  .toast {
    font-size: 13px;
    padding: 9px 14px;
  }
}

/* Touch optimization para elementos expandidos */
@media (hover: none) and (pointer: coarse) {
  .event-choice-btn:hover,
  .dialogue-choice:hover,
  .bribe-btn:hover {
    transform: none;
    background: inherit;
  }

  .event-choice-btn:active {
    background: #0f3460;
    transform: scale(0.98);
  }

  .dialogue-choice:active {
    background: #0f3460;
    transform: scale(0.98);
  }

  .small-btn:active {
    background: #0f3460;
  }

  .danger-btn:active {
    background: #8b0000;
  }

  .daily-panel:hover {
    transform: none;
    border-color: #0f3460;
  }

  .training-option {
    -webkit-tap-highlight-color: transparent;
  }
}

/* ============================================
   ANIMACIONES ESPECIALES
   ============================================ */
.shake {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

.pulse {
  animation: pulse 1s ease infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.slide-up {
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Efecto de glitch para SERVEL */
.glitch {
  animation: glitch 0.3s ease;
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0);
  }
}

/* CRT scanline effect (opcional) */
.crt-effect {
  position: relative;
}

.crt-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
}
