/* =========================================================================
   PokeIdle Monster — landing pública + modal de login/cadastro
   -------------------------------------------------------------------------
   Carregada por último no index.html. A landing é HTML estático (SEO) e a
   camada de auth é montada pelo panels/login.js por cima dela.

   Regras de visibilidade:
   • html.returning  → quem já tem conta não vê a landing (some antes do paint)
   • body.authed     → depois do login a landing também não aparece
   • o modal de auth fica em #auth-overlay, escondido com [hidden]
   ========================================================================= */

html.returning #landing,
body.authed #landing {
  display: none !important;
}

/* O logo é o SVG oficial (site/favicon.svg): a mesma arte no header, na
   landing, no rodapé e no modal. O tamanho vem de --pk-ball-size, definido
   pelos contextos (.pk-brand-ball / hero / rodapé / modal). */
img.pk-logo {
  display: block;
  width: var(--pk-ball-size, 34px);
  height: var(--pk-ball-size, 34px);
  object-fit: contain;
}
/* O selo MONSTER ao lado do wordmark POKÉIDLE. */
.pk-brand-monster {
  display: inline-block;
  margin-left: 0.42em;
  padding: 0.08em 0.5em 0.04em;
  border: 1px solid rgba(250, 204, 21, 0.5);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.18), rgba(250, 204, 21, 0.06));
  color: #facc15;
  -webkit-text-fill-color: #facc15;
  font-family: 'Outfit', 'Inter', 'Segoe UI', Tahoma, sans-serif;
  font-size: 0.46em;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.25;
  vertical-align: 0.2em;
  filter: none;
  white-space: nowrap;
}

/* ── A camada da landing ─────────────────────────────────────────────────── */
#landing.lp {
  position: fixed;
  inset: 0;
  z-index: 1400;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  color: var(--md-text, #eef2ff);
  background: var(--md-bg, #060a16);
  font-family: 'Outfit', 'Inter', 'Segoe UI', Tahoma, sans-serif;
  -webkit-user-select: text;
  user-select: text;
  touch-action: pan-y;
}
#landing.lp ::selection {
  background: rgba(56, 189, 248, 0.4);
  color: #fff;
}
#landing.lp a {
  text-decoration: none;
}

/* Fundo: três brilhos em movimento + grade sutil. */
.lp-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.lp-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.lp-glow-a {
  width: 680px;
  height: 680px;
  top: -260px;
  left: -160px;
  background: radial-gradient(circle, rgba(239, 59, 82, 0.55) 0%, transparent 68%);
  animation: lp-float-slow 18s ease-in-out infinite;
}
.lp-glow-b {
  width: 760px;
  height: 760px;
  top: 20%;
  right: -320px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.42) 0%, transparent 68%);
  animation: lp-float-slow 22s ease-in-out infinite reverse;
}
.lp-glow-c {
  width: 620px;
  height: 620px;
  bottom: -300px;
  left: 20%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.34) 0%, transparent 68%);
  animation: lp-float-slow 26s ease-in-out infinite;
}
.lp-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 76%);
}

/* ── Barra de navegação ──────────────────────────────────────────────────── */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 15px clamp(18px, 4.5vw, 64px);
  background: rgba(6, 10, 22, 0.74);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}
.lp-nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--md-grad-brand, linear-gradient(90deg, #ff4d67, #facc15 50%, #38bdf8));
  opacity: 0.45;
  pointer-events: none;
}
.lp-brand {
  color: inherit;
  text-decoration: none;
}
/* O tema do hub esconde `.pk-brand`/`.pk-brand-copy` abaixo de 1360px para
   abrir espaço na topbar. A landing e o modal não têm essa disputa: a marca
   é o elemento principal e precisa continuar visível. */
