/* ============================================================================
 * HelixWin — Tela do Jogo (Fase 2D)
 *
 * Tema "Estádio Copa" — preserva identidade visual verde/dourado/azul-marinho
 * intencional do jogo, alinhada ao DS (verde-musgo + accent amarelo + laranja CTA).
 *
 * Substitui estilos inline em js/jogo.js (HUD overlay, botão resgatar, telas
 * de loading/resultado/demo). NÃO afeta o canvas Three.js dentro do iframe.
 *
 * IDs preservados — apenas adicionadas classes .jgo-* paralelas para estilo.
 * Hooks JS, gameEvents, endpoints: ZERO alteração.
 * ========================================================================== */


/* ── Tokens locais do jogo (Copa) ───────────────────────────────────────── */
.jgo-wrapper {
  --jgo-bg-deep:      #04160f;
  --jgo-bg-mid:       #06351f;
  --jgo-bg-blue:      #0b4c9b;
  --jgo-verde:        #009C56;
  --jgo-verde-claro:  #00C97A;
  --jgo-azul:         #0B4C9B;
  --jgo-azul-claro:   #7EC8FF;
  --jgo-gold:         #FFD700;
  --jgo-gold-soft:    rgba(255, 215, 0, 0.45);

  /* Texto / bordas neutros */
  --jgo-edge:         rgba(255, 255, 255, 0.12);
  --jgo-edge-strong:  rgba(255, 255, 255, 0.20);
  --jgo-text:         #ffffff;
  --jgo-text-soft:    rgba(255, 255, 255, 0.70);
  --jgo-text-muted:   rgba(255, 255, 255, 0.45);
}


/* ── Wrapper principal (#jogo-wrapper) ──────────────────────────────────── */
/* Transparente — deixa .lnd-page-bg do DS aparecer atras do iframe.
 * Iframe interno (jogo/index.html) tambem foi transparenciado.
 * 100dvh corrige tremor de viewport no mobile (B4). */
.jgo-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: transparent;
  margin: 0;
  padding: 0;
}

.jgo-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  display: block;
  vertical-align: top;   /* B5: elimina baseline gap entre iframe e parent */
  margin: 0;
  padding: 0;
  background: transparent;
}


/* ── Player de musica (integrado ao HUD, ao lado do botao Sair) ──────────
 * Vive dentro de .jgo-hud-cell-end > .jgo-hud-actions, irmao do botao Sair.
 * Aparece junto com o HUD quando partida ativa (durante loading o HUD esta
 * display:none, player tambem oculto — aceitavel porque loading e' rapido). */
.jgo-hud-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jgo-music-player {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 32px;
  border: 1px solid var(--jgo-edge);
  background: rgba(4, 32, 20, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: inherit;
  transition: opacity .2s;
}

/* Sem tracks do host disponiveis (admin nao configurou bg1+): vira so toggle */
.jgo-music-player[data-available="false"] .jgo-music-next {
  display: none;
}

.jgo-music-btn,
.jgo-music-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--jgo-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background .15s, transform .1s;
}

.jgo-music-btn:hover,
.jgo-music-next:hover { background: rgba(255, 255, 255, 0.14); }

.jgo-music-btn:active,
.jgo-music-next:active { transform: scale(0.92); }

.jgo-music-btn:focus-visible,
.jgo-music-next:focus-visible {
  outline: 2px solid var(--jgo-gold);
  outline-offset: 2px;
}

.jgo-music-btn svg,
.jgo-music-next svg { width: 18px; height: 18px; pointer-events: none; }

.jgo-music-btn .jgo-music-icon-off { display: none; }
.jgo-music-player[data-state="off"] .jgo-music-btn .jgo-music-icon-on  { display: none; }
.jgo-music-player[data-state="off"] .jgo-music-btn .jgo-music-icon-off { display: block; }
.jgo-music-player[data-state="off"] .jgo-music-btn { color: var(--jgo-text-muted); }


/* ── HUD overlay (#hud-container) ───────────────────────────────────────── */
.jgo-hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  /* Padding-bottom maior + fade ate transparent para suavizar a transicao
   * gradient -> conteudo do iframe abaixo. Sem border-bottom (renderizava
   * como linha sutil 2px em alguns browsers mesmo com cor transparent). */
  background: linear-gradient(180deg,
    rgba(4, 32, 20, 0.92) 0%,
    rgba(4, 32, 20, 0)    100%);
  padding: 12px 16px 40px;
  /* ATENÇÃO: jogo.js mostra/esconde via style.display inline.
   * Default escondido até ativarPartida(). */
  display: none;
  border: 0;
  outline: 0;
  box-shadow: none;
  transition: filter .25s;
}

