/* Perdidos — visual de vidro escuro (12/10/2026).
   Mesma linguagem da tela de seleção/criação do jogo (Missão 16) e dos tokens de docs/ui/ESPECIFICACAO-MENUS.md
   (seções 1 e 2). Página inicial: só este arquivo + motion.css. Guia: style.css + portal.css + motion.css + este. */

/* ---------- 1. Tokens ---------- */
:root {
  /* 1.1 cores */
  --glass: rgba(26, 20, 14, .78);          /* GLASS #1A140E 78% */
  --glass-solid: rgba(26, 20, 14, .92);    /* preset sem desfoque */
  --glass-edge: rgba(201, 162, 74, .40);   /* GLASS_EDGE #C9A24A 40% */
  --glass-shadow: 0 4px 16px rgba(0, 0, 0, .35); /* GLASS_SHADOW: única exceção ao preto, só sombra */
  --card: rgba(42, 33, 24, .78);           /* CARD #2A2118 */
  --card-hover: rgba(58, 46, 33, .86);     /* CARD_HOVER #3A2E21 */
  --field: rgba(18, 14, 10, .86);          /* FIELD #120E0A */
  --gold: #E3B85C;
  --gold-dim: #A8822F;
  --text: #F3E9D2;
  --text-dim: #B9AA8C;
  --text-disabled: #7A6E5A;
  --primary: #2E6B3F;
  --primary-hover: #3A8350;
  --danger: #8E3B2E;
  --error: #E8886E;
  --ok: #9CD086;
  --shade: rgba(12, 9, 7, .55);
  --page: #120E0A;                          /* fundo da página: nunca preto puro */
  --page-2: #1A140E;
  --sep: rgba(168, 130, 47, .30);           /* separador GOLD_DIM 30% */
  /* raridade (usada nos selos de grupo das missões) */
  --r-common: #B9AA8C; --r-uncommon: #8FC47A; --r-rare: #6FA8DC; --r-epic: #B58BE0; --r-legend: #E3B85C; --r-atroz: #E07A5F;
  /* 1.2 tipografia */
  --font-title: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-text: 'Nunito', 'Open Sans', system-ui, sans-serif;
  /* 1.3 grade e formas */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --r-panel: 12px; --r-card: 8px; --r-slot: 6px;
  --btn-h: 44px;
  --wrap: 1200px;
  --gutter: 16px;
  /* 1.5 movimento */
  --t-hover: 120ms;
  --t-fast: 160ms;
  --t-open: 220ms;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}

/* ---------- 2. Base da página inicial ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body.portal {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--page); color: var(--text);
  font: 400 16px/1.65 var(--font-text);
}
/* fundo: a pintura do Porto, escurecida e desfocada, para o vidro ter o que desfocar */
body.portal::before {
  content: ""; position: fixed; inset: -40px; z-index: -2;
  background: url('../img/arte/hero_porto_1280.webp?v=2') center / cover no-repeat;
  filter: blur(28px) saturate(.9) brightness(.32);
}
body.portal::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 20% 0%, rgba(227, 184, 92, .08), transparent 55%),
              linear-gradient(180deg, rgba(18, 14, 10, .35), rgba(18, 14, 10, .82));
}
body.portal img { display: block; max-width: 100%; height: auto; }
body.portal a { color: inherit; text-decoration: none; }
body.portal p { color: var(--text-dim); margin: 0 0 var(--s4); }
body.portal strong { color: var(--text); font-weight: 700; }
body.portal em { font-style: normal; color: var(--gold); }
body.portal button, body.portal input, body.portal select { font: inherit; color: inherit; }
body.portal button { cursor: pointer; }
body.portal [hidden] { display: none !important; }
body.portal .pixel { image-rendering: pixelated; }
body.portal h1, body.portal h2, body.portal h3, body.portal h4 {
  font-family: var(--font-title); font-weight: 600; line-height: 1.15; margin: 0; color: var(--text); letter-spacing: .01em;
}
body.portal h2 { font-size: clamp(28px, 3.2vw, 42px); }
body.portal h3 { font-size: 22px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
body.portal .wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
body.portal .skip-link { position: fixed; left: var(--s4); top: -100px; z-index: 100; background: var(--glass-solid); color: var(--gold) !important; padding: var(--s3) var(--s5); border: 1px solid var(--glass-edge); border-radius: var(--r-card); }
body.portal .skip-link:focus { top: var(--s3); }

/* ---------- 3. Componentes ---------- */
/* GlassPanel */
body.portal .glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-panel);
  box-shadow: var(--glass-shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.portal .glass { background: var(--glass-solid); }
}
/* WindowHeader: versalete dourado, como "SEUS PERSONAGENS" na tela do jogo */
body.portal .eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font: 600 12px/1.4 var(--font-title); letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
body.portal .eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(156, 208, 134, .18); }

