/* =============================================================
   NEXO · boost 3: cada objeto da parede faz a sua prova
   Carregado depois do nexo-boost.css. Mesma regra das outras camadas: o
   estado "antes" de um efeito só vale com a classe dele no <html>
   (nx-a-<nome>); sem JavaScript, ou se o efeito falhar, tudo aparece pronto.
   ============================================================= */

/* ---------- números honestos: o lápis risca, a caneta reescreve ---------- */
.nx-re {
  display: inline-grid;
  vertical-align: baseline;
}
.nx-re > span {
  grid-area: 1 / 1;
  white-space: nowrap;
}
.nx-re__velho {
  position: relative;
  color: var(--grafite);
  animation: nx-re-sai 0.22s var(--ease) calc(var(--atraso, 0s) + 0.3s) both;
}
.nx-re__velho svg {
  position: absolute;
  left: -3%;
  top: 52%;
  width: 106%;
  height: 0.5em;
  overflow: visible;
  translate: 0 -50%;
}
.nx-re__velho path {
  fill: none;
  stroke: var(--grafite);
  stroke-width: 2.2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: nx-traco 0.24s cubic-bezier(0.4, 0.1, 0.5, 0.95) var(--atraso, 0s) forwards;
}
.nx-re__novo {
  clip-path: inset(-30% 104% -30% -6%);
  animation: nx-escreve 0.45s cubic-bezier(0.4, 0.1, 0.5, 0.95) calc(var(--atraso, 0s) + 0.42s) both;
}
@keyframes nx-re-sai {
  to {
    opacity: 0;
    transform: translateY(-0.35em);
  }
}

/* a data: a folhinha de dia vira folhas em branco, depressa, e para na data real */
.nx-dia-bloco {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  white-space: nowrap;
  perspective: 240px;
}
.nx-dia-bloco__nova {
  animation: nx-dia-chega 0.2s ease calc(var(--atraso, 0s) + 0.3s) both;
}
.nx-dia-bloco__folhas {
  position: absolute;
  inset: -0.12em -0.2em;
  pointer-events: none;
}
.nx-dia-bloco__folhas i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center start;
  padding-inline: 0.2em;
  border-top: 2px solid var(--faixa);
  border-radius: 1px;
  background: var(--papel);
  box-shadow: 0 2px 4px -2px rgba(15, 42, 37, 0.5);
  color: var(--grafite);
  font-style: normal;
  transform-origin: 50% 0;
  animation: nx-dia-vira 0.22s cubic-bezier(0.5, 0, 0.75, 0.2) calc(var(--atraso, 0s) + 0.1s + 0.07s * var(--i, 0)) both;
}
.nx-dia-bloco__folhas i.is-velha {
  animation-delay: var(--atraso, 0s);
}
@keyframes nx-dia-vira {
  0% {
    opacity: 1;
    transform: rotateX(0);
  }
  100% {
    opacity: 0;
    transform: rotateX(-100deg) translateY(-30%);
  }
}
@keyframes nx-dia-chega {
  from {
    opacity: 0;
  }
}
.nx-pausado .nx-re__velho,
.nx-pausado .nx-dia-bloco__folhas {
  display: none;
}
.nx-pausado .nx-re__novo,
.nx-pausado .nx-dia-bloco__nova {
  animation: none !important;
  clip-path: none !important;
  opacity: 1 !important;
}

/* ---------- a ponte para o app: o cartão clicado vira o cartão do app ---------- */
@view-transition {
  navigation: auto;
}
::view-transition-group(nx-ponte) {
  animation-duration: 0.42s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.24s;
}
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

/* =============================================================
   A ABERTURA
   ============================================================= */
/* a ficha em três fitas de rotulador, coladas na faixa rasgada (já na primeira tela) */
.nx-fitas {
  position: absolute;
  left: clamp(16px, 2.4vw, 28px);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  max-width: 62%;
  margin: -14px 0 0;
  pointer-events: none;
}
.nx-fitas span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 4px 10px 5px;
  border-radius: 2px;
  background: var(--faixa);
  color: #f4f6ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  font-variation-settings: "wdth" 82;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28),
    0 -1px 0 rgba(0, 0, 0, 0.4);
  box-shadow:
    0 4px 7px -4px rgba(15, 42, 37, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  rotate: -0.8deg;
}
.nx-fitas span:nth-child(2) {
  rotate: 0.7deg;
}
.nx-fitas span:nth-child(3) {
  rotate: -0.3deg;
}
.nx-fitas .is-preta {
  background: #151515;
}
.nx-fitas b {
  color: var(--faixa-tinta);
  font-weight: 900;
  letter-spacing: 0.08em;
}
/* com a entrada: cada fita sai da rotuladora, uma depois da outra */
.nx-a-entrada .nx-fitas:not(.is-vivo) span {
  clip-path: inset(0 100% 0 0);
}
.nx-a-entrada .nx-fitas.is-vivo span {
  animation: nx-imprime 0.7s steps(18, end) both;
}
.nx-a-entrada .nx-fitas.is-vivo span:nth-child(2) {
  animation-delay: 0.35s;
}
.nx-a-entrada .nx-fitas.is-vivo span:nth-child(3) {
  animation-delay: 0.7s;
}
/* a folha presa: a faixa some (o título continua no HTML, para o leitor de tela) */
.nx-abre__palco.is-preso .nx-fitas {
  opacity: 0;
}

/* a ficha da seção seguinte: o "Feito" em fitas curtas, uma por entrega */
.nx-ficha div.nx-ficha__varias {
  gap: 8px;
  padding: 0;
  background: none;
  box-shadow: none;
  text-shadow: none;
  rotate: 0deg;
}
.nx-ficha__varias dt,
.nx-ficha__varias dd {
  padding: 9px 14px;
  border-radius: 3px;
  background: var(--faixa);
  box-shadow:
    0 6px 10px -6px rgba(15, 42, 37, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28),
    0 -1px 0 rgba(0, 0, 0, 0.4);
  rotate: -0.6deg;
}
.nx-ficha__varias dt {
  background: #151515;
}
.nx-ficha__varias dd:nth-of-type(even) {
  rotate: 0.7deg;
}
.nx-ficha__varias dd:nth-of-type(3n) {
  rotate: -1deg;
}