.lp-brand,
.lp-hero-emblem,
.auth-brand {
  display: flex !important;
}
.lp-brand .pk-brand-copy,
.auth-brand .pk-brand-copy {
  display: flex !important;
}
.lp-brand .pk-brand-copy small {
  display: block;
}
.lp-brand .pk-brand-copy b {
  font-size: 22px;
}
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 14px;
}
.lp-nav-links a {
  color: var(--md-muted, #8b9bb8);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.16s;
}
.lp-nav-links a:hover {
  color: #fff;
}
.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* ── Botões ──────────────────────────────────────────────────────────────── */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--md-text, #eef2ff);
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.16s,
    border-color 0.16s,
    color 0.16s,
    transform 0.14s,
    box-shadow 0.16s;
}
.lp-btn:focus-visible,
.lp-play:focus-visible {
  outline: 2px solid var(--md-cyan, #38bdf8);
  outline-offset: 3px;
}
.lp-btn-ghost {
  color: #dbe4f8;
}
.lp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
}
.lp-btn-primary {
  background: linear-gradient(135deg, #ff5c72, #ef3b52 60%, #d62d47);
  color: #fff;
  box-shadow: 0 8px 22px rgba(239, 59, 82, 0.28);
}
.lp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(239, 59, 82, 0.4);
}
.lp-btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.28);
  color: #e8eeff;
}
.lp-btn-outline:hover {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.1);
}
.lp-play {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 34px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff6178 0%, #ef3b52 48%, #cf2943 100%);
  color: #fff;
  font-family: 'Bebas Neue', 'Outfit', sans-serif;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 18px 42px rgba(239, 59, 82, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 1px 0 rgba(255, 255, 255, 0.28) inset;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.lp-play::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.36) 46%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.lp-play:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 54px rgba(239, 59, 82, 0.47),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 1px 0 rgba(255, 255, 255, 0.32) inset;
}
.lp-play:hover::after {
  transform: translateX(130%);
}
.lp-play:active {
  transform: translateY(0) scale(0.985);
}
.lp-play-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(6, 10, 22, 0.28);
  font-size: 12px;
  letter-spacing: 0;
  text-indent: 2px;
}
.lp-play-sm {
  min-height: 52px;
  padding: 0 26px;
  font-size: 22px;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.lp-main {
  position: relative;
  z-index: 1;
}
.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1200px;
  min-height: min(740px, calc(100dvh - 76px));
  margin: 0 auto;
  padding: clamp(46px, 7vw, 92px) clamp(20px, 4.5vw, 64px) clamp(30px, 5vw, 64px);
}
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 7px 13px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.07);
  color: #9bd9f8;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.17em;
}
.lp-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16), 0 0 10px rgba(52, 211, 153, 0.8);
  animation: lp-pulse 2.2s ease-in-out infinite;
}
.lp-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.45rem, 5.1vw, 4.45rem);
  font-weight: 800;
  line-height: 1.01;
  letter-spacing: -0.035em;
}
.lp-grad {
  display: inline;
  background: linear-gradient(92deg, #ff6b7d 0%, #facc15 42%, #38bdf8 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 20px rgba(56, 189, 248, 0.18));
}
.lp-lead {
  max-width: 560px;
  margin: 0 0 28px;
  color: #a8b6d4;
  font-size: clamp(14.5px, 1.4vw, 16.5px);
  line-height: 1.72;
}
.lp-lead strong {
  color: #e8eeff;
  font-weight: 700;
}
.lp-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.lp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: #8b9bb8;
  font-size: 12px;
  font-weight: 600;
}
.lp-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.lp-trust li::before {
  content: '✓';
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.14);
  color: #34d399;
  font-size: 10px;
  font-weight: 800;
}

