/* Crater Crush styles, part 3 of 6 (see estilo.css). Linked in this order by index.html. */
.calmo .lascas i,
.calmo .brilho-gema {
  display: none;
}
/* clouds never drawn bigger than their files on sharp screens */
@media (min-resolution: 2dppx) {
  .nuvem.n0 {
    max-width: 845px;
  }
  .nuvem.n1 {
    max-width: 825px;
  }
  .nuvem.n2 {
    max-width: 950px;
  }
}
@media (min-resolution: 3dppx) {
  .nuvem.n0 {
    max-width: 560px;
  }
  .nuvem.n1 {
    max-width: 550px;
  }
  .nuvem.n2 {
    max-width: 630px;
  }
}
.nuvem {
  mix-blend-mode: screen;
}
.nuvem.n0 {
  opacity: 0.2;
}
.nuvem.n1 {
  opacity: 0.14;
}
.nuvem.n2 {
  opacity: 0.16;
}
/* ---------- v1 ---------- */
/* phones: the card's top gap under the ribbon was taller than the ribbon's tails need (rows scrolled for nothing) */
@media (max-aspect-ratio: 4/5) {
  #resultado .cartao {
    padding-top: 3.5rem;
  }
}
/* the level shield inside the cream card keeps the HUD's white number (it took the card's dark text colour) */
#subiu .escudo b {
  color: #fff;
  font-size: 1.15rem;
  text-shadow: var(--contorno);
}
/* 2x screens wider than a laptop (iMac 5K, 2560x1440@2): the interface grows only as far as its art files allow
   (the honeycomb hexes, pebbles and pick are drawn for ~20 CSS px per rem at 2x); the title island keeps to its file */
@media (min-resolution: 2dppx) and (min-aspect-ratio: 4/5) and (min-width: 621px) {
  html {
    font-size: clamp(13px, min(1.25vw, 2.222vh), 20px);
  }
  #ilha-img {
    max-width: 695px;
  }
}
/* phones: the five ore pills share one row; slimmer side caps and gaps leave the numbers room at a readable size
   (jogo.js shortens them from 1,000 on and shrinks a step only if a frame would still be passed) */
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  #pilulas {
    gap: 1.05rem;
  }
  #pilulas .placa {
    padding-left: 0.6rem;
    border-width: 0.65rem 0.62rem;
    border-image-width: 0.65rem 0.62rem;
  }
}
/* small phones: relic captions and shop prices never drop below a readable size (prices are shortened, 30K) */
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  .pedestal p {
    font-size: max(0.62rem, 9.5px);
  }
  .item .botao {
    border-width: 0.6rem 0.55rem;
    border-image-width: 0.6rem 0.55rem;
    font-size: 0.85rem;
  }
}
/* the wooden plank over a panel never sits on the panel's text: the text starts below it, with breathing room */
.quadro {
  padding-top: 2.7rem;
}
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  .quadro {
    padding-top: 2.1rem;
  }
}
/* sentences (panel notes, Bedrock lines) in normal case; capitals only for short titles and buttons */
.quadro .nota,
.bedrock .linha {
  text-transform: none;
  letter-spacing: 0;
}
/* the results ribbon: the text sits in the middle of the navy capsule itself (measured on arte/ui/faixa.webp, 721x279:
   capsule x 90-628, y 137-231), not in the middle of the whole picture with its tails and gems */
.faixa {
  display: block;
  padding: 0;
}
.faixa span {
  position: absolute;
  left: 12.5%;
  width: 74.6%;
  max-width: none;
  top: 49.1%;
  height: 33.7%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 0.6rem;
  box-sizing: border-box;
  white-space: nowrap;
}
/* honeycomb level seals: their own layer above all the hexagons, centred on a spot inside the lower-right of their
   own hexagon; one or two digits (up to 40) stay a round, readable badge */
.selos-nivel {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.selos-nivel .lv {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.3rem;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border-radius: 99px;
  background: #1d2c4a;
  border: 2px solid #ffd23f;
  color: #fff;
  font: 800 0.78rem/1 var(--fonte);
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 0.12rem 0.25rem rgba(0, 0, 0, 0.4);
}
/* Cyrillic falls back to a system font that sits ~3 px low in the button frames: lifted back to the optical centre */
.botao:lang(ru) {
  padding-bottom: 0.17em;
}
.bedrock .botao:lang(ru) {
  padding-bottom: 0; /* these grow with their text and centre it already */
}
#idiomas .botao:lang(ru) {
  padding-bottom: 0.34em; /* a short fixed-height button: the lift is half of this */
}
/* the ribbon's span is a flex box, which drops the space before <em> ("SHIFTOVER!"); put it back as a fixed
   space (Japanese and Chinese write the two words together, so no space there) */
