:root {
  color-scheme: dark;
  --bg: #0f0f16;
  --bg-alt: #16161f;
  --card: #1a1a24;
  --border: #2a2a38;
  --text: #e8e6e0;
  --text-dim: #9a97a8;
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.12);
  --blue: #2d9cdb;
  --teal: #32bcad;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  margin: 0;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(212,175,55,0.08), transparent),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.pixel-art { image-rendering: pixelated; image-rendering: crisp-edges; }

a { color: var(--gold); }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* --- Nav --- */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15,15,22,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; gap: 12px; padding: 14px 24px; }
header.site img.logo { width: 36px; height: 36px; border-radius: 8px; }
header.site .brand { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.2px; }
header.site nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
header.site nav a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color .15s; }
header.site nav a:hover { color: var(--gold); }

/* --- Hero --- */
.hero {
  position: relative;
  text-align: center;
  padding: 96px 24px 72px;
  background:
    linear-gradient(180deg, rgba(10,10,16,0.55) 0%, rgba(10,10,16,0.80) 55%, var(--bg) 100%),
    url("/assets/screenshots/overworld_1.png") center 38% / cover no-repeat;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  /* Vinheta sutil nas laterais pra texto continuar legível sobre o screenshot */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 700px 420px at 50% 30%, transparent, rgba(10,10,16,0.55));
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow-tag {
  display: inline-block; color: var(--gold); text-transform: uppercase; font-size: 0.72rem;
  font-weight: 700; letter-spacing: 1.5px; margin-bottom: 14px; padding: 4px 10px;
  border: 1px solid rgba(212,175,55,0.4); border-radius: 999px; background: rgba(10,10,16,0.4);
}
.hero h1 {
  font-size: 2.6rem; margin: 0 0 14px; letter-spacing: -0.5px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.65);
}
.hero h1 .accent { color: var(--gold); }
.hero p {
  color: #d8d5e0; max-width: 560px; margin: 0 auto 28px; font-size: 1.05rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.6);
}
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 8px; font-weight: 600;
  text-decoration: none; font-size: 0.95rem; border: none; cursor: pointer; transition: transform .1s, opacity .15s;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--gold); color: #1a1400; }
.btn-secondary { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-teal { background: var(--teal); color: #04201d; }

/* --- Sections --- */
section { padding: 56px 24px; border-top: 1px solid var(--border); }
section .wrap { padding: 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: 1.6rem; margin: 0 0 8px; }
.section-head p { color: var(--text-dim); margin: 0; }
.eyebrow { color: var(--gold); text-transform: uppercase; font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 8px; display: block; text-align: center; }

/* --- Features grid --- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.feature-card .icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.feature-card h3 { font-size: 1rem; margin: 0 0 6px; }
.feature-card p { font-size: 0.85rem; color: var(--text-dim); margin: 0; }

/* Tira de sprites das vocações dentro do card "4 Vocações" -- mesmos frames
   usados de verdade no jogo (Character/*.png), não ícone genérico. */
.vocation-sprites { display: flex; align-items: flex-end; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.vocation-sprites figure { margin: 0; text-align: center; }
.vocation-sprites img { height: 40px; width: auto; display: block; margin: 0 auto 4px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.vocation-sprites figcaption { font-size: 0.62rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }

/* --- Screenshots gallery --- */
.screenshot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.screenshot-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  background: var(--card);
}
.screenshot-frame img { display: block; width: 100%; height: auto; }
.screenshot-frame .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px;
  background: linear-gradient(0deg, rgba(10,10,16,0.85), transparent);
  font-size: 0.8rem; color: #fff; font-weight: 600;
}

/* --- Download cards --- */
.download-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.download-card { flex: 1; min-width: 240px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.download-card .platform-icon { font-size: 2rem; margin-bottom: 8px; }
.download-card .platform { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.download-card .meta { color: var(--text-dim); font-size: 0.8rem; margin-bottom: 18px; }

/* --- Patch notes --- */
.patch-list { display: flex; flex-direction: column; gap: 4px; }
.patch-entry { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.patch-entry:last-child { border-bottom: none; }
.patch-date { color: var(--gold); font-size: 0.8rem; font-weight: 700; padding-top: 2px; }
.patch-tag { display: inline-block; background: var(--gold-soft); color: var(--gold); font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }
.patch-body h3 { margin: 0 0 8px; font-size: 1rem; }
.patch-body ul { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: 0.88rem; }
.patch-body li { margin-bottom: 4px; }
@media (max-width: 560px) {
  .patch-entry { grid-template-columns: 1fr; gap: 6px; }
}

/* --- Suggestion / shop CTA banners --- */
.cta-banner { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; }
.cta-banner h2 { margin: 0 0 8px; font-size: 1.3rem; }
.cta-banner p { color: var(--text-dim); margin: 0 0 20px; }

/* --- Forms (suggestions) --- */
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; max-width: 560px; margin: 0 auto; }
textarea, input[type=text], input[type=password], input[type=email] {
  width: 100%; box-sizing: border-box; padding: 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-alt); color: var(--text); font-family: inherit; font-size: 0.95rem; resize: vertical;
}
textarea:focus, input[type=text]:focus, input[type=password]:focus, input[type=email]:focus { outline: 1px solid var(--gold); }
label { display: block; margin: 4px 0; font-size: 0.9rem; }
.field-hint { color: var(--text-dim); font-size: 0.78rem; margin: 6px 0 20px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: rgba(50,188,173,0.12); border: 1px solid var(--teal); color: var(--teal); }
.alert-error { background: rgba(220,80,80,0.12); border: 1px solid #d45050; color: #ff8a8a; }

footer.site { text-align: center; color: #55536a; font-size: 0.8rem; padding: 32px 24px; }