/* ── Card do time (arte do hero) ─────────────────────────────────────────── */
.lp-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}
.lp-hero-emblem {
  position: absolute;
  top: -4%;
  right: 2%;
  z-index: 0;
  opacity: 0.95;
  animation: lp-float 7.5s ease-in-out infinite;
}
.lp-hero-emblem .pk-brand-ball {
  --pk-ball-size: clamp(92px, 10vw, 138px);
  filter: drop-shadow(0 12px 34px rgba(239, 59, 82, 0.35));
}
.lp-team-card {
  position: relative;
  z-index: 2;
  width: min(418px, 100%);
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(26, 37, 63, 0.94) 0%, rgba(9, 15, 30, 0.97) 100%);
  box-shadow:
    0 34px 90px rgba(2, 6, 17, 0.68),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  transform: rotate(-1.6deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.lp-team-card:hover {
  transform: rotate(0deg) translateY(-4px);
}
.lp-team-head,
.lp-team-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px 12px;
}
.lp-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #34d399;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.lp-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16), 0 0 9px rgba(52, 211, 153, 0.9);
  animation: lp-pulse 2s ease-in-out infinite;
}
.lp-team-zone {
  color: #5f6f8e;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.lp-team-mon {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
}
.lp-team-mon + .lp-team-mon {
  margin-top: 7px;
}
.lp-team-mon img {
  width: 62px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.55));
}
.lp-mon-info {
  min-width: 0;
}
.lp-mon-info b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #f4f7ff;
}
.lp-mon-info span {
  display: block;
  margin-top: 1px;
  color: #8b9bb8;
  font-size: 10.5px;
}
.lp-mon-bar {
  height: 4px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}
.lp-mon-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6b7d, #ef3b52);
  box-shadow: 0 0 8px rgba(239, 59, 82, 0.5);
}
.lp-mon-bar-grass i {
  background: linear-gradient(90deg, #4ade80, #22c55e);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}
.lp-mon-bar-water i {
  background: linear-gradient(90deg, #38bdf8, #4f8ef7);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}
.lp-mon-hp {
  color: #9fb3c8;
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lp-team-foot {
  padding: 12px 4px 2px;
  color: #8b9bb8;
  font-size: 10.5px;
}
.lp-team-badge {
  padding: 3px 8px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.lp-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 13px;
  background: rgba(12, 19, 36, 0.94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  animation: lp-float 6s ease-in-out infinite;
}
.lp-float b {
  display: block;
  color: #f4f7ff;
  font-size: 12.5px;
  line-height: 1.15;
}
.lp-float small {
  display: block;
  margin-top: 2px;
  color: #8b9bb8;
  font-size: 9.5px;
}
.lp-float-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  font-size: 15px;
}
.lp-float-a {
  left: 2%;
  bottom: 0;
  animation-delay: -1.4s;
}
.lp-float-b {
  right: 2%;
  bottom: 0;
  animation-delay: -3.2s;
}
.lp-float-b .lp-float-ico {
  background: rgba(250, 204, 21, 0.16);
  color: #facc15;
}

/* ── Números ─────────────────────────────────────────────────────────────── */
.lp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 64px);
}
.lp-stats > div {
  padding: 24px 16px;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.13);
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}
.lp-stats > div + div {
  border-left: 1px solid rgba(148, 163, 184, 0.09);
}
.lp-stats b {
  display: block;
  font-family: 'Bebas Neue', 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.03em;
  background: linear-gradient(120deg, #7dd3fc, #a78bfa 55%, #ff8fa0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-stats span {
  display: block;
  margin-top: 5px;
  color: #7f8fb0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lp-stats-note {
  max-width: 880px;
  margin: 0 auto;
  padding: 18px clamp(20px, 4.5vw, 64px) 0;
  color: #5f6f8e;
  font-size: 11.5px;
  line-height: 1.65;
  text-align: center;
}

/* ── Procedência / antifraude ────────────────────────────────────────────── */
.lp-trust-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(54px, 7vw, 86px) clamp(20px, 4.5vw, 32px) 0;
}
.lp-trust-panel h2 {
  max-width: 520px;
  margin: 9px 0 14px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.lp-trust-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-trust-list li {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 15px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  transition: border-color 0.18s, background 0.18s;
}
.lp-trust-list li:hover {
  border-color: rgba(52, 211, 153, 0.36);
  background: rgba(52, 211, 153, 0.045);
}
.lp-trust-ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 11px;
  background: rgba(52, 211, 153, 0.1);
  color: #6ee7b7;
}
.lp-trust-ico svg {
  width: 20px;
  height: 20px;
}
.lp-trust-list b {
  display: block;
  color: #eef2ff;
  font-size: 13.5px;
  font-weight: 700;
}
.lp-trust-list p {
  margin: 4px 0 0;
  color: #8fa2c0;
  font-size: 12.5px;
  line-height: 1.62;
}

/* ── Seções ──────────────────────────────────────────────────────────────── */
.lp-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) clamp(20px, 4.5vw, 32px);
}
.lp-kicker {
  margin: 0;
  color: #38bdf8;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
}
.lp-section h2 {
  max-width: 720px;
  margin: 9px 0 14px;
  font-size: clamp(1.8rem, 3.6vw, 2.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.lp-section-lead {
  max-width: 640px;
  margin: 0;
  color: #9aabc9;
  font-size: 15px;
  line-height: 1.7;
}

/* Cards de recursos. */
.lp-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.lp-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.lp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.lp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.38);
  background: rgba(56, 189, 248, 0.055);
  box-shadow: 0 20px 44px rgba(2, 6, 17, 0.45);
}
.lp-card:hover::before {
  opacity: 1;
}
.lp-card-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(139, 92, 246, 0.18));
  color: #7dd3fc;
}
.lp-card-ico svg {
  width: 24px;
  height: 24px;
}
.lp-card h3 {
  margin: 16px 0 8px;
  font-size: 17px;
  font-weight: 700;
}
.lp-card p {
  margin: 0;
  color: #93a3c1;
  font-size: 13.5px;
  line-height: 1.65;
}

