/* Crater Crush styles, part 6 of 6 (see estilo.css). Linked in this order by index.html. */
@media (min-width: 600px) and (orientation: portrait) {
  /* (the card is zoomed: the room Opal takes, measured in screen px, is divided back) */

  /* tabs shorter than the screen sit in the middle of it (they hung at the top with half the screen empty) */
  body.cel #hub-outra:not(.rola) {
    justify-content: center;
  }
}
/* phones: while the tip shows, the six shop rows tighten so the list still fits (the tip never creates scrolling) */
@media (max-width: 599px) {
  body.cel.guia-fala[data-aba='shop'] #hub-outra .grade {
    gap: 4px !important;
  }
  body.cel.guia-fala[data-aba='shop'] #hub-outra .item {
    padding-block: 3px;
    min-height: 66px;
  }
}
@media (min-width: 600px) and (orientation: portrait) {
  /* the zoomed pause button ended 2-3 px inside the XP line */
  body.cel #hud.turno #pausar {
    transform-origin: 50% 0;
    scale: 0.9;
  }
}

/* ==================== v1 ==================== */
/* landscape phones, Lands: cards of one height, no hole in the grid (the land in use spans the row when the count is
   odd), cost and "N more" on one line over UNLOCK (the card is 78 px, the five fit without the fade cutting the last) */
body.cel-deitado #hub-outra .terra {
  align-self: stretch;
}
body.cel-deitado #hub-outra .terra:first-child:nth-last-child(odd) {
  grid-column: 1 / -1;
  min-height: 56px;
}
/* the cost is "have / cost" over the button (the long "8 MAP PIECES" + "5 more" made the card 100 px tall) */
.pecas-c,
.terra p .pt {
  font-style: normal;
}
.pecas-c {
  display: none !important;
}
body.cel-deitado #hub-outra .terra .terra-btn :is(.pecas, .falta-pecas) {
  display: none;
}
body.cel-deitado #hub-outra .terra .terra-btn .pecas-c {
  display: inline-flex !important;
  font-size: 13px;
}
body.cel-deitado #hub-outra .terra:not(:first-child) p span,
body.cel-deitado #hub-outra .terra:first-child:nth-last-child(even) p span {
  display: block;
}
body.cel-deitado #hub-outra .terra:not(:first-child) p .pt,
body.cel-deitado #hub-outra .terra:first-child:nth-last-child(even) p .pt {
  display: none;
}
body.cel-deitado #hub-outra .terra p {
  font-size: 12px;
  line-height: 1.25;
}
/* landscape phones, Rigs: three rows fit a 360 px tall screen (the third was cut with no sign of scrolling) */
body.cel-deitado #hub-outra .sonda {
  min-height: 58px;
  padding: 5px 10px;
}
body.cel-deitado #hub-outra .sondas {
  gap: 6px !important;
}
body.cel-deitado #hub-outra .taxa {
  margin-bottom: 4px;
}
/* landscape phones, Goals: three full-width rows (two columns left a hole and broke "Make / a x10 / combo" in three) */
body.cel-deitado #hub-outra .metas-pg {
  width: 100%;
}
body.cel-deitado #hub-outra .metas-grandes {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 6px !important;
}
body.cel-deitado #hub-outra .metas-grandes .meta {
  min-height: 58px;
  padding: 5px 10px;
}
/* title on phones: the island a little narrower, so it can step left for the pick's back swing and keep its own left tip */
body.cel .ilha-titulo img {
  max-width: 88vw;
}
/* landscape phones while the guide's tip is up (its strip takes ~68 px of a 360-390 px tall screen): the tip takes the
   place of the tab's explanation line, the rows tighten, and Bedrock keeps GO DEEPER / NOT YET pinned on screen
   (critique 7: buttons pushed off the screen, third goal and last Shop / Rigs row cut) */
body.cel-deitado.guia-fala #hub-outra :is(.nota, .quadro > h2) {
  display: none;
}
body.cel-deitado.guia-fala #hub-outra :is(.item, .sonda, .metas-grandes .meta) {
  min-height: 52px;
  padding-top: 3px;
  padding-bottom: 3px;
}
body.cel-deitado.guia-fala #hub-outra :is(.grade, .sondas, .metas-grandes) {
  gap: 5px !important;
}
body.cel-deitado #hub-outra .acoes:has(#ir-bedrock) {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 6px 0 2px;
  background: #0f2a57;
}
/* buy row on phones and portrait tablets in px (the rem sizes grew with the tablet's rem and again with its zoom: a
   61 px coin, the price in the middle of the panel and "117 more" over the panel's border; critique 7) */
