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

html,
body {
  overflow-x: hidden;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

.seo-content,
.ad-slot-game-end {
  width: min(760px, 100%);
  margin: 22px auto 0;
}

.seo-content {
  padding: 18px;
  border: 4px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 28px rgba(42, 28, 92, 0.1);
}

.seo-content h2 {
  margin: 0 0 8px;
  color: #3b2f78;
  font-size: 1.35rem;
}

.seo-content p {
  margin: 0 0 16px;
  color: #5c5481;
  font-weight: 700;
  line-height: 1.5;
}

.seo-content p:last-child {
  margin-bottom: 0;
}

.seo-content ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  text-align: left;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.related-card {
  display: grid;
  gap: 5px;
  min-height: 118px;
  padding: 14px;
  border: 3px solid #ffffff;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #fff0c2);
  color: #2d2a7f;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 7px 0 rgba(45, 42, 127, 0.12);
}

.related-card span {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.related-card strong,
.related-card small {
  display: block;
}

.related-card small {
  color: #5c5481;
  font-weight: 800;
  line-height: 1.25;
}

.seo-content a,
.legal-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.5rem;
  color: #4d35d9;
  font-weight: 900;
  text-decoration: none;
}

.seo-content a:hover,
.legal-footer a:hover {
  text-decoration: underline;
}

.ad-slot-game-end {
  min-height: 90px;
  border: 3px dashed rgba(109, 76, 255, 0.26);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
}

.ad-slot {
  display: none;
}

body.ads-enabled .ad-slot {
  display: block;
}

.legal-footer {
  width: min(760px, 100%);
  margin: 22px auto 0;
  padding: 18px;
  border: 4px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  color: #5c5481;
  font-weight: 800;
}

.legal-footer strong {
  color: #3b2f78;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 10px;
}

body {
  font-family: "Arial", sans-serif;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(135deg, #fff1a8 0%, #ffd5e9 42%, #bfeeff 100%);
  background-size: 34px 34px, 34px 34px, 100% 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  overflow-y: auto;
}

.contenedor {
  width: 100%;
  max-width: 560px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  padding: 24px 22px;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  border: 3px solid rgba(255, 255, 255, 0.8);
}

.panel-inicio {
  padding: 14px;
  border: 3px solid #ffffff;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #fff1fb);
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.1);
}

.panel-inicio p {
  margin-top: 6px;
  color: #5f5b7a;
  font-size: 14px;
  font-weight: bold;
}
.encabezado-juego {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.logo-canal {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ff4fa3;
  background: white;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.titulo-canal {
  text-align: left;
}

.titulo-canal .marca {
  margin-bottom: 6px;
}

.titulo-canal h1 {
  margin-bottom: 0;
}
.marca {
  display: inline-block;
  background: #ff4fa3;
  color: white;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 12px;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.55rem);
  color: #2d2a7f;
  margin-bottom: 8px;
  line-height: 1.06;
  overflow-wrap: anywhere;
  word-break: break-word;
}

h1 span {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.subtitulo {
  font-size: 16px;
  font-weight: normal;
  color: #555;
  margin-bottom: 18px;
}
.formulario-jugadores {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.formulario-jugadores h3 {
  color: #2d2a7f;
  font-size: 18px;
}

.formulario-jugadores input {
  width: 100%;
  padding: 13px 15px;
  border: 2px solid #d6d9ff;
  border-radius: 14px;
  font-size: 16px;
  outline: none;
  text-align: center;
}

.formulario-jugadores input:focus {
  border-color: #ff4fa3;
  box-shadow: 0 0 0 3px rgba(255, 79, 163, 0.18);
}
.selector-dificultad {
  display: none;
  flex-direction: column;
  gap: 9px;
  margin-top: 4px;
  padding: 12px;
  border-radius: 18px;
  background: #fff7fb;
  border: 2px dashed #ff9ccc;
}

.selector-dificultad p {
  color: #2d2a7f;
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 2px;
}

.selector-dificultad label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: white;
  color: #2d2a7f;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid #f4c6dc;
  text-align: left;
}

.selector-modo label,
.selector-dificultad label {
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.selector-modo label:hover,
.selector-dificultad label:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(45, 42, 127, 0.1);
}

.selector-modo label:has(input:checked),
.selector-dificultad label:has(input:checked) {
  border-color: #ff4fa3;
  box-shadow: 0 0 0 4px rgba(255, 79, 163, 0.14);
}

.selector-dificultad input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: #ff4fa3;
}
.boton-iniciar {
  padding: 13px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.3);
}

.boton-iniciar:hover {
  transform: translateY(-2px);
}

.acciones-principales {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.tablero-bloqueado {
  opacity: 0.45;
  pointer-events: none;
}
.selector-modo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.selector-modo label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: #f3f4ff;
  color: #2d2a7f;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid #d6d9ff;
  text-align: left;
}

.selector-modo input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #ff4fa3;
}