/* o mês por extenso, embaixo da grade: só no celular, onde as anotações viram pontinhos */
.nx-mes__extenso {
  display: none;
}
@media (max-width: 759px) {
  /* a dica da orelha cede o lugar para o mês por extenso (a orelha continua no canto) */
  .nx-orelha__dica {
    display: none;
  }
  .nx-mes__extenso:not(:empty) {
    display: grid;
    gap: 2px;
    margin: 8px 0 0;
    padding-right: 56px;
    color: var(--caneta);
    font-family: var(--f-mao);
    font-size: 0.95rem;
    line-height: 1.3;
  }
  .nx-mes__extenso .is-min em {
    color: var(--marcador);
    font-style: normal;
  }
  .nx-fitas {
    display: none;
  }
}

/* o atalho do celular: as formas e o veredito presos ao pé da tela, enquanto a folhinha aparece */
.nx-atalho {
  display: none;
}
@media (max-width: 767px) {
  .nx-atalho {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: grid;
    gap: 7px;
    padding: 9px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 2px solid var(--impresso);
    background: var(--papel);
    color: var(--impresso);
    box-shadow: 0 -12px 22px -14px rgba(15, 42, 37, 0.6);
    transform: translateY(110%);
    visibility: hidden;
    transition:
      transform 0.32s var(--ease),
      visibility 0s linear 0.32s;
  }
  .nx-atalho.is-on {
    transform: none;
    visibility: visible;
    transition: transform 0.38s var(--ease);
  }
  .nx-atalho__veredito {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
  .nx-atalho__veredito b {
    color: var(--marca, var(--impresso));
    font-family: var(--f-mao);
    font-size: 1.12rem;
  }
  .nx-atalho__formas {
    display: flex;
    gap: 6px;
    margin: 0 -12px;
    padding: 0 12px 2px;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .nx-atalho__forma {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 4px;
    background: var(--papel-2);
    color: var(--impresso);
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
  }
  .nx-atalho__forma svg {
    width: 22px;
    height: 18px;
    color: var(--marca);
  }
  .nx-atalho__forma.is-cabe_com_aperto svg {
    color: var(--marca-texto);
  }
  .nx-atalho__forma[aria-pressed="true"] {
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--caneta);
  }
}

/* a régua: "pular a folhinha" enquanto a abertura está na tela */
.nx-regua__pular {
  display: none;
}
@media (min-width: 1400px) and (min-height: 700px) {
  .nx-regua {
    flex-wrap: wrap;
    width: 132px;
  }
  .nx-regua .nx-regua__pular {
    display: inline-flex;
    flex: 0 0 100%;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    margin-bottom: 14px;
    color: var(--caneta);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    font-variation-settings: "wdth" 80;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      visibility 0s linear 0.3s;
  }
  .nx-regua__pular svg {
    width: 16px;
    height: 16px;
    rotate: 90deg;
  }
  .nx-regua.is-abertura .nx-regua__pular,
  .nx-regua__pular:focus-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
  }
  .nx-regua__pular:hover {
    text-decoration: underline 2px;
    text-underline-offset: 4px;
  }
  /* a régua apagada não guarda paradas de Tab invisíveis: focar um link a acende */
  .nx-regua:not(.is-on) {
    visibility: hidden;
    transition:
      opacity 0.4s var(--ease),
      transform 0.4s var(--ease),
      visibility 0s linear 0.4s;
  }
  .nx-regua:focus-within {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
    pointer-events: auto;
  }
  .nx-regua__picote {
    flex: none;
  }
}

/* =============================================================
   DEFINIÇÃO: o cupom "quanto gastei?" enrola e cai; a pergunta nova aparece
   ============================================================= */