.jgo-hud.jgo-hud-armado {
  /* Brilho dourado sutil em vez de border (sem linha solida) */
  filter: drop-shadow(0 4px 12px var(--jgo-gold-soft));
}

.jgo-hud-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.jgo-hud-cell      { display: flex; flex-direction: column; gap: 2px; }
.jgo-hud-cell-center { flex: 1; max-width: 360px; text-align: center; }
.jgo-hud-cell-end    { align-items: flex-end; gap: 4px; }

.jgo-hud-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.58);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.jgo-hud-aposta {
  font-size: 16px;
  font-weight: 800;
  color: var(--jgo-text);
}

.jgo-hud-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 5px;
}

.jgo-hud-acumulado {
  font-size: 20px;
  font-weight: 800;
  color: var(--jgo-verde-claro);
  transition: color .2s;
}

.jgo-hud-acumulado[data-nivel="high"],
.jgo-hud-acumulado[data-nivel="meta"] { color: var(--jgo-gold); }

.jgo-hud-divisor { font-size: 12px; color: var(--jgo-text-muted); }
.jgo-hud-meta    { font-size: 14px; color: var(--jgo-text-soft); }

.jgo-hud-progress {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  height: 6px;
  overflow: hidden;
}

.jgo-hud-progress-fill {
  height: 100%;
  border-radius: 50px;
  width: 0%;
  background: linear-gradient(90deg, var(--jgo-verde-claro), var(--jgo-azul));
  transition: width .3s ease, background .3s ease;
}

.jgo-hud-progress-fill[data-nivel="high"] {
  background: linear-gradient(90deg, var(--jgo-verde-claro), var(--jgo-gold));
}

.jgo-hud-progress-fill[data-nivel="meta"] {
  background: linear-gradient(90deg, var(--jgo-gold), var(--jgo-verde));
}

.jgo-hud-plat {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.52);
  margin-top: 4px;
}

.jgo-hud-meta-label {
  font-size: 16px;
  font-weight: 800;
  color: var(--jgo-gold);
}

.jgo-hud-btn-sair {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--jgo-edge);
  border-radius: 8px;
  padding: 4px 10px;
  color: var(--jgo-text-soft);
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s;
}

.jgo-hud-btn-sair:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--jgo-edge-strong);
}


/* ── Botão RESGATAR (#btn-resgatar) — ouro dramático preservado ─────────── */
.jgo-btn-resgatar {
  display: none;
  position: fixed;
  bottom: 80px;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--jgo-gold), var(--jgo-verde));
  color: #052814;
  font-size: 18px;
  font-weight: 800;
  padding: 16px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  z-index: 2000;
  box-shadow: 0 0 30px var(--jgo-gold-soft), 0 4px 20px rgba(0, 0, 0, 0.4);
  font-family: inherit;
  white-space: nowrap;
  animation: pulseGold 1.2s ease-in-out infinite;
}

.jgo-btn-resgatar.jgo-resgatando {
  background: rgba(0, 156, 86, 0.35);
  animation: none;
  cursor: wait;
}

.jgo-btn-resgatar-hint {
  display: none;
  position: fixed;
  bottom: 56px;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(255, 221, 87, 0.9);
  text-align: center;
  white-space: nowrap;
  z-index: 2000;
}


/* ── Tela de loading (#tela-loading) — tema Copa preservado ─────────────── */
.jgo-loading {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: radial-gradient(ellipse at 50% 40%,
    var(--jgo-bg-blue) 0%,
    var(--jgo-bg-mid) 45%,
    var(--jgo-bg-deep) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
}

.jgo-loading-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  top: 50%; left: 50%;
}

.jgo-loading-orb-1 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(0, 156, 86, 0.22) 0%, transparent 70%);
  transform: translate(-50%, -60%);
}

.jgo-loading-orb-2 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.14) 0%, transparent 70%);
  transform: translate(-30%, -30%);
}

.jgo-loading-rings {
  position: relative;
  width: 88px; height: 88px;
  margin-bottom: 32px;
}

.jgo-loading-ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

.jgo-loading-ring-out { animation: ldRingSpin 1.4s linear infinite; }
.jgo-loading-ring-in  { animation: ldRingSpin 0.9s linear infinite reverse; }

