/* Crater Crush styles, part 4 of 6 (see estilo.css). Linked in this order by index.html. */
#resultado .linhas {
  overflow-x: hidden;
}
.linhas .rn {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere; /* a long relic name wraps inside its column */
}
@media (max-aspect-ratio: 4/5), (max-width: 620px) {
  /* the XP bar gets the room END SHIFT did not need */
  #hud.turno #fim {
    width: 7.4rem;
  }
  #hud.turno #pausar {
    right: calc(max(0.6rem, env(safe-area-inset-right)) + 7.8rem);
  }
  #hud.turno #hud-xp {
    right: calc(max(0.6rem, env(safe-area-inset-right)) + 11.1rem);
  }
}

/* ==================== PHONE layout (body.cel = portrait <= 480 px wide; body.cel-deitado = landscape <= 480 px tall) ====================
   Its own layout, not the desktop one shrunk. Pixels on purpose: the budget is 390x660. */
body.cel {
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
}
#slot-msg {
  display: none;
}
/* desktop: the same one message slot (Opal's lines and the tips of the shift) has a fixed place, bottom left
   above the XP bar, outside the field (never a balloon over the pebbles) */
body:not(.cel):not(.cel-deitado)[data-fase='hud'] #slot-msg {
  position: fixed;
  left: 24px;
  bottom: 6.6rem;
  z-index: 7;
  display: block;
  max-width: min(440px, 32vw);
  pointer-events: none;
}
body:not(.cel):not(.cel-deitado)[data-fase='hud'] #slot-msg > span {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 16px;
  background: #fff;
  color: #1d2c4a;
  font: 600 17px/22px var(--fonte);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  overflow-wrap: normal;
  word-break: keep-all;
  animation: entra 0.25s var(--saida);
}
/* ---- shift: a 48 px bar (coins, combo, clock, pause), a 4 px XP line, the message slot, the whole field, a passive footer ---- */
body.cel #hud.turno #hud-moedas {
  left: 34px;
  top: calc(var(--st) + 6px);
  height: 36px;
  min-width: 0;
  width: 98px;
  padding-left: 14px;
  border-width: 9px 16px;
  border-image-width: 9px 16px;
  justify-content: center;
}
body.cel #hud.turno #hud-moedas .ico-g {
  left: -30px;
  width: 42px;
  height: 42px;
}
body.cel #hud.turno #hud-moedas b {
  font-size: 22px;
}
body.cel #hud.turno .rot-turno,
body.cel #hud.turno #fim,
body.cel #hud.turno #reforcos,
body.cel #hud.turno #metas h4,
body.cel #hud.turno #hud-xp .rotulo,
body.cel #hud.turno #xp-txt {
  display: none !important;
}
body.cel #hud.turno #medidor {
  left: 138px;
  top: calc(var(--st) + 6px);
  width: 82px;
  height: 36px;
  padding: 3px 8px 5px;
  column-gap: 4px;
  border-radius: 10px;
  transform: none;
}
body.cel #hud.turno .m-rot {
  font-size: 12px;
  letter-spacing: 0.02em;
}
body.cel #hud.turno #m-n {
  font-size: 17px;
}
body.cel #hud.turno .m-trilho {
  height: 7px;
}
body.cel #hud.turno #hud-dir {
  display: flex;
  position: absolute;
  right: 8px;
  top: calc(var(--st) + 2px);
  gap: 8px;
}
body.cel #hud.turno #hud-tempo {
  position: relative;
  right: auto;
  top: auto;
  height: 36px;
  min-width: 0;
  width: 82px;
  padding-left: 14px;
  border-width: 9px 14px;
  border-image-width: 9px 14px;
}
body.cel #hud.turno #hud-tempo .ico-g {
  left: -24px;
  width: 38px;
  height: 38px;
}
body.cel #hud.turno #hud-tempo b {
  font-size: 20px;
  min-width: 3.4ch;
}
body.cel #hud.turno #pausar {
  position: static;
  order: 2;
  width: 44px;
  height: 44px;
}
/* XP: a 4 px line under the bar, the level in a small hexagon at its left */
body.cel #hud.turno #hud-xp {
  left: 8px;
  right: 8px;
  bottom: auto;
  top: calc(var(--st) + 44px);
  height: 18px;
}
body.cel #hud.turno #hud-xp .escudo {
  width: 18px;
  height: 20px;
}
body.cel #hud.turno #hud-xp .escudo b {
  font-size: 12px;
}
body.cel #hud.turno #hud-xp .trilho {
  flex: 1;
  height: 4px;
  margin: 0 0 0 4px;
  padding: 0;
  border: 0;
  border-image: none;
  filter: none;
}
body.cel #hud.turno #hud-xp .barra {
  width: 100%;
  height: 4px;
  box-shadow: none;
  background: rgba(0, 0, 0, 0.5);
}
body.cel #hud.turno #hud-xp .barra::after {
  display: none;
}
/* the message slot (32 px): the goal pill at rest; a tip or a sign takes its place for 2.5 s */
body.cel[data-fase='hud'] #slot-msg,
body.cel #hud.turno #metas {
  position: fixed;
  left: 8px;
  right: 8px;
  top: calc(var(--st) + 63px);
  min-height: 27px;
  width: auto;
  transform: none;
}
body.cel #hud.turno #metas {
  height: 27px;
  overflow: hidden;
  padding: 1px 10px 2px;
  border-radius: 16px;
}
body.cel #hud.turno .meta {
  font-size: 13px;
  grid-template-columns: 20px 1fr auto auto;
  grid-template-areas: 'i t p r';
  column-gap: 6px;
  min-height: 24px;
}
body.cel #hud.turno .meta img {
  width: 20px;
  height: 20px;
}
body.cel #hud.turno .meta .mt {
  white-space: nowrap;
  overflow: hidden;
}
body.cel #hud.turno .meta .mp,
body.cel #hud.turno .meta .mr {
  font-size: 13px;
}
body.cel #hud.turno .meta .mb {
  position: absolute;
  left: 26px;
  right: 0;
  bottom: -2px;
  height: 3px;
}
body.cel[data-fase='hud'] #slot-msg {
  z-index: 7;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
