/* figuras.css · GENERATED by conteudo/build_arqueologia.py from conteudo/figuras/*.css: do not edit. */

/* ====== dominos.css ====== */
/* ==========================================================
   The row of dominoes (chapter 3)
   ========================================================== */
.dm { display: flex; flex-direction: column; gap: 1rem; padding: clamp(0.75rem, 0.5rem + 1vw, 1.2rem); overflow: hidden; }
.dm-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.dm-proximo { min-height: 44px; padding: 0.55rem 1.1rem; border-radius: var(--pilula); border: 1px solid var(--acento); background: var(--acento); color: var(--sobre-acento); font-size: 0.9rem; cursor: var(--cursor-ativo, pointer); }
.dm-proximo:disabled { background: none; color: var(--suave); border-color: var(--linha-2); cursor: default; }
.dm-conta { font-family: var(--fonte-mono); font-size: 0.8rem; color: var(--suave); }
/* the calendar on top, then one row of tiles per pair; the right padding leaves room for the last tile to fall */
.dm-grade { display: grid; grid-template-columns: 2.6rem repeat(6, minmax(0, 1fr)); gap: 0.6rem 0.4rem; align-items: end; padding-right: 1.8rem; }
.dm-canto { min-height: 1px; }
.dm-data { min-height: 36px; padding: 0.3rem 0.2rem; border-radius: 6px; border: 1px solid transparent; background: none; color: var(--fraco); font-family: var(--fonte-mono); font-size: 0.7rem; line-height: 1.15; cursor: var(--cursor-ativo, pointer); }
.dm-data.is-passada { color: var(--suave); }
.dm-data.is-atual { color: var(--titulo); border-color: var(--acento); background: color-mix(in srgb, var(--acento) 14%, transparent); }
.dm-fila-nome { align-self: center; font-family: var(--fonte-mono); font-size: 0.82rem; font-weight: 500; color: var(--titulo); }
.dm-casa { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; min-width: 0; cursor: var(--cursor-ativo, pointer); }
.dm-casa:not(.is-caida):hover .dm-peca { transform: rotate(8deg); }
.dm-peca { display: block; width: clamp(20px, 2.6vw, 32px); aspect-ratio: 1 / 2; border-radius: 4px; background: var(--arq-papel); border: 1.5px solid var(--arq-papel-tinta);
  box-shadow: 0 6px 12px -8px rgba(26, 26, 46, 0.5); transform-origin: 100% 100%; transition: transform 460ms cubic-bezier(0.55, 0, 0.75, 0.2), background-color 300ms ease; }
