/* ==========================================================================
   Yoanoto — estilos propios del anotador de Generala
   (lo compartido está en base.css)
   ========================================================================== */

.gn-center {
  padding-top: 40px;
  text-align: center;
  color: var(--humo);
}
.gn-cuerpo {
  padding-top: 10px;
  padding-bottom: 32px;
}
.gn-hero {
  padding: 18px 2px 4px;
}
.gn-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  margin: 6px 0 8px;
}

.gn-fila {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.gn-num {
  width: 20px;
  font-size: 12px;
  color: var(--oro);
  flex: 0 0 auto;
}

/* -------------------------------------------------------- barra de arriba */

.gn-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(12, 35, 28, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea);
}
.gn-topinner {
  padding: 10px 16px 0;
  max-width: var(--ancho);
  margin: 0 auto;
}
.gn-marcador {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.gn-chip {
  flex: 0 0 auto;
  min-width: 66px;
  background: rgba(242, 231, 208, 0.07);
  border: 1px solid var(--linea);
  border-radius: 10px;
  padding: 5px 9px;
  text-align: center;
}
.gn-chip-lider {
  border-color: var(--oro);
  background: rgba(210, 160, 60, 0.15);
}
.gn-chip-n {
  display: block;
  font-size: 11px;
  color: var(--humo);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}
.gn-chip-p {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.gn-chip-lider .gn-chip-p {
  color: var(--oro);
}
.gn-acciones-top {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-bottom: 2px;
}
.gn-acciones-top button {
  background: none;
  border: none;
  color: var(--humo);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 10px;
  cursor: pointer;
}
.gn-progreso {
  font-size: 12px;
  color: var(--humo);
}
.gn-nuevo {
  margin-left: auto;
  font-size: 12px !important;
  white-space: nowrap;
}
.gn-peligro {
  color: var(--copa) !important;
}
.gn-cfg {
  font-size: 16px !important;
}

/* ------------------------------------------------------------- planilla */

.gn-tabla-box {
  overflow-x: auto;
  border: 1px solid var(--linea);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}
.gn-tabla {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 14px;
}
.gn-tabla th,
.gn-tabla td {
  padding: 0;
  text-align: center;
  white-space: nowrap;
}
.gn-th-jug {
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 600;
  border-bottom: 1px solid var(--linea-fuerte);
  border-left: 1px solid rgba(242, 231, 208, 0.12);
  padding: 7px 4px !important;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gn-sticky {
  position: sticky;
  left: 0;
  background: var(--felt3);
  z-index: 1;
  text-align: left !important;
}
.gn-th-cat {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--humo);
  font-weight: 500;
  padding: 7px 8px !important;
  border-bottom: 1px solid var(--linea-fuerte);
}
.gn-cat {
  padding: 6px 8px !important;
  font-size: 13px;
  font-weight: 600;
  border-top: 1px solid rgba(242, 231, 208, 0.07);
}
.gn-cat-in {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 118px;
}
.gn-cat-in i {
  color: var(--oro);
  display: flex;
  flex: 0 0 auto;
}
.gn-cat-in small {
  color: var(--humo);
  font-weight: 400;
  font-size: 11px;
  margin-left: auto;
  padding-left: 8px;
}
.gn-tabla tbody tr:nth-child(even) .gn-sticky {
  background: #132d24;
}
.gn-tabla tbody tr.gn-fila-juego .gn-sticky {
  background: #143026;
}
.gn-tabla tbody tr.gn-fila-juego:nth-child(even) .gn-sticky {
  background: #16352a;
}

/* celdas tocables */
.gn-celda {
  border-left: 1px solid rgba(242, 231, 208, 0.1);
  border-top: 1px solid rgba(242, 231, 208, 0.07);
  padding: 0 !important;
}
.gn-celda button {
  width: 100%;
  min-width: 46px;
  height: 38px;
  background: none;
  border: none;
  color: var(--papel);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  position: relative;
}
.gn-celda button:hover {
  background: rgba(242, 231, 208, 0.07);
}
.gn-celda button.vacia {
  color: rgba(242, 231, 208, 0.28);
  font-weight: 400;
}
.gn-celda button.cero {
  color: var(--copa);
  font-weight: 400;
}
.gn-celda button.trabada {
  color: rgba(242, 231, 208, 0.18);
  cursor: not-allowed;
}
.gn-celda button.servida::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--oro);
}
.gn-tabla tfoot th {
  border-top: 1px solid rgba(242, 231, 208, 0.22);
  font-family: var(--serif);
  font-size: 16px;
  padding: 9px 4px !important;
  font-variant-numeric: tabular-nums;
}
.gn-tabla tfoot th.lider {
  color: var(--oro);
}