body.cel #ficha #f-custo-caixa {
  justify-content: flex-end;
  align-items: center;
  font-size: 21px;
}
body.cel #ficha #f-custo-caixa .ico {
  width: 24px;
  height: 24px;
  font-size: 24px;
}
body.cel #ficha #f-qtd {
  font-size: 15px;
}
body.cel #ficha #f-falta {
  font-size: 13px;
  line-height: 1.1;
}
/* landscape tablets (about 1000-1400 px wide): the hub uses the 10 rem that were empty on the right, so the honeycomb
   is big enough for the FULL names (never the short ones: "Sharp", "Start", "Time") at 12 px or more */
@media (min-width: 1001px) and (max-width: 1400px) and (min-height: 481px) {
  body:not(.cel):not(.cel-deitado) #hub {
    padding-right: 2rem;
  }
}
#favo:not(.miudo) .no .nm {
  font-size: max(12px, min(calc(var(--S) * 0.17), 17px));
}
/* portrait tablets: the hexagons are ~160 px wide on screen, so each one says its full name (13-15 px drawn) */
body.cel #favo.nomes .no .nm {
  display: flex;
  top: 47%;
  height: 27%;
  font-size: 10px;
  line-height: 1.05;
  white-space: normal !important; /* two lines before any shrinking (long names in ru / de) */
}
body.cel #favo.nomes .no .ic {
  width: 34%;
  left: 33%;
  top: 9%;
}
body.cel #favo.nomes .no .cu {
  top: 77%;
}
/* Journal / Watch the opening share the row by the size of their labels (the longer one no longer wraps) */
.op-historia .botao {
  flex: 1 1 auto;
  white-space: nowrap;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
}
/* the sign in the landscape slot is a compact seal, its words centred in the plaque (they
   sat on the top line of a 44 px box and left its lower half empty) */
body.cel-deitado[data-fase='hud'] #slot-msg > span.sinal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: center;
  column-gap: 5px;
  text-align: center;
}
/* the rigs panel ended 6 px under the screen on 740x360. The 58 px row of v1 never
   applied (the shared phone rule above is more specific and kept 72 px): same rule, with the weight to win */
body.cel-deitado #hub-outra .sondas .sonda {
  min-height: 58px;
  padding: 5px 10px;
}
/* a sentence in the Bedrock panel never leaves one word alone on its last line ("... stay with / you") */
.bedrock .linha span,
.bedrock .nota {
  text-wrap: balance;
}
/* the returning player's plaque: facts apart by space (no "·" left alone at a line's end), each one whole */
#inicio .dica.volta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 1em;
}
#inicio .dica.volta .nq {
  white-space: nowrap;
}
/* 12 px floor on the landscape phone's title (the plaque was 10.5 px, "2/12" and "EN" 10 px) */
body.cel-deitado #inicio .dica {
  font-size: max(12px, 1.1rem);
}
body.cel-deitado #rel-conta,
body.cel-deitado #lang-cod {
  font-size: 12px;
}
/* tall desktop screens leave more sky over the results card, so Opal sitting on its
   edge is drawn larger (she was 146 px on 1080 and read as a seal on the ribbon) */
@media (min-height: 900px) and (min-width: 1401px) {
  body:not(.cel):not(.cel-deitado) #resultado .cartao {
    margin-top: 4.8rem;
    max-height: calc(100% - 4.8rem);
  }
}
/* the results buttons do not clip their key seal (it now sits on the button's top-right corner) */
#resultado .acoes .botao[data-tecla] {
  overflow: visible;
}
/* Opal's first line (the drag) carries her round face, like her other balloons */
#slot-msg .sm-av {
  float: left;
  width: 40px;
  height: 40px;
  margin: 1px 10px 1px 0;
  border-radius: 50%;
  border: 2px solid #c98a2b;
  background: #ffe2a3;
  object-fit: cover;
  object-position: 50% 15%;
}
#slot-msg > span.com-av {
  text-align: left;
}
body:not(.cel):not(.cel-deitado)[data-fase='hud'] #slot-msg > span.com-av {
  font-size: 20px;
  line-height: 26px;
  padding: 10px 18px 10px 12px;
}
body:not(.cel):not(.cel-deitado)[data-fase='hud'] #slot-msg .sm-av {
  width: 52px;
  height: 52px;
}
body.cel[data-fase='hud'] #slot-msg > span.com-av {
  max-width: 344px;
  padding: 5px 12px 5px 8px;
}
body.cel[data-fase='hud'] #slot-msg .sm-av {
  width: 34px;
  height: 34px;
  margin-right: 8px;
}
/* landscape phones: the slot is 172 px wide, the line alone fills it (no face there) */
body.cel-deitado #slot-msg .sm-av {
  display: none;
}
/* a tab that is still early (Bedrock before level 18) looked disabled even while selected:
   the selected tab is always drawn in full (gold, dark label), its lock seal keeps saying what it needs */
.aba.dim.ativa {
  filter: drop-shadow(0 0 0.6rem rgba(255, 210, 63, 0.45));
}
.aba.dim.ativa > * {
  opacity: 1;
}
/* "Opens:" in the upgrade panel: each icon stays with its name */
#f-abre .nq {
  white-space: nowrap;
}
/* the white smudge beside "NEW BEST!" on phones was the seal's own shine (.selo::after): the phone rule
   makes the seal overflow: visible and the shine, parked at translateX(120%) when it ends, showed to its right.
   The seal clips to its own pill again */
