/* Crater Crush styles, part 5 of 6 (see estilo.css). Linked in this order by index.html. */
/* phone honeycomb: the hexagon is the tap area (tighter packing: the boxes overlap, the hexagons do not); price inside */
body.cel #favo .no,
body.cel-deitado #favo .no {
  clip-path: polygon(50% 3.2%, 96.3% 26.6%, 96.3% 73.4%, 50% 96.8%, 3.7% 73.4%, 3.7% 26.6%);
}
body.cel #favo .no .ic,
body.cel-deitado #favo .no .ic {
  left: 30%;
  width: 40%;
  top: 20%;
  height: 34%;
}
body.cel #favo .no .cu,
body.cel-deitado #favo .no .cu {
  top: 69%;
}
/* the selected hexagon keeps its size on phones (the white rim marks it): it never leaves the honeycomb's box */
body.cel #favo .no.sel,
body.cel-deitado #favo .no.sel {
  transform: translate(-50%, -50%);
}

/* ==================== the tabs' content on phones (portrait and landscape), one pattern ====================
   list row 72 px: icon 48 | name 15 px + effect 13 px | price button 88x44 (Shop, Rigs, Lands, Goals);
   Forge: 3x3 rack + fixed panel with the NEXT pick and its cost; Relics: 4x3 icons, name/bonus in the panel on tap;
   Bedrock full width with buttons >= 8 px apart. */
