/* =========================================================================
   Floating Realms · landing page · tema "dourado celestial"
   Mesma linguagem da interface do jogo: pergaminho claro, moldura dourada com safiras,
   títulos em Cinzel, texto em Inter.
   Tudo local (fontes, imagens, ícones): a pasta /landing é autocontida.
   ========================================================================= */

/* ---------- Fontes (Google Fonts, licença OFL, servidas daqui) ---------- */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/cinzel-latin.woff2) format("woff2"); 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: "Cinzel"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/cinzel-latin-ext.woff2) format("woff2"); 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: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/inter-latin.woff2) format("woff2"); 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: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/inter-latin-ext.woff2) format("woff2"); 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; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* página e céu */
  --page: #fbf4e4;
  --page-2: #f6ead0;
  --sky-1: #eef7ff;
  --sky-2: #d6ebfb;
  --sky-3: #a9d3f4;

  /* pergaminho (miolo das janelas do jogo) */
  --parch: #fbf1dc;
  --parch-2: #f1e0bd;
  --parch-3: #e6cf9f;

  /* ouro */
  --gold-hi: #ffe28a;
  --gold: #e8b54a;
  --gold-mid: #d39a2c;
  --gold-lo: #a8742a;
  --bronze: #7a4f1d;
  --line: rgba(168, 116, 42, .28);
  --line-strong: rgba(168, 116, 42, .55);

  /* tinta (texto marrom das janelas) */
  --ink: #3b2a17;
  --ink-2: #5c4428;
  --muted: #8a7254;

  /* safira das gemas */
  --sapphire: #2a7de1;
  --sapphire-hi: #7cc6ff;
  --sapphire-lo: #164d9c;

  /* barras de HP / MP / FP */
  --hp: #e0533c;
  --mp: #3a8fe0;
  --fp: #58b947;

  --discord: #5865f2;
  --discord-hi: #6d78f5;
  --discord-edge: #3a43b8;

  --font-title: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1100px;
  --gutter: 24px;
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
b, strong { color: var(--ink); font-weight: 700; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--sapphire); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 2; }
.center { text-align: center; }

/* destaque dourado (o "amarelo" do gunbound virou ouro) */
.y {
  background: linear-gradient(180deg, #f3c85a 0%, #d0901f 55%, #9c6414 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.p { color: #c4c9ff; }

.i { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: middle; }
.i-xs { width: .7em; height: .7em; }

/* ---------- Tipografia ---------- */
.h-display {
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(36px, 4.7vw, 72px);
  line-height: 1.04;
  letter-spacing: .005em;
  filter: drop-shadow(0 2px 0 rgba(255, 252, 240, .8)) drop-shadow(0 10px 26px rgba(255, 240, 205, .9));
}
.h-section {
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(28px, 3.3vw, 48px);
  line-height: 1.08;
  letter-spacing: .005em;
}
.lead-caps {
  margin-top: 18px;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .06em;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 580px;
}
.center .lead-caps { margin-inline: auto; }
.lead-caps.left { margin-inline: 0; }

/* ---------- Divisor dourado com safira (igual ao topo das janelas) ---------- */
.gold-rule {
  position: relative; display: block; height: 2px; width: min(520px, 80%); margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold-mid) 20%, var(--gold-hi) 50%, var(--gold-mid) 80%, transparent);
}
.gold-rule::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 28px; translate: -50% -50%;
  background: url(../assets/ui/gem.webp) center / contain no-repeat;
}

/* ---------- Moldura do jogo (border-image da janela) ----------
   --fw: tamanho com que a moldura é desenhada · --fb: o quanto ela empurra o conteúdo */
.card, .perk, .tech-card, .mini-card, .class-info, .classes-panel, .show-frame, .discord-strip, .hero-banner, .lang-menu {
  --fw: 46px;
  --fb: calc(var(--fw) * .42);
  position: relative;
  border-style: solid;
  border-color: transparent;
  border-width: var(--fb);
  border-image-source: url(../assets/ui/frame.webp);
  border-image-slice: 84 fill;
  border-image-width: var(--fw);
  border-image-repeat: stretch;
  filter: drop-shadow(0 12px 22px rgba(122, 79, 29, .16));
}
/* gema no meio da borda de cima e de baixo (a imagem da moldura vem sem elas para não esticar) */
.card::before, .card::after, .show-frame::before, .show-frame::after, .class-info::before, .discord-strip::before {
  content: ""; position: absolute; left: 50%; z-index: 3; pointer-events: none;
  width: calc(var(--fw) * .5714); aspect-ratio: 96 / 52;
  background: url(../assets/ui/gem.webp) center / contain no-repeat;
  translate: -50% 0;
}
.card::before, .show-frame::before, .class-info::before, .discord-strip::before { top: calc(var(--fb) * -1); }
.card::after, .show-frame::after { bottom: calc(var(--fb) * -1); rotate: 180deg; }

/* ---------- Botões ---------- */
.btn {
  --edge: var(--bronze);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  border-radius: 12px;
  transition: transform .12s ease, box-shadow .12s ease, filter .15s ease;
  will-change: transform;
}
.btn .i { width: 1.05em; height: 1.05em; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 13px; border-radius: 10px; }
.btn-md { height: 50px; padding: 0 28px; font-size: 15px; }
.btn-lg { height: 60px; padding: 0 38px; font-size: 18px; border-radius: 14px; }

.btn-primary {
  color: var(--ink);
  background: linear-gradient(180deg, #ffeaa3 0%, var(--gold) 48%, var(--gold-mid) 100%);
  border: 1px solid var(--gold-lo);
  text-shadow: 0 1px 0 rgba(255, 245, 210, .7);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .65), inset 0 -2px 0 rgba(122, 79, 29, .25), 0 12px 24px rgba(122, 79, 29, .28), 0 5px 0 var(--edge);
}
.btn-primary:hover { filter: brightness(1.06) saturate(1.05); transform: translateY(-1px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(122, 79, 29, .25), 0 16px 30px rgba(211, 154, 44, .4), 0 6px 0 var(--edge); }
.btn-primary:active { transform: translateY(4px); filter: brightness(.96); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 1px 0 var(--edge); }

.btn-discord {
  --edge: var(--discord-edge);
  background: var(--discord);
  color: #fff;
  border: 1px solid var(--discord-edge);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .28), 0 12px 24px rgba(58, 67, 184, .25), 0 5px 0 var(--edge);
}
.btn-discord:hover { background: var(--discord-hi); transform: translateY(-1px); }
.btn-discord:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 1px 0 var(--edge); }

