/* Crater Crush styles. Sizes in rem: the root size follows the viewport (see html below), so the whole UI keeps
   its proportions from a phone to a 49" ultrawide. Colours as variables so a reskin changes one block.
   Art frames are nine-slice images (border-image) from arte/ui: swap the files to reskin. */
/* Fredoka (SIL OFL 1.1, fontes/OFL.txt), embedded so the game never falls back to the system font */
@font-face {
  font-family: 'Fredoka';
  src: url('fontes/fredoka-latin-500-normal.woff2') format('woff2');
  font-weight: 300 500;
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('fontes/fredoka-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('fontes/fredoka-latin-700-normal.woff2') format('woff2');
  font-weight: 700 900;
  font-display: swap;
}
:root {
  --fundo-1: #0a1d3d;
  --fundo-2: #0e5f78;
  --texto: #ffffff;
  --suave: #b9d3e2;
  --ouro: #ffd23f;
  --verde: #39d98a;
  --xp: #3fe0d0;
  --tinta: #0a1730; /* outline of every HUD number */
  --creme: #1d2c4a;
  --fonte: 'Fredoka', 'Baloo 2', 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --pop: cubic-bezier(0.3, 1.6, 0.5, 1);
  --saida: cubic-bezier(0.16, 1, 0.3, 1);
  --contorno:
    0 0.09em 0 var(--tinta), 0.07em 0.05em 0 var(--tinta), -0.07em 0.05em 0 var(--tinta), 0.07em -0.04em 0 var(--tinta),
    -0.07em -0.04em 0 var(--tinta), 0 -0.06em 0 var(--tinta), 0 0.16em 0.12em rgba(0, 0, 0, 0.35);
}
/* desktop: 16 px at 1280x720, grows with the smaller side, capped so a 49" monitor is comfortable, never huge */
html {
  font-size: clamp(13px, min(1.25vw, 2.222vh), 30px);
}
/* phones in portrait: by width */
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  html {
    font-size: clamp(12px, 4.1vw, 20px);
  }
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  /* vignette (dark corners) on top of the backdrop gradient */
  background:
    radial-gradient(farthest-corner at 50% 48%, rgba(0, 8, 24, 0) 45%, rgba(0, 8, 24, 0.42)),
    radial-gradient(120% 90% at 50% 38%, var(--fundo-2), var(--fundo-1) 72%);
  color: var(--texto);
  font-family: var(--fonte);
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
#app {
  position: fixed;
  inset: 0;
}
#palco {
  position: absolute;
  inset: 0;
}
/* phones: the field scrolls under the top counters and the bottom bar; it fades out there instead of showing
   pebbles cut by the pills (the camera brings them into the clear part as the ring nears the edge) */
#palco.recorte {
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent var(--topo),
    #000 calc(var(--topo) + 1.6rem),
    #000 calc(var(--base) - 1.2rem),
    transparent var(--base)
  );
  mask-image: linear-gradient(
    to bottom,
    transparent var(--topo),
    #000 calc(var(--topo) + 1.6rem),
    #000 calc(var(--base) - 1.2rem),
    transparent var(--base)
  );
}
#chao {
  position: absolute;
  pointer-events: none;
  visibility: hidden;
  will-change: transform;
}
#campo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: none;
}
[hidden] {
  display: none !important;
}
.num {
  font-variant-numeric: tabular-nums;
  text-shadow: var(--contorno);
  letter-spacing: 0.01em;
}
img {
  -webkit-user-drag: none;
}

/* ---------- frames ---------- */
.placa {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 2.9rem;
  border-style: solid;
  border-color: transparent;
  border-width: 0.9rem 1.45rem;
  border-image: url(arte/ui/placa.webp) 62 98 fill / 0.9rem 1.45rem stretch;
  filter: drop-shadow(0 0.25rem 0.35rem rgba(0, 0, 0, 0.35));
}
.placa.azul {
  border-image-source: url(arte/ui/placa-azul.webp);
}
.placa b {
  margin: -1rem 0;
  line-height: 1;
}
/* the big icon leaves the frame on the left: game HUD, not a website pill */
.placa .ico-g {
  position: absolute;
  left: -2.15rem;
  top: 50%;
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  transform: translateY(-52%);
  filter: drop-shadow(0 0.15rem 0.2rem rgba(0, 0, 0, 0.4));
}
.painel {
  border-style: solid;
  border-color: transparent;
  border-width: 1.6rem;
  border-image: url(arte/ui/painel-azul.webp) 64 fill / 1.6rem stretch;
  filter: drop-shadow(0 0.8rem 1.4rem rgba(0, 0, 0, 0.4));
  padding: 0.2rem 0.4rem;
}