/* Como jogar. */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.lp-steps li {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
}
.lp-step-n {
  font-family: 'Bebas Neue', 'Outfit', sans-serif;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, #38bdf8, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.8;
}
.lp-steps h3 {
  margin: 14px 0 7px;
  font-size: 17px;
}
.lp-steps p {
  margin: 0;
  color: #93a3c1;
  font-size: 13.5px;
  line-height: 1.65;
}
.lp-mid-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 30px;
  padding: 26px 30px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(239, 59, 82, 0.17), transparent 55%),
    radial-gradient(ellipse at 100% 50%, rgba(56, 189, 248, 0.14), transparent 55%),
    rgba(255, 255, 255, 0.025);
}
.lp-mid-cta b {
  display: block;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.lp-mid-cta span {
  display: block;
  margin-top: 4px;
  color: #8b9bb8;
  font-size: 12.5px;
}

/* FAQ. */
.lp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 840px;
  margin-top: 30px;
}
.lp-faq details {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.16s, background 0.16s;
}
.lp-faq details[open],
.lp-faq details:hover {
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(56, 189, 248, 0.045);
}
.lp-faq summary {
  position: relative;
  padding: 17px 52px 17px 20px;
  color: #e8eeff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.lp-faq summary::-webkit-details-marker {
  display: none;
}
.lp-faq summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #7dd3fc;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.lp-faq details[open] summary::after {
  content: '−';
}
.lp-faq details p {
  margin: 0;
  padding: 0 20px 19px;
  color: #93a3c1;
  font-size: 13.5px;
  line-height: 1.7;
}

