:root {
  --bg: #e4edc8;
  --bg-deep: #cfdcaf;
  --bg-leaf: #b7c98a;
  --paper: #f7f2e6;
  --paper-2: #efe6d2;
  --ink: #1c1914;
  --ink-soft: #4d473c;
  --ink-mute: #6e6759;
  --line: rgba(28, 25, 20, 0.12);
  --terra: #b44b22;
  --terra-deep: #8a3516;
  --folha: #2f4a2c;
  --ouro: #b07f28;
  --norte: #1f4a34;
  --nordeste: #c46a28;
  --centro: #a4842e;
  --sudeste: #6a3324;
  --sul: #3a5a48;
  --shadow: 0 24px 60px rgba(40, 48, 20, 0.12);
  --radius: 1.6rem;
  --max: 1180px;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-text: "Source Serif 4", "Palatino Linotype", serif;
  --font-ui: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 8% -10%, rgba(255, 244, 210, 0.55), transparent 50%),
    radial-gradient(900px 600px at 110% 10%, rgba(180, 75, 34, 0.08), transparent 46%),
    radial-gradient(800px 500px at 50% 120%, rgba(47, 74, 44, 0.08), transparent 50%),
    var(--bg);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 0;
}

a {
  color: var(--folha);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--terra);
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  align-items: center;
}

.nav a {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--terra);
}

.nav .nav-play {
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

.nav .nav-play:hover {
  background: var(--terra);
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.2rem 0 2.4rem;
}

.hero-kicker,
.kicker {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 0.8rem;
}

.hero h1,
.page-title {
  font-family: var(--font-display);
  font-weight: 520;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero h1 em,
.page-title em {
  font-style: italic;
  font-weight: 450;
  color: var(--folha);
}

.lede,
.hero p.lede {
  max-width: 38rem;
  font-size: 1.22rem;
  color: var(--ink-soft);
  margin: 0;
}

.hero-compass {
  position: absolute;
  right: clamp(1rem, 4vw, 3.5rem);
  top: 1.2rem;
  width: min(22vw, 220px);
  height: auto;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.atlas {
  position: relative;
  margin: 1rem 0 4rem;
}

.atlas-frame {
  position: relative;
  min-height: 720px;
  border-radius: 2rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(247, 242, 230, 0.2), transparent 30%),
    radial-gradient(ellipse at 40% 30%, #c8d6a0, #d7e3b4 40%, #c3d49a);
  box-shadow: var(--shadow);
  border: 1px solid rgba(28, 25, 20, 0.08);
}

.atlas-caption {
  position: absolute;
  left: 1.4rem;
  bottom: 1.2rem;
  z-index: 5;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.land {
  position: absolute;
  color: inherit;
  text-decoration: none;
  overflow: visible;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.land:hover {
  transform: translateY(-4px) scale(1.012);
  filter: saturate(1.08);
  z-index: 4;
  color: #f6f1e4;
}

.land:hover h2,
.land:hover p,
.land:hover .meta {
  color: #f6f1e4;
}

.land-shape {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.land-inner {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #f6f1e4;
  pointer-events: none;
}

.land h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  line-height: 0.95;
  margin: 0 0 0.35rem;
  font-weight: 520;
}

.land p {
  margin: 0;
  max-width: 16rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: rgba(247, 242, 230, 0.9);
}

.land .meta {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: rgba(247, 242, 230, 0.72);
}

.land-norte {
  left: 6%;
  top: 7%;
  width: 52%;
  height: 40%;
}

.land-norte .land-shape {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 230, 150, 0.18), transparent 28%),
    linear-gradient(160deg, #246348, #163928 70%);
  clip-path: polygon(8% 14%, 50% 4%, 90% 14%, 96% 50%, 74% 94%, 24% 90%, 4% 52%);
}

.land-norte .land-inner {
  left: 22%;
  right: 20%;
  top: 24%;
  bottom: 22%;
}

.land-nordeste {
  right: 5%;
  top: 8%;
  width: 38%;
  height: 48%;
}

.land-nordeste .land-shape {
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 210, 120, 0.35), transparent 32%),
    linear-gradient(200deg, #e0893a, #9a4318 72%);
  clip-path: polygon(14% 8%, 80% 2%, 98% 30%, 90% 78%, 48% 96%, 10% 72%, 4% 28%);
}

.land-nordeste .land-inner {
  left: 18%;
  right: 16%;
  top: 22%;
  bottom: 20%;
}

.land-centro {
  left: 12%;
  top: 42%;
  width: 40%;
  height: 36%;
}

.land-centro .land-shape {
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 236, 170, 0.25), transparent 36%),
    linear-gradient(180deg, #c4a24a, #7d6824);
  clip-path: polygon(6% 18%, 64% 2%, 98% 28%, 90% 86%, 22% 96%, 2% 56%);
}

.land-centro .land-inner {
  left: 18%;
  right: 16%;
  top: 20%;
  bottom: 18%;
}

.land-sudeste {
  left: 48%;
  top: 46%;
  width: 32%;
  height: 34%;
}

.land-sudeste .land-shape {
  background: linear-gradient(160deg, #8d4a32, #4a2218);
  clip-path: polygon(8% 16%, 72% 2%, 98% 38%, 82% 96%, 10% 88%, 2% 44%);
}

.land-sudeste .land-inner {
  left: 16%;
  right: 16%;
  top: 20%;
  bottom: 18%;
}

.land-sul {
  left: 36%;
  bottom: 6%;
  width: 30%;
  height: 26%;
}

.land-sul .land-shape {
  background: linear-gradient(180deg, #4f7a62, #24382d);
  clip-path: polygon(22% 4%, 84% 10%, 96% 48%, 64% 96%, 12% 82%, 4% 30%);
}

.land-sul .land-inner {
  left: 18%;
  right: 16%;
  top: 18%;
  bottom: 16%;
}

.section {
  padding: 3.2rem 0;
}

.section h2,
.block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  font-weight: 520;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.6rem;
}

.section-head p {
  max-width: 28rem;
  margin: 0;
  color: var(--ink-soft);
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 10px 30px rgba(40, 48, 20, 0.05);
}

.games-stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: stretch;
}

.game-feature,
.game-side {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  min-height: 280px;
  border-radius: 1.8rem;
  padding: 1.6rem;
}

a.game-feature,
a.game-feature:hover,
a.game-feature:focus {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 220, 140, 0.28), transparent 30%),
    linear-gradient(145deg, #2d4a30, #173022);
  color: #dce8c4 !important;
}

a.game-side,
a.game-side:hover,
a.game-side:focus {
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 240, 200, 0.4), transparent 28%),
    linear-gradient(160deg, #d9783a, #8d3a16);
  color: #fff !important;
}

