/* Crater Crush styles, part 2 of 6 (see estilo.css). Linked in this order by index.html. */
.f-custo.grande .ico {
  width: 2.4rem;
  height: 2.4rem;
}
#volta-ok {
  height: 3.4rem;
  font-size: 1.4rem;
}

/* ---------- phones (portrait) ---------- */
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  .logo {
    height: 2.7rem;
    top: max(0.75rem, env(safe-area-inset-top));
  }
  #hud {
    --m: max(0.8rem, env(safe-area-inset-top));
  }
  #hud-moedas {
    left: calc(max(0.6rem, env(safe-area-inset-left)) + 1.2rem);
    height: 2.8rem;
    min-width: 6.4rem;
    padding-left: 1.9rem;
    border-width: 0.8rem 1.2rem;
    border-image-width: 0.8rem 1.2rem;
  }
  #hud-moedas .ico-g {
    left: -2rem;
    width: 3.3rem;
    height: 3.3rem;
  }
  #hud-moedas b {
    font-size: 1.45rem;
  }
  #hud-dir {
    display: contents;
  }
  #hud-tempo {
    position: absolute;
    right: max(0.6rem, env(safe-area-inset-right));
    top: var(--m);
    height: 2.8rem;
    min-width: 0;
    padding-left: 1.3rem;
    border-width: 0.8rem 1.2rem;
    border-image-width: 0.8rem 1.2rem;
  }
  #hud-tempo .ico-g {
    left: -1.9rem;
    width: 3.2rem;
    height: 3.2rem;
  }
  #hud-tempo b {
    font-size: 1.45rem;
  }
  #pilulas {
    left: max(0.6rem, env(safe-area-inset-left));
    right: max(0.6rem, env(safe-area-inset-right));
    top: calc(var(--m) + 3.7rem);
    flex-direction: row;
    justify-content: center;
    gap: 1.25rem;
    padding-left: 1rem;
  }
  #pilulas .placa {
    height: 2.2rem;
    min-width: 0;
    flex: 0 1 auto;
    padding-left: 0.75rem;
    border-width: 0.65rem 0.9rem;
    border-image-width: 0.65rem 0.9rem;
  }
  #pilulas .ico-g {
    left: -1.25rem;
    width: 2.2rem;
    height: 2.2rem;
  }
  #pilulas b {
    font-size: 1.05rem;
  }
  #hud-xp {
    left: max(0.6rem, env(safe-area-inset-left));
    right: calc(max(0.6rem, env(safe-area-inset-right)) + 12.4rem);
    bottom: max(0.8rem, env(safe-area-inset-bottom));
  }
  #hud-xp .trilho {
    flex: 1;
    min-width: 0;
    padding: 0 0.6rem 0 1.2rem;
  }
  .barra {
    width: auto;
    flex: 1;
  }
  #xp-txt {
    display: none;
  }
  .escudo {
    width: 3rem;
    height: 3.3rem;
  }
  .escudo b {
    font-size: 1.35rem;
  }
  #pausar {
    position: absolute;
    right: calc(max(0.6rem, env(safe-area-inset-right)) + 8.6rem);
    bottom: max(0.95rem, env(safe-area-inset-bottom));
    width: 2.9rem;
    height: 2.9rem;
  }
  #fim {
    right: max(0.6rem, env(safe-area-inset-right));
    bottom: max(0.8rem, env(safe-area-inset-bottom));
    height: 3.2rem;
    font-size: 0.95rem;
    width: 8.2rem;
    border-width: 0.8rem;
    border-image-width: 0.8rem;
  }
  #hud.resumo #hud-xp {
    right: max(0.6rem, env(safe-area-inset-right));
    transform: none;
    left: max(0.6rem, env(safe-area-inset-left));
  }
  /* hub on phones: coins + ores in one compact row, tabs become a bottom bar with icons */
  #hud.menu #hud-moedas {
    height: 2.4rem;
    border-width: 0.7rem 1rem;
    border-image-width: 0.7rem 1rem;
  }
  #hud.menu #hud-moedas .ico-g {
    width: 2.7rem;
    height: 2.7rem;
    left: -1.7rem;
  }
  #hud.menu #hud-moedas b {
    font-size: 1.15rem;
  }
  #hud.menu #pilulas {
    top: calc(var(--m) + 3.1rem);
  }
  #hub {
    padding: 8.6rem 0.75rem calc(5.4rem + env(safe-area-inset-bottom));
    gap: 0.6rem;
  }
  #hub .logo,
  body[data-fase='hud'] .logo {
    display: none; /* phones: the shift HUD has no room for the logo next to the coin plate */
  }
  .abas {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0.35rem 0.3rem max(0.35rem, env(safe-area-inset-bottom));
    background: linear-gradient(rgba(14, 34, 66, 0.96), rgba(6, 16, 34, 0.98));
    border-top: 0.15rem solid rgba(140, 190, 240, 0.3);
    box-shadow: 0 -0.4rem 1rem rgba(0, 0, 0, 0.35);
  }
  .aba {
    flex: 1;
    flex-direction: column;
    height: 4.4rem;
    gap: 0.1rem;
    padding: 0;
    border: 0;
    border-radius: 0.8rem;
    font-size: 0.68rem;
    filter: saturate(0.7) brightness(0.85);
  }
  .aba > * {
    margin: 0;
  }
  .aba img {
    display: block;
    width: 2.4rem;
    height: 2.4rem;
  }
  .aba.ativa {
    border: 0;
    background: linear-gradient(rgba(255, 210, 63, 0.28), rgba(255, 210, 63, 0.08));
    box-shadow: inset 0 0 0 0.15rem var(--ouro);
    color: #fff;
    text-shadow: none;
    filter: none;
  }
  .hub-corpo {
    flex-direction: column;
    gap: 0.6rem;
  }
  #favo {
    width: 100%;
    flex: 1;
    min-height: 0;
  }
  /* phones: the panel under the honeycomb, compact: name + level on one row, effect, then selector | price | BUY */
  #ficha {
    width: 100%;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.3rem 0.6rem;
  }
  #ficha .f-prog,
  #f-efeito,
  #f-desc,
  #f-abre,
  .f-compra {
    grid-column: 1 / -1;
  }
  #ficha .ficha-topo {
    grid-column: 1 / 3;
    gap: 0.5rem;
  }
  .f-prog {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
  }
  .f-nivel {
    min-width: 6.5rem;
  }
  #f-nivel {
    font-size: 0.8rem;
  }
  #f-efeito {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
  }
  #f-efeito b {
    font-size: 1.05rem;
  }
  #f-desc,
  #f-abre {
    display: none;
  }
  #f-desc.req {
    display: block;
    font-size: 0.85rem;
  }
  .ficha-topo img {
    width: 2.8rem;
    height: 2.8rem;
  }
  .ficha-topo h3 {
    font-size: 1.15rem;
  }
  #f-ramo {
    font-size: 0.68rem;
  }
  .f-compra {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 'modos custo botao';
    gap: 0.5rem;
  }
  #f-modos button {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
  }
  .f-custo {
    font-size: 1.1rem;
  }
  #f-falta {
    font-size: 0.7rem;
  }
  #f-comprar {
    min-width: 6.5rem;
    height: 2.9rem;
    font-size: 1.25rem;
  }
  .botao.madeira {
    height: 4rem;
    font-size: 2.2rem;
  }
  .cartao {
    border-width: 1.6rem;
    border-image-width: 1.6rem;
  }
  .trilha {
    gap: 0.1rem;
    margin: 0;
  }
  .terra {
    width: 4.5rem;
    gap: 0.2rem;
  }
  .terra + .terra::before {
    left: -1rem;
    top: 2rem;
    width: 2rem;
    border-top-width: 0.2rem;
  }
  .terra .arte {
    width: 4.3rem;
    height: 3.8rem;
  }
  .terra h3 {
    font-size: 0.7rem;
  }
  .terra.aqui h3 {
    padding: 0.1rem 0.35rem;
  }
  .terra p {
    display: none;
  }
  .terra .marca {
    width: 1.3rem;
    height: 1.3rem;
    font-size: 0.8rem;
    right: 0;
  }
  .terra .marca img {
    width: 1.1rem;
  }
  .terra .botao {
    min-width: 0;
    width: 100%;
    height: 2.2rem;
    font-size: 0.7rem;
    border-width: 0.6rem;
    border-image-width: 0.6rem;
  }
  .pecas {
    font-size: 0.65rem;
  }
  .pecas img {
    width: 0.9rem;
  }
  .terra .terra-btn,
  .terra p {
    display: none;
  }
  .terra.sel .arte {
    outline: 0.15rem solid rgba(255, 255, 255, 0.7);
    outline-offset: 0.1rem;
    border-radius: 0.6rem;
  }
  .terra-grande {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.6rem;
    text-align: center;
  }
  .terra-grande img {
    width: 11rem;
    filter: drop-shadow(0 0.8rem 1rem rgba(0, 0, 0, 0.45));
    animation: flutua 3.2s ease-in-out infinite alternate;
  }
  .terra-grande h3 {
    margin: 0;
    font-size: 1.3rem;
    text-transform: uppercase;
    text-shadow: var(--contorno);
  }
  .terra-grande p {
    margin: 0;
    color: var(--suave);
    font-size: 0.9rem;
  }
  .terra-grande .botao {
    height: 3rem;
    min-width: 9rem;
    font-size: 1.05rem;
  }
  .terra-grande .pecas {
    font-size: 0.9rem;
  }
  .terra-grande .pecas img {
    width: 1.3rem;
  }
  body[data-fase='hub'] .logo {
    top: calc(max(0.8rem, env(safe-area-inset-top)) + 6.2rem);
    height: 2.3rem;
  }
  #hub {
    padding-top: 9.4rem;
  }
  .painel {
    border-width: 1rem;
    border-image-width: 1rem;
  }
  .forja {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .rack {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
  }
  .slot {
    width: auto;
    height: 3.9rem;
    padding: 0.25rem;
  }
  .detalhe {
    grid-template-columns: 6.5rem 1fr;
    gap: 0.4rem 0.6rem;
  }
  .detalhe > img {
    width: 6.5rem;
    height: 6.5rem;
  }
  .detalhe h3 {
    font-size: 1.15rem;
  }
  .stats div {
    font-size: 0.82rem;
    padding: 0.2rem 0.6rem;
  }
  .acao {
    grid-column: 1 / -1;
    flex-direction: row;
    min-width: 0;
  }
  .acao > * {
    flex: 1;
  }
  .acao .botao {
    height: 3.4rem;
    font-size: 1.15rem;
  }
  .acao .equipado {
    height: 3.4rem;
    font-size: 1rem;
  }
  .fornalha {
    width: 13rem;
  }
  .quadro {
    margin-top: 1.6rem;
  }
  .quadro .tabua {
    width: 12rem;
    top: -2.6rem;
    font-size: 1.35rem;
  }
  .grade {
    gap: 0.4rem;
  }
  .item img {
    width: 3.2rem;
    height: 3.2rem;
  }
  .item h3 {
    font-size: 0.78rem;
  }
  .item p {
    font-size: 0.66rem;
  }
  .item .botao {
    min-width: 0;
    width: 100%;
    height: 2.4rem;
    font-size: 0.85rem;
    border-width: 0.7rem;
    border-image-width: 0.7rem;
  }
  .sonda {
    grid-template-columns: 5rem 1fr auto;
    gap: 0.5rem;
  }
  .sonda img {
    width: 5rem;
    height: 4rem;
  }
  .sonda h3 {
    font-size: 0.95rem;
  }
  .sonda p {
    font-size: 0.8rem;
  }
  .sonda .botao {
    min-width: 0;
    height: 2.6rem;
    font-size: 0.85rem;
    padding: 0;
  }
  .bedrock {
    gap: 0.6rem;
    flex-direction: row;
    align-items: center;
  }
  .bedrock .cubo {
    width: 9.5rem;
    max-width: 42vw;
  }
  .bedrock .painel {
    flex: 1;
    border-width: 1rem;
    border-image-width: 1rem;
    gap: 0.4rem;
  }
  .bedrock .painel h2 {
    font-size: 1.3rem;
  }
  .bedrock .linha {
    font-size: 0.72rem;
    gap: 0.4rem;
    padding: 0.35rem 0.4rem;
  }
  .bedrock .linha img,
  .bedrock .linha .seta {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.2rem;
  }
  .bedrock .acoes {
    flex-direction: column;
    gap: 0.4rem;
  }
  .bedrock .acoes .botao {
    height: 2.9rem;
    font-size: 1rem;
  }
}