/* ---------- HUD ---------- */
#hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  --m: max(1rem, env(safe-area-inset-top));
}
#hud-moedas {
  position: absolute;
  left: calc(max(1rem, env(safe-area-inset-left)) + 1.4rem);
  top: var(--m);
  height: 3.4rem;
  min-width: 9.5rem;
  padding-left: 2.2rem;
  border-width: 1rem 1.6rem;
  border-image-width: 1rem 1.6rem;
}
#hud-moedas .ico-g {
  left: -2.5rem;
  width: 4.3rem;
  height: 4.3rem;
}
#hud-moedas b {
  font-size: 2.05rem;
  color: var(--ouro);
}
#pilulas {
  position: absolute;
  left: calc(max(1rem, env(safe-area-inset-left)) + 1.9rem);
  top: calc(var(--m) + 4.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
#pilulas .placa {
  height: 2.45rem;
  min-width: 6.6rem;
  padding-left: 1.15rem;
  border-width: 0.75rem 1.2rem;
  border-image-width: 0.75rem 1.2rem;
}
#pilulas .ico-g {
  left: -1.55rem;
  width: 2.7rem;
  height: 2.7rem;
}
#pilulas b {
  font-size: 1.35rem;
}
#hud-dir {
  position: absolute;
  right: max(1rem, env(safe-area-inset-right));
  top: var(--m);
  display: flex;
  align-items: center;
  gap: 2.6rem;
}
#hud-tempo {
  height: 3.4rem;
  min-width: 8.6rem;
  padding-left: 1.9rem;
  justify-content: center;
  border-width: 1rem 1.6rem;
  border-image-width: 1rem 1.6rem;
}
#hud-tempo .ico-g {
  left: -2.4rem;
  width: 4.1rem;
  height: 4.1rem;
}
#hud-tempo b {
  font-size: 2.05rem;
}
#hud-tempo.pouco b {
  animation: piscaCor 0.5s ease-in-out infinite alternate;
}
#hud-tempo.pouco .ico-g {
  animation: tique 1s steps(1) infinite;
}
@keyframes piscaCor {
  from {
    color: #ff9f43;
  }
  to {
    color: #fff;
  }
}
@keyframes tique {
  50% {
    transform: translateY(-52%) rotate(-8deg);
  }
}
.redondo {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.12s var(--pop);
}
.redondo:active {
  transform: scale(0.9);
}
#pausar {
  width: 2.9rem;
  height: 2.9rem;
  filter: drop-shadow(0 0.2rem 0.3rem rgba(0, 0, 0, 0.35));
}
#pausar img {
  width: 100%;
  height: 100%;
}
#hud-xp {
  position: absolute;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
}
.escudo {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.7rem;
  height: 4.1rem;
  background: url(arte/ui/hex-nivel.webp) center / contain no-repeat;
  filter: drop-shadow(0 0.2rem 0.3rem rgba(0, 0, 0, 0.4));
}
.escudo b {
  font-size: 1.7rem;
  line-height: 1;
}
.escudo.mini {
  width: 1.9rem;
  height: 2.1rem;
  font-size: 0.75rem;
}
.trilho {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 2.6rem;
  margin-left: -1rem;
  padding: 0 1.1rem 0 1.5rem;
  border-style: solid;
  border-color: transparent;
  border-width: 0.6rem 1.1rem;
  border-image: url(arte/ui/placa.webp) 62 98 fill / 0.6rem 1.1rem stretch;
  filter: drop-shadow(0 0.2rem 0.3rem rgba(0, 0, 0, 0.35));
}
.trilho .rotulo {
  font-size: 1.05rem;
}
.barra {
  position: relative;
  width: 17rem;
  height: 1.05rem;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow:
    inset 0 0.12rem 0.2rem rgba(0, 0, 0, 0.6),
    0 0 0 0.12rem rgba(255, 210, 63, 0.55);
  overflow: hidden;
}
.barra i {
  position: relative;
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(#8ff5e9, #3fe0d0 50%, #1fb3b0);
  box-shadow: inset 0 0.12rem 0 rgba(255, 255, 255, 0.55);
  transition: width 0.3s var(--saida);
  overflow: hidden;
}
/* a slow soft shine running along the bar (not strong, not flashing) */
.barra i::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: brilhoBarra 3.2s ease-in-out infinite;
}
@keyframes brilhoBarra {
  from {
    transform: translateX(-120%);
  }
  60%,
  to {
    transform: translateX(320%);
  }
}
.barra.enche i {
  filter: brightness(1.35);
}
#xp-txt {
  font-size: 1rem;
  color: #e6f6fa;
  min-width: 5.5rem;
  text-align: right;
}
#fim {
  white-space: nowrap;
  position: absolute;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  pointer-events: auto;
  font-size: 1.3rem;
  height: 3.5rem;
  padding: 0 0.8rem;
}
.bump {
  animation: bump 0.24s var(--pop);
}
@keyframes bump {
  40% {
    transform: scale(1.12);
  }
}
#pilulas .placa.bump .ico-g,
#hud-moedas.bump .ico-g {
  animation: icoPop 0.28s var(--pop);
}
@keyframes icoPop {
  40% {
    transform: translateY(-62%) scale(1.18) rotate(-6deg);
  }
}

/* modes: results show coins, ores and XP; the hub shows coins and ores (the ore bank) */
#hud.resumo #hud-dir,
#hud.resumo #fim,
#hud.menu #hud-dir,
#hud.menu #fim,
#hud.menu #hud-xp {
  display: none;
}
#hud.resumo #hud-xp {
  left: 50%;
  transform: translateX(-50%);
}

/* ---------- logo ---------- */
.logo {
  position: absolute;
  left: 50%;
  top: max(0.8rem, env(safe-area-inset-top));
  transform: translateX(-50%);
  height: 3.4rem;
  width: auto;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 0.2rem 0.3rem rgba(0, 0, 0, 0.35));
}
.logo.grande {
  position: static;
  transform: none;
  height: auto;
  width: min(620px, 86vw);
}

