/* Crater Crush: Opal (opal.js). Only the character and the story pictures use the new flat art; the rest is the
   game's own HUD: the navy panel (painel-azul.webp) for cards and the opening, the gold / light buttons (ouro.webp,
   claro.webp), Fredoka, the HUD's shadows. Speech balloons are plain white, very round, soft shadow, HUD navy text,
   a simple tail (no cream lip under it).
   Frames are nine-slice border-images, so molduras.js paints them seamless in the game like every other frame.
   Sizes in rem (the game's root size follows the screen). */
.opal-capa,
.opal-modal {
  --o-tinta: var(--tinta, #0a1730);
  --o-papel: #ffffff;
  --o-aro: #1f437f; /* HUD navy (dots, small accents) */
  --o-texto: #1d2c4a;
  --o-ouro: #ffd23f;
  --o-ouro-2: #e9a91c;
  --o-linha: max(2.5px, 0.2rem);
  font-family: var(--fonte, 'Fredoka', 'Baloo 2', 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif);
  -webkit-tap-highlight-color: transparent;
}
.opal-capa {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.opal-capa [hidden],
.opal-modal [hidden] {
  display: none !important;
}

/* ---------- the balloon ---------- */
.opal-balao {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: calc(100vw - 16px);
  padding: 0.55rem 1rem 0.6rem;
  background: var(--o-papel);
  border-radius: 1.4rem;
  color: var(--o-texto);
  box-shadow: 0 0.3rem 0.9rem rgba(0, 0, 0, 0.28);
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.opal-balao.ob-faixa {
  border-radius: 1rem;
  padding: 0.4rem 0.9rem;
}
.opal-balao.pop {
  animation: obPop 0.26s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}
@keyframes obPop {
  0% {
    transform: scale(0.92);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
.ob-corpo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}
.ob-txt {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  white-space: normal;
  hyphens: manual;
  -webkit-hyphens: manual;
  word-break: normal;
  overflow-wrap: normal;
  letter-spacing: 0.005em;
}
.ob-off {
  visibility: hidden;
}
/* CJK: Japanese and Chinese never break before closing punctuation; Korean breaks between words only */
:lang(ja) .ob-txt,
:lang(zh) .ob-txt {
  line-break: strict;
  word-break: normal;
}
:lang(ko) .ob-txt {
  word-break: keep-all;
  line-break: strict;
}
:lang(ja) .ob-txt {
  font-family: var(--fonte-ja, 'Hiragino Maru Gothic ProN', 'Yu Gothic UI', 'Meiryo', sans-serif);
}
:lang(zh) .ob-txt {
  font-family: var(--fonte-zh, 'PingFang SC', 'Microsoft YaHei UI', 'Noto Sans SC', sans-serif);
}
:lang(ko) .ob-txt {
  font-family: var(--fonte-ko, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif);
}
.ob-pe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: max(12px, 0.78rem);
  font-weight: 600;
  color: #6b5a44;
}
.ob-pe:not(:has(> :not([hidden]):not(:empty))) {
  display: none;
}
.ob-dots:empty,
.ob-tap:empty {
  display: none;
}
.ob-dots {
  display: inline-flex;
  gap: 0.25rem;
}
.ob-dots i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #d5bfab;
}
.ob-dots i.on {
  background: var(--o-aro);
}
/* "tap to continue": a small triangle nodding down (slow, small) */
.ob-tap::after {
  content: '';
  display: inline-block;
  margin-left: 0.35rem;
  border: 0.32rem solid transparent;
  border-top: 0.42rem solid var(--o-aro);
  border-bottom: 0;
  vertical-align: middle;
  animation: obNod 1.3s ease-in-out infinite;
}
@keyframes obNod {
  50% {
    transform: translateY(0.15rem);
  }
}
/* skip: the game's small pill (as the old #balao .pular) */
.ob-pular {
  font: inherit;
  font-weight: 700;
  color: #1d2c4a;
  background: rgba(29, 44, 74, 0.12);
  border: 0;
  border-radius: 99px;
  padding: 0.2rem 0.75rem;
  min-height: 1.9rem;
  min-width: 2.75rem;
  cursor: pointer;
}
.ob-pular:focus-visible,
.om-btn:focus-visible,
.om-pular:focus-visible {
  outline: 3px solid var(--o-ouro);
  outline-offset: 2px;
}
@media (pointer: coarse) {
  .ob-pular,
  .om-btn,
  .om-pular {
    min-height: 44px;
    min-width: 44px;
  }
}
/* the portrait inside the balloon, when the figure has nowhere to stand */
.ob-av {
  display: none;
  flex: none;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  overflow: hidden;
  background: #ffe2a3;
  border: 0.16rem solid var(--o-aro);
}
.com-av > .ob-av {
  display: block;
}
.ob-av img {
  display: block;
  width: 100%;
  height: 135%;
  object-fit: cover;
  object-position: 50% 0;
}
.opal-sonda {
  visibility: hidden;
  left: 0;
  top: 0;
}

/* the tail (SVG drawn by opal.js from the balloon edge into the head box) */
.opal-rabo {
  position: absolute;
  z-index: 3;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 0.15rem 0.2rem rgba(0, 0, 0, 0.18));
}
.opal-rabo .r-fill {
  fill: var(--o-papel);
}
.opal-rabo .r-line {
  display: none;
  fill: none;
  stroke: var(--o-aro);
  stroke-width: var(--bw, 3px);
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* ---------- the figure ---------- */
.opal-fig {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.opal-fig-img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 0.25rem 0.35rem rgba(0, 0, 0, 0.3));
}
/* contact shadow under the feet / seat: flat, no blur */
.opal-sombra {
  position: absolute;
  width: 44%;
  height: 5%;
  transform: translate(-50%, -55%);
  border-radius: 50%;
  background: rgba(10, 23, 48, 0.3);
}
.opal-fig.k-sit .opal-sombra {
  width: 54%;
  height: 4%;
}
/* entering: a soft spring from the support point (squash within 8%); a peek rises from behind its panel */
.opal-fig.entra .opal-fig-img {
  animation: ofEntra 0.46s cubic-bezier(0.3, 1.45, 0.5, 1) both;
}
.opal-fig.k-peek.entra .opal-fig-img {
  animation: ofEspia 0.42s cubic-bezier(0.2, 1.3, 0.5, 1) both;
}
@keyframes ofEntra {
  0% {
    opacity: 0;
    transform: translateY(8%) scale(1.04, 0.92);
  }
  55% {
    opacity: 1;
    transform: translateY(-2%) scale(0.97, 1.04);
  }
  100% {
    transform: none;
  }
}
@keyframes ofEspia {
  0% {
    transform: translateY(45%);
  }
  100% {
    transform: none;
  }
}
.opal-fig.pula .opal-fig-img {
  animation: ofPula 0.42s ease-out;
}
@keyframes ofPula {
  0%,
  100% {
    transform: none;
  }
  30% {
    transform: translateY(-6%) scale(0.96, 1.05);
  }
  65% {
    transform: scale(1.04, 0.95);
  }
}

/* ---------- guide: spotlight and hand ---------- */
.opal-foco {
  position: absolute;
  z-index: 0;
  border-radius: 1.2rem;
  box-shadow:
    0 0 0 200vmax rgba(4, 10, 22, 0.5),
    0 0 0 0.2rem rgba(255, 214, 90, 0.9),
    0 0 1.2rem 0.3rem rgba(255, 214, 90, 0.55);
  pointer-events: none;
  animation: ofFoco 0.3s ease-out both;
}
@keyframes ofFoco {
  0% {
    opacity: 0;
  }
}
.opal-mao {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}
.opal-mao.cima {
  transform: scaleY(-1);
}
/* from the right / from the left of the target, turned around the fingertip (17% 4% of the art) */
.opal-mao.dir {
  transform-origin: 17% 4%;
  transform: rotate(-90deg);
}
.opal-mao.esq {
  transform-origin: 17% 4%;
  transform: rotate(90deg);
}
/* no free side for the hand: the ring alone points, pulsing strongly */
.opal-foco.forte {
  animation:
    ofFoco 0.3s ease-out both,
    ofForte 0.9s ease-in-out 0.3s infinite;
}
@keyframes ofForte {
  0%,
  100% {
    box-shadow:
      0 0 0 200vmax rgba(4, 10, 22, 0.5),
      0 0 0 0.25rem rgba(255, 214, 90, 1),
      0 0 1.2rem 0.3rem rgba(255, 214, 90, 0.6);
  }
  50% {
    box-shadow:
      0 0 0 200vmax rgba(4, 10, 22, 0.5),
      0 0 0 0.55rem rgba(255, 214, 90, 1),
      0 0 2.2rem 0.9rem rgba(255, 214, 90, 0.85);
  }
}
@media (prefers-reduced-motion: reduce) {
  .opal-foco.forte {
    animation: none;
    box-shadow:
      0 0 0 200vmax rgba(4, 10, 22, 0.5),
      0 0 0 0.45rem rgba(255, 214, 90, 1),
      0 0 1.6rem 0.6rem rgba(255, 214, 90, 0.8);
  }
}
.opal-mao img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 17% 4%;
  filter: drop-shadow(0 0.3rem 0.4rem rgba(0, 0, 0, 0.4));
}
.opal-mao.tap img {
  animation: omTap 1s ease-in-out infinite;
}
@keyframes omTap {
  0%,
  100% {
    transform: translate(0.3rem, 0.55rem);
  }
  50% {
    transform: translate(0, 0) scale(0.95);
  }
}
.opal-mao.drag img {
  animation: omDrag 2.4s ease-in-out infinite;
}
@keyframes omDrag {
  0%,
  100% {
    transform: translate(-3.5rem, 0.6rem) rotate(-6deg);
  }
  50% {
    transform: translate(3.5rem, -0.6rem) rotate(5deg);
  }
}