.gn-leyenda {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--humo);
  margin-top: 9px;
}
.gn-punto {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--oro);
  flex: 0 0 auto;
}

/* ---------------------------------------------------------------- banner */

.gn-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--oro);
  background: rgba(210, 160, 60, 0.14);
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 12px;
}
.gn-banner-t {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
}
.gn-banner-s {
  font-size: 12px;
  color: var(--humo);
}
.gn-banner svg {
  color: var(--oro);
  flex: 0 0 auto;
}

/* ----------------------------------------------------- hoja de carga */

.gn-fondo {
  position: fixed;
  inset: 0;
  background: rgba(6, 18, 14, 0.72);
  z-index: 20;
  border: none;
  width: 100%;
  padding: 0;
  cursor: pointer;
}
.gn-hoja {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  max-width: var(--ancho);
  margin: 0 auto;
  background: #14352a;
  border: 1px solid var(--linea-fuerte);
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  animation: hoja-in 0.18s ease-out;
}
@keyframes hoja-in {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
}
.gn-hoja-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.gn-hoja-cat {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}
.gn-hoja-jug {
  font-size: 12px;
  color: var(--oro);
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 45%;
}
.gn-opciones {
  display: grid;
  gap: 8px;
}
.gn-op {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: rgba(242, 231, 208, 0.07);
  border: 1px solid rgba(242, 231, 208, 0.16);
  color: var(--papel);
  border-radius: 11px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.gn-op:hover {
  background: rgba(242, 231, 208, 0.13);
}
.gn-op b {
  margin-left: auto;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--oro);
  font-variant-numeric: tabular-nums;
}
.gn-op small {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--humo);
  margin-top: 1px;
}
.gn-op-servida {
  border-color: rgba(210, 160, 60, 0.5);
  background: rgba(210, 160, 60, 0.12);
}
.gn-op-tachar {
  border-color: rgba(176, 58, 52, 0.45);
}
.gn-op-tachar b {
  color: var(--copa);
}
.gn-op.on {
  outline: 2px solid var(--oro);
  outline-offset: 1px;
}
.gn-dados {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(242, 231, 208, 0.16);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  text-align: center;
}
.gn-dados-lab {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--humo);
  display: block;
  margin-bottom: 9px;
}
.gn-pastillas {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.gn-pastilla {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(242, 231, 208, 0.08);
  border: 1px solid rgba(242, 231, 208, 0.16);
  color: var(--papel);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0;
}
.gn-pastilla span {
  font-size: 10px;
  color: var(--humo);
  font-weight: 400;
}
.gn-pastilla.on {
  background: var(--oro);
  color: #20170a;
  border-color: var(--oro);
}
.gn-pastilla.on span {
  color: rgba(32, 23, 10, 0.7);
}
.gn-nav {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* tabla chica de la escala en la pantalla de configuración */
.gn-escala {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.gn-escala td {
  padding: 6px 4px;
  border-bottom: 1px solid rgba(242, 231, 208, 0.08);
}
.gn-escala td:first-child {
  color: var(--papel);
}
.gn-escala td:not(:first-child) {
  text-align: right;
  width: 62px;
  font-variant-numeric: tabular-nums;
  color: var(--humo);
}
.gn-escala tr:last-child td {
  border-bottom: none;
}
.gn-oro {
  color: var(--oro) !important;
  font-weight: 600;
}

/* En el celular la ayudita de cada jugada se esconde: mandan las columnas
   de los jugadores, que es lo que hay que ver de un vistazo. */
@media (max-width: 560px) {
  .gn-cat-in small {
    display: none;
  }
  .gn-cat {
    white-space: normal !important;
    padding: 5px 7px !important;
  }
  .gn-cat-in {
    min-width: 0;
    max-width: 86px;
    line-height: 1.15;
  }
  .gn-cat-n {
    white-space: normal;
  }
  .gn-th-jug {
    max-width: 62px;
    padding: 7px 2px !important;
  }
  .gn-celda button {
    min-width: 40px;
  }
}
@media (max-width: 400px) {
  .gn-title {
    font-size: 34px;
  }
  .gn-tabla {
    font-size: 13px;
  }
  .gn-cat {
    font-size: 12px;
  }
}

.gn-escala th {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--humo);
  font-weight: 500;
  padding: 0 4px 6px;
  border-bottom: 1px solid var(--linea);
  text-align: left;
}
.gn-escala th:not(:first-child) {
  text-align: right;
  width: 62px;
}
.gn-escala th:last-child {
  color: var(--oro);
}

.gn-aviso {
  margin: 0 0 4px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--humo);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 10px;
  padding: 10px 12px;
}