/* ---------- buttons ---------- */
.botao {
  font-family: inherit;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition:
    transform 0.12s var(--pop),
    filter 0.12s;
  touch-action: manipulation;
  background: none;
  border-style: solid;
  border-color: transparent;
  filter: drop-shadow(0 0.3rem 0.45rem rgba(0, 0, 0, 0.3));
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.botao:hover:not([disabled]) {
  filter: drop-shadow(0 0.3rem 0.45rem rgba(0, 0, 0, 0.3)) brightness(1.06);
}
.botao:active:not([disabled]) {
  transform: scale(0.94);
}
.botao:focus-visible,
.aba:focus-visible,
.no:focus-visible {
  outline: 3px solid var(--ouro);
  outline-offset: 3px;
}
.botao.claro {
  border-width: 1rem;
  border-image: url(arte/ui/claro.webp) 70 fill / 1rem stretch;
  color: #22324f;
  padding: 0 0.3rem;
}
.botao.ouro {
  border-width: 1rem;
  border-image: url(arte/ui/ouro.webp) 70 fill / 1rem stretch;
  color: #4a2a00;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  padding: 0 0.3rem;
}
.botao.madeira {
  font-size: clamp(2rem, 6vw, 3rem);
  height: 4.8rem;
  border-width: 1.5rem;
  border-image: url(arte/ui/madeira.webp) 80 fill / 1.5rem stretch;
  padding: 0 2.6rem;
  text-shadow:
    0 0.2rem 0 #5a2a0c,
    0 0 0.12rem #5a2a0c,
    0 0 0.12rem #5a2a0c;
  letter-spacing: 0.06em;
}
.botao[disabled] {
  filter: grayscale(0.85) brightness(0.8);
  cursor: default;
  opacity: 0.85;
}
.ico {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  background: center/contain no-repeat;
  flex: none;
}
.ico.moeda {
  background-image: url(arte/icones/moeda.webp);
}
img.mini {
  width: 1.4rem;
  height: 1.4rem;
  object-fit: contain;
  vertical-align: middle;
}

/* ---------- toast and stamp ---------- */
#toast {
  position: absolute;
  left: 50%;
  top: 24%;
  z-index: 6;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  color: var(--ouro);
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  text-shadow: var(--contorno);
}
#toast small {
  display: block;
  font-size: 0.5em;
  color: #fff;
}
#toast.on {
  animation: toast 1.6s var(--saida) forwards;
}
@keyframes toast {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
  25%,
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -60%) scale(1);
  }
}
#carimbo {
  position: absolute;
  left: 50%;
  top: 45%;
  z-index: 4;
  transform: translate(-50%, -50%) scale(2.2) rotate(-5deg);
  opacity: 0;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  font-weight: 800;
  color: #fff;
  pointer-events: none;
  white-space: nowrap;
  border: 1.6rem solid transparent;
  border-image: url(arte/ui/madeira.webp) 80 fill / 1.6rem stretch;
  padding: 0 1.8rem;
  text-shadow:
    0 0.06em 0 #5a2a0c,
    0 0 0.04em #5a2a0c,
    0 0 0.04em #5a2a0c;
  filter: drop-shadow(0 0.8rem 1.5rem rgba(0, 0, 0, 0.45));
}
#carimbo em,
.faixa em {
  font-style: normal;
  color: var(--ouro);
}
/* beat 3 of the ceremony: overshoot then settle */
#carimbo.on {
  animation: carimbo 0.42s cubic-bezier(0.5, 0, 0.6, 1) forwards;
}
@keyframes carimbo {
  60% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.92) rotate(-5deg);
  }
  80% {
    transform: translate(-50%, -50%) scale(1.04) rotate(-5deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(-5deg);
  }
}

/* touch screens: every button at least 44 x 44 px (WCAG target size), whatever the rem scale is */
@media (pointer: coarse) {
  .botao,
  .aba,
  .redondo,
  .slot {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ---------- first-time hints (never block input) ---------- */
#mao {
  position: absolute;
  z-index: 6;
  left: 0;
  top: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#mao img {
  display: block;
  width: 4.6rem;
  height: auto;
  transform-origin: 30% 10%;
  filter: drop-shadow(0 0.3rem 0.4rem rgba(0, 0, 0, 0.4));
}
#mao span {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 0.3rem;
  white-space: nowrap;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  text-shadow: var(--contorno);
}
#mao.arrasta img {
  animation: maoArrasta 2.2s ease-in-out infinite;
}
@keyframes maoArrasta {
  0%,
  100% {
    transform: translate(-3.5rem, 0.3rem) rotate(-8deg);
  }
  50% {
    transform: translate(3.5rem, -0.3rem) rotate(6deg);
  } /* a flatter sway: the fingertip stays below the ring's rim */
}
#mao.aponta span {
  display: none;
}
#mao.aponta img {
  animation: maoAponta 0.9s ease-in-out infinite;
}
@keyframes maoAponta {
  50% {
    transform: translate(-0.5rem, -0.6rem) scale(0.94);
  }
}
#mao.some {
  opacity: 0;
}
.no.guia::after {
  content: '';
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  box-shadow:
    0 0 0 0.25rem rgba(255, 220, 110, 0.9),
    0 0 1.4rem rgba(255, 200, 80, 0.8);
  animation: guia 1.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes guia {
  50% {
    transform: scale(1.08);
    opacity: 0.6;
  }
}
.calmo #mao img,
.calmo .no.guia::after {
  animation: none !important;
}

/* ---------- screens ---------- */
.tela {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
}
/* Title: the logo with a soft shine passing, a floating island (its own transparent art, never cropped, never
   larger than its file), the DIG! plank breathing, and the canvas backdrop (islets, motes) behind it all. */
#inicio {
  z-index: 1;
  justify-content: space-between;
  gap: 1rem;
  padding-top: max(4vh, env(safe-area-inset-top));
  padding-bottom: max(4vh, env(safe-area-inset-bottom));
}
.titulo-logo {
  position: relative;
  flex: none;
  line-height: 0;
  animation: logoEntra 0.7s var(--pop) both;
}
.titulo-logo .logo.grande {
  width: min(560px, 80vw, 50vh);
}
/* shine: a light band crossing the logo, masked by the logo itself (only where the letters are) */
.titulo-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%) -150% 0 / 250%
    100% no-repeat;
  -webkit-mask: url(arte/ui/logo.webp) center / contain no-repeat;
  mask: url(arte/ui/logo.webp) center / contain no-repeat;
  animation: brilhoLogo 5s ease-in-out 1.2s infinite;
  pointer-events: none;
}
@keyframes brilhoLogo {
  0% {
    background-position: 150% 0;
  }
  35%,
  100% {
    background-position: -150% 0;
  }
}
@keyframes logoEntra {
  from {
    opacity: 0;
    transform: translateY(-1.2rem) scale(0.9);
  }
}
.ilha-titulo {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ilha-titulo img {
  position: relative;
  z-index: 1;
  min-height: 0;
  max-height: calc(100% - 4vh);
  max-width: min(94vw, 1392px); /* the file is 1392 px wide */
  object-fit: contain;
  animation: ilhaFlutua 4.6s ease-in-out infinite;
  filter: drop-shadow(0 1.2rem 1.6rem rgba(0, 10, 30, 0.35));
}
.ilha-titulo .sombra {
  order: 2;
  flex: none;
  margin-top: -1vh;
  width: min(40vh, 46vw);
  height: 5vh;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 8, 24, 0.45), transparent);
  animation: sombraFlutua 4.6s ease-in-out infinite;
}
@keyframes ilhaFlutua {
  50% {
    transform: translateY(-2.2%);
  }
}
@keyframes sombraFlutua {
  50% {
    transform: scale(0.86);
    opacity: 0.7;
  }
}
/* phones: leave the top corner to the gear */
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  #inicio {
    padding-top: calc(max(1rem, env(safe-area-inset-top)) + 3.6rem);
  }
}
.titulo-pe {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
/* DIG! breathes with a warm halo leaving the plank (the button itself stays still: easy to hit) */
.botao.pulsa {
  position: relative;
}
.botao.pulsa::after {
  content: '';
  position: absolute;
  inset: -1.3rem -1.2rem;
  border-radius: 1.2rem;
  box-shadow:
    0 0 0 0.25rem rgba(255, 214, 110, 0.85),
    0 0 1.6rem rgba(255, 190, 80, 0.7);
  animation: pulsa 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes pulsa {
  0% {
    transform: scale(0.94);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}
#inicio .dica {
  margin: 0;
  font-size: 1.1rem;
  text-align: center;
  color: #e6f4f7;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
/* returning player: level, coins and land in a small plaque instead of the first-time hint */
#inicio .dica.volta {
  padding: 0.35rem 1.1rem;
  border-radius: 99rem;
  background: rgba(8, 24, 48, 0.55);
  box-shadow: inset 0 0 0 2px rgba(255, 210, 90, 0.55);
  font-weight: 700;
}
#inicio .dica.volta b {
  color: var(--ouro);
}
#opcoes {
  position: absolute;
  z-index: 4;
  right: max(1rem, env(safe-area-inset-right));
  top: max(1rem, env(safe-area-inset-top));
  width: 3.2rem;
  height: 3.2rem;
  min-width: 44px;
  min-height: 44px;
  filter: drop-shadow(0 0.2rem 0.3rem rgba(0, 0, 0, 0.35));
  display: none;
}
#opcoes img {
  width: 100%;
  height: 100%;
}
body[data-fase='inicio'] #opcoes,
body[data-fase='hub'] #opcoes {
  display: block;
}
#pausa:not(.no-turno) #fechar-opcoes,
#pausa.no-turno #sair-turno,
#pausa.no-turno #continuar {
  display: none;
}
.fundo-escuro {
  background: rgba(5, 12, 24, 0.7);
  z-index: 5;
}
.painel h2 {
  margin: 0 0 0.8rem;
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ouro);
  text-shadow: var(--contorno);
}
.acoes {
  display: flex;
  gap: 0.75rem;
}
.acoes .botao {
  flex: 1;
  font-size: 1.15rem;
  height: 3.4rem;
}