/* Botões: PrimaryButton (verde de ação com borda dourada), SecondaryButton (contorno) */
body.portal .btn, body.guide .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: var(--btn-h); padding: 0 var(--s5);
  border-radius: var(--r-card); border: 1px solid var(--glass-edge);
  background: var(--primary); color: var(--text);
  font: 700 13px/1.2 var(--font-title); letter-spacing: .1em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(227, 184, 92, .25), var(--glass-shadow);
  transition: background var(--t-hover) var(--ease-out), transform var(--t-hover) var(--ease-out), filter var(--t-hover) var(--ease-out);
}
body.portal .btn:hover, body.guide .btn:hover { background: var(--primary-hover); transform: translateY(-2px); }
body.portal .btn:active, body.guide .btn:active { filter: brightness(.94); transform: none; transition-duration: 80ms; }
body.portal .btn.outline, body.guide .btn.ghost, body.guide .btn.outline {
  background: var(--card); color: var(--text); box-shadow: none;
}
body.portal .btn.outline:hover, body.guide .btn.ghost:hover, body.guide .btn.outline:hover { background: var(--card-hover); }
body.portal .text-link {
  display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s2) 0;
  color: var(--gold) !important; font-weight: 700; font-size: 14px;
  border-bottom: 1px solid var(--sep); transition: border-color var(--t-hover), transform var(--t-hover);
}
body.portal .text-link:hover { border-color: var(--gold); }

/* Cartão / linha (CARD + hover +8% e 2 px em 120 ms) */
body.portal .card {
  background: var(--card); border: 1px solid var(--glass-edge); border-radius: var(--r-card);
  transition: background var(--t-hover) var(--ease-out), transform var(--t-hover) var(--ease-out), filter var(--t-hover) var(--ease-out);
}
body.portal a.card:hover, body.portal .card.hoverable:hover, body.portal button.card:hover { background: var(--card-hover); filter: brightness(1.08); transform: translateY(-2px); }

/* Chips/abas (TabBar): selecionado = texto GOLD + sublinhado dourado de 2 px */
body.portal .chip-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s5); padding: 0; list-style: none; }
body.portal .chip {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 40px; padding: 0 var(--s4); border-radius: var(--r-card);
  background: var(--card); border: 1px solid var(--glass-edge); color: var(--text-dim);
  font: 600 14px/1 var(--font-text);
  transition: background var(--t-hover), color var(--t-hover), transform var(--t-hover), filter var(--t-hover);
}
body.portal .chip:hover { background: var(--card-hover); color: var(--text); filter: brightness(1.08); transform: translateY(-2px); }
body.portal .chip[aria-pressed=true], body.portal .chip[aria-selected=true] { color: var(--gold); border-color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
body.portal .chip .count { font-size: 12px; color: var(--text-dim); background: var(--field); border-radius: 4px; padding: 2px 6px; }

/* ---------- 4. Navegação ---------- */
body.portal .nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 20, 14, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-edge);
}
body.portal .nav-inner { display: flex; align-items: center; gap: var(--s5); min-height: 68px; }
body.portal .brand { display: inline-flex; align-items: baseline; gap: var(--s2); font: 700 24px/1 var(--font-title); letter-spacing: .08em; color: var(--gold); white-space: nowrap; }
body.portal .brand-mark { font-size: 20px; }
body.portal .brand small { display: none; }
body.portal .nav nav { margin-left: auto; }
body.portal .nav-links { list-style: none; display: flex; gap: var(--s1); margin: 0; padding: 0; }
body.portal .nav-links a {
  display: block; padding: var(--s2) var(--s3); border-radius: var(--r-slot);
  font-size: 14px; font-weight: 600; color: var(--text-dim);
  transition: color var(--t-hover), background var(--t-hover);
}
body.portal .nav-links a:hover { color: var(--text); background: var(--card); }
body.portal .nav-links a[aria-current] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
body.portal .nav-cta { min-height: 40px; padding: 0 var(--s4); font-size: 12px; white-space: nowrap; }
body.portal .nav-toggle {
  display: none; margin-left: auto; min-height: 44px; padding: 0 var(--s4);
  background: var(--card); border: 1px solid var(--glass-edge); border-radius: var(--r-card); color: var(--text); font-weight: 700;
}

