/* ════════════════════════════════════════════════════════════════════════
   Portal Cyber Monster Z Origins — landing page
   DOM puro (o Phaser só nasce depois do login). Mesmos tokens do design
   system do jogo: pergaminho claro = texto escuro (ink/brown); superfície
   escura (madeira/cenário) = texto claro (cream/gold). Fontes do jogo:
   GameTitle (Jaini) em títulos, GamePrimary (Montserrat) no corpo.

   IMAGENS: nenhuma arte é esticada fora de proporção. Toda imagem entra com
   `contain`/`cover` ou numa caixa com a MESMA proporção do arquivo. A única
   exceção são peças feitas para esticar por construção (faixas lisas das 9
   fatias do modal), e isso está comentado onde acontece.

   Este arquivo é servido como está (link com vite-ignore no index.html):
   os url() são relativos a assets/ui/landing/.
   ════════════════════════════════════════════════════════════════════════ */

.landing {
  /* ── TOKENS DO DESIGN SYSTEM DO JOGO ──────────────────────────────────
     A landing não define identidade própria: ela consome os tokens de
     GameTypography (COLOR, SCALE, TITLE), GameUI (BUTTON, SURFACE) e
     GameMotion (DURATION, EASE). typography.js já publica as cores como
     --game-<token>; landing.js publica o resto em #landing-root na carga
     (applyDesignTokens). Os valores abaixo são só o reserva para a primeira
     pintura, antes de o script rodar — a fonte da verdade é o jogo. */
  --ink: var(--game-ink, #3a1c0c);
  --brown: var(--game-brown, #b65118);
  --gold: var(--game-gold, #ffd86a);
  --cream: var(--game-primary, #fff8e3);
  --soft: var(--game-secondary, #d8d2c0);
  --ok: var(--game-success, #7ee787);
  --danger: var(--game-danger, #ff6b6b);
  --ink-soft: color-mix(in srgb, var(--ink) 80%, transparent);
  --stroke: var(--game-stroke, #3a1c0c);
  --fs-xs: 11px; --fs-sm: 13px; --fs-md: 15px; --fs-lg: 18px; --fs-xl: 22px; --fs-2xl: 28px; --fs-3xl: 34px;
  --font-body: var(--game-font-body);
  --font-title: var(--game-font-title);
  --title-gradient: linear-gradient(180deg, #fff7a8 0%, #ffd84e 32%, #f3a81d 68%, #d86d11 100%);
  --title-stroke: #5a1708;
  --title-shadow: #4b1207;
  --dur-fast: 130ms; --dur-base: 220ms; --dur-slow: 320ms; --dur-lazy: 520ms;
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-settle: cubic-bezier(.215, .61, .355, 1);
  --ease-snap: cubic-bezier(.55, .085, .68, .53);
  --ease-leave: cubic-bezier(.55, .055, .675, .19);
  --btn-radius: 9px;
  --surface-panel: #1c140c;
  --surface-panel-stroke: #5a3c1e;

  /* Só da landing: o degrau de display do hero (acima do 3xl do jogo) e os
     tons de madeira/pergaminho das superfícies desenhadas em CSS. */
  --fs-display: 56px;
  --brown-deep: #6b3518;
  --paper: #f0d9a9;
  --paper-light: #fff5d6;
  --rail-w: 96px;
  --gutter: clamp(16px, 3vw, 40px);

  position: fixed;
  inset: 0;
  z-index: 20;
  isolation: isolate;
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  background: #8dd6f4;
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}
.landing *, .landing *::before, .landing *::after { box-sizing: border-box; }
:where(.landing) a { color: inherit; text-decoration: none; }
:where(.landing) button { font: inherit; color: inherit; }
:where(.landing) img { display: block; max-width: 100%; height: auto; }
.landing [hidden] { display: none !important; }
.landing :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.landing.is-leaving { pointer-events: none; opacity: 0; transform: scale(1.012); transition: opacity var(--dur-slow) ease, transform var(--dur-slow) ease; }

/* ── Cenário fixo: a página rola por cima dele ───────────────────────────
   Céu com nuvens passando e vaga-lumes subindo; tudo desenhado em CSS por
   cima da arte do vale. */
.lp-sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: url('bg-valley.webp') center top / cover no-repeat; }
.lp-sky::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 250, 224, .26), transparent 60%),
    linear-gradient(180deg, rgba(8, 26, 38, .04) 0%, rgba(8, 26, 38, .26) 46%, rgba(6, 20, 30, .78) 100%);
}
.lp-cloud {
  position: absolute; left: -40%; width: var(--w, 46%); aspect-ratio: 5 / 2; top: var(--y, 8%); opacity: var(--o, .5);
  background:
    radial-gradient(38% 46% at 30% 60%, #fff 0 46%, transparent 70%),
    radial-gradient(34% 54% at 52% 44%, #fff 0 46%, transparent 70%),
    radial-gradient(40% 44% at 72% 62%, #fff 0 46%, transparent 70%);
  filter: blur(14px); animation: lp-drift var(--t, 120s) linear infinite; animation-delay: var(--d, 0s);
}
.lp-fireflies { position: absolute; inset: 0; }
.lp-fireflies i {
  position: absolute; left: var(--x); bottom: -4%; width: var(--s, 5px); height: var(--s, 5px); border-radius: 50%;
  background: radial-gradient(circle, #fffbd0 0 30%, #ffe27a 55%, transparent 72%); box-shadow: 0 0 10px 3px rgba(255, 226, 122, .55);
  animation: lp-firefly var(--t, 22s) linear infinite; animation-delay: var(--d, 0s);
}

/* ── Trilho lateral: uma corda pendurada com os medalhões ─────────────────
   Sem coluna de fundo: a corda desce do alto e balança de leve. */
.lp-rail {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 0 16px;
  transform-origin: 50% 0; animation: lp-sway 9s ease-in-out infinite;
}
.lp-rail::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -20px; height: var(--rope-h, 520px); width: 7px; margin-left: -3.5px; border-radius: 4px;
  background: repeating-linear-gradient(-38deg, #c99b5b 0 4px, #86592a 4px 8px);
  box-shadow: 0 0 0 1px #2c170a, 3px 5px 6px rgba(4, 16, 26, .45);
}
.lp-rail__logo {
  width: 62px; height: 62px; margin-bottom: 10px; border-radius: 18px;
  box-shadow: 0 0 0 3px #e8b94a, 0 0 0 6px #4a2a12, 0 6px 0 6px rgba(0, 0, 0, .28);
  overflow: hidden; transition: transform var(--dur-base) var(--ease-settle);
}
.lp-rail__logo:hover { transform: rotate(-4deg) scale(1.05); }
.lp-rail__logo img { width: 100%; height: 100%; object-fit: cover; }
.lp-rail__nav { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 6px 0; }
.lp-nav {
  position: relative; display: grid; justify-items: center; gap: 3px;
  padding: 7px 4px 6px; border: 0; background: transparent; cursor: pointer;
  color: #fff3d2; font: 800 var(--fs-xs)/1.1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; text-align: center;
  transition: color var(--dur-base) ease, transform var(--dur-base) var(--ease-settle);
}
.lp-nav__ring {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #7a5730, #3c2412 68%);
  box-shadow: inset 0 0 0 2px #1d0f06, 0 0 0 2px #c8973f, 0 3px 0 2px rgba(0, 0, 0, .32);
  transition: box-shadow var(--dur-base) ease, background var(--dur-base) ease, transform var(--dur-base) var(--ease-settle);
}
.lp-nav svg { width: 23px; height: 23px; fill: currentColor; }
.lp-nav:hover { color: var(--cream); }
.lp-nav:hover .lp-nav__ring { transform: translateY(-2px); }
.lp-nav.is-active { color: var(--gold); }
.lp-nav.is-active .lp-nav__ring {
  background: radial-gradient(circle at 35% 28%, #fff1a8, #f2a71b 62%, #a65a10);
  color: #5a2b08;
  box-shadow: inset 0 0 0 2px #7c3e0e, 0 0 0 2px #ffe9a3, 0 0 16px rgba(255, 216, 106, .55), 0 3px 0 2px rgba(0, 0, 0, .32);
}
.lp-rail__spacer { flex: 1; }

/* ── Área rolável ─────────────────────────────────────────────────────── */
.lp-shell {
  position: relative; min-width: 0; height: 100%;
  overflow-x: hidden; overflow-y: auto;
  scroll-behavior: smooth; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #c8973f rgba(20, 10, 4, .35);
}
.lp-wrap { width: min(1320px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

/* ── Cabeçalho ────────────────────────────────────────────────────────── */
.lp-top { position: sticky; top: 0; z-index: 5; padding-top: 10px; pointer-events: none; }
.lp-top__bar {
  pointer-events: auto;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px;
  min-height: 62px; padding: 8px 14px 8px 18px;
  border: 2px solid #70431f; border-radius: 14px 14px 22px 22px;
  background:
    repeating-linear-gradient(3deg, rgba(120, 77, 37, .05) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, #cfa268 0%, #f2d39c 9%, #f8dfae 50%, #f2d39c 91%, #cfa268 100%);
  box-shadow: inset 0 2px 0 rgba(255, 246, 214, .7), 0 4px 0 #4a2a12, 0 12px 22px rgba(6, 20, 30, .38);
  color: var(--ink);
}
/* Folhagem: a guirlanda entra na proporção original (3:1) em cada ponta da
   barra — ancorada à esquerda e à direita — em vez de esticada na largura. */
.lp-top__bar::before, .lp-top__bar::after {
  content: ""; position: absolute; z-index: -1; top: -30px; width: min(46%, 300px); aspect-ratio: 3 / 1; pointer-events: none;
  background: url('foliage.webp') center / contain no-repeat;
  filter: drop-shadow(0 4px 3px rgba(4, 31, 14, .5));
}
.lp-top__bar::before { left: -22px; }
.lp-top__bar::after { right: -22px; transform: scaleX(-1); }
.lp-brand {
  position: relative; display: grid; line-height: .8; text-align: center; flex: 0 0 auto;
  font: 800 var(--fs-xl)/.78 var(--font-title); letter-spacing: 0;
  color: #e6fff5; text-shadow: 0 2px #2c6b62, 2px 0 #2c6b62, -2px 0 #2c6b62, 0 -1px #2c6b62, 0 5px 5px rgba(35, 29, 20, .45);
}
.lp-brand b { font-size: .86em; color: #ecf8ff; text-shadow: 0 2px #56799a, 2px 0 #56799a, -2px 0 #56799a, 0 -1px #56799a, 0 5px 5px rgba(35, 29, 20, .45); }
.lp-brand small {
  justify-self: center; margin-top: 4px; padding: 3px 6px 2px; border-radius: 3px;
  background: #613510; color: #fff5bf; font: 800 .48em/.9 var(--font-title); letter-spacing: .02em; text-shadow: none;
}
/* O logo fica no meio da barra, maior que ela: desce para fora num brasão de
   madeira, com a guirlanda (proporção original 3:1) aparecendo por trás. */
.lp-top__bar > .lp-brand { grid-column: 2; z-index: 1; margin: -4px 10px -34px; padding: 12px 22px 14px; font-size: var(--fs-2xl); transition: transform var(--dur-base) var(--ease-pop); }
.lp-top__bar > .lp-brand:hover { transform: translateY(2px) rotate(-1.5deg); }
.lp-top__bar > .lp-brand::before {
  content: ""; position: absolute; z-index: -1; inset: 0; border-radius: 12px 12px 46% 46% / 12px 12px 34px 34px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 17px), linear-gradient(#8a5a2b, #55321a);
  box-shadow: inset 0 0 0 2px #f0c463, inset 0 0 0 4px rgba(44, 23, 10, .55), 0 0 0 3px #2c170a, 0 6px 0 2px #1d0f06, 0 14px 18px rgba(4, 16, 26, .45);
}
.lp-top__bar > .lp-brand::after {
  content: ""; position: absolute; z-index: -2; left: 50%; top: 52%; width: 210%; aspect-ratio: 3 / 1; transform: translateX(-50%); pointer-events: none;
  background: url('foliage.webp') center / contain no-repeat; filter: drop-shadow(0 4px 3px rgba(4, 31, 14, .5));
  transform-origin: 50% 0; transition: opacity var(--dur-slow) ease, scale var(--dur-slow) var(--ease-settle);
}
.landing.is-scrolled .lp-top__bar > .lp-brand::after { opacity: 0; scale: .7; }
.lp-top__links { grid-column: 1; grid-row: 1; display: flex; gap: clamp(10px, 1.6vw, 22px); }
.lp-top__links a {
  position: relative; padding: 6px 2px; font: 800 var(--fs-sm) var(--font-body); letter-spacing: .03em; text-transform: uppercase; color: #4b2a13;
  transition: color var(--dur-fast) ease;
}
.lp-top__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--brown);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-settle);
}
.lp-top__links a:hover { color: var(--brown); }
.lp-top__links a:hover::after { transform: scaleX(1); }
.lp-top__actions { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.lp-hello { font: 800 var(--fs-sm) var(--font-body); color: var(--brown-deep); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lp-lang { position: relative; }
.lp-lang__btn {
  display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border: 2px solid #8a5a2b; border-radius: 999px; cursor: pointer;
  background: linear-gradient(#fff3d2, #e6c78f); box-shadow: inset 0 1px 0 #fff, 0 2px 0 #6f461f;
  font: 800 var(--fs-xs) var(--font-body); letter-spacing: .06em; color: #4b2a13;
}
.lp-lang__btn svg { width: 16px; height: 16px; fill: currentColor; }
.lp-lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 6; min-width: 172px; padding: 6px;
  border: 2px solid #70431f; border-radius: 12px; background: #f6dfb0;
  box-shadow: 0 4px 0 #4a2a12, 0 14px 26px rgba(6, 20, 30, .45);
  transform-origin: top right; animation: lp-pop var(--dur-base) var(--ease-settle) both;
}
.lp-lang__menu button {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; padding: 0 12px;
  border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left;
  font: 800 var(--fs-sm) var(--font-body); color: var(--ink);
}
.lp-lang__menu button:hover { background: rgba(182, 81, 24, .14); }
.lp-lang__menu button[aria-checked="true"] { background: var(--brown-deep); color: var(--paper-light); }
.lp-lang__menu small { font: 800 var(--fs-xs) var(--font-body); letter-spacing: .08em; opacity: .7; }

/* ── Botões — receita de GameUI.BUTTON ────────────────────────────────
   Procedural como no jogo: miolo em gradiente (top→bottom), borda = stroke
   da variante, brilho no terço superior e rótulo Jaini com contorno na cor
   do stroke. As cores de cada variante são publicadas por landing.js a
   partir de GameUI.BUTTON.variants (--btn-<variante>-*). */
.lp-btn {
  --b-top: var(--btn-orange-top, #ffcf4a); --b-bot: var(--btn-orange-bottom, #f2860c);
  --b-edge: var(--btn-orange-stroke, #7c3e0e); --b-text: var(--btn-orange-text, #ffffff); --b-text-stroke: var(--btn-orange-text-stroke, #7c3e0e);
  --b-h: 44px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; isolation: isolate;
  min-height: var(--b-h); padding: 0 20px; cursor: pointer; white-space: nowrap;
  border: max(2px, calc(var(--b-h) * .06)) solid var(--b-edge); border-radius: var(--btn-radius);
  background: linear-gradient(var(--b-top), var(--b-bot));
  box-shadow: 0 3px 0 var(--b-edge), 0 8px 14px rgba(5, 12, 20, .3);
  color: var(--b-text); font: 800 var(--fs-lg)/1 var(--font-title);
  -webkit-text-stroke: .16em var(--b-text-stroke); paint-order: stroke fill;
  transition: transform var(--dur-fast) var(--ease-pop), filter var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.lp-btn::before {
  content: ""; position: absolute; z-index: -1; left: 3px; right: 3px; top: 2px; height: 42%; border-radius: calc(var(--btn-radius) - 3px);
  background: rgba(255, 255, 255, .28); pointer-events: none;
}
.lp-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
/* Toque: afunda e volta (o `press` do GameMotion); alpha fica para o desabilitado. */
.lp-btn:active { transform: translateY(2px) scale(.97); box-shadow: 0 1px 0 var(--b-edge); transition-duration: 70ms; transition-timing-function: var(--ease-snap); }
.lp-btn--bronze { --b-top: var(--btn-bronze-top, #d9a53a); --b-bot: var(--btn-bronze-bottom, #bd7410); --b-edge: var(--btn-bronze-stroke, #5f3a0c); --b-text: var(--btn-bronze-text, #ffffff); --b-text-stroke: var(--btn-bronze-text-stroke, #5f3a0c); }
.lp-btn--ghost { --b-top: var(--btn-parchment-top, #e4c79a); --b-bot: var(--btn-parchment-bottom, #c9a878); --b-edge: var(--btn-parchment-stroke, #8a5a2b); --b-text: var(--btn-parchment-text, #4a2514); --b-text-stroke: transparent; -webkit-text-stroke-width: 0; }
.lp-btn--gold { --b-top: var(--btn-gold-top, #fff54a); --b-bot: var(--btn-gold-bottom, #ffcf00); --b-edge: var(--btn-gold-stroke, #9e4a16); --b-text: var(--btn-gold-text, #9e4a16); --b-text-stroke: var(--btn-gold-text-stroke, #f3d65a); }
.lp-btn--pill { --btn-radius: 999px; }
.lp-btn--lg { --b-h: 58px; padding: 0 30px; font-size: var(--fs-xl); }
.lp-btn--sm { --b-h: 40px; padding: 0 14px; font-size: var(--fs-md); font-family: var(--font-title); }
.lp-btn--block { width: 100%; }
.lp-btn[disabled] { opacity: .55; cursor: default; transform: none; }

/* ── Página inicial ───────────────────────────────────────────────────── */
.lp-home { padding-bottom: 0; }
.landing:not([data-screen="home"]) .lp-home,
.landing:not([data-screen="home"]) .lp-tabbar { display: none; }

/* ── Palco do topo ────────────────────────────────────────────────────
   À esquerda, o quadro de notícias: moldura de madeira pendurada por cordas,
   com a arte do jogo SALTANDO para fora por cima e o texto num pergaminho
   preso no canto, vazando por baixo. À direita, o poste do Jogar. Cada slide
   é uma notícia publicada no admin; sem notícia fica só a arte do jogo.
   Nenhuma arte é deformada: fundo em `cover`, grupo de monstros na proporção
   dele (2:1). */
.lp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.lp-stage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 3vw, 36px); align-items: start; margin-top: clamp(84px, 9vw, 124px); }
.lp-slider {
  position: relative; aspect-ratio: 9 / 4; max-height: 440px; width: 100%; container-type: inline-size;
  border-radius: 20px 26px 22px 28px / 26px 20px 28px 22px;
  background:
    radial-gradient(circle at 16px 16px, #f6d98a 0 3px, #5a3712 4px 5px, transparent 6px),
    radial-gradient(circle at calc(100% - 16px) 16px, #f6d98a 0 3px, #5a3712 4px 5px, transparent 6px),
    radial-gradient(circle at 16px calc(100% - 16px), #f6d98a 0 3px, #5a3712 4px 5px, transparent 6px),
    radial-gradient(circle at calc(100% - 16px) calc(100% - 16px), #f6d98a 0 3px, #5a3712 4px 5px, transparent 6px),
    repeating-linear-gradient(2deg, rgba(0, 0, 0, .09) 0 1px, transparent 1px 9px),
    linear-gradient(#8a5a2b, #5d3a1a 60%, #472a12);
  box-shadow: inset 0 2px 0 rgba(255, 214, 150, .4), 0 0 0 3px #2c170a, 0 9px 0 3px #1d0f06, 0 28px 40px rgba(4, 16, 26, .5);
}
/* Cordas que seguram o quadro (somem por trás da barra do topo). */
.lp-slider::before {
  content: ""; position: absolute; z-index: -1; left: 9%; right: 9%; bottom: 100%; height: 200px; pointer-events: none;
  background:
    repeating-linear-gradient(-38deg, #c99b5b 0 4px, #86592a 4px 8px) left / 7px 100% no-repeat,
    repeating-linear-gradient(38deg, #c99b5b 0 4px, #86592a 4px 8px) right / 7px 100% no-repeat;
  filter: drop-shadow(3px 4px 3px rgba(4, 16, 26, .45));
}
.lp-slider__track { position: absolute; inset: 12px; }
.lp-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity var(--dur-lazy) ease, visibility 0s linear var(--dur-lazy); }
.lp-slide.is-active { opacity: 1; visibility: visible; transition: opacity var(--dur-lazy) ease; }
.lp-slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px 16px 14px 18px / 16px 12px 18px 14px; box-shadow: 0 0 0 2px #f0c463, 0 0 0 4px #2c170a; }
.lp-slide::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 12px 16px 14px 18px / 16px 12px 18px 14px; background: linear-gradient(0deg, rgba(6, 20, 30, .55), transparent 42%); pointer-events: none; }
/* O grupo de monstros é mais alto que o quadro: sai por cima da moldura. */
.lp-slide__art { position: absolute; z-index: 2; left: 50%; bottom: 0; width: 104%; max-width: none; height: auto; transform: translateX(-50%); filter: drop-shadow(0 14px 12px rgba(3, 17, 19, .5)); pointer-events: none; }
/* A notícia: pergaminho pregado no canto, vazando por baixo do quadro. */
.lp-slide__copy {
  position: absolute; z-index: 3; left: clamp(6px, 2.5cqw, 26px); bottom: -34px; width: min(58%, 500px); display: grid; gap: 6px;
  padding: 16px 18px 15px; rotate: -1.4deg; color: var(--ink);
  border: 3px solid #6b3f1c; border-radius: 6px 16px 8px 18px / 14px 6px 16px 8px;
  background:
    radial-gradient(circle at 14px 12px, #d9dde0 0 2px, #4a3a2a 3px 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 14px) 12px, #d9dde0 0 2px, #4a3a2a 3px 4px, transparent 5px),
    radial-gradient(ellipse at 12% 10%, rgba(255, 250, 226, .7), transparent 46%),
    repeating-linear-gradient(3deg, rgba(120, 77, 37, .04) 0 1px, transparent 1px 5px),
    linear-gradient(170deg, #fbe9c2, #ecd09a);
  box-shadow: inset 0 0 0 2px rgba(255, 245, 214, .75), 0 5px 0 #3b2110, 0 16px 18px rgba(4, 16, 26, .45);
}
.lp-slide__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 4px; }
.lp-slide__meta time { color: var(--brown); font: 800 var(--fs-xs) var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.lp-slide[data-category="maintenance"] .lp-chip { background: #a3261c; }
.lp-slide[data-category="event"] .lp-chip { background: #2d7a2a; }
.lp-slide h2 {
  margin: 0; color: var(--ink); font: 800 clamp(var(--fs-lg), 3.2cqw, var(--fs-2xl))/1.1 var(--font-title); letter-spacing: -.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lp-slide p { color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.45; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Setas: a seta dourada do jogo (story-arrow), meio para fora da moldura. */
.lp-slider__arrow {
  position: absolute; z-index: 4; top: 50%; width: 46px; aspect-ratio: 894 / 1054; padding: 0; border: 0; cursor: pointer;
  background: url('world/arrow.webp') center / contain no-repeat; filter: drop-shadow(0 4px 3px rgba(4, 16, 26, .5));
  transform: translateY(-50%); transition: transform var(--dur-fast) var(--ease-pop);
}
.lp-slider__arrow svg { display: none; }
.lp-slider__arrow--next { right: -20px; }
.lp-slider__arrow--prev { left: -20px; transform: translateY(-50%) scaleX(-1); }
.lp-slider__arrow--next:hover { transform: translateY(-50%) scale(1.14); }
.lp-slider__arrow--prev:hover { transform: translateY(-50%) scaleX(-1) scale(1.14); }
.lp-slider__dots { position: absolute; z-index: 4; right: 30px; bottom: 26px; display: flex; gap: 8px; }
.lp-slider__dots button { width: 14px; height: 14px; padding: 0; border: 2px solid #2c170a; border-radius: 50%; background: #fff3d2; cursor: pointer; box-shadow: 0 2px 0 rgba(0, 0, 0, .35); transition: transform var(--dur-fast) var(--ease-pop), background var(--dur-fast) ease; }
.lp-slider__dots button[aria-current="true"] { background: var(--gold); transform: scale(1.3); }

/* ── Poste do Jogar ───────────────────────────────────────────────────
   A placa de madeira com cipó é a mesma do título dos mapas do jogo
   (map_bg, 2:1): entra inteira, na proporção. Em cima dela ficam monstros
   do catálogo (sprites animados do jogo); embaixo, plaquinhas penduradas. */
.lp-post { position: relative; display: grid; justify-items: center; width: 100%; max-width: 360px; justify-self: center; }
.lp-crew { position: relative; z-index: 2; display: flex; justify-content: center; align-items: flex-end; height: 136px; margin-bottom: -72px; pointer-events: none; }
.lp-critter { flex: 0 0 auto; width: 136px; height: 136px; object-fit: contain; filter: drop-shadow(0 5px 3px rgba(4, 16, 26, .45)); }
.lp-crew .lp-critter { margin-inline: -22px; }
.lp-critter.is-flipped { transform: scaleX(-1); }
.lp-sign {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 2 / 1; padding: 0; border: 0; cursor: pointer; isolation: isolate;
  background: url('world/sign.webp') center / contain no-repeat; filter: drop-shadow(0 10px 10px rgba(4, 16, 26, .5));
  transform-origin: 50% 12%; transition: transform var(--dur-base) var(--ease-pop), filter var(--dur-base) ease;
}
.lp-sign:hover, .lp-sign:focus-visible { transform: rotate(-2.2deg) scale(1.03); filter: drop-shadow(0 14px 14px rgba(4, 16, 26, .55)) brightness(1.05); }
.lp-sign:active { transform: scale(.97); transition-duration: 70ms; transition-timing-function: var(--ease-snap); }
.lp-sign__label {
  position: absolute; left: 15%; right: 15%; top: 26%; height: 38%; display: grid; place-items: center;
  font: 800 var(--fs-2xl)/1 var(--font-title); letter-spacing: -.02em; color: #ffd54a;
  background: var(--title-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 var(--title-stroke)) drop-shadow(0 -1px 0 var(--title-stroke)) drop-shadow(2px 0 0 var(--title-stroke)) drop-shadow(-2px 0 0 var(--title-stroke)) drop-shadow(0 3px 0 var(--title-shadow));
}
.lp-sign__label { white-space: nowrap; }
.lp-sign[data-long] .lp-sign__label { font-size: var(--fs-xl); }
.lp-sign__slot {
  position: absolute; left: 18%; right: 18%; top: 73.5%; height: 12%; display: flex; align-items: center; justify-content: center; gap: 6px;
  color: var(--cream); font: 800 var(--fs-xs)/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.lp-sign__slot i { width: 8px; height: 8px; border-radius: 50%; background: #a58a6a; }
.lp-sign__slot i[data-state="online"] { background: #3fae3a; box-shadow: 0 0 8px #58d552; animation: lp-pulse 1.8s ease-in-out infinite; }
.lp-sign__slot i[data-state="offline"] { background: #c63a2e; }
/* Plaquinhas: a tábua do jogo (aba, 587×168) na proporção dela. */
.lp-planks { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; width: 92%; margin-top: 4px; padding-top: 14px; }
.lp-plank {
  position: relative; display: grid; place-items: center; aspect-ratio: 587 / 168; padding: 0 8px; border: 0; cursor: pointer;
  background: url('world/plank.webp') center / 100% 100% no-repeat; filter: drop-shadow(0 4px 3px rgba(4, 16, 26, .45));
  color: var(--cream); font: 800 var(--fs-md)/1 var(--font-title); white-space: nowrap;
  -webkit-text-stroke: .16em #3b2110; paint-order: stroke fill;
  transform-origin: 50% -12px; transition: rotate var(--dur-base) var(--ease-pop), translate var(--dur-base) var(--ease-pop), filter var(--dur-fast) ease;
}
.lp-plank:nth-child(odd) { rotate: -1.6deg; }
.lp-plank:nth-child(even) { rotate: 1.3deg; }
.lp-plank:hover, .lp-plank:focus-visible { rotate: 0deg; translate: 0 2px; filter: drop-shadow(0 6px 5px rgba(4, 16, 26, .5)) brightness(1.1); color: var(--gold); }
/* As duas cordinhas de cada plaquinha. */
.lp-plank::before {
  content: ""; position: absolute; z-index: -1; left: 16%; right: 16%; bottom: calc(100% - 5px); height: 19px; pointer-events: none;
  background:
    repeating-linear-gradient(-38deg, #c99b5b 0 3px, #86592a 3px 6px) left / 4px 100% no-repeat,
    repeating-linear-gradient(38deg, #c99b5b 0 3px, #86592a 3px 6px) right / 4px 100% no-repeat;
}
/* Conta de quem tem sessão: uma tabuleta pendurada embaixo das plaquinhas. */
.lp-player {
  position: relative; width: 100%; display: grid; gap: 10px; margin-top: 18px; padding: 12px 14px; rotate: .6deg;
  border: 3px solid #2c170a; border-radius: 10px 16px 12px 18px / 16px 10px 18px 12px;
  background: repeating-linear-gradient(1deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 11px), linear-gradient(#7d5229, #56341a);
  box-shadow: inset 0 2px 0 rgba(255, 214, 150, .35), inset 0 0 0 2px rgba(240, 196, 99, .55), 0 5px 0 #1d0f06, 0 14px 16px rgba(4, 16, 26, .4);
}
.lp-player::before {
  content: ""; position: absolute; z-index: -1; left: 14%; right: 14%; bottom: calc(100% - 2px); height: 22px; pointer-events: none;
  background:
    repeating-linear-gradient(-38deg, #c99b5b 0 3px, #86592a 3px 6px) left / 5px 100% no-repeat,
    repeating-linear-gradient(38deg, #c99b5b 0 3px, #86592a 3px 6px) right / 5px 100% no-repeat;
}
.lp-player__id { display: flex; align-items: center; gap: 12px; text-align: left; min-width: 0; }
.lp-player__id > div { min-width: 0; }
.lp-player__face { width: 52px; height: auto; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); }
.lp-player__id small { display: block; color: #f6e2bb; font: 800 var(--fs-xs) var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.lp-player__id b { display: block; color: var(--cream); font: 800 var(--fs-lg)/1.15 var(--font-title); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 0 #2c170a; }
.lp-player__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; }
.lp-player__tags img { width: 33px; height: 33px; image-rendering: pixelated; }
.lp-player__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.lp-player__stats div { padding: 5px 8px; border-radius: 8px; background: rgba(20, 10, 4, .34); text-align: left; min-width: 0; }
.lp-player__stats dt { color: #f6e2bb; font: 800 var(--fs-xs) var(--font-body); letter-spacing: .04em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-player__stats dd { margin: 1px 0 0; color: var(--gold); font: 800 var(--fs-md)/1.1 var(--font-body); }

/* Grade "painel": conteúdo + coluna de widgets */
.lp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 3vw, 36px); margin-top: clamp(64px, 7vw, 84px); align-items: start; }
.lp-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(44px, 6vw, 72px); min-width: 0; }
.lp-aside { display: grid; gap: 10px; position: sticky; top: 92px; }

/* Texto solto sobre o cenário: o preset `outlined` do GameTypography — contorno
   na cor COLOR.stroke (espessura = 14% do corpo, mínimo 2px) e a sombra curta
   de 1px. Sombra esfumada sozinha some quando o fundo clareia; contorno não. */
.lp-title p, .lp-count, .lp-scope__label, .lp-rail .lp-nav {
  -webkit-text-stroke: max(2px, .14em) var(--stroke); paint-order: stroke fill;
  text-shadow: 0 1px 2px var(--ink);
}
.lp-panel .lp-scope__label { -webkit-text-stroke: 0; text-shadow: none; }

/* Título de seção — tipográfico, no padrão dos títulos do jogo: letra dourada
   em degradê com contorno marrom (o mesmo dos rótulos do mapa inicial), um
   filete dourado e a linha de apoio logo abaixo, alinhada à esquerda. */
.lp-title { display: grid; gap: 10px; margin-bottom: 22px; }
.lp-title h2 {
  justify-self: start; margin: 0; padding: 2px 0;
  font: 800 clamp(var(--fs-2xl), 3.1vw, var(--fs-3xl))/1.05 var(--font-title); letter-spacing: -.02em;
  color: #ffd54a;
  background: var(--title-gradient);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 var(--title-stroke)) drop-shadow(0 -1px 0 var(--title-stroke)) drop-shadow(2px 0 0 var(--title-stroke)) drop-shadow(-2px 0 0 var(--title-stroke)) drop-shadow(0 3px 0 var(--title-shadow)) drop-shadow(0 6px 8px rgba(4, 16, 26, .5));
}
.lp-title p {
  position: relative; max-width: 62ch; padding-top: 12px; color: var(--cream); font: 700 var(--fs-md)/1.5 var(--font-body); letter-spacing: .02em;
  background: linear-gradient(90deg, #ffd86a, rgba(255, 216, 106, 0)) left top / min(340px, 100%) 2px no-repeat;
}
.lp-title p::before {
  content: ""; position: absolute; left: 0; top: -4px; width: 10px; height: 10px; transform: rotate(45deg);
  background: linear-gradient(135deg, #fff3b0, #e9a11c); box-shadow: 0 0 0 2px #4b1207;
}

/* Painel de pergaminho — desenhado em CSS (nítido em qualquer tamanho) */
.lp-panel {
  position: relative; padding: 18px; border: 3px solid #6b3f1c; border-radius: 12px 22px 14px 24px / 22px 12px 24px 14px; color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 10%, rgba(255, 250, 226, .7), transparent 46%),
    repeating-linear-gradient(3deg, rgba(120, 77, 37, .04) 0 1px, transparent 1px 5px),
    linear-gradient(170deg, #fbe9c2, #ecd09a);
  box-shadow: inset 0 0 0 2px rgba(255, 245, 214, .75), inset 0 0 0 3px rgba(107, 63, 28, .28), 0 5px 0 #3b2110, 0 14px 20px rgba(4, 16, 26, .35);
}
.lp-panel h3 { font: 800 var(--fs-lg)/1.15 var(--font-title); color: var(--ink); }
.lp-panel p { color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.55; }
.lp-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 3px; border-radius: 999px;
  background: var(--brown-deep); color: var(--paper-light); font: 800 var(--fs-xs) var(--font-body); letter-spacing: .1em; text-transform: uppercase;
}
.lp-chip[data-state="open"] { background: #2d7a2a; }
.lp-chip[data-state="closed"] { background: #7a5a3c; }

/* Estado de carregamento / erro dos dados do jogo */
.lp-data { display: grid; justify-items: center; gap: 12px; padding: 26px 16px; border-radius: 16px; background: rgba(8, 26, 34, .5); color: var(--cream); font-size: var(--fs-sm); text-align: center; }
.lp-data__spin { width: 26px; height: 26px; border: 3px solid rgba(255, 216, 106, .35); border-top-color: var(--gold); border-radius: 50%; animation: lp-spin .8s linear infinite; }

/* Como se joga */
.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 50px; counter-reset: step; }
.lp-step { counter-increment: step; padding-top: 40px; transition: rotate var(--dur-base) var(--ease-pop); }
.lp-step:nth-child(odd) { rotate: -1.1deg; }
.lp-step:nth-child(even) { rotate: .9deg; translate: 0 10px; }
.lp-step:hover { rotate: 0deg; }
.lp-step__badge {
  position: absolute; left: 50%; top: -36px; width: 64px; aspect-ratio: 195 / 200; transform: translateX(-50%); display: grid; place-items: center;
  background: url('icons/shield.webp') center / contain no-repeat; padding-top: 4px;
  color: var(--gold); font: 800 var(--fs-xl) var(--font-title); text-shadow: 0 2px 0 #2c170a;
}
.lp-step__badge::before { content: counter(step); }
.lp-step h3 { margin-bottom: 6px; text-align: center; }
.lp-step p { text-align: center; }

/* ══ CARTA "Relicário" — espelho do CardComponent (_buildView) do jogo ══
   Mesma proporção da moldura (828×1036) e as mesmas frações do código:
   janela interna l/r 10,5% · topo 15% · base 8,5% (mais a sangria que o jogo
   dá ao fundo); gema no topo (12% da largura); nível à esquerda e brasão à
   direita (medalhões de 21%). */
.gc {
  --tier: var(--cream);
  position: relative; display: block; width: 100%; aspect-ratio: 828 / 1036; padding: 0; border: 0; background: transparent; cursor: pointer;
  container-type: inline-size; text-align: center;
  filter: drop-shadow(0 8px 8px rgba(4, 16, 26, .45));
  transition: transform var(--dur-base) var(--ease-settle), filter var(--dur-base) ease;
}
.gc:hover, .gc:focus-visible { transform: translateY(-6px) rotate(-1deg); filter: drop-shadow(0 16px 14px rgba(4, 16, 26, .55)); }
.gc__window { position: absolute; left: 7.5%; right: 7.5%; top: 12.5%; bottom: 6%; overflow: hidden; background: #000; }
.gc__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gc__art--sprite { inset: 14% 6% 6%; width: 88%; height: 80%; object-fit: contain; }
.gc__veil { position: absolute; left: 0; right: 0; bottom: 0; height: 44%; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); }
.gc__frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.gc__gem, .gc__glow { position: absolute; left: 50%; top: 7.2%; transform: translate(-50%, -50%); background-repeat: no-repeat; background-size: 600% 600%; pointer-events: none; }
.gc__gem { width: 12cqw; height: 12cqw; background-image: url('card/gem.webp'); background-position: calc(var(--col) * 20%) 0; }
.gc__glow { width: 24cqw; height: 24cqw; background-image: url('card/gem-glow.webp'); background-position-x: calc(var(--col) * 20%); animation: gc-glow 4.3s steps(6) infinite; }
.gc__name {
  position: absolute; left: 12%; right: 12%; top: 15%; padding-top: 2.5cqw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--tier); font: 800 max(var(--fs-xs), 11.8cqw)/1.25 var(--font-title);
  -webkit-text-stroke: max(3px, 2.3cqw) #1c0d05; paint-order: stroke fill;
}
.gc__badge {
  position: absolute; top: 92.8%; width: max(26px, 21cqw); aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center;
  color: var(--tier); font: 800 max(var(--fs-xs), 8.9cqw)/1 var(--font-title);
  -webkit-text-stroke: max(1px, 1.4cqw) #3a1c0c; paint-order: stroke fill;
}
.gc__badge::before { content: ""; position: absolute; inset: 13%; border-radius: 50%; background: #1b120a; }
.gc__badge::after { content: ""; position: absolute; inset: 0; background: url('../frames/moldura-circular.png') center / contain no-repeat; }
.gc__badge > * { position: relative; z-index: 1; }
.gc__badge img { width: 62%; height: 62%; object-fit: contain; }
.gc__badge--lvl { left: calc(max(26px, 21cqw) * .52); }
.gc__badge--el { left: calc(100% - max(26px, 21cqw) * .52); }
.gc.is-in { animation: lp-pop var(--dur-slow) var(--ease-settle) both; }

/* Vitrine */
.lp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.lp-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-filter {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px 0 8px; cursor: pointer;
  border: 2px solid #2c170a; border-radius: 999px; background: linear-gradient(#7a4f28, #57341a);
  box-shadow: inset 0 1px 0 rgba(255, 214, 150, .35), 0 3px 0 #1d0f06;
  color: #f6e2bb; font: 800 var(--fs-xs) var(--font-body); letter-spacing: .05em; text-transform: uppercase;
  transition: transform var(--dur-fast) var(--ease-settle), filter var(--dur-fast) ease;
}
.lp-filter:first-child { padding-left: 14px; }
.lp-filter img { width: 24px; height: 24px; }
.lp-filter:hover { transform: translateY(-2px); filter: brightness(1.1); }
.lp-filter[aria-pressed="true"] {
  background: linear-gradient(#fff55a, #f7a916); border-color: #7c3e0e; color: #6a3310;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), 0 3px 0 #7c3e0e, 0 0 16px rgba(255, 216, 106, .4);
}
.lp-search {
  flex: 1 1 180px; min-width: 0; max-width: 280px; min-height: 40px; padding: 0 14px; border: 2px solid #8a5a2b; border-radius: 999px; outline: none;
  background: linear-gradient(#fff7e4, #ead3a5); box-shadow: inset 0 2px 5px rgba(73, 45, 23, .18); color: #332216; font: 600 var(--fs-sm) var(--font-body);
  -webkit-user-select: text; user-select: text;
}
.lp-search::placeholder { color: #8a6a48; }
.lp-count { margin-left: auto; color: var(--cream); font: 800 var(--fs-xs) var(--font-body); letter-spacing: .06em; }
.lp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.lp-more { display: flex; justify-content: center; margin-top: 22px; }

/* Elementos: ciclo de vantagem (lido do motor de batalha) */
.lp-elements { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: center; }
.lp-cycle { position: relative; width: 100%; aspect-ratio: 1; }
.lp-cycle svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lp-cycle path { fill: none; stroke: #8a5a2b; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 3 3.2; animation: lp-dash 14s linear infinite; }
.lp-cycle polygon { fill: var(--brown); }
.lp-cycle__node {
  position: absolute; width: 23%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 35% 28%, #7a5730, #2c170a 72%);
  box-shadow: 0 0 0 2px #2c170a, 0 0 0 4px #e8b94a, 0 0 0 6px #2c170a, 0 6px 10px rgba(58, 28, 12, .4);
  transition: transform var(--dur-base) var(--ease-settle), box-shadow var(--dur-base) ease;
}
.lp-cycle__node img { width: 62%; height: 62%; object-fit: contain; }
.lp-cycle__node:hover, .lp-cycle__node.is-on { transform: translate(-50%, -50%) scale(1.14); box-shadow: 0 0 0 2px #2c170a, 0 0 0 4px var(--gold), 0 0 0 6px #2c170a, 0 0 22px rgba(255, 216, 106, .8); }
.lp-cycle__hub { position: absolute; left: 50%; top: 50%; width: 44%; transform: translate(-50%, -50%); text-align: center; color: var(--ink); }
.lp-cycle__hub b { display: block; font: 800 var(--fs-lg)/1.1 var(--font-title); }
.lp-cycle__hub span { display: block; margin-top: 4px; color: var(--brown); font: 800 var(--fs-xs) var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.lp-elements__copy p + p { margin-top: 8px; }
.lp-rule { display: grid; gap: 6px; margin-top: 12px; }
.lp-rule > span { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: rgba(107, 53, 24, .12); font: 800 var(--fs-sm) var(--font-body); color: var(--ink); }
.lp-rule img { width: 26px; height: 26px; }

/* História: arcos e territórios */
.lp-worldmap { margin: 0 0 20px; }
/* O mapa-múndi já tem moldura e nuvens próprias na arte: entra inteiro, na
   proporção dele (870×555), sem recorte e sem moldura extra por cima. */
.lp-worldmap img { width: min(100%, 870px); margin-inline: auto; border-radius: 6px; filter: drop-shadow(0 12px 16px rgba(4, 16, 26, .5)); }
.lp-arcs { display: grid; gap: 16px; }
.lp-arc__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 4px; }
.lp-arc__head p { flex: 1 1 100%; }
.lp-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 12px; }
/* Cenário de batalha do território: 800×480 (5:3), exibido em 5:3. */
.lp-place {
  position: relative; display: block; width: 100%; aspect-ratio: 5 / 3; padding: 0; overflow: hidden; cursor: pointer; text-align: left;
  border: 3px solid #2c170a; border-radius: 12px; background: #24160b;
  box-shadow: inset 0 0 0 2px #c8973f, 0 4px 0 #1d0f06, 0 8px 12px rgba(58, 28, 12, .35);
  transition: transform var(--dur-base) var(--ease-settle);
}
.lp-place img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-lazy) var(--ease-settle); }
.lp-place__label {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 1px; padding: 20px 9px 7px; background: linear-gradient(transparent, rgba(12, 6, 2, .92));
  color: var(--cream); font: 800 var(--fs-sm)/1.15 var(--font-body); text-shadow: 0 2px 0 #2c170a;
}
.lp-place__label small { color: var(--gold); font: 800 var(--fs-xs) var(--font-body); letter-spacing: .06em; text-shadow: none; }
.lp-place:hover { transform: translateY(-4px); }
.lp-place:hover img { transform: scale(1.08); }

/* Modos do servidor: lista compacta (ícone do evento, estado e horário). */
.lp-modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 12px; }
.lp-mode {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px;
  border: 2px solid #2c170a; border-radius: 8px 14px 10px 16px / 14px 8px 16px 10px;
  background:
    radial-gradient(circle at 9px 9px, #d9dde0 0 1.5px, #3a2a1a 2.5px 3.5px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), #d9dde0 0 1.5px, #3a2a1a 2.5px 3.5px, transparent 4.5px),
    repeating-linear-gradient(1deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 13px), linear-gradient(#83572c, #5a371b);
  box-shadow: inset 0 2px 0 rgba(255, 214, 150, .35), 0 4px 0 #1d0f06, 0 10px 14px rgba(4, 16, 26, .35);
  transition: rotate var(--dur-base) var(--ease-pop), translate var(--dur-base) var(--ease-settle);
}
.lp-mode:nth-child(3n+1) { rotate: -.7deg; }
.lp-mode:nth-child(3n+2) { rotate: .5deg; translate: 0 3px; }
.lp-mode:nth-child(3n) { rotate: -.3deg; }
.lp-mode:hover { rotate: 0deg; translate: 0 -4px; }
/* Ícone do evento: caixa quadrada, arte em `contain` e nunca maior que o arquivo. */
.lp-mode__icon { width: 44px; height: 44px; display: grid; place-items: center; }
.lp-mode__icon img { max-width: 100%; max-height: 100%; width: auto; height: auto; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .45)); }
.lp-mode h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--gold); font: 800 var(--fs-md)/1.1 var(--font-body); text-shadow: 0 2px 0 #2c170a; }
.lp-mode h3 .lp-chip { text-shadow: none; }
.lp-mode p { margin-top: 3px; color: #f6e2bb; font-size: var(--fs-sm); line-height: 1.4; }
.lp-mode small { display: block; margin-top: 3px; color: #e9cf9e; font-size: var(--fs-xs); opacity: .85; }

/* Notícias (publicadas pelo admin; /portal/news) */

/* De qual servidor são os dados (rankings, modos abertos). Com um servidor
   só é uma etiqueta; com vários, vira o seletor. */
.lp-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.lp-scope__label { color: var(--cream); font: 800 var(--fs-xs) var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.lp-panel .lp-scope__label { color: var(--ink-soft); }
.lp-scope__item {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 2px solid var(--surface-panel-stroke); border-radius: 999px; cursor: pointer;
  background: var(--surface-panel); color: var(--cream); font: 800 var(--fs-sm) var(--font-body);
}
.lp-scope__item[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.lp-scope__item:disabled { cursor: default; opacity: 1; }
.lp-scope__item i { width: 8px; height: 8px; border-radius: 50%; background: #a58a6a; }
.lp-scope__item i[data-state="online"] { background: #3fae3a; box-shadow: 0 0 8px #58d552; }
.lp-scope__item i[data-state="offline"] { background: #c63a2e; }
.lp-servers { display: grid; gap: 6px; }

/* Ranks */
.lp-tabs { display: flex; gap: 6px; margin: 0 0 14px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.lp-tabs::-webkit-scrollbar { display: none; }
.lp-tab {
  flex: 0 0 auto; min-height: 40px; padding: 0 16px; border: 2px solid #8a5a2b; border-radius: 999px; cursor: pointer;
  background: rgba(107, 53, 24, .1); color: var(--ink); font: 800 var(--fs-xs) var(--font-body); letter-spacing: .05em; text-transform: uppercase;
}
.lp-tab[aria-selected="true"] { background: var(--brown-deep); border-color: var(--brown-deep); color: var(--paper-light); }
.lp-tabpanel > p { margin-bottom: 12px; }
.lp-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.lp-tier { display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 12px; background: rgba(107, 53, 24, .1); text-align: center; }
.lp-tier__medal {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, #fff, var(--c) 46%, color-mix(in srgb, var(--c) 55%, #000));
  box-shadow: 0 0 0 3px #2c170a, 0 0 0 5px color-mix(in srgb, var(--c) 70%, #fff), 0 4px 0 5px rgba(58, 28, 12, .35);
  color: #2c170a; font: 800 var(--fs-lg) var(--font-title);
}
.lp-tier b { font: 800 var(--fs-sm) var(--font-body); color: var(--ink); }
.lp-tier span { color: var(--ink-soft); font: 800 var(--fs-xs) var(--font-body); }
.lp-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); color: var(--ink); }
.lp-table caption { padding: 14px 0 8px; text-align: left; font: 800 var(--fs-md) var(--font-body); color: var(--ink); }
.lp-table th { padding: 7px 8px; text-align: left; font: 800 var(--fs-xs) var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--brown); border-bottom: 2px solid rgba(107, 53, 24, .35); }
.lp-table td { padding: 8px; border-bottom: 1px dashed rgba(107, 53, 24, .28); font-weight: 700; }
.lp-table tr:last-child td { border-bottom: 0; }
.lp-table td.num, .lp-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.lp-table__scroll { overflow-x: auto; }
.lp-boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.lp-board h4 { margin-bottom: 6px; font: 800 var(--fs-md) var(--font-body); color: var(--ink); }
.lp-rank { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.lp-rank li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; background: rgba(107, 53, 24, .1); font: 700 var(--fs-sm) var(--font-body); color: var(--ink); }
.lp-rank li > i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #7a5a3c; color: var(--cream); font: 800 var(--fs-xs) var(--font-body); font-style: normal; }
.lp-rank li:nth-child(1) > i { background: #e2a81a; color: var(--ink); }
.lp-rank li:nth-child(2) > i { background: #b9bfc6; color: var(--ink); }
.lp-rank li:nth-child(3) > i { background: #c5803f; color: var(--ink); }
.lp-rank li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-rank li > b { color: var(--brown-deep); font: 800 var(--fs-xs) var(--font-body); white-space: nowrap; }
.lp-quality { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 14px 10px; }
.lp-quality figure { margin: 0; display: grid; gap: 8px; justify-items: center; }
.lp-quality .gc { cursor: default; pointer-events: none; }
.lp-quality figcaption { font: 800 var(--fs-xs) var(--font-body); color: var(--ink); }
.lp-honor { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.lp-honor li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: rgba(107, 53, 24, .1); }
.lp-honor b { font: 800 var(--fs-sm) var(--font-body); color: var(--ink); }
.lp-honor span { color: var(--ink-soft); font: 800 var(--fs-xs) var(--font-body); }
/* Ícone VIP do jogo: 33×33 px. Exibido no tamanho nativo, sem ampliar. */
.lp-vip { display: inline-flex; align-items: center; gap: 8px; }
.lp-vip img { width: 33px; height: 33px; image-rendering: pixelated; }

/* Recarga + suporte */
.lp-duo { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.lp-recharge { text-align: center; }
.lp-recharge img { width: 96px; margin: -4px auto 8px; filter: drop-shadow(0 5px 5px rgba(58, 28, 12, .4)); animation: lp-float 5s ease-in-out infinite; }
.lp-recharge p { margin: 8px 0 14px; }
.lp-faq { display: grid; gap: 8px; margin-top: 12px; }
.lp-faq__item { border-radius: 12px; background: rgba(107, 53, 24, .11); overflow: hidden; }
.lp-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 46px; padding: 8px 12px;
  border: 0; background: transparent; cursor: pointer; text-align: left; font: 800 var(--fs-sm)/1.25 var(--font-body); color: var(--ink);
}
.lp-faq__q::after { content: "+"; flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--brown-deep); color: var(--paper-light); font: 800 var(--fs-md)/1 var(--font-body); transition: transform var(--dur-base) var(--ease-settle); }
.lp-faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.lp-faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-base) var(--ease-settle); }
.lp-faq__a > div { overflow: hidden; }
.lp-faq__a p { padding: 0 12px 12px; }
.lp-faq__q[aria-expanded="true"] + .lp-faq__a { grid-template-rows: 1fr; }

/* Widgets da coluna lateral: cada aviso é o pergaminho de rolo do jogo
   (bg_papiro). Rolo, base rasgada e bordas ficam na escala natural (as fatias
   de 60/120/110 px viram 29/58/53 px, a mesma razão nos dois eixos); as
   beiradas de cima e de baixo se repetem em vez de esticar, e só o miolo
   liso cresce com o conteúdo. */
.lp-aside > .lp-panel {
  padding: 2px 8px 0; border: solid transparent; border-width: 58px 29px 53px; border-radius: 0; background: none; box-shadow: none;
  border-image: url('world/scroll.webp') 120 60 110 60 fill / 58px 29px 53px round stretch;
  filter: drop-shadow(0 9px 8px rgba(4, 16, 26, .42));
}
.lp-aside > .lp-panel:nth-child(odd) { rotate: -.9deg; }
.lp-aside > .lp-panel:nth-child(even) { rotate: .8deg; }

.lp-widget__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lp-widget__head img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(58, 28, 12, .4)); }
.lp-list { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.lp-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.4; }
.lp-list li::before { content: ""; width: 20px; height: 20px; margin-top: -1px; background: url('icons/star.webp') center / contain no-repeat; }
.lp-server { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(107, 53, 24, .12); }
.lp-server b { font: 800 var(--fs-sm) var(--font-body); color: var(--ink); }
.lp-status { display: inline-flex; align-items: center; gap: 6px; font: 800 var(--fs-xs) var(--font-body); letter-spacing: .08em; color: var(--ink-soft); }
.lp-status i { width: 9px; height: 9px; border-radius: 50%; background: #a58a6a; }
.lp-status[data-state="online"] { color: #2d7a2a; }
.lp-status[data-state="online"] i { background: #3fae3a; box-shadow: 0 0 8px #58d552; animation: lp-pulse 1.8s ease-in-out infinite; }
.lp-status[data-state="offline"] { color: #a3261c; }
.lp-status[data-state="offline"] i { background: #c63a2e; }

/* Rodapé: o chão do mundo. A grama é a do menu do jogo (ladrilho espelhado,
   na proporção); a terra continua na cor da própria arte. Em cima andam
   monstros do catálogo. */
.lp-foot { position: relative; margin-top: clamp(150px, 15vw, 200px); padding: 22px 0 26px; background: #39290f; color: #e9cf9e; }
.lp-ground { position: absolute; left: 0; right: 0; bottom: calc(100% - 10px); height: 84px; background: url('world/grass.webp') left bottom / auto 100% repeat-x; pointer-events: none; }
.lp-parade { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: space-around; align-items: flex-end; padding-inline: 4%; }
.lp-parade .lp-critter { width: 156px; height: 156px; margin: 0 -30px -36px; }
.lp-parade .lp-critter:nth-child(odd) { margin-bottom: -28px; }
.lp-foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lp-foot nav a { font: 800 var(--fs-xs) var(--font-body); letter-spacing: .05em; text-transform: uppercase; }
.lp-foot nav a:hover { color: var(--gold); }
.lp-foot small { display: block; margin-top: 12px; color: rgba(233, 207, 158, .7); font-size: var(--fs-xs); }

/* ══ MODAL — as 9 fatias do modal padrão do jogo (assets/ui/modal/1..9) ══
   A largura do modal define a escala (--k) de TODAS as fatias, então cantos,
   topo e base ficam no tamanho natural. Só a faixa do meio cresce na
   vertical, e nela apenas o trecho liso das laterais e o miolo de pergaminho
   são esticados (feitos para isso); os ornamentos ficam no tamanho natural. */
.lp-modal-layer {
  position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 12px;
  background: rgba(6, 14, 22, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: lp-fade var(--dur-base) ease both;
}
.gm {
  --w: min(560px, calc(100vw - 24px));
  --k: calc(var(--w) / 1562);            /* 1562 = 292 + 952 + 318 (px da arte) */
  position: relative; width: var(--w); height: min(calc(100dvh - 40px), 720px);
  display: grid; grid-template-columns: calc(292 * var(--k)) 1fr calc(318 * var(--k)); grid-template-rows: calc(297 * var(--k)) 1fr calc(313 * var(--k));
  color: var(--ink); filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .6));
  animation: lp-flip var(--dur-slow) var(--ease-settle) both;
}
.gm__s { background-repeat: no-repeat; background-size: 100% 100%; pointer-events: none; }
.gm__s--1 { background-image: url('modal/1.webp'); } .gm__s--2 { background-image: url('modal/2.webp'); } .gm__s--3 { background-image: url('modal/3.webp'); }
.gm__s--5 { background-image: url('modal/5.webp'); }
.gm__s--7 { background-image: url('modal/7.webp'); } .gm__s--8 { background-image: url('modal/8.webp'); } .gm__s--9 { background-image: url('modal/9.webp'); }
/* Laterais: o trecho liso estica; o ornamento do alto e o do pé entram por
   cima no tamanho natural, esfumados para dentro para o tom do pergaminho
   casar com o miolo. */
.gm__s--4, .gm__s--6 { position: relative; }
.gm__s--4 { background-image: url('modal/4-mid.webp'); }
.gm__s--6 { background-image: url('modal/6-mid.webp'); }
.gm__s--4::before, .gm__s--4::after, .gm__s--6::before, .gm__s--6::after {
  content: ""; position: absolute; left: 0; right: 0; background: center / 100% 100% no-repeat;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.gm__s--4::before, .gm__s--6::before { top: 0; aspect-ratio: 146 / 120; }
.gm__s--4::after, .gm__s--6::after { bottom: 0; aspect-ratio: 146 / 29; }
.gm__s--4::before { background-image: url('modal/4-top.webp'); -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent), linear-gradient(to right, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent), linear-gradient(to right, #000 62%, transparent); }
.gm__s--4::after { background-image: url('modal/4-foot.webp'); -webkit-mask-image: linear-gradient(to right, #000 62%, transparent); mask-image: linear-gradient(to right, #000 62%, transparent); }
.gm__s--6::before { aspect-ratio: 159 / 120; background-image: url('modal/6-top.webp'); -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent), linear-gradient(to left, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent), linear-gradient(to left, #000 62%, transparent); }
.gm__s--6::after { aspect-ratio: 159 / 29; background-image: url('modal/6-foot.webp'); -webkit-mask-image: linear-gradient(to left, #000 62%, transparent); mask-image: linear-gradient(to left, #000 62%, transparent); }
.gm__title {
  position: absolute; left: 14%; right: 14%; top: calc(100 * var(--k)); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center;
  font: 800 clamp(var(--fs-md), calc(64 * var(--k)), var(--fs-xl))/1.2 var(--font-title); color: var(--ink); text-shadow: 0 1px 0 rgba(255, 245, 214, .9);
}
.gm__close {
  position: absolute; right: calc(60 * var(--k)); top: calc(60 * var(--k)); width: 44px; height: 44px; padding: 6px; border: 0; background: transparent; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-settle);
}
.gm__close img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(58, 28, 12, .5)); }
.gm__close:hover { transform: scale(1.12) rotate(6deg); }
.gm__body {
  position: absolute; left: calc(150 * var(--k)); right: calc(150 * var(--k)); top: calc(220 * var(--k)); bottom: calc(292 * var(--k));
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b08a55 transparent;
  -webkit-user-select: text; user-select: text;
}
.gm__col { width: min(100%, 420px); margin-inline: auto; display: grid; gap: 12px; padding: 4px 4px 12px; }

/* Detalhe da carta — espelho do CardDetailModal (modo álbum) */
.gd__stage { position: relative; width: min(72%, 260px); margin-inline: auto; }
.gd__disc { width: 100%; aspect-ratio: 1057 / 1068; }
.gd__sprite { position: absolute; left: 50%; top: 50%; width: 78%; transform: translate(-50%, -52%); pointer-events: none; }
.gd__desc { color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.5; text-align: center; }
.gd__meta { display: flex; justify-content: center; align-items: center; gap: 8px; }
.gd__meta img { width: 26px; height: 26px; }
.gd__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 6px; padding: 12px 10px; border-radius: 10px; background: #c99a5a; }
.gd__stat { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 6px; align-items: center; }
.gd__stat img { grid-row: span 2; width: 28px; height: 28px; object-fit: contain; }
.gd__stat span { font: 800 var(--fs-xs) var(--font-body); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd__stat b { font: 800 var(--fs-md) var(--font-body); color: var(--ink); }
.gd__skills { display: grid; gap: 4px; }
.gd__skill { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 14px; padding: 8px 14px; border-radius: 8px; background: rgba(17, 19, 31, .72); }
.gd__skill.is-locked { opacity: .45; }
.gd__skill-icon { position: relative; grid-row: span 3; width: 56px; height: 56px; align-self: center; }
.gd__skill-icon img { width: 56px; height: 56px; object-fit: cover; }
.gd__skill.is-locked .gd__skill-icon img { filter: brightness(.4); }
.gd__skill-icon em { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); padding: 1px 3px; background: #000; color: #fff; font: 800 var(--fs-xs) var(--font-body); font-style: normal; white-space: nowrap; }
.gd__skill h4 { color: #f1c40f; font: 800 var(--fs-sm)/1.2 var(--font-body); -webkit-text-stroke: 2px #000; paint-order: stroke fill; }
.gd__skill.is-locked h4 { color: #888; }
.gd__skill p { color: #fff; font-size: var(--fs-xs); line-height: 1.35; }
.gd__skill small { display: flex; align-items: center; gap: 4px; color: #fff; font-size: var(--fs-xs); }
.gd__skill small img { width: 16px; height: 16px; object-fit: contain; }
.gd__note { color: var(--ink-soft); font-size: var(--fs-xs); text-align: center; }
.gd__foot { display: flex; justify-content: center; padding-top: 4px; }

/* Detalhe do território */
.gt__art { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; border: 3px solid #2c170a; border-radius: 10px; box-shadow: inset 0 0 0 2px #e8b94a; background: #24160b; }
.gt__desc { color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.5; }
.gt__h { font: 800 var(--fs-sm) var(--font-body); color: var(--ink); }
.gt__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px 8px; }

/* ── Telas da conta (login, registro, servidores, carregando) ─────────── */
.landing__portal {
  display: none; width: min(460px, calc(100% - 32px)); min-height: calc(100% - 96px); margin: 0 auto; padding: 26px 8px;
  place-content: center;
}
.landing:not([data-screen="home"]) .landing__portal { display: grid; }
.landing__portal-card {
  --portal-ink: #56351d; --portal-muted: #765735; --portal-accent: #915b24;
  position: relative; isolation: isolate; padding: clamp(24px, 5vw, 36px);
  border: 2px solid #95632f; border-radius: 16px 9px 18px 10px;
  background-color: #efd49e;
  background-image: radial-gradient(ellipse at 14% 18%, rgba(142, 86, 38, .17), transparent 38%), radial-gradient(ellipse at 86% 72%, rgba(255, 247, 218, .55), transparent 42%), repeating-linear-gradient(3deg, rgba(120, 77, 37, .045) 0 1px, transparent 1px 5px), linear-gradient(112deg, #e7c68c, #f5dfb2 43%, #efd39d 100%);
  box-shadow: inset 0 0 0 5px rgba(255, 245, 213, .28), inset 0 0 24px rgba(119, 74, 31, .17), 0 12px 30px rgba(4, 13, 20, .48), 0 0 22px rgba(255, 229, 178, .18);
  color: var(--portal-ink);
}
.landing__portal-card::before, .landing__portal-card::after {
  content: ""; position: absolute; z-index: -1; left: -7px; right: -7px; height: 15px; border: 1px solid #885723; border-radius: 50%;
  background: linear-gradient(180deg, #f7dfa9 0%, #d8ad6e 43%, #a36e36 62%, #ecc889 100%); box-shadow: 0 2px 4px rgba(69, 42, 17, .3);
}
.landing__portal-card::before { top: -6px; }
.landing__portal-card::after { bottom: -6px; }
.landing__portal-card:not([hidden]) { animation: lp-rise var(--dur-slow) var(--ease-settle) both; }
.landing__portal-kicker { margin: 0 0 7px; color: var(--portal-accent); font: 800 var(--fs-xs) var(--font-body); letter-spacing: .18em; text-align: center; text-transform: uppercase; }
.landing__portal-title { margin: 0; color: var(--portal-ink); font: 800 clamp(var(--fs-xl), 6vw, var(--fs-3xl))/1.1 var(--font-title); text-align: center; text-shadow: 0 1px rgba(255, 245, 218, .9), 0 2px rgba(124, 69, 29, .18); }
.landing__portal-copy { margin: 10px 0 22px; color: var(--portal-muted); font-size: var(--fs-sm); line-height: 1.5; text-align: center; }
.landing__portal-form { display: grid; gap: 13px; }
.landing__portal-field { display: grid; gap: 6px; color: var(--portal-muted); font: 700 var(--fs-xs) var(--font-body); }
.landing__portal-field input {
  width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #a27845; border-radius: 9px; outline: none;
  background: linear-gradient(#fff7e4, #ead3a5); box-shadow: inset 0 2px 5px rgba(73, 45, 23, .15); color: #332216; font: 600 var(--fs-md) var(--font-body);
  -webkit-user-select: text; user-select: text;
}
.landing__portal-field input:focus { border-color: #b47a32; box-shadow: 0 0 0 3px rgba(180, 122, 50, .18), inset 0 2px 5px rgba(73, 45, 23, .1); }
.landing__portal-submit {
  min-height: 48px; margin-top: 7px; border: 2px solid #78400f; border-radius: 13px; background: linear-gradient(#fff15c, #f7a916);
  box-shadow: inset 0 2px rgba(255, 255, 255, .65), 0 4px #713915, 0 8px 14px rgba(0, 0, 0, .28); color: #673712; cursor: pointer; font: 800 var(--fs-md) var(--font-body); text-transform: uppercase;
}
.landing__portal-submit:hover:not(:disabled), .landing__portal-submit:focus-visible { filter: brightness(1.07); transform: translateY(-1px); }
.landing__portal-submit:disabled { cursor: wait; opacity: .74; }
.landing__portal-submit[data-busy="true"] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.landing__portal-submit[data-busy="true"]::after { content: ""; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: lp-spin .72s linear infinite; }
.landing__portal-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-top: 18px; }
.landing__portal-link { border: 0; border-bottom: 1px solid rgba(145, 91, 36, .5); padding: 3px 1px; background: transparent; color: var(--portal-accent); cursor: pointer; font: 700 var(--fs-sm) var(--font-body); }
.landing__portal-link:hover, .landing__portal-link:focus-visible { color: var(--portal-ink); border-color: currentColor; }
.landing__portal-message { min-height: 18px; margin: 1px 0 0; color: #8e3326; font: 600 var(--fs-xs)/1.4 var(--font-body); text-align: center; }
.landing__portal-message[data-state="success"] { color: #38652b; }
.landing__server-list { display: grid; gap: 12px; }
.landing__server-card {
  width: 100%; min-height: 78px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; padding: 12px;
  border: 1px solid rgba(118, 75, 34, .7); border-radius: 12px; background: linear-gradient(115deg, rgba(64, 45, 29, .94), rgba(37, 42, 37, .96)); color: #fff0c5; cursor: pointer; text-align: left;
  transition: transform var(--dur-base) ease, border-color var(--dur-base) ease, background var(--dur-base) ease;
}
.landing__server-card:hover:not(:disabled), .landing__server-card:focus-visible { transform: translateY(-2px); border-color: #f4d18f; background: linear-gradient(115deg, rgba(91, 59, 31, .99), rgba(39, 53, 42, .99)); box-shadow: inset 0 1px rgba(255, 240, 190, .18), 0 6px 14px rgba(68, 39, 17, .24); }
.landing__server-card:disabled { cursor: default; opacity: .8; }
.landing__server-orb { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(244, 209, 143, .72); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff0bd, #c17d37 52%, #5b311b); box-shadow: 0 0 14px rgba(241, 191, 97, .23); }
.landing__server-orb span { width: 11px; height: 11px; border-radius: 50%; background: #8bd675; box-shadow: 0 0 10px #83f078; }
.landing__server-copy { display: grid; gap: 5px; min-width: 0; }
.landing__server-copy strong { overflow: hidden; color: #fff0c5; font: 800 var(--fs-sm) var(--font-body); text-overflow: ellipsis; white-space: nowrap; }
.landing__server-copy small { color: var(--soft); font: 500 var(--fs-xs) var(--font-body); }
.landing__server-status { display: flex; align-items: center; gap: 5px; color: #b9e4a5; font: 800 var(--fs-xs) var(--font-body); letter-spacing: .05em; }
.landing__server-status i { width: 7px; height: 7px; border-radius: 50%; background: #8bd675; box-shadow: 0 0 7px #83f078; }
.landing__server-arrow { color: #f1cf93; font: 700 var(--fs-2xl)/1 var(--font-title); }
.landing__loading { display: grid; justify-items: center; gap: 14px; text-align: center; }
.landing__loading-orb { position: relative; width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(118, 75, 34, .38); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff0bd, #c17d37 52%, #5b311b); box-shadow: 0 0 22px rgba(164, 103, 45, .28); }
.landing__loading-orb::after { content: ""; position: absolute; inset: -7px; border: 2px solid transparent; border-top-color: #8b541f; border-right-color: rgba(139, 84, 31, .3); border-radius: 50%; animation: lp-spin .9s linear infinite; }
.landing__loading-title { color: var(--portal-ink); font: 800 var(--fs-lg) var(--font-title); }
.landing__loading-copy { color: var(--portal-muted); font-size: var(--fs-sm); }
.landing__progress { width: 100%; height: 12px; overflow: hidden; border: 1px solid #95632f; border-radius: 999px; background: rgba(82, 52, 26, .18); box-shadow: inset 0 2px 4px rgba(69, 42, 17, .18); }
.landing__progress-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9d6425, #f0c45a, #fff0b2); box-shadow: 0 0 10px rgba(187, 130, 47, .58); transition: width var(--dur-base) ease-out; }
.landing__loading[data-indeterminate="true"] .landing__progress-fill { width: 35%; animation: lp-sweep 1.25s ease-in-out infinite alternate; }

/* Enquanto o jogo carrega, a navegação do portal fica travada. */
.landing[data-screen="loading"] .lp-top__links, .landing[data-screen="loading"] .lp-top__actions > :not(.lp-hello), .landing[data-screen="loading"] .lp-rail__nav { pointer-events: none; opacity: .45; }

/* ── Barra inferior (celular): o trilho vira abas com rótulo ──────────── */
.lp-tabbar { display: none; }

/* ── Movimento ────────────────────────────────────────────────────────── */
.lp-reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--dur-lazy) ease, transform var(--dur-lazy) var(--ease-settle); }
.lp-reveal.is-in { opacity: 1; transform: none; }
@keyframes lp-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lp-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes lp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lp-flip { from { opacity: 0; transform: perspective(1200px) rotateY(-70deg) scale(.86); } to { opacity: 1; transform: perspective(1200px) rotateY(0) scale(1); } }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes lp-dash { to { stroke-dashoffset: -62; } }
@keyframes lp-pulse { 50% { opacity: .45; } }
@keyframes lp-sway { 0%, 100% { transform: rotate(-.7deg); } 50% { transform: rotate(.7deg); } }
@keyframes lp-drift { to { transform: translateX(360%); } }
@keyframes lp-firefly { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .9; } 50% { transform: translate(26px, -52vh); opacity: .5; } 88% { opacity: .9; } 100% { transform: translate(-18px, -108vh); opacity: 0; } }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@keyframes lp-sweep { from { transform: translateX(-8%); } to { transform: translateX(205%); } }
@keyframes gc-glow { to { background-position-y: 120%; } }

/* ── Responsividade ───────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .lp-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-aside { display: contents; }
  .lp-aside > * { order: 2; }
  .lp-top__links { display: none; }
  .lp-aside > .lp-panel { rotate: 0deg; }
}
@media (max-width: 900px) {
  .landing { --rail-w: 0px; grid-template-columns: minmax(0, 1fr); }
  .lp-rail { display: none; }
  .lp-shell { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .lp-top__bar::before, .lp-top__bar::after { top: -20px; width: min(42%, 190px); }
  .lp-top__bar::before { left: -12px; }
  .lp-top__bar::after { right: -12px; }
  .lp-stage { grid-template-columns: minmax(0, 1fr); gap: 74px; margin-top: 96px; }
  .lp-slider { aspect-ratio: 4 / 3; max-height: none; }
  .lp-slider::before { left: 14%; right: 14%; }
  .lp-slide__art { bottom: auto; top: -15%; width: 112%; }
  .lp-slide__copy { left: 4%; right: 4%; width: auto; bottom: -30px; padding: 14px 14px 12px; }
  .lp-slider__arrow { display: none; }
  .lp-slider__dots { right: 50%; transform: translateX(50%); bottom: auto; top: 22px; }
  .lp-parade .lp-critter:nth-child(n+5) { display: none; }
  .lp-parade .lp-critter { width: 120px; height: 120px; margin: 0 -24px -26px; }
  .lp-duo, .lp-elements { grid-template-columns: minmax(0, 1fr); }
  .lp-cycle { width: min(300px, 82%); margin-inline: auto; }
  .lp-tabbar {
    position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .1) 0 1px, transparent 1px 34px), linear-gradient(#7d5027, #3b2110);
    border-top: 3px solid #1d0f06; box-shadow: inset 0 3px 0 rgba(255, 216, 106, .32), 0 -8px 18px rgba(5, 15, 22, .35);
  }
  .lp-tabbar .lp-nav { padding: 4px 2px 2px; font-size: var(--fs-xs); text-shadow: none; color: #e9cf9e; }
  .lp-tabbar .lp-nav__ring { width: 40px; height: 40px; }
  .lp-tabbar .lp-nav--play .lp-nav__ring { width: 54px; height: 54px; margin-top: -22px; background: radial-gradient(circle at 35% 28%, #fff1a8, #f2a71b 62%, #a65a10); color: #5a2b08; box-shadow: inset 0 0 0 2px #7c3e0e, 0 0 0 3px #ffe9a3, 0 0 0 6px #2c170a, 0 0 18px rgba(255, 216, 106, .6); }
  .lp-tabbar .lp-nav--play svg { width: 26px; height: 26px; }
  .lp-tabbar .lp-nav--play { color: var(--gold); }
}
@media (max-width: 720px) {
  .lp-steps { grid-template-columns: minmax(0, 1fr); gap: 54px; }
  .lp-top__bar { min-height: 54px; padding: 6px 8px 6px 12px; gap: 8px; grid-template-columns: auto minmax(0, 1fr); }
  .lp-top__bar > .lp-brand { grid-column: 1; margin: -2px 0 -24px 4px; padding: 9px 14px 11px; font-size: var(--fs-lg); }
  .lp-top__bar > .lp-brand::after { display: none; }
  .lp-top__actions { grid-column: 2; }
  .lp-hello, .lp-top__actions .lp-btn--ghost { display: none; }
  .lp-lang__btn { padding: 0 10px; }
  .lp-lang__btn span { display: none; }
  .lp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .lp-count { flex: 1 1 100%; margin-left: 0; }
  .lp-search { max-width: none; }
  .lp-modes { grid-template-columns: minmax(0, 1fr); }
  .lp-panel { padding: 14px; }
  .gd__stats { gap: 10px 2px; padding: 10px 6px; }
  .gd__stat { grid-template-columns: 22px minmax(0, 1fr); gap: 0 4px; }
  .gd__stat img { width: 22px; height: 22px; }
  .gd__stat b { font-size: var(--fs-sm); }
  .lp-foot__row { justify-content: center; text-align: center; }
  .lp-foot small { text-align: center; }
  .landing__portal { width: min(440px, calc(100% - 30px)); }
  .landing__portal-card { padding: 25px 20px; }
}
@media (max-width: 380px) {
  .lp-tabbar .lp-nav { font-size: var(--fs-xs); letter-spacing: 0; }
  .lp-places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .landing *, .landing *::before, .landing *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .lp-reveal { opacity: 1; transform: none; }
  .lp-shell { scroll-behavior: auto; }
}
