/* Estilo das páginas do Tales of Midgard (web/site, ADR 0127 e 0131). Sem dependências de fora; tudo funciona sem o
   site.js. Uma noite sobre Ný-Midgard: na inicial, a arte oficial no alto com o logo no centro, que encolhe e sobe para a
   barra ao rolar; nas internas (novidades, notas, privacidade, termos), a barra já sólida e um topo baixo.
   Escura de propósito (a marca é escura), nas cores e fontes do launcher. */
@font-face { font-family: 'Marcellus'; src: url('fonts/Marcellus-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('fonts/Barlow-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('fonts/Barlow-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('fonts/BarlowSemiCondensed-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('fonts/BarlowSemiCondensed-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

/* Layout: coluna central de 1180px; a barra fixa divide a navegação dos dois lados do logo. */
:root {
  color-scheme: dark;
  --night: #0d1119;
  --night-raised: #151c2a;
  --night-deep: #090c12;
  --line: rgba(232, 184, 96, 0.22);
  --line-soft: rgba(155, 165, 185, 0.16);
  --gold: #e8b860;
  --gold-top: #ffdc8f;
  --gold-deep: #c48a3c;
  --gold-ink: #241a08;
  --parchment: #f2e4c4;
  --text: #d6dbe5;
  --soft: #9ba5b9;
  --faint: #66708a;
  --shade: rgba(9, 12, 18, 0.72);
  --sunna: #f6e7b8;
  --artali: #e8e4d8;
  --skyndi: #b9cce2;
  --mylinn: #c77b5e;
  --ok: #8fd19e;
  --title: 'Marcellus', 'Palatino Linotype', Georgia, serif;
  --body: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --ui: 'Barlow Semi Condensed', 'Arial Narrow', 'Segoe UI', sans-serif;
  --wrap: min(1180px, 100% - 32px);
  --header-h: 72px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--night); }
body { margin: 0; background: var(--night); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-top); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-top); outline-offset: 3px; border-radius: 6px; }
.wrap { width: var(--wrap); margin-inline: auto; }
h1, h2, h3 { margin: 0; font-family: var(--title); font-weight: 400; color: var(--parchment); text-wrap: balance; }
p { margin: 0; }
.eyebrow { font: 700 13px/1.2 var(--ui); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Botões: o selo "Jogar" do launcher (anel de ouro com a estrela) e o contorno discreto. */
.cta { display: inline-flex; align-items: center; gap: 16px; padding: 8px 30px 8px 8px; border: 1px solid var(--gold); border-radius: 999px;
  background: linear-gradient(180deg, #2b2314, #15110a); color: var(--gold-top); text-decoration: none;
  box-shadow: 0 0 0 4px rgba(232, 184, 96, 0.12), 0 14px 44px rgba(232, 184, 96, 0.22), inset 0 1px 0 rgba(255, 220, 143, 0.3);
  transition: transform 0.2s, box-shadow 0.2s; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 0 0 5px rgba(232, 184, 96, 0.2), 0 18px 54px rgba(232, 184, 96, 0.32), inset 0 1px 0 rgba(255, 220, 143, 0.4); }
.cta-seal { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; flex: none; color: var(--gold-ink);
  background: radial-gradient(circle at 50% 32%, var(--gold-top), var(--gold-deep) 72%); box-shadow: 0 0 0 1px var(--gold-top), 0 0 22px rgba(255, 220, 143, 0.45); }
.cta-seal svg { width: 26px; height: 26px; }
.cta-text { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.cta-text b { font: 400 23px/1 var(--title); letter-spacing: 0.1em; text-transform: uppercase; }
.cta-text small { font: 600 13px/1 var(--ui); letter-spacing: 0.08em; color: var(--soft); text-transform: uppercase; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border: 1px solid rgba(242, 228, 196, 0.38); border-radius: 999px;
  background: rgba(9, 12, 18, 0.45); color: var(--parchment); font: 700 15px/1 var(--ui); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; backdrop-filter: blur(6px); transition: border-color 0.15s, color 0.15s, transform 0.15s; }
.button:hover { border-color: var(--gold-top); color: var(--gold-top); transform: translateY(-1px); }
.button svg { width: 20px; height: 20px; flex: none; }
.button.gold { border-color: var(--gold-top); background: linear-gradient(180deg, var(--gold-top), var(--gold-deep)); color: var(--gold-ink); backdrop-filter: none; }
.button.gold:hover { color: var(--gold-ink); filter: brightness(1.07); }
.button.small { padding: 10px 18px; font-size: 14px; }

/* Barra fixa: transparente sobre a arte, sólida ao rolar. O logo da abertura vem morar no meio dela. */
.top { position: fixed; inset: 0 0 auto; z-index: 30; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s; }
.top.is-solid, .top.menu-open { background: rgba(9, 12, 18, 0.86); border-bottom-color: var(--line); backdrop-filter: blur(12px); }
.top-inner { width: min(1240px, 100% - 32px); height: var(--header-h); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 32px; }
.top-start { display: flex; justify-content: flex-end; align-items: center; }
.top-end { display: flex; align-items: center; gap: 28px; }
.top-end .button { margin-left: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { position: relative; padding-block: 6px; color: var(--parchment); opacity: 0.82; font: 600 15px var(--ui); letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); transition: opacity 0.15s, color 0.15s; white-space: nowrap; }
.nav a::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 0; height: 1px; background: var(--gold-top); transition: width 0.2s, left 0.2s; }
.nav a:hover, .nav a[aria-current='true'], .nav a[aria-current='page'] { opacity: 1; color: var(--gold-top); }
.nav a:hover::after, .nav a[aria-current='true']::after, .nav a[aria-current='page']::after { left: 0; width: 100%; }
.dock { display: block; width: 138px; }
.dock img { width: 100%; }
.menu-button { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: rgba(9, 12, 18, 0.5); cursor: pointer; place-items: center; }
.menu-button span, .menu-button span::before, .menu-button span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--parchment); transition: transform 0.2s, background-color 0.2s; }
.menu-button span { position: relative; }
.menu-button span::before, .menu-button span::after { content: ''; position: absolute; left: 0; }
.menu-button span::before { top: -6px; }
.menu-button span::after { top: 6px; }
.menu-button[aria-expanded='true'] span { background: transparent; }
.menu-button[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded='true'] span::after { transform: translateY(-6px) rotate(-45deg); }
.menu { width: min(1240px, 100% - 32px); margin: 0 auto; padding: 8px 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.menu a { padding: 12px 4px; border-bottom: 1px solid var(--line-soft); color: var(--parchment); font: 600 16px var(--ui); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.menu a:hover, .menu a[aria-current='page'] { color: var(--gold-top); }

/* O logo que voa (criado pelo site.js): parte do lugar dele na abertura e encolhe até o meio da barra. */
.fly-logo { position: fixed; left: 0; top: 0; z-index: 31; pointer-events: none; transform-origin: center; will-change: transform;
  filter: drop-shadow(0 6px 26px rgba(0, 0, 0, 0.55)); }
.fly .hero-logo img { visibility: hidden; }
.fly .dock img { opacity: 0; }

/* Abertura */
.hero { position: relative; isolation: isolate; padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(24px, 6vh, 64px)) 0 72px; }
.hero-art { position: absolute; inset: 0 0 auto; z-index: -1; height: clamp(640px, 96vh, 940px); overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; animation: drift 30s ease-in-out infinite alternate; }
.hero-art::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 58% 40% at 50% 30%, rgba(9, 12, 18, 0.62), transparent 72%),
    linear-gradient(180deg, rgba(9, 12, 18, 0.78) 0%, rgba(9, 12, 18, 0.34) 32%, rgba(13, 17, 25, 0.62) 62%, var(--night) 100%); }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translate3d(-1.5%, 1%, 0); } }