/* ---------- 5. Herói ---------- */
body.portal .hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
body.portal .hero-art { position: absolute; inset: 0; z-index: -1; margin: 0; }
body.portal .hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
body.portal .hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18, 14, 10, .78) 0%, rgba(18, 14, 10, .35) 45%, rgba(18, 14, 10, 0) 70%),
              linear-gradient(0deg, var(--page) 0%, rgba(18, 14, 10, 0) 28%);
}
body.portal .hero-inner { padding-block: var(--s8); }
body.portal .hero-copy { max-width: 560px; padding: var(--s6); }
body.portal .hero-pretitle { margin: var(--s4) 0 var(--s2) !important; color: var(--text-dim) !important; font-size: 16px; }
body.portal .hero h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; }
body.portal .hero h1 em { color: var(--gold); }
body.portal .hero-lead { color: var(--text) !important; font-size: 17px; margin: var(--s4) 0 var(--s5) !important; }
body.portal .hero-actions { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; }
body.portal .platforms { margin: var(--s5) 0 0 !important; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim) !important; }
body.portal .platforms span { color: var(--gold-dim); padding: 0 var(--s2); }
body.portal .art-badge {
  position: absolute; right: var(--gutter); bottom: var(--s4); z-index: 1;
  font-size: 12px; color: var(--text-dim); padding: var(--s1) var(--s3); border-radius: var(--r-slot);
}

body.portal .world-strip { border-block: 1px solid var(--glass-edge); background: var(--glass); }
body.portal .world-strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s5); padding-block: var(--s4); font: 600 12px/1.4 var(--font-title); letter-spacing: .14em; color: var(--text-dim); }
body.portal .world-strip i { font-style: normal; color: var(--gold); }

/* ---------- 6. Seções ---------- */
body.portal .section { padding-block: var(--s8); }
body.portal .section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5); margin-bottom: var(--s5); }
body.portal .section-heading h2 { margin-top: var(--s2); }
body.portal .section-heading p { margin: var(--s3) 0 0; max-width: 640px; }
body.portal .section-heading > .text-link { flex-shrink: 0; }

/* Novidades */
body.portal .news-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s5); }
body.portal .news-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-panel) !important; }
body.portal .card-image { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--field); }
body.portal .card-image img { width: 100%; height: 100%; object-fit: cover; }
body.portal .image-tag { position: absolute; left: var(--s3); bottom: var(--s3); padding: 2px var(--s2); border-radius: var(--r-slot); background: var(--glass-solid); border: 1px solid var(--glass-edge); color: var(--gold); font: 600 11px/1.6 var(--font-text); letter-spacing: .08em; }
body.portal .news-copy { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
body.portal .news-copy h3 { font-size: 22px; }
body.portal .news-copy p { font-size: 15px; margin: 0; }
body.portal .category { font: 600 11px/1.4 var(--font-title); letter-spacing: .14em; color: var(--gold); }
body.portal .news-list { margin: var(--s2) 0 0; padding-left: var(--s5); color: var(--text-dim); font-size: 14px; }
body.portal .news-list li::marker { color: var(--gold); }
body.portal .read-more { margin-top: auto; padding-top: var(--s3); border-top: 1px solid var(--sep); display: flex; justify-content: space-between; color: var(--gold); font-weight: 700; font-size: 14px; }

/* Mundo e história */
body.portal .split { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s6); align-items: center; }
body.portal .split > .glass { padding: var(--s6); }
body.portal .split h2 { margin: var(--s3) 0 var(--s4); }
body.portal .world-figure { margin: 0; padding: var(--s3); }
body.portal .world-figure img { border-radius: var(--r-card); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
body.portal .world-figure figcaption { padding: var(--s3) var(--s2) var(--s1); font: 600 12px/1.4 var(--font-title); letter-spacing: .14em; color: var(--text-dim); text-align: center; }
body.portal .region-note { display: flex; gap: var(--s3); align-items: center; margin-top: var(--s5); padding: var(--s3); }
body.portal .region-note img { width: 48px; height: 48px; object-fit: contain; }
body.portal .region-note strong { display: block; font-family: var(--font-title); color: var(--gold); }
body.portal .region-note span { font-size: 14px; color: var(--text-dim); }
body.portal .lore-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s5); align-items: start; }
body.portal .lore-copy { padding: var(--s6); }
body.portal .lore-copy h2 { margin: var(--s3) 0 var(--s5); }
body.portal .lore-quote { margin: var(--s5) 0; padding: var(--s4) var(--s5); border-left: 2px solid var(--gold); background: var(--field); border-radius: 0 var(--r-card) var(--r-card) 0; }
body.portal .lore-quote p { font: 600 22px/1.4 var(--font-title); color: var(--text) !important; margin: 0; }
body.portal .lore-quote cite { display: block; margin-top: var(--s2); color: var(--gold); font-style: normal; font-size: 14px; }
body.portal .lore-notes { padding: var(--s5); display: grid; gap: var(--s3); }
body.portal .lore-note { padding: var(--s4); }
body.portal .lore-note h3 { font-size: 18px; color: var(--gold); margin-bottom: var(--s2); }
body.portal .lore-note p { margin: 0; font-size: 15px; }