.faixa em::before {
  content: '\00a0';
}
:lang(ja) .faixa em::before,
:lang(zh) .faixa em::before {
  content: none;
}
/* the hub hand is sized by the honeycomb (it points up at the node from between the two nodes below it) */
#mao.aponta img {
  width: var(--mao-w, 4.6rem);
}

/* scroll bars in the game's look (never the white system bar): a rounded navy track with a gold rim and a
   gold/copper thumb with some volume; on touch screens no bar at all (the fade at the edges says there is more) */
::-webkit-scrollbar {
  width: 0.72rem;
  height: 0.72rem;
}
::-webkit-scrollbar-track {
  background: rgba(8, 18, 40, 0.78);
  border-radius: 99px;
  box-shadow: inset 0 0 0 0.12rem rgba(255, 210, 63, 0.28);
  margin: 0.7rem 0;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #ffe7a0, #e8a83c 50%, #a8641c);
  border: 0.15rem solid rgba(8, 18, 40, 0.78);
  border-radius: 99px;
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.55);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #fff0bf, #f2b64c 50%, #b8722a);
}
::-webkit-scrollbar-corner {
  background: transparent;
}
@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-color: #e8a83c rgba(8, 18, 40, 0.78);
  }
}
@media (pointer: coarse) {
  ::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}
/* a hub tab that really has to scroll: the scroller hugs the panel (its bar sits on the panel's edge, not at the far
   side of the screen) and the top/bottom fade out to say there is more */
.hub-corpo.outra.rola {
  width: fit-content;
  max-width: 100%;
  -webkit-mask-image: linear-gradient(transparent, #000 1rem, #000 calc(100% - 1.4rem), transparent);
  mask-image: linear-gradient(transparent, #000 1rem, #000 calc(100% - 1.4rem), transparent);
}

/* guided first purchase. The spotlight darkens the rest softly and lets every tap through; the balloon is a
   short line in the game's colours with a pointer toward its target and an optional Skip */
#foco {
  position: fixed;
  z-index: 40;
  border-radius: 1.2rem;
  box-shadow:
    0 0 0 200vmax rgba(4, 10, 22, 0.55),
    0 0 0 0.2rem rgba(255, 214, 90, 0.9),
    0 0 1.2rem 0.3rem rgba(255, 214, 90, 0.55);
  pointer-events: none;
  animation: focoEntra 0.3s var(--saida);
}
@keyframes focoEntra {
  from {
    opacity: 0;
  }
}
#balao {
  position: fixed;
  z-index: 41;
  max-width: min(22rem, calc(100vw - 16px));
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem 0.6rem 1rem;
  border-radius: 1rem;
  background: #fff3d6;
  color: #1d2c4a;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  box-shadow:
    0 0.35rem 0 #c9935a,
    0 0.6rem 1.4rem rgba(0, 0, 0, 0.45);
  animation: balaoEntra 0.28s var(--pop);
}
#balao::after {
  content: '';
  position: absolute;
  left: var(--seta, 50%);
  bottom: -0.55rem;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: -0.55rem;
  background: #fff3d6;
  transform: rotate(45deg);
  border-radius: 0.2rem;
  box-shadow: 0.25rem 0.25rem 0 #c9935a;
}
#balao.baixo::after {
  bottom: auto;
  top: -0.55rem;
  box-shadow: none;
}
#balao .pular {
  flex: none;
  border: 0;
  border-radius: 99px;
  padding: 0.3rem 0.7rem;
  background: rgba(29, 44, 74, 0.12);
  color: #1d2c4a;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