body.cel #resultado .linhas .selo,
body.cel-deitado #resultado .linhas .selo {
  clip-path: inset(0 round 99px);
}

/* ============ ONE results composition on every format ============
   ribbon "SHIFT OVER!" (the art with the gems) -> hero number (coins of the shift counting up + new total) -> ores in
   one line -> XP / level -> rows (combo, rocks with NEW BEST, goals, relics) -> upgrades call -> 2 buttons.
   Wide screens used a table with COLLECTED / Coins / XP rows and the XP bar of the HUD; portrait used a flat bar,
   shortened to make room for Opal's boots. */
body:not(.cel):not(.cel-deitado) #res-heroi {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: baseline;
  column-gap: 0.7rem;
  text-align: center;
  margin-top: 1.5rem; /* clear of the ribbon's tails */
}
body:not(.cel):not(.cel-deitado) #res-heroi b {
  font-size: 3.6rem;
}
body:not(.cel):not(.cel-deitado) #res-heroi span {
  font-size: 1.5rem;
  gap: 0.35rem;
}
body:not(.cel):not(.cel-deitado) #res-heroi span .ico {
  width: 1.6rem;
  height: 1.6rem;
}
body:not(.cel):not(.cel-deitado) #res-heroi small {
  font-size: 1.05rem;
}
body:not(.cel):not(.cel-deitado) #res-minerios {
  margin-top: 0;
}
body:not(.cel):not(.cel-deitado) #res-minerios thead,
body:not(.cel):not(.cel-deitado) #res-linhas [data-k],
body:not(.cel):not(.cel-deitado) #hud.resumo #hud-xp {
  display: none;
}
body:not(.cel):not(.cel-deitado) #res-xp:not(:empty) {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
body:not(.cel):not(.cel-deitado) #res-xp .escudo {
  width: 2.4rem;
  height: 2.64rem;
}
body:not(.cel):not(.cel-deitado) #res-xp .escudo b {
  font-size: 1.15rem;
}
body:not(.cel):not(.cel-deitado) #res-xp .barra {
  height: 0.8rem;
}
body:not(.cel):not(.cel-deitado) #res-xp small {
  font-size: 1.1rem;
}
/* portrait phones and tablets: the same ribbon art with the gems, whole and centred on the card's top edge */
body.cel #resultado .faixa {
  position: relative;
  display: block;
  width: auto;
  height: auto;
  aspect-ratio: 722 / 282;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% + 48px, 400px); /* portrait tablets (zoomed card): 400 px, with room for Opal beside it */
  margin: -66px 0 -20px;
  padding: 0;
  border-radius: 0;
  background: url(arte/ui/faixa.webp) center / contain no-repeat;
  box-shadow: none;
  animation: faixa 0.5s var(--pop) 0.08s both;
}
body.cel #resultado .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;
}
body.cel #resultado {
  padding-top: calc(var(--st) + 112px) !important; /* 50 + the gems above the card */
}
/* landscape phones: values on the right edge of their rows, the left column spread over its height (no dead quarter) */
body.cel-deitado #resultado .linhas > div {
  grid-template-columns: 26px minmax(0, 1fr) auto;
}
body.cel-deitado #resultado .linhas > div > b {
  justify-self: end;
  text-align: right;
}
body.cel-deitado #resultado .cartao {
  grid-template-rows: auto 1fr 1fr 1fr;
}
body.cel-deitado #res-heroi,
body.cel-deitado #res-minerios,
body.cel-deitado #res-xp:not(:empty) {
  align-self: center;
}
body.cel-deitado #res-heroi b {
  font-size: 44px;
}
body.cel-deitado #res-minerios img {
  width: 30px;
  height: 25px;
}
body.cel-deitado #res-minerios td b {
  font-size: 18px;
}
/* 740x360: the options fit without scrolling (CLOSE was cut 4 px by the frame) */
@media (max-height: 380px) {
  body.cel-deitado #pausa .painel.opcoes {
    gap: 5px 12px;
  }
  body.cel-deitado #pausa .painel.opcoes > h2 {
    font-size: 22px;
    line-height: 1;
  }
}
/* phones: a tab that scrolls says so with a clear fade at the bottom (the 13 px one read as a cut row) */
body.cel #hub-outra.rola,
body.cel-deitado #hub-outra.rola {
  -webkit-mask-image: linear-gradient(transparent, #000 8px, #000 calc(100% - 34px), transparent);
  mask-image: linear-gradient(transparent, #000 8px, #000 calc(100% - 34px), transparent);
  padding-bottom: 26px; /* the last row scrolls clear of the fade */
}
/* phones: ON / OFF at 12 px (it was 0.8 rem: ~9.5 px on a landscape phone) */
body.cel .alterna::after,
body.cel-deitado .alterna::after {
  font-size: 12px;
  padding: 2px 10px;
  right: 8px;
}
/* tall phones (390x844, 430x932): the menus use the height. Forge in ONE column (big rack over the detail
   panel; side by side it left the lower half of the screen empty); the lands show "Ore value" / "Pebble HP" under the
   name, one fact per line (no separator to be orphaned). 390x660 keeps the compact side-by-side Forge.
   the upright tablet too (side by side it left a hollow panel and ~280 pt under the Forge; 50 px slots there (room for the guide's strip),
   the hub is zoomed x1.5). */
@media (min-height: 760px) and (orientation: portrait) {
  body.cel #hub-outra .forja {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  body.cel #hub-outra .forja .rack {
    grid-template-columns: repeat(3, 92px) !important;
    justify-content: center;
    gap: 12px;
    padding: 10px;
  }
  body.cel #hub-outra .forja .rack .slot {
    width: 92px;
    height: 92px;
    padding: 8px;
  }
  body.cel #hub-outra .forja .slot.trava::after {
    width: 26px;
    height: 30px;
    bottom: 8px;
  }
  body.cel #hub-outra .forja .slot .eq {
    width: 24px;
    height: 24px;
  }
  body.cel #hub-outra .forja .detalhe h3 {
    font-size: 20px;
  }
  @media (max-width: 599px) {
    body.cel #hub-outra .terra p {
      display: block;
      font-size: 13px;
      line-height: 1.5;
    }
    body.cel #hub-outra .terra p span {
      display: block;
      white-space: nowrap;
    }
    body.cel #hub-outra .terra p .pt {
      display: none;
    }
  }
  @media (min-width: 600px) {
    body.cel #hub-outra .forja .rack {
      grid-template-columns: repeat(3, 50px) !important;
      gap: 8px;
      padding: 4px;
    }
    body.cel #hub-outra .forja .rack .slot {
      width: 50px;
      height: 50px;
      padding: 6px;
    }
    body.cel #hub-outra .forja .detalhe {
      gap: 6px;
    }
  }
}

