/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #74ebd5, #acb6e5);
  display: flex; justify-content: center; align-items: center;
  height: 100vh;
}

/* Card centrada */
#app {
  width: 100%; max-width: 420px; min-height: 600px;
  background: #fff; border-radius: 1.5rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

/* Títulos */
h1 { font-size: 2rem; margin-bottom: 1rem; color: #333; }
h2 { font-size: 1.4rem; margin-bottom: 1rem; color: #444; }
h3 { font-size: 1rem; margin-bottom: 0.5rem; color: #555; }

/* Input nombre */
.name-input {
  width: 100%; padding: 0.8rem; margin-bottom: 1rem; font-size: 1rem;
  border: 2px solid #ccc; border-radius: 0.8rem; outline: none; transition: border 0.2s;
}
.name-input:focus { border: 2px solid #007bff; }

/* Botones */
button {
  display: block; width: 100%; padding: 1rem; margin: 0.5rem 0;
  border: none; border-radius: 0.8rem; font-size: 1.1rem; cursor: pointer;
  background: #007bff; color: white; font-weight: 600; transition: transform 0.1s, background 0.3s;
}
button:hover { transform: scale(1.03); }
button:active { transform: scale(0.97); }
button.danger { background: #e74c3c; }
button.voted { background: #5dade2; }

/* Lista jugadores (pantallas secundarias) */
.players { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin: 1rem 0; }
.player { background: #f1f1f1; padding: 0.4rem 0.7rem; border-radius: 0.6rem; font-size: 0.9rem; }

/* Sidebar */
.sidebar {
  margin-top: 1.5rem; font-size: 0.8rem; background: #fafafa; border: 1px solid #eee;
  border-radius: 0.8rem; padding: 0.5rem; width: 100%; text-align: left;
  max-height: 120px; overflow-y: auto;
}
.sidebar .player { background: #eee; font-size: 0.85rem; display: inline-block; margin: 2px; }

/* Palabra */
.word { font-size: 2rem; font-weight: bold; text-align: center; margin: 1.5rem 0; color: #2c3e50; }
