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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

#app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* Botones */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn.primary {
  background: #2ecc71;
  color: white;
}

.btn.secondary {
  background: #3498db;
  color: white;
}

.btn.small {
  padding: 8px 16px;
  font-size: 14px;
}

/* Pantalla de inicio */
#home-screen {
  text-align: center;
  padding-top: 50px;
}

#home-screen h1 {
  color: white;
  font-size: 48px;
  margin-bottom: 40px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.home-options {
  background: white;
  padding: 40px;
  border-radius: 16px;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.home-options input[type="text"],
.home-options select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.home-options input[type="text"]:focus,
.home-options select:focus {
  border-color: #667eea;
  outline: none;
}

.option-group {
  margin: 20px 0;
}

.option-group h3 {
  margin-bottom: 15px;
  color: #555;
}

.option-group label {
  display: block;
  margin-bottom: 8px;
  color: #666;
}

.divider {
  color: #999;
  margin: 20px 0;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #ddd;
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

/* Input de archivo CSV */
.file-input-container {
  position: relative;
  margin-bottom: 10px;
}

.file-input-container input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  background: #f9f9f9;
  cursor: pointer;
  font-size: 14px;
}

.file-input-container input[type="file"]:hover {
  border-color: #667eea;
  background: #f0f0ff;
}

.file-input-container input[type="file"]::file-selector-button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #667eea;
  color: white;
  cursor: pointer;
  margin-right: 10px;
  font-weight: 600;
}

.file-input-container input[type="file"]::file-selector-button:hover {
  background: #5a6fd6;
}

.words-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background: #d4edda;
  border: 1px solid #28a745;
  border-radius: 8px;
  margin-bottom: 15px;
}

#words-count {
  color: #155724;
  font-weight: 600;
}

.btn-clear-words {
  background: none;
  border: none;
  color: #155724;
  font-size: 18px;
  cursor: pointer;
  padding: 0 5px;
  opacity: 0.7;
}

.btn-clear-words:hover {
  opacity: 1;
}

/* Lobby */
#lobby-screen {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.lobby-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #eee;
}

.lobby-header h2 {
  color: #333;
}

#room-code-display {
  font-family: monospace;
  font-size: 28px;
  color: #667eea;
  letter-spacing: 3px;
}

.teams-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.team-card {
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s;
}

.team-card:hover {
  transform: scale(1.02);
}

.team-card h3 {
  color: white;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.team-card .players-list {
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  padding: 10px;
  min-height: 60px;
  margin-bottom: 15px;
}

.team-card .player-item {
  padding: 5px;
  margin: 3px 0;
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
}

.team-card .player-item.is-me {
  font-weight: bold;
  background: rgba(0,0,0,0.1);
}

.team-card .join-team-btn {
  background: rgba(255,255,255,0.9);
  color: #333;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.team-card .join-team-btn:hover {
  background: white;
}

.team-card .join-team-btn.joined {
  background: #2ecc71;
  color: white;
}

.lobby-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 2px solid #eee;
}

#waiting-text {
  color: #666;
  margin-bottom: 15px;
}

/* Pantalla de juego */
#game-screen {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
  margin-bottom: 20px;
}

.scores {
  display: flex;
  gap: 20px;
}

.score-item {
  padding: 8px 16px;
  border-radius: 8px;
  color: white;
  font-weight: bold;
}

.round-info {
  font-size: 18px;
  color: #666;
  display: flex;
  gap: 20px;
}

.turn-info {
  color: #999;
}

.timer-container {
  background: #333;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 24px;
  font-weight: bold;
  font-family: monospace;
  min-width: 80px;
  text-align: center;
}

#timer-display {
  transition: color 0.3s;
}

#timer-display.warning {
  color: #e74c3c;
  animation: pulse 0.5s infinite alternate;
}

@keyframes pulse {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.5;
  }
}

.game-main {
  display: flex;
  gap: 20px;
}

.drawing-area {
  flex: 1;
}

.guessing-area {
  flex: 1;
}

/* Layout para adivinadores en PC */
.guessing-layout {
  display: flex;
  gap: 20px;
  height: 100%;
}

.guessing-canvas-section {
  flex: 0 0 auto;
  min-width: 0;
}

.guessing-sidebar {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
}

.guessing-sidebar .chat-container {
  flex: 1;
  max-height: 420px;
}

