html, body {
  margin: 0;
  padding: 0;
  background-color: #E8A600; /* tu color de fondo */
  width: 100%;
  height: 100%;
}

.pantalla-inicio-nueva {
  background-color: #ffb400;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Inter', sans-serif;
}

.header-quinteto {
  background-color: #ffb400;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0 0.5rem; /* o ajusta si necesitas mÃ¡s espacio */
  width: 100%;
}

.logo-quinteto {
  width: 220px;
  max-width: 100%;
  margin: 0 auto 12px;
  display: block;
}

.logo-jueguitos {
  max-width: 100%;
  height: auto;
}

.lema-quinteto {
  font-family: 'League Spartan', sans-serif;
  font-size: 14px;
  color: #000000;
  margin: 0;
  text-align: center;
}

.bloque {
  width: 100%;
  text-align: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.titulo-quinteto {
  background-color: #a6002b;
  color: #ffffff;
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
}

.subtitulo-quinteto {
  background-color: #791f3d;
  color: #ffffff;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 2rem;
}

.edicion-goat {
  background-color: #ffffff;
  color: #000000;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 15px; /* menos alto */
  text-align: center;
  line-height: 1; /* evita que haya espacio extra interno */
  box-shadow: inset 0 0 0 2px #1c1c1c; /* grosor y color del borde interior */
}

.instrucciones-quinteto {
  color: #000000;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  font-family: 'Inter', sans-serif;
}

.instrucciones-quinteto h2 {
  margin-top: 0;
  font-weight: 700;
  font-size: 1.6rem;
  color: #000000;
}

.instrucciones-quinteto p {
  margin: 0.5rem 0;
  font-weight: 400;
}

.btn-iniciar-nueva {
  background-color: #f1f1e2;
  color: #000;
  font-family: 'Urbanist', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  padding: 1rem 3rem;
  border: none;
  margin: 2rem auto;
  cursor: pointer;
  transition: background 0.3s ease;
  text-transform: uppercase;
}

.btn-iniciar-nueva:hover {
  background-color: #e2dbc8;
}

header {
  background-color: #5d4037;
  padding: 2rem 1rem;
  text-align: center;
}

header img {
  max-width: 100%;
  height: auto;
}

.header-jueguitos {
  background-color: #5d4037;
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
}

.header-jueguitos img {
  max-width: 260px;
  height: auto;
}

.header-jueguitos .lema {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #ffffff;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ——— Input + etiqueta ——— */
.label-input{
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  margin: 8px 0 6px;
  letter-spacing: .3px;
}

.bloque-input{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 10px auto 6px;
}

.botones-juego{
  display: flex;
  justify-content: center;  /* centra el botón */
  margin-top: 6px;          /* separa un poquito del input */
}

#input-jugador{
  width: 100%;
  max-width: 520px;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  text-align: center;
  border: none;
  outline: none;
  border-radius: 0; /* recto */
}

#input-jugador::placeholder{ opacity: .7; }

/* ——— Botón VALIDAR ——— */
.btn-validar{
  background: #f1f1e2;
  color: #000000;
  font-family: 'Urbanist', sans-serif;
  font-weight: 900; /* Black */
  font-size: 1rem;
  padding: 12px 28px;
  border: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .2s ease;
  display: inline-block;
  margin: 0 auto;           /* asegura centrado dentro de .botones-juego */
}
.btn-validar:hover{ filter: brightness(0.95); }

/* ——— Grilla de temporadas ——— */
.grid-temporadas{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 980px;
  margin: 16px auto 24px;
}

/* Tarjetas rectas, sin esquinas redondeadas */
.card-temporada{
  background: #ecebe6;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

/* Placa del año en Graduate + stroke */
.placa-anio{
  font-family: 'Graduate', serif !important; /* pediste Graduate */
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 6px 10px;
  -webkit-text-stroke: 0.2px currentColor; /* usa el color de texto como stroke por defecto */
}

/* Cuerpo de posiciones */
.card-body{ padding: 10px; }
.card-body .row-pos{
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  margin: 3px 0;
}
.card-body .row-pos .pos{
  display: inline-block;
  width: 2.2em;
  font-weight: 700;
}

/* ——— Botón ME RINDO al final ——— */
.pie-juego{
  display: flex;
  justify-content: center;
  margin: 18px 0 28px;
}
.btn-rendirse{
  background: #000000;
  color: #ffffff;
  font-family: 'Urbanist', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  padding: 12px 28px;
  border: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .2s ease;
}
.btn-rendirse:hover{ opacity: .9; }

/* ——— Responsive: 4 por fila en móvil ——— */
@media (max-width: 600px){
  .grid-temporadas{ grid-template-columns: repeat(4, 1fr); }
}

/* Mensaje final */
.mensaje-final {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
}

/* Botones finales */
.botones-final {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.botones-final button {
  background-color: #f1f1e2;
  color: #000000;
  font-family: 'Urbanist', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  padding: 15px 40px;
  border: none;
  cursor: pointer;
  width: 250px;
  text-align: center;
}

.botones-final button:hover {
  opacity: 0.9;
}

/* ✅ Fuente Inter para las sugerencias de autocomplete */
#sugerencias,
#sugerencias div,
#sugerencias li {
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
}

.msg-error {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  text-align: center;
  color: #000000; 
  margin-top: 6px;
  min-height: 16px; /* para que no salte la UI al ocultar/mostrar */
  opacity: 0;
  transition: opacity .2s ease;
}
.msg-error.activa { opacity: 1; }

.pantalla-juego {
  padding-bottom: 16px; /* fallback */
  padding-bottom: calc(16px + env(safe-area-inset-bottom)); /* iOS safe area */
}