.motes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.motes i { position: absolute; bottom: 12%; left: var(--x); width: var(--z); height: var(--z); border-radius: 50%; background: #ffd98c; opacity: 0;
  box-shadow: 0 0 10px 2px rgba(255, 200, 110, 0.7); animation: mote var(--t) linear var(--d) infinite; }
@keyframes mote { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 12% { opacity: 0.85; } 75% { opacity: 0.5; } 100% { transform: translate3d(var(--dx), -62vh, 0); opacity: 0; } }

.hero-inner { width: var(--wrap); margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.hero-logo { width: min(760px, 90%); margin: 0; }
.hero-logo img { width: 100%; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 46px rgba(232, 184, 96, 0.14)); }
.tagline { font: 400 clamp(26px, 3.2vw, 36px)/1.2 var(--title); color: var(--parchment); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8); }
.tagline span { color: var(--gold-top); }
.lead { max-width: 40em; color: #e4e8f0; font-size: 18px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 20px; margin-top: 10px; }
.cta-note { font: 600 14px var(--ui); letter-spacing: 0.05em; color: var(--soft); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
.cta-note a { color: var(--parchment); }
.cta-note a:hover { color: var(--gold-top); }

/* Vitrine: a janela do launcher e, por cima, a tela do jogo girando. */
.stage { position: relative; width: min(1080px, 100% - 32px); margin: clamp(44px, 6vw, 76px) auto 0; padding-bottom: 7%; }
.window { position: relative; width: 82%; margin: 0 0 0 auto; }
.window img { width: 100%; border-radius: 14px; border: 1px solid rgba(232, 184, 96, 0.45);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 7px rgba(9, 12, 18, 0.55), 0 0 90px rgba(232, 184, 96, 0.1); }
.tag { position: absolute; top: -13px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--night-deep); font: 700 12px/1.2 var(--ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.tag::before { content: ''; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }
.window .tag { right: 22px; }

.reel { position: absolute; left: 0; bottom: 0; z-index: 2; width: 46%; border: 1px solid rgba(232, 184, 96, 0.6); border-radius: 12px; background: var(--night-deep);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 6px rgba(9, 12, 18, 0.6); }
.reel .tag { left: 18px; }
.reel-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 11px 11px 0 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.9s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 6s linear; }
.slide.is-active img { transform: scale(1.08); }
.slide figcaption { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: 2px; padding: 34px 16px 12px; text-align: left;
  background: linear-gradient(180deg, transparent, rgba(9, 12, 18, 0.9)); }
.slide figcaption b { font: 400 21px/1.15 var(--title); color: var(--parchment); }
.slide figcaption span { font-size: 14px; line-height: 1.4; color: var(--text); }
.reel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 16px; border-top: 1px solid var(--line); }
.reel-count { font: 600 13px var(--ui); letter-spacing: 0.08em; color: var(--soft); font-variant-numeric: tabular-nums; }
.reel-dots { display: flex; gap: 2px; }
.reel-dots button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; }
.reel-dots button::before { content: ''; width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid var(--gold); transition: background-color 0.2s, transform 0.2s; }
.reel-dots button:hover::before { background: rgba(232, 184, 96, 0.4); }
.reel-dots button[aria-current='true']::before { background: var(--gold-top); transform: rotate(45deg) scale(1.2); }
.reel-progress { position: absolute; inset: 0 0 auto; z-index: 3; height: 2px; background: var(--gold-top); transform: scaleX(0); transform-origin: left; }
.reel-progress.run { animation: reel-run 5.5s linear forwards; }
.reel.is-paused .reel-progress { animation-play-state: paused; }
@keyframes reel-run { to { transform: scaleX(1); } }