.selector-modo span {
  flex: 1;
}
.mensaje {
  display: block;
  width: 100%;
  background: #f3f4ff;
  color: #2d2a7f;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 22px;
}

.panel-partida,
.marcador-sesion {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.panel-partida {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}

.panel-partida--pendiente {
  opacity: 0.9;
}

.estado-turno,
.estado-detalle,
.marcador-sesion div {
  padding: 12px;
  border: 3px solid #ffffff;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fff0c2);
  box-shadow: 0 8px 18px rgba(45, 42, 127, 0.08);
}

.estado-turno span,
.marcador-sesion span {
  display: block;
  color: #766c8f;
  font-size: 13px;
  font-weight: 900;
}

.estado-turno strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
  color: #2d2a7f;
}

.estado-turno.turno-x strong {
  color: #ff4fa3;
}

.estado-turno.turno-o strong {
  color: #2563eb;
}

.estado-turno.pensando {
  animation: pensando 900ms ease-in-out infinite alternate;
}

.estado-detalle {
  display: grid;
  align-content: center;
  gap: 5px;
  color: #4b466d;
  font-size: 14px;
  font-weight: 900;
}

.marcador-sesion {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marcador-sesion strong {
  display: block;
  margin-top: 5px;
  color: #2d2a7f;
  font-size: 24px;
}

.historial-local {
  margin-bottom: 14px;
  padding: 12px;
  border: 3px solid #ffffff;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #eef8ff);
  text-align: left;
  box-shadow: 0 8px 18px rgba(45, 42, 127, 0.08);
}

.historial-local summary {
  margin-bottom: 8px;
  color: #2d2a7f;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  list-style-position: inside;
}

.historial-local[open] summary {
  margin-bottom: 8px;
}

.historial-local ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: #5f5b7a;
  font-size: 13px;
  font-weight: 800;
}

.tablero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  justify-content: center;
  margin: 0 auto 24px;
  max-width: 330px;
}