.jgo-loading-helix {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jgo-loading-helix svg { animation: ldPulse 1.8s ease-in-out infinite; }


/* ── Logo customizada (F2 — substitui rings quando loading_logo_url existe) */
.jgo-loading-logo {
  width: 200px;
  height: 200px;
  max-width: 60vw;
  max-height: 60vw;
  object-fit: contain;
  margin-bottom: 32px;
  animation: loadingLogoPulse 1.6s ease-in-out infinite;
  filter: drop-shadow(0 4px 24px rgba(255, 215, 0, 0.20));
}

@keyframes loadingLogoPulse {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%      { opacity: 0.7; transform: scale(0.94); }
}

.jgo-loading-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--jgo-text);
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  text-align: center;
}

.jgo-loading-msg {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 500;
  text-align: center;
  margin-bottom: 36px;
}

.jgo-loading-bar {
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  overflow: hidden;
}

.jgo-loading-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--jgo-verde), var(--jgo-gold), var(--jgo-azul));
  background-size: 200% 100%;
  animation: ldShimmer 1.5s ease-in-out infinite;
}


/* ── Tela de resultado (#tela-resultado) ────────────────────────────────── */
.jgo-resultado {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px;
}

.jgo-resultado.jgo-resultado-demo {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.jgo-resultado-card {
  background: linear-gradient(160deg,
    var(--jgo-bg-mid) 0%,
    var(--jgo-bg-blue) 55%,
    var(--jgo-bg-deep) 100%);
  border-radius: 28px;
  padding: 0;
  max-width: 360px;
  width: 100%;
  text-align: center;
  border: 1.5px solid transparent;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: resCardIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Variação por dataset[tipo] — substitui mutações style.X em mostrarVitoria/mostrarDerrota */
.jgo-resultado-card[data-tipo="vitoria"] {
  border-color: var(--jgo-gold-soft);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(255, 215, 0, 0.15);
}

.jgo-resultado-card[data-tipo="derrota"] {
  border-color: rgba(11, 76, 155, 0.45);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(11, 76, 155, 0.14);
}

.jgo-resultado-topo {
  padding: 28px 28px 20px;
  position: relative;
}

.jgo-resultado-card[data-tipo="vitoria"] .jgo-resultado-topo {
  background: linear-gradient(160deg, rgba(255, 215, 0, 0.14) 0%, rgba(0, 156, 86, 0.08) 100%);
}

.jgo-resultado-card[data-tipo="derrota"] .jgo-resultado-topo {
  background: linear-gradient(160deg, rgba(11, 76, 155, 0.16) 0%, rgba(0, 156, 86, 0.05) 100%);
}

.jgo-resultado-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  animation: iconPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.jgo-resultado-card[data-tipo="vitoria"] .jgo-resultado-icon-wrap {
  background: linear-gradient(135deg, var(--jgo-gold), var(--jgo-verde));
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
}

.jgo-resultado-card[data-tipo="derrota"] .jgo-resultado-icon-wrap {
  background: linear-gradient(135deg, var(--jgo-azul), var(--jgo-verde));
  box-shadow: 0 0 40px rgba(11, 76, 155, 0.35);
}

.jgo-resultado-titulo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.jgo-resultado-card[data-tipo="vitoria"] .jgo-resultado-titulo { color: var(--jgo-gold); }
.jgo-resultado-card[data-tipo="derrota"] .jgo-resultado-titulo { color: var(--jgo-azul-claro); }

.jgo-resultado-subtitulo {
  font-size: 13px;
  color: var(--jgo-text-soft);
  line-height: 1.5;
}

.jgo-resultado-valor-wrap {
  margin: 0 20px 16px;
  border-radius: 16px;
  padding: 16px 20px;
}

.jgo-resultado-card[data-tipo="vitoria"] .jgo-resultado-valor-wrap {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.16), rgba(0, 156, 86, 0.08));
  border: 1px solid rgba(255, 215, 0, 0.25);
}

.jgo-resultado-card[data-tipo="derrota"] .jgo-resultado-valor-wrap {
  background: linear-gradient(135deg, rgba(11, 76, 155, 0.18), rgba(0, 156, 86, 0.08));
  border: 1px solid rgba(11, 76, 155, 0.25);
}

.jgo-resultado-valor-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.78;
  margin-bottom: 6px;
}

.jgo-resultado-card[data-tipo="vitoria"] .jgo-resultado-valor-label { color: var(--jgo-gold); }
.jgo-resultado-card[data-tipo="derrota"] .jgo-resultado-valor-label { color: var(--jgo-azul-claro); }