/* short landscape windows: hub side columns get narrower */
@media (min-aspect-ratio: 4/5) and (max-width: 1100px) {
  #hub {
    padding-left: 10rem;
    padding-right: 1rem;
  }
}

/* ---------- less motion: keeps every state, drops the movement ---------- */
.calmo *,
.calmo *::before,
.calmo *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
.calmo #toast.on {
  animation: none !important;
  opacity: 1;
  transform: translate(-50%, -50%);
}
.calmo .titulo-logo::after,
.calmo .botao.pulsa::after,
.calmo .ilha-titulo img,
.calmo .ilha-titulo .sombra {
  animation: none !important;
}
.calmo .barra i::after,
.calmo .selo::after {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* the logo file is 1800 px wide: on 3x phones it stays at 600 css px so it is never blown up */
@media (min-resolution: 3dppx) {
  img.logo.grande {
    max-width: 600px;
  }
  /* 3x phones: never draw these files bigger than they are (file px / 3) */
  .terra-grande img {
    max-width: 118px;
  }
  .detalhe > img {
    max-width: 83px;
  }
  .bedrock .linha img {
    max-width: 21px;
  }
}
/* phones lying down (short and wide): smaller root so the HUD and the hub panels fit the 390 px height */
@media (max-height: 520px) and (min-aspect-ratio: 4/5) {
  /* landscape phones: the results card fits above the bottom edge (the XP strip hides here, the card shows +XP) */
  #hud.resumo #hud-xp {
    display: none;
  }
  #resultado .cartao {
    margin-top: 2.6rem;
    padding-top: 3.8rem;
  }
  #res-minerios {
    font-size: 1.05rem;
    margin-top: 1.5rem;
  }
  .linhas {
    margin: 0.4rem 0 0.6rem;
    gap: 0.1rem;
  }
  html {
    font-size: max(9.5px, 2.65vh);
  }
}