.controles-partida {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.controles-partida .boton-reiniciar,
.controles-partida .boton-secundario {
  margin-top: 0;
  min-height: 52px;
}

.casilla {
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 44px;
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  font-weight: bold;
  border: none;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, #e7e9ff);
  color: #2d2a7f;
  cursor: pointer;
  box-shadow:
    0 7px 0 #c8cdf7,
    0 10px 20px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.2s ease;
}

.casilla:focus-visible,
.boton-iniciar:focus-visible,
.boton-reiniciar:focus-visible,
.boton-secundario:focus-visible,
.boton-menu:focus-visible,
.boton-suscripcion:focus-visible,
.boton-cerrar:focus-visible {
  outline: 4px solid rgba(255, 79, 163, 0.38);
  outline-offset: 3px;
}

.casilla:hover {
  transform: translateY(-3px);
  background: linear-gradient(145deg, #fff5fb, #e3f0ff);
}

.casilla:active {
  transform: translateY(4px);
  box-shadow:
    0 3px 0 #c8cdf7,
    0 6px 12px rgba(0, 0, 0, 0.12);
}

.casilla:disabled {
  cursor: not-allowed;
}

.boton-reiniciar {
  width: 100%;
  max-width: 260px;
  padding: 14px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4fa3, #7c3aed);
  color: white;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.boton-reiniciar:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.42);
}

.boton-reiniciar:active {
  transform: translateY(2px);
}

.casilla.x {
  color: #ff4fa3;
  animation: aparecerFicha 220ms ease-out;
}

.casilla.o {
  color: #2563eb;
  animation: aparecerFicha 220ms ease-out;
}
@media (max-width: 720px) {
  body {
    justify-content: flex-start;
  }

  .contenedor {
    width: min(100%, 370px);
    max-width: 370px;
  }

  .encabezado-juego {
    flex-direction: column;
    gap: 8px;
  }

  .titulo-canal {
    text-align: center;
    width: 100%;
    min-width: 0;
  }

  h1 {
    max-width: 340px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(1.45rem, 5.8vw, 2rem);
    line-height: 1.08;
  }

  .logo-canal {
    width: 82px;
    height: 82px;
  }

  .panel-partida,
  .marcador-sesion {
    grid-template-columns: 1fr;
  }

  .marcador-sesion div:nth-child(3) {
    grid-column: auto;
  }
}
.celebracion {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(12, 10, 35, 0.72);
  z-index: 999;
  overflow: hidden;
  padding: 20px;
}

.celebracion.activa {
  display: flex;
}

.cartel-ganador {
  position: relative;
  z-index: 2;
  width: min(92vw, 520px);
  background: linear-gradient(135deg, #ffffff, #fff1fb);
  border: 5px solid #ff4fa3;
  border-radius: 32px;
  padding: 34px 24px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  animation: aparecerCartel 0.6s ease;
}

.trofeos {
  font-size: 54px;
  margin-bottom: 12px;
  animation: saltarTrofeo 0.9s ease infinite alternate;
}

.cartel-ganador h2 {
  font-size: clamp(32px, 7vw, 58px);
  color: #2d2a7f;
  line-height: 1.1;
  margin-bottom: 22px;
}

.resumen-resultado {
  margin-bottom: 16px;
  color: #5f5b7a;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.acciones-resultado {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.boton-cerrar {
  padding: 13px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4fa3, #7c3aed);
  color: white;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
}

.boton-modal-secundario {
  background: linear-gradient(135deg, #22c55e, #2563eb);
}

.fuegos-artificiales span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: explotar 1.4s ease-out infinite;
}

.fuegos-artificiales span:nth-child(1) {
  top: 18%;
  left: 18%;
  background: #ff4fa3;
  animation-delay: 0s;
}

.fuegos-artificiales span:nth-child(2) {
  top: 22%;
  right: 18%;
  background: #ffe600;
  animation-delay: 0.25s;
}

.fuegos-artificiales span:nth-child(3) {
  bottom: 20%;
  left: 22%;
  background: #4cc9f0;
  animation-delay: 0.5s;
}

.fuegos-artificiales span:nth-child(4) {
  bottom: 18%;
  right: 22%;
  background: #22c55e;
  animation-delay: 0.75s;
}

.fuegos-artificiales span:nth-child(5) {
  top: 48%;
  left: 10%;
  background: #fb7185;
  animation-delay: 1s;
}

.fuegos-artificiales span:nth-child(6) {
  top: 45%;
  right: 10%;
  background: #a78bfa;
  animation-delay: 1.2s;
}

@keyframes explotar {
  0% {
    transform: scale(0);
    opacity: 1;
    box-shadow:
      0 0 0 #fff,
      0 0 0 #fff,
      0 0 0 #fff,
      0 0 0 #fff,
      0 0 0 #fff,
      0 0 0 #fff;
  }

  70% {
    transform: scale(1.1);
    opacity: 1;
    box-shadow:
      0 -55px 0 #ff4fa3,
      40px -40px 0 #ffe600,
      55px 0 0 #4cc9f0,
      40px 40px 0 #22c55e,
      0 55px 0 #fb7185,
      -40px 40px 0 #a78bfa,
      -55px 0 0 #ffffff,
      -40px -40px 0 #f97316;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
    box-shadow:
      0 -75px 0 transparent,
      55px -55px 0 transparent,
      75px 0 0 transparent,
      55px 55px 0 transparent,
      0 75px 0 transparent,
      -55px 55px 0 transparent,
      -75px 0 0 transparent,
      -55px -55px 0 transparent;
  }
}

@keyframes aparecerCartel {
  from {
    transform: scale(0.65);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes saltarTrofeo {
  from {
    transform: translateY(0) rotate(-2deg);
  }

  to {
    transform: translateY(-8px) rotate(2deg);
  }
}
.cartel-empate {
  border-color: #64748b;
  background: linear-gradient(135deg, #ffffff, #eef2ff);
}

.cartel-empate h2 {
  color: #334155;
}

.caritas-empate {
  font-size: 46px;
  margin-bottom: 14px;
  animation: caritaTriste 0.9s ease infinite alternate;
}

.celebracion.empate .fuegos-artificiales {
  display: none;
}

@keyframes caritaTriste {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(6px);
  }
}
.boton-menu,
.boton-secundario,
.boton-suscripcion {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 300px;
  margin-top: 14px;
  padding: 15px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff0000, #ff4fa3, #7c3aed);
  color: #ffffff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 24px rgba(255, 0, 0, 0.35);
  border: 3px solid #ffffff;
  animation: pulsoSuscripcion 1.4s infinite;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.boton-secundario {
  background: linear-gradient(135deg, #f59e0b, #ff4fa3);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.25);
  animation: none;
}

.boton-secundario:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.34);
}

.boton-menu {
  background: linear-gradient(135deg, #22c55e, #2563eb);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
  animation: none;
}

.boton-menu:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.36);
}

.boton-suscripcion:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px rgba(255, 0, 0, 0.45);
}

.boton-suscripcion:active {
  transform: translateY(2px) scale(0.98);
}

.boton-suscripcion {
  min-height: 62px;
  overflow: hidden;
  border-width: 4px;
  background: linear-gradient(135deg, #ff001f 0%, #ff4fa3 48%, #7c3aed 100%);
  box-shadow:
    0 10px 0 #b6004b,
    0 16px 30px rgba(255, 0, 80, 0.38);
}

.boton-suscripcion::before {
  content: "";
  position: absolute;
  inset: -45% auto -45% -55%;
  z-index: -1;
  width: 44%;
  transform: rotate(18deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.78),
    transparent
  );
  animation: brilloSuscripcion 2.1s ease-in-out infinite;
}

.boton-suscripcion::after {
  content: "▶";
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #ff001f;
  font-size: 0.9em;
  line-height: 1;
}

@keyframes brilloSuscripcion {
  0% {
    left: -55%;
  }

  55%,
  100% {
    left: 120%;
  }
}

@keyframes pulsoSuscripcion {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.5);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(255, 0, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}
.casilla-ganadora {
  background: linear-gradient(145deg, #fff7ad, #ffd166) !important;
  animation: brillarGanadora 0.7s ease infinite alternate;
  box-shadow:
    0 0 18px rgba(255, 209, 102, 0.9),
    0 7px 0 #f59e0b,
    0 12px 24px rgba(245, 158, 11, 0.35) !important;
}

@keyframes brillarGanadora {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

@keyframes aparecerFicha {
  from {
    transform: scale(0.65) rotate(-8deg);
    opacity: 0.5;
  }

  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

@keyframes pensando {
  from {
    filter: brightness(1);
  }

  to {
    filter: brightness(1.08) saturate(1.15);
    box-shadow:
      0 8px 18px rgba(45, 42, 127, 0.08),
      0 0 0 5px rgba(37, 99, 235, 0.1);
  }
}
@media (max-width: 480px) {
  body {
    align-items: flex-start;
    padding: 10px;
  }

  .contenedor {
    max-width: 100%;
    min-height: auto;
    padding: 18px 12px;
    border-radius: 24px;
    overflow: hidden;
  }

  .encabezado-juego {
    gap: 8px;
  }

  .logo-canal {
    width: 72px;
    height: 72px;
  }

  h1 {
    font-size: clamp(1.42rem, 6.6vw, 1.85rem);
    line-height: 1.08;
  }

  .marca {
    font-size: 14px;
    padding: 7px 12px;
  }

  .subtitulo {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .mensaje {
    font-size: 15px;
    padding: 9px 12px;
    margin-bottom: 16px;
  }

  .formulario-jugadores h3 {
    font-size: 16px;
  }

  .formulario-jugadores input {
    font-size: 15px;
    padding: 12px 13px;
  }

  .tablero {
    width: 100%;
    max-width: min(100%, 360px);
    gap: 9px;
    margin-bottom: 18px;
  }

  .casilla {
    font-size: clamp(42px, 15vw, 58px);
    border-radius: 17px;
  }

  .boton-reiniciar,
  .boton-iniciar,
  .boton-secundario,
  .boton-menu,
  .boton-suscripcion {
    max-width: 100%;
    font-size: 15px;
    padding: 13px 18px;
  }

  .panel-partida,
  .marcador-sesion {
    grid-template-columns: 1fr;
  }

  .marcador-sesion div:nth-child(3) {
    grid-column: auto;
  }

  .historial-local {
    max-height: 150px;
    overflow-y: auto;
  }

  .estado-turno strong {
    font-size: 20px;
  }

  .cartel-ganador {
    padding: 28px 18px;
    border-radius: 26px;
  }

  .trofeos {
    font-size: 42px;
  }

  .cartel-ganador h2 {
    font-size: 34px;
  }
}

@media (max-width: 340px) {
  .tablero {
    max-width: 270px;
    gap: 8px;
  }

  .casilla {
    font-size: 38px;
    border-radius: 15px;
  }

  h1 {
    font-size: 26px;
  }

  .marca {
    font-size: 13px;
    padding: 7px 12px;
  }
}