/* Títulos (abas) */
body.portal .paths { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: var(--s2); scrollbar-width: thin; }
body.portal .paths button {
  flex: 1 0 auto; display: flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4);
  background: var(--card); border: 1px solid var(--glass-edge); border-radius: var(--r-card);
  color: var(--text-dim); font: 600 12px/1 var(--font-title); letter-spacing: .08em;
  transition: background var(--t-hover), transform var(--t-hover), filter var(--t-hover);
}
body.portal .paths button span { font: 700 15px/1 var(--font-text); letter-spacing: 0; color: var(--text); }
body.portal .paths button:hover { background: var(--card-hover); filter: brightness(1.08); transform: translateY(-2px); }
body.portal .paths button[aria-selected=true] { color: var(--gold); border-color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
body.portal .paths button[aria-selected=true] span { color: var(--gold); }
body.portal .path-panels { margin-top: var(--s3); }
body.portal .path-panel { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; min-height: 320px; overflow: hidden; }
body.portal .path-panel:not([hidden]) { animation: tab-in 140ms var(--ease-out); }
body.portal .path-art { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: var(--s5); height: 100%; min-height: 280px; padding: var(--s6) 0 var(--s7);
  background: radial-gradient(ellipse at 50% 88%, rgba(227, 184, 92, .22) 0, rgba(227, 184, 92, 0) 46%); }
body.portal .path-art::after { content: ""; position: absolute; left: 50%; bottom: 38px; width: 220px; height: 26px; transform: translateX(-50%); border-radius: 50%; border: 1px solid var(--glass-edge); background: radial-gradient(ellipse, rgba(111, 168, 220, .18), rgba(18, 14, 10, .6)); z-index: 0; }
body.portal .path-art picture, body.portal .path-art img { position: relative; z-index: 1; }
body.portal .path-art img { width: 96px; height: 184px; object-fit: contain; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .35)); }
body.portal .path-seal { display: none; }
body.portal .path-copy { padding: var(--s6); }
body.portal .path-copy h3 { font-size: 30px; margin: var(--s2) 0 var(--s3); color: var(--gold); }
body.portal .path-traits { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s4) 0; }
body.portal .path-traits span { font-size: 13px; padding: var(--s1) var(--s3); background: var(--field); border: 1px solid var(--sep); border-radius: var(--r-slot); color: var(--text-dim); }
@keyframes tab-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Galerias (prints do jogo e arte conceitual) */
body.portal .shot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
body.portal .shot-grid .shot.wide { grid-column: span 2; grid-row: span 2; }
body.portal .shot-grid .shot.span2 { grid-column: span 2; }
body.portal .shot-grid .shot.span2 img { aspect-ratio: 32 / 9; }
body.portal .shot { margin: 0; overflow: hidden; border-radius: var(--r-panel); }
body.portal .shot button { display: block; position: relative; width: 100%; padding: 0; border: 0; background: var(--field); cursor: zoom-in; overflow: hidden; }
body.portal .shot img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform var(--t-open) var(--ease-out), filter var(--t-hover); }
body.portal .shot button:hover img { filter: brightness(1.08); transform: scale(1.02); }
body.portal .shot button > span.zoom { position: absolute; right: var(--s2); bottom: var(--s2); width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-slot); background: var(--glass-solid); border: 1px solid var(--glass-edge); color: var(--gold); font-size: 14px; }
body.portal .shot figcaption { padding: var(--s3) var(--s4); font: 600 15px/1.3 var(--font-title); color: var(--text); }
body.portal .shot figcaption small { display: block; margin-top: 2px; font: 400 13px/1.5 var(--font-text); color: var(--text-dim); }
body.portal .shot-grid .shot.wide img { aspect-ratio: auto; min-height: 100%; }
body.portal .shot-grid .shot.wide button { height: calc(100% - 64px); }
body.portal .note-chip { display: inline-flex; gap: var(--s2); align-items: center; padding: var(--s1) var(--s3); border-radius: var(--r-slot); border: 1px solid var(--glass-edge); background: var(--field); color: var(--text-dim); font-size: 13px; }
body.portal .art-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s3); }
body.portal .art-grid .shot figcaption { font-size: 13px; padding: var(--s2) var(--s3); }