.guessing-sidebar .guess-input-container {
  margin-top: 10px;
  flex-direction: column;
}

.guessing-sidebar .guess-input-container input {
  margin-bottom: 8px;
}

/* Layout para dibujantes en PC */
.drawing-layout {
  display: flex;
  gap: 20px;
  height: 100%;
}

.drawing-canvas-section {
  flex: 1;
  min-width: 0;
}

.drawing-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.drawing-sidebar .chat-container {
  height: 100%;
  max-height: 480px;
}

.word-display {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 20px;
  text-align: center;
}

.word-display span {
  color: #e74c3c;
  font-weight: bold;
  font-size: 24px;
}

canvas {
  border: 3px solid #333;
  border-radius: 8px;
  background: white;
  display: block;
  max-width: 100%;
}

#drawing-canvas {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text y="20" font-size="20">✏️</text></svg>') 0 24, crosshair;
}

#drawing-canvas.eraser-mode {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text y="20" font-size="20">🧽</text></svg>') 0 24, crosshair;
}

.drawing-tools {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.tool-btn {
  width: 44px;
  height: 44px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.tool-btn:hover {
  background: #f0f0f0;
  border-color: #bbb;
}

.tool-btn.active {
  background: #667eea;
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

#color-picker {
  width: 50px;
  height: 40px;
  border: none;
  cursor: pointer;
}

#brush-size {
  flex: 1;
  max-width: 150px;
}

.guess-input-container {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.guess-input-container input {
  flex: 1;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.guess-input-container input:focus {
  border-color: #667eea;
  outline: none;
}

.chat-container {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 15px;
  height: 480px;
  display: flex;
  flex-direction: column;
}

.chat-container h3 {
  margin-bottom: 10px;
  color: #555;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 10px;
  padding: 10px;
  background: white;
  border-radius: 8px;
}

.chat-message {
  margin-bottom: 8px;
  padding: 8px;
  background: #f0f0f0;
  border-radius: 6px;
}

.chat-message .player-name {
  font-weight: bold;
  color: #333;
}

.chat-message.guess-attempt {
  background: #fff3cd;
  border-left: 3px solid #ffc107;
}

.chat-message.guess-close {
  background: #ffe4b5;
  border-left: 3px solid #ff8c00;
  animation: closeGuessShake 0.5s ease-in-out;
}

.chat-message.system-close {
  background: #fff0e6;
  border-left: 3px solid #ff8c00;
  font-style: italic;
  font-weight: bold;
  color: #ff6600;
  animation: closeGuessPulse 1s ease-in-out;
}

@keyframes closeGuessShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

@keyframes closeGuessPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; background: #ffcc80; }
}

.chat-message.system {
  background: #d4edda;
  border-left: 3px solid #28a745;
  font-style: italic;
}

.chat-input-container {
  display: flex;
  gap: 8px;
}

.chat-input-container input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  -webkit-overflow-scrolling: touch;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  animation: modalPop 0.3s ease;
}

@keyframes modalPop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-content p {
  font-size: 20px;
  color: #333;
}

/* Modal de preparación */
.preparation-content {
  max-width: 450px;
  transition: background 0.3s, border-color 0.3s;
}

.preparation-content h2 {
  color: #667eea;
  margin-bottom: 10px;
  font-size: 28px;
}

.round-indicator {
  color: #666;
  font-size: 16px;
  margin-bottom: 25px;
}

/* Modo dibujante */
.preparation-content.drawer-mode {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  border: 4px solid #c0392b;
}

.preparation-content.drawer-mode h2 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.preparation-content.drawer-mode .round-indicator {
  color: rgba(255,255,255,0.9);
}

.preparation-content.drawer-mode #prep-countdown {
  background: white;
  color: #e74c3c;
}

/* Modo adivinador */
.preparation-content.guesser-mode {
  background: linear-gradient(135deg, #a8e6cf 0%, #3498db 100%);
  border: 4px solid #2980b9;
}

.preparation-content.guesser-mode h2 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.preparation-content.guesser-mode .round-indicator {
  color: rgba(255,255,255,0.9);
}

.preparation-content.guesser-mode #prep-countdown {
  background: white;
  color: #3498db;
}

/* Mensaje de preparación */
.prep-message {
  margin-bottom: 25px;
}

.prep-drawer-message,
.prep-guesser-message {
  text-align: center;
  padding: 20px;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
}

.prep-instruction {
  font-size: 18px;
  color: #555;
  margin-bottom: 10px;
}

