:root {
  --bg: #0f172a;           /* azul oscuro */
  --card: #111827;         /* gris muy oscuro */
  --text: #e5e7eb;         /* texto claro */
  --muted: #9ca3af;        /* texto secundario */
  --accent: #38bdf8;       /* azul vivo */
  --danger: #f87171;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #1e293b, var(--bg));
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

section {
  background: var(--card);
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  animation: fadeIn 0.4s ease;
}

.hidden {
  display: none;
}

h1, h2 {
  margin-top: 0;
  text-align: center;
}

p {
  color: var(--muted);
  text-align: center;
}

label {
  display: block;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.6rem 0.7rem;
  background: #020617;
  border: 1px solid #1f2933;
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
}

textarea {
  resize: none;
  height: 100px;
}

button {
  width: 100%;
  margin-top: 1.2rem;
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #020617;
  font-weight: 600;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56,189,248,0.4);
}

button:active {
  transform: translateY(0);
  box-shadow: none;
}

#round-indicator {
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--accent);
}

#role-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

#role-overlay:not(.hidden) {
  display: flex;
}

.role-card {
  background: white;
  color: #020617;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  max-width: 300px;
  width: 90%;
  animation: scaleIn 0.25s ease;
}

.role-card p {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.role-impostor {
  color: var(--danger);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
}

.role-word {
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 700;
}

.word-highlight {
  color: var(--accent);
  font-weight: 800;
}