#balao .pular[hidden] {
  display: none;
}
@keyframes balaoEntra {
  from {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.92);
  }
}
/* boosts waiting for the next shift: a short line beside DIG! */
#cavar {
  position: relative;
}
#cavar::after {
  content: attr(data-prontos);
  position: absolute;
  left: 100%;
  top: 50%;
  margin-left: 0.8rem;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  background: rgba(57, 217, 138, 0.18);
  border: 0.12rem solid var(--verde);
  color: #d9ffe9;
  font-size: 0.85rem;
  text-shadow: none;
}
#cavar[data-prontos='']::after,
#cavar:not([data-prontos])::after {
  display: none;
}
/* the shift: boosts bought for it, small beside the clock */
#reforcos {
  position: absolute;
  right: 100%;
  top: 50%;
  margin-right: 0.7rem;
  transform: translateY(-50%);
  display: flex;
  gap: 0.25rem;
}
#reforcos[hidden] {
  display: none;
}
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  #reforcos {
    right: 0;
    top: calc(100% + 0.3rem);
    margin-right: 0;
    transform: none;
  }
  #reforcos img {
    width: 1.4rem !important;
    height: 1.4rem !important;
  }
}
#reforcos img {
  width: 1.9rem;
  height: 1.9rem;
  object-fit: contain;
  filter: drop-shadow(0 0.15rem 0.15rem rgba(0, 0, 0, 0.5));
}
/* shop cards: same height, the buy row on one line in every card; bigger icon that hops on hover; READY loud and
   clear; a price out of reach is grey with what is missing under it */
.item .compra {
  margin-top: auto;
  min-height: 3.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.item p {
  flex: 1 0 auto;
}
.item img {
  width: 4.2rem;
  height: 4.2rem;
  transition: transform 0.2s var(--pop);
}
.item:hover img {
  transform: translateY(-0.25rem) rotate(-6deg) scale(1.08);
}
.item .falta {
  font-size: 0.75rem;
  color: var(--suave);
  opacity: 0.85;
}
.item.caro img {
  filter: grayscale(0.5) drop-shadow(0 0.3rem 0.3rem rgba(0, 0, 0, 0.4));
  opacity: 0.8;
}
.item.pronto {
  background: linear-gradient(rgba(40, 110, 85, 0.75), rgba(12, 50, 40, 0.9));
}
.pronto-grande {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.7rem;
  padding: 0 1rem;
  border-radius: 99px;
  background: var(--verde);
  color: #08321f;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
}
.pronto-grande svg {
  width: 1.2em;
  height: 1.2em;
}
@media (prefers-reduced-motion: reduce) {
  .item:hover img {
    transform: none;
  }
}
/* wide and short screens: the six Shop cards in one row (the width at the sides is free, the height is not) */
@media (min-aspect-ratio: 17/10) and (max-height: 1000px) {
  .grade:has(> .item) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .quadro:has(> .grade > .item) {
    width: min(74rem, 100%);
    max-width: none;
  }
}
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  .pronto-grande {
    height: 2rem;
    padding: 0 0.55rem;
    font-size: 0.82rem;
    gap: 0.2rem;
    max-width: 100%;
  }
  #cavar::after {
    left: 50%;
    top: auto;
    bottom: 100%;
    margin: 0 0 0.35rem;
    transform: translateX(-50%);
    font-size: 0.72rem;
  }
}