.nx-hmw-mesa {
  position: relative;
}
.nx-hmw-mesa > .nx-hmw {
  height: 100%;
}
.nx-cupom {
  --r: 0;
  --cai: 0;
  position: absolute;
  left: 50%;
  top: -26px;
  z-index: 4;
  width: min(250px, 72%);
  margin: 0;
  pointer-events: none;
  translate: -46% 0;
}
.nx-cupom__prego {
  position: absolute;
  left: 50%;
  top: -6px;
  z-index: 3;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c9c9c0, #6b6b62 70%);
  box-shadow: 0 3px 4px rgba(15, 42, 37, 0.45);
  translate: -50% 0;
}
.nx-cupom__cai {
  position: relative;
  transform-origin: 50% 0;
  transform: translateY(calc(var(--cai) * 160px)) rotate(calc(var(--cai) * -16deg));
  opacity: calc(1 - var(--cai) * 1.1);
}
.nx-cupom__papel {
  padding: 18px 16px 24px;
  background: #fffef8;
  color: #2a2a26;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  box-shadow: 0 14px 22px -14px rgba(15, 42, 37, 0.6);
  /* a borda de baixo picotada; o rolo come o papel de baixo para cima */
  clip-path: polygon(0 0, 100% 0, 100% calc((1 - var(--r)) * 100% - 7px), 94% calc((1 - var(--r)) * 100%), 88% calc((1 - var(--r)) * 100% - 7px), 82% calc((1 - var(--r)) * 100%), 76% calc((1 - var(--r)) * 100% - 7px), 70% calc((1 - var(--r)) * 100%), 64% calc((1 - var(--r)) * 100% - 7px), 58% calc((1 - var(--r)) * 100%), 52% calc((1 - var(--r)) * 100% - 7px), 46% calc((1 - var(--r)) * 100%), 40% calc((1 - var(--r)) * 100% - 7px), 34% calc((1 - var(--r)) * 100%), 28% calc((1 - var(--r)) * 100% - 7px), 22% calc((1 - var(--r)) * 100%), 16% calc((1 - var(--r)) * 100% - 7px), 10% calc((1 - var(--r)) * 100%), 4% calc((1 - var(--r)) * 100% - 7px), 0 calc((1 - var(--r)) * 100%));
}
.nx-cupom__titulo {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.nx-cupom__sub {
  margin: 0 0 8px;
  font-size: 0.75rem;
  text-align: center;
}
.nx-cupom ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nx-cupom li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  text-transform: uppercase;
}
.nx-cupom__pe {
  margin: 8px 0 0;
  padding-top: 6px;
  border-top: 1px dashed #8a8474;
  font-size: 0.75rem;
  text-align: center;
}
/* o rolo: sobe junto com a borda do papel e engrossa */
.nx-cupom__rolo {
  position: absolute;
  left: 4%;
  right: 4%;
  top: calc((1 - var(--r)) * var(--h, 280px) - 14px);
  height: 26px;
  border-radius: 13px;
  background: linear-gradient(180deg, #fffef8 0%, #ebe6d6 52%, #cbc4b1 100%);
  box-shadow: 0 8px 12px -8px rgba(15, 42, 37, 0.6);
  opacity: min(1, calc(var(--r) * 6));
  transform: scaleY(calc(0.7 + var(--r) * 0.6));
}
/* embaixo do cupom, a pergunta nova espera, apagada; quando ele cai, ela acende */
.nx-hmw-mesa.tem-cupom > .nx-hmw {
  transition:
    filter 0.5s ease,
    opacity 0.5s ease;
}
.nx-hmw-mesa.tem-cupom:not(.cupom-caiu) > .nx-hmw {
  filter: saturate(0.5);
  opacity: 0.66;
}
/* a tira do "Fora" é arrancada da lista e escorrega (continua legível) */
.nx-escopo li.is-fora.is-arrancada {
  animation: nx-fora 0.8s cubic-bezier(0.3, 0.7, 0.4, 1) both;
}
@keyframes nx-fora {
  0% {
    transform: none;
  }
  30% {
    transform: translate(4px, -3px) rotate(-1.5deg);
  }
  100% {
    transform: translate(18px, 9px) rotate(2.4deg);
  }
}
.nx-escopo li.is-fora.is-arrancada {
  background: var(--papel);
  box-shadow: 0 8px 12px -8px rgba(15, 42, 37, 0.55);
}

/* =============================================================
   ESTADOS: o porta-lápis
   ============================================================= */
.nx-portalapis {
  display: grid;
  grid-template-columns: 200px auto minmax(0, 1fr);
  grid-template-areas:
    "copo dia texto"
    "copo colchao colchao"
    "copo dica dica";
  align-items: center;
  gap: 10px 26px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--papel-linha);
}
.nx-portalapis .nx-amostra {
  display: contents;
}
.nx-portalapis .nx-amostra__dia {
  grid-area: dia;
}
.nx-portalapis .nx-amostra__texto {
  grid-area: texto;
  display: grid;
  gap: 2px;
  margin: 0;
}
.nx-portalapis .nx-amostra__texto span {
  color: var(--impresso-2);
  font-size: 0.98rem;
}
.nx-portalapis .nx-amostra__texto em {
  color: var(--grafite);
  font-family: var(--f-mao);
  font-style: normal;
  font-size: 1rem;
}
.nx-portalapis[data-estado="cabe"] .nx-amostra__texto b {
  color: var(--caneta);
}
.nx-portalapis[data-estado="aperto"] .nx-amostra__texto b {
  color: var(--aperto-tinta);
}
.nx-portalapis[data-estado="nao"] .nx-amostra__texto b {
  color: var(--marcador);
}
.nx-portalapis[data-estado="duvida"] .nx-amostra__texto b {
  color: var(--grafite);
}
/* as marcas no dia (as mesmas do mostruário antigo, agora presas ao porta-lápis) */
.nx-portalapis .nx-amostra__svg {
  position: absolute;
}
.nx-portalapis[data-estado="cabe"] .nx-amostra__svg {
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 35px;
  color: var(--caneta);
}
.nx-portalapis[data-estado="aperto"] .nx-amostra__svg {
  left: -2px;
  top: 8px;
  z-index: 1;
  width: calc(100% + 4px);
  height: 40px;
  color: var(--marca-texto);
  mix-blend-mode: multiply;
}
.nx-portalapis[data-estado="nao"] .nx-amostra__dia {
  background:
    repeating-linear-gradient(45deg, rgba(211, 34, 26, 0.13) 0 2px, transparent 2px 7px),
    var(--papel);
}
.nx-portalapis[data-estado="nao"] .nx-amostra__n {
  color: var(--domingo);
}
/* o círculo pega o número: centrado nele, não na célula */
.nx-portalapis[data-estado="nao"] .nx-amostra__svg {
  left: 2px;
  top: -2px;
  z-index: 3;
  width: 62px;
  height: 50px;
  color: var(--marcador);
}
.nx-portalapis[data-estado="duvida"] .nx-amostra__n {
  color: var(--grafite);
}
.nx-portalapis[data-estado="duvida"] .nx-amostra__svg {
  right: 12px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  color: var(--grafite);
}
.nx-portalapis .nx-amostra__texto,
.nx-portalapis .nx-amostra__marca {
  transition: opacity 0.2s ease;
}
.nx-portalapis.is-trocando .nx-amostra__texto,
.nx-portalapis.is-trocando .nx-amostra__marca {
  opacity: 0.6;
}
.nx-portalapis__colchao {
  grid-area: colchao;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}