/* ---------- desktop hub uses the screen (bigger type in Lands, short action bar in the Forge) ---------- */
@media (min-aspect-ratio: 4/5) and (min-width: 621px) {
  .hub-corpo {
    width: 100%;
  }
  .nota {
    font-size: 1.2rem;
  }
  .trilha {
    gap: 0.4rem;
  }
  .terra {
    width: 11rem;
    gap: 0.5rem;
  }
  .terra .arte {
    width: 10.8rem;
    height: 9.6rem;
  }
  .terra + .terra::before {
    left: -3rem;
    top: 5.2rem;
    width: 5rem;
  }
  .terra .marca {
    width: 2.9rem;
    height: 2.9rem;
  }
  .terra h3 {
    font-size: 1.5rem;
  }
  .terra p {
    font-size: 1.02rem;
    line-height: 1.25;
  }
  .terra .botao {
    height: 3.3rem;
    min-width: 9.5rem;
    font-size: 1.15rem;
  }
  .pecas {
    font-size: 1.15rem;
  }
  .pecas img {
    width: 1.7rem;
  }
  /* forge: rack + detail side by side, the action is a short bar under them (no tall empty panel) */
  .forja {
    grid-template-columns: auto 1fr;
  }
  .forja .acao {
    grid-column: 1 / -1;
    justify-self: center;
    min-width: 20rem;
    padding: 0.35rem 1rem;
  }
  .forja .acao .equipado {
    height: 3rem;
  }
  .fornalha {
    width: 13rem;
  }
}

/* ---------- goals plaque/board, relic card and relics tab, forge scene ---------- */
/* goals: a slim plaque, never a black box. Shift on desktop: under the timer. Hub on desktop: right column. */
#metas {
  position: absolute;
  right: max(1rem, env(safe-area-inset-right));
  top: calc(var(--m) + 4.6rem);
  width: 17.5rem;
  padding: 0.55rem 0.7rem 0.6rem;
  border-radius: 1rem;
  background: linear-gradient(rgba(16, 38, 72, 0.82), rgba(8, 20, 42, 0.86));
  box-shadow:
    inset 0 0 0 0.14rem rgba(255, 210, 90, 0.45),
    0 0.4rem 0.9rem rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
