/* Terra e Mata: camada visual, sem alterar motores, rotas, arte ou saves. */
body {
  background:#f4eddd;
}
body > header {
  border:0;
  border-top:12px solid #30412f;
  background:transparent;
  box-shadow:none;
  padding:30px 40px;
  gap:32px;
  min-height:110px;
}
body > header::before,body > header::after,#main > .intro::before,#main > .intro h1::before,#main > .intro h1::after,body > footer::before,body > footer::after {
  display:none!important;
}
body > header .brand {
  width:240px;
  height:64px;
}
body > header .tag {
  color:#30412f;
  letter-spacing:.1em;
}
body > header .doc-link {
  background:#cca034;
  color:#263a2b;
  border:0;
  border-radius:10px;
  padding:12px 22px;
  font:700 16px/1.4 var(--font-ui);
  min-height:48px;
}
body > .platform-leaf-layer::before {
  display:none;
}
body > .platform-leaf-layer > .platform-leaf {
  opacity:.12;
}
#main > .intro,body:has(.lab:not([hidden]), #collection:not([hidden]) > .collection-lab) #main > .intro {
  padding:30px 0 20px;
  min-height:0;
  background:none;
  color:#30412f;
}
#main > .intro h1 {
  font:750 clamp(38px,5.1vw,64px)/1.08 var(--font-ui);
  letter-spacing:-1.5px;
  max-width:74%;
  margin:0 0 18px;
}
#main > .intro h1 em {
  font:inherit;
  color:inherit;
  text-decoration:none;
}
#main > .intro > p {
  font:400 18px/1.65 var(--font-ui);
  color:#30412f;
  max-width:74%;
  margin:0;
}
/* Oito azulejos geométricos em amarelo, verde e azul profundo. */
#main > .intro::after,body:has(.lab:not([hidden]), #collection:not([hidden]) > .collection-lab) #main > .intro::after {
  content:"";
  display:block;
  position:absolute;
  inset:42px 0 auto auto;
  width:230px;
  height:114px;
  z-index:0;
  border:0;
  border-radius:0;
  pointer-events:none;
  background-color:transparent;
  background-image:url("platform-assets/tiles/blue-br.png"),url("platform-assets/tiles/gold-tl.png"),url("platform-assets/tiles/gold-br.png"),url("platform-assets/tiles/green-tl.png"),url("platform-assets/tiles/green-tl.png"),url("platform-assets/tiles/blue-br.png"),url("platform-assets/tiles/green-tl.png"),url("platform-assets/tiles/gold-br.png");
  background-size:54px 54px;
  background-position:0 0,59px 0,118px 0,177px 0,0 60px,59px 60px,118px 60px,177px 60px;
  background-repeat:no-repeat;
}
/* Preserva a fauna original, seus diálogos informativos e os arquivos de arte. */
#main > .intro .hero-fauna {
  position:relative;
  inset:auto!important;
  width:100%;
  max-width:none;
  display:grid;
  grid-template-columns:repeat(15,minmax(0,1fr));
  gap:12px;
  margin:32px 0 0;
  padding:20px 0 0;
  border-top:1px solid #d9d5bf;
}
#main > .intro .hero-fauna-cell {
  width:42px;
  height:42px;
}
#main > .intro .hero-fauna-crop {
  border-radius:50%;
}
.category-choices {
  margin:20px 0 34px;
  gap:16px;
  counter-reset:category;
}
.category-choices > .category-prompt {
  color:#30412f;
  font-size:14px;
  letter-spacing:.08em;
  margin-bottom:4px;
}
.category-choices > button {
  counter-increment:category;
  padding:24px 48px 22px 72px;
  min-height:136px;
  border:1px solid #87977c;
  border-radius:22px;
  background:#fffaf0;
  box-shadow:none;
  color:#30412f;
  font-size:23px;
  font-weight:750;
}
.category-choices > button::before {
  content:"0" counter(category);
  position:absolute;
  left:20px;
  top:26px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#bd4e2c;
  color:#fffaf0;
  font-size:14px;
}
.category-choices > button:nth-of-type(2)::before {
  background:#30412f;
}
.category-choices > button:nth-of-type(3)::before {
  background:#cca034;
  color:#30412f;
}
.category-choices small {
  color:#445440;
  font-size:13px;
  opacity:1;
}
.category-choices > button:hover {
  background:#eadeb8;
  border-color:#39654c;
  box-shadow:0 3px 0 #d8ccb0;
}
#main > .category-heading {
  padding-block:22px;
  gap:24px;
}
#main > .category-heading h2 {
  font:750 25px/1.3 var(--font-ui);
  color:#30412f;
}
#category-back {
  background:#e9d18a;
  color:#30412f;
  border:1px solid #c29c39;
  border-radius:12px;
  box-shadow:none;
  font-size:15px;
  min-height:48px;
}
#main > .games {
  gap:16px;
  margin-bottom:32px;
}
#main > .games > button:not(.game-info-nav) {
  min-height:132px;
  background:#fffaf0;
  border:1px solid #87977c;
  border-radius:22px;
  box-shadow:none;
  color:#30412f;
  font:750 23px/1.3 var(--font-ui);
  padding:24px 48px 24px 58px;
}
#main > .games > button:not(.game-info-nav) small {
  color:#445440;
  opacity:1;
  font-size:13px;
  font-weight:400;
  line-height:1.6;
  margin:12px 0 0;
}
#main > .games > button:not(.game-info-nav):hover {
  background:#eadbb4;
  border-color:#39654c;
}
#main > .games > button:not(.game-info-nav)[aria-pressed=true] {
  background:#39654c;
  border-color:#39654c;
  color:#fffaf0;
}
#main > .games > button[aria-pressed=true] small {
  color:#fffaf0;
}
#main > .games > button.has-game-nav-icon > .game-nav-icon {
  top:25px;
  left:20px;
}
#main > .games > button.game-info-nav {
  border:1px solid #9ba68e;
  background:#fffaf0;
  color:#30412f;
  box-shadow:none;
}
body > footer {
  background:transparent;
  border:0;
  border-top:1px solid #cfcbb6;
  border-radius:0;
  box-shadow:none;
  padding:26px 40px 80px;
  color:#30412f;
}
body > footer .footer-signature {
  padding-left:0;
}
body > footer :is(small,p) {
  color:#445440;
}
@media(max-width:1100px) {
  #main > .intro h1,#main > .intro > p {
    max-width:70%;
  }
  #main > .intro::after {
    width:171px;
    background-size:39px 39px;
    height:83px;
    background-position:0 0,44px 0,88px 0,132px 0,0 44px,44px 44px,88px 44px,132px 44px;
  }
  #main > .intro .hero-fauna {
    grid-template-columns:repeat(8,minmax(0,1fr));
  }
}
@media(max-width:760px) {
  body > header {
    padding:18px 20px;
    gap:16px;
    border-top-width:8px;
    min-height:92px;
  }
  body > header .brand {
    width:180px;
    height:50px;
  }
  body > header .doc-link {
    font-size:13px;
    padding:10px 14px;
  }
  #main > .intro {
    padding:28px 4px 18px;
  }
  #main > .intro h1 {
    font-size:clamp(34px,7vw,48px);
    max-width:100%;
    letter-spacing:-1px;
  }
  #main > .intro > p {
    max-width:100%;
    font-size:16px;
  }
  #main > .intro::after,body:has(.lab:not([hidden]), #collection:not([hidden]) > .collection-lab) #main > .intro::after {
    position:relative;
    inset:auto;
    margin:24px 0 0;
    width:171px;
    height:83px;
    background-size:39px 39px;
    background-position:0 0,44px 0,88px 0,132px 0,0 44px,44px 44px,88px 44px,132px 44px;
  }
  #main > .intro .hero-fauna {
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:16px 10px;
    margin-top:24px;
  }
  #main > .intro .hero-fauna-cell {
    width:40px;
    height:40px;
  }
  .category-choices {
    grid-template-columns:1fr;
    gap:12px;
  }
  .category-choices > button {
    min-height:112px;
    font-size:22px;
    padding:23px 44px 22px 68px;
  }
  .category-choices > button::before {
    left:18px;
    top:24px;
  }
  #main > .games {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  #main > .games > button:not(.game-info-nav) {
    font-size:20px;
    padding:22px 40px 22px 16px;
    min-height:138px;
  }
  #main > .games > button.has-game-nav-icon > .game-nav-icon {
    left:16px;
    top:24px;
  }
  #main > .games > button.has-game-nav-icon > span {
    padding-left:35px;
  }
  body > footer {
    padding:24px 20px 80px;
  }
}
@media(max-width:480px) {
  body > header {
    gap:12px;
  }
  body > header .brand {
    width:155px;
  }
  body > header .doc-link {
    font-size:12px;
    padding:9px 11px;
  }
  #main > .games {
    grid-template-columns:1fr;
  }
  #main > .games > button:not(.game-info-nav) {
    min-height:120px;
  }
  body > footer {
    gap:16px;
    align-items:flex-start;
    flex-direction:column;
  }
  body > footer p {
    text-align:left;
  }
}
.category-choices > button {
  font-family:var(--font-ui);
}
body > footer .footer-signature::before {
  display:none!important;
}