/* ---- v1 portrait phone, the field is at most 12% wider than the screen on each side and the
   side edges fade into the sky (24 px), so the cut reads as "the field goes on, the camera follows the ring" ---- */
body.cel.campo-largo[data-fase='hud'] #hud {
  box-shadow:
    inset 26px 0 22px -14px rgba(9, 18, 40, 0.92),
    inset -26px 0 22px -14px rgba(9, 18, 40, 0.92);
}
/* the hub's body stands in the left column; a tab's line replaces the header (opal.css, body.guia-troca) */

/* the hero number of the results ends its count with a short pop and a warm glow on the number (no screen
   flash); "less motion" skips it (the count itself is skipped there) */
#res-heroi b.estouro {
  animation: estouroHeroi 0.42s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
@keyframes estouroHeroi {
  0% {
    transform: scale(1);
    filter: none;
  }
  35% {
    transform: scale(1.22);
    filter: drop-shadow(0 0 0.7rem rgba(255, 214, 90, 0.95)) brightness(1.15);
  }
  100% {
    transform: scale(1);
    filter: none;
  }
}

/* tall phones, Forge with the tab's line up: the rack rows give the strip its height back, FORGE stays on screen */
@media (max-width: 599px) and (min-height: 760px) {
  /* square slots always (72x72 here; the short phone keeps its 48x48: it had become 48x72) */
  body.cel.guia-fala[data-aba='forge'] #hub-outra .forja .rack {
    grid-template-columns: repeat(3, 72px) !important;
  }
  body.cel.guia-fala[data-aba='forge'] #hub-outra .forja .rack .slot {
    width: 72px;
    height: 72px;
  }
}
/* v1 landscape tablets, no text under 13 px: the relic hints and "N more" under a price */
body:not(.cel):not(.cel-deitado) .pedestal p {
  font-size: max(13px, 0.72rem);
}
body:not(.cel):not(.cel-deitado) #f-falta {
  font-size: max(13px, 0.8rem);
}
/* v1 a relic row of the results never breaks the name inside a word ("Spir/al/Am/moni/te"): the name
   keeps its longest word whole and the bonus text wraps instead */