/* Missões */
body.portal .quest-groups { display: grid; gap: var(--s6); }
body.portal .quest-group > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s4); margin-bottom: var(--s3); padding-bottom: var(--s2); border-bottom: 1px solid var(--sep); }
body.portal .quest-group > header h3 { font-size: 22px; color: var(--gold); }
body.portal .quest-group > header p { margin: 0; font-size: 14px; }
body.portal .quest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); list-style: none; padding: 0; margin: 0; }
body.portal .quest { position: relative; padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); border-left: 3px solid var(--q, var(--gold-dim)); }
body.portal .quest h4 { font: 700 17px/1.3 var(--font-title); color: var(--text); }
body.portal .quest .hook { margin: 0; font-size: 15px; color: var(--text-dim); }
body.portal .quest dl { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s3); margin: 0; font-size: 13px; }
body.portal .quest dt { color: var(--text-disabled); }
body.portal .quest dd { margin: 0; color: var(--text); }
body.portal .quest .lvl { position: absolute; top: var(--s3); right: var(--s3); font: 700 12px/1 var(--font-text); color: var(--gold); background: var(--field); border: 1px solid var(--sep); border-radius: 4px; padding: 4px 6px; }
body.portal .quest .lvl + h4 { padding-right: 64px; }
body.portal .quest-group[data-group=historia] { --q: var(--r-legend); }
body.portal .quest-group[data-group=lendas] { --q: var(--r-epic); }
body.portal .quest-group[data-group=povo] { --q: var(--r-uncommon); }
body.portal .quest-group[data-group=vinculo] { --q: var(--r-rare); }
body.portal .quest-group[data-group=anciaos] { --q: var(--r-atroz); }
body.portal .quest-note { margin-top: var(--s5); padding: var(--s4) var(--s5); font-size: 14px; }
body.portal .quest-note p { margin: 0; }

/* Downloads */
body.portal .download-section { text-align: center; }
body.portal .download-lead { max-width: 640px; margin: var(--s4) auto var(--s6) !important; }
body.portal .downloads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); text-align: left; }
body.portal .downloads article.is-your-os { outline: 2px solid var(--gold); outline-offset: 2px; }
body.portal .downloads .your-os { align-self: flex-start; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); }
body.portal .downloads small code { font-size: 12px; overflow-wrap: anywhere; }
body.portal .downloads article { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); }
body.portal .downloads h3 { font-size: 22px; }
body.portal .downloads p { margin: 0 0 var(--s2); font-size: 15px; }
body.portal .downloads .btn { width: 100%; justify-content: space-between; font-size: 12px; text-align: left; padding: var(--s2) var(--s4); }
body.portal .downloads small { display: block; font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-top: var(--s2); }
body.portal .platform-icon { width: 32px; height: 32px; color: var(--gold); }
body.portal .platform-icon svg { width: 100%; height: 100%; display: block; }
body.portal .download-help { max-width: 820px; margin: var(--s5) auto 0; text-align: left; padding: var(--s4) var(--s5); }
body.portal .download-help summary { cursor: pointer; font-weight: 700; color: var(--text); }
body.portal .download-help p { margin: var(--s3) 0 0; font-size: 15px; }
body.portal .download-help a, body.portal .downloads small a, body.portal .faq-list a, body.portal .lore-copy a { color: var(--gold) !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* Lista de espera */
body.portal .waitlist-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center; }
body.portal .waitlist-copy h2 { margin: var(--s3) 0 var(--s4); }
body.portal .waitlist-note { display: inline-block; margin-top: var(--s2); font-size: 14px; color: var(--text-dim); }
body.portal .waitlist-form { padding: var(--s5); }
body.portal .waitlist-field { margin-bottom: var(--s4); }
body.portal .waitlist-field label { display: block; margin-bottom: var(--s1); font-size: 14px; font-weight: 700; color: var(--text-dim); }
body.portal .waitlist-field label span { font-weight: 400; color: var(--text-disabled); }
body.portal .waitlist-field input, body.portal .waitlist-field select {
  display: block; width: 100%; min-height: var(--btn-h); padding: 0 var(--s3);
  background: var(--field); color: var(--text); border: 1px solid var(--glass-edge); border-radius: var(--r-card); font-size: 16px;
}
body.portal .waitlist-field select option { background: var(--page-2); color: var(--text); }
body.portal .waitlist-field input::placeholder { color: var(--text-disabled); }
body.portal .waitlist-field input:focus, body.portal .waitlist-field select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 2px rgba(227, 184, 92, .25); }
body.portal .waitlist-consent { display: flex; gap: var(--s3); align-items: flex-start; font-size: 14px; color: var(--text-dim); cursor: pointer; }
body.portal .waitlist-consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); flex-shrink: 0; }
body.portal .waitlist-privacy { font-size: 13px; color: var(--text-disabled) !important; margin: var(--s3) 0 var(--s4) !important; }
body.portal .waitlist-form .btn { width: 100%; justify-content: space-between; }
body.portal .waitlist-form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
body.portal .waitlist-status { margin: var(--s3) 0 0 !important; font-size: 14px; color: var(--ok) !important; }
body.portal .waitlist-status:empty { display: none; }
body.portal .waitlist-status[data-error=true] { color: var(--error) !important; }
body.portal .waitlist-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
body.portal .faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s6); align-items: start; }
body.portal .faq-layout h2 { margin: var(--s3) 0 var(--s4); }
body.portal .faq-list { padding: var(--s2) var(--s5); }
body.portal .faq-list details { border-bottom: 1px solid var(--sep); padding: var(--s4) 0; }
body.portal .faq-list details:last-child { border-bottom: 0; }
body.portal .faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s4); font-weight: 700; color: var(--text); }
body.portal .faq-list summary::-webkit-details-marker { display: none; }
body.portal .faq-list summary::after { content: '+'; color: var(--gold); font-size: 20px; line-height: 1; }
body.portal .faq-list details[open] summary::after { content: '−'; }
body.portal .faq-list p { margin: var(--s2) 0 0; font-size: 15px; }