/* anel dourado em volta do botão principal, com safiras nas pontas */
.cta-ring {
  position: relative;
  display: inline-flex;
  padding: 6px;
  border: 2px solid var(--gold-mid);
  border-radius: 20px;
  background: rgba(255, 248, 228, .55);
  box-shadow: inset 0 0 0 1px rgba(255, 236, 170, .9), 0 0 36px rgba(232, 181, 74, .35);
}
.cta-ring::before, .cta-ring::after {
  content: ""; position: absolute; top: 50%; width: 14px; height: 14px; translate: 0 -50%; rotate: 45deg;
  background: radial-gradient(circle at 35% 30%, var(--sapphire-hi), var(--sapphire) 55%, var(--sapphire-lo));
  border: 2px solid var(--gold-mid);
  box-shadow: 0 0 10px rgba(124, 198, 255, .7);
}
.cta-ring::before { left: -9px; }
.cta-ring::after { right: -9px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

/* ---------- Discord opcional: sem link configurado, tudo some ---------- */
html:not(.has-discord) [data-link="discord"],
html:not(.has-discord) [data-needs="discord"] { display: none !important; }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease var(--d, 0s), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes bob-soft { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-1deg); } }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(88, 185, 71, .6); } 100% { box-shadow: 0 0 0 10px rgba(88, 185, 71, 0); } }
@keyframes wheel { 0% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, 10px); opacity: 0; } }
@keyframes rays { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }

/* ---------- Fundos ---------- */
.sec { position: relative; overflow: hidden; }
.sec-bg, .hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg-flip { transform: scaleX(-1); }
.sec-bg::after { /* funde o topo e a base da arte com a cor da página */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--page) 0%, rgba(251, 244, 228, .25) 18%, rgba(251, 244, 228, .25) 72%, var(--page) 100%);
}