#metas h4 {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--ouro);
  text-shadow: var(--contorno);
}
#metas-lista {
  display: grid;
  gap: 0.35rem;
}
.meta {
  position: relative;
  display: grid;
  grid-template-columns: 1.7rem 1fr auto;
  grid-template-areas: 'i t p' 'i b r';
  align-items: center;
  column-gap: 0.5rem;
  row-gap: 0.15rem;
  font-size: 0.82rem;
  line-height: 1.15;
}
.meta.nova {
  animation: metaEntra 0.3s var(--saida) both;
}
.meta img {
  grid-area: i;
  width: 1.7rem;
  height: 1.7rem;
  object-fit: contain;
  filter: drop-shadow(0 0.1rem 0.12rem rgba(0, 0, 0, 0.45));
}
.meta .mt {
  grid-area: t;
  min-width: 0;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.meta .mp {
  grid-area: p;
  font-size: 0.82rem;
  color: #fff;
  white-space: nowrap;
}
.meta .mr {
  grid-area: r;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.72rem;
  color: var(--ouro);
  white-space: nowrap;
}
.meta .mr .ico,
.meta .mr img {
  width: 0.95rem;
  height: 0.95rem;
}
.meta .mb {
  grid-area: b;
  height: 0.38rem;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.meta .mb i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffe58a, #ffc23f);
  transition: width 0.25s var(--saida);
}
.meta.espera {
  opacity: 0.6;
}
.meta.espera .mp {
  font-size: 0.66rem;
  color: var(--suave);
}
/* finished: the row turns gold with a tick, pops once, then the new goal slides in */
.meta.feita {
  padding: 0.2rem 0.3rem;
  margin: -0.2rem -0.3rem;
  border-radius: 0.6rem;
  background: linear-gradient(90deg, rgba(255, 210, 63, 0.45), rgba(255, 210, 63, 0.12));
}
.meta.feita.nova {
  animation: metaFeita 0.45s var(--pop) both;
}
.meta.feita .mp {
  color: #7af5b4;
  font-size: 1.05rem;
}
@keyframes metaEntra {
  from {
    opacity: 0;
    transform: translateX(0.8rem);
  }
}
@keyframes metaFeita {
  0% {
    transform: scale(0.94);
  }
  45% {
    transform: scale(1.05);
  }
}
#hud.resumo #metas {
  display: none;
}
#hud.menu #metas {
  top: calc(var(--m) + 4.4rem);
  width: 9.6rem;
  padding: 0.5rem 0.55rem;
}
#hud.menu .meta {
  grid-template-columns: 1.4rem 1fr;
  grid-template-areas: 'i t' 'i p' 'b b' 'r r';
  font-size: 0.72rem;
}
#hud.menu .meta img {
  width: 1.4rem;
  height: 1.4rem;
}
#hud.menu .meta .mp {
  font-size: 0.72rem;
}
#hud.menu .meta .mr {
  justify-self: end;
}
/* phones: one row under the pills in the shift (the closest goal); a 3-row board where the logo was in the hub */
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  #metas {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    top: calc(var(--m) + 6.6rem);
    width: min(21rem, calc(100vw - 1.5rem));
    padding: 0.3rem 0.6rem 0.35rem;
  }
  #metas h4 {
    display: none;
  }
  #hud.turno .meta:not(.perto) {
    display: none;
  }
  .meta {
    font-size: 0.74rem;
    grid-template-columns: 1.4rem 1fr auto;
  }
  .meta img {
    width: 1.4rem;
    height: 1.4rem;
  }
  #hud.menu #metas {
    top: calc(var(--m) + 6rem);
    width: min(23rem, calc(100vw - 1.5rem));
  }
  #hud.menu .meta {
    grid-template-columns: 1.3rem 1fr auto auto;
    grid-template-areas: 'i t p r';
    font-size: 0.7rem;
  }
  #hud.menu .meta .mb {
    position: absolute;
    left: 1.8rem;
    right: 0;
    bottom: -0.16rem;
    height: 0.18rem;
  }
  body[data-fase='hub'] #logo {
    display: none;
  }
  #hub {
    padding-top: 12.2rem;
  }
}
/* relic card: slides in under the HUD, never blocks the shift */
#reliquia {
  position: absolute;
  left: 50%;
  top: 20%;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: calc(100vw - 1.5rem);
  padding: 0.6rem 1.3rem 0.6rem 0.7rem;
  border-radius: 1.2rem;
  background: linear-gradient(rgba(60, 40, 10, 0.92), rgba(30, 18, 6, 0.94));
  box-shadow:
    inset 0 0 0 0.16rem rgba(255, 214, 110, 0.85),
    0 0 1.6rem rgba(255, 200, 80, 0.35),
    0 0.6rem 1.2rem rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -0.8rem) scale(0.9);
  transition:
    opacity 0.25s,
    transform 0.35s var(--pop);
}
#reliquia.on {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
#reliquia img {
  width: 3.6rem;
  height: 3.6rem;
  max-width: 128px;
  max-height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 0 0.6rem rgba(255, 220, 120, 0.6));
}
#reliquia div {
  display: grid;
  min-width: 0;
}
#reliquia small {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ouro);
}
#reliquia b {
  font-size: 1.25rem;
  text-shadow: var(--contorno);
}
#reliquia span {
  font-size: 0.85rem;
  color: #ffe9a8;
}
/* relics tab: twelve pedestals; a missing relic is a dark silhouette */
.reliquias {
  width: min(58rem, 100%);
}
.vitrine {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem 0.7rem;
}
.pedestal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.pedestal .peca {
  position: relative;
  z-index: 1;
  height: 5.2rem;
  display: grid;
  place-items: end center;
}
.pedestal .peca img {
  max-width: 5rem;
  max-height: 5rem;
  object-fit: contain;
  filter: drop-shadow(0 0 0.7rem rgba(255, 214, 120, 0.4)) drop-shadow(0 0.3rem 0.3rem rgba(0, 0, 0, 0.45));
  animation: pecaRel 3.4s ease-in-out infinite alternate;
}
/* fitTab(): relics too tall for a tablet at the 13 px text floor */
#hub-outra.aperta .vitrine {
  gap: 0.5rem 0.45rem;
}
#hub-outra.aperta .pedestal .peca {
  height: 3.7rem;
}
#hub-outra.aperta .pedestal .peca img {
  max-width: 3.6rem;
  max-height: 3.6rem;
}
.pedestal:nth-child(odd) .peca img {
  animation-delay: -1.7s;
}
@keyframes pecaRel {
  to {
    transform: translateY(-0.35rem);
  }
}
.pedestal .base {
  width: 5.4rem;
  height: 1.7rem;
  margin-top: -0.6rem;
  border-radius: 50% / 40%;
  background:
    radial-gradient(ellipse 50% 32% at 50% 30%, #a8b4c4 0 96%, transparent 100%),
    linear-gradient(#7e8a9c, #4b5566 70%, #333b48);
  box-shadow:
    inset 0 -0.2rem 0 rgba(0, 0, 0, 0.3),
    0 0.35rem 0.5rem rgba(0, 0, 0, 0.4);
}
.pedestal h3 {
  margin: 0.4rem 0 0.1rem;
  font-size: 0.88rem;
  line-height: 1.1;
  text-shadow: var(--contorno);
  overflow-wrap: anywhere;
}
.pedestal p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.15;
  color: #ffe9a8;
  overflow-wrap: anywhere;
}
.pedestal.trava .peca img {
  filter: brightness(0) opacity(0.4);
  animation: none;
}
.pedestal.trava h3 {
  color: var(--suave);
}
.pedestal.trava p {
  color: var(--suave);
  opacity: 0.8;
}
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  .vitrine {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem 0.4rem;
  }
  .pedestal .peca {
    height: 3.8rem;
  }
  .pedestal .peca img {
    max-width: 3.6rem;
    max-height: 3.6rem;
  }
  .pedestal .base {
    width: 4rem;
    height: 1.2rem;
  }
  .pedestal h3 {
    font-size: 0.74rem;
  }
  .pedestal p {
    font-size: 0.62rem;
  }
}
/* forge as a scene: rack | furnace with the chosen pick glowing over it | sheet with the action */
.forja {
  grid-template-columns: auto minmax(14rem, 1fr) minmax(19rem, 25rem) !important;
  align-items: center;
  height: 100%;
}
.forja .rack {
  grid-template-columns: repeat(1, 5.6rem);
}
.forja .rack .slot {
  width: 5.6rem;
  height: 5.6rem;
}
.forno {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  align-self: stretch;
  min-height: 0;
}
.forno .fornalha {
  width: min(24rem, 100%);
  max-width: 640px;
  margin: 0;
}
.forno .peca {
  position: absolute;
  left: 50%;
  bottom: 52%;
  width: min(13rem, 70%);
  max-width: 300px;
  transform: translateX(-50%) rotate(-12deg);
  filter: drop-shadow(0 0 1.4rem rgba(255, 170, 70, 0.55)) drop-shadow(0 0.6rem 0.6rem rgba(0, 0, 0, 0.45));
  animation: pecaFlutua 3s ease-in-out infinite alternate;
  z-index: 1;
}
.forno .brilho {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 70%;
  height: 40%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 150, 50, 0.35), transparent);
  pointer-events: none;
}
@keyframes pecaFlutua {
  to {
    transform: translateX(-50%) translateY(-0.6rem) rotate(-8deg);
  }
}
.forja .detalhe {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
}
.forja .detalhe h3 {
  text-align: center;
}
.forja .detalhe .acao {
  min-width: 0;
  padding: 0;
  margin-top: 0.3rem;
}
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  .forja {
    grid-template-columns: 1fr !important;
    height: auto;
    gap: 0.5rem;
  }
  .forja .rack {
    grid-template-columns: repeat(5, 1fr);
  }
  .forja .rack .slot {
    width: auto;
    height: 3.9rem;
  }
  .forno {
    height: 9.5rem;
    align-self: auto;
  }
  .forno .fornalha {
    width: 10rem;
  }
  .forno .peca {
    width: 5.6rem;
    bottom: 42%;
  }
  .forja .detalhe {
    gap: 0.35rem;
  }
}
@media (min-resolution: 3dppx) {
  .forno .peca {
    max-width: 100px;
  }
  .forno .fornalha {
    max-width: 213px;
  }
  .pedestal .peca img,
  #reliquia img {
    max-width: 85px;
    max-height: 85px;
  }
}
/* the coin icon pops less: at 3x it would be drawn larger than its 256 px file */
#hud-moedas.bump .ico-g {
  animation-name: icoPopMoeda;
}
@keyframes icoPopMoeda {
  40% {
    transform: translateY(-58%) scale(1.07) rotate(-5deg);
  }
}
/* languages without Latin glyphs in Fredoka: the system fonts take over (nothing is downloaded) */
html:lang(ru),
html:lang(ja),
html:lang(ko),
html:lang(zh) {
  --fonte:
    'Fredoka', 'Segoe UI', 'Yu Gothic UI', 'Meiryo', 'Hiragino Sans', 'Malgun Gothic', 'Apple SD Gothic Neo',
    'Microsoft YaHei', 'PingFang SC', 'Noto Sans CJK SC', 'Noto Sans', system-ui, sans-serif;
}
/* language: only outside a shift; the 14 languages open as a grid of small buttons */
#pausa:not(.no-turno) #op-idioma,
#pausa:not(.no-turno) #idiomas {
  display: none;
}
#op-idioma {
  height: 3.2rem;
  font-size: 1.1rem;
}
#idiomas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}
#idiomas[hidden] {
  display: none;
}
#idiomas .botao {
  height: 2.5rem;
  font-size: 0.9rem;
  padding: 0 0.4rem;
  border-width: 0.6rem;
  border-image-width: 0.6rem;
}
/* results: a relic row shows its bonus instead of a number */
.linhas b.txt {
  font-size: 0.8em;
  color: #b0700a;
  white-space: nowrap;
}
/* desktop hub: 7 tabs in one row */
@media (min-aspect-ratio: 4/5) and (min-width: 621px) {
  .abas {
    flex-wrap: nowrap;
    gap: 0.4rem;
  }
  .aba {
    padding: 0 0.55rem;
    font-size: 0.95rem;
    border-width: 0.65rem 0.9rem;
    border-image-width: 0.65rem 0.9rem;
  }
  #hud.menu #metas {
    width: 9.8rem;
  }
  #hud.menu .meta,
  #hud.menu .meta .mp {
    font-size: 0.8rem;
  }
  .meta {
    font-size: 0.88rem;
  }
  /* forge: a full 3 x 3 rack, the furnace with the chosen pick in the middle, the sheet on the right */
  .forja .rack {
    grid-template-columns: repeat(3, 5rem);
  }
  .forja .rack .slot {
    width: 5rem;
    height: 5rem;
  }
  .forno {
    height: min(24rem, 100%);
    align-self: center;
  }
  .forno .fornalha {
    width: min(19rem, 100%);
  }
  .forno .peca {
    width: min(11rem, 60%);
    bottom: 48%;
  }
  #reliquia {
    padding: 0.8rem 1.6rem 0.8rem 0.9rem;
  }
  #reliquia img {
    width: 4.6rem;
    height: 4.6rem;
  }
  #reliquia b {
    font-size: 1.5rem;
  }
}
/* results: the ores of the shift in one row (icon over count) */
#res-minerios td,
#res-minerios th {
  width: auto;
}
#res-minerios td {
  padding: 0.3rem 0.2rem;
}
#res-minerios td img {
  display: block;
  margin: 0 auto 0.1rem;
  width: 2.4rem;
  height: 1.8rem;
}
#res-minerios td b {
  font-size: 1.15rem;
}
/* relic card text stays on one line each */
#reliquia b,
#reliquia span {
  white-space: nowrap;
}
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  /* 7 tabs on the phone bar */
  .aba {
    font-size: 0.6rem;
    letter-spacing: 0;
  }
  .aba img {
    width: 2.2rem;
    height: 2.2rem;
  }
  /* results: the coin plate covers where the logo would be */
  body[data-fase='resultado'] #logo {
    display: none;
  }
  /* forge: 3 x 3 rack beside the furnace, the sheet below (no hole in the rack) */
  .forja {
    grid-template-columns: auto 1fr !important;
  }
  .forja .rack {
    grid-template-columns: repeat(3, 3.6rem);
    gap: 0.3rem;
  }
  .forja .rack .slot {
    width: 3.6rem;
    height: 3.6rem;
  }
  .forno {
    height: auto;
    align-self: stretch;
    justify-content: flex-end;
  }
  .forno .fornalha {
    width: min(9rem, 100%);
  }
  .forno .peca {
    width: 4.8rem;
    bottom: 50%;
  }
  .forja .detalhe {
    grid-column: 1 / -1;
  }
  /* relics: 4 x 3 on the phone too */
  .vitrine {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem 0.3rem;
  }
  .reliquias .nota {
    font-size: 0.72rem;
  }
  .pedestal .peca {
    height: 3.2rem;
  }
  .pedestal .peca img {
    max-width: 3rem;
    max-height: 3rem;
  }
  .pedestal .base {
    width: 3.2rem;
    height: 1rem;
    margin-top: -0.45rem;
  }
  .pedestal h3 {
    font-size: 0.66rem;
  }
  .pedestal p {
    font-size: 0.56rem;
  }
}
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  .item .botao {
    padding: 0 0.15rem;
    font-size: 0.78rem;
  }
}
/* ribbons and stamps: the text shrinks (jogo.js fit) instead of spilling over the art */
.faixa span {
  display: block;
  max-width: 74%;
  overflow: hidden;
  text-align: center;
}
#carimbo span {
  display: inline-block;
  max-width: 92vw;
  overflow: hidden;
}
#resultado .acoes .botao {
  overflow: hidden;
}
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  .aba {
    min-width: 0;
    overflow: hidden;
  }
}
.aba span {
  display: block;
  max-width: 100%;
  overflow: hidden;
}
/* title, a tagline and the five ores (each its own shape) under DIG! */
.titulo-tag {
  margin: 0.6rem 0 0;
  font-size: 1.1rem;
  line-height: 1.25;
  text-align: center;
  color: #e6f4f7;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
.titulo-minerios {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: flex-end;
}
.titulo-minerios img {
  width: 3rem;
  max-width: 224px;
  filter: drop-shadow(0 0.3rem 0.3rem rgba(0, 0, 0, 0.4));
  animation: minerioEntra 0.45s var(--pop) both;
}
@keyframes minerioEntra {
  from {
    opacity: 0;
    transform: translateY(0.8rem) scale(0.7);
  }
}
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  .titulo-tag {
    display: none;
  }
}
/* desktop: the width is used. Left: logo, tagline, DIG!, the returning-player line and the ores. Right: the island,
   big. The island never grows past its file (1392 px). */