/* Rodapé */
body.portal .site-footer { margin-top: var(--s6); border-top: 1px solid var(--glass-edge); background: var(--glass); }
body.portal .footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s5); padding-block: var(--s6) var(--s5); }
body.portal .footer-top p { margin: var(--s2) 0 0; }
body.portal .footer-top nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); align-items: center; font-size: 14px; }
body.portal .footer-top nav a, body.portal .footer-bottom a { color: var(--text-dim); transition: color var(--t-hover); }
body.portal .footer-top nav a:hover, body.portal .footer-bottom a:hover { color: var(--gold); }
body.portal .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); padding-block: var(--s4); border-top: 1px solid var(--sep); font-size: 13px; color: var(--text-disabled); }

/* Modal: visualizador (véu SHADE; fade + escala 0,98 → 1 em 180 ms) */
body.portal .viewer, body.guide .viewer {
  width: min(1280px, calc(100vw - 2 * var(--gutter))); max-height: calc(100dvh - 2 * var(--gutter)); overflow: auto;
  padding: var(--s3); color: var(--text);
  background: var(--glass-solid); border: 1px solid var(--glass-edge); border-radius: var(--r-panel); box-shadow: var(--glass-shadow);
}
body.portal .viewer[open], body.guide .viewer[open] { animation: modal-in 180ms var(--ease-out); }
body.portal .viewer::backdrop, body.guide .viewer::backdrop { background: var(--shade); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
body.portal .viewer .close, body.guide .viewer .close {
  display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s2) auto; min-height: 44px; padding: 0 var(--s4);
  background: var(--card); color: var(--text); border: 1px solid var(--glass-edge); border-radius: var(--r-card);
}
body.portal .viewer img, body.guide .viewer img { width: 100%; max-height: calc(100dvh - 160px); object-fit: contain; border-radius: var(--r-card); }
body.portal .viewer p, body.guide .viewer p { margin: var(--s2) 0 0; font-size: 14px; color: var(--text-dim); }
@keyframes modal-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

/* Entrada de seções (fade + 12 px em 220 ms, só quando o JS marca .reveal) */
body.portal .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--t-open) var(--ease-out), transform var(--t-open) var(--ease-out); }
body.portal .reveal.in { opacity: 1; transform: none; }