.prep-word {
  font-size: 42px;
  font-weight: bold;
  color: #e74c3c;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 15px;
  background: #fff5f5;
  border-radius: 8px;
  border: 3px dashed #e74c3c;
}

.prep-drawer-name {
  font-size: 36px;
  font-weight: bold;
  color: #2980b9;
  margin-bottom: 5px;
}

.prep-guesser-message .prep-instruction {
  font-size: 20px;
  color: #666;
}

/* Votación de palabras */
.prep-voting-message {
  text-align: center;
  padding: 20px;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
}

.prep-voting-message .prep-instruction {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
}

.word-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.word-option {
  padding: 20px 30px;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: #f8f9fa;
  border: 3px solid #ddd;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 150px;
}

.word-option:hover {
  background: #fff3cd;
  border-color: #ffc107;
  transform: scale(1.05);
}

.word-option.selected {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
  transform: scale(1.08);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

/* Animación pulse para el countdown durante votación */
.voting-pulse {
  animation: votingPulse 1s infinite;
}

@keyframes votingPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 20px 10px rgba(231, 76, 60, 0);
  }
}

.countdown-container {
  margin-top: 20px;
}

#prep-countdown {
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 32px;
  font-weight: bold;
  border-radius: 50%;
  animation: countdownPulse 1s infinite;
}

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

/* Pantalla de fin de juego - Celebración */
#end-screen {
  text-align: center;
  padding: 20px;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.end-celebration {
  position: relative;
  z-index: 1;
}

/* Trofeo animado */
.trophy-container {
  margin-bottom: 10px;
}

.trophy {
  font-size: 80px;
  animation: trophyBounce 1s ease-in-out infinite, trophyGlow 2s ease-in-out infinite;
  display: inline-block;
}

@keyframes trophyBounce {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes trophyGlow {
  0%, 100% { filter: drop-shadow(0 0 10px gold); }
  50% { filter: drop-shadow(0 0 30px gold) drop-shadow(0 0 60px orange); }
}

/* Banner del ganador */
.winner-banner {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 100%);
  padding: 25px 40px;
  border-radius: 20px;
  margin: 0 auto 20px;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  animation: bannerPop 0.5s ease-out;
}