a.game-feature h3,
a.game-feature .kicker,
a.game-feature .play-chip,
a.game-feature:hover h3,
a.game-feature:hover .kicker,
a.game-feature:hover .play-chip,
a.game-feature:focus h3,
a.game-feature:focus .kicker,
a.game-feature:focus .play-chip {
  color: #dce8c4 !important;
}

a.game-side h3,
a.game-side .kicker,
a.game-side .play-chip,
a.game-side p,
a.game-side:hover,
a.game-side:hover h3,
a.game-side:hover .kicker,
a.game-side:hover .play-chip,
a.game-side:hover p,
a.game-side:focus h3,
a.game-side:focus .kicker,
a.game-side:focus .play-chip,
a.game-side:focus p {
  color: #fff !important;
}

a.game-feature p,
a.game-feature:hover p,
a.game-feature:focus p,
a.game-side p,
a.game-side:hover p,
a.game-side:focus p {
  color: rgba(255, 248, 238, 0.88);
}

.game-feature h3,
.game-side h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  margin: 0 0 0.6rem;
}

.game-feature p,
.game-side p {
  margin: 0;
  max-width: 22rem;
  color: rgba(255, 248, 238, 0.86);
}

.play-chip {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.stat {
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1rem 1.05rem 0.9rem;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 560;
}

.stat span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.source {
  margin-top: 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--ink-mute);
}

.prose {
  max-width: 44rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 2rem 0 0.7rem;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.crumbs {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--ink-mute);
  margin: 1.4rem 0 0;
}

.crumbs a {
  color: inherit;
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--terra);
}

.fact-ribbon {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.7rem;
  margin: 1.6rem 0 2.2rem;
}

.recipe {
  background: var(--paper);
  border-radius: 1.5rem;
  padding: 1.4rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  margin: 1.2rem 0 1.8rem;
}

.recipe h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0 0 0.35rem;
}

.recipe h4 {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 1rem 0 0.35rem;
  color: var(--ink-mute);
}