/* ── Rodapé ──────────────────────────────────────────────────────────────── */
.lp-footer {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px clamp(20px, 4.5vw, 64px) 52px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.lp-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.lp-footer-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}
.lp-footer-brand .pk-brand-ball {
  --pk-ball-size: 34px;
}
.lp-footer-brand b {
  display: block;
  font-family: 'Bebas Neue', 'Outfit', sans-serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.09em;
  background: var(--md-grad-brand, linear-gradient(90deg, #ff4d67, #facc15 50%, #38bdf8));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-footer-brand span {
  display: block;
  color: #5f6f8e;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
}
.lp-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.lp-footer nav a {
  color: #8b9bb8;
  font-size: 12.5px;
  transition: color 0.16s;
}
.lp-footer nav a:hover {
  color: #fff;
}
.lp-disclaimer {
  max-width: 920px;
  margin: 26px 0 0;
  color: #4f5f7e;
  font-size: 10.5px;
  line-height: 1.65;
}
.lp-noscript {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  padding: 12px 16px;
  border: 1px solid rgba(250, 204, 21, 0.4);
  border-radius: 12px;
  background: rgba(250, 204, 21, 0.1);
  color: #fde68a;
  font-size: 13px;
  text-align: center;
}

/* ── Modal de login/cadastro ─────────────────────────────────────────────── */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 18px;
  background: rgba(2, 6, 17, 0.72);
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
}
.auth-overlay[hidden] {
  display: none;
}
.auth-modal {
  position: relative;
  width: min(432px, 100%);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 26px 26px 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(56, 189, 248, 0.12), transparent 46%),
    linear-gradient(160deg, #111c34 0%, #0a1122 58%, #080d1b 100%);
  box-shadow:
    0 46px 110px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 1px 0 rgba(255, 255, 255, 0.07) inset;
  color: var(--md-text, #eef2ff);
  font-family: 'Outfit', 'Inter', 'Segoe UI', Tahoma, sans-serif;
  -webkit-user-select: text;
  user-select: text;
  animation: auth-in 0.24s cubic-bezier(0.2, 0.9, 0.3, 1);
  scrollbar-width: thin;
}
.auth-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--md-grad-brand, linear-gradient(90deg, #ff4d67, #facc15 50%, #38bdf8));
  opacity: 0.9;
}
.auth-modal.wide {
  width: min(662px, 100%);
}
.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #8b9bb8;
  font: inherit;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.auth-close:hover {
  color: #fff;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.12);
}
.auth-close:disabled {
  opacity: 0.4;
  cursor: default;
}
.auth-brand {
  padding-right: 42px;
}
.auth-brand .pk-brand-ball {
  --pk-ball-size: 42px;
}
.auth-brand .pk-brand-copy b {
  font-size: 24px;
}
.auth-brand .pk-brand-copy small {
  font-size: 8px;
  letter-spacing: 0.15em;
}
.auth-title {
  margin: 20px 0 4px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.auth-subtitle {
  margin: 0 0 16px;
  color: #8b9bb8;
  font-size: 12.5px;
  line-height: 1.5;
}
.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}
.auth-tabs[hidden] {
  display: none;
}
.auth-tab {
  flex: 1;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8b9bb8;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}
.auth-tab:hover {
  color: #fff;
}
.auth-tab.on {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(139, 92, 246, 0.22));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.38);
}
.auth-tab:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Formulários (estrutura montada pelo login.js). */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.login-form[hidden],
.login-charview[hidden],
.login-error[hidden],
.login-warn[hidden] {
  display: none;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.login-label {
  color: #8b9bb8;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.login-input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 13px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 11px;
  background: rgba(4, 8, 18, 0.7);
  color: #eef2ff;
  font: inherit;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.login-input::placeholder {
  color: #5f6f8e;
}
.login-input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}
.login-input.invalid {
  border-color: rgba(239, 68, 68, 0.75);
}
.login-warn {
  color: #fca5a5;
  font-size: 11px;
  line-height: 1.4;
}
.login-btn {
  min-height: 46px;
  margin-top: 2px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #38bdf8 0%, #4f8ef7 55%, #8b5cf6 100%);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.22);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.login-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 16px 34px rgba(56, 189, 248, 0.32);
}
.login-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}
.login-btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}
.login-link {
  align-self: center;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: #7dd3fc;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}
.login-link:hover {
  color: #fff;
  text-decoration: underline;
}
.login-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(239, 68, 68, 0.42);
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  font-size: 12.5px;
  line-height: 1.45;
}
.login-legal {
  margin-top: 2px;
  color: #5f6f8e;
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
}
.login-legal a,
.login-consent a {
  color: #7dd3fc;
}
.login-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: #8b9bb8;
  font-size: 11.5px;
  line-height: 1.45;
  cursor: pointer;
}
.login-consent input {
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: #38bdf8;
}