@media (min-aspect-ratio: 4/5) and (min-width: 621px) {
  #inicio {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-rows: 1fr auto;
    grid-template-areas: 'logo ilha' 'pe ilha';
    align-items: center;
    column-gap: 2vw;
    padding: 6vh max(4vw, 2rem) 8vh;
  }
  .titulo-logo {
    grid-area: logo;
    align-self: end;
    justify-self: center;
    text-align: center;
  }
  .titulo-logo .logo.grande {
    width: min(620px, 36vw, 46vh);
  }
  .titulo-tag {
    font-size: 1.35rem;
  }
  .ilha-titulo {
    grid-area: ilha;
    height: 100%;
  }
  .ilha-titulo img {
    max-height: min(84vh, 100%);
    max-width: min(100%, 1392px);
  }
  .titulo-pe {
    grid-area: pe;
    align-self: start;
    justify-self: center;
    gap: 1.1rem;
    margin-top: 2.2rem;
  }
  #comecar {
    height: 5rem;
    min-width: 15rem;
    font-size: 2.6rem;
  }
  .titulo-minerios {
    gap: 0.9rem;
    margin-top: 0.4rem;
  }
  .titulo-minerios img {
    width: 5.4rem;
  }
}
@media (min-resolution: 3dppx) {
  .titulo-minerios img {
    max-width: 74px;
  }
}
/* forge hero pick: never larger than the smallest pick file (251 px) */
.forno .peca {
  max-width: 250px;
}
@media (min-resolution: 2dppx) {
  .forno .peca {
    max-width: 125px;
  }
}
@media (min-resolution: 3dppx) {
  .forno .peca {
    max-width: 83px;
  }
}
/* 621-1100 px landscape (tablets, phones lying down): the hub keeps a right column for the goals board */
@media (min-aspect-ratio: 4/5) and (min-width: 621px) and (max-width: 1100px) {
  #hub {
    padding-right: 11rem;
  }
}
/* short landscape windows: smaller pedestals so the relic shelf fits */
@media (max-height: 520px) and (min-aspect-ratio: 4/5) {
  .pedestal .peca {
    height: 3.4rem;
  }
  .pedestal .peca img {
    max-width: 3.2rem;
    max-height: 3.2rem;
  }
  .pedestal .base {
    width: 3.6rem;
    height: 1.1rem;
  }
  .vitrine {
    gap: 0.4rem 0.6rem;
  }
}
/* ---------- v1 ---------- */
/* results: the card always fits between the top HUD and the XP bar (jogo.js sets the padding from the real boxes);
   the ore table, the ad button and the action buttons stay put, only the rows scroll when there are many */