.recipe-meta {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--ink-mute);
  margin-bottom: 0.8rem;
}

.recipe ul,
.recipe ol {
  margin: 0.3rem 0 0.8rem;
  padding-left: 1.15rem;
}

.state-list,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--ink);
}

.chip:hover {
  border-color: var(--terra);
  color: var(--terra);
}

.biomes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.7rem;
}

.biome {
  min-height: 160px;
  padding: 1rem;
  border-radius: 1.2rem;
  text-decoration: none;
  color: #f6f1e4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.biome:hover,
.biome:hover h3 {
  color: #f6f1e4;
}

.biome h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.b-amazonia { background: linear-gradient(180deg, #3b7a52, #173526); }
.b-cerrado { background: linear-gradient(180deg, #d2a84a, #7a5d1c); }
.b-caatinga { background: linear-gradient(180deg, #e0a36a, #9a5420); }
.b-atlantica { background: linear-gradient(180deg, #4f8a62, #234232); }
.b-pantanal { background: linear-gradient(180deg, #6aa07a, #2f4e38); }
.b-pampa { background: linear-gradient(180deg, #8fa86a, #4a5d32); }

.site-footer {
  margin-top: 3rem;
  padding: 2.4rem 0 2.2rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-deep) 55%, var(--bg));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h2 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
  color: var(--ink-mute);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.28rem 0;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: var(--terra);
}

.footer-brand img {
  height: 36px;
  margin-bottom: 0.7rem;
}

.footer-copy {
  margin-top: 1.8rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--ink-mute);
}

.quiz-card,
.board {
  background: var(--paper);
  border-radius: 1.6rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.choices {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.choices button,
.btn {
  font-family: var(--font-ui);
  font-size: 1rem;
  border: 1px solid var(--line);
  background: #fffdf7;
  color: var(--ink);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  text-align: left;
  cursor: pointer;
}

.choices button:hover,
.btn:hover {
  border-color: var(--folha);
}

.choices button.ok {
  background: #dce9c8;
  border-color: var(--folha);
}

.choices button.bad {
  background: #f3d4c6;
  border-color: var(--terra);
}

.btn.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  text-decoration: none;
  display: inline-block;
}

.score {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 0.4rem 0;
}

.map-regions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
  margin: 1rem 0;
}

.drop-region {
  min-height: 150px;
  border-radius: 1rem;
  padding: 0.7rem;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  color: #fff8ee;
}

.drop-region h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-family: var(--font-display);
}

.drop-norte { background: #1f4a34; }
.drop-nordeste { background: #c46a28; }
.drop-centro-oeste { background: #a4842e; }
.drop-sudeste { background: #6a3324; }
.drop-sul { background: #3a5a48; }

.tile-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 70px;
}

.state-tile {
  font-family: var(--font-ui);
  font-size: 0.86rem;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  cursor: grab;
  user-select: none;
}

.state-tile:active {
  cursor: grabbing;
}

.form {
  display: grid;
  gap: 0.7rem;
  max-width: 32rem;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 0.8rem;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
}

.note {
  background: color-mix(in srgb, var(--paper) 80%, #fff);
  border-left: 3px solid var(--ouro);
  padding: 0.8rem 1rem;
  border-radius: 0 0.8rem 0.8rem 0;
}

.region-states {
  display: grid;
  gap: 0.7rem;
}

.region-state {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  background: var(--paper);
  border-radius: 1.1rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

.region-state:hover {
  border-color: var(--line);
}

.region-state strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 520;
}

.uf {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    top: 68px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav.open {
    display: flex;
  }

  .atlas-frame {
    min-height: auto;
    display: grid;
    gap: 0.7rem;
    padding: 0.8rem;
    background: transparent;
    box-shadow: none;
    border: 0;
  }

  .land {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 150px;
  }

  .land-shape {
    clip-path: none !important;
    border-radius: 1.3rem;
  }

  .land-inner {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    min-height: 150px;
    padding: 1.2rem 1.3rem;
    align-items: flex-start;
    text-align: left;
  }

  .games-stage,
  .split,
  .footer-grid,
  .stats,
  .fact-ribbon,
  .biomes,
  .map-regions {
    grid-template-columns: 1fr;
  }

  .region-state {
    grid-template-columns: 1fr;
  }

  .hero-compass {
    display: none;
  }
}
