/* Talebar Hero — site. Mesma identidade do livro do jogo (src/style.css do jogo): papel marfim
   quadriculado, filete duplo, índigo nos botões principais, dourado do logo, Cinzel nos títulos
   espaçados, Cormorant Garamond nos títulos e Noto Serif no texto. */
:root {
  --paper: #f3efe6;
  --paper-2: #e9e3d6;
  --paper-hi: #fbf8f1;
  --grid: rgba(150, 135, 110, 0.09);
  --line: #c9bc9c;
  --line-2: #a8987a;
  --ink: #3b342c;
  --ink-soft: #6c6256;
  --ink-faint: #b3a892;
  --indigo: #4a3f96;
  --indigo-2: #33296e;
  --indigo-3: #6a5ea8;
  --gold: #e2c27a;
  --gold-2: #c9ab72;
  --rose: #a82a2e;
  --r1: #3f78c0;
  --r2: #7e4fc0;
  --r3: #b07c1a;
  --night: #1a1714;
  --night-2: #241f1a;
  --night-ink: #efe7d6;
  --night-soft: rgba(239, 231, 214, 0.72);
  --bg: var(--paper);
  --card: var(--paper-hi);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --display: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --head: 'Cormorant Garamond', Georgia, serif;
  --body: 'Noto Serif', Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 16px/1.6 var(--body); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--indigo-2); }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .hero :focus-visible, .topbar :focus-visible, .foot :focus-visible, .cta-band :focus-visible, .page-hero :focus-visible { outline-color: var(--gold); }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0 0 0.4em; color: inherit; }
p { margin: 0 0 1em; }
kbd { font: 600 0.8em var(--body); padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; background: var(--card); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 8px; background: var(--indigo); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }

/* ---------- topo ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(26, 23, 20, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(226, 194, 122, 0.22); }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand img { width: 112px; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--night-soft); text-decoration: none; font: 600 12px var(--display); letter-spacing: 0.14em; text-transform: uppercase; transition: color 0.15s, background 0.15s; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--gold); }
.nav a[aria-current='page'] { background: rgba(226, 194, 122, 0.1); }
.nav a.pill { margin-left: 8px; color: #fff; background: var(--indigo); padding: 9px 18px; }
.nav a.pill:hover, .nav a.pill[aria-current='page'] { background: var(--indigo-3); color: #fff; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid rgba(226, 194, 122, 0.35); border-radius: 10px; background: none; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; margin: auto; background: var(--gold); border-radius: 2px; transition: transform 0.2s; position: relative; content: ''; }
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded='true'] .bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- botões (pílulas como no livro: índigo = principal, bege = secundário) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font: 700 13px var(--display); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s; }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn.primary { background: var(--indigo); color: #fff; box-shadow: 0 6px 18px rgba(51, 41, 110, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.btn.primary:hover { background: var(--indigo-2); color: #fff; }
.btn.ghost { border-color: var(--line-2); color: var(--ink); background: rgba(255, 255, 255, 0.35); }
.btn.ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.hero .btn.ghost, .dark .btn.ghost, .page-hero .btn.ghost { color: var(--night-ink); border-color: rgba(239, 231, 214, 0.35); background: transparent; }
.hero .btn.ghost:hover, .dark .btn.ghost:hover, .page-hero .btn.ghost:hover { color: var(--gold); border-color: var(--gold); }
.btn.big { min-height: 60px; padding: 12px 26px; font-size: 15px; }
.btn.big span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.btn.big small { font: 400 12px var(--body); letter-spacing: 0; text-transform: none; opacity: 0.8; margin-top: 2px; }
.btn.small { min-height: 38px; padding: 6px 14px; font-size: 11px; }

/* ---------- herói ---------- */
.hero { position: relative; overflow: hidden; color: var(--night-ink);
  background: radial-gradient(70% 60% at 75% 30%, rgba(74, 63, 150, 0.35), transparent 70%), radial-gradient(60% 50% at 10% 0, rgba(226, 194, 122, 0.12), transparent 70%), var(--night); }
