/* =====================================================================
   THE CRIAS TV — estilos das animações de jogo
   ===================================================================== */

.gart {
  width: var(--gs, 34px);
  height: var(--gs, 34px);
  display: inline-grid;
  place-items: center;
  flex: none;
  vertical-align: middle;
  filter: drop-shadow(0 4px 10px #00000055);
}
.gart svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* etiqueta: arte + nome */
.gchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--mut);
}
.gchip b {
  font-weight: 700;
  font-size: 12px;
  color: var(--txt);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}

/* ---------------- animações ---------------- */
@keyframes g-spin { to { transform: rotate(360deg); } }
@keyframes g-spin-r { to { transform: rotate(-360deg); } }
@keyframes g-pulse { 0%, 100% { opacity: .95; transform: scale(1); } 50% { opacity: .45; transform: scale(.86); } }
@keyframes g-tracer {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-10px, 10px) scale(1.15); }
}
@keyframes g-flick { 0%, 100% { opacity: 1; } 45% { opacity: .55; } 55% { opacity: .9; } 70% { opacity: .4; } }
@keyframes g-rise { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes g-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes g-drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
@keyframes g-tilt { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg); } }
@keyframes g-spark { 0%, 100% { transform: scale(.7); opacity: .5; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes g-flame { 0%, 100% { transform: scaleY(1); } 35% { transform: scaleY(.86) translateY(1px); } 65% { transform: scaleY(1.06); } }
@keyframes g-scan { 0% { transform: translateY(-14px); opacity: 0; } 30% { opacity: .8; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes g-blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }

.g-spin { animation: g-spin 7s linear infinite; }
.g-spin-slow { animation: g-spin-r 16s linear infinite; }
.g-pulse { animation: g-pulse 2.6s ease-in-out infinite; transform-origin: center; }
.g-tracer { animation: g-tracer 1.8s ease-out infinite; }
.g-tracer.d2 { animation-delay: .9s; }
.g-flick { animation: g-flick 2.4s steps(3) infinite; }
.g-rise { animation: g-rise 3.4s ease-in-out infinite; }
.g-bob { animation: g-bob 2.8s ease-in-out infinite; }
.g-drift { animation: g-drift 5s ease-in-out infinite; }
.g-tilt { animation: g-tilt 3.6s ease-in-out infinite; }
.g-spark { animation: g-spark 2.2s ease-in-out infinite; transform-origin: center; }
.g-spark.d2 { animation-delay: 1.1s; }
.g-flame { animation: g-flame 1.1s ease-in-out infinite; transform-origin: 50% 80%; }
.g-scan { animation: g-scan 2.2s ease-in-out infinite; }
.g-blink { animation: g-blink 1.4s steps(2) infinite; }

/* ---------------- faixa "últimos jogos" ---------------- */
.gstrip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}
.gcard {
  position: relative;
  flex: none;
  width: 168px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--panel2), var(--panel));
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.gcard:hover { transform: translateY(-3px); border-color: var(--vio); box-shadow: 0 14px 30px #00000055; }
.gcard .gstage {
  height: 86px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120px 70px at 50% 40%, #ffffff12, transparent 70%),
    #00000033;
  border: 1px solid #ffffff10;
}
.gcard .gstage .gart { --gs: 62px; }
.gcard .gname { font-size: 13.5px; font-weight: 800; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard .gwhen { font-size: 11.5px; color: var(--mut); }
.gcard .glive {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  background: #ff2d55;
  padding: 3px 7px;
  border-radius: 99px;
  box-shadow: 0 0 14px #ff2d5588;
}
.gcard .glive i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: g-blink 1.2s steps(2) infinite; }

/* prévia real da tela do amigo */
.gcard .gthumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .92;
  z-index: 0;
}
.gcard.hasThumb .gstage,
.gcard.hasThumb .gname,
.gcard.hasThumb .gwhen { position: relative; z-index: 1; }
.gcard.hasThumb { min-height: 150px; justify-content: flex-end; }
.gcard.hasThumb .gstage { display: none; }
.gcard.hasThumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #00000010 0%, #000000cc 72%);
  z-index: 0;
}
.gcard.hasThumb .gname { color: #fff; text-shadow: 0 2px 8px #000; }

/* selo de jogo nas listas */
.gtag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px 2px 4px;
  border-radius: 99px;
  background: #ffffff0d;
  border: 1px solid #ffffff12;
  font-size: 11px;
  font-weight: 700;
  color: var(--mut);
  max-width: 100%;
  min-width: 0;
}
.gtag b { color: var(--txt); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .gart [class^="g-"], .gart [class*=" g-"] { animation: none !important; }
}
