/* Hotsite do Ashiru · "Noite de Basma"
   Tokens tirados do jogo (design_tokens.g.dart e logo_mark.svg):
   violeta-noite do cabeçalho, magenta do logo, dourado dos botões,
   contorno preto e sombra dura do Figma. A faixa diagonal das seções
   repete a faixa preta das cartas. */

@font-face {
  font-family: "Lilita One";
  src: url("/assets/fonts/lilita-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lilita One";
  src: url("/assets/fonts/lilita-one-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --night: #12021f;
  --night-2: #1c0430;
  --plum: #2b0a48;
  --plum-2: #3d0f63;
  --magenta: #f634b8;
  --magenta-deep: #9c0f70;
  --gold: #fce155;
  --gold-shade: #efbd22;
  --mint: #07f9bf;
  --ink: #000;
  --text: #fff;
  --text-soft: #eadff5;
  --text-mute: #c4b0da;
  --danger: #ff8a95;

  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 12px;
  --border: 3px solid var(--ink);
  --shadow-hard: 0 6px 0 var(--ink);
  --slant: clamp(28px, 5vw, 72px);
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 40px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* z-index semântico */
  --z-raised: 1;
  --z-sticky: 20;
  --z-skip: 40;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text-soft);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: var(--z-skip);
  background: var(--gold); color: var(--ink); padding: 10px 16px;
  border: var(--border); border-radius: var(--radius); font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }

/* Títulos no estilo do jogo: Lilita branca, contorno preto e sombra dura. */
.display {
  font-family: var(--display);
  font-weight: 400;
  color: var(--text);
  font-size: clamp(2.5rem, 1.4rem + 4.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
  -webkit-text-stroke: 0.075em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.07em 0 var(--ink);
}
.display--md { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }

/* Botões: borda preta, sombra dura e afundam ao toque. */
.btn {
  --btn-bg: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 26px;
  font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  background: var(--btn-bg);
  border: var(--border); border-radius: var(--radius);
  box-shadow: inset 0 -5px 0 var(--gold-shade), 0 5px 0 var(--ink);
  cursor: pointer;
  transition: translate 120ms var(--ease-out), box-shadow 120ms var(--ease-out), filter 160ms;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { translate: 0 3px; box-shadow: inset 0 -3px 0 var(--gold-shade), 0 2px 0 var(--ink); }
.btn[disabled] { cursor: progress; filter: saturate(0.6) brightness(0.92); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 1.05rem; box-shadow: inset 0 -4px 0 var(--gold-shade), 0 4px 0 var(--ink); }

/* ── Barra do topo ─────────────────────────────────────────────── */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: var(--z-sticky);
  transition: background-color 240ms, box-shadow 240ms;
}
.topbar.is-solid { background: rgb(18 2 31 / 0.94); box-shadow: 0 3px 0 var(--ink); }
.topbar__inner {
  width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto;
  display: flex; align-items: center; gap: 24px; min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 29px; height: 40px; }
.brand__word {
  font-family: var(--display); font-size: 1.75rem; color: var(--text); line-height: 1;
  -webkit-text-stroke: 0.08em var(--ink); paint-order: stroke fill; text-shadow: 0 0.08em 0 var(--ink);
}
.topnav { display: flex; gap: 26px; margin-left: auto; }
.topnav a { color: var(--text-soft); text-decoration: none; font-weight: 800; font-size: 0.98rem; }
.topnav a:hover { color: var(--gold); }
@media (max-width: 760px) {
  .topnav { display: none; }
  .topbar .btn { margin-left: auto; }
}

/* ── Abertura ──────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  padding: 0 0 clamp(40px, 6vw, 72px);
  background: var(--night);
}
/* A 404 ainda usa a aura e o miolo antigos. */
.hero__aura {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 72% 46%, rgb(246 52 184 / 0.42), transparent 70%),
    radial-gradient(90% 70% at 15% 10%, var(--plum), transparent 70%),
    var(--night);
}
.lost { min-height: 100svh; display: grid; align-items: center; padding-top: 112px; }
.hero__banner { position: relative; }
.hero__banner img {
  width: 100%; height: auto; max-height: min(78svh, 820px);
  object-fit: cover; object-position: 50% 40%;
}
/* o menu do topo fica legível sobre a arte */
.hero__banner::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 120px; z-index: 1;
  background: linear-gradient(to bottom, rgb(18 2 31 / 0.85), transparent);
  pointer-events: none;
}
.hero__panel .display { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.9rem); }
/* a arte se funde na noite embaixo */
.hero__banner::after {
  content: ""; position: absolute; inset: auto 0 0; height: 38%;
  background: linear-gradient(to bottom, transparent, var(--night));
  pointer-events: none;
}
.hero__panel {
  position: relative; z-index: 1;
  margin-top: clamp(-170px, -10vw, -40px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: end;
}
.hero__panel .signup { max-width: none; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-weight: 800; font-size: 0.95rem; color: var(--text);
  background: rgb(0 0 0 / 0.45); border: 2px solid rgb(255 255 255 / 0.18);
  padding: 6px 14px; border-radius: 999px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgb(7 249 191 / 0.22); }
.hero__lede { max-width: 34rem; margin: 18px 0 0; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--text-soft); text-wrap: pretty; }