.nx-portalapis__colchao button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--papel-2);
  color: var(--impresso);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.nx-portalapis__colchao button[aria-pressed="true"] {
  background: var(--caneta);
  color: #fff;
}
.nx-portalapis__dica {
  grid-area: dica;
  color: var(--grafite);
  font-family: var(--f-mao);
  font-size: 0.95rem;
}
/* o copo e as ferramentas */
.nx-copo {
  grid-area: copo;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  height: 230px;
  padding: 0 24px;
}
.nx-copo__vaso {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  z-index: 2;
  height: 96px;
  border-radius: 6px 6px 18px 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.12)),
    linear-gradient(180deg, #d9d2bf, #bfb59b);
  box-shadow:
    0 16px 22px -14px rgba(15, 42, 37, 0.65),
    inset 0 3px 0 rgba(255, 255, 255, 0.4);
  pointer-events: none;
}
.nx-ferr {
  position: relative;
  z-index: 1;
  display: block;
  width: 22px;
  height: 200px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: translate 0.35s var(--ease);
}
.nx-ferr:hover,
.nx-ferr.is-escolhida {
  translate: 0 -26px;
}
.nx-ferr i {
  position: absolute;
  left: 50%;
  translate: -50% 0;
}
.nx-ferr__corpo {
  bottom: 0;
  width: 16px;
  height: 150px;
  border-radius: 3px;
  box-shadow: inset -5px 0 0 rgba(0, 0, 0, 0.14);
}
.nx-ferr__ponta {
  bottom: 150px;
  width: 8px;
  height: 20px;
  border-radius: 8px 8px 1px 1px;
}
.nx-ferr__tampa {
  bottom: 118px;
  width: 18px;
  height: 46px;
  border-radius: 6px 6px 3px 3px;
  box-shadow: inset -4px 0 0 rgba(0, 0, 0, 0.18);
  transition:
    bottom 0.3s var(--ease),
    opacity 0.3s ease;
}
/* escolhida, a tampa sai (e fica no copo); presa, ela treme e não sai */
.nx-ferr.is-escolhida .nx-ferr__tampa {
  bottom: 190px;
  opacity: 0;
}
.nx-portalapis.is-tampa-presa .nx-ferr.is-escolhida .nx-ferr__tampa {
  bottom: 118px;
  opacity: 1;
  animation: nx-tampa-presa 0.18s ease-in-out 3;
}
@keyframes nx-tampa-presa {
  50% {
    translate: -50% -5px;
  }
}
.nx-ferr--cabe .nx-ferr__corpo {
  background: var(--caneta);
}
.nx-ferr--cabe .nx-ferr__ponta {
  width: 5px;
  background: #c9c9c0;
}
.nx-ferr--cabe .nx-ferr__tampa {
  background: #16236b;
}
.nx-ferr--aperto {
  width: 30px;
}
.nx-ferr--aperto .nx-ferr__corpo {
  width: 26px;
  height: 128px;
  background: #f2c81e;
}
.nx-ferr--aperto .nx-ferr__ponta {
  bottom: 128px;
  width: 18px;
  background: var(--marca-texto);
}
.nx-ferr--aperto .nx-ferr__tampa {
  bottom: 100px;
  width: 28px;
  background: #d9b012;
}
.nx-ferr--nao .nx-ferr__corpo {
  width: 22px;
  height: 140px;
  background: #b3261e;
}
.nx-ferr--nao .nx-ferr__ponta {
  bottom: 140px;
  width: 12px;
  background: var(--marcador);
}
.nx-ferr--nao .nx-ferr__tampa {
  bottom: 110px;
  width: 24px;
  background: #8a1d16;
}
.nx-ferr--duvida .nx-ferr__corpo {
  width: 14px;
  height: 160px;
  background: linear-gradient(90deg, #e7c36a, #d6ac45);
}
.nx-ferr--duvida .nx-ferr__ponta {
  bottom: 160px;
  width: 14px;
  height: 22px;
  background: linear-gradient(180deg, #5d6066 0 30%, #e9d8b5 30%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border-radius: 0;
}
.nx-portalapis .nx-amostra__dia {
  width: 132px;
  height: 108px;
}
@media (max-width: 899px) {
  .nx-portalapis {
    grid-template-columns: 150px minmax(0, 1fr);
    grid-template-areas:
      "copo dia"
      "texto texto"
      "colchao colchao"
      "dica dica";
  }
  .nx-copo {
    height: 190px;
    gap: 8px;
    padding: 0 12px;
  }
  .nx-ferr {
    height: 170px;
  }
}
@media (max-width: 479px) {
  .nx-portalapis {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copo"
      "dia"
      "texto"
      "colchao"
      "dica";
    justify-items: start;
  }
  .nx-copo {
    width: 200px;
  }
}

/* o fichário: a aba escolhida vem para a frente */
.nx-mapa__aba {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.nx-a-fichario .nx-mapa__areas li {
  cursor: pointer;
  transition:
    translate 0.45s var(--ease),
    background 0.3s ease,
    opacity 0.4s ease calc(var(--n, 0) * 0.08s);
}
.nx-a-fichario .nx-mapa__areas .is-centro:not(.is-frente) {
  padding-top: 14px;
  border-top: 0;
  background: #e9e7dc;
  translate: 0 0;
}
.nx-a-fichario .nx-mapa__areas li:not(.is-frente):hover {
  translate: 0 -5px;
}
.nx-a-fichario .nx-mapa__areas .is-frente {
  padding-top: 22px;
  border-top: 4px solid var(--caneta);
  background: var(--papel);
  translate: 0 -10px;
  z-index: 1;
}
.nx-a-fichario .nx-mapa__areas .is-frente .nx-mapa__aba {
  color: var(--caneta);
}

/* =============================================================
   REGRAS: o bilhete do notebook e o envelope da Fernanda
   ============================================================= */
.nx-arraste__mesa {
  position: relative;
  margin-top: 12px;
  padding-top: 50px;
}
.nx-arraste__mesa .nx-arraste__meses {
  margin-top: 0;
}
.nx-arraste__bilhete {
  --x: calc((var(--n, 2) + 0.5) * 100% / 7);
  position: absolute;
  left: var(--x);
  top: 0;
  z-index: 4;
  display: grid;
  justify-items: center;
  width: max-content;
  min-width: 96px;
  padding: 8px 12px 7px;
  background: #fffffa;
  color: #3d3f44;
  font-family: var(--f-mao);
  font-size: 0.98rem;
  line-height: 1.1;
  box-shadow: 0 10px 14px -10px rgba(15, 42, 37, 0.65);
  translate: -50% 0;
  rotate: -2deg;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  transition:
    left 0.45s var(--ease),
    rotate 0.3s var(--ease),
    box-shadow 0.3s ease;
}
.nx-arraste__bilhete b {
  font-size: 1.05rem;
}
.nx-arraste__fita {
  position: absolute;
  left: 50%;
  top: -7px;
  width: 38px;
  height: 13px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 1px 2px rgba(15, 42, 37, 0.15);
  translate: -50% 0;
  rotate: -4deg;
}
.nx-arraste__bilhete.is-segurado {
  cursor: grabbing;
  rotate: -6deg;
  box-shadow: 0 18px 22px -12px rgba(15, 42, 37, 0.6);
  transition: rotate 0.2s var(--ease);
}
/* com o teclado no controle deslizante, o bilhete mostra o foco */
.nx-arraste:has(.nx-arraste__faixa:focus-visible) .nx-arraste__bilhete {
  outline: 3px solid var(--caneta);
  outline-offset: 3px;
}
.nx-arraste__bilhete.is-batida {
  animation: nx-batida 0.42s ease-in-out;
}
@keyframes nx-batida {
  20% {
    rotate: -9deg;
  }
  45% {
    rotate: 4deg;
  }
  70% {
    rotate: -5deg;
  }
}
/* o círculo do dia mais apertado passa por fora da célula: não risca o nome do mês nem a conta */
.nx-arraste .nx-arraste__marca--circulo {
  inset: auto;
  left: -8px;
  top: 22px;
  z-index: 1;
  width: calc(100% + 16px);
  height: calc(100% - 12px);
}
/* o IPVA: uma conta pesada, presa com fita, no mês dele */
.nx-arraste__conta {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 1px;
  margin-top: auto;
  padding: 5px 6px;
  background: #fff;
  color: var(--impresso);
  font-size: 0.75rem;
  line-height: 1.25;
  box-shadow: 0 6px 9px -6px rgba(15, 42, 37, 0.7);
  rotate: -1.5deg;
}
.nx-arraste__conta span {
  white-space: nowrap;
}
.nx-arraste__conta b {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  font-variation-settings: "wdth" 72;
}
.nx-arraste__conta::before,
.nx-arraste__conta::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 20px;
  height: 9px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 1px rgba(15, 42, 37, 0.12);
}
.nx-arraste__conta::before {
  left: -6px;
  rotate: -32deg;
}
.nx-arraste__conta::after {
  right: -6px;
  rotate: 32deg;
}
.nx-arraste__conta.is-batida {
  animation: nx-conta-treme 0.36s ease-in-out 0.1s;
}
@keyframes nx-conta-treme {
  25% {
    translate: -3px 0;
  }
  50% {
    translate: 3px 1px;
  }
  75% {
    translate: -2px 0;
  }
}
/* o controle deslizante continua no HTML (teclado e leitor de tela), escondido da vista */
.nx-a-arraste .nx-arraste__faixa {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.nx-a-arraste .nx-arraste {
  position: relative;
}
.nx-arraste__rotulo {
  font-family: var(--f-mao);
  font-weight: 400;
  font-size: 1rem;
  color: var(--grafite);
}
@media (max-width: 759px) {
  .nx-arraste__conta {
    padding: 3px 4px;
    font-size: 0.75rem;
  }
  /* o mês fica mais alto e a conta passa da coluna (a de fevereiro fica livre embaixo):
     o valor do motor nunca é cortado e os nomes dos meses ficam à vista */
  .nx-arraste__mes {
    min-height: 108px;
  }
  .nx-arraste__conta {
    position: absolute;
    left: 3px;
    bottom: 5px;
    width: max-content;
  }
  .nx-arraste__bilhete {
    min-width: 0;
    padding: 6px 8px;
    font-size: 0.88rem;
  }
}

/* a Fernanda: a tira de dezembro, as contas e o envelope do cliente */
.nx-fernanda__tira {
  position: relative;
  height: 92px;
  margin: 14px 0 4px;
  border-top: 2px solid var(--impresso);
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 31 - 1px), var(--papel-linha) calc(100% / 31 - 1px) calc(100% / 31));
}
.nx-fernanda__compra,
.nx-fernanda__conta {
  position: absolute;
  top: 6px;
  color: var(--caneta);
  font-family: var(--f-mao);
  font-size: 0.88rem;
  line-height: 1.1;
  white-space: nowrap;
  translate: -4px 0;
}
.nx-fernanda__conta:nth-of-type(odd) {
  top: 26px;
}
.nx-fernanda__compra {
  color: var(--grafite);
}
.nx-fernanda__compra b,
.nx-fernanda__conta b {
  font-family: var(--f-texto);
  font-weight: 900;
  font-variation-settings: "wdth" 66;
}
.nx-fernanda__envelope {
  position: absolute;
  bottom: 6px;
  z-index: 2;
  display: grid;
  justify-items: center;
  min-width: 92px;
  padding: 13px 8px 4px;
  background: #f3e3b8;
  color: var(--impresso);
  font-size: 0.75rem;
  line-height: 1.15;
  box-shadow: 0 8px 12px -8px rgba(15, 42, 37, 0.65);
  translate: -50% 0;
  rotate: 2deg;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  transition:
    left 0.6s cubic-bezier(0.34, 1.3, 0.64, 1),
    opacity 0.3s ease,
    translate 0.3s var(--ease);
}
.nx-fernanda__envelope::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 14px;
  background:
    linear-gradient(160deg, transparent 47%, #e2cd94 48%) left / 50% 100% no-repeat,
    linear-gradient(200deg, transparent 47%, #e2cd94 48%) right / 50% 100% no-repeat;
}
.nx-fernanda__envelope b {
  font-weight: 800;
}
.nx-fernanda__envelope small {
  color: var(--impresso-2);
  font-family: var(--f-mao);
  font-size: 0.82rem;
}
.nx-fernanda__envelope.is-chegando,
.nx-fernanda__envelope.is-saindo {
  opacity: 0;
  translate: -50% 16px;
}
.nx-fernanda__envelope.is-segurado {
  cursor: grabbing;
  rotate: -3deg;
  transition: rotate 0.2s ease;
}
.nx-fernanda__abas button {
  min-height: 44px;
}
.nx-fernanda__veredito b {
  font-family: var(--f-texto);
  font-weight: 800;
  font-size: 1rem;
}

/* as decisões: a fita de cada bilhete é colada uma a uma; o canto levanta sob o mouse */
.nx-a-decisoes .nx-decisoes li::before {
  transform-origin: 0 50%;
  transition:
    scale 0.35s var(--ease) calc(0.3s + var(--n, 0) * 0.12s),
    opacity 0.2s ease calc(0.3s + var(--n, 0) * 0.12s);
}
.nx-a-decisoes .nx-decisoes:not(.is-vivo) li::before {
  scale: 0 1;
  opacity: 0;
}
.nx-a-decisoes .nx-decisoes li {
  transition:
    opacity 0.45s ease calc(var(--n, 0) * 0.12s),
    translate 0.6s var(--ease) calc(var(--n, 0) * 0.12s),
    rotate 0.35s var(--ease),
    box-shadow 0.35s ease;
}
@media (pointer: fine) {
  .nx-decisoes li:hover {
    rotate: calc(var(--r, -0.6deg) * -0.6);
    box-shadow:
      0 1px 1px rgba(15, 42, 37, 0.06),
      0 26px 34px -20px rgba(15, 42, 37, 0.55);
  }
}

/* =============================================================
   MOTOR: o livro-razão dos erros plantados
   ============================================================= */
.nx-mutantes {
  max-width: 1080px;
  padding: 0;
  background: none;
  box-shadow: none;
}
.nx-mutantes__quadro {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 0;
}
.nx-razao {
  position: relative;
  padding: 18px 22px 0 66px;
  border-radius: 3px;
  background:
    repeating-linear-gradient(transparent 0 23px, rgba(29, 60, 196, 0.14) 23px 24px),
    #f7f3e3;
  color: var(--impresso);
  box-shadow: var(--sombra-papel);
}
/* a margem vermelha do livro-razão */
.nx-razao::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--margem-razao, 50px);
  width: 2px;
  background: rgba(211, 34, 26, 0.55);
  pointer-events: none;
}
.nx-razao__cabeca {
  margin: 0 0 8px;
  color: var(--impresso-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nx-razao .nx-mutantes__tela {
  height: auto;
}
.nx-razao .nx-mutantes__contas {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  margin-top: 10px;
}
.nx-razao .nx-mutantes__contas p {
  grid-auto-flow: column;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  border: 0;
}
.nx-razao .nx-mutantes__contas b {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}
/* o rodapé da folha: as provas, uma vez só */
.nx-razao .nx-provas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 14px -22px 0 -66px;
  padding: 14px 22px 16px 66px;
  border-top: 2px solid var(--impresso);
  background: #f7f3e3;
  /* o rodapé cobre a margem vermelha, como numa folha de verdade */
  position: relative;
  z-index: 1;
}
.nx-razao .nx-provas li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 0;
  border: 0;
  color: var(--impresso-2);
  font-size: 0.86rem;
  line-height: 1.3;
}
.nx-razao .nx-provas b {
  color: var(--impresso);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 900;
  line-height: 1;
  font-variation-settings: "wdth" 62;
}
/* a margem: os que sobreviveram, por tipo */
.nx-razao__margem {
  position: relative;
  align-self: stretch;
  margin: 18px 0 18px -6px;
  padding: 18px 18px 16px;
  background: var(--papel);
  color: var(--impresso);
  box-shadow: var(--sombra-papel);
  rotate: 1deg;
}
.nx-razao__titulo {
  margin: 0 0 10px;
  color: #3d3f44;
  font-family: var(--f-mao);
  font-size: 1.12rem;
  line-height: 1.3;
}
.nx-razao__grupos {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nx-razao__grupos li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  color: var(--impresso-2);
  font-size: 0.86rem;
  line-height: 1.35;
  border-radius: 3px;
  transition: background 0.2s ease;
}
.nx-razao__grupos li:hover {
  background: rgba(211, 34, 26, 0.07);
}
.nx-razao__grupos b {
  color: var(--grafite);
  font-family: var(--f-mao);
  font-size: 1.45rem;
  line-height: 1;
  text-align: right;
}
.nx-razao__grupos small {
  display: block;
  color: var(--grafite);
  font-size: 0.78rem;
}
.nx-razao__grupos li.is-sem {
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px dashed var(--papel-linha);
}
.nx-razao__nota {
  margin: 12px 0 0;
  color: var(--grafite);
  font-family: var(--f-mao);
  font-size: 1rem;
}
/* os números da margem chegam com os erros que voaram */
.nx-razao__grupos li.is-chegou b {
  animation: nx-chegou 0.5s var(--ease);
}
@keyframes nx-chegou {
  40% {
    color: var(--marcador);
    scale: 1.25;
  }
}
.nx-razao__grupos li {
  transition:
    opacity 0.4s ease,
    background 0.2s ease;
}
.nx-razao__voos {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.nx-razao__voos i {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.4px solid var(--grafite);
  border-radius: 50%;
}
.nx-razao__voos i.is-sem {
  border-color: var(--marcador);
}
@media (max-width: 899px) {
  .nx-mutantes__quadro {
    grid-template-columns: minmax(0, 1fr);
  }
  .nx-razao {
    --margem-razao: 30px;
    padding-left: 44px;
  }
  .nx-razao .nx-provas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-left: -44px;
    padding-left: 44px;
  }
  .nx-razao__margem {
    margin: 14px 0 0;
    rotate: 0.5deg;
  }
}