#resultado {
  justify-content: center;
}
#resultado .cartao {
  display: flex;
  flex-direction: column;
  max-height: calc(100% - 3.4rem);
  min-height: 0;
}
#resultado .cartao > * {
  flex: none;
}
#resultado .linhas {
  flex: 0 1 auto;
  min-height: 2.4rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.2rem;
}
body[data-fase='resultado'] #logo {
  display: none;
}
/* hub: the goals moved to their own tab (big and readable); no board squeezed beside the panels */
#hud.menu #metas {
  display: none;
}
@media (min-aspect-ratio: 4/5) and (min-width: 621px) and (max-width: 1100px) {
  #hub {
    padding-right: 10rem;
  }
}
.metas-pg {
  width: min(44rem, 100%);
}
.metas-grandes {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.4rem;
}
.metas-grandes .meta {
  grid-template-columns: 3.2rem 1fr auto;
  column-gap: 0.9rem;
  row-gap: 0.45rem;
  padding: 0.75rem 1rem;
  margin: 0;
  border-radius: 1rem;
  background: linear-gradient(rgba(16, 38, 72, 0.9), rgba(8, 20, 42, 0.92));
  box-shadow:
    inset 0 0 0 0.12rem rgba(255, 210, 90, 0.35),
    0 0.3rem 0.6rem rgba(0, 0, 0, 0.25);
  font-size: 1.15rem;
}
.metas-grandes .meta img {
  width: 3.2rem;
  height: 3.2rem;
}
.metas-grandes .meta .mp {
  font-size: 1.15rem;
}
.metas-grandes .meta .mr {
  font-size: 1.05rem;
}
.metas-grandes .meta .mr .ico,
.metas-grandes .meta .mr img {
  width: 1.4rem;
  height: 1.4rem;
}
.metas-grandes .meta .mb {
  height: 0.7rem;
}
.metas-grandes .meta.feita {
  background: linear-gradient(90deg, rgba(255, 210, 63, 0.5), rgba(255, 210, 63, 0.15));
}
.metas-grandes .meta.espera {
  opacity: 0.72;
}
.metas-grandes .meta.espera .mp {
  font-size: 0.9rem;
}
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  .metas-grandes .meta {
    grid-template-columns: 2.4rem 1fr auto;
    padding: 0.6rem 0.7rem;
    font-size: 0.98rem;
  }
  .metas-grandes .meta img {
    width: 2.4rem;
    height: 2.4rem;
  }
  .metas-grandes .meta .mp,
  .metas-grandes .meta .mr {
    font-size: 0.95rem;
  }
}
@media (min-aspect-ratio: 4/5) and (min-width: 621px) {
  #resultado.largo .cartao {
    width: min(50rem, 100%);
  }
  .linhas.muitas {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.6rem;
  }
  .linhas.muitas .pronto-up {
    grid-column: 1 / -1;
  }
}
/* rows that scroll: a soft fade at the bottom edge says there is more */
#resultado .linhas.rola {
  mask-image: linear-gradient(#000 calc(100% - 1.6rem), transparent);
}
@media (min-aspect-ratio: 4/5) and (min-width: 621px) {
  #resultado.largo .faixa {
    width: 39rem;
  }
}
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  #res-minerios {
    margin-top: 0.7rem;
  }
  .linhas.muitas {
    gap: 0;
    font-size: 1rem;
  }
  .linhas.muitas b {
    font-size: 1.1rem;
  }
  .linhas.muitas .ri img,
  .linhas.muitas .ri .ico {
    width: 1.45rem;
    height: 1.45rem;
  }
}
.botao.ciano:hover:not([disabled]) {
  filter: hue-rotate(130deg) saturate(1.1) drop-shadow(0 0.3rem 0.45rem rgba(0, 0, 0, 0.3)) brightness(1.06);
}
@media (min-aspect-ratio: 4/5) and (min-width: 621px) {
  .linhas.muitas {
    gap: 0.15rem;
  }
  .linhas.muitas > div {
    padding-bottom: 0.15rem;
  }
}
/* options/pause: the panel never runs off a short screen (the language grid scrolls inside it) */
#pausa .painel {
  max-height: calc(100% - 0.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* art never bigger than its file: the Bedrock cube (590 px) and the forge hero pick (smallest file 251 px) */
.bedrock img.cubo {
  max-width: 590px;
}
.forno .peca {
  max-width: 250px !important;
}
@media (min-resolution: 2dppx) {
  .bedrock img.cubo {
    max-width: 295px;
  }
  .forno .peca {
    max-width: 125px !important;
  }
}
@media (min-resolution: 3dppx) {
  .bedrock img.cubo {
    max-width: 196px;
  }
  .forno .peca {
    max-width: 83px !important;
  }
}
/* LEVEL UP on the results: its own slot in the card, under the ore table (reserved from the first frame, so it
   never covers anything and nothing jumps when it appears). Badge with the shield, then what the level opened. */
#subiu {
  display: none;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.8rem;
  margin: 0.7rem 0 0;
  pointer-events: none;
}
#subiu.vaga {
  display: flex;
}
#subiu .selo-nivel {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 1.1rem 0.25rem 0.3rem;
  border-radius: 99px;
  background: linear-gradient(#173a6b, #0c2347);
  box-shadow:
    inset 0 0 0 0.15rem var(--ouro),
    0 0.25rem 0.6rem rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.6);
}
#subiu.on .selo-nivel {
  opacity: 1;
  transform: none;
  animation: subiuEntra 0.45s var(--pop) both;
}
@keyframes subiuEntra {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}
#subiu .selo-nivel .escudo {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.15rem;
}
#subiu strong {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ouro);
  text-shadow: var(--contorno);
  white-space: nowrap;
}
#subiu .novos,
#subiu p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: #1d2c4a;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-0.5rem);
  transition:
    opacity 0.3s,
    transform 0.35s var(--pop);
}
#subiu.lista .novos,
#subiu.lista p {
  opacity: 1;
  transform: none;
}
#subiu .novos span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
#subiu .novos img {
  width: 1.7rem;
  height: 1.7rem;
  object-fit: contain;
}
#subiu p img.mini {
  width: 1.3rem;
  height: 1.3rem;
  vertical-align: middle;
}
.calmo #subiu .selo-nivel {
  animation: none;
}
/* a toast in the menus takes the logo's place at the top (the logo steps aside), never a panel */
body.aviso #logo {
  opacity: 0;
  transition: opacity 0.2s;
}
#toast.topo {
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  padding: 0.3rem 1.4rem;
  border-radius: 99px;
  background: linear-gradient(rgba(23, 58, 107, 0.96), rgba(12, 35, 71, 0.96));
  box-shadow:
    inset 0 0 0 0.14rem var(--ouro),
    0 0.4rem 1rem rgba(0, 0, 0, 0.4);
}
#toast.topo small {
  display: inline;
  margin-left: 0.6rem;
  font-size: 0.6em;
}
/* news on a hub tab (phones: a goal finished while buying); opening the tab clears it */
.aba.novidade {
  position: relative;
}
.aba.novidade::after {
  content: '';
  position: absolute;
  top: 0.15rem;
  right: 0.2rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6c4, var(--ouro) 55%, #c48a12);
  box-shadow:
    0 0 0 0.12rem #1d2c4a,
    0 0 0.6rem rgba(255, 210, 63, 0.8);
  animation: bump 0.6s var(--pop) 2;
}
.barra.enche i {
  transition: width 0.5s var(--saida);
  box-shadow:
    inset 0 0.12rem 0 rgba(255, 255, 255, 0.55),
    0 0 0.9rem rgba(143, 245, 233, 0.9);
}
/* screens change with a short rise-in, never a hard cut; the HUD slides in from its edges when a shift starts */
.tela:not([hidden]):not(#pausa):not(#volta) {
  animation: telaEntra 0.28s var(--saida) both;
}
@keyframes telaEntra {
  from {
    opacity: 0;
    transform: translateY(0.6rem) scale(0.985);
  }
}
#pausa:not([hidden]) .painel,
#volta:not([hidden]) .painel {
  animation: entra 0.32s var(--pop) both;
}
/* every tappable thing answers: hover lift, press squash, a dimmed disabled state */
.botao:hover:not([disabled]) {
  translate: 0 -0.08rem;
}
.aba,
.slot,
.no,
.redondo,
.terra .ver {
  transition:
    transform 0.14s var(--pop),
    filter 0.14s,
    translate 0.14s var(--pop);
}
.aba:hover:not(.ativa),
.slot:hover,
.redondo:hover,
.terra .ver:hover {
  filter: brightness(1.12);
  translate: 0 -0.08rem;
}
.no:hover:not(.trava) {
  filter: brightness(1.12);
}
.aba:active,
.slot:active,
.redondo:active,
.terra .ver:active {
  transform: scale(0.93);
}
.aba.dim {
  filter: grayscale(0.7) brightness(0.8);
}
.calmo .tela,
.calmo #hud *,
.calmo .botao:hover {
  animation: none !important;
  translate: none !important;
}
.cad-voa {
  position: absolute;
  z-index: 8;
  pointer-events: none;
  object-fit: contain;
  filter: drop-shadow(0 0.2rem 0.3rem rgba(0, 0, 0, 0.4));
}
.faisca-voa {
  position: absolute;
  z-index: 8;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(#fff, #ffd23f 60%, transparent 70%);
}
@media (min-resolution: 2dppx) {
  .terra-grande img {
    max-width: 175px;
  }
}
@media (min-resolution: 3dppx) {
  .terra-grande img {
    max-width: 118px;
  }
}
/* ---------- title, sky layers, island life, parallax, corner buttons ---------- */
#inicio {
  --px: 0;
  --py: 0;
  overflow: hidden;
}
.ceu {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  translate: calc(var(--px) * -1.4%) calc(var(--py) * -1%);
  transition: translate 0.6s var(--saida);
}
.nuvem {
  position: absolute;
  opacity: 0.16;
  filter: blur(0.5px);
  animation: nuvemVai 70s linear infinite;
}
.nuvem.n0 {
  top: 8%;
  width: min(42vw, 1695px);
  animation-duration: 90s;
  animation-delay: -30s;
}
.nuvem.n1 {
  top: 52%;
  width: min(30vw, 1652px);
  opacity: 0.11;
  animation-duration: 120s;
  animation-delay: -80s;
}
.nuvem.n2 {
  top: 74%;
  width: min(50vw, 1908px);
  opacity: 0.13;
  animation-duration: 100s;
  animation-delay: -10s;
}
@keyframes nuvemVai {
  from {
    transform: translateX(-60vw);
  }
  to {
    transform: translateX(110vw);
  }
}
.ilha-titulo {
  translate: calc(var(--px) * 0.9%) calc(var(--py) * 0.8%);
  transition: translate 0.5s var(--saida);
}
.titulo-logo {
  translate: calc(var(--px) * -0.5%) calc(var(--py) * -0.4%);
  transition: translate 0.5s var(--saida);
}
@keyframes logoEntra {
  0% {
    opacity: 0;
    transform: translateY(-2.6rem) scale(1.3) rotate(-3deg);
  }
  55% {
    opacity: 1;
    transform: translateY(0.35rem) scale(0.96) rotate(1deg);
  }
  78% {
    transform: translateY(-0.12rem) scale(1.02);
  }
}
.titulo-logo {
  animation-duration: 0.95s;
}
/* the island's life rides on the island (same float) */
.ilha-vida {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  animation: ilhaFlutua 4.6s ease-in-out infinite;
}
.pic-anim {
  position: absolute;
  transform-origin: 90% 93%;
  transform: scaleX(-1) rotate(-40deg);
  animation: picBate 1.5s cubic-bezier(0.5, 0, 0.6, 1) infinite;
  filter: drop-shadow(0 0.25rem 0.2rem rgba(0, 0, 0, 0.35));
}
/* wind-up, fast slam onto the gold, small recoil, rest */
@keyframes picBate {
  0% {
    transform: scaleX(-1) rotate(-34deg);
  }
  45% {
    transform: scaleX(-1) rotate(-48deg);
    animation-timing-function: cubic-bezier(0.7, 0, 1, 0.6);
  }
  60% {
    transform: scaleX(-1) rotate(4deg);
  }
  68% {
    transform: scaleX(-1) rotate(-6deg);
  }
  76% {
    transform: scaleX(-1) rotate(0deg);
  }
  100% {
    transform: scaleX(-1) rotate(-34deg);
  }
}
.lascas {
  position: absolute;
  width: 0;
  height: 0;
}
.lascas i {
  position: absolute;
  left: -0.25rem;
  top: -0.25rem;
  width: 0.5rem;
  height: 0.42rem;
  border-radius: 0.12rem;
  background: linear-gradient(135deg, #ffe58a, #e09a12);
  box-shadow: 0 0 0 1px rgba(90, 50, 0, 0.5);
  opacity: 0;
  animation: lasca 1.5s ease-out infinite;
}
.lascas i:nth-child(1) {
  --dx: -2.2rem;
  --dy: -2.4rem;
}
.lascas i:nth-child(2) {
  --dx: -0.8rem;
  --dy: -3rem;
}
.lascas i:nth-child(3) {
  --dx: 1.4rem;
  --dy: -2.6rem;
  background: linear-gradient(135deg, #fff6c8, #ffd23f);
}
.lascas i:nth-child(4) {
  --dx: 2.4rem;
  --dy: -1.6rem;
}
.lascas i:nth-child(5) {
  --dx: -1.6rem;
  --dy: -1.2rem;
  background: linear-gradient(135deg, #cfd6dd, #7d8791);
}
.lascas i:nth-child(6) {
  --dx: 0.6rem;
  --dy: -1.9rem;
  background: linear-gradient(135deg, #cfd6dd, #7d8791);
}
@keyframes lasca {
  0%,
  59% {
    opacity: 0;
    transform: translate(0, 0) rotate(0);
  }
  61% {
    opacity: 1;
    transform: translate(0, 0) rotate(0);
  }
  80% {
    opacity: 1;
    transform: translate(var(--dx), var(--dy)) rotate(160deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--dx) * 1.3), calc(var(--dy) * 0.2 + 1.4rem)) rotate(300deg);
  }
}
.brilho-gema {
  position: absolute;
  width: 1.6rem;
  height: 1.6rem;
  margin: -0.8rem 0 0 -0.8rem;
  background:
    radial-gradient(closest-side, #fff 0 18%, rgba(255, 255, 255, 0) 70%),
    conic-gradient(
      from 45deg,
      transparent 0 11%,
      rgba(255, 255, 255, 0.95) 12.5%,
      transparent 14% 36%,
      rgba(255, 255, 255, 0.95) 37.5%,
      transparent 39% 61%,
      rgba(255, 255, 255, 0.95) 62.5%,
      transparent 64% 86%,
      rgba(255, 255, 255, 0.95) 87.5%,
      transparent 89%
    );
  border-radius: 50%;
  opacity: 0;
  animation: gemaBrilha 3.4s ease-in-out infinite;
}
.brilho-gema.g2 {
  animation-delay: 0.9s;
}
.brilho-gema.g3 {
  animation-delay: 1.7s;
  width: 1.2rem;
  height: 1.2rem;
}
.brilho-gema.g4 {
  animation-delay: 2.5s;
  width: 1.1rem;
  height: 1.1rem;
}
@keyframes gemaBrilha {
  0%,
  70%,
  100% {
    opacity: 0;
    transform: scale(0.3) rotate(0deg);
  }
  80% {
    opacity: 1;
    transform: scale(1) rotate(25deg);
  }
}
/* DIG! arrives after the logo, a soft shine crosses the plank */
#comecar {
  animation: digEntra 0.6s var(--pop) 0.55s both;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 240, 200, 0.35) 50%, transparent 62%) -160% 0 / 250%
    100% no-repeat;
  background-clip: padding-box;
}
#comecar:not(:hover) {
  animation:
    digEntra 0.6s var(--pop) 0.55s both,
    brilhoTabua 4s ease-in-out 2s infinite;
}
@keyframes digEntra {
  from {
    opacity: 0;
    transform: translateY(1.2rem) scale(0.8);
  }
}
@keyframes brilhoTabua {
  0% {
    background-position: 160% 0;
  }
  30%,
  100% {
    background-position: -160% 0;
  }
}
/* corner buttons beside the gear: round navy plaques with a gold rim, like the gear */
.plaqueta {
  position: absolute;
  z-index: 4;
  top: max(1rem, env(safe-area-inset-top));
  width: 3.2rem;
  height: 3.2rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #2a5b9c, #0f2a52 70%);
  box-shadow:
    inset 0 0 0 0.2rem #f6c84f,
    inset 0 0 0 0.32rem #8a5a12,
    0 0.25rem 0.35rem rgba(0, 0, 0, 0.4);
  color: #fff;
  font-weight: 800;
  display: none;
  place-items: center;
  animation: digEntra 0.5s var(--pop) 0.8s both;
}
body[data-fase='inicio'] .plaqueta {
  display: grid;
}
#ir-idioma {
  right: calc(max(1rem, env(safe-area-inset-right)) + 3.9rem);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-shadow: var(--contorno);
}
#ir-reliquias {
  right: calc(max(1rem, env(safe-area-inset-right)) + 7.8rem);
}
#ir-reliquias img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  max-width: 115px;
}
#ir-reliquias b {
  position: absolute;
  bottom: -0.45rem;
  left: 50%;
  translate: -50% 0;
  padding: 0.05rem 0.4rem;
  border-radius: 99px;
  background: linear-gradient(#ffe27a, #f2b52a);
  color: #4a2a00;
  font-size: 0.72rem;
  white-space: nowrap;
  box-shadow: 0 0.1rem 0 #b37b10;
}
.calmo .pic-anim,
.calmo .lascas i,
.calmo .brilho-gema,
.calmo .nuvem,
.calmo #comecar,
.calmo .plaqueta {
  animation: none !important;
}
/* End of estilo-2.css: complete file, part 2 of 6 of the styles. It continues in estilo-3.css, loaded right after it by index.html. */