.linhas > div:has(> b.txt) {
  grid-template-columns: auto minmax(min-content, 1fr) minmax(0, max-content) !important;
}
.linhas > div:has(> b.txt) .rn {
  overflow-wrap: normal !important;
  word-break: normal !important;
  min-width: min-content !important;
}
.linhas > div > b.txt {
  white-space: normal !important;
  overflow-wrap: anywhere;
  text-align: right;
  min-width: 0 !important;
}
/* landscape phones, Lands with the tab's line up: tighter cards, the last row stays whole (740x360) */
body.cel-deitado.guia-fala #hub-outra .terra {
  padding-top: 1px;
  padding-bottom: 1px;
  min-height: 0;
}
body.cel-deitado.guia-fala #hub-outra .terra :is(.ver, .ver .arte) {
  width: 40px;
  height: 40px;
}
body.cel-deitado.guia-fala #hub-outra .terra .botao {
  height: 40px;
}
/* landscape phones, Forge with the tab's line up: the 3rd row of picks stays on screen (740x360) */
body.cel-deitado.guia-fala[data-aba='forge'] #hub-outra .forja .rack .slot {
  height: 52px !important;
}
body.cel-deitado.guia-fala[data-aba='forge'] #hub-outra .forja .rack {
  row-gap: 5px !important;
  padding-top: 4px;
  padding-bottom: 4px;
}

/* ===== v1 ===== */
/* MAX is a flat seal (dark fill, gold outline, the size of its word): nothing about it says "press me" */
#f-comprar.medalha {
  background: rgba(0, 0, 0, 0.32) !important;
  border: 2px solid rgba(255, 210, 63, 0.8) !important;
  box-shadow: none !important;
  color: var(--ouro) !important;
  text-shadow: none !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0.3em 1.3em !important;
  transform: none !important;
}
/* the effect capsule of the phones has a fixed height: its one line sits in the middle (the label rode the top) */
:is(body.cel, body.cel-deitado) #f-efeito {
  align-content: center;
}
/* the detail panel keeps one height and one price line through its states (buy, short, locked, MAX): the row of the
   modes and the price is always there, and "N more" sits on the price line, never under it */
body:not(.cel):not(.cel-deitado) .f-compra {
  grid-template-rows: minmax(3.2rem, auto) auto;
}
body:not(.cel):not(.cel-deitado) .f-custo {
  flex-wrap: nowrap;
  white-space: nowrap;
}
body:not(.cel):not(.cel-deitado) #f-falta {
  flex-basis: auto;
  order: -1;
  margin-right: 0.3rem;
}
/* no text under 12 px */
#rel-conta,
#lang-cod {
  font-size: max(12px, 1em) !important;
}
body.cel-deitado #f-falta {
  font-size: 12px !important;
  line-height: 1;
}
body.cel-deitado :is(#rel-conta, #lang-cod) {
  font-size: 14px !important;
}
@media (min-width: 1001px) and (max-width: 1400px) and (min-height: 481px) {
  body:not(.cel):not(.cel-deitado) #ir-forja {
    font-size: 12.5px !important;
  }
  body:not(.cel):not(.cel-deitado) #favo .no :is(.num, .lv) {
    font-size: 12px !important;
  }
  body:not(.cel):not(.cel-deitado) :is(.falta-pecas, .item .falta) {
    font-size: 13px !important;
  }
  body:not(.cel):not(.cel-deitado) .item p {
    font-size: 12.5px !important;
  }
  body:not(.cel):not(.cel-deitado) :is(.m-rot, .mr, .linhas .selo, #f-ramo),
  body:not(.cel):not(.cel-deitado) .rm b {
    font-size: 12.5px !important;
  }
  body:not(.cel):not(.cel-deitado) #hud.turno .rot-turno {
    font-size: 13px !important;
    transform: none !important;
  }
  body:not(.cel):not(.cel-deitado) .lv {
    font-size: 13px !important;
  }
  body:not(.cel):not(.cel-deitado) #hud h4 {
    font-size: 13px !important;
  }
}
/* landscape phones, title: the foot column (DIG!, hint, the five ores) never spills past the left edge
   (740x360 cut the grey stone) */
body.cel-deitado .titulo-pe {
  max-width: 44vw;
}
body.cel-deitado .titulo-minerios {
  max-width: 100%;
}
body.cel-deitado .titulo-minerios img {
  flex: 0 1 auto;
  min-width: 0;
  width: 17%;
  height: auto;
  max-height: 50px;
  object-fit: contain;
}
/* no orphan word in the short lines (Bedrock's "…coins this / run form your first shard.", the shop's
   "+10% critical / chance", the forge's "…your ores.") */
.bedrock .nota,
.bedrock .linha span,
.item p,
.forja p,
#f-desc,
.pedestal p,
#hub-outra .nota {
  text-wrap: balance;
}
/* Lands, the two stats are two lines everywhere (as on phones): the "·" ended or began a line when they wrapped */
#hub-outra .terra p span {
  display: block;
  white-space: nowrap;
}
#hub-outra .terra p .pt {
  display: none;
}
/* the "Lv 18" lock under the Bedrock tab is a pseudo-element (the text meter never saw it): 12 px at least */
.aba[data-trava]:not([data-trava=''])::after {
  font-size: max(12px, 0.68rem) !important;
}
#rel-conta {
  font-size: max(15px, 1.15em) !important; /* the round button draws it scaled (~0.83): never under 12 px on screen */
}
body.cel-deitado #rel-conta {
  font-size: 14px !important;
}
.aba[data-n]:not([data-n=''])::before {
  font-size: max(12.5px, 0.7rem) !important;
}
body.cel #rel-conta {
  font-size: 14px !important;
}
@media (min-width: 1001px) and (max-width: 1400px) and (min-height: 481px) {
  /* the four branch labels at 12 px keep inside their quarter (ru "БОГАТСТВО" ran under its neighbour) */
  body:not(.cel):not(.cel-deitado) .rm b {
    font-size: 12px !important;
    letter-spacing: 0 !important;
  }
  body:not(.cel):not(.cel-deitado) #f-ramos {
    gap: 0.35rem;
  }
}

