/* Generala · Juegos de la ronda. Todo con el prefijo gl- (la página común está en /comun/base.css). */

/* ---------- Página ---------- */
.hero-juego .gl-portada { min-height: 410px; }
.hero-juego .gl-portada .arte { place-items: start end; }
.hero-juego .gl-portada .arte svg { width: min(70%, 330px); height: auto; margin: 10px 2px 0 0; }
@media (min-width: 760px) {
  .hero-juego .gl-portada { min-height: 340px; padding-right: 46%; }
  .hero-juego .gl-portada .arte { place-items: center end; }
  .hero-juego .gl-portada .arte svg { width: min(46%, 470px); margin-right: 28px; }
}
.gl-tabla { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 10px; }
.gl-tabla th, .gl-tabla td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--papel-2); vertical-align: top; }
.gl-tabla thead th { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--kraft-osc); }
.gl-tabla .n { text-align: right; white-space: nowrap; width: 1%; padding-left: 12px; }
.gl-tabla td.n { font-family: var(--titulo); font-size: 22px; font-weight: 800; line-height: 1.1; }
.gl-tabla td b { font-weight: 800; display: block; }
.gl-tabla td small { display: block; font-size: 13px; color: var(--gris); margin-top: 2px; line-height: 1.35; }
.gl-medallas { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.gl-medallas li { display: flex; gap: 10px; align-items: baseline; }
.gl-medallas li span { font-size: 20px; }

/* ---------- Pantalla de juego ---------- */
.gl {
  --d: 52px;
  --gl-hueco: calc(var(--d) + 8px);
  position: relative; flex: 1; display: flex; flex-direction: column; gap: 8px;
  padding: 2px 16px max(14px, env(safe-area-inset-bottom));
  width: 100%; max-width: 1180px; margin: 0 auto;
  -webkit-user-select: none; user-select: none;
}
.gl-cuerpo { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.gl-col-mesa { display: flex; flex-direction: column; gap: 8px; }

/* Marcador de jugadores */
.gl-arriba { min-height: 46px; }
.gl-marcador { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.gl-marcador::-webkit-scrollbar { display: none; }
.gl-chip-j {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 7px; min-height: 44px;
  padding: 4px 10px 4px 5px; border-radius: 999px; border: 2px solid rgba(255, 253, 248, .1); background: rgba(255, 253, 248, .06);
  color: var(--blanco); cursor: pointer; transition: background .2s, border-color .2s;
}
.gl-chip-j .gl-cj-nom { font-size: 13px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; opacity: .85; }
.gl-chip-j .gl-tot { font-family: var(--titulo); font-weight: 800; font-size: 24px; line-height: 1; }
.gl-chip-j.activo { border-color: var(--celeste); background: rgba(135, 206, 235, .16); }
.gl-chip-j.activo .gl-cj-nom { opacity: 1; }
.gl-punta { position: absolute; top: -5px; left: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--sol); box-shadow: 0 0 0 2px var(--mesa); }
.gl-marcador.compacto .gl-chip-j { flex: 1 0 auto; padding-right: 9px; }
.gl-marcador.compacto .gl-chip-j:not(.activo) .gl-cj-nom { display: none; }
.gl-marcador.compacto .gl-chip-j.activo { flex-shrink: 1; }
@media (max-width: 899px) {
  /* De a tres en el celu: ícono más chico para que entren los nombres ("Juan" salía "Ju…") */
  .gl-marcador.trio .gl-chip-j { gap: 4px; padding: 4px 7px 4px 4px; }
  .gl-marcador.trio .gl-chip-j .avatar.chico { width: 24px; height: 24px; font-size: 13px; }
  .gl-marcador.trio .gl-chip-j .gl-tot { font-size: 22px; }
  .gl-marcador.trio .gl-punta { left: 20px; }
}
.gl-tot.sube { animation: gl-sube .6s cubic-bezier(.2, 1.6, .4, 1); color: var(--celeste); }
@keyframes gl-sube { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

.gl-resumen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gl-resumen > div { background: rgba(255, 253, 248, .06); border: 1px solid rgba(255, 253, 248, .09); border-radius: 14px; padding: 5px 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-height: 44px; }
.gl-resumen small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris-claro); font-weight: 700; }
.gl-resumen b { font-family: var(--titulo); font-weight: 800; font-size: 26px; line-height: 1; }
.gl-resumen b span { font-size: 16px; opacity: .55; }
.gl-resumen .gl-res-total { border-color: rgba(135, 206, 235, .45); }
.gl-resumen .gl-res-total b { color: var(--celeste); }
.gl-resumen .gl-res-record { border-color: var(--kraft); background: rgba(179, 139, 93, .2); }
.gl-resumen .gl-res-record small { color: var(--kraft); }

/* Línea de estado */
.gl-estado { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.gl-estado .avatar.chico { width: 26px; height: 26px; font-size: 14px; }
.gl-quien { font-weight: 800; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-quien.mio { color: var(--celeste); }
.gl-ronda { font-size: 12px; color: var(--gris-claro); font-weight: 600; white-space: nowrap; margin-left: auto; }
.gl-sacudir { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 253, 248, .1); color: var(--blanco); cursor: pointer; flex: none; display: grid; place-items: center; margin: -6px 0 -6px 2px; }
.gl-sacudir svg { width: 22px; height: 22px; }
.gl-sacudir.activo { background: var(--celeste); color: var(--negro); }
.gl-estado .gl-sacudir:only-child, .gl-quien + .gl-sacudir { margin-left: auto; }
.gl-estado.pulso .gl-quien { animation: gl-pulso .7s ease 2; }
@keyframes gl-pulso { 50% { transform: scale(1.08); color: var(--blanco); } }

/* ---------- Mesa: paño, cubilete, guardados ---------- */
.gl-mesa { position: relative; display: flex; flex-direction: column; gap: 6px; }
.gl-pano {
  padding: 7px; border-radius: 24px;
  background: linear-gradient(160deg, #c9a06d 0%, #a57c4e 45%, #7a5a36 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.gl-fieltro {
  position: relative; height: clamp(150px, calc(100dvh - 672px), 240px); border-radius: 18px; overflow: hidden;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>"),
    radial-gradient(120% 95% at 50% 22%, #24536a 0%, #173a4c 45%, #0e2431 100%);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), inset 0 10px 26px rgba(0, 0, 0, .5), inset 0 -6px 18px rgba(0, 0, 0, .35);
}
.gl-fieltro::after { content: ''; position: absolute; inset: 6px; border-radius: 13px; border: 1.5px dashed rgba(244, 236, 224, .22); pointer-events: none; }
.gl-cubilete {
  position: absolute; left: 50%; top: 50%; width: 86px; height: 94px; margin: -50px 0 0 -43px; padding: 0; border: 0; background: none; cursor: pointer;
  transition: opacity .35s ease, transform .45s cubic-bezier(.3, 1.4, .5, 1); z-index: 3; -webkit-tap-highlight-color: transparent;
}
.gl-cubilete svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .4)); }
.gl-cubilete:disabled { cursor: default; }
.gl-cubilete.invita { animation: gl-invita 2.4s ease-in-out infinite; }
.gl-cubilete.fuera { opacity: 0; transform: translateY(-30px) rotate(-25deg) scale(.8); pointer-events: none; }
.gl-cubilete.sacude { animation: gl-sacude var(--gl-sacude, 420ms) linear; }
@keyframes gl-invita { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-6deg); } 82% { transform: rotate(5deg); } 88% { transform: rotate(-3deg); } 94% { transform: rotate(2deg); } }
@keyframes gl-sacude { 0% { transform: rotate(0) translateY(0); } 15% { transform: rotate(-14deg) translate(-6px, -6px); } 35% { transform: rotate(12deg) translate(6px, -10px); } 55% { transform: rotate(-12deg) translate(-5px, -8px); } 75% { transform: rotate(10deg) translate(4px, -4px); } 100% { transform: rotate(-70deg) translate(-10px, 6px); opacity: .2; } }
.gl-jugada { position: absolute; left: 0; right: 0; top: 10px; display: flex; justify-content: center; pointer-events: none; z-index: 9; }
.gl-jugada span {
  font-family: var(--titulo); font-weight: 900; font-size: 26px; text-transform: uppercase; letter-spacing: .02em; line-height: 1;
  background: var(--blanco); color: var(--negro); border-radius: 999px; padding: 6px 16px 5px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  display: inline-flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(-14px) scale(.8);
}
.gl-jugada span small { font-family: var(--texto); font-size: 11px; font-weight: 800; letter-spacing: .1em; background: var(--kraft); color: var(--blanco); border-radius: 999px; padding: 3px 8px; }
.gl-jugada.ver span { animation: gl-jugada 1.7s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes gl-jugada { 0% { opacity: 0; transform: translateY(-14px) scale(.8); } 14% { opacity: 1; transform: none; } 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
.gl-pista { position: absolute; left: 0; right: 0; bottom: 9px; text-align: center; font-size: 12px; font-weight: 600; color: rgba(244, 236, 224, .62); pointer-events: none; opacity: 0; transition: opacity .3s; z-index: 1; }
.gl-pista.ver { opacity: 1; }

.gl-bandeja {
  position: relative; display: flex; justify-content: center; align-items: center; gap: 0; height: calc(var(--gl-hueco) + 14px);
  border-radius: 18px; padding: 0 8px; background: linear-gradient(180deg, #3a332b, #2c2620); box-shadow: inset 0 2px 10px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(179, 139, 93, .25);
}
.gl-bandeja-pista { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: rgba(179, 139, 93, .75); letter-spacing: .02em; pointer-events: none; transition: opacity .25s; text-align: center; padding: 0 12px; }
.gl-bandeja-pista.mio { color: var(--celeste); }
.gl-bandeja-pista.ocultar { opacity: 0; }
.gl-hueco { flex: 1 1 0; max-width: calc(var(--d) * 1.34); height: var(--gl-hueco); }
.gl-flecha::after { content: '↓'; }

/* ---------- Dados 3D ---------- */
.gl-dado {
  position: absolute; left: 0; top: 0; width: var(--d); height: var(--d); padding: 0; border: 0; background: none; z-index: 5;
  transition: transform .42s cubic-bezier(.2, .8, .2, 1), opacity .35s ease; will-change: transform; -webkit-tap-highlight-color: transparent; cursor: default; touch-action: manipulation;
}
.gl-dado.tocable { cursor: pointer; }
.gl-dado.adentro { pointer-events: none; }
.gl-dado.rodando { z-index: 7; }
.gl-dado:focus-visible { outline: 3px solid var(--celeste); outline-offset: 4px; border-radius: 12px; }
.gl-sombra { position: absolute; left: 6%; right: 6%; bottom: -12%; height: 30%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 70%); }
.gl-escena { position: absolute; inset: 0; perspective: calc(var(--d) * 7); }
.gl-cubo { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.16, .62, .24, 1); transform: rotateX(-24deg) rotateY(-20deg); }
.gl-cara {
  position: absolute; inset: 0; border-radius: 19%; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 15%;
  background: radial-gradient(circle at 30% 24%, #fffef9 0%, #f6efe2 55%, #e9dcc5 100%);
  box-shadow: inset 0 0 0 1px rgba(122, 90, 54, .2), inset 0 -3px 7px rgba(122, 90, 54, .2), inset 0 2px 3px rgba(255, 255, 255, .9);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.gl-cara i { align-self: center; justify-self: center; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #4a4239 0%, #161412 62%); box-shadow: inset 0 1.5px 1.5px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .85); }
.gl-cara.c1 i { width: 125%; background: radial-gradient(circle at 38% 34%, #8fd3ef 0%, #2F7FA8 70%); }
.gl-cara.c1 { transform: translateZ(calc(var(--d) / 2)); }
.gl-cara.c6 { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.gl-cara.c2 { transform: rotateY(90deg) translateZ(calc(var(--d) / 2)); }
.gl-cara.c5 { transform: rotateY(-90deg) translateZ(calc(var(--d) / 2)); }
.gl-cara.c3 { transform: rotateX(90deg) translateZ(calc(var(--d) / 2)); }
.gl-cara.c4 { transform: rotateX(-90deg) translateZ(calc(var(--d) / 2)); }
.gl-nucleo { position: absolute; inset: 4%; border-radius: 12%; background: #ddcfb6; }
.gl-nucleo.n2 { transform: rotateY(90deg); }
.gl-nucleo.n3 { transform: rotateX(90deg); }
.gl-dado.guardado .gl-sombra { background: radial-gradient(ellipse at center, rgba(135, 206, 235, .35), rgba(0, 0, 0, 0) 70%); }

/* ---------- Botón de tirar ---------- */
.gl-tirar { gap: 14px; }
.gl-tirar .gl-t-pips { display: inline-flex; gap: 5px; }
.gl-tirar .gl-t-pips i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--negro); opacity: .35; }
.gl-tirar .gl-t-pips i.lleno { background: var(--negro); opacity: 1; }
.gl-tirar[disabled] { opacity: 1; }
.gl-tirar { transition: transform .12s ease, box-shadow .12s ease, background .15s ease, color .15s ease, opacity .2s ease; }
.gl[data-ocupado="1"] .gl-tirar:not(.gl-espera) { opacity: .5; } /* mientras ruedan o se anota: todavía no */
.gl-tirar.gl-espera { background: rgba(255, 253, 248, .07); border-color: rgba(255, 253, 248, .12); color: var(--gris-claro); }
.gl-tirar.gl-anota { background: transparent; border-color: var(--celeste); color: var(--celeste); border-style: dashed; }
.gl-tirar.gl-suelta { background: rgba(135, 206, 235, .2); border-color: transparent; color: rgba(255, 253, 248, .8); }
.gl-tirar:disabled { pointer-events: none; }
.gl-puntitos { display: inline-flex; gap: 4px; }
.gl-puntitos i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: gl-puntito 1.2s ease-in-out infinite; }
.gl-puntitos i:nth-child(2) { animation-delay: .15s; }
.gl-puntitos i:nth-child(3) { animation-delay: .3s; }
@keyframes gl-puntito { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---------- Planilla ---------- */
.gl-planilla {
  background: var(--papel); color: var(--tinta); border-radius: 18px; padding: 4px 12px 6px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35); position: relative;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 40px);
}
.gl-planilla.llama { animation: sacudir .4s ease; }
.gl-pl-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 2px 4px; border-bottom: 2px solid var(--negro); }
.gl-pl-quien { font-family: var(--titulo); font-weight: 800; font-size: 21px; text-transform: uppercase; line-height: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-pl-total { display: flex; align-items: baseline; gap: 6px; }
.gl-pl-total small { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--kraft-osc); font-weight: 800; }
.gl-pl-total b { font-family: var(--titulo); font-weight: 900; font-size: 30px; line-height: 1; }
.gl-pl-grilla { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.gl-pl-col + .gl-pl-col { border-left: 1px dashed rgba(122, 90, 54, .35); padding-left: 10px; }
.gl-fila {
  position: relative; display: flex; align-items: center; gap: 7px; width: 100%; min-height: 44px; padding: 0 2px; border: 0;
  border-bottom: 1px dashed rgba(122, 90, 54, .28); background: none; text-align: left; color: inherit; cursor: default; border-radius: 0;
}
.gl-pl-col .gl-fila:last-child { border-bottom: 0; }
.gl-fila:not(:disabled) { cursor: pointer; }
.gl-fila:not(:disabled):hover, .gl-fila:not(:disabled):focus-visible { background: rgba(135, 206, 235, .22); outline: none; border-radius: 10px; }
.gl-fila:not(:disabled):active { transform: scale(.98); }
.gl-mini { width: 22px; height: 22px; flex: none; }
.gl-mini rect { fill: var(--blanco); stroke: var(--negro); stroke-width: .8; }
.gl-mini circle { fill: var(--negro); }
.gl-f-nom { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
.gl-f-nom > span { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-f-nom small { font-size: 10.5px; color: var(--gris); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.gl-f-val { display: flex; align-items: center; gap: 2px; flex: none; }
.gl-num { font-family: var(--titulo); font-weight: 800; font-size: 25px; line-height: 1; }
.gl-sv { font-style: normal; font-size: 9px; font-weight: 800; background: var(--kraft); color: var(--blanco); border-radius: 4px; padding: 1px 3px; margin-left: 2px; align-self: flex-start; }
.gl-tachado { color: var(--kraft-osc); font-weight: 800; font-size: 16px; opacity: .8; }
.gl-fila.tachada .gl-f-nom > span { text-decoration: line-through; text-decoration-color: rgba(122, 90, 54, .6); color: var(--gris); }
.gl-fila.tachada .gl-mini { opacity: .45; }
.gl-chip { font-weight: 800; font-size: 14px; background: #d6edf7; color: var(--negro); border-radius: 999px; padding: 4px 10px; line-height: 1.2; white-space: nowrap; }
.gl-chip.mejor { background: var(--negro); color: var(--celeste); box-shadow: 0 0 0 3px rgba(135, 206, 235, .45); }
.gl-planilla.activa .gl-chip.mejor { animation: gl-brilla 1.8s ease-in-out infinite; }
.gl-planilla:not(.activa) .gl-chip { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(17, 17, 17, .18); color: var(--gris); }
.gl-planilla:not(.activa) .gl-chip.mejor { color: var(--negro); box-shadow: inset 0 0 0 2px var(--negro); }
@keyframes gl-brilla { 50% { box-shadow: 0 0 0 5px rgba(135, 206, 235, .25); } }
.gl-tachar { font-family: var(--titulo); font-size: 22px; font-weight: 800; color: rgba(95, 88, 80, .38); padding: 0 8px; line-height: 1; }
.gl-vacio { display: block; width: 26px; border-bottom: 2px dotted rgba(122, 90, 54, .4); margin-bottom: -6px; }
.gl-fila.recien { animation: gl-recien 1s ease; }
@keyframes gl-recien { 0% { background: rgba(135, 206, 235, .55); } 100% { background: transparent; } }
.gl-fila.recien .gl-num { animation: gl-sube .6s cubic-bezier(.2, 1.6, .4, 1); }
.gl-pop { position: absolute; right: 46px; top: 6px; font-family: var(--titulo); font-weight: 900; font-size: 26px; color: var(--celeste-osc); pointer-events: none; animation: gl-pop 1s ease-out forwards; }
.gl-pop.cero { color: var(--mal); }
@keyframes gl-pop { 0% { opacity: 0; transform: translateY(6px) scale(.7); } 25% { opacity: 1; transform: translateY(-6px) scale(1.15); } 100% { opacity: 0; transform: translateY(-26px); } }

/* ---------- Capas propias (festejo, turno) ---------- */
.gl-capa { position: absolute; inset: -8px; z-index: 40; display: grid; place-items: center; text-align: center; cursor: pointer; border-radius: 18px; }
.gl-festejo { background: radial-gradient(circle at 50% 45%, rgba(17, 17, 17, .55), rgba(17, 17, 17, .9) 70%); animation: aparecer .2s ease both; }
.gl-fest-in { display: grid; justify-items: center; gap: 6px; padding: 16px; }
.gl-fest-tit {
  font-family: var(--titulo); font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: .01em;
  font-size: clamp(64px, 21vw, 168px); color: var(--celeste); max-width: 9ch; text-wrap: balance; padding-bottom: .12em; margin-bottom: 4px;
  text-shadow: 0 5px 0 var(--kraft-osc), 0 18px 40px rgba(0, 0, 0, .6);
  animation: gl-golpe .7s cubic-bezier(.2, 1.7, .4, 1) both; transform: rotate(-4deg);
}
@keyframes gl-golpe { 0% { opacity: 0; transform: scale(2.2) rotate(-12deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1) rotate(-4deg); } }
.gl-fest-sub { font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: 14px; background: var(--kraft); color: var(--blanco); padding: 7px 16px; border-radius: 999px; animation: subir .4s .35s ease both; }
.gl-fest-de { font-weight: 800; font-size: 15px; color: var(--blanco); background: rgba(17, 17, 17, .8); border-radius: 999px; padding: 6px 14px; animation: subir .3s ease both; }
.gl-fest-dados { display: flex; gap: 8px; margin-top: 16px; }
.gl-fest-dados i { width: 18px; height: 18px; border-radius: 5px; background: var(--blanco); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15); animation: gl-salta .9s cubic-bezier(.3, 1.6, .5, 1) infinite alternate; }
.gl-fest-dados i:nth-child(2) { animation-delay: .1s; } .gl-fest-dados i:nth-child(3) { animation-delay: .2s; } .gl-fest-dados i:nth-child(4) { animation-delay: .3s; } .gl-fest-dados i:nth-child(5) { animation-delay: .4s; }
@keyframes gl-salta { from { transform: translateY(0) rotate(0); } to { transform: translateY(-16px) rotate(90deg); } }
.gl-turno { background: var(--negro); animation: aparecer .2s ease both; }
.gl-turno-in { display: grid; justify-items: center; gap: 10px; animation: subir .3s ease both; }
.gl-turno-in .etiqueta { color: var(--kraft); }
.gl-turno-in .titulo { font-size: clamp(46px, 14vw, 90px); color: var(--celeste); }
.gl-turno-in small { color: var(--gris-claro); font-size: 13px; }

/* ---------- Planillas de todos (ventana) ---------- */
.gl-tabla-comp-env { overflow-x: auto; margin: 0 -6px; }
.gl-tabla-comp { width: 100%; border-collapse: collapse; font-size: 14px; }
.gl-tabla-comp th, .gl-tabla-comp td { padding: 6px 4px; border-bottom: 1px dashed rgba(122, 90, 54, .3); text-align: center; }
.gl-tabla-comp tbody th { text-align: left; font-weight: 700; font-size: 13px; white-space: nowrap; }
.gl-tabla-comp thead th { vertical-align: bottom; }
.gl-tabla-comp thead th .avatar { margin: 0 auto 3px; }
.gl-tabla-comp thead small { display: block; font-size: 10px; font-weight: 700; max-width: 62px; margin: 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-tabla-comp thead th.resalta small { color: var(--celeste-osc); }
.gl-tabla-comp td { font-family: var(--titulo); font-weight: 800; font-size: 19px; }
.gl-tabla-comp td.libre { color: var(--gris-claro); }
.gl-tabla-comp td.cero { color: var(--kraft-osc); font-family: var(--texto); font-size: 13px; }
.gl-tabla-comp sup { font-family: var(--texto); font-size: 8px; color: var(--kraft-osc); }
.gl-tabla-comp tr.tot th, .gl-tabla-comp tr.tot td { border-top: 2px solid var(--negro); border-bottom: 0; font-size: 22px; }
.gl-tabla-comp tr.tot th { font-family: var(--titulo); text-transform: uppercase; font-size: 18px; }
.gl-tabla-comp td.punta { color: var(--celeste-osc); }

/* ---------- Celular bajito ---------- */
/* Pantallas bajas (el celu con las barras del navegador): sin la línea de estado (el turno se ve en el marcador y en el botón) */
@media (max-height: 830px) and (max-width: 899px) {
  .gl { --d: 46px; gap: 7px; }
  .gl-estado { display: none; }
  .gl-col-mesa { gap: 7px; }
  .gl-fieltro { height: clamp(96px, calc(100dvh - 600px), 170px); }
  .gl-cubilete { width: 74px; height: 80px; margin: -42px 0 0 -37px; }
  .gl-fila { min-height: 42px; }
  .gl-tirar.btn.grande { min-height: 52px; }
}
@media (max-height: 690px) and (max-width: 899px) {
  /* 360 × 640: todo tiene que entrar sin bajar (antes sobraban 25 px y "Al 6" quedaba cortado) */
  .gl { --d: 42px; gap: 5px; padding-top: 0; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .gl-cuerpo { gap: 6px; }
  .gl-col-mesa { gap: 5px; }
  .gl-fieltro { height: 106px; }
  .gl-chip-j, .gl-resumen > div { min-height: 40px; }
  .gl-cubilete { width: 62px; height: 68px; margin: -36px 0 0 -31px; }
  .gl-bandeja { height: calc(var(--gl-hueco) + 6px); }
  .gl-fila { min-height: 40px; }
  .gl-tirar.btn.grande { min-height: 46px; }
  .gl-planilla { padding: 2px 12px 3px; }
  .gl-pl-cabeza { padding: 3px 2px 2px; }
  .gl-pl-quien { font-size: 19px; }
  .gl-pl-total b { font-size: 24px; }
  .gl-arriba { min-height: 40px; }
  .gl-jugada { top: 4px; }
  .gl-jugada span { font-size: 20px; padding: 4px 12px 3px; }
}
@media (max-width: 359px) { .gl { --d: 46px; padding-left: 10px; padding-right: 10px; } .gl-hueco { margin-top: 8px; } .gl-f-nom small { display: none; } }

/* ---------- Compu ---------- */
@media (min-width: 900px) {
  .gl { --d: 78px; --gl-hueco: calc(var(--d) + 18px); padding: 4px 28px 22px; gap: 14px; }
  .gl-flecha::after { content: '→'; }
  .gl-cuerpo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .9fr); gap: 28px; align-items: start; }
  .gl-col-mesa { gap: 12px; }
  .gl-fieltro { height: clamp(300px, calc(100dvh - 480px), 380px); }
  .gl-fieltro::after { inset: 9px; }
  .gl-pano { padding: 10px; border-radius: 30px; }
  .gl-cubilete { width: 132px; height: 144px; margin: -76px 0 0 -66px; }
  .gl-jugada span { font-size: 36px; padding: 8px 22px 7px; }
  .gl-pista { font-size: 13px; bottom: 14px; }
  .gl-hueco { max-width: calc(var(--d) * 1.5); }
  .gl-quien { font-size: 18px; }
  .gl-estado .avatar.chico { width: 30px; height: 30px; font-size: 16px; }
  .gl-chip-j { min-height: 50px; padding-right: 14px; }
  .gl-chip-j .gl-cj-nom { font-size: 14px; }
  .gl-chip-j .gl-tot { font-size: 28px; }
  .gl-marcador.compacto .gl-chip-j:not(.activo) .gl-cj-nom { display: block; }
  .gl-resumen > div { min-height: 52px; padding: 6px 14px; justify-content: center; gap: 14px; }
  .gl-resumen b { font-size: 32px; }
  .gl-planilla { padding: 8px 18px 10px; }
  .gl-pl-quien { font-size: 26px; }
  .gl-pl-total b { font-size: 38px; }
  .gl-pl-grilla { grid-template-columns: 1fr; }
  .gl-pl-col + .gl-pl-col { border-left: 0; padding-left: 0; border-top: 2px solid rgba(122, 90, 54, .35); }
  .gl-fila { min-height: 46px; gap: 10px; }
  .gl-pl-col .gl-fila:last-child { border-bottom: 1px dashed rgba(122, 90, 54, .28); }
  .gl-pl-col:last-child .gl-fila:last-child { border-bottom: 0; }
  .gl-f-nom { flex-direction: row; align-items: baseline; gap: 10px; }
  .gl-f-nom > span { font-size: 15px; }
  .gl-f-nom small { font-size: 11.5px; }
  .gl-mini { width: 24px; height: 24px; }
  .gl-num { font-size: 28px; }
  .gl-chip { font-size: 15px; padding: 5px 12px; }
}