:is(body.cel, body.cel-deitado) #hub-outra .quadro .nota {
  font-size: 13px;
  line-height: 1.3;
  margin: 0 0 8px;
}
:is(body.cel, body.cel-deitado) #hub-outra .grade,
:is(body.cel, body.cel-deitado) #hub-outra .sondas,
:is(body.cel, body.cel-deitado) #hub-outra .metas-grandes,
:is(body.cel, body.cel-deitado) #hub-outra .trilha {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px !important;
  margin: 0;
  width: 100%;
}
body.cel-deitado #hub-outra .grade,
body.cel-deitado #hub-outra .metas-grandes,
body.cel-deitado #hub-outra .trilha {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
:is(body.cel, body.cel-deitado) #hub-outra :is(.item, .sonda, .terra, .metas-grandes .meta) {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  grid-template-areas: 'i t p' 'i d p';
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
  min-height: 72px;
  width: auto;
  margin: 0;
  padding: 8px 10px;
  text-align: left;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(30, 55, 95, 0.75), rgba(10, 24, 50, 0.88));
  border: 2px solid rgba(140, 190, 240, 0.18);
  font-size: 13px;
}
:is(body.cel, body.cel-deitado) #hub-outra :is(.item, .sonda) > img,
:is(body.cel, body.cel-deitado) #hub-outra .terra .ver,
:is(body.cel, body.cel-deitado) #hub-outra .metas-grandes .meta img {
  grid-area: i;
  width: 48px;
  height: 48px;
  object-fit: contain;
}
:is(body.cel, body.cel-deitado) #hub-outra .terra .ver .arte {
  width: 48px;
  height: 48px;
  animation: none;
}
:is(body.cel, body.cel-deitado) #hub-outra :is(.item, .sonda, .terra) h3 {
  grid-area: t;
  align-self: end;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.15;
  box-shadow: none;
  background: none;
  overflow-wrap: anywhere;
}
:is(body.cel, body.cel-deitado) #hub-outra :is(.item, .sonda, .terra) p {
  grid-area: d;
  align-self: start;
  margin: 0;
  min-height: 0;
  font-size: 13px;
  line-height: 1.25;
}
:is(body.cel, body.cel-deitado) #hub-outra .sonda > div {
  display: contents;
}
:is(body.cel, body.cel-deitado) #hub-outra .sonda .lv {
  font-size: 12px;
  margin-right: 6px;
  padding: 0 6px;
}
:is(body.cel, body.cel-deitado) #hub-outra :is(.item .compra, .terra .terra-btn) {
  grid-area: p;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0;
}
:is(body.cel, body.cel-deitado) #hub-outra :is(.item, .sonda, .terra) .botao {
  grid-area: p;
  width: 88px;
  min-width: 88px;
  height: 44px;
  margin: 0;
  padding: 0;
  font-size: 15px;
  white-space: nowrap;
}
:is(body.cel, body.cel-deitado) #hub-outra :is(.falta, .falta-pecas, .pecas, .pronto-grande, .selo) {
  font-size: 12px;
  white-space: nowrap;
}
:is(body.cel, body.cel-deitado) #hub-outra .pronto-grande {
  width: 88px;
  justify-content: center;
}
:is(body.cel, body.cel-deitado) #hub-outra .pecas img {
  width: 16px;
}
:is(body.cel, body.cel-deitado) #hub-outra .terra::before,
:is(body.cel, body.cel-deitado) #hub-outra .terra-grande {
  display: none !important;
}
:is(body.cel, body.cel-deitado) #hub-outra .terra .marca {
  left: 4px;
  top: 4px;
  right: auto;
  width: 20px;
  height: 20px;
  font-size: 12px;
}
:is(body.cel, body.cel-deitado) #hub-outra .terra .marca img {
  width: 14px;
}
:is(body.cel, body.cel-deitado) #hub-outra .terra.aqui {
  border-color: var(--ouro);
}
:is(body.cel, body.cel-deitado) #hub-outra .taxa {
  font-size: 15px;
  margin-bottom: 8px;
}
/* goals: name | progress on top, bar | reward below */
:is(body.cel, body.cel-deitado) #hub-outra .metas-grandes .meta {
  grid-template-areas: 'i t p' 'i b r';
  font-size: 15px;
}
:is(body.cel, body.cel-deitado) #hub-outra .metas-grandes .meta :is(.mt, .mp) {
  font-size: 15px;
}
:is(body.cel, body.cel-deitado) #hub-outra .metas-grandes .meta.espera .mp,
:is(body.cel, body.cel-deitado) #hub-outra .metas-grandes .meta .mr {
  font-size: 13px;
}
:is(body.cel, body.cel-deitado) #hub-outra .metas-grandes .meta .mb {
  height: 8px;
}
/* forge: the 3x3 rack and, fixed under it (beside it when lying), the panel of the next pick */
:is(body.cel, body.cel-deitado) #hub-outra .forja {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  height: auto;
}
body.cel-deitado #hub-outra .forja {
  flex-direction: row;
  align-items: flex-start;
}
:is(body.cel, body.cel-deitado) #hub-outra .forno {
  display: none;
}
:is(body.cel, body.cel-deitado) #hub-outra .forja .rack {
  display: grid;
  grid-template-columns: repeat(3, 56px) !important;
  gap: 8px;
  justify-content: center;
  padding: 4px;
  margin: 0;
  border-width: 10px;
  border-image-width: 10px;
}
:is(body.cel, body.cel-deitado) #hub-outra .forja .rack .slot {
  width: 56px;
  height: 56px;
  padding: 5px;
}
:is(body.cel, body.cel-deitado) #hub-outra .forja .detalhe {
  flex: 1 1 auto;
  gap: 6px;
  padding: 4px 6px;
  margin: 0;
  min-width: 0;
  border-width: 10px;
  border-image-width: 10px;
}
:is(body.cel, body.cel-deitado) #hub-outra .forja .detalhe h3 {
  margin: 0;
  font-size: 18px;
}
:is(body.cel, body.cel-deitado) #hub-outra .forja :is(.stats, .stats div, .perk, .equipado) {
  font-size: 13px;
}
:is(body.cel, body.cel-deitado) #hub-outra .forja .stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 4px;
}
:is(body.cel, body.cel-deitado) #hub-outra .forja .acao .botao {
  width: 100%;
  min-height: 52px;
  height: auto;
  font-size: 17px;
}
:is(body.cel, body.cel-deitado) #hub-outra .forja .acao .botao small {
  font-size: 13px;
}
:is(body.cel, body.cel-deitado) #hub-outra .forja .acao .botao small img {
  width: 18px;
  height: 18px;
}
/* relics: 4x3 icons; the panel above names the tapped one */
:is(body.cel, body.cel-deitado) #hub-outra .vitrine {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
:is(body.cel, body.cel-deitado) #hub-outra button.pedestal {
  min-height: 64px;
  padding: 4px 0 2px;
  border: 2px solid rgba(140, 190, 240, 0.18);
  border-radius: 12px;
  background: rgba(10, 24, 50, 0.6);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