/* poeira dourada / brilhos */
.stars {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 140px 80px, rgba(232, 181, 74, .9) 50%, transparent 51%),
    radial-gradient(2px 2px at 260px 160px, #fff8d8 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 330px 40px, rgba(232, 181, 74, .8) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 90px 230px, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 210px 300px, rgba(211, 154, 44, .7) 50%, transparent 51%),
    radial-gradient(2.2px 2.2px at 370px 260px, #fffbe8 50%, transparent 51%);
  background-size: 400px 340px;
  opacity: .8;
  animation: twinkle 6s ease-in-out infinite;
}
.stars-soft { opacity: .45; }

/* nuvens em CSS (aparecem mesmo sem as artes) */
.clouds {
  position: absolute; left: 0; right: 0; height: 220px; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60px 40px at 8% 60%, #fff 60%, transparent 62%),
    radial-gradient(90px 55px at 15% 55%, #fff 60%, transparent 62%),
    radial-gradient(70px 45px at 23% 65%, #fff 60%, transparent 62%),
    radial-gradient(80px 50px at 58% 62%, rgba(255, 255, 255, .9) 60%, transparent 62%),
    radial-gradient(110px 60px at 66% 56%, rgba(255, 255, 255, .9) 60%, transparent 62%),
    radial-gradient(75px 45px at 74% 66%, rgba(255, 255, 255, .9) 60%, transparent 62%);
  opacity: .6;
  filter: blur(9px);
}

/* =========================================================================
   CABEÇALHO
   ========================================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s ease, height .3s ease, box-shadow .3s ease;
}
.site-header::after { /* filete dourado, só quando rola */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--gold-mid) 15%, var(--gold-hi) 50%, var(--gold-mid) 85%, transparent);
  transition: opacity .3s ease;
}
.site-header.scrolled {
  --header-h: 68px;
  background: rgba(251, 241, 220, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(122, 79, 29, .12);
}
.site-header.scrolled::after { opacity: 1; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 56px; width: auto; filter: drop-shadow(0 4px 10px rgba(122, 79, 29, .35)); transition: height .3s ease; }
.scrolled .brand-logo { height: 46px; }
.brand-tag {
  font-family: var(--font-title); font-weight: 800; text-transform: uppercase;
  font-size: 10.5px; line-height: 1.3; letter-spacing: .06em; color: var(--ink);
}
.header-actions { display: flex; align-items: center; gap: 14px; }

/* idioma (bandeiras do próprio jogo) */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  font-family: var(--font-title); font-weight: 800; font-size: 13px; color: var(--ink);
  border-radius: 10px; border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease;
}
.lang-btn:hover, .lang.open .lang-btn { background: rgba(255, 248, 228, .85); border-color: var(--line-strong); }
.lang-flag { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px var(--gold-mid); }
.lang-btn .i-xs { width: 11px; height: 11px; opacity: .7; transition: transform .2s ease; }
.lang.open .lang-btn .i-xs { transform: rotate(180deg); }
.lang-menu {
  --fw: 34px;
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 210px;
  list-style: none; margin: 0; padding: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border-radius: 8px;
  font-weight: 600; font-size: 14px; color: var(--ink-2);
}
.lang-menu a img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-strong); }
.lang-menu a:hover { background: rgba(232, 181, 74, .18); color: var(--ink); }
.lang-menu a[aria-current="page"] { color: var(--bronze); font-weight: 800; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  --mx: 0; --my: 0;
  /* distância da borda do hero até a coluna de conteúdo (o mesmo recuo do .container) */
  --content-inset: max(var(--gutter), calc(50% - var(--container) / 2));
  position: relative;
  min-height: max(760px, 100vh);
  padding: calc(var(--header-h) + 64px) 0 150px;
  overflow: hidden;
  background:
    radial-gradient(55% 60% at 74% 30%, rgba(255, 236, 170, .75), transparent 70%),
    linear-gradient(180deg, #8ec8f2 0%, #b9ddf8 28%, #e2f0fa 55%, #fbefd0 82%, var(--page) 100%);
  isolation: isolate;
}
.hero-bg .bg-img { transform: scale(1.04) translate(calc(var(--mx) * -8px), calc(var(--my) * -6px)); transition: transform .4s ease-out; }
.hero-bg::after { /* bruma dourada à esquerda (onde fica o texto) e fusão com a página embaixo */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 247, 226, .9) 0%, rgba(255, 247, 226, .62) 34%, rgba(255, 247, 226, 0) 60%),
    linear-gradient(180deg, rgba(255, 247, 226, 0) 0%, rgba(255, 247, 226, 0) 72%, var(--page) 100%);
}
.hero .clouds { bottom: 60px; }
.hero-rays { /* raios de sol dourados do canto superior direito */
  position: absolute; z-index: 1; pointer-events: none;
  right: -10%; top: -30%; width: 90%; height: 140%;
  background: repeating-conic-gradient(from 200deg at 85% 10%, rgba(255, 236, 170, .38) 0deg 3deg, transparent 3deg 11deg);
  -webkit-mask-image: radial-gradient(70% 70% at 85% 10%, #000 20%, transparent 75%);
          mask-image: radial-gradient(70% 70% at 85% 10%, #000 20%, transparent 75%);
  animation: rays 6s ease-in-out infinite;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  min-height: 560px;
}
.hero-copy { position: relative; z-index: 3; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; padding: 6px 14px 6px 10px;
  font-family: var(--font-title); font-weight: 800; text-transform: uppercase;
  font-size: 12.5px; letter-spacing: .06em; color: var(--ink);
  background: rgba(255, 248, 228, .88); border: 1px solid var(--line-strong); border-radius: 999px;
  box-shadow: 0 6px 16px rgba(122, 79, 29, .12);
}
.kicker .i { color: #ef7a26; width: 16px; height: 16px; filter: drop-shadow(0 0 5px rgba(239, 122, 38, .55)); }
.hero-sub { margin: 26px 0 36px; max-width: 480px; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); font-weight: 500; }
.hero-note { margin-top: 18px; font-family: var(--font-body); font-weight: 700; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

.hero-art { position: relative; z-index: 2; height: 100%; min-height: 520px; }
.hero-main {
  position: absolute; right: -8%; top: 50%;
  width: min(118%, 640px); height: auto;
  translate: calc(var(--mx) * -18px) calc(-50% + var(--my) * -12px);
  transition: translate .3s ease-out;
  animation: bob 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(60, 90, 140, .35));
}
/* Inteiro e um pouco acima da borda: o topo se funde com a seção de baixo (mesmo creme), então cortá-lo
   na borda deixaria uma linha reta no meio do céu.
   A maga mora na MARGEM esquerda: é ancorada pela direita na coluna do texto e a largura sai da margem
   que existe (até 14% dela pode vazar pela borda da tela: só a ponta do manto). Assim ela nunca entra
   na coluna do texto nem cobre o "jogar", seja qual for a altura da tela ou o idioma. A folga cobre a
   paralaxe, o balanço e as safiras do botão. Enfeite não recebe clique. */
.hero-side {
  --room: calc(var(--content-inset) - 32px);
  position: absolute; z-index: 1; right: calc(100% - var(--room)); bottom: 28px;
  width: min(460px, calc(var(--room) / .86)); height: auto;
  pointer-events: none;
  translate: calc(var(--mx) * 10px) calc(var(--my) * 8px);
  transition: translate .3s ease-out;
  animation: bob-soft 7s ease-in-out infinite;
  filter: drop-shadow(0 20px 30px rgba(60, 90, 140, .3));
}

/* Em tela larga a coluna vai para a margem (fora de cima do personagem) e tem fundo de pergaminho
   translúcido: a arte do topo é cheia de detalhe e o texto se perdia nela. */
.hero-meta {
  position: absolute; z-index: 3; top: 8px;
  right: calc(var(--gutter) - clamp(0px, (100vw - var(--container) - var(--gutter) * 2) / 2 - 40px, 230px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
  padding: 16px 16px 14px;
  text-align: right;
  background: rgba(255, 248, 228, .74);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45), 0 10px 26px rgba(122, 79, 29, .14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-meta .meta-item:last-of-type { border-bottom: 0; padding-bottom: 0; }
.meta-item { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; padding-bottom: 14px; min-width: 130px; border-bottom: 1px solid var(--line-strong); }
.meta-label { font-family: var(--font-body); font-weight: 700; text-transform: uppercase; font-size: 10.5px; letter-spacing: .09em; color: var(--ink-2); }
.meta-value { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-title); font-weight: 800; text-transform: uppercase; font-size: 15px; color: var(--ink); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fp); animation: pulse 1.8s ease-out infinite; }
.meta-studio { width: 124px; height: auto; }
.studio-link { display: inline-block; border-radius: 4px; transition: opacity .15s ease, transform .15s ease; }
.studio-link:hover { opacity: .8; transform: translateY(-1px); }
.meta-logo { width: 120px; height: auto; filter: drop-shadow(0 6px 12px rgba(122, 79, 29, .35)); }

.scroll-hint {
  position: absolute; z-index: 3; right: var(--content-inset); bottom: 130px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  font-size: 10.5px; line-height: 1.25; letter-spacing: .08em; color: var(--ink-2); text-align: right;
}
.mouse { position: relative; width: 16px; height: 25px; border: 1.5px solid var(--ink-2); border-radius: 10px; }
.mouse::after { content: ""; position: absolute; left: 50%; top: 5px; width: 2px; height: 5px; border-radius: 2px; background: var(--gold-mid); animation: wheel 1.5s ease-in-out infinite; }

.hero-banner {
  --fw: 40px;
  position: absolute; z-index: 4; right: var(--content-inset); bottom: 18px;
  display: flex; align-items: center; gap: 14px;
  width: min(430px, calc(100% - var(--gutter) * 2));
  padding: 4px 6px 4px 104px;
  transition: transform .2s ease;
}
.hero-banner:hover { transform: translateY(-3px); }
.hero-banner:hover .play-circle { transform: scale(1.08); }
.hero-banner-fig { position: absolute; left: -6px; bottom: -6px; width: 112px; height: auto; filter: drop-shadow(0 6px 10px rgba(122, 79, 29, .35)); }
.hero-banner-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.hero-banner-text strong { font-family: var(--font-title); font-weight: 800; text-transform: uppercase; font-size: 18px; line-height: 1.15; }
.hero-banner-text small { font-size: 12.5px; color: var(--muted); }
.play-circle {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, var(--sapphire-hi), var(--sapphire) 55%, var(--sapphire-lo));
  border: 2px solid var(--gold-mid);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 3px 0 var(--bronze), 0 0 16px rgba(42, 125, 225, .35);
  transition: transform .2s ease;
}
.play-circle .i { width: 18px; height: 18px; margin-left: 2px; }

/* =========================================================================
   SEÇÃO: O MUNDO
   ========================================================================= */
.sec-world { padding: 140px 0 120px; background: linear-gradient(180deg, var(--page) 0%, var(--sky-1) 25%, var(--sky-2) 70%, var(--page) 100%); }
.sec-world .clouds { top: 38%; opacity: .5; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; margin-bottom: 22px;
  font-family: var(--font-title); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .08em;
  color: var(--ink); background: var(--parch); border: 1px solid var(--line-strong); border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6), 0 6px 14px rgba(122, 79, 29, .12);
}
.stats { list-style: none; padding: 0; margin: 40px auto 0; display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.stats strong { font-family: var(--font-title); font-weight: 800; text-transform: uppercase; font-size: 20px; color: var(--ink); }
.stats span { font-family: var(--font-body); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .07em; color: var(--gold-lo); }
.stats .stat-sep {
  width: 12px; height: 12px; rotate: 45deg; flex: none;
  background: radial-gradient(circle at 35% 30%, var(--sapphire-hi), var(--sapphire) 55%, var(--sapphire-lo));
  border: 2px solid var(--gold-mid);
  box-shadow: 0 0 8px rgba(124, 198, 255, .6);
}

.cards-pop { margin-top: 210px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: start; }
.card { --fw: 48px; }
.card-pop { padding: 130px 6px 10px; text-align: center; transition: transform .25s ease; }
.card-pop:nth-child(2) { margin-top: 56px; }
.card-pop:nth-child(3) { margin-top: 28px; }
.card-pop:nth-child(4) { margin-top: 10px; }
.card-pop:hover { transform: translateY(-6px); }
.pop-img {
  position: absolute; left: 50%; top: -170px; translate: -50% 0;
  width: 96%; max-width: 270px; height: auto;
  filter: drop-shadow(0 14px 18px rgba(122, 79, 29, .3));
  transition: transform .35s ease;
}
.card-pop:hover .pop-img { transform: translateY(-8px) scale(1.03); }
.card-label { display: block; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; font-size: 10.5px; letter-spacing: .12em; color: var(--gold-lo); margin-bottom: 8px; }
.card-pop h3 { font-family: var(--font-title); font-weight: 800; text-transform: uppercase; font-size: 18px; line-height: 1.15; margin-bottom: 10px; }
.card-pop p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }

.world-cta { margin-top: 90px; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.tagline { font-family: var(--font-title); font-weight: 800; text-transform: uppercase; font-size: clamp(16px, 1.7vw, 21px); line-height: 1.4; color: var(--ink); }

.discord-strip {
  --fw: 44px;
  margin-top: 70px;
  display: flex; align-items: center; gap: 18px;
  padding: 8px 10px 8px 14px;
}
.strip-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--discord); color: #fff; flex: none; box-shadow: 0 4px 0 var(--discord-edge); }
.strip-icon .i { width: 22px; height: 22px; }
.strip-fig { width: 84px; height: auto; margin: -46px 0 -18px; flex: none; filter: drop-shadow(0 8px 12px rgba(122, 79, 29, .3)); }
.discord-strip p { flex: 1; font-family: var(--font-title); font-weight: 800; text-transform: uppercase; font-size: 15px; line-height: 1.3; color: var(--ink); }

/* =========================================================================
   SEÇÃO: SISTEMAS (rolagem fixa em 4 passos)
   ========================================================================= */
.sec-show {
  --steps: 4;
  position: relative;
  height: calc(var(--steps) * 85vh + 15vh);
  background:
    radial-gradient(50% 40% at 70% 50%, rgba(255, 226, 138, .45), transparent 70%),
    linear-gradient(180deg, var(--page) 0%, var(--page-2) 12%, #f3dfb4 50%, var(--page-2) 88%, var(--page) 100%);
}
.show-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.show-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.show-steps { position: relative; margin-top: 50px; min-height: 240px; }
.show-step {
  position: absolute; inset: 0 0 auto 0;
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}
.show-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-num {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  font-family: var(--font-title); font-weight: 900; font-size: 15px; color: var(--ink);
  background: linear-gradient(180deg, #ffeaa3, var(--gold) 60%, var(--gold-mid));
  border: 1px solid var(--gold-lo);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 3px 0 var(--bronze);
}
.step-tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; color: var(--sapphire-lo); }
.show-step h3 { font-family: var(--font-title); font-weight: 800; text-transform: uppercase; font-size: clamp(21px, 2.2vw, 28px); line-height: 1.12; margin-bottom: 12px; }
.show-step p { max-width: 440px; font-size: 15.5px; color: var(--ink-2); }

.show-tabs { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.show-tabs button { font-family: var(--font-title); font-weight: 800; text-transform: uppercase; font-size: 12.5px; letter-spacing: .06em; color: var(--muted); padding: 4px 2px; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.show-tabs button:hover { color: var(--ink-2); }
.show-tabs button.is-active { color: var(--ink); border-bottom-color: var(--gold-mid); }
.tab-dot { width: 6px; height: 6px; rotate: 45deg; background: var(--gold-mid); opacity: .7; }

.show-frame {
  --fw: 56px;
  --fb: 24px;
  aspect-ratio: 16 / 10;
}
.show-shot { position: absolute; inset: 0; margin: 0; overflow: hidden; border-radius: 8px; opacity: 0; transform: scale(1.03); transition: opacity .6s ease, transform 1.2s ease; background: radial-gradient(80% 70% at 50% 40%, #d9ecfb, #b6d6f2); }
.show-shot.is-active { opacity: 1; transform: none; }
.shot-img { width: 100%; height: 100%; object-fit: cover; }
.shot-chip {
  position: absolute; left: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px;
  font-family: var(--font-title); font-weight: 800; font-size: 12px; color: var(--ink);
  background: rgba(251, 241, 220, .92); border: 1px solid var(--gold-mid); border-radius: 9px;
  box-shadow: 0 4px 10px rgba(122, 79, 29, .2);
}
.shot-chip .i { color: var(--gold-lo); }
.show-dots { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.show-dots i { width: 9px; height: 9px; rotate: 45deg; border: 1.5px solid var(--gold-mid); background: rgba(251, 241, 220, .8); transition: background-color .2s ease, transform .2s ease; }
.show-dots i.is-active { background: radial-gradient(circle at 35% 30%, var(--sapphire-hi), var(--sapphire)); transform: scale(1.25); }

/* =========================================================================
   SEÇÃO: JOGO JUSTO
   ========================================================================= */
.sec-safe { padding: 130px 0 140px; }
.celestial-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(32% 42% at 50% 50%, rgba(255, 226, 138, .7), transparent 70%),
    radial-gradient(28% 34% at 18% 30%, rgba(186, 214, 255, .7), transparent 70%),
    radial-gradient(24% 30% at 84% 72%, rgba(222, 205, 255, .6), transparent 70%),
    linear-gradient(180deg, var(--page), #f1ecfb 50%, var(--page));
}
.safe-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, .9fr); align-items: center; gap: 24px; }
.safe-badge {
  display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 22px;
  border-radius: 16px; color: #fff;
  background: radial-gradient(circle at 35% 30%, var(--sapphire-hi), var(--sapphire) 55%, var(--sapphire-lo));
  border: 2px solid var(--gold-mid);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 4px 0 var(--bronze), 0 10px 26px rgba(42, 125, 225, .3);
}
.safe-badge .i { width: 30px; height: 30px; }
.safe-copy .h-section { font-size: clamp(26px, 2.9vw, 40px); }
.safe-art { width: 100%; height: auto; max-width: 480px; margin-inline: auto; animation: bob 8s ease-in-out infinite; filter: drop-shadow(0 26px 40px rgba(211, 154, 44, .35)); }
.safe-side p { font-size: 15px; color: var(--ink-2); }

/* =========================================================================
   SEÇÃO: CLASSES
   ========================================================================= */
.sec-classes { padding: 150px 0 140px; background: linear-gradient(180deg, var(--page), #f7e7c6 50%, var(--page)); }
.classes-panel {
  --fw: 70px;
  --fb: 28px;
  padding: 80px 30px 26px;
}
.emblem { position: absolute; left: 50%; top: calc(var(--fb, 0px) * -1); translate: -50% -50%; z-index: 4; width: 116px; height: 116px; display: grid; place-items: center; }
.emblem > svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.emblem text { font-family: var(--font-title); font-weight: 800; font-size: 9px; letter-spacing: .06em; fill: var(--ink); }
.emblem::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, var(--parch) 58%, var(--parch-2) 100%);
  border: 3px solid var(--gold-mid);
  box-shadow: inset 0 0 0 2px var(--gold-hi), inset 0 0 0 4px rgba(168, 116, 42, .35), 0 10px 26px rgba(122, 79, 29, .3);
}
.emblem-core {
  position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, var(--sapphire-hi), var(--sapphire) 55%, var(--sapphire-lo));
  border: 3px solid var(--gold-mid);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 0 18px rgba(42, 125, 225, .45);
}
.emblem-core .i { width: 22px; height: 22px; }

.classes-grid { margin-top: 44px; display: grid; grid-template-columns: 210px minmax(0, 1fr) 310px; gap: 26px; align-items: center; }
.class-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.class-picker button { /* parecido com o slot do inventário */
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 6px 10px; border-radius: 12px;
  background: linear-gradient(180deg, var(--parch-2), var(--parch-3));
  border: 2px solid #c9a25a;
  box-shadow: inset 0 2px 6px rgba(122, 79, 29, .22), 0 2px 0 rgba(255, 255, 255, .7);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.class-picker button:hover { transform: translateY(-2px); border-color: var(--gold-mid); }
.class-picker button.is-active { border-color: var(--sapphire); box-shadow: inset 0 2px 6px rgba(122, 79, 29, .22), 0 0 0 3px rgba(42, 125, 225, .25), 0 0 18px rgba(232, 181, 74, .55); }
/* miniatura = retrato do BUSTO: a arte de corpo inteiro ampliada ~2,3x, ancorada no topo (onde fica o rosto) */
.class-thumb { position: relative; display: block; width: 72px; height: 72px; overflow: hidden; border-radius: 9px; background: radial-gradient(circle at 50% 30%, #fff3d4, #e8cf9c); }
.class-thumb img { position: absolute; left: 50%; top: 2%; width: 230%; max-width: none; height: auto; translate: -50% 0; }
.class-thumb .ph { width: 100%; height: 100%; border-radius: 9px; }
.class-picker span { font-family: var(--font-title); font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: .03em; color: var(--ink); }

.class-stage { position: relative; height: 480px; }
.stage-glow { position: absolute; left: 50%; bottom: 8px; width: 78%; height: 70px; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 110, .75), rgba(255, 214, 110, 0)); }
.stage-glow::before { content: ""; position: absolute; inset: -160px 14% 30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 236, 170, .7), transparent); }
.stage-img {
  position: absolute; left: 50%; bottom: 30px; translate: -50% 0;
  height: 100%; width: auto; max-width: 100%; object-fit: contain;
  opacity: 0; transform: translateY(20px) scale(.96);
  transition: opacity .45s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
  filter: drop-shadow(0 22px 22px rgba(122, 79, 29, .3));
}
.stage-img.is-active { opacity: 1; transform: none; }

.class-infos { display: grid; }
.class-info {
  --fw: 50px;
  grid-area: 1 / 1;
  padding: 18px 12px 10px;
  opacity: 0; visibility: hidden; transform: translateX(14px);
  transition: opacity .4s ease, transform .4s ease, visibility .4s;
}
.class-info.is-active { opacity: 1; visibility: visible; transform: none; }
.info-tier { font-family: var(--font-body); font-weight: 700; text-transform: uppercase; font-size: 10.5px; letter-spacing: .1em; color: var(--gold-lo); }
.class-info h3 { font-family: var(--font-title); font-weight: 900; text-transform: uppercase; font-size: 28px; margin: 4px 0 10px; }
.class-info p { font-size: 14px; color: var(--ink-2); }
.info-evo { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 14px 0 16px; font-size: 12px; color: var(--muted); }
.info-evo span { flex-basis: 100%; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; } /* rótulo numa linha, as duas evoluções juntas embaixo */
.info-evo b { padding: 3px 10px; border-radius: 7px; background: rgba(42, 125, 225, .1); border: 1px solid rgba(42, 125, 225, .35); font-family: var(--font-title); font-weight: 800; font-size: 12px; color: var(--sapphire-lo); }
/* uma grade só para as 3 linhas: a coluna do rótulo cresce com o idioma mais longo e as barras ficam alinhadas */
.bars { list-style: none; margin: 0; padding: 14px 0 4px; border-top: 1px solid var(--line); display: grid; grid-template-columns: max-content 1fr; align-items: center; gap: 10px 12px; }
.bars li { display: contents; }
.bars span { font-family: var(--font-body); font-weight: 700; text-transform: uppercase; font-size: 10.5px; letter-spacing: .06em; color: var(--ink-2); }
.bars i { /* como as barras de HP/MP/FP do jogo */
  --c: var(--hp);
  --c-hi: #f39a86;
  --c-lo: #9e2c1c;
  position: relative; height: 10px; border-radius: 6px; overflow: hidden;
  background: #4a3a26; border: 1.5px solid var(--gold-mid);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5);
}
.bars li:nth-child(2) i { --c: var(--mp); --c-hi: #94c6f3; --c-lo: #1d5d9e; }
.bars li:nth-child(3) i { --c: var(--fp); --c-hi: #a5dc98; --c-lo: #357a28; }
.bars i::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%);
  background: linear-gradient(180deg, var(--c-hi) 0%, var(--c) 45%, var(--c-lo) 100%);
  transform-origin: left; transform: scaleX(0); transition: transform .8s cubic-bezier(.2, .7, .2, 1) .15s;
}
.class-info.is-active .bars i::after { transform: scaleX(1); }

.mini-cards { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-card { --fw: 38px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 8px 10px; text-align: center; filter: none; }
.mini-card p { font-size: 13.5px; color: var(--ink-2); }
.mini-icon, .tech-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--bronze); background: linear-gradient(180deg, #fff0bd, var(--gold)); border: 1.5px solid var(--gold-lo); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 3px 0 var(--bronze); }
.mini-icon .i, .tech-icon .i { width: 21px; height: 21px; }

/* =========================================================================
   SEÇÃO: E TEM MAIS
   ========================================================================= */
.sec-more { padding: 110px 0 130px; background: linear-gradient(180deg, var(--page), var(--sky-1) 50%, var(--page)); }
.sec-more .gold-rule { margin-bottom: 70px; }
.more-grid { margin-top: 54px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.more-card { grid-column: span 2; display: flex; flex-direction: column; min-height: 400px; padding: 14px 14px 0; transition: transform .25s ease; } /* sem overflow:hidden: ele cortaria a gema da moldura */
.more-card.more-wide { grid-column: span 3; }
.more-card:hover { transform: translateY(-4px); }
.more-card h3 { font-family: var(--font-title); font-weight: 800; text-transform: uppercase; font-size: 20px; margin-bottom: 8px; }
.more-card p { font-size: 14px; color: var(--ink-2); max-width: 420px; }
.more-img { margin: auto auto 0; padding-top: 16px; width: 100%; max-width: 520px; height: auto; transition: transform .4s ease; }
.more-card:hover .more-img { transform: scale(1.03); }

/* =========================================================================
   SEÇÃO: OPEN BETA
   ========================================================================= */
.sec-beta {
  padding: 120px 0 230px;
  background:
    radial-gradient(60% 55% at 50% 100%, rgba(255, 214, 110, .8), transparent 70%),
    linear-gradient(180deg, var(--page), #fbe7b8 60%, #f6d58e 100%);
}
.perks { margin-top: 54px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.perk {
  --fw: 42px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 16px 8px 14px; text-align: center;
  transition: transform .25s ease;
}
.perk:hover { transform: translateY(-5px); }
.perk-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%, var(--sapphire-hi), var(--sapphire) 55%, var(--sapphire-lo)); border: 2px solid var(--gold-mid); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 3px 0 var(--bronze); }
.perk-icon .i { width: 24px; height: 24px; }
.perk p { font-size: 14px; color: var(--ink-2); }
.sun-glow {
  position: absolute; left: 50%; bottom: -280px; translate: -50% 0;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fffdf2 0%, #ffeeb5 30%, rgba(255, 214, 110, .55) 52%, rgba(255, 214, 110, 0) 72%);
}
.sun-glow::before { /* raios */
  content: ""; position: absolute; inset: -60%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 236, 170, .35) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  animation: spin 60s linear infinite;
}

/* =========================================================================
   SEÇÃO: TECNOLOGIA
   ========================================================================= */
.sec-tech { padding: 130px 0 130px; background: linear-gradient(180deg, #f6d58e 0%, var(--sky-2) 22%, var(--sky-1) 75%, var(--page) 100%); }
.sec-tech .sec-bg::after { background: linear-gradient(180deg, #f6d58e 0%, rgba(214, 235, 251, .35) 22%, rgba(238, 247, 255, .35) 75%, var(--page) 100%); }
.tech-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 30px; }
.tech-art { position: relative; min-height: 340px; }
.tech-sun { position: absolute; left: 6%; top: 0; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fffef6, #ffeeb0 45%, #f5c75a 75%); box-shadow: 0 0 70px 26px rgba(255, 214, 110, .5); }
.tech-img { position: relative; width: 100%; max-width: 440px; height: auto; margin-left: auto; animation: bob 7s ease-in-out infinite; filter: drop-shadow(0 26px 30px rgba(60, 90, 140, .3)); }
.tech-grid { margin-top: 50px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tech-card { --fw: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 10px 12px; text-align: center; transition: transform .25s ease; }
.tech-card:hover { transform: translateY(-4px); }
.tech-card p { font-size: 14px; color: var(--ink-2); }

/* =========================================================================
   CHAMADA FINAL
   ========================================================================= */
.sec-final {
  position: relative; padding: 130px 0 120px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255, 255, 255, .55), transparent 70%),
    linear-gradient(180deg, #f8dd97, #f0c467 70%, #e9b552);
  border-top: 2px solid var(--gold-lo);
  border-bottom: 2px solid var(--gold-lo);
  box-shadow: inset 0 3px 0 rgba(255, 240, 190, .8), inset 0 -3px 0 rgba(255, 240, 190, .6);
}
.sec-final .emblem { top: 0; }
.sec-final .y { background: linear-gradient(180deg, #8a4f0c, #5c3306); -webkit-background-clip: text; background-clip: text; }
.final-text { margin: 22px auto 34px; max-width: 540px; font-size: 16px; color: var(--ink); }
.sec-final .cta-ring { background: rgba(255, 250, 235, .45); border-color: var(--bronze); }

/* =========================================================================
   COMUNIDADE (janela estilo Discord)
   ========================================================================= */
.sec-community { position: relative; padding: 120px 0 110px; background: linear-gradient(180deg, var(--page), #ecebff 50%, var(--page)); }
.app-window {
  position: relative; overflow: visible;
  background: linear-gradient(180deg, #4b53c9 0%, #3d44aa 45%, #2f3487 100%);
  border: 3px solid var(--gold-mid);
  border-radius: 18px;
  box-shadow: inset 0 0 0 2px var(--gold-hi), 0 30px 70px rgba(58, 67, 184, .3);
}
.app-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #f05a5a; }
.app-bar i:nth-child(2) { background: #f5bd4f; }
.app-bar i:nth-child(3) { background: #3fcf6c; }
.app-url { margin: 0 auto; width: 34%; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, .12); }
.app-body { display: grid; grid-template-columns: 76px 1fr; }
.app-side { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 0; border-right: 1px solid rgba(255, 255, 255, .12); }
.app-srv { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.app-srv-discord { background: var(--discord); color: #fff; }
.app-srv-discord .i { width: 24px; height: 24px; }
.app-srv-fr { background: var(--parch); box-shadow: 0 0 0 2px var(--gold); }
.app-srv-fr img { width: 120%; max-width: none; }
.app-main { padding: 50px 30px 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.app-main .h-section { color: #fff; }
.app-badge { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: var(--discord); color: #fff; box-shadow: 0 0 0 2px var(--gold-mid), 0 10px 30px rgba(20, 24, 80, .5); }
.app-badge .i { width: 28px; height: 28px; }
.app-main p { max-width: 520px; font-size: 15px; color: #e3e5ff; }
.app-main .gold-rule { width: 200px; }
.app-art { position: relative; min-height: 260px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-radius: 0 0 15px 15px; background: linear-gradient(180deg, transparent, rgba(20, 24, 80, .45)); }
.app-art-img { width: min(100%, 620px); height: auto; position: relative; z-index: 1; } /* estreita o bastante para não encostar no rótulo da esquerda */
.app-art-label { position: absolute; z-index: 2; left: 26px; bottom: 40px; max-width: 190px; text-align: left; } /* 26 + 190 < margem da arte de 620 px centralizada */
.app-art-label strong { display: block; font-family: var(--font-title); font-weight: 800; text-transform: uppercase; font-size: 15px; color: #fff; }
.app-art-label small { font-size: 12.5px; color: #cfd2ff; }
.app-peek { position: absolute; right: -10px; top: -70px; width: 120px; height: auto; animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 10px 16px rgba(20, 24, 80, .4)); }

/* =========================================================================
   FAQ
   ========================================================================= */
.sec-faq { padding: 110px 0 120px; background: var(--page); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 50px; align-items: start; }
.faq-img { margin-top: 30px; width: 100%; max-width: 380px; height: auto; animation: bob 8s ease-in-out infinite; filter: drop-shadow(0 26px 30px rgba(122, 79, 29, .3)); }
.faq-list { display: grid; }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list details:first-child { border-top: 1px solid var(--line-strong); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 4px;
  font-family: var(--font-title); font-weight: 800; text-transform: uppercase; font-size: 15px; line-height: 1.3; color: var(--ink);
  transition: color .2s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 10px; height: 10px; rotate: 45deg; border: 2px solid var(--gold-mid); background: var(--parch); transition: background-color .2s ease, transform .2s ease; }
.faq-list details[open] summary { color: var(--bronze); }
.faq-list details[open] summary::after { background: radial-gradient(circle at 35% 30%, var(--sapphire-hi), var(--sapphire)); transform: scale(1.15); }
.faq-list summary:hover { color: var(--gold-lo); }
.faq-list details p { padding: 0 4px 20px; font-size: 14.5px; color: var(--ink-2); max-width: 580px; }

/* =========================================================================
   RODAPÉ
   ========================================================================= */
.site-footer {
  position: relative; padding: 54px 0 34px; color: #e9d9b8;
  background: linear-gradient(180deg, #3a2812, #24180a);
}
/* a barra dourada das janelas do jogo, com a gema encaixada no meio (centro da barra = topo do rodapé) */
.site-footer::after {
  content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 10px; z-index: 1;
  background: linear-gradient(180deg, #5c3a12 0%, #c8902e 20%, #ffe08a 42%, #e8b54a 62%, #a8742a 84%, #4a2e0e 100%);
  box-shadow: 0 2px 6px rgba(36, 24, 10, .35);
}
.site-footer::before {
  content: ""; position: absolute; left: 50%; top: -16px; z-index: 2; width: 58px; aspect-ratio: 96 / 52; translate: -50% 0;
  background: url(../assets/ui/gem.webp) center / contain no-repeat;
}
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(232, 181, 74, .25); }
.footer-logos { display: flex; align-items: center; gap: 26px; }
.footer-logo { height: 62px; width: auto; }
.footer-studio { height: 22px; width: auto; filter: brightness(0) invert(.9) sepia(.35); } /* o vermelho some no marrom escuro */
.footer-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 18px; font-size: 13px; }
.footer-langs a { color: #e9d9b8; transition: color .15s ease; }
.footer-langs a:hover { color: var(--gold-hi); }
.footer-langs a[aria-current="page"] { color: var(--gold); font-weight: 700; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: #bfa982; }

/* =========================================================================
   Lugar reservado de imagem (só aparece em localhost/arquivo ou com ?placeholders)
   ========================================================================= */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 10px; text-align: center;
  border: 2px dashed rgba(168, 116, 42, .6); border-radius: 12px;
  background: repeating-linear-gradient(135deg, rgba(232, 181, 74, .12) 0 12px, rgba(232, 181, 74, .04) 12px 24px);
  color: var(--bronze); font-family: var(--font-body); font-weight: 800; font-size: 13px; line-height: 1.2;
  animation: none !important;
}
.ph small { font-weight: 600; color: var(--muted); font-size: 11px; }
.ph.bg-img { border-radius: 0; background: repeating-linear-gradient(135deg, rgba(232, 181, 74, .07) 0 22px, transparent 22px 44px); justify-content: flex-end; padding-bottom: 40px; }
.class-picker .ph { font-size: 9px; padding: 3px; }
.class-picker .ph small { display: none; }
img.is-missing { visibility: hidden; }

/* =========================================================================
   RESPONSIVO
   ========================================================================= */
@media (max-width: 1180px) {
  .hero-meta { display: none; }
  .scroll-hint { display: none; }
}

@media (max-width: 1500px) {
  /* a margem esquerda fica estreita demais para a maga (sairia com menos de ~190px): some em vez de
     invadir a coluna do texto */
  .hero-side { display: none; }
}

@media (max-width: 1140px) {
  /* sem largura para rótulo e arte lado a lado: o rótulo sobe para cima da arte */
  .app-art { flex-direction: column; align-items: center; }
  .app-art-label { position: static; max-width: 420px; padding: 0 18px 14px; text-align: center; }
}

@media (max-width: 980px) {
  :root { --header-h: 70px; }
  .hero { padding-bottom: 130px; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(255, 247, 226, .35) 0%, rgba(255, 247, 226, .8) 45%, var(--page) 100%); }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { min-height: 0; height: auto; order: -1; margin: -10px auto 10px; width: min(78%, 360px); }
  .hero-main { position: relative; right: auto; top: auto; width: 100%; translate: none; }

  .cards-pop { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 170px; margin-top: 190px; }
  .card-pop:nth-child(n) { margin-top: 0; }

  .sec-show { height: auto; padding: 110px 0; }
  .show-sticky { position: static; height: auto; display: block; }
  .show-grid { grid-template-columns: 1fr; gap: 34px; }
  .show-steps { margin-top: 34px; min-height: 210px; }

  .safe-grid { grid-template-columns: 1fr; text-align: center; }
  .safe-badge { margin-inline: auto; }
  .safe-art { max-width: 360px; order: -1; }
  .btn-row { justify-content: center; }

  .classes-panel { --fw: 54px; --fb: 22px; padding: 76px 8px 16px; }
  .classes-grid { grid-template-columns: 1fr; }
  .class-picker { grid-template-columns: repeat(4, 1fr); order: 2; }
  .class-stage { height: 380px; order: 1; }
  .class-infos { order: 3; }

  .more-grid { grid-template-columns: 1fr; }
  .more-card, .more-card.more-wide { grid-column: auto; min-height: 0; }

  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .tech-head { grid-template-columns: 1fr; }
  .tech-art { min-height: 0; }
  .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .faq-grid { grid-template-columns: 1fr; gap: 20px; }
  .faq-img { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .brand-tag { display: none; }
  .brand-logo { height: 44px; }
  .header-actions { gap: 8px; }
  .site-header .btn-discord span { display: none; }
  .site-header .btn-discord { padding: 0 12px; }
  .lang-btn { padding: 0 8px; gap: 6px; }
  .site-header .btn-sm { padding: 0 13px; font-size: 12px; }

  .hero-sub { font-size: 15.5px; }
  .btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
  .hero-banner { padding-left: 88px; }
  .hero-banner-fig { width: 90px; }
  .hero-banner-text strong { font-size: 15px; }

  .stats { gap: 18px; }
  .stats .stat-sep { display: none; }

  .cards-pop { grid-template-columns: 1fr; row-gap: 180px; padding-inline: 30px; }

  .discord-strip { flex-wrap: wrap; justify-content: center; text-align: center; }
  .strip-fig { display: none; }
  .discord-strip p { flex-basis: 100%; }

  .class-thumb { width: 56px; height: 56px; }
  .class-picker span { font-size: 9.5px; }
  .class-stage { height: 320px; }
  .mini-cards { grid-template-columns: 1fr; }

  .perks, .tech-grid { grid-template-columns: 1fr; }

  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-main { padding: 40px 18px 30px; }
  .app-art-label { position: static; max-width: none; padding: 0 18px 10px; text-align: center; }
  .app-art { flex-direction: column; align-items: center; }
  .app-peek { width: 90px; top: -50px; right: 0; }

  .footer-row, .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