.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; width: var(--wrap); margin: clamp(40px, 5vw, 60px) auto 0; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 22px; padding-right: 22px; font: 600 15px var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--parchment); }
.facts li + li::before { content: ''; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }

/* Fio entre seções, com as três luas no meio */
.divider { display: flex; align-items: center; gap: 14px; width: var(--wrap); margin: 0 auto; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.divider::after { background: linear-gradient(90deg, var(--line), transparent); }
.divider svg { width: 54px; height: 14px; flex: none; }

section.block { padding-block: 96px; }
.head { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 48em; margin: 0 auto 52px; text-align: center; }
.head .eyebrow { display: flex; align-items: center; gap: 12px; }
.head .eyebrow::before, .head .eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--gold); opacity: 0.6; }
.head h2 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.08; }
.head > p:not(.eyebrow) { color: var(--soft); font-size: 18px; max-width: 40em; }

/* O mundo: o céu e as nações */
.world { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.sky { width: 100%; max-width: 520px; aspect-ratio: 1; justify-self: center; }
.twinkle { animation: twinkle 4s ease-in-out infinite; }
.twinkle:nth-child(2n) { animation-delay: 1.3s; }
.twinkle:nth-child(3n) { animation-delay: 2.6s; }
@keyframes twinkle { 50% { opacity: 0.25; } }
.moons { display: flex; flex-direction: column; gap: 18px; padding: 0; margin: 0; list-style: none; }
.moons li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.moons i { width: 14px; height: 14px; border-radius: 50%; transform: translateY(2px); }
.moons b { display: block; font: 400 24px/1.2 var(--title); color: var(--parchment); }
.moons span { color: var(--soft); }
.quote { margin-top: 28px; padding: 22px 24px; border-left: 2px solid var(--gold); background: linear-gradient(90deg, rgba(232, 184, 96, 0.08), transparent);
  font: 400 22px/1.45 var(--title); color: var(--parchment); }
.quote small { display: block; margin-top: 8px; font: 500 15px var(--body); color: var(--soft); }
.nations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
.nation { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; border-top: 2px solid var(--nation); background: var(--night-raised); border-radius: 0 0 12px 12px; }
.nation .eyebrow { color: var(--nation); }
.nation h3 { font-size: 28px; }
.nation p { color: var(--soft); font-size: 16px; }

/* Classes: como a tela de escolha de um jogo. Sem o site.js, todas aparecem uma embaixo da outra. */
.classes { display: flex; flex-direction: column; gap: 22px; }
.class-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.classes:not(.is-ready) .class-tabs { display: none; }
.class-tab { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; padding: 16px 6px 14px; border: 1px solid var(--line-soft); border-radius: 12px;
  background: var(--night-raised); color: var(--soft); font: 700 15px var(--ui); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s; }
.class-tab:hover { color: var(--parchment); transform: translateY(-2px); }
.class-tab[aria-selected='true'] { color: var(--parchment); border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c), 0 12px 32px color-mix(in srgb, var(--c) 20%, transparent); }
.sigil { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%); transition: box-shadow 0.2s; }
.sigil svg { width: 28px; height: 28px; }
.class-tab[aria-selected='true'] .sigil { box-shadow: 0 0 26px color-mix(in srgb, var(--c) 45%, transparent); }