/* ===== v1 ===== */
/* results with many rows (a relic memory) on portrait phones and tablets: ONE column, each label on one line
   (the two columns broke "Heart of Gold" in three lines and glued the numbers to the next icon) */
body.cel #resultado .linhas.muitas {
  grid-template-columns: minmax(0, 1fr);
}
body.cel #resultado .linhas .rn {
  white-space: nowrap;
  overflow-wrap: normal;
}
body.cel #resultado .linhas .pronto-up {
  text-wrap: balance;
}
/* short portrait phones (390x660): Lands get their two stats back (the card is as tall as its button column anyway: the
   hidden stats left a hole), tighter cards so the top of the next land shows under the fade (the list scrolls) */
@media (max-width: 599px) and (max-height: 759px) {
  body.cel #hub-outra .terra p {
    display: block;
    font-size: 12px;
    line-height: 1.4;
  }
  body.cel #hub-outra .terra {
    padding-top: 4px;
    padding-bottom: 4px;
  }
  body.cel[data-aba='lands'] #hub-outra .nota {
    margin-top: 0;
    margin-bottom: 2px;
  }
}
/* landscape phones, Shop with the tab's line up: tighter rows, the 3rd row and its "N more" stay whole (740x360) */
body.cel-deitado.guia-fala[data-aba='shop'] #hub-outra .item {
  padding-top: 2px;
  padding-bottom: 2px;
  min-height: 0;
}
body.cel-deitado.guia-fala[data-aba='shop'] #hub-outra .item > img {
  width: 40px;
  height: 40px;
}
body.cel-deitado.guia-fala[data-aba='shop'] #hub-outra .item .botao {
  height: 36px;
}
/* v1 tabs shorter than the screen are anchored at the TOP, right under the tabs, and FILLED (never
   floating in the middle: the v1 centring on upright tablets is undone) */
@media (min-width: 600px) and (orientation: portrait) {
  body.cel #hub-outra:not(.rola) {
    justify-content: flex-start;
  }
}
/* tall portrait screens: Goals and Rigs have three cards; taller cards, larger icons and text, up to a ceiling */
@media (orientation: portrait) and (min-height: 760px) {
  body.cel #hub-outra :is(.sonda, .metas-grandes .meta) {
    min-height: 136px;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    column-gap: 14px;
    padding: 12px 14px;
  }
  body.cel #hub-outra .sonda > img,
  body.cel #hub-outra .metas-grandes .meta img {
    width: 76px;
    height: 76px;
  }
  /* Rigs: the text column is narrow on a phone (name, level pill and rate on one line each): a smaller icon, same type */
  body.cel #hub-outra .sonda {
    min-height: 120px;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    column-gap: 10px;
    padding: 10px;
  }
  body.cel #hub-outra .sonda > img {
    width: 58px;
    height: 58px;
  }
  body.cel #hub-outra :is(.sonda, .metas-grandes) {
    row-gap: 6px;
  }
}
@media (max-width: 599px) and (max-height: 759px) {
  body.cel[data-aba='lands'] #hub-outra .terra .botao {
    height: 40px;
  }
  body.cel[data-aba='lands'] #hub-outra .terra {
    row-gap: 0;
    min-height: 0;
  }
  body.cel[data-aba='lands'] #hub-outra .terra .terra-btn {
    gap: 0;
  }
}

/* ===== v1 ===== */
/* MAX is a ribbon seal (notched ends, flat gold, no border, no shadow, no rounded pill): in the panel and on the
   hexagons it reads as an award, never as something to press */
#f-comprar.medalha,
.no .cu.max {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: linear-gradient(#ffe9a0, #f2b92e) !important;
  color: #4a2a00 !important;
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.55em) 50%, 100% 100%, 0 100%, 0.55em 50%);
  cursor: default;
}
#f-comprar.medalha {
  padding: 0.28em 1.7em !important;
  letter-spacing: 0.12em;
}
.no .cu.max {
  padding-inline: 0.9em;
}
/* landscape tablet (wide layout under 1400 px, rem ~15.6 px): every small label at 13 px or more on screen (the
   corrected meter, a test, found these at 12-12.7 px) */