/* ---------- tab seals (count of buyable upgrades, a dot where something can be done, Bedrock's lock) ---------- */
.aba {
  position: relative;
}
.aba[data-n]:not([data-n=''])::before {
  content: attr(data-n);
  position: absolute;
  top: -0.95rem;
  right: -0.9rem;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: linear-gradient(#5bf0a0, #22b866);
  color: #06301a;
  font: 800 0.78rem/1 var(--fonte);
  box-shadow:
    0 0 0 0.12rem #0b1d36,
    0 0.1rem 0.3rem rgba(0, 0, 0, 0.4);
  text-shadow: none;
  letter-spacing: 0;
}
.aba.pode::after {
  content: '';
  position: absolute;
  top: -0.85rem;
  right: -0.8rem;
  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);
}
.aba[data-trava]:not([data-trava=''])::after {
  content: attr(data-trava);
  position: absolute;
  bottom: -1.05rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.05rem 0.45rem 0.05rem 1.25rem;
  border-radius: 99px;
  background: #1a2230 url(arte/ui/cadeado.webp) 0.3rem 50% / 0.8rem auto no-repeat;
  border: 0.1rem solid #59626e;
  color: #c9d1db;
  font: 800 0.68rem/1.3 var(--fonte);
  white-space: nowrap;
  letter-spacing: 0;
  text-shadow: none;
}
.aba.dim {
  opacity: 1;
}
.aba.dim > * {
  opacity: 0.5;
}
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  .aba[data-n]:not([data-n=''])::before {
    top: 0.1rem;
    right: 0.15rem;
  }
  .aba.pode::after {
    top: 0.2rem;
    right: 0.25rem;
  }
  .aba[data-trava]:not([data-trava=''])::after {
    bottom: auto;
    top: 0.5rem;
    font-size: 0.6rem;
    padding: 0.02rem 0.35rem 0.02rem 1rem;
    background-size: 0.65rem auto;
  }
}
/* the selected level seal and a seal that just rose */
.selos-nivel .lv {
  border-color: var(--cor, #ffd23f);
}
/* level seals sized by the hexagon (inside its upper right shoulder, at every size) */
#favo .selos-nivel .lv {
  min-width: max(15px, calc(var(--S) * 0.3));
  height: max(15px, calc(var(--S) * 0.3));
  font-size: max(9px, calc(var(--S) * 0.17));
  padding: 0 0.15em;
  border-width: max(1.5px, calc(var(--S) * 0.025));
}
/* small hexagons (phones): a tighter vertical grid, the price pill without padding, everything inside the hexagon */
#favo.miudo .no .ic {
  left: 30%;
  width: 40%;
  top: 13%;
  height: 29%;
}
#favo.miudo .no .nm {
  top: 43%;
  height: 23%;
}
#favo.miudo .no .cu {
  top: 75%;
  padding: 0 0.15em;
  gap: 0.1em;
}
#favo.miudo .no .cu .ico {
  width: 0.9em;
  height: 0.9em;
}
.selos-nivel .lv.cheio {
  background: linear-gradient(#fff2b0, #ffd23f 60%, #d89a1a);
  color: #3a2200;
  border-color: #fff4c0;
}
.selos-nivel .lv.salta {
  animation: saltaSelo 0.45s var(--pop);
}
@keyframes saltaSelo {
  35% {
    transform: translate(-50%, -50%) scale(1.5) translateY(-0.2rem);
  }
}
.moeda-voa {
  position: fixed;
  z-index: 60;
  width: 1.3rem;
  height: 1.3rem;
  pointer-events: none;
}

/* ---------- shift HUD — combo meter in the top middle (the logo leaves the shift), "this shift" label ---------- */
body[data-fase='hud'] .logo {
  display: none;
}
#medidor {
  display: none;
}
#hud.turno #medidor {
  position: absolute;
  left: 50%;
  top: var(--m);
  transform: translateX(-50%);
  width: 15rem;
  height: 3.4rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: 0.6rem;
  padding: 0.35rem 0.9rem 0.45rem;
  box-sizing: border-box;
  border-radius: 1rem;
  background: linear-gradient(rgba(16, 34, 64, 0.92), rgba(8, 18, 38, 0.94));
  box-shadow:
    inset 0 0 0 0.14rem rgba(255, 210, 63, 0.55),
    0 0.3rem 0.8rem rgba(0, 0, 0, 0.35);
  opacity: 0.75;
  transition: opacity 0.2s;
}
#hud.turno #medidor.vivo {
  opacity: 1;
}
.m-rot {
  font: 800 0.8rem var(--fonte);
  letter-spacing: 0.08em;
  color: var(--suave);
}
#m-n {
  justify-self: end;
  font-size: 1.5rem;
  color: var(--ouro);
  text-shadow: var(--contorno);
}
.m-trilho {
  grid-column: 1 / -1;
  height: 0.55rem;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
#m-barra {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffe58a, var(--ouro), #ff9a3c);
  transition: transform 0.12s linear;
}
#m-pop {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 0.2rem);
  font: 800 1.15rem var(--fonte);
  font-style: normal;
  color: var(--ouro);
  text-shadow: var(--contorno);
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
}
#m-pop.on {
  animation: mPop 0.9s var(--saida);
}
@keyframes mPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -0.4rem) scale(0.7);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, 0.2rem) scale(1.08);
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 0.5rem);
  }
}
.rot-turno {
  display: none;
}
#hud.turno .rot-turno {
  display: block;
  font-size: max(0.62rem, 9px) !important;
  position: absolute;
  left: 50%;
  bottom: -1.05rem;
  transform: translateX(-30%);
  padding: 0 0.45rem;
  border-radius: 99px;
  background: rgba(8, 18, 38, 0.9);
  color: var(--ouro);
  font: 800 0.62rem/1.35 var(--fonte);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