.class-panel { position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr) 270px; gap: 44px; align-items: center; padding: clamp(24px, 4vw, 44px);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); border-radius: 18px; overflow: hidden;
  background: radial-gradient(ellipse 55% 95% at 10% 50%, color-mix(in srgb, var(--c) 13%, transparent), transparent 70%), var(--night-raised); }
.class-panel:not([hidden]) { animation: panel-in 0.35s ease-out; }
@keyframes panel-in { from { transform: translateY(8px); } }
.class-seal { position: relative; display: grid; place-items: center; width: 100%; max-width: 210px; aspect-ratio: 1; border-radius: 50%; color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: radial-gradient(circle, color-mix(in srgb, var(--c) 22%, transparent), transparent 66%);
  box-shadow: 0 0 70px color-mix(in srgb, var(--c) 22%, transparent); }
.class-seal::before { content: ''; position: absolute; inset: 12px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--c) 45%, transparent); animation: spin 80s linear infinite; }
.class-seal svg { width: 44%; height: 44%; }
@keyframes spin { to { transform: rotate(360deg); } }
.class-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.class-body .eyebrow { color: var(--c); }
.class-body h3 { font-size: clamp(38px, 4vw, 54px); line-height: 1; }
.class-body > p:not(.eyebrow) { color: var(--text); max-width: 36em; }
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 10px 0 0; padding: 0; list-style: none; }
.skills li { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.skills b { display: flex; align-items: center; gap: 9px; font: 700 16px var(--ui); letter-spacing: 0.04em; color: var(--parchment); }
.skills b::before { content: ''; width: 7px; height: 7px; flex: none; transform: rotate(45deg); background: var(--c); box-shadow: 0 0 8px var(--c); }
.skills span { padding-left: 16px; font-size: 15px; line-height: 1.45; color: var(--soft); }
.weapons { margin-top: 8px; font-size: 15px; color: var(--soft); }
.weapons b { margin-right: 8px; font: 700 13px var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--parchment); }
.profile { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.profile-title { font: 700 12px var(--ui); letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.profile div { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 12px; }
.profile dt { font: 700 13px var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.profile dl { display: contents; }
.profile dd { margin: 0; }
.pips { display: block; height: 10px; background: linear-gradient(90deg, var(--c) calc(var(--v) * 20%), rgba(255, 255, 255, 0.09) 0);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(20% - 4px), transparent calc(20% - 4px) 20%);
  mask: repeating-linear-gradient(90deg, #000 0 calc(20% - 4px), transparent calc(20% - 4px) 20%); }
.novice { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin: -24px auto 36px; padding: 12px 22px; width: fit-content; max-width: 100%;
  border: 1px solid var(--line); border-radius: 999px; background: var(--night-deep); font: 600 15px var(--ui); letter-spacing: 0.06em; color: var(--soft); }
.novice b { color: var(--parchment); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.novice svg { width: 18px; height: 18px; color: var(--gold-top); }

/* Recursos */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--night-raised);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(232, 184, 96, 0.5); box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45); }
.feature figure { margin: 0; overflow: hidden; }
.feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.6s ease; }
.feature:hover img { transform: scale(1.05); }
.feature-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.feature h3 { font-size: 25px; }
.feature p { color: var(--soft); font-size: 16px; }
.more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 44px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.more div { padding: 20px 22px; background: var(--night-deep); }
.more div + div { border-left: 1px solid var(--line); }
.more b { display: block; margin-bottom: 4px; font: 700 15px var(--ui); letter-spacing: 0.06em; color: var(--parchment); text-transform: uppercase; }
.more span { color: var(--soft); font-size: 15px; }

/* Como jogar: os três passos, em ordem */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 28px 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--night-raised); counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--gold); border-radius: 50%;
  font: 400 22px var(--title); color: var(--gold-top); box-shadow: 0 0 0 4px rgba(232, 184, 96, 0.08), 0 0 20px rgba(232, 184, 96, 0.15); }
