#bm-landing-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #f4f6f8;
  background: #060912 url(/assets/loading-batalha.webp?v=1) center bottom / cover no-repeat;
  transition: opacity 0.7s ease, visibility 0.7s ease, transform 0.7s ease;
}

#bm-landing-loader.bm-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.04);
}

body.bm-boot-lock #app {
  visibility: hidden;
}

.bm-landing-scene {
  display: none !important;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ── topo: selo + logo ── */
.bm-landing-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: bm-rise 0.9s cubic-bezier(.2, .8, .2, 1) both;
}

.bm-landing-ai {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d1fae5;
  background: linear-gradient(90deg, #05966944, #1d4ed844, #dc262644);
  border: 1px solid #ffffff2a;
  backdrop-filter: blur(10px);
}

.bm-landing-ai .bm-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 #22c55e;
}

.bm-landing-logo {
  width: min(380px, 78vw);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 10px 40px #000c) drop-shadow(0 0 30px #facc1533);
}

.bm-landing-tag {
  margin: 6px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5e1;
  text-shadow: 0 2px 12px #000;
}

/* ── base: cartão de progresso (visual "batalha") ── */
@font-face { font-family: 'Pricedown'; src: url(/assets/fonts/pricedown.woff) format('woff'); font-display: swap; }

.bm-landing-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 18px 22px 14px;
  border-radius: 18px;
  background:
    linear-gradient(160deg, #0b1020ee, #04060ef2) padding-box,
    linear-gradient(90deg, #16a34a, #facc15 35%, #ffffff55 50%, #ef4444 65%, #b91c1c) border-box;
  border: 2px solid transparent;
  box-shadow: 0 30px 80px #000000c0, -30px 0 60px -30px #facc1540, 30px 0 60px -30px #ef444450;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  animation: bm-rise 0.9s 0.15s cubic-bezier(.2, .8, .2, 1) both;
}

.bm-landing-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.bm-landing-status {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-landing-pct {
  margin: 0;
  font: 400 2.9rem/0.8 'Pricedown', Impact, 'Arial Black', sans-serif;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  color: #fff;
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 #000, 0 0 24px #facc1555;
}

/* barra: verde-amarelo → vermelho, listras correndo (única animação da tela) */
.bm-landing-bar {
  position: relative;
  height: 18px;
  padding: 3px;
  border-radius: 999px;
  background: #00000080;
  box-shadow: inset 0 0 0 1px #ffffff14, inset 0 2px 6px #000c;
  overflow: hidden;
}

.bm-landing-bar i {
  position: relative;
  pointer-events: none;
  height: 100%;
  width: 0%;
  min-width: 12px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(-55deg, #ffffff2e 0 10px, transparent 10px 20px),
    linear-gradient(90deg, #16a34a, #facc15 45%, #f97316 75%, #ef4444);
  background-size: 28px 100%, 100% 100%;
  box-shadow: 0 0 16px #facc1570;
  animation: bm-stripes 0.7s linear infinite;
}

.bm-landing-bar i::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -2px;
  bottom: -3px;
  width: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #fff8 35%, transparent 70%);
  filter: blur(1px);
}

.bm-landing-hint {
  margin: 10px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.bm-landing-hint span:last-child { color: #facc15; }

.bm-landing-foot {
  margin: 12px -22px -14px;
  padding: 9px 16px;
  border-top: 1px solid #ffffff12;
  border-radius: 0 0 16px 16px;
  background: #ffffff06;
  font-size: 0.72rem;
  text-align: center;
  color: #cbd5e1;
  min-height: 1.2em;
}

.bm-landing-foot b {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
  background: linear-gradient(90deg, #facc15, #ef4444);
}

.bm-tip-in { animation: bm-tip 0.45s ease both; }

@keyframes bm-tip {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@keyframes bm-stripes {
  to { background-position: 28px 0, 0 0; }
}

@keyframes bm-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes bm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}


@keyframes bm-pulse {
  0% { box-shadow: 0 0 0 0 #22c55eaa; }
  100% { box-shadow: 0 0 0 10px #22c55e00; }
}

@media (max-height: 560px) {
  .bm-landing-logo { width: min(240px, 60vw); }
  .bm-landing-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bm-landing-bar i, .bm-tip-in { animation: none; }
}

@media (max-width: 520px) {
  .bm-landing-pct { font-size: 2.3rem; }
  .bm-landing-status { font-size: 0.66rem; letter-spacing: 0.04em; }
  .bm-landing-card { padding: 14px 16px 12px; }
  .bm-landing-foot { margin: 10px -16px -12px; }
}