/* ---------- modals: opening, milestone card, journal ---------- */
.opal-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: rgba(6, 14, 32, 0.72);
  color: #fff;
  animation: ofFoco 0.2s ease-out both;
}
.opal-modal.om-abertura {
  background: #0a1730;
}
.om-palco {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-width: 100%;
  max-height: 100%;
}
.om-moldura {
  flex: none;
  line-height: 0;
  border-style: solid;
  border-color: transparent;
  border-width: 1rem;
  border-image: url(arte/ui/painel-azul.webp) 64 fill / 1rem stretch;
  filter: drop-shadow(0 0.8rem 1.4rem rgba(0, 0, 0, 0.4));
  cursor: pointer;
}
.om-moldura.troca .om-quadro {
  animation: ofFoco 0.18s ease-out both;
}
/* never drawn larger than the file (--nat-w/--nat-h = file size / device pixel ratio, set by opal.js) */
.om-quadro {
  display: block;
  width: auto;
  height: auto;
  max-width: min(var(--nat-w, 100%), var(--livre-w, calc(100vw - 2.5rem)));
  max-height: min(var(--livre-h, 60vh), var(--nat-h, 100vh));
  object-fit: contain;
  border-radius: 0.4rem;
}
.om-legenda {
  position: relative;
  cursor: default;
}
.om-barra {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.om-btn {
  font: inherit;
  font-weight: 800;
  font-size: max(15px, 1.15rem);
  letter-spacing: 0.02em;
  color: #4a2a00;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  height: 3rem;
  padding: 0 0.6rem;
  border-style: solid;
  border-color: transparent;
  border-width: 1rem;
  border-image: url(arte/ui/ouro.webp) 70 fill / 1rem stretch;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  filter: drop-shadow(0 0.25rem 0.35rem rgba(0, 0, 0, 0.35));
}
.om-btn.claro {
  color: #22324f;
  border-image-source: url(arte/ui/claro.webp);
}
.om-btn:active {
  transform: translateY(0.12rem);
}
.om-btn[disabled] {
  filter: grayscale(0.85) brightness(0.8);
  opacity: 0.85;
  cursor: default;
}
.om-pular {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  font: inherit;
  font-weight: 700;
  font-size: max(14px, 0.95rem);
  color: #fff;
  text-shadow: var(--contorno, 0 0.1em 0 #0a1730);
  background: rgba(10, 23, 48, 0.55);
  border: 0.14rem solid rgba(255, 255, 255, 0.75);
  border-radius: 2rem;
  padding: 0.3rem 1rem;
  min-height: 2.4rem;
  cursor: pointer;
}
.om-dots {
  display: inline-flex;
  gap: 0.4rem;
}
.om-dots i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  border: 2px solid var(--o-tinta);
  background: #3d5a86;
}
.om-dots i.on {
  background: var(--o-ouro);
}
.om-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  border-style: solid;
  border-color: transparent;
  border-width: 1.6rem;
  border-image: url(arte/ui/painel-azul.webp) 64 fill / 1.6rem stretch;
  padding: 0 0.2rem;
  filter: drop-shadow(0 0.8rem 1.4rem rgba(0, 0, 0, 0.4));
}
.om-card.pop {
  animation: obPop 0.3s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}