.step h3 { font-size: 26px; }
.step p { color: var(--soft); font-size: 16px; }
.systems { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.systems a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--parchment); font: 600 14px var(--ui); letter-spacing: 0.04em; text-decoration: none; }
.systems a:hover { border-color: var(--gold); color: var(--gold-top); }
.step .button { align-self: flex-start; margin-top: auto; }

/* Onde estamos: o roadmap publicado */
.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.column { display: flex; flex-direction: column; gap: 12px; }
.column > .eyebrow { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.column[data-state='feito'] > .eyebrow { color: var(--ok); }
.column[data-state='agora'] > .eyebrow { color: var(--gold-top); }
.column[data-state='proximo'] > .eyebrow { color: var(--skyndi); }
.item { padding: 16px 18px; border-radius: 10px; background: var(--night-raised); }
.item b { display: block; font: 700 17px var(--ui); color: var(--parchment); letter-spacing: 0.02em; }
.item span { color: var(--soft); font-size: 15px; }

/* Perguntas */
.faq { display: flex; flex-direction: column; max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 2px; cursor: pointer; list-style: none; font: 400 22px/1.3 var(--title); color: var(--parchment); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-family: var(--ui); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 2px 22px; color: var(--soft); max-width: 62ch; }

/* Comunidade: o convite final sobre a arte da praça */
.community { position: relative; isolation: isolate; padding-block: clamp(96px, 13vw, 160px); overflow: hidden; text-align: center; }
.community-art { position: absolute; inset: 0; z-index: -1; }
.community-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.community-art::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--night) 0%, rgba(13, 17, 25, 0.7) 30%, rgba(13, 17, 25, 0.72) 70%, var(--night-deep) 100%); }
.community .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.community h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8); }
.community p:not(.eyebrow) { max-width: 38em; color: #e4e8f0; font-size: 18px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9); }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.socials a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(9, 12, 18, 0.55);
  color: var(--parchment); font: 600 15px var(--ui); letter-spacing: 0.06em; text-decoration: none; transition: border-color 0.15s, color 0.15s; }