/* XP bar in five segments (a reward at each mark) */
#hud-xp .barra {
  position: relative;
}
#hud-xp .barra::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 calc(20% - 1.5px),
    rgba(8, 18, 38, 0.85) calc(20% - 1.5px) 20%
  );
  pointer-events: none;
}
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  #hud.turno #medidor {
    width: min(9.2rem, 36vw);
    height: 2.9rem;
    padding: 0.25rem 0.6rem 0.35rem;
    column-gap: 0.3rem;
  }
  .m-rot {
    font-size: 0.62rem;
  }
  #m-n {
    font-size: 1.15rem;
  }
  #hud.turno .rot-turno {
    font-size: 0.55rem;
    bottom: -0.95rem;
  }
}
#hud-xp {
  position: absolute;
}
.xp-pop {
  position: absolute;
  left: 50%;
  bottom: 100%;
  font: 800 1.1rem var(--fonte);
  font-style: normal;
  color: var(--ouro);
  text-shadow: var(--contorno);
  white-space: nowrap;
  pointer-events: none;
  animation: xpPop 1.25s var(--saida) forwards;
}
@keyframes xpPop {
  0% {
    opacity: 0;
    transform: translate(-50%, 0.4rem) scale(0.8);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -0.2rem) scale(1.05);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -0.9rem);
  }
}

/* ---------- defects from the first playtests ---------- */
.acao .equipado {
  padding: 0 1rem;
  white-space: nowrap;
  font-size: 1.15rem;
}
#ir-reliquias b {
  font-size: max(0.72rem, 10px);
  padding: 0.05rem 0.35rem;
  color: #3a2200;
  border: 0.08rem solid #8a5a12;
}
/* DIG! keeps one size on every hub tab (it shrank on the Shop) */
#hub #cavar {
  flex: none;
  width: 13rem;
  height: 4.2rem;
  font-size: 1.9rem;
}
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  #hub #cavar {
    width: 12.5rem;
    height: 4rem;
    font-size: 2.2rem;
  }
  #pilulas .ico-g {
    left: -1.55rem; /* the ore icon sits left of its number (shift, results and hub) */
  }
  body[data-fase='hub'] #opcoes {
    width: 2.6rem;
    height: 2.6rem;
  }
}
/* what the ores are for (hub): a line under the ore chips that opens the Forge; the chips answer a tap */
#ir-forja {
  display: none;
}
#hud.menu #pilulas .placa,
#hud.menu #ir-forja {
  pointer-events: auto; /* the HUD layer lets clicks through; these two answer them */
}
#hud.menu #pilulas .placa {
  cursor: help;
}
@media (min-aspect-ratio: 4/5) and (min-width: 621px) {
  #hud.menu #ir-forja {
    display: block;
    position: absolute;
    left: calc(max(1rem, env(safe-area-inset-left)) + 0.6rem);
    top: calc(var(--m) + 4.5rem + var(--pilulas-h, 0px));
    width: 8.6rem;
    padding: 0.3rem 0.5rem;
    border: 0.12rem solid rgba(255, 210, 63, 0.6);
    border-radius: 0.6rem;
    background: rgba(8, 18, 38, 0.82) url(arte/abas/forge.webp) 0.4rem 50% / 1.4rem auto no-repeat;
    padding-left: 2.1rem;
    color: #ffe9a8;
    font: 800 0.72rem/1.2 var(--fonte);
    text-align: left;
    cursor: pointer;
  }
}
/* the panel's rows stay inside its frame (the level text ran into the right border slice) */
#ficha > * {
  min-width: 0;
}
#ficha {
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

/* ---------- phone shift HUD in fixed zones (top: coins, combo, clock; ores; one goal; field; sign band; base) ---------- */
#tempo {
  font-variant-numeric: tabular-nums;
}
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  #hud.turno .meta.perto ~ .meta.perto {
    display: none; /* one row, always: two goals finishing together no longer grow the plaque */
  }
  #hud.turno #medidor {
    left: 54%;
    width: min(8.2rem, 32vw);
  }
  #hud.turno .rot-turno {
    left: 1.7rem;
    transform: none; /* inside the coin plate's width, clear of the combo frame */
  }
  #hud.turno #hud-xp .rotulo {
    display: none; /* the bar takes the room */
  }
  #hud.turno #xp-txt {
    display: block;
    flex: none;
    margin-left: 0.4rem;
    font-size: 0.8rem;
    color: #fff;
  }
  #hud.turno #hud-xp .trilho {
    padding-left: 0.9rem;
  }
  #hud.turno #hud-tempo b {
    min-width: 3.4ch;
    text-align: center;
  }
  body[data-fase='hud'] #toast {
    font-size: 1.55rem;
  }
}
/* a scroll bar never covers content. Every scroller keeps its own gutter on the right (reserved even
   without a bar, so the numbers never jump) plus a little padding for overlay bars; the results rows tighten before
   they ever scroll */