/* Seleção de personagem. */
.login-charview {
  margin-top: 2px;
}
.login-chars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 10px;
}
.login-char-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    'outfit info'
    'team team'
    'status status';
  gap: 8px 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #e8eeff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.13s, background 0.13s, transform 0.13s;
}
.login-char-card:hover,
.login-char-card:focus-visible {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-1px);
}
.login-char-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}
.login-char-card.busy {
  border-color: #38bdf8;
}
.login-char-card:disabled {
  opacity: 0.75;
  cursor: default;
}
.login-char-outfit {
  grid-area: outfit;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: linear-gradient(160deg, #222c42, #131c30);
}
.login-char-outfit canvas {
  width: 80px;
  height: 80px;
  image-rendering: pixelated;
}
.login-char-info {
  grid-area: info;
  min-width: 0;
}
.login-char-name {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.login-char-meta {
  display: block;
  margin-top: 2px;
  color: #8b9bb8;
  font-size: 11px;
}
.login-team {
  grid-area: team;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.login-team-avatar {
  width: 40px;
  height: 40px;
  padding: 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  object-fit: contain;
  image-rendering: auto;
}
.login-team-avatar[hidden] {
  display: none;
}
.login-char-status {
  grid-area: status;
  color: #7dd3fc;
  font-size: 11.5px;
}
.login-char-status[hidden] {
  display: none;
}
.login-char-status.err {
  color: #fca5a5;
}
.login-charview .login-link {
  display: block;
  margin: 10px auto 0;
}

/* Starters e sexo. */
.login-starters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 2px 0 6px;
}
.login-starter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 92px;
  padding: 8px 6px;
  border: 2px solid rgba(148, 163, 184, 0.14);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  color: #e8eeff;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s, box-shadow 0.14s;
}
.login-starter:hover {
  border-color: rgba(56, 189, 248, 0.4);
}
.login-starter img {
  width: 58px;
  height: 46px;
  object-fit: contain;
  image-rendering: auto;
}
.login-starter-name {
  color: #b9c8e8;
  font-size: 10.5px;
  font-weight: 600;
}
.login-starter.sel {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.22);
}
.login-sex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 2px 0 6px;
}
.login-sex-opt {
  min-height: 44px;
  padding: 9px;
  border: 2px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #e8eeff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s, box-shadow 0.14s;
}
.login-sex-opt.sel {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.22);
}

/* Landing mínima de emergência (quando o index.html não trouxe a landing). */
.lp-fallback {
  background:
    radial-gradient(circle at 20% 10%, rgba(239, 59, 82, 0.28), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.22), transparent 55%),
    #060a16 !important;
}
.lp-fallback-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 100dvh;
  padding: 24px;
  text-align: center;
}
.lp-fallback-inner .pk-brand {
  position: relative;
  margin-bottom: 4px;
}
.lp-fallback-inner .pk-brand-ball {
  --pk-ball-size: 72px;
}
.lp-fallback-inner h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.05;
}
.lp-fallback-inner p {
  max-width: 420px;
  margin: 0 0 8px;
  color: #9aabc9;
  line-height: 1.6;
}