.om-linha {
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* the portrait stands behind a ledge: its straight bottom edge is hidden under the dark line */
.om-rosto {
  flex: none;
  align-self: flex-end;
  width: clamp(4.2rem, 16vw, 6.5rem);
  max-width: calc(340px / var(--dpr, 1));
  overflow: hidden;
  border-bottom: 0.22rem solid #0d2a52;
}
.om-rosto img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -9%;
}
.om-fala {
  position: relative;
  cursor: default;
}
.om-fala::before,
.om-fala::after {
  content: '';
  position: absolute;
  top: 45%;
  border-style: solid;
  border-color: transparent;
}
.om-fala::before {
  left: -1.72rem;
  border-width: 0.6rem 0.85rem 0.6rem 0;
  border-right-color: transparent;
  transform: translateY(-50%);
}
.om-fala::after {
  left: -0.68rem;
  border-width: 0.45rem 0.7rem 0.45rem 0;
  border-right-color: var(--o-papel);
  transform: translateY(-50%);
}
.om-livro {
  width: min(40rem, calc(100vw - 16px));
  align-items: stretch;
}
.om-topo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.om-topo h3 {
  margin: 0;
  font-size: max(18px, 1.4rem);
  text-shadow: var(--contorno, 0 0.1em 0 #0a1730);
}
.om-topo span {
  font-size: max(14px, 0.95rem);
  font-weight: 600;
}
.om-lista {
  list-style: none;
  margin: 0;
  padding: 0 0.2rem 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.om-lista li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.om-lista li img {
  flex: none;
  width: 2.8rem;
  height: 2.8rem;
  object-fit: cover;
  object-position: 50% 0;
  border-radius: 50%;
  background: #ffe2a3;
  border: 0.16rem solid var(--o-aro);
}
.om-lista p {
  flex: 1;
  margin: 0;
  padding: 0.45rem 0.75rem;
  font-size: max(14px, 0.95rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--o-texto);
  background: var(--o-papel);
  border: 0.16rem solid #d5bfab;
  border-radius: 0.8rem;
  box-shadow: 0 0.2rem 0 rgba(0, 0, 0, 0.25);
  overflow-wrap: break-word;
  hyphens: manual;
}
.om-lista li.trancado p {
  color: #c7d6ea;
  background: rgba(10, 23, 48, 0.35);
  border-color: rgba(199, 214, 234, 0.4);
  border-style: dashed;
  text-align: center;
}
.om-lista li.om-sep h4 {
  margin: 0.4rem 0 0;
  font-size: max(15px, 1.05rem);
}

/* less motion: no spring, no nodding, no hand loop, no pop (the game sets html.calmo; opal.js may set .opal-calmo) */
html.calmo .opal-capa *,
html.calmo .opal-modal *,
html.opal-calmo .opal-capa *,
html.opal-calmo .opal-modal *,
html.calmo .opal-modal,
html.opal-calmo .opal-modal {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .opal-capa *,
  .opal-modal,
  .opal-modal * {
    animation: none !important;
    transition: none !important;
  }
}
.ob-av.reacao img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

/* the menu strip on wide screens (all but portrait): the skip pill beside the text, one short row */
body:not(.cel) .opal-balao.ob-faixa .ob-corpo {
  flex-direction: row;
  gap: 0.6rem;
}

/* story cards: Opal's bust is anchored on the panel's LOWER edge (it spans the text and the button rows and
   ends where the frame begins), never a straight cut in the middle of the panel */
.om-cartao .om-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.8rem;
  justify-items: center;
  align-items: center;
}
.om-cartao .om-card > .om-moldura {
  grid-column: 1 / -1;
}
.om-cartao .om-linha {
  display: contents;
}
.om-cartao .om-rosto {
  grid-column: 1;
  grid-row: span 2;
  align-self: end;
  border-bottom: 0;
  margin-bottom: -0.85rem;
}
.om-cartao .om-fala,
.om-cartao .om-card > .om-btn {
  grid-column: 2;
}

/* the keyboard focus ring follows the button's round corners (the 9-slice art has no border-radius of its own) */
.ob-pular:focus-visible,
.om-btn:focus-visible,
.om-pular:focus-visible {
  border-radius: 1rem;
}
/* a card with a picture has no bust (the picture already shows her; the bust was cut
   by the frame and doubled the character): the line and the button take the whole width, the balloon has no tail */
.om-card.so-arte .om-rosto {
  display: none;
}
.om-card.so-arte .om-fala::before,
.om-card.so-arte .om-fala::after {
  display: none;
}
.om-cartao .om-card.so-arte {
  grid-template-columns: minmax(0, 1fr);
}
.om-cartao .om-card.so-arte .om-fala,
.om-cartao .om-card.so-arte > .om-btn {
  grid-column: 1;
}
/* the first-visit line of a tab explains the panel under it: only the gold ring on the tab,
   no dark veil over the panel being explained */
.opal-foco.sem-sombra {
  box-shadow:
    0 0 0 0.2rem rgba(255, 214, 90, 0.9),
    0 0 1.2rem 0.3rem rgba(255, 214, 90, 0.55);
}
/* the first-visit line of a tab explains the panel under it: only the gold ring on the tab,
   no dark veil over the panel being explained */
.opal-foco.sem-sombra {
  box-shadow:
    0 0 0 0.2rem rgba(255, 214, 90, 0.9),
    0 0 1.2rem 0.3rem rgba(255, 214, 90, 0.55);
}
.opal-foco.sem-sombra.forte {
  animation: ofFoco 0.3s ease-out both;
}
/* "Skip tips" is a quiet text link; the tap area stays
   44 px tall (padding), the text 13 px, underlined */
.ob-pular {
  background: none !important;
  box-shadow: none !important;
  border: 0;
  color: #5a6a88 !important;
  font-size: 13px !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  padding: 0 8px !important;
  border-radius: 8px;
}

/* v1 a tab's first-visit line is one compact row in every format: small face, 1-2 lines, the skip
   link beside the text; at most 48 px tall. It takes the place of the tab's own header (body.guia-troca: the title
   board and the explanation line are hidden under it), so nothing is pushed or re-fitted */
.opal-balao.ob-faixa .ob-corpo {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.opal-balao.ob-faixa {
  padding: 5px 12px;
  gap: 8px;
}
.opal-balao.ob-faixa .ob-av {
  width: 34px;
  height: 34px;
}
.opal-balao.ob-faixa .ob-txt {
  line-height: 1.22;
}
.opal-balao.ob-faixa .ob-pular {
  min-height: 36px;
  white-space: nowrap;
}
body.guia-troca #hub-outra :is(.tabua, .nota:not(.bedrock .nota)) {
  display: none !important;
}
/* the lines that carry information (map pieces in Lands, "2/12 found" in Relics, what Bedrock still needs)
   stay with the tip open wherever there is height for them */
@media (min-height: 700px) and (max-width: 599px) {
  /* .nota three times = above the hiding rule's (1,4,1) (the single .nota lost and the rule was dead) */
  body.guia-troca:is([data-aba='lands'], [data-aba='relics']) #hub-outra .nota.nota.nota {
    display: block !important;
  }
}
/* "Skip tips": 14 px on wide screens */
body:not(.cel):not(.cel-deitado) .ob-pular {
  font-size: max(14.6px, 0.85rem) !important;
}