/* =============================================================
   DADOS: cada chave encena a sua garantia
   ============================================================= */
.nx-chave__cena {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.nx-chave__cena > * {
  position: absolute;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nx-chave__lapis {
  min-height: 2.6em;
  margin: 10px 4px 0;
  color: var(--grafite);
  font-family: var(--f-mao);
  font-size: 0.95rem;
  line-height: 1.25;
  text-align: center;
  visibility: hidden;
}
.nx-chave.tem-lapis .nx-chave__lapis {
  visibility: visible;
}
/* 1. outra fechadura: o gancho da Fernanda aparece; a chave vai até ele, trava e treme */
.nx-chave__alheio {
  left: calc(50% + 34px);
  top: 26px;
  display: grid;
  justify-items: center;
  gap: 4px;
}
.nx-chave__alheio i {
  width: 10px;
  height: 26px;
  border-radius: 3px;
  background: linear-gradient(90deg, #8d9096, #d9dbde 50%, #7b7e84);
}
.nx-chave__alheio b {
  padding: 2px 6px;
  background: #fffffa;
  color: var(--marcador);
  font-size: 0.75rem;
  box-shadow: 0 3px 5px -3px rgba(15, 42, 37, 0.6);
}
.nx-chave.is-enc-trava .nx-chave__alheio {
  opacity: 1;
}
.nx-chave.is-enc-trava .nx-chave__botao {
  animation: nx-trava 1.3s var(--ease);
}
@keyframes nx-trava {
  30% {
    transform: translateX(24px) rotate(-8deg);
  }
  42% {
    transform: translateX(24px) rotate(6deg);
  }
  54% {
    transform: translateX(24px) rotate(-6deg);
  }
  66% {
    transform: translateX(24px) rotate(4deg);
  }
  80% {
    transform: translateX(10px);
  }
}
/* 2. o cordão do dono: aparece enquanto a chave vai longe e volta */
.nx-chave__cordao {
  left: 50%;
  top: 40px;
  width: 90px;
  height: 120px;
  overflow: visible;
}
.nx-chave__cordao path {
  fill: none;
  stroke: var(--impresso-2);
  stroke-width: 1.6;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}
.nx-chave.is-enc-cordao .nx-chave__cordao {
  opacity: 1;
}
/* 3. o molho: duas chaves a mais; puxado, desce e volta inteiro */
.nx-chave__molho {
  left: 50%;
  top: 20px;
  display: flex;
  gap: 0;
  translate: -50% 0;
}
.nx-chave__molho svg {
  width: 34px;
  height: 96px;
  margin: 0 -6px;
  filter: drop-shadow(0 3px 2px rgba(15, 42, 37, 0.3));
}
.nx-chave__molho svg:first-child {
  rotate: -14deg;
}
.nx-chave__molho svg:last-child {
  rotate: 14deg;
}
.nx-chave.is-enc-molho .nx-chave__molho {
  opacity: 1;
}
.nx-chave.is-enc-molho .nx-chave__molho,
.nx-chave.is-enc-molho .nx-chave__botao {
  animation: nx-molho 1.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}
@keyframes nx-molho {
  35% {
    transform: translateY(26px);
  }
  50% {
    transform: translateY(30px) rotate(3deg);
  }
  100% {
    transform: none;
  }
}
/* 4. a cópia: cai de cima e se funde na mesma chave */
.nx-chave__copia {
  left: 50%;
  top: 20px;
  translate: -50% 0;
}
.nx-chave__copia svg {
  width: 40px;
  height: 110px;
}
.nx-chave.is-enc-copia .nx-chave__copia {
  animation: nx-copia 1.2s var(--ease);
}
@keyframes nx-copia {
  0% {
    opacity: 0;
    transform: translate(18px, -60px) rotate(12deg);
  }
  25% {
    opacity: 0.55;
  }
  70% {
    opacity: 0.45;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}
/* 5. a etiqueta vira e avisa */
.nx-chave__aviso {
  left: 6%;
  right: 6%;
  bottom: 14px;
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 6px;
  border-radius: 4px;
  background: #fff;
  color: var(--marcador);
  font-family: var(--f-mao);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 10px 14px -10px rgba(15, 42, 37, 0.5);
  rotate: -3deg;
}
.nx-chave.is-enc-aviso .nx-chave__etiqueta {
  animation: nx-etiqueta-vira 2s var(--ease);
}
.nx-chave.is-enc-aviso .nx-chave__aviso {
  animation: nx-aviso 2s var(--ease);
}
@keyframes nx-etiqueta-vira {
  20%,
  80% {
    transform: rotateY(90deg);
    opacity: 0;
  }
}
@keyframes nx-aviso {
  0%,
  18% {
    opacity: 0;
    transform: rotateY(-90deg);
  }
  32%,
  78% {
    opacity: 1;
    transform: none;
  }
  92%,
  100% {
    opacity: 0;
    transform: rotateY(90deg);
  }
}
.nx-chave__balanco {
  position: relative;
}
html.nx-leve .nx-chave__botao,
html.nx-leve .nx-orelha {
  touch-action: manipulation;
}
.nx-pausado .nx-chave__cena > * {
  animation: none !important;
}

/* =============================================================
   A PRÓXIMA FOLHA: cede, volta com mola e não rasga
   ============================================================= */
.nx-proxima {
  --puxe: 0;
}
.nx-orelha--proxima {
  border-radius: 0 0 4px 0;
}
.nx-orelha--proxima .nx-orelha__dobra {
  width: calc(38px + var(--puxe) * 120px);
  height: calc(38px + var(--puxe) * 120px);
}
.nx-a-proxima .nx-proxima.is-vivo {
  transform: translateY(calc(var(--puxe) * -6px)) rotate(calc(var(--puxe) * -1.4deg));
}
.nx-proxima.is-puxada {
  --puxe: 0.55;
}
.nx-proxima.is-puxada .nx-orelha__dobra {
  transition:
    width 0.24s cubic-bezier(0.3, 0.7, 0.4, 1),
    height 0.24s cubic-bezier(0.3, 0.7, 0.4, 1);
}
.nx-proxima.is-voltando .nx-orelha__dobra {
  animation: nx-volta-mola 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes nx-volta-mola {
  0% {
    width: 104px;
    height: 104px;
  }
  45% {
    width: 30px;
    height: 30px;
  }
  70% {
    width: 46px;
    height: 46px;
  }
  100% {
    width: 38px;
    height: 38px;
  }
}
.nx-proxima.is-voltando {
  animation: nx-balanca-curta 0.7s ease-in-out;
}
@keyframes nx-balanca-curta {
  30% {
    rotate: -1.1deg;
  }
  60% {
    rotate: 0.8deg;
  }
}
.nx-proxima__resposta {
  position: absolute;
  right: 66px;
  bottom: 18px;
  margin: 0;
  color: var(--grafite);
  font-family: var(--f-mao);
  font-size: 1.15rem;
  rotate: -4deg;
  pointer-events: none;
}

/* =============================================================
   A MÁQUINA: cabe numa tela (alavanca, corpo e fita lado a lado; o varal embaixo)
   ============================================================= */
@media (min-width: 1024px) {
  .nx-maq__mesa {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 22px;
  }
  .nx-maq__maquina {
    display: grid;
    grid-template-columns: 58px minmax(300px, 360px) minmax(0, 1fr);
    align-items: center;
    max-width: 1040px;
    padding-right: 0;
  }
  .nx-maq__alavanca {
    position: relative;
    right: auto;
    bottom: auto;
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    margin-bottom: 30px;
  }
  .nx-maq__corpo {
    grid-column: 2;
    grid-row: 1;
  }
  .nx-maq__fita {
    grid-column: 3;
    grid-row: 1;
    margin: 0 0 0 -14px;
  }
  .nx-maq__rolo {
    height: 318px;
    padding-left: 24px;
  }
  /* a fenda do lado: a fita sai do corpo para a direita */
  .nx-maq__fenda {
    left: auto;
    right: 6px;
    top: 30px;
    bottom: 30px;
    width: 10px;
    height: auto;
  }
  .nx-maq__dica {
    right: auto;
    left: -4px;
    top: -34px;
    margin-right: 0;
  }
  .nx-maq__fita.is-arrancada {
    animation-name: nx-maq-arranca-lado;
  }
  .nx-maq__varal {
    padding-top: 0;
  }
  .nx-maq__fitas {
    min-height: 0;
  }
}
@keyframes nx-maq-arranca-lado {
  to {
    transform: translate(46px, -26px) rotate(4deg);
    opacity: 0;
  }
}
/* o visor: o menor saldo pisca ao chegar (nenhum número rola) */
.nx-maq__visor-valor.is-pisca {
  animation: nx-pisca 0.5s steps(2, jump-none) 2;
}
@keyframes nx-pisca {
  50% {
    opacity: 0.25;
  }
}
/* a fita fantasma do À vista, já no varal, para comparar */
.nx-maq__rasgada.is-fantasma {
  opacity: 0.58;
  filter: saturate(0.5);
}
.nx-maq__fantasma-nota {
  color: var(--grafite);
  font-family: var(--f-mao);
  font-size: 0.9rem;
}

/* =============================================================
   O FIM: o marcador da abertura circula a conversa; a comparação do visitante
   ============================================================= */
.nx-convite__circulado {
  position: relative;
  display: inline-block;
}
.nx-convite__circulado {
  white-space: nowrap;
}
.nx-convite__titulo {
  line-height: 1.04;
}
.nx-convite__circulo {
  position: absolute;
  left: -0.55em;
  top: -0.36em;
  width: calc(100% + 1.1em);
  height: calc(100% + 0.72em);
  overflow: visible;
  /* caneta azul: na página o vermelho é o "Não cabe"; o azul é o que cabe, o escolhido (como no "Simulador primeiro") */
  color: var(--caneta);
  pointer-events: none;
}
.nx-a-convite .nx-bloco:not(.is-rasgada) .nx-convite__circulo {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.nx-convite__comparou {
  max-width: 52ch;
  margin: 10px 0 0;
  color: var(--caneta);
  font-family: var(--f-mao);
  font-size: 1.12rem;
  line-height: 1.4;
}

/* =============================================================
   ENXUTO: a folha Real em branco e a máquina que abre quando a pessoa pede
   ============================================================= */
.nx-pautado {
  display: grid;
  margin: 10px 0 0;
}
/* o espaço em branco: as linhas são as da própria folha pautada */
.nx-pautado i {
  height: 30px;
}
.nx-exemplo-gaveta {
  margin-top: 14px;
}
.nx-exemplo-gaveta summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-height: 44px;
  color: var(--caneta);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}
.nx-exemplo-gaveta summary small {
  color: var(--grafite);
  font-family: var(--f-mao);
  font-size: 0.95rem;
  font-weight: 400;
}
/* fechada, a gaveta não guarda espaço (o Chrome reserva a altura do conteúdo escondido) */
.nx-exemplo-gaveta:not([open]) > :not(summary) {
  display: none;
}
.nx-maq__abrir {
  margin-top: 26px;
}
.nx-maq__abrir[aria-expanded="true"] {
  background: transparent;
  color: var(--parede-tinta);
  box-shadow: inset 0 0 0 2px var(--parede-tinta);
}
.nx-maq__abrir[aria-expanded="true"] svg {
  rotate: -90deg;
}
.nx-maq__abrir svg {
  rotate: 90deg;
  transition: rotate 0.3s var(--ease);
}
.nx-maq:not([hidden]) {
  animation: nx-maq-abre 0.5s var(--ease) both;
}
@keyframes nx-maq-abre {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* =============================================================
   ACABAMENTO
   ============================================================= */
/* pausado: as entradas que começam escondidas aparecem prontas (antes ficavam paradas no primeiro quadro) */
.nx-pausado .nx-ficha div,
.nx-pausado .nx-fitas span,
.nx-pausado .nx-proxima,
.nx-pausado .nx-maq__l,
.nx-pausado .nx-maq__rasgada,
.nx-pausado .nx-decisoes li {
  animation: none !important;
  clip-path: none !important;
}
.nx-pausado .nx-g-linha.is-desenhando {
  animation: none !important;
  stroke-dasharray: none !important;
  stroke-dashoffset: 0 !important;
}
.nx-pausado .nx-ficha div,
.nx-pausado .nx-fitas span,
.nx-pausado .nx-proxima,
.nx-pausado .nx-maq__l,
.nx-pausado .nx-maq__rasgada:not(.is-fantasma) {
  opacity: 1 !important;
}
/* a legenda do livro-razão, na parede: a tinta mais escura passa do contraste mínimo */
.nx-mutantes figcaption {
  color: var(--parede-tinta-2);
}
.nx-odo__c {
  overflow: clip;
}
.nx-boletim__lista b,
.nx-abordagem__nota > span {
  line-height: 1.12;
}
/* o "Não cabe" da abertura no celular: o círculo pega o número (as anotações viram pontinhos) */
@media (max-width: 759px) {
  .nx-dia__marca--circulo {
    inset: auto;
    left: -7px;
    top: -5px;
    width: 42px;
    height: 34px;
  }
}
/* "Dados insuficientes" cabe na aba da forma (a mais comprida) */
.nx-forma__estado.is-dados_insuficientes {
  font-size: 0.84rem;
  letter-spacing: -0.01em;
}
/* a prensa: no computador, a linha larga passa da borda enquanto condensa (antes ela era cortada).
   No celular a linha continua recortada (o que passa da borda aumentaria a página e o zoom cairia):
   lá ela começa menos larga, e quase nada fica de fora */
@media (min-width: 900px) and (pointer: fine) {
  .nx-partido .nx-linha {
    overflow-x: visible;
    overflow-y: clip;
  }
}
html.nx-leve .nx-h2.nx-partido .nx-linha__in,
html.nx-leve .nx-faixa__titulo.nx-partido .nx-linha__in {
  font-variation-settings: "wdth" 84;
}
html.nx-leve .nx-h2.nx-partido.is-prensado .nx-linha__in,
html.nx-leve .nx-faixa__titulo.nx-partido.is-prensado .nx-linha__in {
  font-variation-settings: "wdth" 62;
}
/* pausado: as transições também param no estado final */
.nx-pausado *,
.nx-pausado *::before,
.nx-pausado *::after {
  transition-duration: 0s !important;
  transition-delay: 0s !important;
}
/* o texto gerado da dica do talão não é lido pelo leitor de tela (a seção já explica) */
.nx-camadas.is-talao::after {
  content: "role: cada folha vira e mostra a de baixo" / "";
}
/* no celular estreito, o que a chave encena (o gancho alheio, o cordão) não aumenta a página */
.nx-garantias[data-chaves] {
  overflow-x: clip;
}
@media (max-width: 479px) {
  .nx-convite__circulo {
    left: -0.42em;
    top: -0.2em;
    width: calc(100% + 0.84em);
    height: calc(100% + 0.4em);
  }
  .nx-cartao__miolo {
    overflow-x: clip;
  }
}
/* alvos: os links da régua e o "ir para o conteúdo" com altura de dedo */
@media (min-width: 1400px) and (min-height: 700px) {
  .nx-regua ol {
    gap: 6px;
  }
  .nx-regua ol a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 40px;
  }
}
/* no celular as críticas viram uma coluna só: a linha vermelha da margem sairia por cima do texto */
@media (max-width: 759px) {
  .nx-a-criticas .nx-criticas::before {
    display: none;
  }
}
/* a última folha cai para fora do convite: o que sobra não aumenta a página embaixo do rodapé */
.nx-convite {
  overflow: clip;
}
/* a nota da medição não encosta na legenda do livro-razão (a figura presa pede folga) */
.nx-motor .nx-mutantes + .nx-obs {
  margin-top: 30px;
}
/* pausado, a máquina aberta aparece pronta */
.nx-pausado .nx-maq {
  animation: none !important;
}