.hero-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 40px; align-items: center; padding: 64px 0 72px; }
.eyebrow, .kicker { font: 600 12px var(--display); letter-spacing: 0.3em; text-transform: uppercase; margin: 0 0 14px; }
.eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); letter-spacing: -0.01em; color: #fff7e6; }
.hero h1 .dot { color: var(--gold); }
.lede { font-size: 18px; color: var(--night-soft); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; align-items: center; }

/* a foto do grupo: sangra até a borda direita e some na noite do lado do texto */
.hero-copy { position: relative; z-index: 1; }
.hero-in { min-height: 560px; }
.hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; margin: 0; }
.hero-art picture, .hero-art img { display: block; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: 55% 45%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, 0.55) 16%, #000 34%), linear-gradient(to top, transparent 0, #000 22%);
  mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, 0.55) 16%, #000 34%), linear-gradient(to top, transparent 0, #000 22%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.hero-art figcaption { position: absolute; right: 20px; bottom: 14px; margin: 0; font-size: 13px; font-style: italic; color: var(--night-soft); text-align: right; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.hero-art figcaption a { color: var(--gold); white-space: nowrap; }
.desk#veja-o-jogo { max-width: 860px; margin: 56px auto 0; }
/* o vídeo do jogo em ação (já vem com o papel de parede: só a moldura e a barra de tarefas) */
.play-sec { padding-top: 72px; }
.desk.play { max-width: 980px; margin: 0 auto; }
.desk.play .desk-screen { background: var(--night); }
.desk.play .desk-screen::after { display: none; }
.desk-screen video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--night); }

/* a área de trabalho: papel de parede + o jogo (captura com fundo transparente) + barra de tarefas */
.desk { margin: 0; }
.desk-screen { position: relative; border-radius: 12px 12px 0 0; overflow: hidden; border: 1px solid rgba(226, 194, 122, 0.25); border-bottom: 0;
  background:
    radial-gradient(90% 70% at 70% 15%, rgba(255, 214, 150, 0.35), transparent 60%),
    radial-gradient(120% 80% at 20% 110%, #2c3b6e, transparent 60%),
    linear-gradient(170deg, #5d6fb3 0%, #8f86c4 38%, #d9a98a 72%, #b6806d 100%); }
.desk-screen::after { content: ''; position: absolute; inset: auto 0 0; height: 32%; background: linear-gradient(transparent, rgba(16, 14, 30, 0.35)); pointer-events: none; }
.desk-screen img { position: relative; z-index: 1; width: 100%; margin-top: 6%; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35)); }
.taskbar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 0 0 12px 12px; background: rgba(28, 28, 40, 0.92); border: 1px solid rgba(226, 194, 122, 0.25); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.taskbar i { width: 16px; height: 16px; border-radius: 4px; background: rgba(255, 255, 255, 0.22); }
.taskbar i.win { background: linear-gradient(135deg, #7fb6ff, #3c78d8); }
.taskbar i.on { background: url(../favicon-32.png) center / cover; box-shadow: 0 3px 0 -1px var(--gold); }
.taskbar .clock { margin-left: auto; font: 600 11px system-ui, sans-serif; color: rgba(255, 255, 255, 0.8); }
.desk figcaption, .strip-show figcaption, .wide-shot figcaption { margin-top: 10px; font-size: 13px; font-style: italic; color: var(--night-soft); text-align: center; }

/* ---------- seções ---------- */
.sec { padding: 88px 0; }
.sec.paper, body.page-doc main { background:
  linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 14px 14px,
  linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 14px 14px,
  radial-gradient(120% 90% at 50% 0, var(--paper-hi), var(--paper) 55%, var(--paper-2)); }
.sec.dark { background: radial-gradient(60% 70% at 85% 10%, rgba(74, 63, 150, 0.4), transparent 70%), var(--night-2); color: var(--night-ink); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sec-head.row { display: flex; align-items: end; justify-content: space-between; gap: 16px; max-width: none; text-align: left; }
.sec-head.row > div { min-width: 0; }
.kicker { color: var(--indigo); }
.dark .kicker { color: var(--gold); }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
/* o filete com losango embaixo do título, como na aba do livro */
.sec-head:not(.row) h2::after { content: ''; display: block; width: 180px; height: 12px; margin: 16px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 12'%3E%3Cpath d='M0 6h80M100 6h80' stroke='%23a8987a'/%3E%3Cpath d='m90 1 5 5-5 5-5-5Z' fill='none' stroke='%23a8987a'/%3E%3Cpath d='m90 4 2 2-2 2-2-2Z' fill='%234a3f96'/%3E%3C/svg%3E") center / contain no-repeat; }
.dark .sec-head:not(.row) h2::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 12'%3E%3Cpath d='M0 6h80M100 6h80' stroke='%23c9ab72'/%3E%3Cpath d='m90 1 5 5-5 5-5-5Z' fill='none' stroke='%23c9ab72'/%3E%3Cpath d='m90 4 2 2-2 2-2-2Z' fill='%23e2c27a'/%3E%3C/svg%3E"); }
.sec-head .sub { color: var(--ink-soft); font-size: 17px; margin-top: 10px; }

/* cartão de papel com filete duplo */
.card { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line-2), 0 10px 24px rgba(59, 52, 44, 0.12); }
.card::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--line); border-radius: 10px; pointer-events: none; }

/* como funciona */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps li { padding: 34px 28px 24px; }
.steps .num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%; background: var(--indigo); color: #fff; font: 700 18px var(--display);
  box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--line-2); }