:is(body.cel, body.cel-deitado) #hub-outra button.pedestal.sel {
  border-color: var(--ouro);
  box-shadow: 0 0 10px rgba(255, 210, 63, 0.45);
}
:is(body.cel, body.cel-deitado) #hub-outra .pedestal .peca {
  height: 44px;
}
:is(body.cel, body.cel-deitado) #hub-outra .pedestal .peca img {
  max-width: 42px;
  max-height: 42px;
}
:is(body.cel, body.cel-deitado) #hub-outra .pedestal .base {
  width: 46px;
  height: 12px;
  margin-top: -6px;
}
:is(body.cel, body.cel-deitado) #hub-outra .rel-info {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 72px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(30, 55, 95, 0.75), rgba(10, 24, 50, 0.88));
  border: 2px solid rgba(255, 210, 63, 0.4);
}
:is(body.cel, body.cel-deitado) #hub-outra .rel-info img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
:is(body.cel, body.cel-deitado) #hub-outra .rel-info.trava img {
  filter: brightness(0) opacity(0.45);
}
:is(body.cel, body.cel-deitado) #hub-outra .rel-info h3 {
  margin: 0;
  font-size: 15px;
}
:is(body.cel, body.cel-deitado) #hub-outra .rel-info p {
  margin: 0;
  font-size: 13px;
  color: #ffe9a8;
}
body.cel-deitado #hub-outra .reliquias {
  display: grid;
  grid-template-columns: 312px minmax(0, 1fr);
  grid-template-areas: 'v n' 'v r';
  align-content: start;
  column-gap: 12px;
}
body.cel-deitado #hub-outra .reliquias .vitrine {
  grid-area: v;
}
body.cel-deitado #hub-outra .reliquias .nota {
  grid-area: n;
}
body.cel-deitado #hub-outra .reliquias .rel-info {
  grid-area: r;
  align-self: start;
}
/* bedrock: full width, no cube; buttons 12 px apart */
:is(body.cel, body.cel-deitado) #hub-outra .bedrock {
  display: block;
  width: 100%;
  margin: 0;
}
:is(body.cel, body.cel-deitado) #hub-outra .bedrock .cubo {
  display: none;
}
:is(body.cel, body.cel-deitado) #hub-outra .bedrock .painel {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 10px;
}
body.cel-deitado #hub-outra .bedrock .painel {
  grid-template-columns: 1fr 1fr;
}
body.cel-deitado #hub-outra .bedrock .painel > :is(h2, .nota, .acoes) {
  grid-column: 1 / -1;
}
:is(body.cel, body.cel-deitado) #hub-outra .bedrock .painel h2 {
  margin: 0;
  font-size: 20px;
}
:is(body.cel, body.cel-deitado) #hub-outra .bedrock .linha {
  gap: 10px;
  padding: 8px 10px;
  font-size: 13px;
  text-transform: none;
}
:is(body.cel, body.cel-deitado) #hub-outra .bedrock .linha img {
  width: 28px;
  height: 28px;
}
:is(body.cel, body.cel-deitado) #hub-outra .bedrock :is(.linha b, .nota) {
  font-size: 13px;
}
:is(body.cel, body.cel-deitado) #hub-outra .bedrock .acoes {
  display: flex;
  gap: 12px;
}
:is(body.cel, body.cel-deitado) #hub-outra .bedrock .acoes .botao {
  flex: 1 1 0;
  height: 52px;
  margin: 0;
  font-size: 16px;
}
/* the content never runs under DIG! (it rises 16 px out of the bar) */
body.cel #hub-outra {
  bottom: calc(96px + var(--sb));
}
/* landscape Forge: the ore pills get their own row under the segments (they crossed the segments at 844x390) */
body.cel-deitado[data-aba='forge'] #hud.menu #pilulas {
  right: auto;
  left: calc(130px + var(--sl));
  top: 64px;
}
body.cel-deitado.com-segs[data-aba='forge'] #segs {
  right: 220px;
}
body.cel-deitado.com-segs[data-aba='forge'] #hub-outra {
  top: 100px;
}
/* the bar's places get the room DIG! does not use (labels in one line at 12 px; short words where needed) */
body.cel .nav-vao {
  flex: 0 0 84px;
}
body.cel #hub #cavar {
  border-width: 12px;
  border-image-width: 12px;
}
.nav-b:not([data-g='upgrades'])[data-n]:not([data-n=''])::after {
  background: #ff5a3c;
}
body.cel-deitado .nav-b[data-n]:not([data-n=''])::after {
  left: auto;
  right: 10px;
  top: 4px;
}
/* honeycomb: the box keeps inside the screen (it was 100% wide plus a 2 px margin: the right column hung
   2 px off the edge) and, lying down, keeps air above and below (the top row touched the screen's edge) */