@media (max-width: 1399px) {
  body:not(.cel):not(.cel-deitado)
    :is(#ir-forja, .no .nm, .no .cu, .no .cu .num, .mr, .mp, .m-rot, .selo, #hub-outra .item p, #hub-outra p) {
    font-size: max(13px, 0.84rem) !important;
  }
  body:not(.cel):not(.cel-deitado) .aba::after,
  body:not(.cel):not(.cel-deitado) .aba::before {
    font-size: 13px !important;
  }
}
/* the detail panel on wide layouts keeps ONE box through every node and state: the "Opens:" block always has the room
   of its longest list (3 lines), so the panel no longer grows and re-centres (its top moved between y~180 and 250),
   and it sits a little lower, clear of the "Lv 18" seal under the BEDROCK tab */
body:not(.cel):not(.cel-deitado) #f-abre {
  min-height: 4.5rem;
  align-content: flex-start;
}
body:not(.cel):not(.cel-deitado) #ficha {
  position: relative;
  top: 0.7rem;
}
body:not(.cel):not(.cel-deitado) #ficha .f-compra {
  min-height: 7.5rem;
  align-content: end;
}
body:not(.cel):not(.cel-deitado) #f-efeito {
  min-height: 2.5rem; /* with or without the arrow glyph */
}
/* ---- dead space ONE rule for every tab and format. The panel is as tall as its CONTENT
   (no stretched, hollow panel; no rows spread apart); fitTab() then grows the whole block by zoom up to a cap per format
   and what is left becomes equal margins, with the block anchored under the tabs. ---- */
body.cel #hub-outra .bedrock {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.cel #hub-outra .bedrock .cubo {
  display: block;
  flex: none;
  height: 150px;
  width: auto;
  max-width: 100%;
  align-self: center;
  object-fit: contain;
}
/* landscape phones: Shop, Rigs and Relics share ONE panel width (the tab's whole room) */
body.cel-deitado #hub-outra > .quadro {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* the shift's message pill: Opal's face leans out of the pill's left end (same as her lines in the menus) */
#slot-msg .sm-av {
  transform: translateX(-10px) scale(1.25);
  transform-origin: 50% 55%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  position: relative;
}
#slot-msg > span.com-av {
  overflow: visible;
}
/* the "new here" dot of a tab sits right after the tab's label (it floated in the tab's corner, far from the word) */
.aba.novidade::after {
  display: none;
}
.aba.novidade span {
  position: relative;
}
.aba.novidade span::after {
  content: '';
  position: absolute;
  left: calc(100% + 3px);
  top: -0.25em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff9c8a, #e8452f 60%, #a82616);
  box-shadow: 0 0 0 1.5px #1d2c4a;
}
/* a long goal in the shift's plaque on phones (German: "Verdiene 540 Münzen in einem Turno") wraps to the second line
   the plaque already reserves, instead of being cut */
body.cel #hud.turno .meta .mt {
  white-space: normal;
  line-height: 1.12;
  text-wrap: balance;
}
@media (max-width: 1399px) {
  body:not(.cel):not(.cel-deitado)
    :is(
      #favo .no .num,
      #favo .no b,
      #f-total,
      #f-ramos b,
      #f-ramos .rm,
      #f-ramo,
      #f-abre,
      #f-abre b,
      .forja small,
      .forja small span,
      .forja .falta,
      #hub-outra .nota,
      #hub-outra h3,
      .reliquias p,
      .reliquias h3,
      .pedestal p,
      .pedestal h3
    ) {
    font-size: max(13px, 0.86rem) !important;
  }
  body:not(.cel):not(.cel-deitado) :is(#op-sfx, #op-music, #op-calmo, #op-vibra)::after,
  body:not(.cel):not(.cel-deitado) .liga::after {
    font-size: 13px !important;
  }
}
@media (max-width: 1399px) {
  body:not(.cel):not(.cel-deitado) #hub-outra .reliquias :is(p, h3, .nota) {
    font-size: 14px !important;
  }
}
/* ---- v1 players read the LETTER height, so the small facts are 14 px of real font
   on phones, landscape phones and the desktop ---- */