/* ── Animações ───────────────────────────────────────────────────────────── */
@keyframes lp-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@keyframes lp-float-slow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -22px, 0) scale(1.06);
  }
}
@keyframes lp-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
@keyframes auth-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Responsivo ──────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  /* Em colunas mais estreitas os badges flutuantes encostariam no card. */
  .lp-float {
    display: none;
  }
}
@media (max-width: 980px) {
  .lp-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: clamp(40px, 6vw, 64px);
  }
  .lp-hero-copy {
    max-width: 660px;
  }
  .lp-hero-visual {
    min-height: 430px;
    margin-top: 8px;
  }
  .lp-hero-emblem {
    right: 8%;
  }
  .lp-nav-links {
    display: none;
  }
  .lp-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lp-trust-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .lp-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .lp-float-a {
    left: 2%;
  }
  .lp-float-b {
    right: 1%;
  }
}

@media (max-width: 720px) {
  .lp-nav {
    gap: 10px;
    padding: 12px 16px;
  }
  .lp-brand .pk-brand-copy small {
    display: none;
  }
  .lp-brand .pk-brand-copy b {
    font-size: 19px;
  }
  .lp-nav-actions .lp-btn-ghost {
    display: none;
  }
  .lp-nav-actions .lp-btn-primary {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12.5px;
  }
  .lp-hero {
    padding: 36px 18px 24px;
    gap: 26px;
  }
  .lp-hero h1 {
    font-size: clamp(2.2rem, 9.4vw, 3.2rem);
  }
  .lp-lead {
    font-size: 14.5px;
  }
  .lp-play {
    min-height: 56px;
    padding: 0 26px;
    font-size: 24px;
  }
  .lp-hero-visual {
    min-height: 360px;
  }
  .lp-team-card {
    width: min(360px, 100%);
    padding: 12px;
    transform: none;
  }
  .lp-team-card:hover {
    transform: translateY(-3px);
  }
  .lp-team-mon {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 7px 8px;
  }
  .lp-team-mon img {
    width: 54px;
    height: 42px;
  }
  .lp-hero-emblem {
    top: -10%;
    right: 4%;
  }
  .lp-hero-emblem .pk-brand-ball {
    --pk-ball-size: 84px;
  }
  .lp-float {
    display: none;
  }
  .lp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 16px;
  }
  .lp-stats > div {
    padding: 18px 12px;
  }
  .lp-stats > div + div {
    border-left: 0;
  }
  .lp-stats > div:nth-child(even) {
    border-left: 1px solid rgba(148, 163, 184, 0.09);
  }
  .lp-stats > div:nth-child(n + 3) {
    border-top: 0;
  }
  .lp-section {
    padding: 52px 18px;
  }
  .lp-stats-note {
    padding: 14px 18px 0;
  }
  .lp-trust-panel {
    padding: 46px 18px 0;
  }
  .lp-cards {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 26px;
  }
  .lp-mid-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
    text-align: center;
  }
  .lp-mid-cta .lp-play {
    justify-content: center;
  }
  .lp-footer {
    padding: 28px 18px 42px;
  }
  .auth-overlay {
    padding: 10px;
    align-items: flex-start;
  }
  .auth-modal {
    width: 100%;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    margin: auto 0;
    padding: 22px 18px 20px;
    border-radius: 18px;
  }
  .auth-modal.wide {
    width: 100%;
  }
  .auth-title {
    font-size: 21px;
  }
  .login-starters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .login-starter {
    min-height: 84px;
    padding: 6px 4px;
  }
  .login-starter img {
    width: 50px;
    height: 40px;
  }
  .login-chars {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .lp-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .lp-cta .lp-play,
  .lp-cta .lp-btn {
    justify-content: center;
  }
  .lp-trust {
    gap: 6px 12px;
  }
  .lp-team-zone {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-glow,
  .lp-hero-emblem,
  .lp-float,
  .lp-dot,
  .lp-live i {
    animation: none !important;
  }
  .auth-modal {
    animation: none;
  }
  .lp-play::after {
    display: none;
  }
}