body.cel #favo {
  width: auto;
  min-width: 0;
  margin: 0 4px;
}
body.cel-deitado #favo {
  width: auto;
  min-width: 0;
  margin: 10px 0;
}
body.cel-deitado #hub-up {
  left: calc(104px + var(--sl));
}
body.cel-deitado #ficha .f-compra {
  gap: 10px;
}
:is(body.cel, body.cel-deitado) #f-nivel {
  font-size: 13px;
}
:is(body.cel, body.cel-deitado) #hub-outra > .nota {
  font-size: 13px;
  margin: 0 0 8px;
}
:is(body.cel, body.cel-deitado) #hub-outra .forja .stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
}
body.cel-deitado #resultado .acoes {
  gap: 12px;
}
:is(body.cel, body.cel-deitado) #f-efeito b {
  font-size: 13px;
}
/* portrait Forge: rack and panel side by side (stacked, the FORGE button fell under the bar at 390x660) */
body.cel #hub-outra .forja {
  flex-direction: row;
  align-items: flex-start;
}
body.cel #hub-outra .forja .rack {
  grid-template-columns: repeat(3, 48px) !important;
  gap: 8px;
  padding: 2px;
}
body.cel #hub-outra .forja .rack .slot {
  width: 48px;
  height: 48px;
  padding: 4px;
}
body.cel #hub-outra .forja .stats {
  flex-direction: column;
  align-items: stretch;
}
body.cel #hub-outra .forja .detalhe h3 {
  font-size: 16px;
}
/* portrait results: the card is as tall as its content, centred between the header and the bottom edge,
   the buttons right under the rows (tall screens had a big empty middle) */