/* ---------- 7. Responsivo ---------- */
@media (max-width: 1100px) {
  body.portal .nav-links a { padding-inline: var(--s2); font-size: 13px; }
  body.portal .art-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.portal .quest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  body.portal .nav-toggle { display: block; }
  body.portal .nav nav { position: absolute; top: 100%; left: 0; right: 0; display: none; margin: 0; background: #1A140E !important;
    background: var(--glass-solid); border-bottom: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
  body.portal .nav.open nav { display: block; }
  body.portal .nav-links { flex-direction: column; padding: var(--s2) var(--gutter) var(--s4); max-height: calc(100dvh - 68px); overflow: auto; }
  body.portal .nav-links a { font-size: 16px; padding: var(--s3); }
}
@media (max-width: 1180px) { body.portal .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  body.portal .news-grid { grid-template-columns: 1fr 1fr; }
  body.portal .news-card.featured { grid-column: span 2; }
  body.portal .split, body.portal .lore-layout, body.portal .waitlist-layout, body.portal .faq-layout { grid-template-columns: 1fr; }
  body.portal .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.portal .shot-grid .shot.wide { grid-row: auto; }
  body.portal .shot-grid .shot.wide img { aspect-ratio: 16 / 9; min-height: 0; }
  body.portal .shot-grid .shot.wide button { height: auto; }
  body.portal .art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.portal .downloads { grid-template-columns: 1fr; }
  body.portal .path-panel { grid-template-columns: 1fr; }
  body.portal .path-art { min-height: 240px; }
}
@media (max-width: 640px) {
  body.portal .section { padding-block: var(--s7); }
  body.portal .nav-cta { display: none; }
  body.portal .brand { font-size: 22px; }
  body.portal .hero { min-height: 0; align-items: flex-end; }
  body.portal .hero-art img { object-position: 30% 50%; }
  body.portal .hero-art::after { background: linear-gradient(0deg, var(--page) 0%, rgba(18, 14, 10, .7) 45%, rgba(18, 14, 10, .1) 75%); }
  body.portal .hero-inner { padding-block: min(42vh, 360px) var(--s5); }
  body.portal .hero-copy { padding: var(--s5); }
  body.portal .art-badge { top: var(--s3); bottom: auto; }
  body.portal .section-heading { display: block; }
  body.portal .section-heading > .text-link { margin-top: var(--s3); }
  body.portal .news-grid { grid-template-columns: 1fr; }
  body.portal .news-card.featured { grid-column: auto; }
  body.portal .split > .glass, body.portal .lore-copy, body.portal .path-copy { padding: var(--s5); }
  body.portal .lore-notes { padding: var(--s4); }
  body.portal .shot-grid { grid-template-columns: 1fr; }
  body.portal .shot-grid .shot.wide, body.portal .shot-grid .shot.span2 { grid-column: auto; }
  body.portal .shot-grid .shot.span2 img { aspect-ratio: 16 / 9; }
  body.portal .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.portal .quest-grid { grid-template-columns: 1fr; }
  body.portal .world-strip .wrap { justify-content: center; font-size: 11px; }
  body.portal .world-strip i { display: none; }
  body.portal .faq-list { padding: var(--s1) var(--s4); }
  body.portal .download-help { padding: var(--s3) var(--s4); }
}

/* ---------- 8. Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body.portal .reveal { opacity: 1; transform: none; }
  body.portal a.card:hover, body.portal .card.hoverable:hover, body.portal .chip:hover, body.portal .paths button:hover, body.portal .btn:hover, body.guide .btn:hover { transform: none; }
  body.portal .shot button:hover img { transform: none; }
}

/* Cenas em movimento (motion.css) no vidro */
body.portal .motion-section { padding-block: var(--s7); }
body.portal .motion-section > .wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); }
body.portal .motion-heading h3 { font: 600 clamp(24px, 3vw, 34px)/1.2 var(--font-title); color: var(--text); }
body.portal .motion-toggle, body.guide .motion-toggle { min-height: 44px; border: 1px solid var(--glass-edge); border-radius: var(--r-card); background: var(--card); color: var(--text); font-weight: 700; transition: background var(--t-hover); }
body.portal .motion-toggle:hover, body.guide .motion-toggle:hover { background: var(--card-hover); }
body.portal .motion-grid .motion-card { border: 1px solid var(--glass-edge); border-radius: var(--r-panel); }
body.portal .motion-grid .motion-card figcaption { font: 600 17px/1.4 var(--font-title); }
body.portal .motion-grid .motion-card figcaption small { font: 400 13px/1.5 var(--font-text); color: var(--text-dim); opacity: 1; }