.steps h3 { font-size: 24px; }
.steps p { color: var(--ink-soft); margin: 0; }
.strip-show { margin: 56px 0 0; }
.strip-desk { max-width: 1000px; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px rgba(59, 52, 44, 0.25);
  background: linear-gradient(180deg, #8a93c9 0%, #c7a6a0 60%, #a57e70 100%); }
.strip-desk img { width: 100%; padding-top: 28px; }
.taskbar.slim { border-radius: 0; border: 0; }
.strip-show figcaption { color: var(--ink-soft); }

/* recursos */
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat { padding: 26px 24px 20px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 6px 16px rgba(59, 52, 44, 0.07); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.feat:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), 0 12px 24px rgba(59, 52, 44, 0.12); }
.feat svg { width: 46px; height: 46px; padding: 9px; margin-bottom: 12px; border-radius: 50%; fill: none; stroke: var(--indigo); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--paper); }
.feat h3 { font-size: 22px; }
.feat p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.r0 { color: var(--ink-soft); font-weight: 600; } .r1 { color: var(--r1); font-weight: 600; } .r2 { color: var(--r2); font-weight: 600; } .r3 { color: var(--r3); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 56px; align-items: end; }
.gallery figure { margin: 0; text-align: center; }
.gallery img { margin: 0 auto; filter: drop-shadow(0 10px 18px rgba(59, 52, 44, 0.22)); }
.gallery figcaption { margin-top: 10px; font: 600 12px var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }

/* classes */
.classes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.cls { display: flex; gap: 14px; align-items: stretch; padding: 10px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 6px 14px rgba(59, 52, 44, 0.08); }
.cls img { width: 74px; height: 120px; object-fit: cover; object-position: 50% 15%; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2); flex: none; }
.cls div { padding: 6px 4px 4px 0; }
.cls h3 { font-size: 22px; margin: 0; }
.cls p { font-size: 14px; color: var(--ink-soft); margin: 6px 0 0; }
.kind { display: inline-block; margin-top: 2px; padding: 1px 9px; border-radius: 999px; font: 600 10px var(--display); letter-spacing: 0.12em; text-transform: uppercase; }
.kind.melee { color: #8a3a22; background: rgba(168, 42, 46, 0.09); }
.kind.ranged { color: var(--indigo); background: rgba(74, 63, 150, 0.1); }
.wide-shot { margin: 48px auto 0; max-width: 1000px; }
.wide-shot img { border-radius: 12px; box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px rgba(0, 0, 0, 0.25); }
.wide-shot figcaption { color: var(--ink-soft); }

/* arena & raid */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.duo-item { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; padding: 24px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(226, 194, 122, 0.2); }
.duo-item img { filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5)); }
.duo-item h3 { font-size: 30px; color: #fff7e6; }
.duo-item p { color: var(--night-soft); }
.dark a { color: var(--gold); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 22px; margin: 6px 0; color: var(--night-ink); font-size: 15px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 40px 18px 4px; cursor: pointer; list-style: none; font: 700 21px var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border: solid var(--indigo); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--indigo); }
.faq details p { margin: 0 4px 20px; color: var(--ink-soft); }