:is(body.cel, body.cel-deitado) #favo .cu .num,
:is(body.cel, body.cel-deitado) :is(#f-falta, .falta, .falta-pecas, .pecas, .pronto-up),
:is(body.cel, body.cel-deitado) #hub-outra .nota,
:is(body.cel, body.cel-deitado) .acao .botao small span,
:is(body.cel, body.cel-deitado) #res-heroi small,
:is(body.cel, body.cel-deitado) .reliquias :is(p, small, .desc) {
  font-size: 14px !important;
}
body:not(.cel):not(.cel-deitado) #favo .cu .num,
body:not(.cel):not(.cel-deitado)
  :is(#f-falta, .falta, .falta-pecas, .pecas, .pronto-up, #hub-outra .nota, .acao .botao small span, #res-heroi small),
body:not(.cel):not(.cel-deitado) .reliquias :is(p, small, .desc) {
  font-size: max(14px, 1em) !important;
}
/* v1 the "new here" mark of a tab carries a NUMBER, like the seals of the bar and UPGRADES (it was a
   loose red dot), and sits right after the label */
.seg.pode {
  position: relative;
}
.seg.pode::after,
.aba.novidade span::after {
  content: '1';
  position: static;
  display: inline-grid;
  place-items: center;
  vertical-align: 0.15em;
  margin-left: 5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 9px;
  background: radial-gradient(circle at 35% 35%, #ff8a72, #e8452f 60%, #b02a18);
  box-shadow: 0 0 0 1.5px #1d2c4a;
  color: #fff;
  font: 800 12px/1 var(--fonte-num, inherit);
  width: auto;
  top: auto;
  right: auto;
  left: auto;
}
/* desktop / landscape tablet: the gold dot of a tab where something can be done becomes the same numbered seal as
   UPGRADES (one thing waiting there) */
.aba.pode:not([data-n]):not([data-aba='upgrades'])::after,
.aba.pode[data-n='']::after {
  content: '1';
  top: -0.95rem;
  right: -0.9rem;
  min-width: 1.35rem;
  width: auto;
  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);
}
/* v1 modals dim the screen behind them harder (text behind them was readable: "YTHM", "ICKAXE") */
.fundo-escuro {
  background: rgba(4, 9, 18, 0.86);
  backdrop-filter: blur(3px);
}
/* on the desktop and the landscape tablet the tab's block is anchored under the tabs (it floated in the
   middle with a dead band above it); fitTab() grows it and gives it the top margin */
body:not(.cel):not(.cel-deitado) #hub-outra {
  justify-content: flex-start;
}
/* v1 the field behind the card is dimmed out (its tip leaked past the card's sides)
   and on tall phones Opal's line + the card are centred as ONE block (the card alone was centred: ~30 pt above the
   line, ~150 pt dead under the card) */
body.cel #resultado:not([hidden]) {
  background: rgba(5, 13, 26, 0.9);
}
@media (max-width: 599px) and (min-height: 760px) {
  body.cel #resultado .cartao {
    margin-top: 130px;
  }
}
/* v1 the card sits lower, so Opal's bust + a balloon with its tail fit above it
   (the line fell back to a pill over the gem pile and the card's top) */
@media (max-width: 599px) and (max-height: 759px) and (min-height: 600px) {
  body.cel #resultado .cartao {
    margin-top: 48px;
  }
}
/* v1 hierarchy, the name is bigger than its stats (COPPER PICK was smaller than
   "Damage x1.5"; rig names the size of their values) */
@media (max-width: 1399px) {
  body:not(.cel):not(.cel-deitado) #hub-outra .forja .detalhe h3 {
    font-size: 22px !important;
  }
  body:not(.cel):not(.cel-deitado) #hub-outra.hub-corpo .sondas .sonda h3 {
    font-size: 20px !important;
  }
}
/* a tab grown by zoom keeps every word whole (Rigs at 390x844 split "CRUSH-ER"); fitTab() steps the zoom
   down until nothing overflows */
#hub-outra.cresce :is(h3, h4, b, strong, p, small) {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

/* a list cut between rows (Opal.snapList) fades only over the next row's top edge, and stays visible
   there (35%), so the peek reads as "one more row below" */
#hub-outra.rola.corte,
.om-diario .om-lista.corte {
  -webkit-mask-image: linear-gradient(#000 calc(100% - var(--peek) - 6px), rgba(0, 0, 0, 0.35));
  mask-image: linear-gradient(#000 calc(100% - var(--peek) - 6px), rgba(0, 0, 0, 0.35));
}
/* final round the combo "+N" pops INSIDE the meter (over its own label, on the meter's
   own background) instead of under it, where it fell on the XP bar or behind the GOLD SHOWER sign */
body.cel #m-pop {
  inset: 0;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none;
  background: linear-gradient(rgb(16, 34, 64), rgb(8, 18, 38));
  border-radius: inherit;
}
body.cel #m-pop.on {
  animation: mPopDentro 0.9s ease-out;
}
@keyframes mPopDentro {
  0% {
    opacity: 0;
  }
  12%,
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
/* a long word in a relic's hint never splits without a hyphen; it is
   hyphenated by the browser (page language) and never overflows its pedestal */
:is(:lang(nl), :lang(id), :lang(de), :lang(pl), :lang(tr)) .vitrine .pedestal p {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}
/* the four branch labels at 13 px did not fit a quarter of the panel
   ("SPITZHACKE", "БОГАТСТВО" clipped): on the landscape tablet they sit two by two */
@media (min-width: 1001px) and (max-width: 1399px) {
  body:not(.cel):not(.cel-deitado) #f-ramos {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 0.8rem;
  }
}
/* End of estilo-6.css: complete file, part 6 of 6 of the styles. This is the last part. */