/* ── Formulário de inscrição ───────────────────────────────────── */
.signup { max-width: 34rem; }
.signup__label { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--text); margin-bottom: 10px; }
.signup__row { display: flex; gap: 12px; flex-wrap: wrap; }
.signup__input {
  flex: 1 1 240px; min-width: 0; min-height: 56px; padding: 0 18px;
  font-size: 1.05rem; font-weight: 700; color: var(--ink);
  background: #fff; border: var(--border); border-radius: var(--radius);
  box-shadow: inset 0 4px 0 rgb(0 0 0 / 0.08);
}
.signup__input::placeholder { color: #6b5a7d; font-weight: 600; }
.signup__input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgb(255 138 149 / 0.35); }
.signup__hint { margin: 10px 0 0; font-size: 0.95rem; color: var(--text-mute); }
.signup__error { margin: 10px 0 0; font-weight: 800; color: var(--danger); }
.signup__extras { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 16px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.95rem; color: var(--text-soft); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--gold); }
.signup__legal { margin: 14px 0 0; font-size: 0.88rem; color: var(--text-mute); }
.signup__legal a { color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup__done {
  padding: 22px 24px; border: var(--border); border-radius: var(--radius);
  background: var(--mint); color: var(--ink); box-shadow: var(--shadow-hard);
  animation: pop 520ms var(--ease-out-expo) both;
}
.signup__done p { margin: 0; font-weight: 700; }
.signup__done-title { font-family: var(--display); font-size: 1.6rem; margin-bottom: 6px !important; font-weight: 400 !important; }
.signup__done:focus { outline: none; }
@keyframes pop { from { scale: 0.94; opacity: 0; } }

/* ── Seções com a faixa diagonal das cartas ────────────────────── */
.howto, .duel, .forces, .stars, .journey, .news, .closed {
  position: relative; overflow: clip; margin-top: calc(-1 * var(--slant));
  padding: calc(var(--slant) + clamp(56px, 8vw, 110px)) 0 calc(var(--slant) + clamp(56px, 7vw, 96px));
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
.howto { background: var(--night-2); z-index: 1; }
.duel { z-index: 2; }
.forces { z-index: 3; }
.stars { z-index: 4; }
.journey { z-index: 5; }
.news { background: var(--night); z-index: 6; }
.closed { background: var(--magenta-deep); z-index: 7; }
/* a borda preta da faixa */
.howto::before, .duel::before, .forces::before, .stars::before, .journey::before, .news::before, .closed::before {
  content: ""; position: absolute; inset: 0 0 auto; height: calc(var(--slant) + 10px);
  background: var(--ink);
  clip-path: polygon(0 var(--slant), 100% 0, 100% 10px, 0 calc(var(--slant) + 10px));
}

/* ── Como se joga ──────────────────────────────────────────────── */
.howto__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.howto__lede { margin: 18px 0 0; max-width: 36rem; color: var(--text); font-size: 1.12rem; text-wrap: pretty; }
.perks { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 24px; }
.perk { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.perk h3 { margin: 2px 0 6px; font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--text); line-height: 1.1; }
.perk p { margin: 0; max-width: 34rem; text-wrap: pretty; }
/* o selo de estágio das cartas: quadrado branco, sinal preto */
.perk__badge {
  display: grid; place-items: center; width: 52px; height: 52px;
  font-family: var(--display); font-size: 1.45rem; color: var(--ink);
  background: var(--gold); border: var(--border); border-radius: 10px; box-shadow: 0 4px 0 var(--ink);
}
.upgrade { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.05fr); align-items: center; gap: clamp(10px, 2vw, 22px); }
.upgrade__copies { position: relative; aspect-ratio: 600 / 854; }
.upgrade__copies img { position: absolute; inset: 0; width: 100%; height: auto; filter: drop-shadow(0 8px 0 rgb(0 0 0 / 0.5)); }
.upgrade__copies img:nth-child(1) { transform: translate(-14%, 6%) rotate(-10deg) scale(0.9); }
.upgrade__copies img:nth-child(2) { transform: translate(-6%, 3%) rotate(-4deg) scale(0.95); }
.upgrade__arrow { font-family: var(--display); font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); color: var(--gold); -webkit-text-stroke: 0.06em var(--ink); paint-order: stroke fill; }
.upgrade__result { width: 100%; height: auto; filter: drop-shadow(0 10px 0 rgb(0 0 0 / 0.55)) drop-shadow(0 0 24px rgb(252 225 85 / 0.45)); animation: upgrade-glow 2.6s ease-in-out infinite alternate; }
@keyframes upgrade-glow { to { transform: translateY(-6px) scale(1.02); } }