#resultado .linhas,
.hub-corpo.outra,
#pausa .painel {
  scrollbar-gutter: stable;
}
#resultado .linhas {
  padding-right: 0.45rem;
}
#resultado .linhas.denso {
  gap: 0.1rem;
  padding-top: 0.3rem;
}
#resultado .linhas.denso > div {
  padding-bottom: 0.08rem;
}
#resultado .linhas.denso b {
  font-size: 1.15rem;
}
/* key seals on the buttons (desktop with a mouse only) and the key list in the options */
.teclas {
  display: none;
}
@media (pointer: fine) and (min-aspect-ratio: 4/5) and (min-width: 621px) {
  [data-tecla]::before {
    content: attr(data-tecla);
    display: block;
    position: absolute;
    right: -0.35rem;
    top: -0.45rem;
    min-width: 1.1rem;
    padding: 0.05rem 0.3rem;
    border-radius: 0.35rem;
    background: #10223f;
    border: 0.1rem solid rgba(255, 210, 63, 0.75);
    box-shadow: 0 0.12rem 0 rgba(0, 0, 0, 0.45);
    color: #ffe9a8;
    font: 800 0.58rem/1.3 var(--fonte);
    letter-spacing: 0.02em;
    text-align: center;
    text-shadow: none;
    pointer-events: none;
    white-space: nowrap;
  }
  .teclas {
    display: block;
    margin: 0.2rem 0 0;
    max-width: 22rem;
    font: 700 0.75rem/1.45 var(--fonte);
    color: var(--suave);
    text-align: center;
  }
  .teclas b {
    color: var(--ouro);
    margin-right: 0.3rem;
  }
}
#fim.arma {
  filter: brightness(1.12) drop-shadow(0 0 0.5rem rgba(255, 210, 63, 0.8));
}
/* over the HUD the normal cursor comes back and the ring stays where it was (the HUD takes the pointer) */
#hud.turno > *:not(#metas) {
  pointer-events: auto;
}
#hud.turno #metas {
  pointer-events: auto;
}

#res-de-novo,
#res-upgrades,
#f-comprar,
#comecar {
  position: relative;
}
/* the first break of a new save lights its ore counter */
#pilulas .placa.brilha {
  animation: pilBrilha 0.6s ease-in-out 3;
}
@keyframes pilBrilha {
  50% {
    filter: brightness(1.35) drop-shadow(0 0 0.55rem rgba(255, 220, 90, 0.95));
    transform: scale(1.08);
  }
}
#mao.arrasta span {
  font-size: 1.05rem;
}
/* Bedrock on upright screens stacks (whole cube on top, the panel full width under it, title on one line) */
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  .bedrock {
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
  }
  .bedrock .cubo {
    width: min(9.5rem, 30vh);
    max-width: 50vw;
  }
  .bedrock .painel {
    flex: none;
    width: min(26rem, 100%);
    box-sizing: border-box;
  }
  .bedrock .painel h2 {
    white-space: nowrap;
    font-size: 1.25rem;
    text-align: center;
  }
  .bedrock .linha {
    font-size: 0.8rem;
  }
  .bedrock .acoes {
    flex-direction: row;
  }
  .bedrock .acoes .botao {
    flex: 1;
    min-width: 0;
  }
}
/* phones show the same painted mine as the desktop hub (lighter veil: it read as plain sky), and the tab
   content sits right under the counters instead of floating in the middle */
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  #hub::before {
    background:
      linear-gradient(rgba(6, 16, 34, 0.5), rgba(6, 16, 34, 0.35) 40%, rgba(6, 16, 34, 0.62)),
      url(arte/ui/hub-fundo.webp) 50% 50% / cover no-repeat;
    filter: blur(1.5px) saturate(0.95);
  }
  .hub-corpo.outra {
    justify-content: flex-start;
  }
}
/* the XP-mark coins fly from the bar into the coin counter */
.xp-voa {
  position: fixed;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font: 800 1.35rem var(--fonte);
  font-style: normal;
  color: var(--ouro);
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.xp-voa .ico {
  width: 1.3rem;
  height: 1.3rem;
}
@media (pointer: fine) and (min-aspect-ratio: 4/5) and (min-width: 621px) {
  [data-tecla]::before {
    top: -1.05rem;
    right: 0.5rem; /* above the frame: never on the label */
  }
}
@media (pointer: fine) and (min-aspect-ratio: 4/5) and (min-width: 621px) {
  #pausar[data-tecla]::before {
    top: auto;
    bottom: -1rem;
    right: 50%;
    transform: translateX(50%);
  }
}
/* the phone panel keeps the plain-words effect and a real level bar (it showed a lone dash) */
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  #f-desc {
    display: block;
    font-size: 0.82rem;
    line-height: 1.25;
    min-height: 1.25em;
  }
  .f-nivel {
    min-width: 8.5rem;
  }
  .f-nivel .barra {
    min-width: 3.5rem;
  }
  #ficha .f-prog {
    margin-bottom: 0.25rem;
  }
}
/* phones lying down — DIG! moves to the free bottom-left corner (under the ore pills) instead of sitting on
   the Upgrades panel / the Lands buttons */