body.cel[data-fase='hud'] #slot-msg > span {
  max-width: 300px;
  padding: 4px 14px;
  border-radius: 14px;
  background: #fff;
  color: #1d2c4a;
  font: 700 14px/18px var(--fonte);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: entra 0.25s var(--saida);
}
body.cel[data-fase='hud'] #slot-msg small {
  font-size: 13px;
  color: #42567a;
}
body.cel.msg-on #hud.turno #metas {
  visibility: hidden;
}
body.cel[data-fase='hud'] #toast {
  display: none;
}
/* passive footer (40 px): the ores of this shift; no buttons, the drag passes through it */
body.cel #hud.turno #pilulas {
  position: fixed;
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;
  height: calc(40px + var(--sb));
  padding: 0 8px var(--sb) 8px;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
  background: linear-gradient(rgba(8, 18, 38, 0), rgba(8, 18, 38, 0.75) 40%);
  pointer-events: none;
}
body.cel #hud.turno #pilulas .placa {
  height: 28px;
  min-width: 52px;
  padding-left: 8px;
  border-width: 7px 11px;
  border-image-width: 7px 11px;
  pointer-events: none;
}
body.cel #hud.turno #pilulas .ico-g {
  left: -22px;
  width: 30px;
  height: 30px;
}
body.cel #hud.turno #pilulas b {
  font-size: 15px;
}
/* ---- landscape phones: the HUD in a narrow column on the left, the whole field on the rest ---- */
body.cel-deitado {
  --sl: env(safe-area-inset-left, 0px);
}
body.cel-deitado #hud.turno #hud-moedas {
  left: calc(var(--sl) + 38px);
  top: 8px;
  height: 36px;
  min-width: 0;
  width: 138px;
  padding-left: 14px;
  border-width: 9px 16px;
  border-image-width: 9px 16px;
  justify-content: center;
}
body.cel-deitado #hud.turno #hud-moedas .ico-g {
  left: -30px;
  width: 42px;
  height: 42px;
}
body.cel-deitado #hud.turno #hud-moedas b {
  font-size: 22px;
}
body.cel-deitado #hud.turno .rot-turno,
body.cel-deitado #hud.turno #fim,
body.cel-deitado #hud.turno #reforcos,
body.cel-deitado #hud.turno #metas h4,
body.cel-deitado #hud.turno #hud-xp .rotulo,
body.cel-deitado #hud.turno #xp-txt,
body.cel-deitado[data-fase='hud'] #toast {
  display: none !important;
}
body.cel-deitado #hud.turno #hud-dir {
  display: flex;
  position: absolute;
  left: calc(var(--sl) + 8px);
  right: auto;
  top: 50px;
  width: 172px;
  gap: 8px;
  justify-content: space-between;
}
body.cel-deitado #hud.turno #hud-tempo {
  position: relative;
  right: auto;
  top: auto;
  margin-left: 26px;
  height: 36px;
  min-width: 0;
  width: 92px;
  padding-left: 14px;
  border-width: 9px 14px;
  border-image-width: 9px 14px;
}
body.cel-deitado #hud.turno #hud-tempo .ico-g {
  left: -26px;
  width: 38px;
  height: 38px;
}
body.cel-deitado #hud.turno #hud-tempo b {
  font-size: 20px;
  min-width: 3.4ch;
}
body.cel-deitado #hud.turno #pausar {
  position: static;
  order: 2;
  width: 44px;
  height: 44px;
}
body.cel-deitado #hud.turno #medidor {
  left: calc(var(--sl) + 8px);
  top: 102px;
  width: 172px;
  height: 36px;
  padding: 3px 10px 5px;
  border-radius: 10px;
  transform: none;
}
body.cel-deitado #hud.turno .m-rot {
  font-size: 12px;
}
body.cel-deitado #hud.turno #m-n {
  font-size: 17px;
}
body.cel-deitado #hud.turno #hud-xp {
  left: calc(var(--sl) + 8px);
  width: 172px;
  bottom: auto;
  top: 144px;
  height: 22px;
}
body.cel-deitado #hud.turno #hud-xp .escudo {
  width: 20px;
  height: 22px;
}
body.cel-deitado #hud.turno #hud-xp .escudo b {
  font-size: 12px;
}
body.cel-deitado #hud.turno #hud-xp .trilho {
  flex: 1;
  height: 4px;
  margin: 0 0 0 4px;
  padding: 0;
  border: 0;
  border-image: none;
  filter: none;
}
body.cel-deitado #hud.turno #hud-xp .barra {
  width: 100%;
  height: 4px;
  box-shadow: none;
}
body.cel-deitado #hud.turno #hud-xp .barra::after {
  display: none;
}
body.cel-deitado[data-fase='hud'] #slot-msg,
body.cel-deitado #hud.turno #metas {
  position: fixed;
  left: calc(var(--sl) + 8px);
  right: auto;
  top: 174px;
  width: 172px;
  min-height: 44px;
  transform: none;
}
body.cel-deitado #hud.turno #metas {
  padding: 4px 8px 6px;
  border-radius: 12px;
}
body.cel-deitado #hud.turno .meta {
  font-size: 12px;
  grid-template-columns: 18px 1fr auto;
  /* the goal gets the whole width (Spanish/Russian goals fell to a word per line beside 32.468/54.000) */
  grid-template-areas: 'i t t' 'i b b' 'i p r';
  column-gap: 5px;
}
body.cel-deitado #hud.turno .meta img {
  width: 18px;
  height: 18px;
}
body.cel-deitado #hud.turno .meta .mp,
body.cel-deitado #hud.turno .meta .mr {
  font-size: 12px;
}
body.cel-deitado[data-fase='hud'] #slot-msg {
  z-index: 7;
  display: flex;
  pointer-events: none;
}
body.cel-deitado[data-fase='hud'] #slot-msg > span {
  width: 100%;
  padding: 6px 10px;
  border-radius: 12px;
  background: #fff;
  color: #1d2c4a;
  font: 700 13px/17px var(--fonte);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: entra 0.25s var(--saida);
}
body.cel-deitado[data-fase='hud'] #slot-msg small {
  font-size: 12px;
  color: #42567a;
}
body.cel-deitado.msg-on #hud.turno #metas {
  visibility: hidden;
}
body.cel-deitado #hud.turno #pilulas {
  left: calc(var(--sl) + 8px);
  top: auto;
  bottom: 10px;
  width: 172px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 6px;
  padding-left: 22px;
  pointer-events: none;
}
body.cel-deitado #hud.turno #pilulas .placa {
  height: 28px;
  min-width: 0;
  padding-left: 8px;
  border-width: 7px 11px;
  border-image-width: 7px 11px;
}
body.cel-deitado #hud.turno #pilulas .ico-g {
  left: -22px;
  width: 30px;
  height: 30px;
}
body.cel-deitado #hud.turno #pilulas b {
  font-size: 15px;
}
body.cel-deitado #hud.turno .meta:not(.perto),
body.cel-deitado #hud.turno .meta.perto ~ .meta.perto {
  display: none;
}
/* ---- phones: hub = 44 px header, (segmented control 44), content, 64 px bar with 5 places and DIG! rising in the middle ---- */
#segs,
#nav-cel {
  display: none;
}
body.cel #hub {
  position: fixed;
  inset: 0;
  padding: 0 !important;
  display: block;
}
body.cel #hub .abas {
  display: none;
}
body.cel #nav-cel {
  position: fixed;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(64px + var(--sb));
  padding: 0 4px var(--sb);
  display: flex;
  align-items: stretch;
  background: linear-gradient(#1a3460, #0c1d3a);
  box-shadow:
    0 -2px 0 rgba(255, 210, 63, 0.45),
    0 -6px 14px rgba(0, 0, 0, 0.35);
}
.nav-b {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  background: none;
  padding: 0;
  color: #b9c8e4;
  font: 800 12px/1.1 var(--fonte);
  cursor: pointer;
}
.nav-b img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: saturate(0.6) brightness(0.85);
}
.nav-b span {
  white-space: nowrap;
}
.nav-b.ativa {
  color: var(--ouro);
}
.nav-b.ativa img {
  filter: drop-shadow(0 0 6px rgba(255, 210, 63, 0.6));
}
.nav-b.ativa::before {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--ouro);
}
/* the news seal climbs from the segment to the bar */
.nav-b.pode::after,
.nav-b[data-n]:not([data-n=''])::after {
  content: attr(data-n);
  position: absolute;
  top: 5px;
  left: calc(50% + 8px);
  min-width: 12px;
  height: 12px;
  padding: 0 3px;
  border-radius: 99px;
  background: #ff5a3c;
  box-shadow: 0 0 0 2px #0c1d3a;
  color: #fff;
  font: 800 11px/12px var(--fonte);
  text-align: center;
}
.nav-b[data-n]:not([data-n=''])::after {
  min-width: 18px;
  height: 18px;
  top: 2px;
  font-size: 12px;
  line-height: 18px;
  background: #1fbf6a;
}
.nav-vao {
  flex: 0 0 100px;
}
body.cel #hub #cavar {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: calc(var(--sb) + 10px);
  transform: translateX(-50%);
  width: 84px;
  height: 70px;
  font-size: 20px;
  margin: 0;
}
body.cel #segs:not([hidden]) {
  position: absolute;
  z-index: 2;
  top: calc(var(--st) + 50px);
  left: 8px;
  right: 8px;
  height: 52px;
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(8, 18, 38, 0.8);
  box-shadow: inset 0 0 0 2px rgba(255, 210, 63, 0.35);
}
.seg {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: #b9c8e4;
  font: 800 13px/1 var(--fonte);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}