/* ---------- 9. Guia do Viajante no vidro (só troca tokens e materiais; a estrutura do guia fica igual) ---------- */
html[data-theme] body.guide {
  --bg: #120E0A; --bg-2: rgba(26, 20, 14, .55);
  --panel: rgba(26, 20, 14, .78); --panel-2: rgba(42, 33, 24, .78); --panel-3: rgba(58, 46, 33, .86);
  --gold: #E3B85C; --gold-bright: #E3B85C; --gold-dim: #A8822F;
  --cream: #F3E9D2; --text: #F3E9D2; --dim: #B9AA8C; --ink: #2A2118;
  --line: rgba(201, 162, 74, .40); --line-strong: rgba(227, 184, 92, .75);
  --outline: transparent; --ok: #9CD086; --radius: 12px;
  background: #120E0A; color: #F3E9D2;
  font-family: 'Nunito', 'Open Sans', system-ui, sans-serif;
}
body.guide::before {
  content: ""; position: fixed; inset: -40px; z-index: -2;
  background: url('../img/arte/hero_porto_1280.webp?v=2') center / cover no-repeat;
  filter: blur(28px) saturate(.9) brightness(.3);
}
body.guide::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(18, 14, 10, .4), rgba(18, 14, 10, .85));
}
html[data-theme] body.guide h1, html[data-theme] body.guide h2, html[data-theme] body.guide h3, html[data-theme] body.guide h4, html[data-theme] body.guide .brand, html[data-theme] body.guide .guide-heading h1 {
  font-family: 'Cinzel', Georgia, serif !important; font-weight: 600; color: #F3E9D2; text-shadow: none; letter-spacing: .01em;
}
html[data-theme] body.guide .brand { color: #E3B85C; letter-spacing: .08em; }
html[data-theme] body.guide .kicker, html[data-theme] body.guide .eyebrow { font-family: 'Cinzel', Georgia, serif; color: #E3B85C; letter-spacing: .16em; }
html[data-theme] body.guide .nav { background: rgba(26, 20, 14, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(201, 162, 74, .40); }
html[data-theme] body.guide .nav-links a { color: #B9AA8C; font-size: 13px; }
html[data-theme] body.guide .nav-links a:hover { background: rgba(42, 33, 24, .78); color: #F3E9D2; }
html[data-theme] body.guide .nav.open .nav-links, html[data-theme] body.guide .nav-links { background: transparent; }
@media (max-width: 1100px) { html[data-theme] body.guide .nav.open .nav-links { background: rgba(26, 20, 14, .94); } }
html[data-theme] body.guide .alt, html[data-theme] body.guide section.alt { background: rgba(26, 20, 14, .45); }
html[data-theme] body.guide .panel {
  background: rgba(26, 20, 14, .78); border: 1px solid rgba(201, 162, 74, .40); border-radius: 12px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}
html[data-theme] body.guide .guide-heading h1 { color: #E3B85C; }
html[data-theme] body.guide .guide-heading p, html[data-theme] body.guide .lead, html[data-theme] body.guide .muted { color: #B9AA8C; }
html[data-theme] body.guide .guide-heading > a { color: #E3B85C; }
html[data-theme] body.guide .tag, html[data-theme] body.guide .badge { background: rgba(18, 14, 10, .86); color: #E3B85C; border-color: rgba(201, 162, 74, .40); }
html[data-theme] body.guide .chip, html[data-theme] body.guide .nat-btn, html[data-theme] body.guide .skilltabs button {
  background: rgba(42, 33, 24, .78); color: #B9AA8C; border: 1px solid rgba(201, 162, 74, .40); border-radius: 8px;
  transition: background 120ms, color 120ms, transform 120ms, filter 120ms;
}
html[data-theme] body.guide .chip:hover, html[data-theme] body.guide .nat-btn:hover, html[data-theme] body.guide .skilltabs button:hover { background: rgba(58, 46, 33, .86); color: #F3E9D2; filter: brightness(1.08); transform: translateY(-2px); }
html[data-theme] body.guide .chip[aria-pressed=true], html[data-theme] body.guide .nat-btn[aria-pressed=true], html[data-theme] body.guide .skilltabs button[aria-selected=true] { color: #E3B85C; border-color: #E3B85C; box-shadow: inset 0 -2px 0 #E3B85C; background: rgba(42, 33, 24, .9); }
html[data-theme] body.guide .tree-title { color: #F3E9D2; }
html[data-theme] body.guide .shot.panel { overflow: hidden; }
html[data-theme] body.guide .btn.small { min-height: 40px; font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  html[data-theme] body.guide .chip:hover, html[data-theme] body.guide .nat-btn:hover, html[data-theme] body.guide .skilltabs button:hover { transform: none; }
}
html[data-theme] body.guide .btn { background: #2E6B3F; border-color: rgba(201, 162, 74, .40); color: #F3E9D2; }
html[data-theme] body.guide .btn:hover { background: #3A8350; }
html[data-theme] body.guide .btn.ghost, html[data-theme] body.guide .btn.outline { background: rgba(42, 33, 24, .78); color: #F3E9D2; }
html[data-theme] body.guide .motion-grid .motion-card { border: 1px solid rgba(201, 162, 74, .40); border-radius: 12px; background: rgba(26, 20, 14, .78); }
html[data-theme] body.guide .motion-grid .motion-card figcaption { font: 600 17px/1.4 'Cinzel', Georgia, serif; }
html[data-theme] body.guide .motion-grid .motion-card figcaption small { font: 400 13px/1.5 'Nunito', sans-serif; color: #B9AA8C; opacity: 1; }

/* Títulos (12/10/2026): par Ela/Ele maior, com a cor do caminho */
body.portal .path-art { gap: var(--s6); min-height: 340px; background: radial-gradient(ellipse at 50% 80%, color-mix(in srgb, var(--path-accent, #E3B85C) 28%, transparent) 0, transparent 60%); }
body.portal .path-art::after { border-color: color-mix(in srgb, var(--path-accent, #E3B85C) 55%, transparent); width: 340px; }
body.portal .path-who { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 1; }
body.portal .path-who img { width: 200px; height: 244px; image-rendering: pixelated; object-fit: none; }
body.portal .path-who figcaption { font-family: "Cinzel", serif; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--path-accent, #E3B85C); background: rgba(26,20,14,.78); border: 1px solid color-mix(in srgb, var(--path-accent, #E3B85C) 45%, transparent); border-radius: 999px; padding: 2px 12px; }
body.portal .path-panel h3 { color: var(--path-accent, #E3B85C); }
@media (max-width: 600px) { body.portal .path-who img { width: 150px; height: 183px; object-fit: contain; } body.portal .path-art { min-height: 260px; gap: var(--s3); } }

/* Cards de missão levam à página com o passo a passo (site/missoes/, gerado por tools/build_guides.py). */
body.portal .quest .quest-more { margin-top: auto; padding-top: var(--s2); font-size: 14px; font-weight: 700;
	color: var(--gold, #e3b85c); text-decoration: none; }
body.portal .quest .quest-more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
body.portal .quest:hover, body.portal .quest:focus-within { border-left-color: var(--gold, #e3b85c);
	background-color: rgba(227, 184, 92, 0.06); }
body.portal .quest .quest-more:focus-visible { outline: 2px solid var(--gold, #e3b85c); outline-offset: 2px; }