@media (max-height: 520px) and (min-aspect-ratio: 4/5) {
  #hub #cavar {
    position: absolute;
    left: max(0.6rem, env(safe-area-inset-left));
    bottom: max(0.6rem, env(safe-area-inset-bottom));
    width: 10rem;
    height: 3.2rem;
    font-size: 1.5rem;
    border-width: 0.7rem 1.1rem;
    border-image-width: 0.7rem 1.1rem;
    z-index: 2;
  }
}
.falta-pecas {
  display: block;
  margin-top: 0.2rem;
  font: 800 0.72rem/1.2 var(--fonte);
  color: #ffb4a0;
  text-align: center;
  white-space: nowrap;
}
/* upright tablets use the phone layout at a size made for them (it was a phone layout lost in the middle) */
@media (max-aspect-ratio: 4/5) and (min-width: 700px) {
  html {
    font-size: clamp(20px, min(3.3vw, 2.3vh), 30px);
  }
}
/* the Upgrades screen reads as a tree and a purchase lands with weight */
.ligas line {
  stroke: rgba(150, 180, 210, 0.4);
}
.no.curto .ic {
  opacity: 0.6;
  filter: saturate(0.55);
}
.no.curto .nm {
  opacity: 0.8;
}
.no.comprou .hx {
  animation: flashNo 0.42s ease-out;
}
@keyframes flashNo {
  0% {
    filter: brightness(2.1) drop-shadow(0 0 0.9rem #fff);
  }
  100% {
    filter: brightness(1) drop-shadow(0 0 0 transparent);
  }
}
.moeda-voa {
  width: 2rem;
  height: 2rem;
}
#f-desc {
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff3c4;
  min-height: 1.35em;
}
#f-efeito b {
  font-size: 1.1rem;
}
#ficha[data-estado='max'] #f-comprar {
  opacity: 1;
  color: #3a2200;
  background: linear-gradient(#fff2b0, #ffd23f 55%, #d89a1a);
  border-color: transparent;
  border-image: none;
  border-radius: 0.8rem;
  box-shadow: 0 0 0.8rem rgba(255, 210, 63, 0.6);
  filter: none;
}
#ficha[data-estado='max'] #f-efeito {
  box-shadow: inset 0 0 0 0.12rem rgba(255, 210, 63, 0.7);
}
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  #f-desc {
    font-size: 0.85rem;
  }
  #f-abre {
    display: none;
  }
}