.jgo-resultado-valor {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.jgo-resultado-card[data-tipo="vitoria"] .jgo-resultado-valor { color: var(--jgo-gold); }
.jgo-resultado-card[data-tipo="derrota"] .jgo-resultado-valor { color: var(--jgo-azul-claro); }

.jgo-resultado-foot { padding: 0 24px 20px; }

.jgo-resultado-plat {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 6px;
}

.jgo-resultado-saldo {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 14px;
  margin-top: 10px;
}

.jgo-resultado-acoes {
  padding: 0 20px 24px;
  display: flex;
  gap: 10px;
}

.jgo-btn-jogar-novamente {
  flex: 1;
  background: linear-gradient(135deg, var(--jgo-verde), var(--jgo-azul));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(0, 156, 86, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .15s, box-shadow .15s;
}

.jgo-btn-jogar-novamente:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 156, 86, 0.5);
}

.jgo-btn-painel {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--jgo-edge);
  color: rgba(255, 255, 255, 0.82);
  border-radius: 50px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .15s;
}

.jgo-btn-painel:hover { background: rgba(255, 255, 255, 0.14); }


/* ── Modal demo (#demo-modal) — injetado dinamicamente em mostrarModalDemo */
.jgo-demo-modal {
  background: linear-gradient(160deg,
    var(--jgo-bg-mid) 0%,
    var(--jgo-bg-blue) 55%,
    var(--jgo-bg-deep) 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.35);
  border-radius: 28px;
  max-width: 360px;
  width: 92%;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.75), 0 0 60px rgba(255, 215, 0, 0.10);
  animation: resCardIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.jgo-demo-topo {
  background: linear-gradient(160deg, rgba(255, 215, 0, 0.14) 0%, rgba(0, 156, 86, 0.06) 100%);
  padding: 30px 28px 22px;
  position: relative;
}

.jgo-demo-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--jgo-gold), var(--jgo-verde));
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.45);
  animation: iconPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.jgo-demo-titulo {
  font-size: 24px;
  font-weight: 900;
  color: var(--jgo-gold);
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.jgo-demo-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.jgo-demo-valor-wrap {
  margin: 0 20px 16px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.16), rgba(0, 156, 86, 0.08));
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 16px;
  padding: 18px 20px;
}

.jgo-demo-valor-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 215, 0, 0.8);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.jgo-demo-valor {
  font-size: 42px;
  font-weight: 900;
  color: var(--jgo-gold);
  line-height: 1;
  letter-spacing: 1px;
}

.jgo-demo-msg {
  padding: 0 24px 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.jgo-demo-msg-highlight {
  color: var(--jgo-gold);
  font-weight: 700;
}

.jgo-demo-acoes {
  padding: 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jgo-demo-btn-cta {
  width: 100%;
  padding: 16px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--jgo-verde), var(--jgo-azul));
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.5px;
  font-family: inherit;
  text-transform: uppercase;
  box-shadow: 0 6px 28px rgba(0, 156, 86, 0.42);
  transition: transform .15s, box-shadow .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.jgo-demo-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(11, 76, 155, 0.45);
}


/* ── Confetti canvas ────────────────────────────────────────────────────── */
.jgo-confetti {
  position: fixed;
  inset: 0;
  z-index: 3500;
  pointer-events: none;
  display: none;
}


/* ── Animações ──────────────────────────────────────────────────────────── */
@keyframes pulseGold {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.45), 0 4px 20px rgba(0, 0, 0, 0.4);
  }
  50% {
    transform: translateX(-50%) scale(1.04);
    box-shadow: 0 0 50px rgba(0, 156, 86, 0.55), 0 4px 24px rgba(0, 0, 0, 0.5);
  }
}

@keyframes jogoPopIn {
  from { transform: translateX(-50%) scale(0.5); opacity: 0; }
  to   { transform: translateX(-50%) scale(1);   opacity: 1; }
}

@keyframes resCardIn {
  from { transform: scale(0.75) translateY(30px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);   opacity: 1; }
}

@keyframes iconPop {
  0%   { transform: scale(0)    rotate(-20deg); }
  70%  { transform: scale(1.25) rotate(5deg);   }
  100% { transform: scale(1)    rotate(0deg);   }
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

@keyframes ldRingSpin { to { transform: rotate(360deg); } }

@keyframes ldPulse {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%      { opacity: 0.6; transform: scale(0.88); }
}

@keyframes ldShimmer {
  0%   { background-position:  200% 0; width: 0%;   }
  50%  {                                width: 100%; }
  100% { background-position: -200% 0; width: 0%;   }
}