body.cel #resultado:not([hidden]) {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: calc(var(--st) + 50px) 8px calc(var(--sb) + 8px) !important;
}
body.cel #resultado .cartao {
  position: relative;
  inset: auto;
  flex: 0 1 auto;
  max-height: 100%;
}
body.cel #resultado .cartao .acoes {
  margin: 8px 0 0;
}
body.cel #resultado .faixa span {
  font-size: 22px !important;
  white-space: nowrap;
}
/* "+350 XP": dark, readable on the cream card */
#res-xp small {
  color: #0d4b46;
  font-weight: 800;
}
/* price buttons in the lists: the coin keeps a fixed size (on a portrait tablet the rem-sized coin squeezed the price) */
:is(body.cel, body.cel-deitado) #hub-outra .botao .ico {
  width: 18px;
  height: 18px;
}
/* MAX is a medal (no button frame, no key seal, not greyed); "Go to <requirement>" is a light button */
#f-comprar.medalha {
  border-image: none;
  border: 0.15rem solid #fff1b0;
  border-radius: 99px;
  background: radial-gradient(circle at 35% 30%, #fff6c4, #ffd23f 45%, #c48a12);
  box-shadow:
    0 0 0.9rem rgba(255, 210, 63, 0.7),
    inset 0 -0.2rem 0 rgba(0, 0, 0, 0.2);
  color: #4a2a00;
  filter: none;
  cursor: default;
  letter-spacing: 0.08em;
}
#f-comprar.medalha::before,
#f-comprar.ir::before {
  display: none !important;
}
#f-comprar.ir {
  white-space: nowrap;
}
#favo .no.destaca {
  animation: destacaNo 0.45s ease-in-out 3;
}
@keyframes destacaNo {
  50% {
    filter: brightness(1.5) drop-shadow(0 0 12px #fff);
  }
}
/* desktop: the results buttons' key seals sit inside the button's corner (above it the card clipped them to a dash) */
@media (pointer: fine) and (min-aspect-ratio: 4/5) and (min-width: 621px) {
  /* in the button's own top-right corner (over the frame), away from the label: the offsets are counted
     from the padding box, inside the thick 9-slice border, so 0.35rem landed beside the text and unbalanced it */
  #resultado .acoes [data-tecla]::before {
    top: -0.8rem;
    right: -0.7rem;
  }
}
/* desktop lands: a name stays on one line (SUNNY QUARRY broke in two and pushed its land out of line) */
.terra h3 {
  font-size: 1.2rem;
  white-space: nowrap;
  max-width: 100%; /* its box is the card: fit() shrinks a name wider than it (PLATAFORMA DE CORAL ran over its neighbours) */
  box-sizing: border-box;
}
/* the stat lines too (Russian "Прочность камешков x16" ran out of the card): fit() shrinks them to the card width */
body:not(.cel):not(.cel-deitado) .terra p,
body:not(.cel):not(.cel-deitado) .terra p span {
  max-width: 100%;
  box-sizing: border-box;
}
:is(body.cel, body.cel-deitado) #hub-outra .terra h3 {
  white-space: normal;
}
/* landscape phones, options/pause: two columns so CLOSE never falls off a 360 px tall screen */
body.cel-deitado #pausa .painel.opcoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  width: min(620px, calc(100vw - 24px));
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  align-content: start;
}
body.cel-deitado #pausa .painel.opcoes > :is(h2, #idiomas, .teclas, .acoes) {
  grid-column: 1 / -1;
  margin: 0;
}
body.cel-deitado #pausa .painel.opcoes > .botao {
  height: 44px;
  margin: 0;
  font-size: 15px;
}
body.cel-deitado #pausa .painel.opcoes .acoes {
  display: flex;
  gap: 12px;
  justify-content: center;
}
body.cel-deitado #pausa .painel.opcoes .acoes .botao {
  height: 48px;
  margin: 0;
}
/* the story row of the options (journal + opening), from the title and the hub only */
#pausa:not(.no-turno) .op-historia {
  display: none;
}
.op-historia {
  display: flex;
  gap: 0.5rem;
}
.op-historia .botao {
  flex: 1 1 0;
  min-width: 0;
}
body.cel-deitado #pausa .painel.opcoes > .op-historia {
  grid-column: 1 / -1;
}
body.cel-deitado #pausa .op-historia .botao {
  height: 44px;
  font-size: 15px;
}
/* Opal stands on the title island; the island holds still under her feet (no bobbing: the feet stay on the grass) */
body.opal-ilha .ilha-titulo img,
body.opal-ilha .ilha-titulo .sombra {
  animation: none;
}
#pausa .op-historia .botao {
  height: 3.2rem;
  font-size: 1.1rem;
}
/* landscape phone results with a relic row. Two sub-columns in the narrow right
   column squeezed the name to one letter per line: one column, the name on one line, the bonus text wraps on the right */
body.cel-deitado #resultado .linhas.muitas {
  grid-template-columns: 1fr;
}
body.cel-deitado #resultado .linhas > div {
  grid-template-columns: 24px auto minmax(0, 1fr);
}
body.cel-deitado #resultado .linhas .rn {
  white-space: nowrap;
}
body.cel-deitado #resultado .linhas b.txt {
  font-size: 13px;
  line-height: 1.2;
  text-align: right;
}
.teclas .nq {
  white-space: nowrap;
}
/* portrait Forge on tablets. The lock and the equipped seal were sized in rem
   (big on a tablet) inside 48 px slots: locks overlapped the neighbours, the seal was cut. Pixel sizes, bigger slots
   when the screen is wide enough, the seal inside the rack. */
body.cel #hub-outra .forja .rack {
  overflow: visible;
}
body.cel #hub-outra .forja .slot.trava::after {
  width: 18px;
  height: 21px;
  bottom: 4px;
}
body.cel #hub-outra .forja .slot .eq {
  width: 18px;
  height: 18px;
  right: -3px;
  top: -3px;
}
@media (min-width: 700px) {
  body.cel #hub-outra .forja .rack {
    grid-template-columns: repeat(3, 76px) !important;
    gap: 10px;
    padding: 6px;
  }
  body.cel #hub-outra .forja .rack .slot {
    width: 76px;
    height: 76px;
    padding: 6px;
  }
  body.cel #hub-outra .forja .slot.trava::after {
    width: 24px;
    height: 28px;
    bottom: 6px;
  }
  body.cel #hub-outra .forja .slot .eq {
    width: 24px;
    height: 24px;
  }
}
/* the drag hand on phones is small (56 px): it shows the gesture without hiding a group of pebbles */
:is(body.cel, body.cel-deitado) #mao img {
  width: 56px;
}