@keyframes bannerPop {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.winner-banner h1 {
  color: #333;
  margin-bottom: 10px;
  font-size: 28px;
}

.winner-team-name {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 10px;
  animation: teamNamePulse 2s ease-in-out infinite;
}

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

.winner-score {
  font-size: 24px;
  color: #666;
}

/* Jugadores del equipo ganador */
.winner-players {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.winner-player {
  background: rgba(255,255,255,0.9);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  animation: playerCelebrate 0.5s ease-out backwards;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.winner-player:nth-child(1) { animation-delay: 0.1s; }
.winner-player:nth-child(2) { animation-delay: 0.2s; }
.winner-player:nth-child(3) { animation-delay: 0.3s; }
.winner-player:nth-child(4) { animation-delay: 0.4s; }
.winner-player:nth-child(5) { animation-delay: 0.5s; }

@keyframes playerCelebrate {
  0% { transform: translateY(30px) scale(0); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Ranking */
.ranking-container {
  background: rgba(255,255,255,0.95);
  padding: 20px 30px;
  border-radius: 16px;
  max-width: 400px;
  margin: 0 auto 25px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.ranking-container h2 {
  color: #333;
  margin-bottom: 15px;
  font-size: 22px;
}

.final-ranking {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ranking-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  animation: rankingSlide 0.4s ease-out backwards;
}

.ranking-item:nth-child(1) { animation-delay: 0.2s; }
.ranking-item:nth-child(2) { animation-delay: 0.3s; }
.ranking-item:nth-child(3) { animation-delay: 0.4s; }
.ranking-item:nth-child(4) { animation-delay: 0.5s; }

@keyframes rankingSlide {
  0% { transform: translateX(-50px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.ranking-position {
  font-size: 24px;
  margin-right: 15px;
  min-width: 40px;
}

.ranking-team {
  flex: 1;
  text-align: left;
  font-size: 18px;
}

.ranking-score {
  font-size: 20px;
  font-weight: bold;
}

/* Medallas */
.ranking-item:nth-child(1) .ranking-position::before { content: '🥇'; }
.ranking-item:nth-child(2) .ranking-position::before { content: '🥈'; }
.ranking-item:nth-child(3) .ranking-position::before { content: '🥉'; }

.ranking-item .ranking-position {
  font-size: 0;
}

.ranking-item:nth-child(n+4) .ranking-position {
  font-size: 20px;
}

.ranking-item:nth-child(n+4) .ranking-position::before {
  content: none;
}

/* Botón volver */
.btn-back-lobby {
  margin-top: 10px;
  padding: 15px 40px;
  font-size: 18px;
}

.final-score-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 10px;
  color: white;
  font-size: 18px;
}

.final-score-item .position {
  font-size: 24px;
  font-weight: bold;
  width: 40px;
}

.final-score-item .team-name {
  flex: 1;
  text-align: left;
}

.final-score-item .team-score {
  font-weight: bold;
  font-size: 22px;
}

.waiting-host {
  color: #666;
  font-style: italic;
  margin-top: 10px;
}

/* Animación de derrota */
.defeat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  pointer-events: none;
  transition: background 0.3s ease;
}

.defeat-overlay.active {
  background: rgba(0, 0, 0, 0.4);
}

.defeat-icon {
  font-size: 120px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

.defeat-overlay.active .defeat-icon {
  opacity: 1;
  transform: scale(1);
  animation: defeatShake 0.5s ease-in-out 0.3s;
}

@keyframes defeatShake {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-10deg); }
  75% { transform: scale(1.1) rotate(10deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .game-main {
    flex-direction: column;
  }

  /* Layout de adivinadores en móvil */
  .guessing-layout {
    flex-direction: column;
  }

  .guessing-sidebar {
    width: 100%;
    margin-top: 15px;
  }

  .guessing-sidebar .chat-container {
    height: 150px;
    max-height: 150px;
  }

  .guessing-sidebar .guess-input-container {
    flex-direction: row;
  }

  .guessing-sidebar .guess-input-container input {
    margin-bottom: 0;
  }

  /* Layout de dibujantes en móvil */
  .drawing-layout {
    flex-direction: column;
  }

  .drawing-sidebar {
    width: 100%;
    margin-top: 15px;
  }

  .drawing-sidebar .chat-container {
    height: 200px;
    max-height: 200px;
  }

  canvas {
    width: 100%;
    height: auto;
  }

  .teams-container {
    grid-template-columns: 1fr;
  }

  /* Modal responsive */
  .modal {
    padding: 15px;
    z-index: 9999;
  }

  .modal-content {
    padding: 20px;
    max-width: 95%;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .preparation-content {
    max-width: 95%;
    width: 100%;
  }

  .preparation-content h2 {
    font-size: 22px;
  }

  .round-indicator {
    font-size: 14px;
    margin-bottom: 15px;
  }

  /* Votación responsive */
  .word-options {
    flex-direction: column;
    gap: 15px;
  }

  .word-option {
    padding: 15px 20px;
    font-size: 20px;
    min-width: auto;
    width: 100%;
  }

  .prep-word {
    font-size: 28px;
    padding: 12px;
  }

  .prep-drawer-name {
    font-size: 28px;
  }

  .prep-instruction {
    font-size: 16px;
  }

  #prep-countdown {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 26px;
  }

  .countdown-container {
    margin-top: 15px;
  }

  .prep-drawer-message,
  .prep-guesser-message,
  .prep-voting-message {
    padding: 15px;
  }

  /* Derrota responsive */
  .defeat-icon {
    font-size: 80px;
  }

  /* Celebración responsive */
  .trophy {
    font-size: 60px;
  }

  .winner-banner {
    padding: 20px;
    margin: 0 10px 15px;
  }

  .winner-banner h1 {
    font-size: 22px;
  }

  .winner-team-name {
    font-size: 32px;
  }

  .winner-score {
    font-size: 20px;
  }

  .winner-players {
    gap: 10px;
    margin-bottom: 20px;
  }

  .winner-player {
    padding: 8px 15px;
    font-size: 14px;
  }

  .ranking-container {
    padding: 15px 20px;
    margin: 0 10px 20px;
  }

  .ranking-container h2 {
    font-size: 18px;
  }

  .ranking-item {
    padding: 10px 12px;
  }

  .ranking-team {
    font-size: 16px;
  }

  .ranking-score {
    font-size: 18px;
  }

  .btn-back-lobby {
    padding: 12px 30px;
    font-size: 16px;
  }
}