.socials a:hover { border-color: var(--gold-top); color: var(--gold-top); }
.socials svg { width: 20px; height: 20px; }
.community .cta-row { margin-top: 14px; }

/* Rodapé */
.foot { border-top: 1px solid var(--line); background: var(--night-deep); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 36px; padding-block: 56px 40px; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.foot-brand img { width: 190px; }
.foot-brand p { max-width: 26em; color: var(--soft); font-size: 15px; }
.foot-brand .socials { justify-content: flex-start; }
.foot-brand .socials a { padding: 8px 12px; font-size: 14px; }
.foot nav { display: flex; flex-direction: column; gap: 10px; }
.foot h2 { margin-bottom: 4px; font: 700 13px var(--ui); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.foot nav a { width: fit-content; max-width: 100%; color: var(--soft); font: 500 15px var(--body); text-decoration: none; overflow-wrap: anywhere; }
.foot nav a:hover { color: var(--parchment); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-soft); }
.foot-legal small { color: var(--faint); font-size: 14px; }
.foot-legal nav { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 22px; }
.foot-legal nav a { color: var(--soft); font-size: 14px; text-decoration: none; }
.foot-legal nav a:hover { color: var(--parchment); }

@media (max-width: 1080px) {
  .top-inner { gap: 16px; }
  .top-start .nav, .top-end .nav { display: none; }
  .top-start { justify-content: flex-start; }
  .js .menu-button { display: grid; }
  .class-panel { grid-template-columns: 170px minmax(0, 1fr); gap: 32px; }
  .profile { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
  .profile-title { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .world { grid-template-columns: 1fr; gap: 32px; }
  .nations, .features, .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more div + div { border-left: none; }
  .more div:nth-child(2n) { border-left: 1px solid var(--line); }
  .more div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .class-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  section.block { padding-block: 72px; }
}

@media (max-width: 760px) {
  .stage { padding-bottom: 0; }
  .window { width: 100%; }
  .reel { position: relative; width: 100%; margin-top: 30px; }
}

@media (max-width: 600px) {
  :root { --header-h: 62px; }
  body { font-size: 16px; }
  .dock { width: 112px; }
  .top-end .button { padding: 9px 14px; font-size: 13px; }
  .lead { font-size: 17px; }
  .cta { padding-right: 22px; }
  .cta-text b { font-size: 20px; }
  .nations, .features, .roadmap, .more, .skills { grid-template-columns: 1fr; }
  .more div:nth-child(2n) { border-left: none; }
  .more div + div { border-top: 1px solid var(--line); }
  .class-panel { grid-template-columns: 1fr; gap: 24px; }
  .class-seal { max-width: 128px; justify-self: center; }
  .class-body { text-align: left; }
  .profile { grid-template-columns: 1fr; }
  .class-tab { font-size: 13px; letter-spacing: 0.05em; }
  .sigil { width: 46px; height: 46px; }
  .sigil svg { width: 24px; height: 24px; }
  .facts li { font-size: 13px; gap: 14px; padding-right: 14px; }
  .slide figcaption b { font-size: 18px; }
  .slide figcaption span { font-size: 13px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu { grid-template-columns: 1fr; }
  .novice { border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motes { display: none; }
}

/* ---------- Páginas internas ---------- */

/* Topo baixo, com a arte ao fundo bem apagada. */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(40px, 6vw, 72px)) 0 clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line); }
.page-hero-art { position: absolute; inset: 0; z-index: -1; }
.page-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0.32; }
.page-hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 17, 25, 0.55), var(--night) 96%); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 14px; }
.page-hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; }
.page-hero .page-lead { max-width: 44em; color: var(--text); font-size: 18px; }
.page-hero .stamp { font: 600 14px var(--ui); letter-spacing: 0.06em; color: var(--soft); }
.page-body { padding-block: clamp(40px, 6vw, 64px) 96px; }