.dm-peca svg { display: block; width: 100%; height: 100%; }
.dm-peca circle { fill: var(--arq-papel-tinta); }
.dm-peca line { stroke: var(--arq-papel-tinta); stroke-width: 1; }
.dm-casa.is-caida .dm-peca { transform: rotate(62deg); background: var(--arq-osso); }
.dm-casa.is-atual .dm-peca { box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 45%, transparent); }
.dm-rot { min-height: 2.4em; font-family: var(--fonte-mono); font-size: 0.66rem; line-height: 1.2; text-align: center; color: var(--texto); overflow-wrap: anywhere; }
/* the two ducts of each row */
.dm-canos { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) minmax(0, 1fr); gap: 0.45rem 0.6rem; align-items: stretch; }
.dm-cano { margin: 0; padding: 0.4rem 0.7rem; border-radius: 8px; border: 1px solid var(--linha-2); background: color-mix(in srgb, var(--fundo) 75%, transparent); font-size: 0.8rem; line-height: 1.35; color: var(--texto); }
.dm-cano-nome { font-weight: 600; color: var(--titulo); }
.dm-cano[data-estado="ainda"] { border-style: dashed; color: var(--fraco); }
.dm-cano[data-estado="ainda"] .dm-cano-nome { color: var(--fraco); }
.dm-cano[data-estado="fica"] { border-color: var(--arq-musgo); background: color-mix(in srgb, var(--arq-musgo) 10%, var(--fundo)); }
.dm-cano[data-estado="demolido"] { color: var(--fraco); }
.dm-cano[data-estado="demolido"] .dm-cano-nome { color: var(--fraco); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.dm-detalhe { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.8rem 1rem; border-radius: 8px; border: 1px solid var(--linha-2); background: color-mix(in srgb, var(--painel) 85%, transparent); min-height: 7.5rem; }
.dm-quando { font-family: var(--fonte-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--acento-2); }
.dm-linha { font-size: 0.9rem; line-height: 1.45; color: var(--texto); }
.dm-linha strong { font-family: var(--fonte-mono); font-size: 0.78rem; color: var(--titulo); margin-right: 0.2rem; }
.dm-proximo:focus-visible, .dm-data:focus-visible { outline: 2px solid var(--acento-2); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .dm-peca { transition: none; } }
@media (max-width: 560px) {
  .dm-grade { grid-template-columns: 2rem repeat(6, minmax(0, 1fr)); gap: 0.5rem 0.25rem; padding-right: 1.4rem; }
  .dm-data { font-size: 0.62rem; padding: 0.25rem 0; }
  .dm-rot { display: none; }
  .dm-canos { grid-template-columns: 2rem minmax(0, 1fr); }
  .dm-canos .dm-fila-nome { grid-row: span 2; }
}

/* ====== envelope.css ====== */
/* ==========================================================
   The envelope and the letter (chapter 4)
   ========================================================== */
.ev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.2rem 1.6rem; padding: clamp(0.75rem, 0.5rem + 1vw, 1.2rem); align-items: start; }
.ev-esq, .ev-dir { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
/* two envelopes on the table: the mother's X and the father's X or Y, with the letter inside or set aside */
.ev-mesa { position: relative; display: flex; justify-content: center; gap: 1.1rem; padding: 1.2rem 3.6rem 1.4rem 0.4rem; }
.ev-env { position: relative; width: clamp(92px, 11vw, 120px); aspect-ratio: 3 / 2; border-radius: 6px; background: var(--arq-papel); border: 1.5px solid var(--arq-papel-tinta);
  box-shadow: 0 10px 20px -12px rgba(26, 26, 46, 0.5); display: flex; align-items: center; justify-content: center; }
.ev-env::before { content: ''; position: absolute; inset: 0; border-radius: 5px; background: linear-gradient(160deg, transparent 49%, color-mix(in srgb, var(--arq-papel-tinta) 30%, transparent) 50%, transparent 51%), linear-gradient(-160deg, transparent 49%, color-mix(in srgb, var(--arq-papel-tinta) 30%, transparent) 50%, transparent 51%); pointer-events: none; }
.ev-letra { position: relative; font-family: var(--fonte-titulo); font-size: 2.4rem; font-weight: 600; line-height: 1; color: var(--arq-papel-tinta); }
.ev-quem { position: absolute; bottom: -1.35rem; left: 0; right: 0; text-align: center; font-family: var(--fonte-mono); font-size: 0.66rem; color: var(--suave); }
/* the father's envelope and the letter are buttons for the mouse and touch */
.ev-pai { position: relative; }
button.ev-env { padding: 0; font: inherit; cursor: var(--cursor-ativo, pointer); transition: transform 220ms var(--ease), box-shadow 220ms ease; }
button.ev-env:hover { transform: translateY(-3px); box-shadow: 0 14px 22px -12px rgba(26, 26, 46, 0.55), 0 0 0 2px color-mix(in srgb, var(--acento) 45%, transparent); }
.ev-carta { position: absolute; z-index: 1; right: -1.2rem; top: -0.9rem; padding: 0.3rem 0.5rem; border-radius: 3px; background: var(--fundo); border: 1.5px solid var(--acento);
  font-family: var(--fonte-mono); font-size: 0.78rem; font-weight: 500; color: var(--titulo); transform: rotate(-8deg); transition: transform 420ms var(--ease), border-color 300ms ease; cursor: var(--cursor-ativo, pointer); }
.ev-carta:hover { border-color: var(--acento-2); }
.ev-mesa.is-fora .ev-carta { transform: translate(3.1rem, 1.6rem) rotate(9deg); border-style: dashed; border-color: var(--fraco); color: var(--suave); text-decoration: line-through; }
.ev-controles { display: flex; flex-direction: column; gap: 0.8rem; }
.ev-grupo-rot { font-family: var(--fonte-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--suave); margin-bottom: 0.35rem; }
.ev-opcoes { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ev-opcao { min-height: 44px; min-width: 44px; padding: 0.45rem 0.95rem; border-radius: var(--pilula); border: 1px solid var(--linha-2); background: color-mix(in srgb, var(--fundo) 70%, transparent); color: var(--texto); font-size: 0.88rem; cursor: var(--cursor-ativo, pointer); }
.ev-opcao[aria-pressed="true"] { border-color: var(--acento); background: color-mix(in srgb, var(--acento) 16%, var(--fundo)); color: var(--titulo); font-weight: 600; }
.ev-opcao:focus-visible { outline: 2px solid var(--acento-2); outline-offset: 3px; }
/* the record of the person the envelopes make */
.ev-ficha { padding: 1rem 1.1rem 1.1rem 1.9rem; border-radius: 4px 12px 12px 4px; background: var(--arq-papel); color: var(--arq-papel-tinta); border: 1px solid rgba(26, 26, 46, 0.14); box-shadow: 0 10px 22px -12px rgba(26, 26, 46, 0.4); position: relative; min-height: 14rem; }
.ev-ficha::before { content: ''; position: absolute; left: 0.7rem; top: 1.15rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--fig-fundo); box-shadow: inset 0 0 0 1.5px var(--arq-papel-suave); }
.ev-ficha-rot { font-family: var(--fonte-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--arq-papel-suave); margin-bottom: 0.6rem; }
.ev-dados { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.35rem 0.9rem; margin: 0; }
.ev-dados dt { font-family: var(--fonte-mono); font-size: 0.72rem; color: var(--arq-papel-suave); padding-top: 0.15rem; }
.ev-dados dd { margin: 0; font-size: 0.92rem; line-height: 1.4; }
.ev-dados dd[data-k="cari"] { font-family: var(--fonte-mono); font-weight: 500; }
.ev-nome { margin-top: 0.8rem; font-family: var(--fonte-titulo); font-style: italic; font-size: 1.15rem; color: var(--arq-ferrugem); }
.ev-nota { font-size: 0.82rem; line-height: 1.4; color: var(--arq-papel-suave); }
.ev-intersexo { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px dashed rgba(26, 26, 46, 0.25); font-size: 0.82rem; line-height: 1.4; }
.ev-vistos { font-family: var(--fonte-mono); font-size: 0.8rem; color: var(--suave); }
.ev-tally { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; }
.ev-chip { min-height: 40px; padding: 0.35rem 0.6rem; text-align: left; border-radius: 6px; border: 1px dashed var(--linha-2); background: none; font-family: var(--fonte-mono); font-size: 0.72rem; color: var(--fraco); cursor: var(--cursor-ativo, pointer); }
.ev-chip:hover { border-color: var(--acento); color: var(--texto); }
.ev-chip:focus-visible { outline: 2px solid var(--acento-2); outline-offset: 2px; }
.ev-chip.is-visto { border-style: solid; border-color: var(--arq-musgo); color: var(--texto); }
.ev-chip.is-atual { background: color-mix(in srgb, var(--acento) 14%, transparent); color: var(--titulo); }
.ev-resultado { grid-column: 1 / -1; }
@media (prefers-reduced-motion: reduce) { .ev-carta { transition: none; } }
@media (max-width: 760px) {
  .ev { grid-template-columns: 1fr; }
  .ev-ficha { min-height: 0; }
}

/* ====== mensagem.css ====== */
/* ==========================================================
   Message and reading (chapter 5)
   ========================================================== */
.mg { display: flex; flex-direction: column; gap: 0.9rem; padding: clamp(0.75rem, 0.5rem + 1vw, 1.2rem); }
.mg-rot { font-family: var(--fonte-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--suave); }
.mg-atalhos { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.mg-atalho { min-height: 40px; padding: 0.4rem 0.9rem; border-radius: var(--pilula); border: 1px solid var(--linha-2); background: color-mix(in srgb, var(--fundo) 70%, transparent); color: var(--texto); font-size: 0.84rem; cursor: var(--cursor-ativo, pointer); }
.mg-atalho[aria-pressed="true"] { border-color: var(--acento); background: color-mix(in srgb, var(--acento) 16%, var(--fundo)); color: var(--titulo); font-weight: 600; }
/* three chains, each a line of steps and arrows that wraps on a narrow screen */
.mg-cadeias { display: flex; flex-direction: column; gap: 0.7rem; }
.mg-cadeia { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.35rem; padding: 0.6rem; border-radius: 8px; border: 1px solid var(--linha-2); background: color-mix(in srgb, var(--painel) 70%, transparent); }
.mg-no { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; flex: 0 1 auto; min-width: 5.5rem; max-width: 9.6rem; min-height: 44px; padding: 0.4rem 0.6rem; text-align: left; border-radius: 6px;
  border: 1.5px solid var(--acento); background: var(--arq-papel); color: var(--arq-papel-tinta); }
button.mg-no { cursor: var(--cursor-ativo, pointer); }
.mg-no-n { font-weight: 600; font-size: 0.84rem; line-height: 1.15; }
.mg-no-q { font-size: 0.7rem; line-height: 1.2; color: var(--arq-papel-suave); }
.mg-no-e { font-family: var(--fonte-mono); font-size: 0.68rem; font-weight: 500; color: var(--arq-musgo); }
.mg-no.is-off { border-style: dashed; border-color: var(--fraco); background: color-mix(in srgb, var(--fundo) 80%, transparent); }
.mg-no.is-off .mg-no-n { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.mg-no.is-off .mg-no-e { color: var(--arq-ferrugem); }
.mg-fixo { border-color: var(--linha-2); }
.mg-seta { align-self: center; width: 1.3rem; height: 2px; background: var(--acento); position: relative; }
.mg-seta::after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 6px solid var(--acento); border-right: 0; }
.mg-seta.is-off { background: repeating-linear-gradient(90deg, var(--fraco) 0 3px, transparent 3px 6px); }
.mg-seta.is-off::after { border-left-color: var(--fraco); }
/* the result of each chain sits on its own line under the steps; the arrow into it is not drawn */
.mg-seta:has(+ .mg-saida) { display: none; }
.mg-saida { flex: 1 1 100%; align-self: center; margin: 0; padding: 0.4rem 0.7rem; border-radius: 6px; font-size: 0.86rem; line-height: 1.4; color: var(--texto); border-left: 3px solid var(--acento-2); background: color-mix(in srgb, var(--acento-2) 8%, transparent); }
.mg-saida.is-mudou { animation: mg-marcar 900ms ease-out; }
@keyframes mg-marcar { from { background-color: color-mix(in srgb, var(--acento-2) 28%, transparent); } to { background-color: color-mix(in srgb, var(--acento-2) 8%, transparent); } }
.mg-leitura { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.8rem 1rem; border-radius: 8px; border: 1px solid var(--linha-2); background: color-mix(in srgb, var(--painel) 85%, transparent); min-height: 5rem; }
.mg-caso { font-size: 0.92rem; line-height: 1.45; color: var(--texto); }
.mg-igual { font-family: var(--fonte-titulo); font-style: italic; font-size: 1.08rem; line-height: 1.35; color: var(--titulo); }
.mg-inter { font-size: 0.8rem; color: var(--suave); }
.mg-atalho:focus-visible, button.mg-no:focus-visible { outline: 2px solid var(--acento-2); outline-offset: 3px; }
@media (max-width: 560px) {
  .mg-no { min-width: 0; max-width: none; flex: 1 1 7rem; }
  .mg-seta { width: 0.9rem; }
}

/* ====== faixas.css ====== */
/* ==========================================================
   The two ranges (chapter 6)
   ========================================================== */
.fx { display: flex; flex-direction: column; gap: 1rem; padding: clamp(0.75rem, 0.5rem + 1vw, 1.2rem); }
.fx-controle { display: flex; flex-direction: column; gap: 0.5rem; }
.fx-rotulo { font-family: var(--fonte-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--suave); }
.fx-tempo { width: 100%; accent-color: var(--acento); height: 36px; cursor: var(--cursor-ativo, pointer); }
.fx-marcas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.3rem; }
.fx-marca { font-family: var(--fonte-mono); font-size: 0.74rem; line-height: 1.2; padding: 0.35rem 0.4rem; border-radius: 6px; border: 1px solid transparent; color: var(--fraco); background: none; cursor: var(--cursor-ativo, pointer); min-height: 36px; }
.fx-marca.is-passada { color: var(--suave); }
.fx-marca.is-atual { color: var(--titulo); border-color: var(--acento); background: color-mix(in srgb, var(--acento) 14%, transparent); }
.fx-tempo:focus-visible, .fx-marca:focus-visible { outline: 2px solid var(--acento-2); outline-offset: 3px; }
/* the chart: one track per group, a linear scale of 0 to 30 nmol/L shown only where the essay gives numbers */
.fx-grafico { display: flex; flex-direction: column; gap: 0.9rem; padding: 1rem 1rem 0.6rem; border-radius: 8px; border: 1px solid var(--linha-2); background: color-mix(in srgb, var(--painel) 85%, transparent); }
.fx-fila { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.3rem 0.8rem; align-items: center; }
.fx-fila[hidden] { display: none; }
.fx-nome { font-size: 0.82rem; line-height: 1.25; color: var(--texto); font-weight: 500; }
.fx-trilho { position: relative; height: 2.4rem; border-bottom: 1px solid var(--linha-2); }
.fx-barra { position: absolute; top: 0.35rem; height: 1.1rem; border-radius: 3px; background: var(--arq-argila); transition: left 650ms var(--ease), width 650ms var(--ease); }
.fx-fila[data-f="b"] .fx-barra { background: var(--acento-2); }
.fx-valor { position: absolute; left: 0; top: 1.25rem; white-space: nowrap; font-family: var(--fonte-mono); font-size: 0.7rem; color: var(--texto); }
.is-sem-escala .fx-barra { background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.35) 0 2px, transparent 2px 6px); }
.fx-alvo { position: absolute; top: 0.1rem; height: 1.6rem; border: 1.5px dashed var(--acento-2); border-radius: 3px; }
.fx-alvo-rot { position: absolute; left: calc(100% + 0.4rem); top: 0; line-height: 1.5rem; white-space: nowrap; font-family: var(--fonte-mono); font-size: 0.66rem; color: var(--acento-2); }
.fx-pino { position: absolute; top: 0.1rem; width: 0; height: 1.6rem; border-left: 3px solid var(--titulo); }
.fx-pino-rot { position: absolute; left: 0.3rem; top: 1.75rem; white-space: nowrap; font-family: var(--fonte-mono); font-size: 0.7rem; font-weight: 500; color: var(--titulo); }
.fx-fila[data-f="a"] .fx-alvo, .fx-fila[data-f="b"] .fx-alvo, .fx-fila[data-f="a"] .fx-pino, .fx-fila[data-f="b"] .fx-pino { display: none; }
.fx-vao { align-self: center; font-family: var(--fonte-titulo); font-style: italic; font-size: 1.05rem; color: var(--titulo); }
.fx-vao[hidden] { display: none; }
.fx-eixo { position: relative; margin-left: calc(9rem + 0.8rem); height: 2.2rem; border-top: 1px solid var(--suave); }
.fx-eixo-rot { position: absolute; right: 0; top: 1.15rem; font-family: var(--fonte-mono); font-size: 0.66rem; color: var(--suave); }
.fx-tick { position: absolute; top: 0.2rem; transform: translateX(-50%); font-family: var(--fonte-mono); font-size: 0.66rem; color: var(--suave); }
.fx-tick:first-of-type { transform: none; }
.fx-tick:last-of-type { transform: translateX(-100%); }
.is-sem-escala .fx-eixo { visibility: hidden; }
.fx-texto { font-size: 0.92rem; line-height: 1.5; color: var(--texto); min-height: 4.5rem; }
@media (prefers-reduced-motion: reduce) { .fx-barra { transition: none; } }
@media (max-width: 560px) {
  .fx-fila { grid-template-columns: 1fr; }
  .fx-eixo { margin-left: 0; }
  .fx-marcas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ====== endereco.css ====== */
/* ==========================================================
   The address of true sex (chapter 8)
   ========================================================== */
.ed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem 1.6rem; padding: clamp(0.75rem, 0.5rem + 1vw, 1.2rem); align-items: start; }
.ed-esq, .ed-dir { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.ed-controle { display: flex; flex-direction: column; gap: 0.45rem; }
.ed-rotulo { font-family: var(--fonte-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--suave); }
.ed-tempo { width: 100%; accent-color: var(--acento); height: 36px; cursor: var(--cursor-ativo, pointer); }
.ed-marcas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.2rem; }
.ed-marca { font-family: var(--fonte-mono); font-size: 0.7rem; line-height: 1.15; padding: 0.3rem 0.1rem; border-radius: 6px; border: 1px solid transparent; color: var(--fraco); background: none; cursor: var(--cursor-ativo, pointer); min-height: 34px; }
.ed-marca.is-passada { color: var(--suave); }
.ed-marca.is-atual { color: var(--titulo); border-color: var(--acento); background: color-mix(in srgb, var(--acento) 14%, transparent); }
.ed-tempo:focus-visible, .ed-marca:focus-visible { outline: 2px solid var(--acento-2); outline-offset: 3px; }
.ed-conta { font-family: var(--fonte-mono); font-size: 0.8rem; color: var(--texto); padding-top: 0.4rem; border-top: 1px solid var(--linha-2); }
/* the layers, from the outside in; the crown sits on the one the laboratory of the day could read */
.ed-pilha { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.ed-camada { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.05rem 0.6rem; padding: 0.5rem 0.75rem; border-radius: 6px; border: 1px solid var(--linha-2); background: color-mix(in srgb, var(--fundo) 75%, transparent); transition: background-color 400ms ease, border-color 400ms ease; }
.ed-n { font-weight: 600; font-size: 0.88rem; color: var(--titulo); }
.ed-q { grid-column: 1; font-size: 0.76rem; color: var(--suave); }
.ed-anos { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--fonte-mono); font-size: 0.68rem; color: var(--suave); text-align: right; }
.ed-coroa { display: none; position: absolute; right: 0.6rem; top: -0.7rem; padding: 0.05rem 0.5rem; border-radius: var(--pilula); background: var(--titulo); color: var(--fundo); font-family: var(--fonte-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; }
.ed-camada.is-coroa { border-color: var(--titulo); background: var(--arq-papel); border-width: 1.5px; margin-top: 0.4rem; }
.ed-camada.is-coroa .ed-coroa { display: block; }
.ed-camada.is-coroa .ed-anos { color: var(--titulo); }
.ed-camada.is-ja { border-style: dashed; }
.ed-camada.is-clicavel { cursor: var(--cursor-ativo, pointer); }
.ed-camada.is-clicavel:not(.is-coroa):hover { border-color: var(--acento); }
.ed-camada.is-chegou .ed-coroa { animation: ed-pousar 520ms var(--ease); }
@keyframes ed-pousar { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
.ed-texto { font-size: 0.92rem; line-height: 1.5; color: var(--texto); padding: 0.8rem 1rem; border-radius: 8px; border: 1px solid var(--linha-2); background: color-mix(in srgb, var(--painel) 85%, transparent); min-height: 7rem; }
.ed-esp-rot { font-family: var(--fonte-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--suave); }
.ed-esporte { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.ed-evento { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.6rem; font-size: 0.84rem; line-height: 1.4; color: var(--texto); }
.ed-evento[hidden] { display: none; }
.ed-ev-ano { font-family: var(--fonte-mono); font-size: 0.74rem; color: var(--acento-2); padding-top: 0.1rem; }
.ed-evento.is-ficha { padding: 0.55rem 0.7rem; border-radius: 4px 10px 10px 4px; background: var(--arq-papel); color: var(--arq-papel-tinta); border: 1px solid rgba(26, 26, 46, 0.14); box-shadow: 0 8px 18px -12px rgba(26, 26, 46, 0.4); }
.ed-resultado { grid-column: 1 / -1; }
@media (prefers-reduced-motion: reduce) { .ed-camada { transition: none; } }
@media (max-width: 760px) {
  .ed { grid-template-columns: 1fr; }
  .ed-marcas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ====== gavetas.css ====== */
/* ==========================================================
   The three drawers (chapter 13)
   ========================================================== */
.gv { display: flex; flex-direction: column; gap: 0.9rem; padding: clamp(0.75rem, 0.5rem + 1vw, 1.2rem); }
.gv-dica { font-family: var(--fonte-mono); font-size: 0.74rem; color: var(--suave); }
.gv-mesa { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 0.6rem; }
.gv-item { display: flex; flex-direction: column; gap: 0.25rem; text-align: left; padding: 0.7rem 0.8rem 0.75rem 1.6rem; position: relative; min-height: 6.2rem; cursor: var(--cursor-ativo, pointer);
  border-radius: 4px 10px 10px 4px; background: var(--arq-papel); color: var(--arq-papel-tinta); border: 1px solid rgba(26, 26, 46, 0.14); box-shadow: 0 8px 18px -12px rgba(26, 26, 46, 0.4); transition: transform 250ms var(--ease), box-shadow 250ms ease; }
.gv-item::before { content: ''; position: absolute; left: 0.6rem; top: 0.95rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--fig-fundo); box-shadow: inset 0 0 0 1.5px var(--arq-papel-suave); }
.gv-item-n { font-weight: 600; font-size: 0.9rem; }
.gv-item-d { font-size: 0.78rem; line-height: 1.35; color: var(--arq-papel-suave); }
.gv-item[aria-pressed="true"] { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 14px 24px -12px rgba(26, 26, 46, 0.55), inset 0 0 0 2px var(--acento); }
.gv-item.is-guardado { background: color-mix(in srgb, var(--fundo) 85%, transparent); border-style: dashed; box-shadow: none; cursor: default; }
.gv-item.is-guardado .gv-item-n { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--suave); }
.gv-item.is-guardado .gv-item-d { color: var(--suave); }
/* the chest of drawers */
.gv-comoda { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; padding: 0.6rem; border-radius: 10px; background: var(--arq-argila); }
.gv-gaveta { position: relative; display: flex; flex-direction: column; gap: 0.25rem; text-align: left; min-height: 9rem; padding: 0.75rem 0.8rem 1.8rem; cursor: var(--cursor-ativo, pointer);
  border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.35); background: #f4f6f8; color: var(--arq-papel-tinta); transition: transform 250ms var(--ease), box-shadow 250ms ease; }
.gv-gaveta-n { font-family: var(--fonte-titulo); font-size: 1.12rem; font-weight: 600; }
.gv-gaveta-q { font-size: 0.76rem; line-height: 1.35; color: var(--arq-papel-suave); }
.gv-dentro { margin-top: auto; font-family: var(--fonte-mono); font-size: 0.72rem; line-height: 1.4; color: var(--arq-musgo); }
.gv-puxador { position: absolute; left: 50%; bottom: 0.6rem; width: 2.4rem; height: 0.4rem; margin-left: -1.2rem; border-radius: 3px; background: var(--arq-papel-suave); }
.gv-gaveta.is-alvo { box-shadow: 0 0 0 2px color-mix(in srgb, var(--acento) 70%, transparent); }
.gv-gaveta.is-alvo:hover { transform: translateY(2px); }
.gv-gaveta.is-fechada { cursor: default; box-shadow: inset 0 -3px 0 rgba(26, 26, 46, 0.15); }
.gv-gaveta.is-aceita { animation: gv-aceita 480ms var(--ease); }
.gv-gaveta.is-recusa { animation: gv-recusa 380ms ease; }
@keyframes gv-aceita { 0% { transform: translateY(8px); } 100% { transform: none; } }
@keyframes gv-recusa { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.gv-aviso { min-height: 2.8rem; font-size: 0.9rem; line-height: 1.45; color: var(--texto); padding: 0.5rem 0.8rem; border-left: 3px solid var(--acento-2); background: color-mix(in srgb, var(--acento-2) 7%, transparent); border-radius: 0 6px 6px 0; }
.gv-aviso:empty { visibility: hidden; }
.gv-conta { font-family: var(--fonte-mono); font-size: 0.8rem; color: var(--suave); }
.gv-item:focus-visible, .gv-gaveta:focus-visible { outline: 2px solid var(--acento-2); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .gv-item, .gv-gaveta { transition: none; } }
@media (max-width: 640px) {
  .gv-comoda { grid-template-columns: 1fr; }
  .gv-gaveta { min-height: 0; }
}

/* ====== inventario.css ====== */
/* ==========================================================
   The organ inventory (chapter 14)
   ========================================================== */
.iv { display: flex; flex-direction: column; gap: 0.9rem; padding: clamp(0.75rem, 0.5rem + 1vw, 1.2rem); }
.iv-abas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.iv-aba { min-height: 52px; padding: 0.55rem 0.8rem; text-align: left; border-radius: 8px; border: 1px solid var(--linha-2); background: color-mix(in srgb, var(--fundo) 70%, transparent); color: var(--texto); font-size: 0.86rem; line-height: 1.3; cursor: var(--cursor-ativo, pointer); }
.iv-aba.is-vista { border-style: solid; border-color: color-mix(in srgb, var(--arq-musgo) 60%, transparent); }
.iv-aba[aria-pressed="true"] { border-color: var(--acento); background: color-mix(in srgb, var(--acento) 16%, var(--fundo)); color: var(--titulo); font-weight: 600; }
.iv-aba:focus-visible { outline: 2px solid var(--acento-2); outline-offset: 3px; }
/* the medical record: paper, a header, one row per organ, and the field the calculation never uses */
.iv-ficha { padding: 1rem 1.1rem 1.1rem 1.9rem; position: relative; border-radius: 4px 12px 12px 4px; background: var(--arq-papel); color: var(--arq-papel-tinta); border: 1px solid rgba(26, 26, 46, 0.14); box-shadow: 0 10px 22px -12px rgba(26, 26, 46, 0.4); }
.iv-ficha[hidden] { display: none; }
.iv-ficha::before { content: ''; position: absolute; left: 0.7rem; top: 1.15rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--fig-fundo); box-shadow: inset 0 0 0 1.5px var(--arq-papel-suave); }
.iv-quem { font-family: var(--fonte-titulo); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.iv-d { font-size: 0.8rem; color: var(--arq-papel-suave); margin-bottom: 0.7rem; }
.iv-cab { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.8rem; font-family: var(--fonte-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--arq-papel-suave); border-bottom: 1px solid rgba(26, 26, 46, 0.2); padding-bottom: 0.3rem; }
.iv-lista { list-style: none; margin: 0; padding: 0; }
.iv-org { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 0.8rem; padding: 0.45rem 0; border-bottom: 1px dashed rgba(26, 26, 46, 0.18); }
.iv-org-n { grid-column: 1; font-weight: 600; font-size: 0.88rem; }
.iv-org-e { grid-column: 1; font-family: var(--fonte-mono); font-size: 0.68rem; color: var(--arq-musgo); }
.iv-org-r { grid-column: 2; grid-row: 1 / span 2; font-size: 0.86rem; line-height: 1.4; }
.iv-org.is-ausente .iv-org-e { color: var(--arq-ferrugem); }
.iv-org.is-campo { border-bottom: 0; }
.iv-org.is-campo .iv-org-n { color: var(--arq-papel-suave); text-decoration: line-through; text-decoration-thickness: 1.5px; font-weight: 500; }
.iv-org.is-campo .iv-org-e { color: var(--arq-papel-suave); }
.iv-sangue { margin-top: 0.7rem; font-size: 0.82rem; line-height: 1.4; padding: 0.45rem 0.6rem; border-left: 3px solid var(--arq-ferrugem); background: rgba(138, 42, 42, 0.06); }
.iv-nota { margin-top: 0.6rem; font-family: var(--fonte-titulo); font-style: italic; font-size: 1.05rem; color: var(--arq-papel-tinta); }
.iv-ficha.is-montando .iv-org { animation: iv-entrar 420ms var(--ease) both; }
.iv-ficha.is-montando .iv-org:nth-child(2) { animation-delay: 90ms; }
.iv-ficha.is-montando .iv-org:nth-child(3) { animation-delay: 180ms; }
.iv-ficha.is-montando .iv-org:nth-child(4) { animation-delay: 270ms; }
.iv-ficha.is-montando .iv-org:nth-child(5) { animation-delay: 360ms; }
.iv-ficha.is-montando .iv-org:nth-child(6) { animation-delay: 450ms; }
@keyframes iv-entrar { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.iv-vistas { font-family: var(--fonte-mono); font-size: 0.8rem; color: var(--suave); }
.iv-lado[hidden] { display: none; }
.iv-lado-rot { font-family: var(--fonte-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--suave); margin-bottom: 0.4rem; }
.iv-colunas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.iv-coluna { padding: 0.6rem 0.7rem; border-radius: 8px; border: 1px solid var(--linha-2); background: color-mix(in srgb, var(--painel) 85%, transparent); }
.iv-coluna-n { font-size: 0.8rem; font-weight: 600; color: var(--titulo); line-height: 1.3; margin-bottom: 0.3rem; }
.iv-coluna .iv-org { grid-template-columns: minmax(0, 1fr) auto; padding: 0.3rem 0; border-bottom-color: var(--linha-2); }
.iv-coluna .iv-org-n { font-size: 0.8rem; color: var(--texto); }
.iv-coluna .iv-org-e { grid-column: 2; grid-row: 1; align-self: center; }
.iv-coluna .iv-org.is-campo .iv-org-n, .iv-coluna .iv-org.is-campo .iv-org-e { color: var(--suave); }
.iv-coluna .iv-org-e { color: var(--arq-musgo); }
.iv-coluna .iv-org.is-ausente .iv-org-e { color: var(--arq-ferrugem); }
@media (max-width: 640px) {
  .iv-abas, .iv-colunas { grid-template-columns: 1fr; }
  .iv-cab { display: none; }
  .iv-org { grid-template-columns: 1fr; }
  .iv-org-r { grid-column: 1; grid-row: auto; }
}

/* ====== verbo.css ====== */
/* ==========================================================
   The tense of the verb (chapter 15)
   ========================================================== */
.vb { display: flex; flex-direction: column; gap: 0.85rem; padding: clamp(0.75rem, 0.5rem + 1vw, 1.2rem); }
.vb-rot { font-family: var(--fonte-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--suave); }
.vb-verbos { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.vb-verbo { min-height: 44px; padding: 0.45rem 1rem; border-radius: var(--pilula); border: 1px solid var(--linha-2); background: color-mix(in srgb, var(--fundo) 70%, transparent); color: var(--texto); font-family: var(--fonte-titulo); font-size: 1.05rem; font-style: italic; cursor: var(--cursor-ativo, pointer); }
.vb-verbo[aria-pressed="true"] { border-color: var(--acento); background: color-mix(in srgb, var(--acento) 16%, var(--fundo)); color: var(--titulo); font-weight: 600; }
.vb-verbo:focus-visible { outline: 2px solid var(--acento-2); outline-offset: 3px; }
.vb-cab { padding: 0.6rem 0.9rem; border-radius: 8px; border: 1px solid var(--linha-2); background: color-mix(in srgb, var(--painel) 85%, transparent); }
.vb-tempo { font-family: var(--fonte-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--acento-2); }
.vb-q { font-size: 0.9rem; line-height: 1.45; color: var(--texto); }
.vb-tabela { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 0.6rem; }
.vb-linha { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.7rem 0.85rem 0.75rem 1.6rem; position: relative; border-radius: 4px 10px 10px 4px; background: var(--arq-papel); color: var(--arq-papel-tinta); border: 1px solid rgba(26, 26, 46, 0.14); box-shadow: 0 8px 18px -12px rgba(26, 26, 46, 0.4); }
.vb-linha::before { content: ''; position: absolute; left: 0.6rem; top: 0.95rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--fig-fundo); box-shadow: inset 0 0 0 1.5px var(--arq-papel-suave); }
.vb-n { font-weight: 600; font-size: 0.9rem; }
.vb-hoje { font-size: 0.78rem; line-height: 1.35; color: var(--arq-papel-suave); }
.vb-diz { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.5rem; margin-top: auto; padding-top: 0.35rem; border-top: 1px dashed rgba(26, 26, 46, 0.2); font-size: 0.86rem; line-height: 1.35; }
.vb-selo { font-family: var(--fonte-mono); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.05rem 0.4rem; border: 1.5px solid currentColor; border-radius: 4px; }
.vb-selo:empty { display: none; }
.vb-linha[data-tipo="absurdo"] .vb-selo, .vb-linha[data-tipo="briga"] .vb-selo { color: var(--arq-ferrugem); }
.vb-linha[data-tipo="passado"] .vb-selo, .vb-linha[data-tipo="data"] .vb-selo { color: var(--acento-2); }
.vb-linha[data-tipo="sem"] .vb-selo { color: var(--arq-papel-suave); }
.vb-linha[data-tipo="-"] { background: color-mix(in srgb, var(--fundo) 85%, transparent); box-shadow: none; border-style: dashed; }
.vb-linha[data-tipo="-"] .vb-diz-t { color: var(--arq-papel-suave); font-style: italic; }
.vb-linha.is-virou .vb-diz { animation: vb-virar 480ms var(--ease); }
@keyframes vb-virar { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.vb-nota { font-family: var(--fonte-titulo); font-style: italic; font-size: 1.08rem; line-height: 1.4; color: var(--titulo); padding-left: 0.8rem; border-left: 3px solid var(--acento-2); }
.vb-vistas { font-family: var(--fonte-mono); font-size: 0.8rem; color: var(--suave); }

/* ====== balcoes.css ====== */
/* ==========================================================
   Each place asks about a layer (chapter 16)
   ========================================================== */
.bc { display: flex; flex-direction: column; gap: 0.85rem; padding: clamp(0.75rem, 0.5rem + 1vw, 1.2rem); }
.bc-pessoa { font-size: 0.86rem; color: var(--suave); }
.bc-balcoes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.bc-balcao { display: flex; flex-direction: column; gap: 0.25rem; text-align: left; min-height: 72px; padding: 0.6rem 0.75rem; border-radius: 8px 8px 2px 2px; border: 1px solid var(--linha-2); border-bottom: 5px solid var(--arq-argila); background: color-mix(in srgb, var(--fundo) 70%, transparent); color: var(--texto); cursor: var(--cursor-ativo, pointer); }
.bc-balcao-n { font-family: var(--fonte-titulo); font-size: 1.1rem; font-weight: 600; color: var(--titulo); line-height: 1.1; }
.bc-balcao-p { font-size: 0.76rem; line-height: 1.3; color: var(--suave); }
.bc-balcao.is-visitado { border-bottom-color: var(--arq-musgo); }
.bc-balcao[aria-pressed="true"] { border-color: var(--acento); border-bottom-color: var(--acento); background: color-mix(in srgb, var(--acento) 14%, var(--fundo)); }
.bc-balcao:focus-visible, .bc-trava-btn:focus-visible { outline: 2px solid var(--acento-2); outline-offset: 3px; }
.bc-faixa-rot { font-family: var(--fonte-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--suave); }
.bc-camadas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.35rem; }
.bc-camada { display: flex; border-radius: 6px; border: 1px dashed var(--linha-2); font-size: 0.8rem; line-height: 1.3; color: var(--fraco); transition: background-color 350ms ease, color 350ms ease; }
.bc-camada-b { flex: 1; min-height: 40px; padding: 0.45rem 0.6rem; text-align: left; border: 0; background: none; font: inherit; color: inherit; cursor: var(--cursor-ativo, pointer); }
.bc-camada:not(.is-lida):hover { border-color: var(--acento); color: var(--texto); }
.bc-camada-b:focus-visible { outline: 2px solid var(--acento-2); outline-offset: 2px; }
.bc-camada.is-lida { border-style: solid; border-color: var(--titulo); background: var(--titulo); color: var(--fundo); font-weight: 600; }
/* the question nobody asks: printed, crossed out */
.bc-ninguem { align-self: flex-start; font-family: var(--fonte-titulo); font-size: 1.05rem; color: var(--texto); }
.bc-ninguem-q { font-style: italic; color: var(--suave); text-decoration-thickness: 1.5px; text-decoration-color: var(--arq-ferrugem); }
.bc-mesa { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.9rem 1rem; border-radius: 8px; border: 1px solid var(--linha-2); background: color-mix(in srgb, var(--painel) 90%, transparent); min-height: 8rem; }
.bc-mesa[hidden] { display: none; }
.bc-mesa-n { font-family: var(--fonte-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--acento-2); }
.bc-mesa-p { font-family: var(--fonte-titulo); font-size: 1.15rem; font-weight: 600; color: var(--titulo); line-height: 1.25; }
.bc-mesa-r { font-size: 0.9rem; line-height: 1.5; color: var(--texto); }
.bc-mesa-nota { font-size: 0.84rem; line-height: 1.45; color: var(--texto); padding: 0.45rem 0.7rem; border-left: 3px solid var(--arq-musgo); background: color-mix(in srgb, var(--arq-musgo) 8%, transparent); border-radius: 0 6px 6px 0; }
.bc-mesa-nota[hidden] { display: none; }
.bc-trava-btn { align-self: flex-start; min-height: 44px; padding: 0.5rem 1rem; border-radius: var(--pilula); border: 1px solid var(--acento-2); background: color-mix(in srgb, var(--acento-2) 12%, transparent); color: var(--titulo); font-size: 0.86rem; cursor: var(--cursor-ativo, pointer); }
.bc-trava-btn[hidden] { display: none; }
.bc-trava { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.6rem 0.8rem; border-radius: 4px 10px 10px 4px; background: var(--arq-papel); color: var(--arq-papel-tinta); border: 1px solid rgba(26, 26, 46, 0.14); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--arq-ferrugem) 55%, transparent); font-size: 0.86rem; line-height: 1.45; }
.bc-trava[hidden] { display: none; }
.bc-trava-selo { align-self: flex-start; font-family: var(--fonte-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.1rem 0.45rem; border: 2px solid currentColor; border-radius: 4px; color: var(--arq-ferrugem); transform: rotate(-3deg); }
.bc-visitas { font-family: var(--fonte-mono); font-size: 0.8rem; color: var(--suave); }
@media (prefers-reduced-motion: reduce) { .bc-camada { transition: none; } }
@media (max-width: 640px) {
  .bc-balcoes, .bc-camadas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ====== navio.css ====== */
/* ==========================================================
   The ship of Theseus (chapter 17)
   ========================================================== */
.nv { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.2rem 1.6rem; padding: clamp(0.75rem, 0.5rem + 1vw, 1.2rem); align-items: start; }
.nv-barco { position: relative; display: flex; flex-direction: column; align-items: stretch; padding-top: 2.6rem; min-width: 0; }
/* the hull: planks stacked, narrowing towards the keel */
.nv-casco { display: flex; flex-direction: column; gap: 3px; padding: 6px; background: #3b3328; clip-path: polygon(0 0, 100% 0, 93% 100%, 7% 100%); }
.nv-tabua { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; min-height: 2.35rem; padding: 0.3rem 9%; border: 0; border-radius: 2px; text-align: left; cursor: var(--cursor-ativo, pointer);
  background: var(--arq-argila); color: #ffffff; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 18px); }
.nv-tabua-n { font-size: 0.84rem; font-weight: 600; line-height: 1.2; }
.nv-tabua-e { font-family: var(--fonte-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; opacity: 0.9; }
.nv-tabua[data-t="fica"] { background-color: var(--arq-rocha); }
.nv-tabua[data-t="nunca"] { background-color: #d39a4c; color: #1a1a2e; background-image: none; }
.nv-tabua.is-trava { outline: 1px dashed rgba(255, 255, 255, 0.55); outline-offset: -4px; }
.nv-tabua.is-nova { background-color: var(--arq-osso); color: var(--arq-papel-tinta); background-image: repeating-linear-gradient(90deg, rgba(90, 60, 30, 0.08) 0 2px, transparent 2px 22px); cursor: default; }
.nv-tabua.is-entrando { animation: nv-entrar 520ms var(--ease); }
.nv-tabua.is-nao, .nv-quilha.is-nao { animation: nv-nao 360ms ease; }
@keyframes nv-entrar { from { transform: translateX(-14px); opacity: 0.2; } to { transform: none; opacity: 1; } }
@keyframes nv-nao { 0%, 100% { transform: none; } 30% { transform: translateX(-4px); } 70% { transform: translateX(4px); } }
.nv-quilha { align-self: center; width: 78%; min-height: 2.2rem; margin-top: 2px; border: 0; border-radius: 0 0 8px 8px; background: var(--arq-rocha); color: #ffffff; font-family: var(--fonte-mono); font-size: 0.74rem; cursor: var(--cursor-ativo, pointer); }
/* the plaque nailed to the hull: it never changes */
.nv-placa { position: absolute; z-index: 1; top: 0.2rem; left: 50%; transform: translateX(-50%) rotate(-2deg); display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.9rem; border-radius: 3px;
  background: linear-gradient(180deg, #e8e4da, #cfc8b8); color: #1a1a2e; border: 1px solid rgba(26, 26, 46, 0.35); box-shadow: 0 6px 12px -6px rgba(26, 26, 46, 0.5); font-family: var(--fonte-mono); font-size: 0.82rem; font-weight: 500; white-space: nowrap; }
.nv-prego { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #6b6558; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4); }
.nv-placa-nota { align-self: center; min-height: 1.2rem; margin-top: 0.5rem; font-family: var(--fonte-mono); font-size: 0.72rem; color: var(--suave); }
.nv-lado { display: flex; flex-direction: column; gap: 0.8rem; }
.nv-dica { font-family: var(--fonte-mono); font-size: 0.74rem; color: var(--suave); }
.nv-cir { align-self: flex-start; min-height: 44px; padding: 0.5rem 1rem; border-radius: var(--pilula); border: 1px solid var(--acento-2); color: var(--titulo); background: color-mix(in srgb, var(--acento-2) 10%, transparent); font-size: 0.86rem; text-align: left; cursor: var(--cursor-ativo, pointer); }
.nv-cir[aria-pressed="true"] { background: color-mix(in srgb, var(--acento-2) 28%, transparent); font-weight: 600; }
.nv-conta { font-family: var(--fonte-mono); font-size: 0.8rem; color: var(--texto); padding-top: 0.4rem; border-top: 1px solid var(--linha-2); }
.nv-aviso { min-height: 4.5rem; font-size: 0.9rem; line-height: 1.45; color: var(--texto); padding: 0.5rem 0.8rem; border-left: 3px solid var(--acento-2); background: color-mix(in srgb, var(--acento-2) 7%, transparent); border-radius: 0 6px 6px 0; }
.nv-aviso:empty { visibility: hidden; }
.nv-tabua:focus-visible, .nv-quilha:focus-visible, .nv-cir:focus-visible { outline: 2px solid var(--acento-2); outline-offset: 2px; }
.nv-resultado { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .nv { grid-template-columns: 1fr; }
  .nv-tabua { padding: 0.3rem 10%; }
}