/* the results line on phones, one compact row outside the card */
.opal-balao.ob-linha {
  padding: 5px 10px;
  gap: 7px;
  border-radius: 1rem;
}
.opal-balao.ob-linha .ob-corpo {
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
}
.opal-balao.ob-linha .ob-av {
  width: 28px;
  height: 28px;
}
.opal-balao.ob-linha .ob-txt {
  line-height: 1.22;
}
.opal-balao.ob-linha .ob-pular {
  min-height: 30px;
  white-space: nowrap;
}
/* the opening's Skip is in the button bar, after Next (it overlapped the corner of the picture's frame) */
.om-barra .om-pular {
  position: static;
  margin-left: 0.6rem;
  min-height: 44px;
  min-width: 44px;
  font-size: max(13px, 0.85rem);
  padding: 0.2rem 0.8rem;
  background: none;
  border-color: rgba(255, 255, 255, 0.45);
}
/* the journal's list fades out at its bottom edge (a line cut flat above Close read as a broken layout);
   the padding lets the last line scroll clear of the fade */
.om-lista {
  -webkit-mask-image: linear-gradient(#000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 24px), transparent);
  padding-bottom: 22px;
}
/* the hub (desktop, landscape tablet): standing on the workshop floor she read as a sticker. The same wide,
   soft contact shadow and light-to-dark shading as on the title's island (no new art) */
.opal-fig.s-hub.k-stand .opal-sombra,
.opal-fig.s-hub:not(.k-sit):not(.k-peek) .opal-sombra {
  width: 78%;
  height: 9%;
  background: radial-gradient(closest-side, rgba(4, 8, 20, 0.62), rgba(4, 8, 20, 0.34) 60%, rgba(4, 8, 20, 0));
}
.opal-fig.s-hub:not(.k-sit):not(.k-peek)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    168deg,
    rgba(255, 214, 150, 0.16) 0%,
    rgba(255, 214, 150, 0) 34%,
    rgba(10, 14, 40, 0) 52%,
    rgba(10, 14, 40, 0.34) 100%
  );
  -webkit-mask: var(--pose) center / 100% 100% no-repeat;
  mask: var(--pose) center / 100% 100% no-repeat;
  pointer-events: none;
}