/* ---- the guide's own strip in the menus (phones, portrait tablets). While Opal speaks in the hub
   (body.guia-fala, set by opal.js) the content moves down by --fg and the balloon lives in the strip that opened:
   never over a button, a price, a name or the target. opal.js measures the strip, so no layout is named here. ---- */
#faixa-guia {
  display: none;
}
body {
  --fg: 64px;
}
body.cel-deitado {
  --fg: 56px;
}
body.guia-fala :is(#hub-up, #hub-outra) {
  margin-top: var(--fg) !important;
}

/* ---- results ---- */
/* "+N XP": plain dark teal on the cream card (the .num outline made it dark on dark), never cut at the card's edge */
#res-xp {
  min-width: 0;
  max-width: 100%;
}
#res-xp .barra {
  min-width: 0;
}
#res-xp small {
  flex: none;
  color: #0b5a54;
  text-shadow: none;
  font-size: 14px;
  font-weight: 800;
}
/* landscape phones: the ribbon across the whole card, numbers on the left, rows + buttons on the right */
body.cel-deitado #resultado .cartao {
  grid-template-rows: auto auto auto auto 1fr;
}
body.cel-deitado #resultado .cartao > .faixa {
  grid-column: 1 / -1;
  grid-row: 1;
}
body.cel-deitado #resultado .cartao > .linhas {
  grid-row: 2 / 5;
}
body.cel-deitado #resultado .cartao > .acoes {
  grid-row: 5;
}

/* ---- portrait tablets (600-1024 px wide, body.cel): the menus are drawn at tablet scale (x1.5: body text
   >= 16 px, lists and panels use the height) instead of a phone layout lost in a big screen ---- */
@media (min-width: 600px) and (orientation: portrait) {
  body.cel #hub,
  body.cel #hud.menu {
    zoom: 1.5;
  }
  @media (max-width: 799px) {
    body.cel #hub,
    body.cel #hud.menu {
      zoom: 1.34; /* 768x1024: 12 px texts drawn at 16 px; the five lands and the six shop cards fit */
    }
    body.cel[data-aba='lands'] #hub-outra :is(.trilha, .grade) {
      gap: 3px !important;
    }
  }
  /* the Shop's 6 items in 2 columns (no scrolling); the lands keep "Ore value" under the name */
  body.cel[data-aba='shop'] #hub-outra .grade {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.cel #hub-outra .terra p {
    display: block;
  }
  body.cel[data-aba='shop'] #hub-outra .item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: 'i' 't' 'd' 'p';
    justify-items: center;
    align-content: center;
    text-align: center;
    row-gap: 2px;
    padding: 4px 10px;
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
  }
  body.cel[data-aba='shop'] #hub-outra .item .compra {
    height: auto;
    min-height: 0;
    align-self: start;
  }
  body.cel[data-aba='shop'] #hub-outra .grade {
    grid-auto-rows: auto;
    align-content: start;
  }
}

/* the "+N" under the combo meter never below 14 px (landscape phones have a small rem) */
#m-pop {
  font-size: max(14px, 1.15rem);
}

/* ================= v1 ================= */
/* --- false buttons: states are labels with a drawn check (no button frame); disabled buttons are plainly off --- */
.selo.verde,
.acao .equipado {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  height: auto;
  min-height: 0;
  padding: 0.25rem 0.2rem;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #7df0b4;
  text-shadow: var(--contorno);
  letter-spacing: 0.04em;
  animation: none;
  overflow: visible;
}
.selo.verde::after {
  display: none;
}
.selo.verde::before,
.acao .equipado::before {
  content: '';
  flex: none;
  width: 0.38em;
  height: 0.72em;
  margin: -0.2em 0.1em 0 0.15em;
  border: solid #39d98a;
  border-width: 0 0.2em 0.2em 0;
  transform: rotate(42deg);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6));
}
.botao[disabled]:not(.medalha) {
  filter: grayscale(1) brightness(0.72);
  opacity: 0.72;
  text-shadow: none;
}
/* MAX: a medal the size of its word on every format (it was a full-width yellow bar on desktop) */
#f-comprar.medalha {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  margin-inline: auto;
  padding: 0 2.2em;
  pointer-events: none;
  border-image: none !important;
  border: 0.15rem solid #fff1b0 !important;
  border-radius: 99px !important;
  background: radial-gradient(circle at 35% 30%, #fff6c4, #ffd23f 45%, #c48a12) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
#ficha[data-estado='max'] .f-custo {
  display: none;
}
/* phones: a locked node says what it needs, beside the "Go to" button */
body.cel #ficha[data-estado='trava'] #f-desc.req {
  display: block !important;
  grid-area: compra;
  justify-self: start;
  align-self: center;
  width: 36%;
  font: 700 12px/14px var(--fonte);
  color: #ffb4a0;
}
body.cel #ficha[data-estado='trava'] .f-compra {
  justify-self: end;
  width: 62%;
}
body.cel #ficha[data-estado='trava'] #f-comprar {
  flex: 1 1 auto;
  min-width: 0;
}