.evo { display: grid; justify-items: center; gap: 18px; }
.evo__stage { position: relative; width: min(100%, 300px); }
.evo__stage::before {
  content: ""; position: absolute; inset: 8% -14%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 106 43 / 0.55), transparent);
  transition: opacity 400ms;
}
.evo__img { border: var(--border); border-radius: 16px; box-shadow: 0 12px 0 rgb(0 0 0 / 0.6); background: #f1eee8; }
.evo__img.is-evolving { animation: evolve 620ms var(--ease-out-expo); }
@keyframes evolve {
  0% { scale: 0.9; filter: brightness(2.4) saturate(0.2); }
  40% { filter: brightness(1.5); }
  100% { scale: 1; filter: none; }
}
.evo__controls { display: inline-flex; gap: 6px; padding: 6px; background: rgb(0 0 0 / 0.45); border-radius: 999px; }
.evo__btn {
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font-family: var(--display); font-size: 1.05rem; color: var(--text-soft);
  background: transparent; border: 2px solid transparent;
  transition: background-color 160ms, color 160ms;
}
.evo__btn:hover { color: var(--text); }
.evo__btn[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--ink); }
.evo__caption { margin: 0; color: var(--text-mute); font-size: 0.95rem; }

/* ── Cinco forças: a seção inteira veste a cor da aba ──────────── */
.forces {
  --el: #94db00; --el-deep: #123300;
  background:
    radial-gradient(70% 60% at 80% 70%, color-mix(in srgb, var(--el) 38%, transparent), transparent 70%),
    var(--el-deep);
  transition: background-color 500ms;
}
.forces[data-element="fogo"] { --el: #ff6a2b; --el-deep: #420d00; }
.forces[data-element="agua"] { --el: #22b5ff; --el-deep: #002a4d; }
.forces[data-element="terra"] { --el: #e0a050; --el-deep: #3a1f04; }
.forces[data-element="eletrico"] { --el: #fce155; --el-deep: #3a2d00; }
.forces__head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.forces__lore + .forces__lore, .cycle + .forces__lore { margin-top: 18px; }
.forces__head .display { margin-bottom: 18px; }
.cycle { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; }
.cycle li { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 1.05rem; color: var(--text); }
.cycle li img { width: 40px; height: auto; filter: drop-shadow(0 3px 0 rgb(0 0 0 / 0.5)); }
.cycle li::after { content: "›"; margin: 0 6px 0 4px; font-size: 1.6rem; color: var(--gold); }
.cycle li:last-child::after { content: "↺"; font-size: 1.3rem; }
.forces__lore { margin: 0; color: var(--text); max-width: 34rem; text-wrap: pretty; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 44px 0 34px; }
.tab {
  min-height: 48px; padding: 0 22px; cursor: pointer; border-radius: 999px;
  font-family: var(--display); font-size: 1.15rem; color: var(--text);
  background: rgb(0 0 0 / 0.35); border: 3px solid rgb(0 0 0 / 0.6);
  transition: background-color 160ms, color 160ms, translate 120ms;
}
.tab:hover { background: rgb(0 0 0 / 0.55); }
.tab[aria-selected="true"] { background: var(--el); color: var(--ink); border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.roster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); perspective: 1200px; }
.roster__card { margin: 0; }
.roster__card:nth-child(even) { translate: 0 28px; }
.roster.is-dealing .roster__card { animation: flip-in 640ms var(--ease-out-expo) both; animation-delay: calc(var(--n, 0) * 70ms); }
@keyframes flip-in { from { transform: rotateY(-80deg) scale(0.92); opacity: 0; } }

/* ── Notícias ──────────────────────────────────────────────────── */
.news__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; margin-top: 40px; align-items: start; }
.news__list { display: grid; gap: 14px; }
.news-item {
  display: grid; width: 100%; text-align: left; cursor: pointer; padding: 0; color: inherit;
  background: var(--plum); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-hard); overflow: hidden;
  transition: translate 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.news-item:hover { translate: 0 -3px; box-shadow: 0 9px 0 var(--ink); }
.news-item:active { translate: 0 3px; box-shadow: 0 3px 0 var(--ink); }
.news-item__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--plum-2); }
.news-item__body { padding: 18px 20px 20px; }
.news-item__date { margin: 0 0 4px; font-size: 0.85rem; font-weight: 800; color: var(--gold); }
.news-item__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.3rem; line-height: 1.15; color: var(--text); }
.news-item__excerpt { margin: 8px 0 0; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-item--featured .news-item__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.news-item--row:has(.news-item__img) { grid-template-columns: 132px 1fr; align-items: center; }
.news-item--row .news-item__img { height: 100%; aspect-ratio: auto; min-height: 92px; }
.news-item--row .news-item__body { padding: 12px 16px; }
.news-item--row .news-item__title { font-size: 1.1rem; }

.reader {
  width: min(100% - 32px, 720px); max-height: min(88svh, 900px); padding: 0;
  color: var(--text-soft); background: var(--night-2);
  border: var(--border); border-radius: 16px; box-shadow: 0 10px 0 var(--ink);
}
.reader::backdrop { background: rgb(8 0 16 / 0.78); }
.reader[open] { animation: pop 420ms var(--ease-out-expo); }
.reader__body { position: relative; padding: 0 0 28px; }
.reader__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: var(--border); }
.reader__date { margin: 22px 28px 4px; font-weight: 800; color: var(--gold); font-size: 0.9rem; }
.reader__title { margin: 0 28px; font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); line-height: 1.1; color: var(--text); text-wrap: balance; }
.reader__text { margin: 14px 28px 0; max-width: 65ch; }
.reader__text p { margin: 0 0 1em; text-wrap: pretty; }
.reader__close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--ink); background: var(--text);
  border: var(--border); border-radius: 10px; box-shadow: 0 3px 0 var(--ink);
}

