/* Monocraft: fonte no estilo do Minecraft (SIL OFL 1.1, veja fonts/OFL.txt) */
@font-face { font-family: "Monocraft"; src: url("fonts/Monocraft.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Monocraft"; src: url("fonts/Monocraft-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Monocraft"; src: url("fonts/Monocraft-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #050508;
  --surface: rgba(14, 14, 24, 0.92);
  --surface2: rgba(255, 255, 255, 0.025);
  --border: #1d1c2b;
  --border2: #2c2a40;
  --text: #e6e3f0;
  --muted: #a19cb5;
  --yellow: #f2c94c;
  --purple: #8b6cf6;
  --blue: #5b93f7;
  --green: #8fbd90;
  --ok: #4ade80;
  --bad: #f87171;
  --wrap: 1040px;
  color-scheme: dark;
}

* { box-sizing: border-box; border-radius: 0 !important; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: "Monocraft", ui-monospace, monospace;
  font-size: 14px;
  color: var(--text);
  background:
    radial-gradient(60vw 50vh at 8% 0%, rgba(139, 108, 246, 0.09), transparent 70%),
    radial-gradient(60vw 50vh at 95% 100%, rgba(91, 147, 247, 0.07), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.7;
}
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 50% 15%, rgba(111, 79, 171, .1), transparent 65%); animation: sky-breath 16s ease-in-out infinite alternate; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; }
h1, h2, h3 { font-weight: 700; line-height: 1.3; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 20; padding: 10px 16px; background: var(--bg); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Estrela em pixel art ---------- */
.pixel-star { shape-rendering: crispEdges; }
.pixel-icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex: none; fill: currentColor; shape-rendering: crispEdges; }
/* (seletores sem ancestral: as cópias dentro de <use> só herdam o estilo do original) */
.star-line { fill: var(--yellow); }
.star-core { fill: #fff4c2; animation: core 3s steps(3) infinite; }
@keyframes core { 50% { opacity: .35; } }

/* ---------- Navegação ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px;
  max-width: var(--wrap); margin: 0 auto; padding: 20px 16px;
  width: 100%;
  background: rgba(5, 5, 8, .85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
}
.nav::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--purple), var(--yellow)); transform: scaleX(var(--reading-progress, 0)); transform-origin: left; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo-star { width: 34px; height: 34px; transition: transform .45s ease; }
.logo:hover .logo-star { transform: rotate(90deg); }
.nav nav { min-width: 0; display: flex; justify-content: flex-end; gap: 24px; align-items: center; }
.nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-mobile-community { display: none; }
.nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; flex: none; background: var(--surface2); border: 1px solid var(--border2); color: var(--text); cursor: pointer; }
.nav-toggle svg { display: block; width: 24px; height: 24px; fill: currentColor; shape-rendering: crispEdges; }
.nav-toggle .menu-cross { display: none; }
.nav-toggle[aria-expanded="true"] .menu-bars { display: none; }
.nav-toggle[aria-expanded="true"] .menu-cross { display: block; }
.nav nav a:not(.btn) { color: var(--muted); }
.nav nav a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav nav a:not(.btn)[aria-current="page"] { color: var(--yellow); text-decoration: underline; text-underline-offset: 6px; }

main { width: 100%; flex: 1; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- Topo ---------- */
body[data-page="inicio"] main { display: flex; flex-direction: column; justify-content: center; gap: 30px; padding-top: 48px; padding-bottom: 40px; }
.hero { text-align: center; max-width: 720px; margin: 0 auto; }
.hero-heading { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 14px 0 20px; }
.hero-star { width: 56px; height: 56px; display: block; flex: none; filter: drop-shadow(0 0 16px rgba(242, 201, 76, .25)); animation: star-float 6s ease-in-out infinite; }
.title {
  font-size: clamp(40px, 8vw, 72px); margin: 0;
  letter-spacing: .14em; padding-left: .14em; text-transform: uppercase;
}
.hero-promise { font-size: clamp(18px, 2.6vw, 25px); line-height: 1.65; margin: 0 0 14px; }
.hero-promise strong { color: #f2d58c; }
.tagline { color: var(--muted); max-width: 630px; margin: 0 auto 28px; }
.hero .tagline { max-width: 560px; margin-bottom: 0; }
.access-note { margin: 14px 0 0; color: var(--muted); font-size: 11px; }

/* ---------- Filme da página inicial ---------- */
.home-video { width: 100%; max-width: 820px; margin: 8px auto 0; }
.home-video-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 16px; }
.home-video-heading .eyebrow { margin-bottom: 8px; font-size: 10px; letter-spacing: .1em; }
.home-video-heading h2 { margin: 0; font-size: clamp(18px, 2.8vw, 24px); color: #f2d58c; }
.video-youtube-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: 10px; }
.video-youtube-link:hover { color: var(--yellow); }
.video-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 2px solid var(--border2); border-top-color: var(--purple); background: #050508; box-shadow: 6px 6px 0 rgba(139, 108, 246, .09), 0 0 44px rgba(139, 108, 246, .07); }
.video-cover { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; border: 0; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; isolation: isolate; }
.video-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 5, 8, .1), rgba(5, 5, 8, .65)); pointer-events: none; }
.video-cover:hover { text-decoration: none; }
.video-cover:focus-visible { outline: 2px solid var(--yellow); outline-offset: -6px; }
.video-poster { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform .6s ease, opacity .3s; }
.video-cover:hover .video-poster, .video-cover:focus-visible .video-poster { transform: scale(1.035); opacity: 1; }
.video-play { display: grid; place-items: center; width: 80px; height: 68px; flex: none; border: 2px solid #fff0b6; background: var(--yellow); color: #17120b; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2), 5px 5px 0 rgba(0, 0, 0, .4); transition: transform .2s, background .2s; }
.video-play svg { display: block; width: 30px; height: 30px; fill: currentColor; shape-rendering: crispEdges; }
.video-cover:hover .video-play, .video-cover:focus-visible .video-play { transform: translateY(-3px); background: #f7d76f; }
.video-cover:active .video-play { transform: translateY(2px); }
.video-cover-label { font-size: 12px; text-shadow: 0 2px 8px #050508; }
.video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.home-video-note { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 18px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.home-video-note .pixel-icon { width: 12px; height: 12px; color: var(--purple); }

.ip {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--surface); border: 2px solid var(--border2);
  color: var(--text); padding: 10px 24px; cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 700;
  transition: border-color .15s;
}
.ip:hover { border-color: var(--yellow); }
.ip small { color: var(--muted); font-size: 11px; font-weight: 400; }

/* ---------- Cabeçalhos das páginas ---------- */
.page-header { text-align: center; padding: 48px 0 26px; }
.eyebrow { color: var(--yellow); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 14px; }
.eyebrow .pixel-icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 10px; }
.page-header h1 { font-size: clamp(26px, 4.5vw, 42px); line-height: 1.5; margin: 0 0 22px; }
.text-accent { color: #f2d58c; }
.page-cta { text-align: center; padding: 40px 28px; background: radial-gradient(ellipse at 50% 0, rgba(139, 108, 246, .12), transparent 75%), var(--surface); }
.page-cta h2 { margin-top: 0; font-size: clamp(21px, 3vw, 28px); }
.page-cta > .muted { max-width: 640px; margin: 0 auto; }
.identity-tags { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 16px; }
.identity-tags li { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; padding: 5px 10px; color: var(--muted); background: rgba(139, 108, 246, .05); border: 1px solid var(--border2); }
.identity-tags li::before { content: ""; width: 3px; height: 3px; flex: none; background: var(--green); }

/* ---------- Botões (estilo botão do Minecraft) ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-block; cursor: pointer;
  border: 2px solid #0b0a06; outline: 2px solid var(--yellow); outline-offset: -4px;
  background: var(--yellow); color: #0b0a06;
  font: inherit; font-weight: 700; font-size: 14px;
  padding: 11px 22px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .22);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn::after { content: ""; position: absolute; inset: -50% auto -50% -60%; width: 30%; background: rgba(255, 255, 255, .18); transform: skewX(-20deg); pointer-events: none; }
.btn:hover { background: #f7d76f; text-decoration: none; transform: translateY(-3px); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .22), 0 6px 24px rgba(242, 201, 76, .12); }
.btn:hover::after { animation: button-shine .65s ease; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border2); outline-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: rgba(139, 108, 246, .12); border-color: var(--purple); }
.nav .btn-small { padding: 6px 12px; font-size: 13px; }
.nav .btn:hover, .nav .btn:active { transform: none; }

/* Jogar abre a escolha de launcher; copiar o IP é uma ação separada. */
.play-button { display: inline-flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; }
.ip[data-copy-state="copied"] { border-color: var(--green); }
.copy-toast { position: fixed; z-index: 30; left: 50%; bottom: 20px; width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border: 1px solid var(--yellow); background: #14131f; color: var(--text); font-size: 12px; text-align: center; overflow-wrap: anywhere; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity .16s ease, transform .16s ease; }
.copy-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.clipboard-fallback { position: fixed; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; font-size: 16px; pointer-events: none; }

/* ---------- Escolha de launcher ---------- */
html.play-dialog-open { overflow: hidden; }
.play-dialog { width: min(880px, calc(100% - 40px)); max-width: none; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); margin: auto; padding: 38px; overflow-y: auto; border: 2px solid var(--border2); border-top-color: var(--purple); background: radial-gradient(ellipse at 50% 0, rgba(139, 108, 246, .12), transparent 70%), #0e0e18; color: var(--text); font: inherit; box-shadow: 0 24px 100px rgba(0, 0, 0, .6); }
.play-dialog::backdrop { background: rgba(5, 5, 8, .84); backdrop-filter: blur(8px); }
.play-dialog[open] { animation: launcher-dialog-enter .45s cubic-bezier(.16, 1, .3, 1) both; }
.play-dialog[open]::backdrop { animation: launcher-backdrop-enter .35s ease-out both; }
.play-dialog[open] > .eyebrow, .play-dialog[open] > h2, .play-dialog[open] > #playDialogDescription { animation: launcher-content-enter .4s ease-out both; }
.play-dialog[open] > .eyebrow { animation-delay: .05s; }
.play-dialog[open] > h2 { animation-delay: .09s; }
.play-dialog[open] > #playDialogDescription { animation-delay: .13s; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border2); background: transparent; color: var(--muted); font: inherit; font-size: 25px; cursor: pointer; }
.dialog-close:hover { color: var(--text); border-color: var(--purple); }
.play-dialog .eyebrow { padding-right: 30px; }
.play-dialog h2 { margin: 0 0 16px; font-size: clamp(21px, 3.5vw, 29px); line-height: 1.55; }
.play-dialog h2:focus { outline: none; }
.play-dialog > .muted { max-width: 680px; margin: 0; font-size: 12px; }
.installer-offer { display: grid; justify-items: start; gap: 12px; margin: 26px 0 0; }
.installer-offer .tiny { margin: 0; max-width: 620px; }
.play-dialog[open] .installer-offer, .play-dialog[open] .installer-more { animation: launcher-content-enter .4s cubic-bezier(.16, 1, .3, 1) .18s both; }
.play-dialog[open] .installer-more { animation-delay: .26s; }
.installer-next { margin: 22px 0 0; padding: 16px 18px; border-left: 2px solid var(--ok); background: rgba(74, 222, 128, .06); animation: launcher-content-enter .35s ease-out both; }
.installer-next .eyebrow { color: var(--ok); margin: 0 0 8px; font-size: 10px; }
.installer-next ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.installer-next p.muted { margin: 0; font-size: 12px; }
.installer-next strong { color: var(--text); }
.installer-more { display: inline-block; margin-top: 20px; padding: 8px 0; color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.installer-more:hover { color: var(--text); }
.os-choice { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.os-choice button { padding: 9px 16px; font: inherit; font-size: 11px; color: var(--muted); background: transparent; border: 1px solid var(--border2); cursor: pointer; }
.os-choice button:hover { color: var(--text); }
.os-choice button[aria-pressed="true"] { color: var(--text); border-color: var(--purple); background: rgba(139, 108, 246, .12); }
.command-panel + .command-panel { margin-top: 24px; }
.command-panels.has-choice .command-panel { display: none; margin-top: 0; }
.command-panels.has-choice .command-panel.is-active { display: block; }
.command-panels.has-choice .command-os { display: none; }
.command-os { margin: 0 0 8px; font-size: 13px; }
.command-panel p { margin: 0 0 12px; font-size: 12px; line-height: 1.9; }
.command { display: flex; align-items: stretch; width: 100%; max-width: 640px; background: #050508; border: 2px solid var(--border2); border-left-color: var(--yellow); }
.command code { flex: 1; min-width: 0; padding: 14px 16px; overflow-x: auto; font: inherit; font-size: 13px; color: var(--yellow); white-space: nowrap; user-select: all; }
.command .command-copy { flex: none; margin: 0; }
.command .command-copy:hover { transform: none; }
.installer-card .tiny[data-installer-detected] { margin: 14px 0 0; }
.installer-help h2 { margin: 0 0 12px; font-size: 17px; }
.installer-help p { margin: 0; font-size: 12px; line-height: 1.9; }
kbd { padding: 1px 6px; font: inherit; font-size: .92em; color: var(--text); background: var(--surface2); border: 1px solid var(--border2); }
.launcher-official { --launcher-accent: #f2ce75; }
.launcher-prism { --launcher-accent: #b39afa; }
.launcher-sklauncher { --launcher-accent: #7eafff; }
.launcher-logo { display: block; flex: none; object-fit: contain; image-rendering: auto; }

/* ---------- Blocos (todas as seções têm o mesmo formato) ---------- */
.block { background: var(--surface); border: 2px solid var(--border); padding: 26px 28px; margin: 0 0 24px; }
.block-head {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 22px; padding-bottom: 14px; border-bottom: 2px solid var(--border);
}
.block-head h2 { margin: 0; font-size: 18px; flex: 1; }
.section-icon { width: 24px; height: 24px; color: var(--yellow); }
.muted { color: var(--muted); }
.tiny { font-size: 12px; margin: 14px 0 0; }

/* ---------- Fragmentos da lore ---------- */
.lore { margin: 56px auto; max-width: 650px; text-align: center; color: #c2b9db; padding: 0 12px; }
.lore::before {
  content: "fragmento"; display: block; margin-bottom: 10px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--purple);
}
.lore p { margin: 0; font-style: italic; font-size: 15px; }
.lore cite { display: block; margin-top: 10px; font-style: normal; font-size: 12px; color: var(--muted); }
.lore:empty { display: none; }

/* ---------- Status ---------- */
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; padding: 4px 10px; border: 2px solid var(--border); }
.badge i { width: 8px; height: 8px; background: var(--muted); }
.badge.on i { background: var(--ok); animation: pulse 2s steps(2) infinite; }
.badge.on b { color: var(--ok); }
.badge.off i { background: var(--bad); }
.badge.off b { color: var(--bad); }
@keyframes pulse { 50% { opacity: .35; } }

.server-card { width: 100%; max-width: 620px; margin: 0 auto; padding: 18px 22px; border: 1px solid var(--border2); background: var(--surface); }
.server-status-heading, .server-details { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.server-status-heading h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; }
.server-status-heading .pixel-icon { width: 16px; height: 16px; color: var(--yellow); }
.server-details { margin-top: 14px; }
.server-details p { margin: 0; font-size: 12px; }
.server-players strong { font-size: 22px; color: var(--blue); }
.server-capacity { color: var(--muted); }
.server-version { color: #b8a4ed; }
.status-updated { margin: 10px 0 0; font-size: 9px; color: var(--muted); }

/* ---------- Apoio ao projeto ---------- */
.support-card { width: 100%; max-width: 820px; margin: 8px auto 0; padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; border: 2px solid var(--border2); border-top-color: var(--yellow); background: radial-gradient(ellipse at 0 0, rgba(242, 201, 76, .07), transparent 70%), var(--surface); box-shadow: 5px 5px 0 rgba(139, 108, 246, .07); }
.support-card .eyebrow { margin-bottom: 12px; font-size: 10px; letter-spacing: .08em; }
.support-card h2 { margin: 0 0 14px; color: #f2d58c; font-size: clamp(18px, 2.4vw, 22px); line-height: 1.6; }
.support-copy > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.support-action { display: grid; justify-items: center; gap: 14px; max-width: 260px; }
.support-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; font-size: 12px; text-align: center; }
.support-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.8; text-align: center; }

/* ---------- Pontos fortes ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { position: relative; background: var(--surface2); border: 2px solid var(--border); border-top-color: var(--accent); padding: 24px; transition: transform .3s, border-color .3s, background .3s; }
.feature:hover { transform: translateY(-5px); border-color: var(--accent); background: rgba(255, 255, 255, .035); }
.feature:hover .f-icon { transform: translateY(-4px); }
.feature h3 { margin: 14px 0 8px; font-size: 15px; color: var(--accent); }
.feature p { margin: 0; color: var(--muted); font-size: 13px; }
.f-icon { width: 36px; height: 36px; fill: var(--accent); fill-rule: evenodd; shape-rendering: crispEdges; transition: transform .3s; }
.f-purple { --accent: var(--purple); }
.f-blue { --accent: var(--blue); }
.f-yellow { --accent: var(--yellow); }
.f-green { --accent: var(--green); }

/* ---------- Regras ---------- */
.rules-section { margin-bottom: 40px; }
.rules-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.rule-card { overflow: hidden; border: 1px solid var(--border2); background: var(--surface); transition: border-color .2s; }
.rule-card:hover { border-color: #5c5279; }
.rule-illustration { height: 126px; display: grid; place-items: center; border-bottom: 1px solid var(--border2); background-color: #10121c; background-image: linear-gradient(rgba(139, 108, 246, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 108, 246, .035) 1px, transparent 1px); background-size: 12px 12px; }
.rule-art { display: block; width: 144px; height: 108px; shape-rendering: crispEdges; image-rendering: pixelated; }
.rule-copy { padding: 18px 20px 22px; }
.rule-number { display: block; margin-bottom: 8px; color: #a88bee; font-size: 10px; letter-spacing: .12em; }
.rule-copy h3 { margin: 0 0 12px; color: #f2d58c; font-size: 15px; line-height: 1.5; }
.rule-copy p { margin: 0; color: #b7b1c8; font-size: 12px; line-height: 1.85; }
@media (max-width: 900px) { .rules-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Entrada e autenticação ---------- */
.access-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.access-grid .feature p + p { margin-top: 12px; }

/* ---------- Modpack e guias de instalação ---------- */
.modpack-invite { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.modpack-invite h2 { font-size: 18px; margin: 0 0 10px; }
.modpack-invite p { margin: 0; max-width: 550px; font-size: 12px; }
.modpack-invite .btn { flex: none; white-space: nowrap; }
.installation-guide { margin: 36px 0; }
.installation-guide > h2 { font-size: 18px; margin: 0 0 20px; line-height: 1.6; }
.installer-card h2 { font-size: 21px; margin: 0 0 16px; }
.installer-card > .muted { font-size: 12px; }
.installation-steps { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; counter-reset: installation-step; }
.installation-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 18px; padding: 24px; border: 1px solid var(--border2); background: var(--surface); counter-increment: installation-step; }
.installation-steps li::before { content: counter(installation-step, decimal-leading-zero); color: var(--yellow); font-size: 21px; line-height: 1.5; }
.installation-steps h3 { font-size: 15px; line-height: 1.6; margin: 0 0 10px; }
.installation-steps p { color: var(--muted); font-size: 12px; margin: 0; }
.installation-steps strong { color: var(--text); }
.installation-steps .step-path { padding: 12px; margin-top: 16px; border-left: 2px solid var(--purple); background: rgba(139, 108, 246, .07); color: #c3b3ec; font-size: 11px; overflow-wrap: anywhere; }
.page-cta .ip { margin-top: 22px; max-width: 100%; overflow-wrap: anywhere; }

/* ---------- A visão do Astral ---------- */
.manifesto { display: grid; grid-template-columns: .85fr 1.4fr; gap: 24px 48px; padding: 38px; }
.manifesto h2 { font-size: clamp(23px, 3vw, 30px); line-height: 1.65; margin: 0; }
.manifesto-copy p { margin: 0 0 20px; color: var(--muted); }
.manifesto-copy p:last-child { margin-bottom: 0; }
.manifesto-copy strong { color: var(--text); font-weight: 400; }
.pixel-divider { display: block; width: 32px; height: 4px; background: var(--yellow); margin-top: 26px; box-shadow: 12px 8px 0 rgba(139, 108, 246, .45); }
.manifesto-quote { grid-column: 1 / -1; text-align: center; margin: 8px 0 0; padding-top: 28px; border-top: 1px solid var(--border2); font-size: clamp(16px, 2.5vw, 21px); color: var(--muted); line-height: 1.9; }
.manifesto-quote strong { color: #f2d58c; }
.lore-shelf { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 36px 28px; }
.lore-shelf h2 { font-size: 26px; line-height: 1.5; margin-top: 0; }
.lore-shelf .muted { font-size: 13px; }
.fragment-book { position: relative; border: 2px solid #3a304e; border-top-color: var(--purple); background: linear-gradient(135deg, rgba(139, 108, 246, .08), transparent), var(--surface); box-shadow: 6px 6px 0 rgba(139, 108, 246, .08); padding: 28px; }
.fragment-book-label { font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: #b29ee7; }
.fragment-copy { min-height: 180px; display: flex; align-items: center; padding: 14px 0; }
.fragment-copy blockquote { margin: 0; }
.fragment-copy p { font-size: 15px; line-height: 1.9; font-style: italic; color: #d7cde8; }
.fragment-copy cite { font-size: 11px; font-style: normal; color: var(--muted); }
.fragment-controls { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 16px; border-top: 1px solid var(--border2); font-size: 10px; color: var(--muted); }
.fragment-progress { display: inline-flex; align-items: center; gap: 6px; }
.fragment-progress .pixel-icon { width: 12px; height: 12px; color: #9a86bc; opacity: .4; transition: color .25s, opacity .25s; }
.fragment-progress .is-current { color: var(--yellow); opacity: 1; }
.text-button { background: transparent; border: 0; color: #c1a9ff; cursor: pointer; font: inherit; padding: 8px 0; }
.text-button:hover { color: var(--yellow); }
.memories { margin: 0 0 36px; }
.section-heading { text-align: center; padding: 12px 0 24px; }
.section-heading h2 { font-size: clamp(20px, 3vw, 28px); line-height: 1.6; margin: 0 0 12px; }
.section-heading .muted { font-size: 12px; }
.memory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.memory-card { background: var(--surface); border: 1px solid var(--border2); padding: 26px; display: flex; flex-direction: column; transition: transform .3s, border-color .3s; }
.memory-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.memory-label { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.memory-card h3 { font-size: 17px; line-height: 1.6; margin: 20px 0 12px; }
.memory-card p { color: var(--muted); font-size: 12px; margin: 0 0 24px; }
.memory-dots { display: flex; gap: 6px; margin-top: auto; }
.memory-dots i { display: block; width: 5px; height: 5px; background: var(--accent); opacity: .35; animation: memory-glow 4s ease-in-out infinite; }
.memory-dots i:nth-child(2) { animation-delay: .4s; }
.memory-dots i:nth-child(3) { animation-delay: .8s; }
.entry-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0 0 28px; list-style: none; }
.entry-steps li { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); padding: 14px; border: 1px solid var(--border2); background: var(--surface); }
.entry-steps .pixel-icon { color: var(--yellow); }

/* ---------- Rodapé ---------- */
footer { width: calc(100% - 32px); max-width: calc(var(--wrap) - 32px); margin: 32px auto 0; padding: 20px 0 24px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 10px; }
.footer-meta p { margin: 0; }
.footer-meta .footer-legal { margin-top: 5px; color: #827c94; font-size: 9px; }
.footer-legal a { color: inherit; }
.footer-legal a:hover { color: var(--text, #fff); }
.footer-social { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--muted); transition: color .2s, transform .2s; }
.footer-social a:hover { color: var(--yellow); transform: translateY(-2px); }
.legal h3 { font-size: 13px; margin: 22px 0 10px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; line-height: 1.9; }
.legal li { margin-bottom: 6px; }
.legal code { font-size: 0.95em; }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; flex: none; border: 1px solid var(--border2); background: transparent; color: var(--muted); font: inherit; font-size: 9px; padding: 8px 10px; cursor: pointer; }
.motion-toggle:hover { border-color: var(--purple); color: var(--text); }
.motion-toggle:disabled { cursor: default; }
.motion-icon { width: 8px; height: 10px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.motion-toggle[aria-pressed="true"] .motion-icon { width: 0; height: 0; border: 5px solid transparent; border-left: 8px solid currentColor; border-right: 0; }

/* ---------- Movimento: entrada, descoberta e microinterações ---------- */
.hero > *, .page-header > * { animation: page-arrive .75s ease both; }
.hero > :nth-child(2), .page-header > :nth-child(2) { animation-delay: .08s; }
.hero > :nth-child(3), .page-header > :nth-child(3) { animation-delay: .16s; }
.hero > :nth-child(4), .page-header > :nth-child(4) { animation-delay: .24s; }
.hero > :nth-child(n+5) { animation-delay: .32s; }
.reveal-ready { transition: opacity .65s ease var(--reveal-delay, 0s), translate .65s ease var(--reveal-delay, 0s); }
.reveal-ready:not(.is-visible):not(:focus-within) { opacity: 0; translate: 0 24px; }
@keyframes page-arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mobile-arrive { from { translate: 0 6px; } to { translate: 0 0; } }
@keyframes star-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes sky-breath { from { opacity: .3; } to { opacity: 1; } }
@keyframes button-shine { to { left: 140%; } }
@keyframes memory-glow { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }
@keyframes launcher-dialog-enter { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes launcher-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes launcher-content-enter { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 760px) {
  body { background-attachment: scroll; }
  .features, .memory-grid, .manifesto, .lore-shelf, .access-grid { grid-template-columns: minmax(0, 1fr); }
  .block { padding: 20px 18px; }
  body[data-page="inicio"] main { padding-top: 30px; padding-bottom: 24px; gap: 26px; }
  .hero-heading { gap: 14px; margin-bottom: 18px; }
  .hero-star { width: 36px; height: 36px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: .08em; }
  .hero-promise { font-size: 19px; }
  .hero .tagline { font-size: 12px; }
  .home-video { margin-top: 0; }
  .video-cover { gap: 12px; }
  .video-play { width: 60px; height: 54px; }
  .video-play svg { width: 24px; height: 24px; }
  .video-cover-label { font-size: 11px; }
  .home-video-note { font-size: 9px; }
  .support-card { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 0; padding: 24px 20px; }
  .support-action { max-width: none; justify-items: stretch; }
  .page-header { padding-top: 36px; }
  .page-header h1 { font-size: clamp(22px, 5.2vw, 36px); }
  .page-header .tagline { font-size: 13px; }
  .manifesto { gap: 28px; }
  .manifesto-copy { font-size: 13px; }
  .manifesto-quote { grid-column: 1; }
  .lore-shelf { gap: 24px; padding: 28px 2px; }
  .lore-shelf h2 { font-size: 23px; }
  .fragment-book { padding: 24px; }
  .fragment-copy { min-height: 160px; }
  .memory-card { padding: 24px; }
  .entry-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .entry-steps li { padding: 12px 16px; }
  .modpack-invite { flex-direction: column; align-items: stretch; }
  .command code { padding: 12px; font-size: 11px; }
  .play-dialog { width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 28px 20px; }
  .play-dialog .eyebrow { font-size: 10px; }
  .skip-modpack { min-height: 44px; }
  .installation-steps li { padding: 20px 16px; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
  .installation-steps li::before { font-size: 18px; }
  footer { flex-direction: column; text-align: center; gap: 14px; margin-top: 24px; }
  .footer-social { margin-left: 0; }
  button, .btn { min-height: 44px; }
  .btn:not(.play-button) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
  .reveal-ready { transition: none; }
  .reveal-ready:not(.is-visible):not(:focus-within) { opacity: 1; translate: none; }
  .reveal-ready.is-visible { animation: mobile-arrive .32s ease; }
}
@media (max-width: 600px) {
  .rules-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rule-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); }
  .rule-illustration { height: auto; border-bottom: 0; border-right: 1px solid var(--border2); }
  .rule-art { width: 72px; height: 54px; }
  .rule-copy { padding: 16px; }
  .rule-copy h3 { font-size: 13px; margin-bottom: 10px; }
  .server-card { padding: 16px; }
  .server-details { gap: 10px; }
  .server-details p { font-size: 11px; }
}
@media (max-width: 840px) {
  html { scroll-padding-top: 84px; }
  .nav { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 10px 12px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); background: var(--bg); backdrop-filter: none; }
  .nav .logo { grid-column: 1; grid-row: 1; max-width: 100%; min-width: 0; min-height: 44px; gap: 8px; font-size: 13px; letter-spacing: .08em; }
  .nav .logo [data-name] { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .nav .logo-star { width: 28px; height: 28px; flex: none; }
  .nav-actions { grid-column: 2; grid-row: 1; gap: 8px; }
  .nav .nav-community { display: none; }
  .nav .play-button { width: 104px; min-width: 104px; height: 44px; padding: 6px 8px; font-size: 12px; }
  .nav .btn::after { display: none; }
  .nav nav { grid-column: 1 / -1; grid-row: 2; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px 0 2px; border-top: 1px solid var(--border2); max-height: calc(100vh - 76px); max-height: calc(100svh - 76px); overflow-y: auto; }
  .nav nav a, .nav .nav-mobile-community { display: flex; align-items: center; justify-content: center; min-height: 48px; min-width: 0; padding: 10px 8px; border: 1px solid var(--border2); background: var(--surface2); text-align: center; font-size: 14px; line-height: 1.4; }
  .nav nav a:not(.btn)[aria-current="page"] { color: var(--yellow); border-color: #756336; background: rgba(242, 201, 76, .06); text-decoration: none; }
}
@media (min-width: 841px) and (hover: none) {
  .nav nav a, .nav .btn { min-height: 44px; }
}
@media (max-width: 840px) and (max-height: 500px) {
  html { scroll-padding-top: 16px; }
  .nav { position: relative; }
}
html[data-motion="off"], html[data-motion="off"] * { scroll-behavior: auto; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after, html[data-motion="off"] .play-dialog::backdrop { animation: none !important; transition: none !important; }
html[data-motion="off"] .reveal-ready { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after, .play-dialog::backdrop { animation: none !important; transition: none !important; }
  .reveal-ready { opacity: 1 !important; translate: none !important; }
}
[hidden] { display: none !important; }