/* --- shift: the combo meter beside the coin counter on wide screens (off the platform's top corner) --- */
body:not(.cel):not(.cel-deitado) #hud.turno #medidor {
  left: calc(var(--m) + 12.6rem);
  transform: none;
}
/* signs (GOLD SHOWER!...) in the phone slot: the game's dark plaque with the gold rim, not a white balloon */
body[data-fase='hud'] #slot-msg > span.sinal {
  background: linear-gradient(#24386a, #16264a) !important;
  color: var(--ouro) !important;
  box-shadow:
    inset 0 0 0 2px rgba(255, 210, 63, 0.8),
    0 4px 12px rgba(0, 0, 0, 0.4) !important;
  text-shadow: var(--contorno);
  letter-spacing: 0.05em;
}
body[data-fase='hud'] #slot-msg > span.sinal small {
  color: #fff !important;
}

/* --- results --- */
/* phones / portrait tablets: the ribbon stops before Opal's boots (she sits on the card's top edge, boots over its margin) */
/* (the ribbon is no longer shortened for Opal's boots; see the end of the file) */
@media (min-aspect-ratio: 4/5) and (min-width: 621px) {
  /* the two-column card: air between the columns, the ribbon the same size as on the one-column card (it covered "COLLECTED") */
  body:not(.cel):not(.cel-deitado) .linhas.muitas {
    column-gap: 2.6rem;
  }
  body:not(.cel):not(.cel-deitado) #resultado.largo .faixa {
    width: 33rem;
  }
}
/* NEW BEST!: the shine passes once and leaves (a frozen frame of the loop read as a white smudge) */
.linhas .selo::after {
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}
/* portrait tablets: the results card and the shift HUD at tablet scale, the buttons in the thumb zone */
@media (min-width: 600px) and (orientation: portrait) {
  body.cel #resultado .cartao,
  body.cel #hud.turno {
    zoom: 1.5;
  }
  body.cel #resultado:not([hidden]) {
    justify-content: flex-end;
    padding-bottom: calc(var(--sb) + 11vh) !important;
  }
  @media (max-width: 799px) {
    body.cel #resultado .cartao,
    body.cel #hud.turno {
      zoom: 1.34;
    }
  }
}

/* --- guide strip on the Shop: it takes the place of the explanation line (no scrolling while the tip shows) --- */
body.guia-fala[data-aba='shop'] #hub-outra .nota {
  display: none;
}
/* --- orphans: explanation lines break in even lines (no lonely last word) --- */
#hub-outra p,
#hub-outra small,
#hub-outra .txt,
#inicio p,
.terra p,
#metas-lista span {
  text-wrap: balance;
}
/* --- landscape phones, options: CLOSE readable (it was ~10 px in a big button); no hole beside "Language" --- */
body.cel-deitado #pausa .painel.opcoes .acoes .botao {
  font-size: 18px;
}
body.cel-deitado #pausa .painel.opcoes > #op-vibra:not([hidden]) ~ #op-idioma {
  grid-column: 1 / -1;
}
@media (min-width: 600px) and (orientation: portrait) {
  body.cel[data-fase='hud'] #slot-msg {
    zoom: 1.5;
  }
  @media (max-width: 799px) {
    body.cel[data-fase='hud'] #slot-msg {
      zoom: 1.34;
    }
  }
}
/* End of estilo-5.css: complete file, part 5 of 6 of the styles. It continues in estilo-6.css, loaded right after it by index.html. */