/* ---------- iPhone with both browser bars ---------- */
/* tip balloons: plain white, rounded, soft shadow, dark-blue text, a simple tail (no cream lip) */
#balao {
  background: #fff;
  color: #14264a;
  box-shadow: 0 0.5rem 1.4rem rgba(0, 0, 0, 0.35);
}
#balao::after {
  background: #fff;
  box-shadow: none;
}
#balao .pular {
  background: rgba(20, 38, 74, 0.08);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
}
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  #balao {
    font-size: 0.82rem;
    padding: 0.45rem 0.6rem 0.45rem 0.75rem;
    max-width: min(20rem, calc(100vw - 16px));
  }
  #balao span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* in the shift: a one-line strip in the sign band under the field, no tail */
  #balao.tira {
    max-width: calc(100vw - 24px);
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    font-size: 0.78rem;
    pointer-events: none;
  }
  #balao.tira span {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  #balao.tira::after {
    display: none;
  }
  /* shift top row: coins | combo | clock never touch on 360-430 px */
  #hud.turno #medidor {
    width: min(7.2rem, 27vw);
    left: 53%;
  }
  #hud.turno #hud-moedas {
    min-width: 5.6rem;
  }
  #hud.turno #hud-tempo b {
    font-size: 1.3rem;
  }
  #hud.turno #pilulas .ico-g {
    left: -1.9rem; /* the number clear of its ore icon (the pill keeps its room for the digits) */
  }
  #hud.turno .meta .mt {
    min-height: 2.3em; /* two lines reserved: the plaque never changes height */
    display: flex;
    align-items: center;
  }
  #hud.turno #hud-xp .barra {
    min-width: 2.5rem;
    flex: 1 1 auto;
  }
  #hud.turno #xp-txt {
    min-width: 0;
    font-size: 0.72rem;
  }
  #hud.turno #hud-xp .trilho {
    padding-right: 1rem;
  }
  /* tab bar: only the active tab keeps its label (8 labels never fit 360-430 px); the lock seal sits under the icon
     where the label was and the news dot beside it, never over it; the bar respects the home indicator */
  .aba:not(.ativa) > span {
    display: none !important; /* fit() may have set an inline display */
  }
  .aba {
    height: 3.6rem;
    justify-content: center;
  }
  .aba.ativa {
    flex: 0 0 auto;
    min-width: 5.7rem;
    padding: 0 0.3rem;
  }
  .aba.ativa > span {
    /* one fixed small size that fits every language in the active tab (fit() narrowing left the label clipped) */
    display: block !important;
    width: auto !important;
    transform: none !important;
    font-size: max(9.5px, 0.56rem) !important;
    overflow: visible;
    white-space: nowrap;
  }
  .aba[data-trava]:not([data-trava=''])::after {
    top: auto;
    bottom: 0.05rem;
    font-size: 0.5rem;
    padding: 0 0.3rem 0 0.85rem;
    background-size: 0.55rem auto;
    background-position: 0.2rem 50%;
  }
  .aba.novidade::after {
    top: 0.1rem;
    right: 0.05rem;
    width: 0.6rem;
    height: 0.6rem;
  }
  /* results: the ore pills hide behind the card; no value cut on the right */
  #hud.resumo #pilulas {
    display: none;
  }
  #resultado .linhas > div {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
  }
  #resultado .linhas b {
    white-space: nowrap;
  }
}
/* short upright screens (iPhone with the browser bars, ~600-760 px tall): the card gives its height to the rows */
@media (max-aspect-ratio: 4/5) and (max-height: 720px) {
  #resultado .faixa {
    transform: translateX(-50%) scale(0.82);
    transform-origin: 50% 100%;
  }
  #res-minerios {
    margin-top: 0.2rem !important;
  }
  #res-minerios th {
    padding: 0.15rem;
    font-size: 0.75rem;
  }
  #res-minerios td img {
    width: 1.4rem;
    height: 1.4rem;
  }
  #subiu.vaga.on {
    transform: scale(0.85);
    margin: -0.3rem 0;
  }
  #resultado .linhas {
    min-height: 6.2rem;
    margin: 0.4rem 0 0.6rem;
  }
}
/* the visible height on iOS (both browser bars): dynamic viewport units */
html,
body,
#app {
  height: 100dvh;
}
@media (max-aspect-ratio: 4/5) and (max-height: 760px) {
  /* short phones: the honeycomb gets the room (progress row hidden, smaller DIG!) */
  #ficha .f-prog {
    display: none;
  }
  #hub #cavar {
    height: 3.3rem;
    font-size: 1.8rem;
  }
}
/* results: the two columns of many rows never grow wider than the card (ru labels pushed the numbers under the bar) */
.linhas.muitas {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.linhas > div {
  grid-template-columns: 2.3rem minmax(0, 1fr) auto;
}
/* End of estilo-3.css: complete file, part 3 of 6 of the styles. It continues in estilo-4.css, loaded right after it by index.html. */