.seg small {
  margin-left: 4px;
  font-size: 12px;
  color: #8fa0c0;
}
.seg.ativa {
  background: linear-gradient(#ffe27a, #f2b52a);
  color: #3a2200;
}
.seg.dim:not(.ativa) {
  opacity: 0.7;
}
.seg.pode::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5a3c;
}
/* header: coins left, gear right (44 px); ore chips only on the Forge */
body.cel #hud.menu #hud-moedas {
  left: 38px;
  top: calc(var(--st) + 6px);
  height: 36px;
  min-width: 0;
  width: 120px;
  padding-left: 14px;
  border-width: 9px 16px;
  border-image-width: 9px 16px;
  justify-content: center;
}
body.cel #hud.menu #hud-moedas .ico-g {
  left: -30px;
  width: 42px;
  height: 42px;
}
body.cel #hud.menu #hud-moedas b {
  font-size: 22px;
}
body.cel[data-fase='hub'] #opcoes {
  top: calc(var(--st) + 2px);
  right: 8px;
  width: 44px;
  height: 44px;
}
body.cel #hud.menu #metas,
body.cel #hud.menu #hud-xp,
body.cel #hud.menu #ir-forja,
body.cel:not([data-aba='forge']) #hud.menu #pilulas {
  display: none;
}
body.cel #hub #cavar {
  padding: 0;
}
body.cel #hub-up {
  position: absolute;
  top: calc(var(--st) + 48px);
  bottom: calc(80px + var(--sb) + 4px);
  left: 0;
  right: 0;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