/* notícias */
.news { display: grid; gap: 18px; }
.news.teaser { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-item { position: relative; padding: 24px 24px 12px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 6px 14px rgba(59, 52, 44, 0.07); }
.news-item header { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 13px; color: var(--ink-soft); }
.news-item .tag { padding: 1px 10px; border-radius: 999px; font: 600 10px var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--indigo); background: rgba(74, 63, 150, 0.1); }
.news-item h3 { font-size: 24px; }
.news-item p { color: var(--ink-soft); }

/* faixa final */
.cta-band { padding: 72px 0; color: var(--night-ink); text-align: center; background: radial-gradient(60% 90% at 50% 100%, rgba(74, 63, 150, 0.5), transparent 70%), var(--night); }
.cta-in { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); color: #fff7e6; margin: 0; }

/* ---------- páginas internas ---------- */
.page-hero { padding: 64px 0 40px; color: var(--night-ink); background: radial-gradient(70% 90% at 80% 0, rgba(74, 63, 150, 0.4), transparent 70%), var(--night); }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 52px); color: #fff7e6; margin: 0; }
.page-hero p { color: var(--night-soft); margin: 10px 0 0; max-width: 40em; font-size: 17px; }
.page-hero .eyebrow { margin-bottom: 10px; }
.doc { padding: 56px 0 88px; }
.doc .card { padding: 40px clamp(20px, 5vw, 56px); }
.doc h2 { font-size: 28px; margin-top: 1.4em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 21px; margin-top: 1.2em; }
.doc li { margin: 4px 0; }
.draft { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin: 0 0 28px; border-radius: 10px; background: rgba(176, 124, 26, 0.12); box-shadow: inset 0 0 0 1px rgba(176, 124, 26, 0.45); font-size: 15px; }
.draft b { color: #7a520b; }
.note { padding: 14px 18px; border-radius: 10px; background: rgba(74, 63, 150, 0.07); box-shadow: inset 0 0 0 1px rgba(74, 63, 150, 0.25); font-size: 15px; }

/* download */
.dl { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.dl-main { padding: 36px; text-align: center; }
.dl-main .icon { width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 22px; box-shadow: 0 10px 24px rgba(59, 52, 44, 0.25); }
.dl-main h2 { font-size: 32px; margin-bottom: 4px; }
.dl-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 6px 0 22px; color: var(--ink-soft); font-size: 14px; }
.dl-meta b { color: var(--ink); }
.hash { margin-top: 22px; text-align: left; }
.hash label, .hash .lbl { display: block; font: 600 11px var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.hash code { display: block; padding: 10px 12px; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font: 13px/1.5 ui-monospace, Consolas, monospace; word-break: break-all; color: var(--ink); }
.hash .copy { margin-top: 8px; }
.steps-list { counter-reset: n; list-style: none; padding: 0; margin: 0; }
.steps-list li { counter-increment: n; position: relative; padding: 0 0 18px 48px; }
.steps-list li::before { content: counter(n); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--indigo); color: #fff; font: 700 14px var(--display); }
.steps-list b { font-family: var(--head); font-size: 19px; }
.side { padding: 28px 30px 12px; }
.side h2 { font-size: 24px; }
.req { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 15px; }
.req th, .req td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.req th { width: 40%; font: 600 12px var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

/* ranking */
.rank-wrap { padding: 8px 0; }
.rank-status { padding: 22px; text-align: center; color: var(--ink-soft); }
.rank { width: 100%; border-collapse: collapse; font-size: 15px; }
.rank caption { text-align: left; padding: 0 0 12px; color: var(--ink-soft); font-size: 14px; }
.rank th { padding: 10px 12px; text-align: left; font: 600 11px var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--line-2); }
.rank td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
.rank td.n, .rank th.n { text-align: right; font-variant-numeric: tabular-nums; }
.rank tbody tr:hover { background: rgba(74, 63, 150, 0.05); }
.rank .pos { width: 56px; font: 700 18px var(--head); color: var(--ink-soft); }
.rank tr.top1 .pos { color: var(--r3); } .rank tr.top2 .pos { color: #7d8794; } .rank tr.top3 .pos { color: #a0643a; }
.rank .who { font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* contato */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.contact .card { padding: 26px; }
.contact h2 { font-size: 22px; margin-top: 0; }

/* ---------- rodapé ---------- */
.foot { color: var(--night-soft); background: var(--night); border-top: 1px solid rgba(226, 194, 122, 0.18); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; padding: 48px 0 28px; }
.foot-brand p { margin: 12px 0 0; font-size: 14px; max-width: 22em; }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.foot-nav h2 { font: 600 11px var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.foot-nav a { display: block; padding: 4px 0; color: var(--night-soft); text-decoration: none; font-size: 15px; }
.foot-nav a:hover { color: #fff7e6; text-decoration: underline; }
.foot-legal { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid rgba(239, 231, 214, 0.1); font-size: 13px; }

/* ---------- tema escuro: o papel vira papel à luz de vela ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #2a251f; --paper-2: #221e19; --paper-hi: #322c25; --grid: rgba(226, 194, 122, 0.04);
    --line: #4a4134; --line-2: #5d5242; --ink: #efe7d6; --ink-soft: #c2b7a3; --ink-faint: #7f7462;
    --indigo: #6a5ec8; --indigo-2: #8378da; --r1: #7aa8e6; --r2: #b18ae8; --r3: #e2c27a;
  }
  a { color: #a99ff0; } a:hover { color: #c4bcf7; }
  .btn.primary:hover { background: #5548b4; }
  .kind.melee { color: #e8a184; background: rgba(232, 161, 132, 0.12); }
  .kind.ranged { color: #b8b0f2; background: rgba(184, 176, 242, 0.12); }
  .news-item .tag { color: #b8b0f2; background: rgba(184, 176, 242, 0.12); }
  .kicker { color: #a99ff0; }
  .draft b { color: var(--gold); }
  .btn.ghost { background: transparent; color: var(--ink); }
  .card, .feat, .cls, .news-item { box-shadow: 0 0 0 1px var(--line-2), 0 10px 24px rgba(0, 0, 0, 0.35); }
}

/* ---------- telas menores ---------- */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; padding: 48px 0 0; min-height: 0; }
  .hero-art { position: relative; width: auto; margin: 8px -16px 0; }
  .hero-art img { height: auto; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%); }
  .hero-art figcaption { position: static; padding: 4px 16px 28px; text-align: center; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news.teaser { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; background: rgba(26, 23, 20, 0.98); border-bottom: 1px solid rgba(226, 194, 122, 0.22); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 13px; }
  .nav a.pill { margin: 8px 0 0; text-align: center; }
  .steps { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .sec { padding: 60px 0; }
  .sec-head { margin-bottom: 32px; }
  .sec-head.row { flex-direction: column; align-items: flex-start; }
  .lede { font-size: 16px; }
  .cta-row .btn { width: 100%; }
  .features { grid-template-columns: 1fr; }
  .duo-item { grid-template-columns: 1fr; padding: 18px; }
  .duo-item img { max-width: 240px; margin: 0 auto; }
  .gallery { gap: 12px; }
  .foot-nav { grid-template-columns: 1fr 1fr; }
  .taskbar { height: 24px; } .taskbar i { width: 12px; height: 12px; }
  .strip-desk img { padding-top: 14px; }
  .rank .hide-sm { display: none; }
  .dl-main, .side { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .feat:hover { transform: none; }
}

/* "Em breve": o jogo ainda sem servidor (config.json "open": false) */
.btn.soon { cursor: default; opacity: .75; pointer-events: none; }