/* Sumário ao lado do texto (vira uma fileira de atalhos no celular). */
.with-toc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.toc .eyebrow { margin-bottom: 10px; }
.toc a { padding: 6px 12px; border-left: 1px solid var(--line-soft); color: var(--soft); font: 500 15px/1.35 var(--body); text-decoration: none; transition: color 0.15s, border-color 0.15s; }
.toc a:hover, .toc a[aria-current='true'] { color: var(--gold-top); border-left-color: var(--gold); }
.toc small { display: block; color: var(--faint); font: 600 12px var(--ui); letter-spacing: 0.06em; }

/* Texto longo: privacidade e termos. */
.prose { max-width: 74ch; min-width: 0; }
.prose > section + section { margin-top: 52px; }
.prose h2 { font-size: clamp(27px, 3vw, 34px); line-height: 1.15; margin-bottom: 14px; }
.prose h3 { margin: 26px 0 8px; font: 700 18px var(--ui); letter-spacing: 0.04em; color: var(--parchment); }
.prose p { color: var(--text); }
.prose p + p, .prose ul + p, .prose p + ul, .prose .table-wrap + p { margin-top: 12px; }
.prose ul { display: flex; flex-direction: column; gap: 7px; margin: 10px 0 0; padding-left: 1.2em; }
.prose li { color: var(--text); padding-left: 4px; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--parchment); font-weight: 500; }
.prose a { color: var(--gold-top); }
.summary { padding: 26px 28px; border: 1px solid var(--line); border-radius: 14px;
  background: radial-gradient(ellipse 80% 100% at 0% 0%, rgba(232, 184, 96, 0.08), transparent 60%), var(--night-raised); }
.summary ul { margin-top: 12px; }
.table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line-soft); border-radius: 12px; }
.prose table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.prose th { padding: 12px 14px; text-align: left; font: 700 13px var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); background: var(--night-deep); }
.prose td { padding: 12px 14px; vertical-align: top; color: var(--text); border-top: 1px solid var(--line-soft); }
.prose td:first-child { width: 26%; color: var(--parchment); font-weight: 500; }
.prose td span { display: block; margin-top: 4px; color: var(--soft); font-size: 14px; }
/* Campo a preencher antes de publicar: o deploy.ps1 recusa enquanto houver um (data-preencher). */
.fill { padding: 1px 7px; border: 1px dashed var(--mylinn); border-radius: 5px; background: rgba(199, 123, 94, 0.16); color: #f3bfa8; font-weight: 500; }

/* Novidades: notícias e agenda */
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.news-list { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.news-card { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line-soft); border-radius: 14px;
  background: var(--night-raised); }
.news-card.no-image, .news-card.is-featured { grid-template-columns: minmax(0, 1fr); }
.news-card.is-featured { border-color: rgba(232, 184, 96, 0.4); }
.news-card img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
.news-card.is-featured img { aspect-ratio: 16 / 7; min-height: 0; }
.news-card .body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; min-width: 0; }
.news-card h2 { font-size: 27px; line-height: 1.15; }
.news-card.is-featured h2 { font-size: clamp(30px, 3.4vw, 38px); }
.news-card p { color: var(--soft); }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 600 14px var(--ui); letter-spacing: 0.05em; color: var(--soft); }
.chip { --chip: var(--gold); padding: 3px 9px; border: 1px solid color-mix(in srgb, var(--chip) 60%, transparent); border-radius: 6px; color: var(--chip);
  font: 700 12px/1.3 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; background: color-mix(in srgb, var(--chip) 10%, transparent); }