/* ---------- results: cream card with navy rim and a ribbon ---------- */
#resultado {
  background: rgba(5, 15, 30, 0.42);
}
.cartao {
  position: relative;
  width: min(33rem, 100%);
  border: 2.1rem solid transparent;
  border-image: url(arte/ui/cartao.webp) 90 fill / 2.1rem stretch;
  padding: 4.4rem 0.4rem 0;
  margin-top: 3.4rem;
  color: var(--creme);
  filter: drop-shadow(0 1.1rem 2.2rem rgba(0, 0, 0, 0.45));
  animation: entra 0.4s var(--pop);
}
@keyframes entra {
  from {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.92);
  }
}
.faixa {
  position: absolute;
  left: 50%;
  top: -6.6rem;
  transform: translateX(-50%);
  width: 118%;
  aspect-ratio: 722 / 282;
  background: url(arte/ui/faixa.webp) center / contain no-repeat;
  display: grid;
  place-items: end center;
  padding-bottom: 9%;
  animation: faixa 0.5s var(--pop) 0.08s both;
}
@keyframes faixa {
  from {
    transform: translateX(-50%) scale(1.25);
    opacity: 0;
  }
}
.faixa span {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-shadow: var(--contorno);
}
#res-minerios {
  width: 100%;
  margin-top: 1.8rem; /* clear of the ribbon's tails */
  border-collapse: collapse;
  font-size: 1.3rem;
  border-radius: 0.6rem;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(29, 44, 74, 0.12);
}
#res-minerios thead th {
  background: #1d2c4a;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: 0.35rem;
}
#res-minerios td,
#res-minerios th {
  width: 50%;
}
#res-minerios td {
  padding: 0.25rem 0.5rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