/* ---------- the hub's bench ---------- */
/* Desktop / landscape tablet: the balloon is the seat. Same box on every step of the tutorial (fixed width and height,
   bottom left); she sits on its top edge, legs hanging in front of its left end, the words to the right of them. */
.opal-balao.ob-banco {
  box-sizing: border-box;
  width: min(27rem, 46vw);
  min-height: 5.6rem;
  padding-left: 8.4rem;
  justify-content: center;
  cursor: default;
}
.opal-balao.ob-banco .ob-corpo {
  flex: 1 1 auto;
}
.opal-fig.s-hub.k-sit {
  z-index: 3;
}
/* short screens, the journal: a taller fade, so the row under it reads as "there is more" (not as a line
   cut in half by Close), and air between the list and the button */
@media (max-height: 480px) {
  .om-diario .om-lista {
    -webkit-mask-image: linear-gradient(#000 calc(100% - 44px), transparent);
    mask-image: linear-gradient(#000 calc(100% - 44px), transparent);
    padding-bottom: 40px;
    margin-bottom: 6px;
  }
}
/* a story card is a step of its own: what is behind it (the results card) is dimmed almost away, so the
   reward number never peeks over the card's frame */
.opal-modal:not(.om-abertura):not(.om-diario) {
  background: rgba(6, 14, 32, 0.9);
}

/* ===== v1 ===== */
/* the journal: pages and memories are two lists in one box. Tall screens: one scroll, stacked. Landscape phones: two
   columns side by side, each scrolling whole ABOVE Close with the fade only at its own bottom edge */
.om-cols {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 24px), transparent);
  padding-bottom: 22px;
}
.om-diario .om-cols .om-lista {
  overflow: visible;
  flex: none;
  -webkit-mask-image: none;
  mask-image: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
@media (max-height: 480px) and (min-aspect-ratio: 1/1) {
  .om-livro {
    width: min(52rem, calc(100vw - 16px));
  }
  .om-cols {
    flex-direction: row;
    gap: 0.8rem;
    overflow: hidden;
    -webkit-mask-image: none;
    mask-image: none;
    padding-bottom: 0;
    margin-bottom: 6px;
  }
  .om-diario .om-cols .om-lista {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    -webkit-mask-image: linear-gradient(#000 calc(100% - 20px), transparent);
    mask-image: linear-gradient(#000 calc(100% - 20px), transparent);
    padding-bottom: 18px;
  }
  .om-cols .om-sep h4 {
    margin-top: 0;
  }
}
/* the pills with her face (tab lines, results line on phones): the face is larger than the pill's line and leans out
   of its left end, so the line reads as HERS (it looked like a UI sticker with a round icon inside) */
.opal-balao.ob-faixa .ob-av,
.opal-balao.ob-linha .ob-av {
  transform: translateX(-9px) scale(1.28);
  transform-origin: 50% 55%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
/* the journal's title and its Close button in the same voice as the game's own panels (OPTIONS / CLOSE) */
.om-diario .om-topo h3,
.om-diario .om-btn {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* "Tap to continue" and "Skip tips": never under 13 px on screen; 14 px real (the layer is drawn at ~0.97) */
.ob-tap,
.ob-pular,
.ob-skip {
  font-size: max(14.6px, 0.85rem) !important;
}
/* v1 the card balloon's tail sits at its lower left corner and points down-left at her
   face (her portrait stands at the bottom of the row; the tail pointed left at mid height, above her head) */
.om-fala.om-fala::before {
  display: none;
}
.om-fala.om-fala::after {
  top: auto;
  bottom: 0.5rem;
  left: -1.3rem;
  width: 1.4rem;
  height: 1.7rem;
  border: 0;
  background: var(--o-papel);
  clip-path: polygon(100% 0, 100% 55%, 0 100%);
  transform: none;
}
/* End of opal.css (complete file). */
