/* Site do MedievalZero Online (página inicial, história, mundo, conta).
   Mesma paleta de pergaminho/madeira/ouro do jogo (styles.css). */
:root {
  --ink: #2a1d12;
  --ink-soft: #4a3826;
  --muted: #6b5a42;
  --parchment: #f4e8c8;
  --parchment-2: #ead9ae;
  --parchment-3: #dcc58e;
  --wood: #6b4423;
  --wood-light: #a8743f;
  --gold: #d4a62a;
  --gold-light: #f0cf6a;
  --crimson: #8e2a1e;
  --crimson-dark: #6a1d14;
  --forest: #2f4a24;
  --forest-dark: #1d3016;
  --night: #17120d;
  --ok: #2f6b22;
  --font-title: 'Cinzel', Georgia, serif;
  --font-body: 'Crimson Pro', Georgia, serif;
  --header-h: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.55;
}
a { color: var(--crimson); }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
kbd {
  font-family: ui-monospace, monospace;
  font-size: 0.8em;
  padding: 0.05rem 0.35rem;
  border: 1px solid var(--wood-light);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--parchment-2);
}

/* ---------- cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, var(--wood) 0%, #573618 100%);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.brand {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--parchment);
  text-decoration: none;
  letter-spacing: 1px;
  white-space: nowrap;
}
.brand span { color: var(--gold-light); }
.site-nav { display: flex; gap: 1.2rem; margin-left: auto; }
.site-nav a {
  white-space: nowrap;
  color: var(--parchment);
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.site-nav a:hover { color: var(--gold-light); }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--gold);
  color: var(--parchment);
  font-size: 1.3rem;
  width: 40px;
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.65rem 1.3rem;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 0.95rem;
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn-play {
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border-color: #8a6a12;
  box-shadow: 0 3px 0 #8a6a12, 0 6px 18px rgba(212, 166, 42, 0.35);
}
.btn-small { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-huge { font-size: 1.35rem; padding: 1rem 2.4rem; box-shadow: 0 4px 0 #8a6a12, 0 0 0 4px rgba(240, 207, 106, 0.25), 0 10px 30px rgba(212, 166, 42, 0.45); }
.btn-primary { color: var(--parchment); background: var(--crimson); border-color: var(--crimson-dark); box-shadow: 0 3px 0 var(--crimson-dark); }
.btn-ghost { color: var(--parchment); background: rgba(0, 0, 0, 0.25); border-color: var(--parchment-3); }
.section:not(.section-dark) .btn-ghost, .panel .btn-ghost { color: var(--ink); background: transparent; border-color: var(--wood-light); }

/* ---------- herói ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 10%, rgba(240, 207, 106, 0.22), transparent 55%),
    linear-gradient(180deg, #1c2c17 0%, var(--forest) 55%, var(--forest-dark) 100%);
  color: var(--parchment);
  text-align: center;
  padding: 2rem 16px 3rem;
}
.hero-scene {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 46%;
  pointer-events: none;
}
.hero-content { position: relative; max-width: 760px; margin-bottom: 18vh; }
.hero-kicker {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  font-weight: 800;
  color: var(--parchment);
  text-shadow: 0 3px 0 var(--wood), 0 0 30px rgba(240, 207, 106, 0.35);
  margin: 0.3rem 0 0.8rem;
}
.hero-tagline { font-size: clamp(1.1rem, 2.6vw, 1.35rem); color: #efe2c0; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; }
.hero-stats { margin-top: 1.4rem; color: var(--parchment-3); font-size: 1rem; }
.hero-stats strong { color: var(--gold-light); }

/* ---------- seções ---------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) 16px; }
.section-alt { background: var(--parchment-2); }
.section-dark {
  background: linear-gradient(180deg, var(--night), #241a10);
  color: #efe2c0;
}
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner.narrow { max-width: 760px; }
.section h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--crimson);
  margin-bottom: 0.8rem;
}
.section-dark h2 { color: var(--gold-light); }
.lead { font-size: 1.25rem; max-width: 780px; margin-bottom: 2rem; color: var(--ink-soft); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.feature, .panel {
  background: var(--parchment);
  border: 2px solid var(--wood-light);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 2px 0 var(--parchment-3);
}
.section-alt .panel { background: #f8eed5; }
.feature h3 { font-size: 1.05rem; color: var(--wood); margin-bottom: 0.35rem; }
.how-to { margin-top: 2.5rem; }
.how-to h3 { color: var(--wood); margin-bottom: 0.6rem; }
.how-to ol { padding-left: 1.4rem; display: grid; gap: 0.4rem; }

/* ---------- história ---------- */
.lore p { margin-bottom: 1.1rem; font-size: 1.22rem; }
.lore strong { color: var(--gold-light); }
.lore em { color: #f3c98b; }
.dropcap::first-letter {
  float: left;
  font-family: var(--font-title);
  font-size: 3.6rem;
  line-height: 0.9;
  padding: 0.2rem 0.5rem 0 0;
  color: var(--gold);
}
.lore-end { font-style: italic; text-align: center; color: var(--gold-light); margin-top: 1.6rem; }

/* ---------- mundo ---------- */
.world-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.world-canvas-wrap canvas { width: 100%; aspect-ratio: 1; display: block; border: 3px solid var(--gold); border-radius: 8px; box-shadow: 0 0 0 3px var(--wood); cursor: crosshair; }
.world-hover { font-size: 0.95rem; color: var(--muted); margin-top: 0.4rem; min-height: 1.4em; }
.region-cards { display: grid; gap: 0.7rem; }
.region-card { background: #f8eed5; border: 1px solid var(--parchment-3); border-left: 6px solid; border-radius: 8px; padding: 0.7rem 0.9rem; }
.region-card h3 { font-size: 1.05rem; color: var(--wood); margin-bottom: 0.2rem; }
.region-card p { font-size: 1rem; }
@media (max-width: 860px) { .world-layout { grid-template-columns: 1fr; } }
.world-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding: 0.6rem;
  background: var(--wood);
  border: 3px solid var(--gold);
  border-radius: 10px;
}
.zone {
  position: relative;
  min-height: 190px;
  padding: 0.9rem;
  border-radius: 6px;
  background: var(--parchment);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.zone h3 { font-size: 1rem; color: var(--ink); }
.zone p { font-size: 0.98rem; color: var(--ink-soft); flex: 1; }
.zone.start { background: #f8f0c8; box-shadow: inset 0 0 0 3px var(--gold); }
.zone .badge { align-self: flex-start; }
.danger { font-size: 0.85rem; color: var(--crimson); letter-spacing: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.chip {
  font-size: 0.78rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--parchment-2);
  border: 1px solid var(--parchment-3);
}
.chip.boss { background: #f6d2b8; border-color: var(--crimson); color: var(--crimson-dark); font-weight: 600; }
.badge {
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--gold);
  color: var(--ink);
}

/* ---------- bestiário ---------- */
.elite-note { margin: -1rem 0 1.5rem; padding: 0.6rem 0.9rem; border: 2px dashed var(--gold); border-radius: 8px; background: #fbf1cf; }
.bestiary { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.beast {
  background: #f8eed5;
  border: 2px solid var(--wood-light);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.beast canvas { display: block; width: 100%; height: 150px; background: linear-gradient(180deg, #9cc27a, #6f9a4f); border-bottom: 2px solid var(--wood-light); }
.beast-body { padding: 0.7rem 0.9rem 0.9rem; display: flex; flex-direction: column; gap: 0.3rem; }
.beast h3 { font-size: 1rem; }
.beast.boss { border-color: var(--crimson); }
.beast.boss h3 { color: var(--crimson); }
.beast-stats { display: flex; gap: 0.8rem; font-size: 0.9rem; color: var(--muted); }
.beast p { font-size: 0.98rem; }
.beast .where { font-size: 0.88rem; color: var(--muted); font-style: italic; }

/* ---------- habilidades ---------- */
.skills-intro { margin-bottom: 1.6rem; }
.locks { list-style: none; display: grid; gap: 0.3rem; margin-top: 0.6rem; }
.lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.5rem;
  border: 1px solid var(--wood-light);
  border-radius: 4px;
  font-size: 0.85rem;
  background: var(--parchment-2);
}
.lock-up { color: var(--ok); }
.lock-down { color: var(--crimson); }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.8rem; }
.skill-card { border-left: 5px solid var(--gold); }
.skill-card h3 { font-size: 1rem; color: var(--wood); margin-bottom: 0.2rem; }
.skill-card p { font-size: 1rem; }
.build-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.build-rules h3 { color: var(--wood); font-size: 1.05rem; margin-bottom: 0.3rem; }
.skill-names { list-style: none; display: grid; gap: 0.25rem; font-size: 0.98rem; }
.weapon small { font-weight: 400; color: var(--muted); }
.sub-title { font-size: 1.4rem; color: var(--crimson); margin: 2.5rem 0 0.6rem; }
.weapon-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.weapon-group h4 { font-family: var(--font-title); color: var(--wood); margin-bottom: 0.5rem; }
.weapon { padding: 0.5rem 0; border-top: 1px solid var(--parchment-3); }
.weapon strong { display: block; }
.weapon .rarity-uncommon { color: #2f6b22; }
.weapon .rarity-rare { color: #2b4fa3; }
.weapon ul { list-style: none; font-size: 0.95rem; }
.weapon li span { font-family: ui-monospace, monospace; font-size: 0.8rem; color: var(--muted); }

/* ---------- conta ---------- */
.account-guest { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.guest-pitch { display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; }
.tabs { display: flex; border-bottom: 2px solid var(--parchment-3); margin-bottom: 1rem; }
.tab {
  flex: 1;
  font-family: var(--font-title);
  font-size: 0.9rem;
  padding: 0.6rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  color: var(--muted);
}
.tab.active { color: var(--crimson); border-bottom-color: var(--crimson); }
.form { display: flex; flex-direction: column; gap: 0.75rem; }
.form h3 { color: var(--wood); font-size: 1.05rem; }
.form label { display: flex; flex-direction: column; gap: 0.2rem; font-weight: 600; font-size: 1rem; }
.form small { font-weight: 400; color: var(--muted); }
.form input {
  font: inherit;
  font-weight: 400;
  padding: 0.55rem 0.7rem;
  border: 2px solid var(--parchment-3);
  border-radius: 6px;
  background: #fffaf0;
  color: var(--ink);
}
.form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 166, 42, 0.25); }
.form .btn { align-self: flex-start; }
.msg { min-height: 1.3em; font-size: 1rem; }
.msg.error { color: var(--crimson); }
.msg.ok { color: var(--ok); }

.account-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.account-head h3 { font-size: 1.6rem; color: var(--crimson); }
.account-head-actions { display: flex; gap: 0.6rem; }
.account-user > .panel { margin-bottom: 1rem; }
.account-user .panel h3 { color: var(--wood); margin-bottom: 0.7rem; }
.account-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.char-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.7rem; margin-bottom: 0.6rem; }
.char-card {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.5rem;
  border: 1px solid var(--parchment-3);
  border-radius: 6px;
  background: var(--parchment);
}
.char-card canvas { width: 64px; height: 64px; flex: none; border-radius: 4px; background: var(--parchment-2); }
.char-card strong { display: block; }
.char-card span { font-size: 0.9rem; color: var(--muted); }
.char-card em { color: var(--ok); font-size: 0.85rem; }

/* ---------- rodapé ---------- */
.site-footer {
  text-align: center;
  padding: 2rem 16px;
  background: var(--wood);
  color: var(--parchment);
  border-top: 3px solid var(--gold);
}
.site-footer a { color: var(--gold-light); }
.site-footer .muted { color: var(--parchment-3); }

/* ---------- celular ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #573618;
    border-bottom: 3px solid var(--gold);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.9rem 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .site-header > .btn-play { margin-left: 0; }
  .world-map { grid-template-columns: 1fr; }
  .account-guest { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .paths { grid-template-columns: 1fr; }
  .brand { font-size: 1.05rem; }
  .btn-huge { font-size: 1.1rem; padding: 0.9rem 1.6rem; }
}

/* ---------- página da história (/historia) ---------- */
.lore-page { background: #1b1510; }
.lore-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 2rem 16px 6rem;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(157, 92, 255, 0.28), transparent 55%),
    linear-gradient(180deg, #0e0b12 0%, #1d1626 60%, #1b1510 100%);
  color: var(--parchment);
}
.lore-hero .hero-scene { height: 45%; inset: auto 0 4.5rem 0; }
.lore-hero-content { position: relative; margin-bottom: 14vh; }
.lore-hero h1 {
  font-size: clamp(2.4rem, 8vw, 5rem);
  color: var(--parchment);
  text-shadow: 0 3px 0 #3a2450, 0 0 34px rgba(157, 92, 255, 0.45);
}
.lore-book {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem clamp(16px, 5vw, 56px) 4rem;
  background: var(--parchment);
  box-shadow: 0 0 0 3px var(--wood), 0 0 0 6px var(--gold), 0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  top: -4rem;
  border-radius: 6px;
}
.chapter { margin-bottom: 3.2rem; }
.chapter h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  color: var(--crimson);
  text-align: center;
  margin-bottom: 1.4rem;
}
.chapter h2::after {
  content: '';
  display: block;
  width: 120px;
  height: 3px;
  margin: 0.6rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.chapter p { font-size: 1.24rem; margin-bottom: 0.8rem; }
.chapter strong { color: var(--crimson-dark); }
.chapter .beat { font-size: 1.4rem; text-align: center; margin: 1.3rem 0; font-style: italic; }
.omens { list-style: none; margin: 0.6rem 0 1rem; padding-left: 1rem; border-left: 3px solid var(--parchment-3); font-style: italic; font-size: 1.2rem; }
.roll { font-style: italic; color: var(--ink-soft); }
.chapter-dark {
  background: linear-gradient(180deg, #1d1626, #120e18);
  color: #e6dcf2;
  margin-left: clamp(-56px, -5vw, -16px);
  margin-right: clamp(-56px, -5vw, -16px);
  padding: 2.4rem clamp(16px, 5vw, 56px);
}
.chapter-dark h2 { color: #c9a2ff; }
.chapter-dark strong { color: #c9a2ff; }
.villain { margin: 1.6rem 0; text-align: center; }
.villain canvas {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a2240 0%, #120e18 75%);
  border: 3px solid #6e3fab;
  box-shadow: 0 0 30px rgba(157, 92, 255, 0.45);
}
.villain figcaption {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: #4f2a82;
  margin-top: 0.6rem;
}
.regions { display: grid; gap: 1rem; margin-top: 1.2rem; }
.region {
  padding: 1.1rem 1.25rem;
  border-radius: 8px;
  border-left: 6px solid var(--wood-light);
  background: #f8eed5;
}
.region h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.region h3 small { display: block; font-family: var(--font-body); font-weight: 400; font-style: italic; font-size: 1rem; color: var(--muted); }
.region p { font-size: 1.12rem; }
.region .in-game { font-size: 0.95rem; color: var(--muted); margin-top: 0.4rem; margin-bottom: 0; }
.region-eldervale { border-left-color: #4f7f37; }
.region-morgrath { border-left-color: #5a5a3a; }
.region-skaldrim { border-left-color: #7fb4d8; }
.region-kharzul { border-left-color: #c9a66b; }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin: 1.4rem 0 1.8rem; }
.path { text-align: center; padding: 0.8rem; border: 2px solid var(--wood-light); border-radius: 8px; background: #f8eed5; }
.path canvas { width: 100%; height: 120px; display: block; }
.path h3 { color: var(--crimson); font-size: 1.1rem; margin: 0.3rem 0; }
.path p { font-size: 1rem; margin: 0; }
.prophecy {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  font-size: clamp(1.25rem, 3.4vw, 1.55rem);
  font-style: italic;
  text-align: center;
  color: var(--ink);
  background: linear-gradient(180deg, #fbf1cf, #f1dfa8);
  border: 2px solid var(--gold);
  border-radius: 8px;
  box-shadow: inset 0 0 0 4px rgba(212, 166, 42, 0.18);
}
.paths-note { text-align: center; font-style: italic; }
.lore-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.lore-cta .btn-ghost { color: var(--ink); border-color: var(--wood-light); background: transparent; }
.lore-teaser { text-align: center; }
.catalog-links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.lore-teaser .btn { margin-top: 1.2rem; }

/* ---------- páginas de catálogo (/itens, /skills) ---------- */
.catalog-page { min-height: 70vh; }
.page-title { font-size: clamp(2rem, 6vw, 3rem); color: var(--crimson); margin-bottom: 0.6rem; }
.site-nav a[aria-current="page"] { color: var(--gold-light); border-bottom: 2px solid var(--gold); }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.6rem; position: sticky; top: var(--header-h); z-index: 5; padding: 0.6rem 0; background: var(--parchment); }
.filter-tab {
  font-family: var(--font-title);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.35rem 0.85rem;
  border: 2px solid var(--wood-light);
  border-radius: 999px;
  background: #f8eed5;
}
.filter-tab:hover { border-color: var(--gold); }
.filter-tab.active { background: var(--crimson); border-color: var(--crimson-dark); color: var(--parchment); }
.catalog-group { margin-bottom: 2.4rem; }
.catalog-group > h2 { font-size: 1.6rem; color: var(--wood); margin-bottom: 0.8rem; border-bottom: 2px solid var(--parchment-3); padding-bottom: 0.3rem; }
.type-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0.4rem 1rem;
  margin-bottom: 1rem;
}
.type-preview { width: 120px; height: 120px; border-radius: 8px; background: linear-gradient(180deg, #9cc27a, #6f9a4f); border: 2px solid var(--wood-light); }
.type-body h3 { color: var(--crimson); font-size: 1.25rem; }
.type-body p { margin: 0.15rem 0; }
.type-table { grid-column: 1 / -1; overflow-x: auto; }
.rules-card { grid-template-columns: 1fr; }
.rules-card ul { margin: 0.3rem 0 0.6rem 1.2rem; }
.rules-card h3 + p { margin-bottom: 0.3rem; }
.ability-list { list-style: none; margin-top: 0.4rem; display: grid; gap: 0.2rem; font-size: 1rem; }
.tier-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; min-width: 520px; }
.tier-table th, .tier-table td { padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--parchment-3); text-align: left; vertical-align: top; }
.tier-table th { font-family: var(--font-title); font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.tier-table small { color: var(--muted); }
.rarity-common { color: var(--ink); }
.rarity-magic { color: #2b5fb8; }
.rarity-rare { color: #9a7410; }
.rarity-legendary { color: #b4501a; }
.skill-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.9rem; }
.skill-cards .skill-card h3 { color: var(--crimson); }
.skill-card dl { margin-top: 0.4rem; font-size: 0.98rem; }
.skill-card dt { font-family: var(--font-title); font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }
.skill-card dd { margin: 0; }
@media (max-width: 560px) {
  .type-card { grid-template-columns: 1fr; }
  .type-preview { margin: 0 auto; }
}
.ability-list li span { font-family: var(--font-body); font-size: 0.9rem; }

/* ===================================================================
   Tom mais sóbrio e medieval (menos desenho animado): pergaminho
   envelhecido, couro escuro, latão no lugar do dourado vivo, cantos
   quase retos e sem brilhos exagerados.
   =================================================================== */
:root {
  --ink: #241a10;
  --ink-soft: #3e3020;
  --muted: #5e5040;
  --parchment: #dcceac;
  --parchment-2: #cfbf98;
  --parchment-3: #bca97c;
  --wood: #3b2a1a;
  --wood-light: #6e5434;
  --gold: #a8883e;
  --gold-light: #c9a95a;
  --crimson: #6e2318;
  --crimson-dark: #4a170f;
}
body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 240, 200, 0.25), transparent 60%),
    var(--parchment);
}
.site-header { background: linear-gradient(180deg, #2c2016, #1d150e); border-bottom: 1px solid var(--gold); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
.btn, .panel, .beast, .region-card, .type-card, .catalog-group article, .character-card, .filter-tab, .world-canvas-wrap canvas { border-radius: 2px !important; }
.btn-play {
  color: #f2e6c8;
  background: linear-gradient(180deg, #7a2a1c, #561a10);
  border-color: #3a0f08;
  box-shadow: 0 2px 0 #2a0a05, 0 4px 12px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}
.btn-huge { box-shadow: 0 3px 0 #2a0a05, 0 0 0 2px rgba(168, 136, 62, 0.45), 0 8px 24px rgba(0, 0, 0, 0.45); }
.panel, .beast, .region-card, .type-card {
  background: linear-gradient(180deg, rgba(240, 228, 200, 0.55), rgba(205, 188, 150, 0.55));
  border: 1px solid #8e7650;
  box-shadow: inset 0 0 18px rgba(80, 55, 20, 0.15);
}
.section-dark, .section-alt { background: linear-gradient(180deg, #2a2016, #1c150e) !important; color: #e3d5b4; }
.section-dark h2, .section-alt h2 { color: #d8c08a; }
.section-alt .panel, .section-alt .beast, .section-alt .region-card { color: var(--ink); }
.filter-tab.active { background: var(--wood); color: #f0dfb4; }

/* Arte de abertura: o título faz parte da ilustração. */
.hero {
  min-height: 0;
  display: block;
  padding: 0;
  background: #0c1017;
  border-bottom: 1px solid #8b7046;
}
.hero-art {
  display: block;
  width: 100%;
  height: clamp(560px, 62vw, 860px);
  object-fit: cover;
  object-position: center 38%;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: -205px auto 0;
  padding: 24px 24px 38px;
  background: radial-gradient(ellipse, #0c1017e6 0%, #0c101799 55%, transparent 75%);
  border: 0;
  box-shadow: none;
}
.hero h1.hero-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero-content .hero-kicker { color: #d4bd8c; letter-spacing: 2px; font-size: .72rem; }
.hero-content .hero-tagline { max-width: 590px; margin: 12px auto 22px; color: #f2e6cf; text-shadow: 0 2px 8px #000; }
.hero-content .btn-ghost { color: #ead7af; border-color: #a58c5d; background: #10151ddb; }
.hero .btn-play { background: linear-gradient(180deg, #b28b43, #795925); color: #fff0cf; border-color: #dcc18a; }
.hero .btn-huge { font-size: 1rem; padding: .9rem 1.6rem; box-shadow: 0 3px 0 #493413, 0 6px 24px #0008; }
.hero-stats[hidden] { display: none; }
.btn[hidden] { display: none; }
@media (max-width: 600px) {
  .hero-art { height: auto; object-fit: contain; }
  .hero-content { margin-top: -12px; padding: 0 20px 32px; background: none; }
  .hero-content .hero-kicker { font-size: .62rem; letter-spacing: 1px; }
  .hero-content .hero-tagline { font-size: 1.15rem; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { width: 100%; max-width: 340px; }
}

/* Contato: permite quebrar o endereço em telas estreitas. */
.contact-email { color: inherit; overflow-wrap: anywhere; }