#res-minerios tbody tr:nth-child(even) td {
  background: rgba(29, 44, 74, 0.06);
}
#res-minerios td b {
  color: var(--creme);
  font-size: 1.25rem;
}
#res-minerios img {
  width: 2rem;
  height: 1.6rem;
  object-fit: contain;
  vertical-align: middle;
}
.linhas {
  margin: 0.8rem 0 1.1rem;
  display: grid;
  gap: 0.35rem;
  font-size: 1.15rem;
  border-top: 2px solid rgba(29, 44, 74, 0.12);
  padding-top: 0.6rem;
}
.linhas > div {
  display: grid;
  grid-template-columns: 2.3rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: aparece 0.3s var(--pop) forwards;
  border-bottom: 1px solid rgba(29, 44, 74, 0.08);
  padding-bottom: 0.25rem;
}
@keyframes aparece {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.linhas b {
  color: var(--creme);
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
}
.ri {
  display: grid;
  place-items: center;
}
.ri img,
.ri .ico {
  width: 1.8rem;
  height: 1.8rem;
  object-fit: contain;
}
.selo {
  position: relative;
  display: inline-block;
  overflow: hidden;
  background: linear-gradient(#ffe27a, #f2b52a);
  color: #4a2a00;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  margin-left: 0.5rem;
  box-shadow: 0 0.12rem 0 #b37b10;
  animation: bump 0.6s var(--pop) 2;
  vertical-align: middle;
}
/* NEW BEST: a soft diagonal shine (not strong) */
.selo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  animation: brilhoSelo 2.4s ease-in-out 0.8s infinite;
  transform: translateX(-120%);
}
@keyframes brilhoSelo {
  45%,
  to {
    transform: translateX(120%);
  }
}
.selo.verde {
  background: linear-gradient(#5cf0a6, #22b56e);
  color: #06311b;
  box-shadow: 0 0.12rem 0 #157a48;
  margin: 0.4rem 0 0.2rem;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
}
.cartao .acoes {
  margin: 0.2rem -0.2rem 0;
}
.pronto-up {
  margin: 0.2rem 0 0;
  text-align: center;
  color: #8a5a00;
  font-size: 1rem;
  opacity: 0;
  animation: aparece 0.3s var(--pop) forwards;
}
.botao.chama {
  animation: chama 1.2s ease-in-out 1.4s infinite alternate;
}
@keyframes chama {
  to {
    filter: drop-shadow(0 0 0.7rem rgba(255, 200, 60, 0.9)) brightness(1.08);
  }
}
#resultado.travado .botao {
  pointer-events: none;
}
.moeda-voa {
  position: absolute;
  z-index: 7;
  width: 2rem;
  height: 2rem;
  pointer-events: none;
  background: url(arte/icones/moeda.webp) center / contain no-repeat;
}

/* ---------- hub ---------- */
/* the workshop painting sits behind everything, softly blurred and darkened (more in the middle, where the panels
   are) so it sets the mood without fighting the buttons */
#hub::before {
  content: '';
  position: absolute;
  inset: -12px;
  z-index: -1;
  background:
    radial-gradient(64% 58% at 50% 50%, rgba(6, 16, 34, 0.86), rgba(6, 16, 32, 0.5) 72%, rgba(4, 10, 22, 0.7)),
    url(arte/ui/hub-fundo.webp) center / cover no-repeat;
  filter: blur(3px) saturate(0.85);
}
#hub {
  justify-content: flex-start;
  gap: 1rem;
  /* its own painted backdrop (a miner's workshop at night), darkened in the middle so the panels read */
  background: #0b1d36;
  padding: 4.6rem 10.5rem max(0.8rem, env(safe-area-inset-bottom));
}
.abas {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
}
.aba {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.8rem;
  padding: 0 1rem;
  border-style: solid;
  border-color: transparent;
  border-width: 0.7rem 1.1rem;
  border-image: url(arte/ui/placa-azul.webp) 62 98 fill / 0.7rem 1.1rem stretch;
  background: none;
  color: #dcecf5;
  font: 800 1.05rem var(--fonte);
  letter-spacing: 0.05em;
  cursor: pointer;
  filter: drop-shadow(0 0.2rem 0.3rem rgba(0, 0, 0, 0.3)) saturate(0.6) brightness(0.85);
  transition:
    transform 0.12s var(--pop),
    filter 0.15s;
}
.aba > * {
  margin: -1rem 0;
}
.aba img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  display: none;
}
.aba:hover {
  filter: drop-shadow(0 0.2rem 0.3rem rgba(0, 0, 0, 0.3));
}
.aba:active {
  transform: scale(0.94);
}
.aba.ativa {
  border-image-source: url(arte/ui/ouro.webp);
  border-image-slice: 70 fill;
  color: #3a2200;
  filter: drop-shadow(0 0 0.6rem rgba(255, 210, 63, 0.45));
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.aba.dim {
  opacity: 0.5;
}
.hub-corpo {
  flex: 1;
  min-height: 0;
  width: min(76rem, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.hub-corpo.outra {
  flex-direction: column;
  justify-content: safe center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.4rem 0;
}
.entra {
  animation: desliza 0.16s var(--saida);
}
@keyframes desliza {
  from {
    opacity: 0;
    transform: translateX(1.2rem);
  }
}
#cavar {
  flex: none;
  height: 4.2rem;
}
.nota {
  margin: 0;
  color: var(--suave);
  font-size: 0.9rem;
  text-align: center;
}

/* upgrades honeycomb: four coloured branches; each hex shows icon, name, price or MAX and its level */
#favo {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  --S: 60px;
}
.ligas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ligas line {
  stroke: rgba(150, 180, 210, 0.22);
  stroke-linecap: round;
}
.ligas line.on {
  stroke: var(--cor);
  filter: drop-shadow(0 0 4px var(--cor));
}
/* a line that just opened lights up from the bought node to the new neighbour */
.ligas line.acende {
  stroke-dasharray: 400;
  animation: acende 0.5s var(--saida) both;
}
@keyframes acende {
  from {
    stroke-dashoffset: 400;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.no {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  color: #fff;
  font-family: var(--fonte);
  transition:
    transform 0.15s var(--pop),
    filter 0.15s;
}
.no:active {
  transform: translate(-50%, -50%) scale(0.94);
}
.no .hx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0.18rem 0.25rem rgba(0, 0, 0, 0.5));
}
.hx-f {
  fill: #13284a;
  stroke: color-mix(in srgb, var(--cor) 55%, #0b1830);
  stroke-width: 5;
  stroke-linejoin: round;
}
.hx-i {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 2;
}
.no.tem .hx-f {
  fill: color-mix(in srgb, var(--cor) 22%, #13284a);
  stroke: var(--cor);
}
.no.pode .hx-f {
  stroke: var(--cor);
  stroke-width: 7;
}
.no.pode .hx {
  animation: pulsoNo 1.6s ease-in-out infinite alternate;
}
@keyframes pulsoNo {
  from {
    filter: drop-shadow(0 0.18rem 0.25rem rgba(0, 0, 0, 0.5)) drop-shadow(0 0 0 transparent);
  }
  to {
    filter: drop-shadow(0 0.18rem 0.25rem rgba(0, 0, 0, 0.5)) drop-shadow(0 0 0.55rem var(--cor));
  }
}
.no.trava .hx-f {
  fill: #20252e;
  stroke: #454c58;
}
.no.max .hx-f {
  fill: color-mix(in srgb, var(--cor) 30%, #13284a);
  stroke: #ffd23f;
  stroke-width: 7;
}
.no .ic {
  position: absolute;
  left: 27%;
  top: 15%;
  height: 32%;
  width: 46%;
  object-fit: contain;
  object-position: 50% 100%;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45));
}
.no.trava .ic {
  filter: grayscale(1) brightness(0.45);
}
.no .nm {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 49%;
  height: 22%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: 800 clamp(9px, calc(var(--S) * 0.17), 17px) / 1.02 var(--fonte);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.6),
    0 0 3px rgba(0, 0, 0, 0.6);
  overflow-wrap: anywhere;
  hyphens: none;
}
.no.trava .nm {
  color: #9aa3ae;
}
/* a name in two lines (fit(): Russian, German at 13 px): icon smaller and higher, name moves up, the price keeps its place */
.no .nm.duas {
  left: 4%;
  right: 4%;
  top: 42%;
  height: 30%;
}
.no:has(.nm.duas) .ic {
  top: 12%;
  height: 28%;
}
.no .cu {
  position: absolute;
  left: 50%;
  top: 79%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  padding: 0.1em 0.45em;
  border-radius: 99px;
  white-space: nowrap;
  font: 800 clamp(9px, calc(var(--S) * 0.15), 15px) / 1.1 var(--fonte);
  background: rgba(5, 12, 26, 0.7);
}
.no .cu .ico {
  width: 1.05em;
  height: 1.05em;
}
.no .cu.ok {
  color: #7dff9e;
  box-shadow: inset 0 0 0 1.5px rgba(57, 217, 138, 0.7);
}
.no .cu.falta {
  color: #ff8a8a;
  box-shadow: inset 0 0 0 1.5px rgba(255, 90, 90, 0.5);
}
.no .cu.max {
  color: #3a2200;
  background: linear-gradient(#fff2b0, #ffd23f 55%, #d89a1a);
  box-shadow: 0 0 0.5rem rgba(255, 210, 63, 0.6);
  letter-spacing: 0.04em;
}
.no .cu.cad {
  background: none;
  padding: 0;
}
.no .cu.cad img {
  display: block;
  height: max(11px, calc(var(--S) * 0.24));
}
/* selection: the hex grows 8% with a light outline */
.no.sel {
  transform: translate(-50%, -50%) scale(1.06);
  z-index: 2;
}
.no.sel .hx-f {
  stroke: #fff;
  stroke-width: 4;
}
.no.sel .hx {
  animation: none;
  filter: drop-shadow(0 0 0.5rem rgba(255, 255, 255, 0.55)) drop-shadow(0 0.18rem 0.25rem rgba(0, 0, 0, 0.5));
}
.no.comprou {
  animation: compra 0.38s var(--pop);
}
@keyframes compra {
  40% {
    transform: translate(-50%, -50%) scale(1.14);
  }
}
.no:hover:not(.trava) {
  filter: brightness(1.12);
}
.ramo-rot {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0.15rem 0.7rem;
  border-radius: 99px;
  border: 0.12rem solid var(--cor);
  background: rgba(6, 14, 30, 0.72);
  color: var(--cor);
  font: 800 0.95rem var(--fonte);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
#ficha {
  width: 25rem;
  flex: none;
  display: grid;
  gap: 0.65rem;
  --cor: #ffd23f;
}
.f-prog {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--suave);
}
#f-ramos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
}
#f-ramos .rm {
  display: grid;
  gap: 0.15rem;
}
#f-ramos .rm b {
  color: var(--cor);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