body.cel #favo {
  flex: 1 1 auto;
  height: auto;
  margin: 0 2px;
}
body.cel #favo .no .nm {
  display: none;
}
body.cel #favo .no .ic {
  width: 46%;
  height: auto;
}
body.cel #favo .no .cu {
  font-size: 12px;
}
body.cel #hub > .f-prog {
  position: absolute;
  z-index: 4;
  top: calc(var(--st) + 8px);
  left: 172px;
  right: 62px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
body.cel #hub > .f-prog #f-ramos {
  gap: 3px;
}
body.cel #hub > .f-prog #f-ramos .rm b {
  display: none;
}
body.cel #hub > .f-prog #f-ramos .rm > i {
  height: 5px;
}
body.cel[data-aba]:not([data-aba='upgrades']) #hub > .f-prog {
  display: none;
}
/* the detail panel: fixed 140 px (icon, name, level, effect now -> next, x1/x10/MAX, BUY >= 52 px) */
body.cel #ficha {
  flex: none;
  width: auto;
  height: 140px;
  margin: 0 8px;
  border-width: 10px;
  border-image-width: 10px;
  padding: 2px 6px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 34px 26px 52px;
  grid-template-areas: 'topo nivel' 'efeito efeito' 'compra compra';
  gap: 4px 8px;
  align-items: center;
}
body.cel #ficha .ficha-topo {
  grid-area: topo;
  gap: 8px;
  min-width: 0;
}
body.cel #ficha .ficha-topo img {
  width: 34px;
  height: 34px;
}
body.cel #ficha .ficha-topo > div {
  min-width: 0;
}
body.cel #f-ramo,
body.cel #f-desc,
body.cel #f-abre,
body.cel #ficha .f-nivel .barra {
  display: none !important;
}
body.cel #f-nome {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
}
body.cel #ficha .f-nivel {
  grid-area: nivel;
  font-size: 14px;
}
body.cel #f-efeito {
  grid-area: efeito;
  margin: 0;
  height: 26px;
  padding: 0 10px;
  font-size: 14px;
}
body.cel #f-efeito b {
  font-size: 16px;
}
body.cel #ficha .f-compra {
  grid-area: compra;
  gap: 6px;
  margin: 0;
}
body.cel #f-modos button {
  min-width: 44px;
  height: 44px;
  font-size: 14px;
}
body.cel #f-comprar {
  height: 52px;
  min-width: 96px;
  font-size: 18px;
}
body.cel #hub-outra {
  position: absolute;
  top: calc(var(--st) + 50px);
  bottom: calc(80px + var(--sb) + 4px);
  left: 0;
  right: 0;
  width: auto;
  justify-content: flex-start;
  padding: 0 8px;
}
body.cel #segs:not([hidden]) ~ #hub-outra {
  top: calc(var(--st) + 100px);
}
/* ---- results: one card, no scrolling at 390x660 (ribbon, hero number, ores in one line, XP, up to 3 rows, call, 2 buttons) ---- */
#res-heroi,
#res-xp {
  display: none;
}
body.cel #resultado {
  display: block;
  padding: 0 !important;
}
body.cel #resultado .cartao {
  position: absolute;
  top: calc(var(--st) + 50px);
  bottom: calc(var(--sb) + 8px);
  left: 8px;
  right: 8px;
  width: auto;
  max-height: none;
  margin: 0;
  border-width: 14px;
  border-image-width: 14px;
  padding: 0 4px;
  gap: 8px;
}
body.cel #resultado .faixa {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: auto;
  aspect-ratio: auto;
  height: 40px;
  margin: 0 -4px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(#24386a, #16264a);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
  animation: none;
}
body.cel #resultado .faixa span {
  position: static;
  width: auto;
  max-width: 100%;
  transform: none;
  font-size: 24px;
}
body.cel #res-heroi {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: baseline;
  column-gap: 8px;
  text-align: center;
}
#res-heroi b {
  font-size: 40px;
  line-height: 1;
  color: var(--ouro);
}
#res-heroi span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  color: var(--creme);
}
#res-heroi span .ico {
  width: 20px;
  height: 20px;
}
#res-heroi small {
  grid-column: 1 / -1;
  font-size: 14px;
  color: #5a6a88;
}
body.cel #res-minerios {
  margin: 0;
  font-size: 16px;
}
body.cel #res-minerios thead {
  display: none;
}
body.cel #res-minerios td {
  padding: 4px;
  white-space: nowrap;
}
body.cel #res-minerios td b {
  font-size: 17px;
  margin-left: 2px;
}
body.cel #res-minerios img {
  width: 24px;
  height: 20px;
}
body.cel #res-xp:not(:empty) {
  display: flex;
  align-items: center;
  gap: 8px;
}
#res-xp .escudo {
  width: 30px;
  height: 33px;
  flex: none;
}
#res-xp .escudo b {
  font-size: 15px;
}
#res-xp .barra {
  flex: 1;
  width: auto;
  height: 10px;
}
#res-xp small {
  font-size: 14px;
  color: #1d8f88;
  white-space: nowrap;
}
body.cel #res-linhas [data-k] {
  display: none;
}
body.cel #resultado .linhas {
  margin: 0;
  padding-top: 6px;
  font-size: 16px;
  overflow: hidden;
}
body.cel #resultado .linhas b {
  font-size: 17px;
}
body.cel .pronto-up {
  font-size: 14px;
}
body.cel #resultado .cartao .acoes {
  margin: auto 0 0;
}
body.cel #resultado .acoes .botao {
  height: 64px;
  font-size: 18px;
}
body.cel #hud.resumo #pilulas,
body.cel #hud.resumo #hud-xp,
body.cel #hud.resumo #metas {
  display: none;
}
body.cel #hud.resumo #hud-moedas {
  left: 38px;
  top: calc(var(--st) + 6px);
  height: 36px;
  min-width: 0;
  width: 120px;
  padding-left: 14px;
  border-width: 9px 16px;
  border-image-width: 9px 16px;
  justify-content: center;
}
body.cel #hud.resumo #hud-moedas .ico-g {
  left: -30px;
  width: 42px;
  height: 42px;
}
body.cel #hud.resumo #hud-moedas b {
  font-size: 22px;
}
body.cel #subiu {
  margin: 0;
}
/* GO DEEPER (and any button) visibly off when it cannot be used (it looked lit with "+0 shards") */
.botao[disabled] {
  filter: grayscale(0.9) brightness(0.75);
  cursor: default;
}
/* ---- phones, other tabs: header 44, segments 44, content scrolls between them and the bar; no wooden title plaque ---- */
body.cel.com-segs #hub-outra {
  top: calc(var(--st) + 108px);
}
body.cel #hub-outra .tabua {
  display: none;
}
body.cel[data-aba='forge'] #hud.menu #pilulas {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--st) + 108px);
  height: 32px;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding-left: 20px;
}
body.cel[data-aba='forge'] #hud.menu #pilulas .placa {
  height: 28px;
  min-width: 50px;
  padding-left: 8px;
  border-width: 7px 11px;
  border-image-width: 7px 11px;
}
body.cel[data-aba='forge'] #hud.menu #pilulas .ico-g {
  left: -22px;
  width: 30px;
  height: 30px;
}
body.cel[data-aba='forge'] #hud.menu #pilulas b {
  font-size: 15px;
}
body.cel.com-segs[data-aba='forge'] #hub-outra {
  top: calc(var(--st) + 144px);
}
body.cel #hub-outra .quadro {
  margin-top: 6px;
  padding-top: 0;
  border-width: 12px;
  border-image-width: 12px;
}
body.cel #hub-outra .quadro .nota {
  font-size: 13px;
  margin-bottom: 8px;
}
/* ---- landscape phones, menus: 5 places in a vertical bar on the left, content in the middle, detail panel on the right ---- */
body.cel-deitado #hub {
  position: fixed;
  inset: 0;
  padding: 0 !important;
  display: block;
}
body.cel-deitado #hub .abas,
body.cel-deitado #hud.menu #metas,
body.cel-deitado #hud.menu #hud-xp,
body.cel-deitado #hud.menu #ir-forja,
body.cel-deitado:not([data-aba='forge']) #hud.menu #pilulas,
body.cel-deitado #ficha .f-prog {
  display: none;
}
body.cel-deitado #nav-cel {
  position: fixed;
  z-index: 4;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(88px + var(--sl));
  padding: 4px 0 4px var(--sl);
  display: flex;
  flex-direction: column;
  background: linear-gradient(90deg, #0c1d3a, #1a3460);
  box-shadow:
    2px 0 0 rgba(255, 210, 63, 0.45),
    6px 0 14px rgba(0, 0, 0, 0.35);
}
body.cel-deitado .nav-vao {
  flex: 0 0 100px;
}
body.cel-deitado .nav-b.ativa::before {
  left: auto;
  right: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  height: auto;
  border-radius: 3px 0 0 3px;
}
body.cel-deitado #hub #cavar {
  position: fixed;
  z-index: 5;
  left: calc(var(--sl) + 4px);
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: 92px;
  height: 64px;
  padding: 0;
  margin: 0;
  font-size: 20px;
}
body.cel-deitado #hud.menu #hud-moedas,
body.cel-deitado #hud.resumo #hud-moedas {
  left: auto;
  right: 64px;
  top: 6px;
  height: 36px;
  min-width: 0;
  width: 132px;
  padding-left: 14px;
  border-width: 9px 16px;
  border-image-width: 9px 16px;
  justify-content: center;
}
body.cel-deitado #hud.resumo #hud-moedas {
  right: auto;
  left: calc(var(--sl) + 38px);
}
body.cel-deitado #hud.menu #hud-moedas .ico-g,
body.cel-deitado #hud.resumo #hud-moedas .ico-g {
  left: -30px;
  width: 42px;
  height: 42px;
}
body.cel-deitado #hud.menu #hud-moedas b,
body.cel-deitado #hud.resumo #hud-moedas b {
  font-size: 22px;
}
body.cel-deitado[data-fase='hub'] #opcoes {
  top: 2px;
  right: 8px;
  width: 44px;
  height: 44px;
}
body.cel-deitado #segs:not([hidden]) {
  position: absolute;
  z-index: 2;
  top: 4px;
  left: calc(96px + var(--sl));
  right: 220px;
  height: 52px;
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(8, 18, 38, 0.8);
  box-shadow: inset 0 0 0 2px rgba(255, 210, 63, 0.35);
}
body.cel-deitado #hub-up {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(92px + var(--sl));
  right: 8px;
  width: auto;
  display: flex;
  align-items: stretch;
  gap: 8px;
}
body.cel-deitado #favo {
  flex: 1 1 auto;
  height: auto;
  margin: 4px 0;
}
body.cel-deitado #favo .no .nm {
  display: none;
}
body.cel-deitado #favo .no .ic {
  width: 46%;
  height: auto;
}
body.cel-deitado #favo .no .cu {
  font-size: 12px;
}
body.cel-deitado #ficha {
  flex: none;
  align-self: center;
  width: 280px;
  margin: 50px 0 8px;
  border-width: 10px;
  border-image-width: 10px;
  padding: 2px 6px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 34px 26px auto;
  grid-template-areas: 'topo nivel' 'efeito efeito' 'compra compra';
  gap: 6px 8px;
  align-items: center;
}
body.cel-deitado #ficha .ficha-topo {
  grid-area: topo;
  gap: 8px;
  min-width: 0;
}
body.cel-deitado #ficha .ficha-topo img {
  width: 34px;
  height: 34px;
}
body.cel-deitado #ficha .ficha-topo > div {
  min-width: 0;
}
body.cel-deitado #f-ramo,
body.cel-deitado #f-abre,
body.cel-deitado #ficha .f-nivel .barra {
  display: none !important;
}
body.cel-deitado #f-desc {
  display: none !important;
}
body.cel-deitado[data-fase='hub'] #logo {
  display: none;
}
body.cel-deitado #f-nome {
  margin: 0;
  font-size: 17px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
}
body.cel-deitado #ficha .f-nivel {
  grid-area: nivel;
  font-size: 13px;
}
body.cel-deitado #f-efeito {
  grid-area: efeito;
  margin: 0;
  height: 26px;
  padding: 0 8px;
  font-size: 13px;
}
body.cel-deitado #ficha .f-compra {
  grid-area: compra;
  gap: 4px;
  margin: 0;
}
body.cel-deitado #f-modos button {
  min-width: 44px;
  height: 44px;
  font-size: 13px;
}
body.cel-deitado #f-comprar {
  height: 52px;
  min-width: 84px;
  font-size: 17px;
}
body.cel-deitado #hub-outra {
  position: absolute;
  top: 60px;
  bottom: 4px;
  left: calc(96px + var(--sl));
  right: 8px;
  width: auto;
  justify-content: flex-start;
  padding: 0 4px;
}
body.cel-deitado:not(.com-segs) #hub-outra {
  top: 52px;
}
body.cel-deitado #hub-outra .tabua {
  display: none;
}
body.cel-deitado #hub-outra .quadro {
  margin-top: 0;
  padding-top: 0;
  border-width: 12px;
  border-image-width: 12px;
}
body.cel-deitado[data-aba='forge'] #hud.menu #pilulas {
  position: fixed;
  left: auto;
  right: 230px;
  top: 10px;
  width: auto;
  display: flex;
  flex-direction: row;
  gap: 32px;
  padding-left: 22px;
}
body.cel-deitado.com-segs[data-aba='forge'] #segs {
  right: 530px;
}
body.cel-deitado[data-aba='forge'] #hud.menu #pilulas .placa {
  height: 28px;
  min-width: 0;
  padding-left: 8px;
  border-width: 7px 11px;
  border-image-width: 7px 11px;
}
body.cel-deitado[data-aba='forge'] #hud.menu #pilulas .ico-g {
  left: -22px;
  width: 30px;
  height: 30px;
}
body.cel-deitado[data-aba='forge'] #hud.menu #pilulas b {
  font-size: 15px;
}
/* ---- landscape phones, results: one card in two columns (nothing lost) ---- */
body.cel-deitado #resultado {
  display: block;
  padding: 0 !important;
}
body.cel-deitado #hud.resumo #pilulas,
body.cel-deitado #hud.resumo #hud-xp,
body.cel-deitado #hud.resumo #metas {
  display: none;
}
body.cel-deitado #resultado .cartao {
  position: absolute;
  top: 48px;
  bottom: 6px;
  left: calc(var(--sl) + 8px);
  right: 8px;
  width: auto;
  max-height: none;
  margin: 0;
  border-width: 14px;
  border-image-width: 14px;
  padding: 0 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto 1fr;
  column-gap: 18px;
  row-gap: 6px;
  align-content: stretch;
}
body.cel-deitado #resultado .cartao > .faixa,
body.cel-deitado #res-heroi,
body.cel-deitado #res-minerios,
body.cel-deitado #res-xp,
body.cel-deitado #subiu {
  grid-column: 1;
}
body.cel-deitado #resultado .cartao > .linhas {
  grid-column: 2;
  grid-row: 1 / 4;
}
body.cel-deitado #resultado .cartao > .acoes {
  grid-column: 2;
  grid-row: 4;
  align-self: end;
  margin: 0;
}
body.cel-deitado #resultado .faixa {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: auto;
  aspect-ratio: auto;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(#24386a, #16264a);
  animation: none;
}
body.cel-deitado #resultado .faixa span {
  position: static;
  width: auto;
  max-width: 100%;
  transform: none;
  font-size: 22px;
}
body.cel-deitado #res-heroi {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: baseline;
  column-gap: 8px;
  text-align: center;
}
body.cel-deitado #res-heroi b {
  font-size: 34px;
}
body.cel-deitado #res-minerios {
  margin: 0;
  font-size: 15px;
}
body.cel-deitado #res-minerios thead {
  display: none;
}
body.cel-deitado #res-minerios td {
  padding: 3px;
  white-space: nowrap;
}
body.cel-deitado #res-minerios td b {
  font-size: 16px;
}
body.cel-deitado #res-minerios img {
  width: 22px;
  height: 18px;
}
body.cel-deitado #res-xp:not(:empty) {
  align-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.cel-deitado #res-linhas [data-k] {
  display: none;
}
body.cel-deitado #resultado .linhas {
  margin: 0;
  padding-top: 4px;
  font-size: 15px;
  overflow: hidden;
  border-top: 0;
}
body.cel-deitado #resultado .linhas b {
  font-size: 16px;
}
body.cel-deitado .pronto-up {
  font-size: 13px;
}
body.cel-deitado #resultado .acoes .botao {
  height: 56px;
  font-size: 17px;
}

/* 8 px between tap targets: the bar's places, the panel's x1/x10/MAX, the lists' buttons */
body.cel #nav-cel,
body.cel-deitado #nav-cel {
  gap: 8px;
}
body.cel #f-modos,
body.cel-deitado #f-modos {
  gap: 8px;
}
body.cel #hub-outra .grade,
body.cel #hub-outra .rack,
body.cel #hub-outra .vitrine,
body.cel-deitado #hub-outra .grade,
body.cel-deitado #hub-outra .rack,
body.cel-deitado #hub-outra .vitrine {
  gap: 8px;
}
body.cel #resultado .linhas .selo,
body.cel-deitado #resultado .linhas .selo {
  font-size: 12px;
  padding: 2px 8px;
  white-space: nowrap;
  overflow: visible;
}
body.cel #favo .selos-nivel .lv,
body.cel-deitado #favo .selos-nivel .lv {
  font-size: 12px;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
}
/* End of estilo-4.css: complete file, part 4 of 6 of the styles. It continues in estilo-5.css, loaded right after it by index.html. */