.chip[data-kind='atualizacao'], .chip[data-kind='teste'] { --chip: var(--skyndi); }
.chip[data-kind='novidade'] { --chip: var(--ok); }
.chip[data-kind='aviso'], .chip[data-kind='manutencao'] { --chip: var(--mylinn); }
.chip[data-kind='live'] { --chip: #e57ab0; }
.read-more { align-self: flex-start; margin-top: 4px; font: 700 14px var(--ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-top); text-decoration: none; }
.read-more:hover { text-decoration: underline; }
.agenda { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--night-raised); }
.agenda h2 { font-size: 26px; }
.agenda ol { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.agenda li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; padding-block: 14px; border-top: 1px solid var(--line-soft); }
.agenda li:first-child { border-top: 0; padding-top: 4px; }
.day { display: grid; place-items: center; align-content: center; height: 58px; border: 1px solid var(--line); border-radius: 10px; background: var(--night-deep); font-variant-numeric: tabular-nums; }
.day b { font: 400 24px/1 var(--title); color: var(--parchment); }
.day small { font: 700 11px var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.agenda .event { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.agenda .event b { font: 700 16px/1.3 var(--ui); color: var(--parchment); letter-spacing: 0.02em; }
.agenda .event time { font: 600 14px var(--ui); color: var(--ok); letter-spacing: 0.03em; }
.agenda .event p { color: var(--soft); font-size: 15px; }
.agenda .empty, .feed-status { color: var(--soft); }
.feed-status { padding: 22px 24px; border: 1px dashed var(--line-soft); border-radius: 14px; }

/* Notas da versão */
.release { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding-bottom: 48px; }
.release + .release { padding-top: 48px; border-top: 1px solid var(--line-soft); }
.release-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.version { padding: 5px 12px; border: 1px solid var(--gold); border-radius: 999px; background: rgba(232, 184, 96, 0.08); color: var(--gold-top);
  font: 400 18px/1 var(--title); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.release-head time { font: 600 14px var(--ui); letter-spacing: 0.05em; color: var(--soft); }
.release-head .anchor { margin-left: auto; color: var(--faint); font: 600 13px var(--ui); letter-spacing: 0.06em; text-decoration: none; }
.release-head .anchor:hover { color: var(--gold-top); }
.release h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.12; }
.release h3 { display: flex; align-items: center; gap: 10px; margin-top: 8px; font: 700 14px var(--ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--tone, var(--gold)); }
.release h3::before { content: ''; width: 7px; height: 7px; transform: rotate(45deg); background: var(--tone, var(--gold)); }
.release ul { display: flex; flex-direction: column; gap: 9px; margin: 0; padding-left: 1.2em; }
.release li { padding-left: 4px; color: var(--text); }
.release li::marker { color: var(--tone, var(--gold)); }
.release-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.release-media figure { margin: 0; }
.release-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line-soft); border-radius: 10px; }
.release-media figcaption { margin-top: 6px; color: var(--soft); font-size: 14px; }

@media (max-width: 960px) {
  .with-toc, .news-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; max-height: none; }
  .toc .eyebrow { width: 100%; margin-bottom: 2px; }
  .toc a { padding: 6px 12px; border: 1px solid var(--line-soft); border-radius: 999px; font-size: 14px; }
  .agenda { position: static; }
}

@media (max-width: 600px) {
  .news-card { grid-template-columns: 1fr; }
  .news-card img { aspect-ratio: 16 / 9; min-height: 0; }
  .summary { padding: 20px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Pedaços de comando no texto (@denunciar, /w GM) e os tons das seções das notas. */
.prose code, .release code { padding: 1px 6px; border: 1px solid var(--line-soft); border-radius: 5px; background: var(--night-deep); color: var(--parchment);
  font: 500 0.92em ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.release section { display: flex; flex-direction: column; gap: 10px; }
.release [data-tone='added'] { --tone: var(--ok); }
.release [data-tone='fixed'] { --tone: var(--skyndi); }
.release [data-tone='testFocus'] { --tone: var(--gold); }
.release [data-tone='knownIssues'] { --tone: var(--mylinn); }
html:not(.js) [data-loading] { display: none; }
.agenda .button svg { width: 18px; height: 18px; }