#f-ramos .rm > i {
  display: block;
  height: 0.4rem;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
#f-ramos .rm > i > i {
  display: block;
  height: 100%;
  min-width: 0.4rem;
  background: var(--cor);
}
.ficha-topo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.ficha-topo img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  filter: drop-shadow(0 0.2rem 0.3rem rgba(0, 0, 0, 0.4));
}
#ficha[data-estado='trava'] .ficha-topo img {
  filter: grayscale(1) brightness(0.55);
}
.ficha-topo h3 {
  margin: 0;
  font-size: 1.5rem;
  text-shadow: var(--contorno);
}
#f-ramo {
  color: var(--cor);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.f-nivel {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.f-nivel .barra {
  flex: 1;
  height: 0.7rem;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.f-nivel .barra i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--cor) 70%, #fff), var(--cor));
  transition: width 0.35s var(--saida);
}
#f-nivel {
  color: #fff;
  font-size: 0.95rem;
  white-space: nowrap;
}
#f-efeito {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.28);
  font-size: 1.05rem;
}
#f-stat {
  color: var(--suave);
  margin-right: auto;
}
#f-efeito b {
  display: inline-block;
  font-size: 1.35rem;
}
#f-agora {
  color: #fff;
}
#f-prox {
  color: #7dff9e;
}
#f-efeito .seta {
  font-style: normal;
  color: var(--ouro);
}
#f-efeito.so .seta,
#f-efeito.so #f-agora {
  display: none;
}
#f-desc {
  margin: 0;
  color: #d8eef4;
  font-size: 0.95rem;
}
#f-desc.req {
  color: #ffb4a0;
}
#f-abre {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
  color: var(--suave);
  font-size: 0.85rem;
}
#f-abre img {
  width: 1.4rem;
  height: 1.4rem;
  object-fit: contain;
}
#f-abre b {
  color: #fff;
  margin-right: 0.4rem;
}
.f-compra {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: 'modos custo' 'botao botao';
  align-items: center;
  gap: 0.55rem 0.8rem;
}
#f-modos {
  grid-area: modos;
  display: flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.35);
}
#f-modos[hidden] {
  display: none;
}
#f-modos button {
  border: 0;
  border-radius: 99px;
  padding: 0.3rem 0.65rem;
  background: none;
  color: #cfe2f0;
  font: 800 0.9rem var(--fonte);
  cursor: pointer;
}
#f-modos button.ativa {
  background: linear-gradient(#fff2b0, #ffd23f 60%, #d89a1a);
  color: #3a2200;
}
#f-modos button:disabled {
  opacity: 0.35;
  cursor: default;
}
.f-custo {
  grid-area: custo;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.45rem;
  font-size: 1.4rem;
  justify-self: end;
}
.f-custo b {
  color: var(--ouro);
  text-shadow: var(--contorno);
}
.f-custo.ok b {
  color: #7dff9e;
}
.f-custo.falta b {
  color: #ff8a8a;
}
.f-custo.max,
.f-custo.trava {
  visibility: hidden;
}
#f-qtd {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--suave);
}
#f-falta {
  flex-basis: 100%;
  text-align: right;
  font-size: 0.8rem;
  color: #ffb4a0;
}
#f-falta:empty {
  display: none;
}
#f-comprar {
  grid-area: botao;
  height: 3.6rem;
  font-size: 1.5rem;
}