/* ── Teste fechado ─────────────────────────────────────────────── */
.closed {
  background:
    radial-gradient(60% 70% at 85% 30%, rgb(246 52 184 / 0.55), transparent 70%),
    var(--magenta-deep);
}
.closed__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.closed__steps { counter-reset: s; list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 16px; }
.closed__steps li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; color: var(--text); font-size: 1.08rem; }
.closed__steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px;
  font-family: var(--display); font-size: 1.35rem; color: var(--ink);
  background: var(--gold); border: var(--border); border-radius: 9px; box-shadow: 0 3px 0 var(--ink);
}
.closed__steps strong { font-weight: 800; }
.faq { margin: 34px 0 0; display: grid; gap: 14px; }
.faq dt { font-weight: 800; color: var(--text); }
.faq dd { margin: 2px 0 0; color: #f6dcef; }
.signup--panel {
  max-width: none; padding: clamp(22px, 3vw, 34px);
  background: var(--night); border: var(--border); border-radius: 16px; box-shadow: 0 10px 0 var(--ink);
}

/* ── Rodapé ────────────────────────────────────────────────────── */
.footer { position: relative; z-index: 8; background: var(--ink); padding: 48px 0 40px; color: var(--text-mute); font-size: 0.95rem; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__links a { color: var(--text-soft); }
.footer__legal { grid-column: 1 / -1; margin: 0; }
.social { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.social__title { margin: 0; font-weight: 800; color: var(--text); }
.social__list { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.social__list a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  color: var(--text); text-decoration: none; font-weight: 800;
  border: 2px solid rgb(255 255 255 / 0.25); border-radius: 999px;
  transition: background-color 160ms, color 160ms, border-color 160ms;
}
.social__list a:hover { background: var(--text); color: var(--ink); border-color: var(--text); }
.social__list svg { width: 20px; height: 20px; }

/* ── Faixa dos elementos (fila infinita) ───────────────────────── */
.marquee {
  position: relative; z-index: 0; overflow: hidden;
  background: var(--ink);
  padding: 22px 0 calc(var(--slant) + 22px);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; gap: clamp(28px, 4vw, 56px); margin: 0; padding: 0 clamp(14px, 2vw, 28px); list-style: none; }
.marquee__item { display: flex; align-items: center; gap: 12px; }
.marquee__item img { width: clamp(52px, 5vw, 68px); height: auto; filter: drop-shadow(0 4px 0 rgb(0 0 0 / 0.6)); }
.marquee__item span {
  font-family: var(--display); font-size: clamp(1.2rem, 1rem + 0.8vw, 1.7rem); color: var(--text);
  -webkit-text-stroke: 0.07em var(--ink); paint-order: stroke fill;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Mesa do duelo ─────────────────────────────────────────────── */
.duel {
  background:
    radial-gradient(55% 60% at 22% 50%, rgb(246 52 184 / 0.32), transparent 70%),
    var(--plum);
}
.duel__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.duel__screen { display: grid; justify-items: center; perspective: 1400px; }
.duel__phone {
  width: min(100%, 340px); padding: 10px;
  background: #0b0b10; border: 3px solid var(--ink); border-radius: 40px;
  box-shadow: 0 14px 0 var(--ink), 0 0 0 2px rgb(255 255 255 / 0.08) inset;
  transform: rotateY(12deg) rotateZ(-3deg);
  transition: transform 600ms var(--ease-out);
}
.duel__phone:hover { transform: rotateY(0deg) rotateZ(0deg); }
.duel__video { display: block; border-radius: 30px; width: 100%; height: auto; background: var(--plum-2); }
.duel__lede { margin: 18px 0 0; max-width: 34rem; color: var(--text-soft); text-wrap: pretty; }
.duel__beats { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.duel__beats li { display: grid; gap: 2px; max-width: 34rem; color: var(--text-soft); }
.duel__beats strong { font-family: var(--display); font-weight: 400; font-size: 1.4rem; color: var(--gold); line-height: 1.1; }

/* ── Cinco estrelas: camadas (carta, arte com paralaxe, brilho) ──── */
@property --rx { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --ry { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --tx { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --ty { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --gx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --gy { syntax: "<percentage>"; inherits: true; initial-value: 30%; }
.stars {
  background:
    radial-gradient(60% 55% at 50% 60%, rgb(252 225 85 / 0.22), transparent 70%),
    #241600;
}
.stars__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.stars__lede { margin: 0; color: var(--text); max-width: 34rem; text-wrap: pretty; }
.holo-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); perspective: 1100px; }
.holo { margin: 0; display: grid; gap: 14px; }
.holo__card {
  /* posição da arte na janela (medida na máscara pelo build_site_assets.py) */
  --art-left: 3.00%; --art-top: 1.94%; --art-width: 94.00%;
  position: relative; border-radius: 6% / 4.2%;
  transform: rotateX(var(--ry)) rotateY(var(--rx));
  transform-style: preserve-3d;
  animation: holo-sway 7s ease-in-out infinite alternate;
  touch-action: pan-y;
  filter: drop-shadow(0 12px 0 rgb(0 0 0 / 0.55));
}
.holo:nth-child(2) .holo__card { animation-delay: -1.4s; }
.holo:nth-child(3) .holo__card { animation-delay: -2.8s; }
.holo:nth-child(4) .holo__card { animation-delay: -4.2s; }
.holo:nth-child(5) .holo__card { animation-delay: -5.6s; }
.holo.is-active .holo__card { animation: none; transition: transform 80ms linear; }
.holo__base { display: block; width: 100%; height: auto; }
/* a arte solta, recortada pela janela da carta, corre contra a inclinação */
.holo__art {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.holo__art img {
  position: absolute; left: var(--art-left); top: var(--art-top); width: var(--art-width); max-width: none; height: auto;
  transform: translate(calc(var(--tx) * -4%), calc(var(--ty) * -4%)) scale(1.1);
}
.holo--s1 .holo__art { display: none; }
.holo--s1 .holo__art, .holo--s1 .holo__card { --tx: 0; --ty: 0; }
.holo--s2 .holo__art { -webkit-mask-image: url("/assets/img/stars/rayardo-2-mask.png"); mask-image: url("/assets/img/stars/rayardo-2-mask.png"); }
.holo--s3 .holo__art { -webkit-mask-image: url("/assets/img/stars/rayardo-3-mask.png"); mask-image: url("/assets/img/stars/rayardo-3-mask.png"); }
.holo--s4 .holo__art { -webkit-mask-image: url("/assets/img/stars/rayardo-4-mask.png"); mask-image: url("/assets/img/stars/rayardo-4-mask.png"); }
.holo--s5 .holo__art { -webkit-mask-image: url("/assets/img/stars/rayardo-5-mask.png"); mask-image: url("/assets/img/stars/rayardo-5-mask.png"); }
.holo__foil, .holo__glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
/* película holográfica: só na ★4 e na ★5 */
.holo__foil {
  display: none;
  background: linear-gradient(115deg,
    transparent 18%, rgb(255 0 170 / 0.55) 32%, rgb(0 230 255 / 0.55) 44%,
    rgb(255 236 0 / 0.55) 56%, rgb(150 255 120 / 0.5) 66%, transparent 82%);
  background-size: 260% 260%;
  background-position: var(--gx) var(--gy);
  mix-blend-mode: color-dodge; opacity: 0.3;
}
.holo--s4 .holo__foil, .holo--s5 .holo__foil { display: block; }
.holo__glare {
  background: radial-gradient(circle at var(--gx) var(--gy), rgb(255 255 255 / 0.4), transparent 40%);
  mix-blend-mode: overlay;
}
.holo figcaption { text-align: center; color: var(--text-soft); font-size: 0.95rem; line-height: 1.3; }
.holo figcaption b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--gold); }
@keyframes holo-sway {
  0% { --rx: -9deg; --ry: 5deg; --tx: -0.7; --ty: -0.4; --gx: 20%; --gy: 25%; }
  50% { --rx: 6deg; --ry: -4deg; --tx: 0.45; --ty: 0.3; --gx: 70%; --gy: 60%; }
  100% { --rx: 10deg; --ry: 6deg; --tx: 0.8; --ty: -0.45; --gx: 85%; --gy: 30%; }
}

/* ── Jornada, Liga e ranking ───────────────────────────────────── */
.journey {
  background:
    radial-gradient(70% 60% at 80% 20%, rgb(34 181 255 / 0.25), transparent 70%),
    #061a33;
}
.journey__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.journey__lede { margin: 0; color: var(--text); max-width: 34rem; text-wrap: pretty; }
.journey__map {
  margin-top: clamp(32px, 4vw, 48px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  padding: 8px 0 22px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.journey__map:focus-visible { outline-offset: -3px; }
.journey__tiles { display: flex; gap: 14px; margin: 0; padding: 0 max(var(--pad), calc((100vw - var(--wrap)) / 2)); list-style: none; width: max-content; }
.journey__tile {
  position: relative; flex: 0 0 auto; width: clamp(200px, 22vw, 280px); scroll-snap-align: center;
  border: var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hard);
}
.journey__tile img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.journey__tile span {
  position: absolute; left: 10px; bottom: 10px;
  font-family: var(--display); font-size: 1.15rem; color: var(--ink);
  background: var(--text); border: 3px solid var(--ink); border-radius: 999px; padding: 2px 12px;
}
.journey__tile--liga { border-color: var(--gold); box-shadow: 0 6px 0 var(--ink), 0 0 0 3px var(--ink); }
.journey__tile--liga span { background: var(--gold); }
.journey__path { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); }
.journey__path li { position: relative; padding-top: 22px; border-top: 4px solid rgb(255 255 255 / 0.18); }
.journey__path li::before {
  content: ""; position: absolute; top: -13px; left: 0; width: 22px; height: 22px;
  background: var(--gold); border: 3px solid var(--ink); border-radius: 50%;
}
.journey__path li:last-child { border-top-color: var(--gold); }
.journey__path h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 1.8rem; color: var(--text); line-height: 1.05; }
.journey__path p { margin: 0; color: var(--text-soft); text-wrap: pretty; }

/* ── Página 404 ────────────────────────────────────────────────── */
.lost { padding-bottom: 80px; }
.lost .hero__lede { margin: 22px 0 30px; }
.lost__wrap { max-width: 40rem; }
.lost__brand { margin-bottom: 40px; }

/* ── Telas menores ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero__panel, .duel__grid, .stars__head, .journey__head { grid-template-columns: 1fr; }
  /* no celular a arte fica alta, centrada no logo e no Ensune */
  .hero__banner img { max-height: none; aspect-ratio: 5 / 4; object-position: 50% 45%; }
  .hero__panel { margin-top: -28px; }
  .duel__phone { transform: none; width: min(100%, 300px); }
  .holo-row { grid-template-columns: repeat(5, minmax(170px, 1fr)); overflow-x: auto; padding: 6px 4px 20px; scroll-snap-type: x mandatory; }
  .holo { scroll-snap-align: center; }
  .upgrade { max-width: 460px; justify-self: center; }
  .journey__path { grid-template-columns: 1fr; }
  .howto__grid, .closed__grid, .forces__head, .news__grid { grid-template-columns: 1fr; }
  .evo__stage { width: min(100%, 280px); }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roster__card:nth-child(even) { translate: 0 20px; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .signup__row .btn { flex: 1 1 100%; }
  .perk { gap: 14px; }
  .perk__badge { width: 44px; height: 44px; font-size: 1.2rem; }
  .news-item--row:has(.news-item__img) { grid-template-columns: 104px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__list[aria-hidden="true"] { display: none; }
  .marquee__list { flex-wrap: wrap; justify-content: center; row-gap: 16px; }
  .holo__card { animation: none; }
  .upgrade__result { animation: none; }
}