/* lands: a trail of floating ground cubes */
.trilha {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  margin: auto 0;
}
.terra {
  position: relative;
  width: 11.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}
.terra + .terra::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 4.8rem;
  width: 4.7rem;
  border-top: 0.3rem dashed rgba(255, 255, 255, 0.75);
  z-index: -1;
}
.terra .arte {
  width: 11rem;
  height: 9.6rem;
  object-fit: contain;
  filter: drop-shadow(0 0.7rem 0.8rem rgba(0, 0, 0, 0.4));
  animation: flutua 3.2s ease-in-out infinite alternate;
  cursor: pointer;
}
.terra:nth-child(2n) .arte {
  animation-delay: -1.6s;
}
@keyframes flutua {
  to {
    transform: translateY(-0.5rem);
  }
}
.terra.fechada .arte {
  filter: drop-shadow(0 0.7rem 0.8rem rgba(0, 0, 0, 0.4)) saturate(0.45) brightness(0.7);
}
.terra.aqui .arte {
  filter: drop-shadow(0 0 0.9rem rgba(255, 220, 90, 0.85)) drop-shadow(0 0.7rem 0.8rem rgba(0, 0, 0, 0.4));
}
.terra .marca {
  position: absolute;
  right: 0.4rem;
  top: 0.1rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.4rem;
  z-index: 1;
}
.terra .marca.ok {
  background: radial-gradient(circle at 35% 30%, #7af5b4, #1fae63);
  box-shadow:
    0 0 0 0.2rem #fff,
    0 0.2rem 0.4rem rgba(0, 0, 0, 0.4);
  color: #fff;
}
.terra .marca img {
  width: 1.8rem;
}
.terra h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-shadow: var(--contorno);
  text-transform: uppercase;
}
.terra.aqui h3 {
  color: var(--ouro);
  padding: 0.15rem 0.8rem;
  border-radius: 99px;
  box-shadow:
    0 0 0 0.18rem var(--ouro),
    0 0 0.8rem rgba(255, 210, 63, 0.5);
  background: rgba(10, 23, 48, 0.75);
}
.terra p {
  margin: 0;
  color: var(--suave);
  font-size: 0.95rem;
  min-height: 2.4em;
}
.terra .botao {
  height: 3.1rem;
  min-width: 8.6rem;
  font-size: 1.1rem;
}
.pecas {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.95rem;
  color: #ffe9a8;
}
.pecas img {
  width: 1.4rem;
}

.terra-grande {
  display: none;
}
.terra .ver {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.terra-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

/* forge: rack + detail + action, furnace below */
.forja {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  width: 100%;
  align-items: stretch;
}
.rack {
  display: grid;
  grid-template-columns: repeat(3, 5.8rem);
  gap: 0.6rem;
  align-content: start;
}
.slot {
  width: 5.8rem;
  height: 5.8rem;
  border-radius: 0.9rem;
  border: 0.18rem solid rgba(140, 190, 240, 0.25);
  background: linear-gradient(rgba(40, 70, 110, 0.65), rgba(14, 30, 58, 0.85));
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0.4rem;
  position: relative;
  transition: transform 0.12s var(--pop);
}
.slot:active {
  transform: scale(0.93);
}
.slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0.2rem 0.2rem rgba(0, 0, 0, 0.4));
}
.slot.trava img {
  filter: brightness(0) opacity(0.45);
}
.slot.trava::after {
  content: '';
  position: absolute;
  inset: auto 0 0.4rem;
  margin: auto;
  width: 1.6rem;
  height: 1.9rem;
  background: url(arte/ui/cadeado.webp) center / contain no-repeat;
}
.slot.sel {
  border-color: var(--ouro);
  box-shadow:
    0 0 0.9rem rgba(255, 210, 63, 0.55),
    inset 0 0 0.8rem rgba(255, 210, 63, 0.25);
}
.slot .eq {
  position: absolute;
  right: -0.35rem;
  top: -0.35rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7af5b4, #1fae63);
  box-shadow: 0 0 0 0.12rem #fff;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}
.detalhe {
  display: grid;
  grid-template-columns: 10rem minmax(12rem, 1fr);
  gap: 0.6rem 1rem;
  align-items: center;
}
.detalhe > img {
  width: 10rem;
  height: 10rem;
  max-width: 250px;
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 0 1.2rem rgba(255, 170, 80, 0.35)) drop-shadow(0 0.5rem 0.6rem rgba(0, 0, 0, 0.4));
  grid-row: span 2;
}
.detalhe h3 {
  margin: 0;
  font-size: 1.6rem;
  text-transform: uppercase;
  text-shadow: var(--contorno);
}
.stats {
  display: grid;
  gap: 0.35rem;
}
.stats div {
  white-space: nowrap;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(5, 14, 32, 0.55);
  border-radius: 99px;
  padding: 0.35rem 1rem;
  font-size: 1.15rem;
}
.stats b {
  font-variant-numeric: tabular-nums;
}
.perk {
  grid-column: 1 / -1;
  border-top: 2px solid rgba(140, 190, 240, 0.2);
  padding-top: 0.5rem;
  color: #ffe9a8;
  font-size: 1rem;
  text-align: center;
}
.acao {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  justify-content: center;
  min-width: 12rem;
}
.acao .botao {
  height: 4.2rem;
  font-size: 1.5rem;
  flex-direction: column;
  gap: 0;
  line-height: 1.1;
}
.acao .botao small {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.acao .botao small span {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}
.acao .falta {
  color: #b3261e;
}
.acao .equipado {
  display: grid;
  place-items: center;
  height: 3.6rem;
  border-radius: 1rem;
  border: 0.2rem solid #39d98a;
  background: rgba(20, 70, 50, 0.6);
  color: #fff;
  font-size: 1.3rem;
  text-shadow: var(--contorno);
}
.fornalha {
  width: 18rem;
  max-width: 60vw;
  margin-top: -0.5rem;
  filter: drop-shadow(0 0 2rem rgba(255, 140, 40, 0.35));
  animation: brasa 2.4s ease-in-out infinite alternate;
}
@keyframes brasa {
  to {
    filter: drop-shadow(0 0 2.6rem rgba(255, 160, 60, 0.5));
  }
}
.forja-banco {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* shop + rigs: framed panel with a plank header */
.quadro {
  position: relative;
  width: min(44rem, 100%);
  margin-top: 2rem;
  padding-top: 1.5rem;
}
.quadro .tabua {
  position: absolute;
  left: 50%;
  top: -3.6rem;
  transform: translateX(-50%);
  width: 17rem;
  aspect-ratio: 640 / 209;
  background: url(arte/ui/tabua.webp) center / contain no-repeat;
  display: grid;
  place-items: center;
  padding-top: 1.4rem;
  font-size: 1.9rem;
  font-weight: 800;
  text-shadow:
    0 0.12rem 0 #5a2a0c,
    0 0 0.1rem #5a2a0c,
    0 0 0.1rem #5a2a0c;
  z-index: 1;
}
.quadro .nota {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.grade {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  border-radius: 1rem;
  background: linear-gradient(rgba(30, 55, 95, 0.7), rgba(10, 24, 50, 0.85));
  border: 0.15rem solid rgba(140, 190, 240, 0.18);
  padding: 0.4rem 0.5rem 0.5rem;
  text-align: center;
}
.item.pronto {
  border-color: var(--verde);
  box-shadow: 0 0 0.8rem rgba(57, 217, 138, 0.35);
}
.item img {
  width: 3.4rem;
  height: 3.4rem;
  object-fit: contain;
  filter: drop-shadow(0 0.3rem 0.3rem rgba(0, 0, 0, 0.4));
}
.item h3 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  text-shadow: var(--contorno);
}
.item p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--suave);
  min-height: 2.2em;
}
.grade {
  gap: 0.5rem !important;
}
.item .botao {
  height: 2.7rem;
  min-width: 7rem;
  font-size: 1rem;
}
.sondas {
  display: grid;
  gap: 0.7rem;
}
.sonda {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 1rem;
  align-items: center;
  border-radius: 1rem;
  background: linear-gradient(90deg, rgba(30, 55, 95, 0.7), rgba(10, 24, 50, 0.85));
  border: 0.15rem solid rgba(140, 190, 240, 0.18);
  padding: 0.2rem 0.9rem 0.2rem 0.4rem;
}
.sonda img {
  width: 6rem;
  height: 4rem;
  object-fit: contain;
}
.sonda h3 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
  text-transform: uppercase;
  text-shadow: var(--contorno);
}
.sonda .lv {
  display: inline-block;
  border: 0.15rem solid rgba(200, 225, 245, 0.7);
  border-radius: 99px;
  padding: 0 0.6rem;
  margin-right: 0.6rem;
  font-size: 0.9rem;
}
.sonda .botao {
  height: 3rem;
  min-width: 8rem;
  font-size: 1rem;
}
.taxa {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}
.taxa b {
  color: var(--ouro);
  text-shadow: var(--contorno);
}

/* bedrock: cut of the ground + question panel */
.bedrock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  width: 100%;
  margin: auto 0;
}
.bedrock .cubo {
  max-width: min(40vw, 580px);
  width: 22rem;
  max-width: 40vw;
  filter: drop-shadow(0 0 2rem rgba(63, 224, 208, 0.3));
}
.bedrock .painel {
  width: min(28rem, 100%);
  display: grid;
  gap: 0.6rem;
}
.bedrock .painel h2 {
  margin-bottom: 0.3rem;
  color: #fff;
}
.bedrock .linha {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(5, 14, 32, 0.55);
  border-radius: 0.8rem;
  padding: 0.55rem 0.9rem;
  font-size: 1.05rem;
  text-transform: uppercase;
}
.bedrock .linha img,
.bedrock .linha .seta {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
  flex: none;
}
.bedrock .linha .seta {
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: #39d98a;
}
.bedrock .linha b {
  color: var(--xp);
}
.bedrock .acoes .botao {
  height: 3.6rem;
  font-size: 1.3rem;
}
.botao.ciano {
  border-width: 1rem;
  border-image: url(arte/ui/ouro.webp) 70 fill / 1rem stretch;
  filter: hue-rotate(130deg) saturate(1.1) drop-shadow(0 0.3rem 0.45rem rgba(0, 0, 0, 0.3));
  color: #06353a;
}
.bedrock.afunda .cubo {
  animation: afunda 0.9s cubic-bezier(0.5, 0, 0.6, 1) forwards;
}
@keyframes afunda {
  25% {
    transform: translateY(-0.6rem) scale(1.04);
  }
  100% {
    transform: translateY(14rem) scale(0.8);
    opacity: 0;
  }
}
.fragmento-voa {
  position: absolute;
  z-index: 7;
  width: 1.6rem;
  height: 2.4rem;
  pointer-events: none;
  background: url(arte/ui/fragmento.webp) center / contain no-repeat;
  filter: drop-shadow(0 0 0.5rem rgba(63, 224, 208, 0.8));
}

/* ---------- pause + welcome back ---------- */
.opcoes {
  display: grid;
  gap: 0.6rem;
  width: min(26rem, 100%);
}
.alterna {
  height: 3.2rem;
  font-size: 1.1rem;
  position: relative;
  justify-content: flex-start;
}
.alterna::after {
  content: 'ON';
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  background: var(--verde);
  color: #08311d;
  border-radius: 99px;
  padding: 0.12rem 0.65rem;
}
.alterna.off::after {
  content: 'OFF';
  background: #8a97a6;
  color: #1a2230;
}
#volta .painel {
  text-align: center;
  display: grid;
  gap: 0.8rem;
  width: min(26rem, 100%);
}
#volta p {
  margin: 0;
  color: #d8eef4;
}
.f-custo.grande {
  justify-content: center;
  font-size: 2.1rem;
}
/* End of estilo.css: complete file, part 1 of 6 of the styles. It continues in estilo-2.css, loaded right after it by index.html. */
