/* ==========================================================
   "A próxima aposta" · the visual remake ("A mesa de silício", approved 25/11/2026).
   ensaio.css is the house engine; everything the reader sees is redrawn here, under html.aposta.
   The table: green felt that is a circuit board, gold traces, ivory chips, a wooden rail, a low lamp.
   No pills, no all-caps tracking, no generic glass: plates, chips, cards and a note on paper.
   ========================================================== */
html.aposta {
  /* palette: every text pair is measured AA on --fundo and --painel (qa/verificar_mock.cjs) */
  --fundo: #08110d;
  --fundo-2: #0c1a13;
  --painel: #0f1c16;
  --painel-2: #14261d;
  --linha: rgba(242, 236, 220, 0.12);
  --linha-2: rgba(242, 236, 220, 0.24);
  --titulo: #f2ecdc;
  --texto: #dcd6c6;
  --suave: #a9b2a4;
  --fraco: #959f91;
  --acento: #8fc23f;
  --acento-2: #d1a650;
  --alerta: #e38267;
  --sobre-acento: #0b1a07;

  /* the table's materials */
  --marfim: #f2ecdc;
  --ouro: #d1a650;
  --ouro-texto: #d9b25e;
  --feltro: #123a26;
  --feltro-escuro: #0a2116;
  --madeira: #3a2414;
  --madeira-clara: #5b3a24;
  --ficha-verde: #2f7a3a;
  --ficha-vermelha: #b8453a;
  --tinta-papel: #1a1710;

  --vidro: rgba(12, 26, 19, 0.9);
  --vidro-forte: rgba(8, 17, 13, 0.96);
  --vidro-borda: rgba(209, 166, 80, 0.28);

  --fonte-titulo: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --fonte-texto: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --fonte-mono: 'DM Mono', 'Cascadia Mono', Consolas, monospace;
  --raio: 6px;
  --raio-grande: 14px;

  /* reading modes by part: I red chip, II felt green, III trace gold, IV ivory (decorative only) */
  --modo-1a: #d8664a; --modo-1b: #d1a650;
  --modo-2a: #8fc23f; --modo-2b: #2f7a3a;
  --modo-3a: #d1a650; --modo-3b: #8fc23f;
  --modo-4a: #f2ecdc; --modo-4b: #d1a650;

  --fig-fundo: #0b2418;
  --fig-tinta: #f2ecdc;
  --fig-suave: #a9b2a4;
  --fig-acento: #8fc23f;
  --fig-acento-2: #d1a650;
  --fig-alerta: #e38267;
}
html.aposta body { background: var(--fundo); color: var(--texto); }
/* body with overflow-x: hidden is a scroll container; the cards waiting to be dealt (rotateY) made it scroll
   by 24 px on a phone, and every jump of the index landed 24 px low (check_salto, 25/11/2026). clip cuts
   sideways overflow the same way without making a scroll container. */
@supports (overflow-x: clip) { html.aposta body { overflow-x: clip; } }
html.aposta ::selection { background: color-mix(in srgb, var(--ouro) 45%, transparent); color: var(--titulo); }

/* a chip, drawn in CSS: ivory face, edge spots in the part's colour */
html.aposta .ficha-css,
html.aposta .hero-fatos li,
html.aposta .capitulo-nota-num,
html.aposta .barra-capitulo-n {
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--marfim) 0 55%, transparent 56%),
    radial-gradient(circle, transparent 0 63%, var(--marfim) 64% 70%, transparent 71%),
    repeating-conic-gradient(var(--ficha-verde) 0 18deg, var(--marfim) 18deg 36deg);
  color: var(--tinta-papel);
  box-shadow: 0 0 0 2px #08110d, 0 6px 16px rgba(0, 0, 0, 0.55);
}

/* ---------- buttons: brass plates, not pills ---------- */
html.aposta .botao {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 46px; padding: 0.55rem 1.15rem;
  border-radius: var(--raio); border: 1px solid color-mix(in srgb, var(--ouro) 70%, transparent);
  background: linear-gradient(#2a2213, #17130b); color: var(--marfim);
  font: 500 var(--t-sm)/1.2 var(--fonte-titulo); letter-spacing: 0; text-transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 230, 170, 0.18), 0 6px 18px rgba(0, 0, 0, 0.45);
}
html.aposta .botao:hover { border-color: var(--ouro); color: #fff8e6; }
html.aposta .botao-sec { background: transparent; border-color: var(--linha-2); box-shadow: none; color: var(--texto); }
html.aposta :is(.od-recomecar, .ap-recomecar) {
  min-height: 44px; padding: 0.45rem 1rem; border-radius: var(--raio);
  border: 1px solid color-mix(in srgb, var(--ouro) 70%, transparent); background: linear-gradient(#2a2213, #17130b);
  color: var(--marfim); font: 500 var(--t-sm) var(--fonte-titulo); cursor: pointer;
}
html.aposta :focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; }

/* ---------- HERO: the table under the lamp ---------- */
html.aposta .hero { min-height: 100svh; position: relative; isolation: isolate; align-items: center; padding: 6rem var(--margem) 4rem; }
html.aposta .hero::before { background:
  linear-gradient(90deg, rgba(5, 10, 8, 0.94) 0%, rgba(5, 10, 8, 0.78) 30%, rgba(5, 10, 8, 0.2) 58%, transparent 72%),
  linear-gradient(to top, var(--fundo) 0%, rgba(8, 17, 13, 0.55) 22%, transparent 45%); }
html.aposta .hero-arte img { object-fit: cover; object-position: 60% 50%; filter: saturate(1.05); }
html.aposta .hero-luz { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
html.aposta .hero-texto { position: relative; max-width: 38rem; margin-right: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; text-align: left; }
html.aposta .hero-olho { margin: 0; font: 400 var(--t-xs)/1.3 var(--fonte-mono); letter-spacing: 0.02em; text-transform: none; color: var(--ouro-texto); }
html.aposta .hero-titulo { margin: 0; font: 400 clamp(3.2rem, 1.6rem + 6vw, 7rem)/0.95 var(--fonte-titulo); font-variation-settings: 'opsz' 144; color: var(--titulo); letter-spacing: -0.01em; background: none; -webkit-text-fill-color: currentColor; }
html.aposta .hero-titulo em { font-style: italic; color: var(--titulo); position: relative; }
html.aposta .hero-titulo em::after { content: ''; position: absolute; left: 0.08em; right: 0.1em; bottom: -0.06em; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--ouro), color-mix(in srgb, var(--ouro) 10%, transparent)); }
html.aposta .hero-sub { margin: 0.4rem 0 0; font: italic 400 var(--t-lg)/1.3 var(--fonte-titulo); color: var(--texto); max-width: 30ch; }
html.aposta .hero-tese { margin: 0; max-width: 40ch; font: 400 var(--t-base)/1.55 var(--fonte-texto); color: var(--texto); padding-left: 0.9rem; border-left: 2px solid var(--ouro); }
html.aposta .hero-fatos { list-style: none; display: flex; gap: 0.9rem; margin: 0.6rem 0 0; padding: 0; }
html.aposta .hero-fatos li {
  width: 5.4rem; height: 5.4rem; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font: 500 0.6rem/1.1 var(--fonte-mono); text-align: center; padding: 0 0.9rem;
  letter-spacing: 0; text-transform: none; border: 0; text-shadow: none; color: var(--tinta-papel);
}
html.aposta .hero-fatos li span { white-space: nowrap; }
html.aposta .hero-fatos li b { display: block; font: 600 1.5rem/1 var(--fonte-titulo); color: var(--tinta-papel); }
html.aposta .hero-fatos li:nth-child(2) { background:
    radial-gradient(circle, var(--marfim) 0 55%, transparent 56%),
    radial-gradient(circle, transparent 0 63%, var(--marfim) 64% 70%, transparent 71%),
    repeating-conic-gradient(var(--ficha-vermelha) 0 18deg, var(--marfim) 18deg 36deg); }
html.aposta .hero-fatos li:nth-child(3) { background:
    radial-gradient(circle, var(--marfim) 0 55%, transparent 56%),
    radial-gradient(circle, transparent 0 63%, var(--marfim) 64% 70%, transparent 71%),
    repeating-conic-gradient(#14140f 0 18deg, var(--marfim) 18deg 36deg); }
html.aposta .hero-data { margin: 0; font: 400 var(--t-xs)/1.4 var(--fonte-mono); color: var(--suave); }
html.aposta .hero-assinatura { margin: 0; font: 400 var(--t-sm) var(--fonte-texto); color: var(--suave); }
html.aposta .hero-assinatura strong { color: var(--titulo); font-weight: 600; }
html.aposta .hero-acoes { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }

/* ---------- MOCK ONLY ---------- */
html.aposta .mock-painel { position: absolute; z-index: 5; top: 4.2rem; right: var(--margem); margin: 0; padding: 0.55rem 0.8rem; border-radius: var(--raio); background: rgba(5, 10, 8, 0.86); border: 1px dashed color-mix(in srgb, var(--ouro) 60%, transparent); font: 400 var(--t-xs)/1.5 var(--fonte-mono); color: var(--suave); }
html.aposta .mock-painel p { margin: 0; }
html.aposta .mock-painel strong { color: var(--ouro-texto); font-weight: 500; }
html.aposta .mock-painel a { color: var(--titulo); }
html.aposta .mock-recorte { max-width: var(--coluna); margin: 4rem auto; padding: 1.2rem 1.4rem; border-radius: var(--raio-grande); border: 1px dashed color-mix(in srgb, var(--ouro) 55%, transparent); text-align: center; font: 400 var(--t-sm)/1.5 var(--fonte-mono); color: var(--suave); }
html.aposta .mock-recorte p { margin: 0; }

/* ---------- BAR: the rail of the table ---------- */
html.aposta .barra { background: linear-gradient(#0d1a13, #08110d); border-bottom: 1px solid color-mix(in srgb, var(--ouro) 30%, transparent); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); -webkit-backdrop-filter: none; backdrop-filter: none; }
html.aposta .barra-logo { font: italic 500 var(--t-sm) var(--fonte-titulo); color: var(--titulo); letter-spacing: 0; text-transform: none; }
html.aposta .barra-etiqueta { font: 400 var(--t-xs) var(--fonte-mono); color: var(--suave); text-transform: none; letter-spacing: 0; background: none; border: 0; padding: 0; }
html.aposta .barra-capitulo { display: inline-flex; align-items: center; gap: 0.55rem; background: none; border: 0; border-radius: 0; color: var(--texto); font: 500 var(--t-sm) var(--fonte-titulo); padding: 0.25rem 0.2rem; }
html.aposta .barra-capitulo-n { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; flex: none; font: 600 0.74rem var(--fonte-mono); }
html.aposta .barra-pct { display: none !important; }
html.aposta .barra-botao { min-width: 44px; min-height: 36px; border-radius: var(--raio); border: 1px solid var(--linha-2); background: transparent; color: var(--texto); font: 500 var(--t-xs) var(--fonte-mono); letter-spacing: 0; text-transform: none; }
html.aposta .barra-botao:hover { border-color: var(--ouro); color: var(--titulo); }
html.aposta .barra-pausa { position: relative; font-size: 0 !important; }
html.aposta .barra-pausa::before { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 12px; transform: translate(-50%, -50%); background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
html.aposta .barra-pausa[aria-pressed="true"]::before { width: 0; height: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; transform: translate(-40%, -50%); }
html.aposta .barra-progresso { height: 2px; background: transparent; }
html.aposta .barra-progresso i { background: linear-gradient(90deg, #6b4e14, var(--ouro)); box-shadow: 0 0 8px color-mix(in srgb, var(--ouro) 70%, transparent); }
html.aposta .barra-pilha { display: inline-flex; flex-direction: column-reverse; gap: 1px; margin-inline: 0.4rem; }
html.aposta .barra-pilha i { display: block; width: 1.25rem; height: 3px; border-radius: 50%; background: color-mix(in srgb, var(--marfim) 16%, transparent); transition: background 260ms ease; }
html.aposta .barra-pilha i.is-cheia { background: var(--marfim); box-shadow: 0 0 0 0.5px var(--ficha-verde); }

/* ---------- INDEX: the parts as tables, the chapters as numbered chips ---------- */
html.aposta .gaveta { background: radial-gradient(ellipse at 30% 0%, #123a26, #08110d 70%); border-left: 6px solid var(--madeira); color: var(--texto); }
html.aposta .gaveta-titulo { font: 500 var(--t-lg) var(--fonte-titulo); color: var(--titulo); text-transform: none; letter-spacing: 0; }
html.aposta .gaveta-busca { border-radius: var(--raio); border: 1px solid var(--linha-2); background: rgba(5, 10, 8, 0.7); color: var(--titulo); font: 400 var(--t-sm) var(--fonte-texto); }
html.aposta .gaveta a { color: var(--texto); }
html.aposta .gaveta a:hover { color: var(--titulo); }

/* ---------- PART OPENING: the numeral engraved on a chip, beside the painted plate ---------- */
html.aposta .bloco-cabeca { padding-top: 7rem; padding-bottom: 2rem; grid-template-rows: repeat(4, auto) 1fr; }
html.aposta .bloco-cabeca .bloco-lista { align-self: start; }
html.aposta .bloco-numero {
  width: clamp(6rem, 4rem + 6vw, 9rem); height: clamp(6rem, 4rem + 6vw, 9rem); display: grid; place-items: center;
  margin: 0; border-radius: 50%; font: 500 clamp(2.2rem, 1.4rem + 2.4vw, 3.4rem)/1 var(--fonte-titulo); color: var(--marfim);
  background:
    radial-gradient(circle, #0f1c16 0 54%, transparent 55%),
    radial-gradient(circle, transparent 0 62%, #0f1c16 63% 69%, transparent 70%),
    repeating-conic-gradient(var(--modo-1a) 0 15deg, #0f1c16 15deg 30deg);
  box-shadow: 0 0 0 2px #08110d, 0 0 0 3px color-mix(in srgb, var(--ouro) 45%, transparent), 0 16px 40px rgba(0, 0, 0, 0.6);
  -webkit-text-fill-color: currentColor;
}
html.aposta .bloco[data-modo="2"] .bloco-numero { background:
    radial-gradient(circle, #0f1c16 0 54%, transparent 55%),
    radial-gradient(circle, transparent 0 62%, #0f1c16 63% 69%, transparent 70%),
    repeating-conic-gradient(var(--modo-2a) 0 15deg, #0f1c16 15deg 30deg); }
html.aposta .bloco[data-modo="3"] .bloco-numero { background:
    radial-gradient(circle, #0f1c16 0 54%, transparent 55%),
    radial-gradient(circle, transparent 0 62%, #0f1c16 63% 69%, transparent 70%),
    repeating-conic-gradient(var(--modo-3a) 0 15deg, #0f1c16 15deg 30deg); }
html.aposta .bloco[data-modo="4"] .bloco-numero { background:
    radial-gradient(circle, #0f1c16 0 54%, transparent 55%),
    radial-gradient(circle, transparent 0 62%, #0f1c16 63% 69%, transparent 70%),
    repeating-conic-gradient(var(--marfim) 0 15deg, #0f1c16 15deg 30deg); }
html.aposta .bloco-rotulo { font: 400 var(--t-xs) var(--fonte-mono); color: var(--ouro-texto); letter-spacing: 0; text-transform: none; }
html.aposta .bloco-titulo { margin: 0; font: 400 var(--t-2xl)/1 var(--fonte-titulo); color: var(--titulo); }
html.aposta .bloco-lista { font: 400 var(--t-sm)/1.5 var(--fonte-texto); color: var(--suave); }
html.aposta .bloco-lista a { color: var(--texto); }
html.aposta .bloco-prancha { margin: 0; border-radius: var(--raio-grande); overflow: hidden; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ouro) 35%, transparent), 0 30px 60px rgba(0, 0, 0, 0.6); }
html.aposta .bloco-prancha img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* the mock's empty Part IV plate: it widened the page by 11 px on a phone, which zoomed the page out and moved
   every jump of the index (25/11/2026); on a phone it is not drawn */
html.aposta .bloco-prancha-vazia { min-width: 0; max-width: 100%; aspect-ratio: auto; min-height: 18rem; box-shadow: none; border: 1px dashed color-mix(in srgb, var(--ouro) 45%, transparent); background: repeating-linear-gradient(135deg, rgba(209, 166, 80, 0.06) 0 10px, transparent 10px 20px); }

/* ---------- CHAPTER: a betting marker in the margin ---------- */
html.aposta .capitulo { padding-top: 4.5rem; }
html.aposta .capitulo-nota-num { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; font: 600 0.95rem var(--fonte-mono); color: var(--tinta-papel) !important; -webkit-text-fill-color: var(--tinta-papel) !important; text-shadow: none; }
html.aposta .capitulo[data-modo="1"] .capitulo-nota-num { background:
    radial-gradient(circle, var(--marfim) 0 55%, transparent 56%),
    radial-gradient(circle, transparent 0 63%, var(--marfim) 64% 70%, transparent 71%),
    repeating-conic-gradient(var(--ficha-vermelha) 0 18deg, var(--marfim) 18deg 36deg); }
html.aposta .capitulo-nota-fio { width: 2px; min-height: 3rem; background: linear-gradient(var(--ouro), transparent); }
html.aposta .capitulo-nota-bloco { font: 400 var(--t-xs)/1.4 var(--fonte-mono); color: var(--suave); text-transform: none; letter-spacing: 0; }
html.aposta .capitulo-rotulo { font: 400 var(--t-xs) var(--fonte-mono); color: var(--ouro-texto); letter-spacing: 0; text-transform: none; }
html.aposta .capitulo-titulo { font: 400 var(--t-xl)/1.08 var(--fonte-titulo); color: var(--titulo); background: none; -webkit-text-fill-color: currentColor; text-shadow: none; }

/* ---------- TEXT ---------- */
html.aposta .prosa p { font: 400 var(--t-base)/1.74 var(--fonte-texto); color: var(--texto); }
html.aposta .prosa a, html.aposta .fontes a, html.aposta .leia-tambem a { color: var(--ouro-texto); text-decoration-color: color-mix(in srgb, var(--ouro) 50%, transparent); text-underline-offset: 3px; }
html.aposta .prosa p.pergunta strong { color: var(--titulo); font-weight: 600; }
/* the hammer line: serif on the felt, underlined by a gold trace ending in a pad */
html.aposta .prosa p.soco, html.aposta p.soco { font: italic 500 clamp(1.55rem, 1.1rem + 1.6vw, 2.3rem)/1.16 var(--fonte-titulo); color: var(--titulo); margin-block: 1.8rem; }
html.aposta p.soco::after { content: ''; display: block; width: 5rem; height: 7px; margin-top: 0.9rem; background: radial-gradient(circle at calc(100% - 3.5px) 50%, var(--ouro) 0 3px, transparent 3.5px), linear-gradient(var(--ouro), var(--ouro)) 0 50% / calc(100% - 6px) 1.5px no-repeat; }
/* a lead line that opens a stretch of the chapter */
html.aposta p.trecho-rotulo { max-width: var(--coluna); margin: 2.6rem auto 0.6rem; padding: 0 var(--margem); font: italic 500 var(--t-lg)/1.3 var(--fonte-titulo); color: var(--ouro-texto); }
html.aposta p.trecho-rotulo::before { content: ''; display: block; width: 2.6rem; height: 1.5px; margin-bottom: 0.8rem; background: var(--ouro); }
/* closing line */
html.aposta p.coda { font: italic 400 clamp(1.35rem, 1.05rem + 1vw, 1.8rem)/1.35 var(--fonte-titulo); color: var(--titulo); }
html.aposta p.coda::after { background: linear-gradient(90deg, var(--ouro), transparent); height: 1px; }

/* the thesis: a brass plate on the table */
html.aposta .tese.placa {
  position: relative; max-width: var(--coluna); margin: 2.6rem auto; padding: 1.4rem 1.8rem 1.5rem; text-align: left;
  border-radius: var(--raio); border: 1px solid color-mix(in srgb, var(--ouro) 80%, transparent);
  background:
    radial-gradient(circle at 12px 12px, #8a6a2a 0 3px, transparent 3.5px), radial-gradient(circle at calc(100% - 12px) 12px, #8a6a2a 0 3px, transparent 3.5px),
    radial-gradient(circle at 12px calc(100% - 12px), #8a6a2a 0 3px, transparent 3.5px), radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), #8a6a2a 0 3px, transparent 3.5px),
    linear-gradient(160deg, #2c2414, #15110a);
  box-shadow: inset 0 0 0 4px rgba(8, 17, 13, 0.6), inset 0 0 0 5px color-mix(in srgb, var(--ouro) 35%, transparent), 0 18px 40px rgba(0, 0, 0, 0.5);
}
html.aposta .tese.placa .tese-rotulo { margin: 0 0 0.5rem; font: 400 var(--t-xs) var(--fonte-mono); color: var(--ouro-texto); letter-spacing: 0; text-transform: none; }
html.aposta .tese.placa .tese-frase { margin: 0; max-width: none; font: 500 var(--t-lg)/1.35 var(--fonte-titulo); color: var(--marfim); background: none; -webkit-text-fill-color: currentColor; }

/* objections and the epigraph: cards dealt face up as they reach the screen */
html.aposta .carta {
  position: relative; max-width: calc(var(--coluna) - 3rem); margin: 2.6rem auto; padding: 1.4rem 1.6rem 1.6rem 1.8rem;
  border-radius: 12px; background: var(--marfim); color: var(--tinta-papel); border: 1px solid #b9ab86;
  box-shadow: 0 1px 0 #fff inset, 0 18px 36px rgba(0, 0, 0, 0.55);
}
html.aposta .carta::before, html.aposta .carta::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, var(--marfim) 0 30%, var(--ficha-vermelha) 31% 60%, var(--marfim) 61% 70%, var(--ficha-vermelha) 71%); }
html.aposta .carta::before { top: 0.7rem; left: 0.7rem; }
html.aposta .carta::after { bottom: 0.7rem; right: 0.7rem; }
html.aposta .carta p { margin: 0 0 0.8rem; color: var(--tinta-papel); font: 400 var(--t-base)/1.65 var(--fonte-texto); }
html.aposta .carta p:last-of-type { margin-bottom: 0; }
html.aposta .objecao-rotulo { margin: 0 0 0.5rem 1rem; font: 500 var(--t-xs) var(--fonte-mono); color: #7a2e24; letter-spacing: 0; text-transform: none; }
html.aposta .citacao.epigrafe { text-align: center; padding: 2rem 2.2rem; margin-top: 4rem; }
html.aposta .citacao.epigrafe p { font: italic 500 clamp(1.8rem, 1.2rem + 2vw, 2.8rem)/1.1 var(--fonte-titulo); color: var(--tinta-papel); }
html.aposta .citacao.epigrafe cite { display: block; margin-top: 0.9rem; font: normal 400 var(--t-xs)/1.4 var(--fonte-mono); color: #4a4232; }
html.aposta.js .carta.carta-pronta { transform: perspective(900px) rotateY(80deg); opacity: 0; }
html.aposta.js .carta.carta-pronta.is-virada { transform: perspective(900px) rotateY(0); opacity: 1; transition: transform 760ms var(--ease), opacity 260ms ease; }

/* her own note: paper, set apart, held down by a chip */
html.aposta .fio.bilhete {
  position: relative; max-width: calc(var(--coluna) - 2rem); margin: 3rem auto; padding: 1.8rem 1.8rem 1.6rem;
  background: linear-gradient(#f3ead3, #ece1c4); color: #241d12; border-radius: 3px; transform: rotate(-0.5deg);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.5) inset, 0 22px 40px rgba(0, 0, 0, 0.55); border: 0;
}
html.aposta .fio.bilhete::before { content: ''; position: absolute; top: -18px; left: auto; right: 2rem; bottom: auto; width: 44px; height: 44px; border-radius: 50%; margin: 0;
  background: radial-gradient(circle, var(--marfim) 0 55%, transparent 56%), radial-gradient(circle, transparent 0 63%, var(--marfim) 64% 70%, transparent 71%), repeating-conic-gradient(var(--ficha-verde) 0 18deg, var(--marfim) 18deg 36deg);
  box-shadow: 0 0 0 2px #08110d, 0 6px 12px rgba(0, 0, 0, 0.5); }
html.aposta .fio.bilhete::after { display: none; }
html.aposta .fio.bilhete .fio-rotulo { margin: 0 0 0.9rem; font: 500 var(--t-xs) var(--fonte-mono); color: #6b4e14; letter-spacing: 0; text-transform: none; }
html.aposta .fio.bilhete p { margin: 0 0 0.9rem; color: #241d12; font: italic 400 var(--t-base)/1.7 var(--fonte-titulo); }
html.aposta .fio.bilhete p:last-child { margin-bottom: 0; }

/* ---------- PIECES: the corner of the table ---------- */
html.aposta .interativo {
  max-width: 880px; margin: 3rem auto; padding: 1.6rem clamp(1rem, 0.6rem + 2vw, 2rem) 1.6rem;
  border-radius: 30px; border: 12px solid var(--madeira);
  background: radial-gradient(ellipse at 50% 20%, #164430, #0a2116 75%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ouro) 35%, transparent), inset 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px #1f130b, 0 24px 60px rgba(0, 0, 0, 0.55);
}
html.aposta .interativo-canto { display: none !important; }
html.aposta .interativo .palco { border: 0; background: none; box-shadow: none; }
html.aposta .interativo-cabeca { text-align: center; margin-bottom: 0.6rem; }
html.aposta .interativo-rotulo { margin: 0; font: 400 var(--t-xs) var(--fonte-mono); color: var(--ouro-texto); letter-spacing: 0; text-transform: none; }
html.aposta .interativo-titulo { margin: 0.3rem 0; font: 500 var(--t-lg)/1.2 var(--fonte-titulo); color: var(--titulo); }
html.aposta .interativo-dica { margin: 0; font: 400 var(--t-sm)/1.45 var(--fonte-texto); color: var(--suave); }
html.aposta .interativo-estatico { color: var(--texto); font: 400 var(--t-sm)/1.6 var(--fonte-texto); }
html.aposta .interativo-conclusao { margin: 1.2rem auto 0; max-width: 56ch; padding: 0.9rem 1.1rem; border-radius: var(--raio); text-align: center; background: linear-gradient(160deg, #2c2414, #15110a); border: 1px solid color-mix(in srgb, var(--ouro) 60%, transparent); color: var(--marfim); font: italic 500 var(--t-base)/1.45 var(--fonte-titulo); }

/* ---------- GLOSSARY: a term with a gold dotted line; its tag is an ivory card ---------- */
html.aposta .gl-term { color: inherit; background: none; border: 0; padding: 0; font: inherit; text-decoration: underline dotted color-mix(in srgb, var(--ouro) 80%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; cursor: help; }
html.aposta .carta .gl-term, html.aposta .fio.bilhete .gl-term { text-decoration-color: #8a6a2a; }
html.aposta .gl-pop { background: var(--marfim) !important; color: var(--tinta-papel) !important; border: 1px solid #b9ab86 !important; border-radius: 8px !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55) !important; }
html.aposta .gl-pop * { color: inherit !important; }
html.aposta .gl-pop :is(strong, b, h2, h3, h4, .gl-pop-nome) { font-family: var(--fonte-titulo); }

/* ---------- SOURCES, CLOSING, BIO, FOOTER ---------- */
html.aposta .fontes h2 { font: 400 var(--t-xl) var(--fonte-titulo); color: var(--titulo); }
html.aposta .fontes h3 { font: 500 var(--t-sm) var(--fonte-mono); color: var(--ouro-texto); letter-spacing: 0; text-transform: none; }
html.aposta .fontes li { font: 400 var(--t-sm)/1.55 var(--fonte-texto); color: var(--texto); }
html.aposta .fecho { position: relative; isolation: isolate; overflow: hidden; padding: 7rem var(--margem) 5rem; text-align: center; }
html.aposta .fecho-arte { position: absolute; inset: 0; z-index: -1; }
html.aposta .fecho-arte img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; opacity: 0.55; filter: blur(2px) saturate(0.9); transform: scale(1.04); }
html.aposta .fecho-arte::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(8, 17, 13, 0.55), var(--fundo) 85%); }
html.aposta .fecho-chamada { margin: 0; font: 400 var(--t-xs) var(--fonte-mono); color: var(--ouro-texto); letter-spacing: 0; text-transform: none; }
html.aposta .fecho-frase { margin: 0.8rem auto 1.6rem; max-width: 22ch; font: italic 400 clamp(2rem, 1.3rem + 2.6vw, 3.4rem)/1.1 var(--fonte-titulo); color: var(--titulo); background: none; -webkit-text-fill-color: currentColor; }
html.aposta .leia-tambem { max-width: 34rem; margin: 2.6rem auto 0; padding: 1rem 1.2rem; text-align: left; border-radius: var(--raio); background: rgba(8, 17, 13, 0.78); border: 1px solid var(--linha-2); }
html.aposta .leia-tambem p { margin: 0.3rem 0; font: 400 var(--t-sm)/1.45 var(--fonte-texto); }
html.aposta .leia-tambem-rotulo { font: 400 var(--t-xs) var(--fonte-mono) !important; color: var(--suave); text-transform: none !important; letter-spacing: 0 !important; }
html.aposta .fecho { border-radius: var(--raio-grande); }
html.aposta .bio-cartao { background: radial-gradient(ellipse at 20% 0%, #14261d, #0c1a13 70%) !important; border: 1px solid color-mix(in srgb, var(--ouro) 35%, transparent) !important; border-radius: var(--raio-grande); }
html.aposta .bio-foto { border-radius: 12px; }
html.aposta .bio-rotulo { font: 400 var(--t-xs) var(--fonte-mono); color: var(--ouro-texto); letter-spacing: 0; text-transform: none; }
html.aposta .bio-nome { font: 400 var(--t-xl) var(--fonte-titulo); color: var(--titulo); }
html.aposta .rodape { background: linear-gradient(#0c1a13, #060c09); border-top: 1px solid color-mix(in srgb, var(--ouro) 30%, transparent); }
html.aposta .rodape-marca { font: italic 500 var(--t-lg) var(--fonte-titulo); color: var(--titulo); letter-spacing: 0; text-transform: none; }
html.aposta .rodape-links a, html.aposta .cursor-troca { color: var(--texto); font-family: var(--fonte-mono); }

/* the marker sits in the margin only where there is a margin; elsewhere it is one line above the title */
@media (max-width: 1099px) {
  html.aposta .capitulo-nota { flex-direction: row !important; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
  html.aposta .capitulo-nota-num { width: 2.6rem; height: 2.6rem; font-size: 0.8rem; }
  html.aposta .capitulo-nota-fio { min-height: 0; width: 2rem; height: 2px; background: linear-gradient(90deg, var(--ouro), transparent); }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  html.aposta .hero { align-items: flex-end; padding-top: 7rem; }
  html.aposta .hero::before { background: linear-gradient(to top, var(--fundo) 0%, rgba(8, 17, 13, 0.9) 40%, rgba(8, 17, 13, 0.45) 70%, rgba(8, 17, 13, 0.25)); }
  html.aposta .hero-arte img { object-position: 58% 40%; }
  html.aposta .hero-fatos li { width: 4.8rem; height: 4.8rem; font-size: 0.56rem; padding: 0 0.6rem; }
  html.aposta .bloco-prancha-vazia { display: none; }
  html.aposta .barra-capitulo { min-width: 0; overflow: hidden; }
  html.aposta .barra-meio { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  html.aposta .mock-painel { top: 3.6rem; left: var(--margem); right: auto; }
  html.aposta .barra-etiqueta, html.aposta .barra-pilha { display: none; }
  html.aposta .interativo { border-width: 8px; border-radius: 22px; }
  html.aposta .carta { margin-inline: var(--margem); }
}

/* ---------- motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  html.aposta.js .carta.carta-pronta { transform: none; opacity: 1; transition: none; }
}
/* ---------- performance pass (25 Nov 2026, the phone profile of September) ---------- */
/* Chapters, sources and glossary far from the screen skip style and layout, as in Arqueologia and Intersexo 2. The
   reading mode eases --m1 and --m2 on the root (ensaio.css) and those colours inherit: every frame of the ease
   restyled the whole essay, about 3,500 elements, and the phone profile measured 1.43 s of blocked time and 1.2 s of
   layout. The remembered size (auto) keeps the scroll steady after the first visit; the estimates are the mean
   chapter, the sources and the glossary measured at 390 and 1440 px. Nothing in a chapter paints outside its box
   (the margin note is a column of the chapter's own grid). */
html.aposta article.capitulo { content-visibility: auto; contain-intrinsic-size: auto 5240px; }
html.aposta .fontes { content-visibility: auto; contain-intrinsic-size: auto 1060px; }
html.aposta .glossario-lista { content-visibility: auto; contain-intrinsic-size: auto 3860px; }
@media (min-width: 900px) {
  html.aposta article.capitulo { contain-intrinsic-size: auto 3610px; }
  html.aposta .glossario-lista { contain-intrinsic-size: auto 2110px; }
}
/* for two frames of a language switch the whole essay is drawn (BP.switchLang, ensaio.js): in Arqueologia, swapping
   the language under skipped chapters made headless Edge's renderer fall (24 Nov 2026) */
html.is-trocando-idioma article.capitulo, html.is-trocando-idioma .fontes, html.is-trocando-idioma .glossario-lista { content-visibility: visible; }
/* The bar is built by ensaio.js after the first paint on a slow phone: in flow above the hero it pushed the hero
   51 px down (qa/diag_celular, 25 Nov 2026). Its place is kept until it arrives, as in Arqueologia. */
html.aposta.js body:not(:has(> .barra)) { padding-top: var(--barra-altura); }
/* On a phone the reveal and the card flip were the style work of the scroll (the trace of the same pass: the 800 ms
   reveal with a blur and the 760 ms flip, frame after frame). Below 900 px the reveal is a fade and a rise without
   the blur, and the card turns faster; the desktop keeps both as approved. Juliana approved the phone version on
   25 Nov 2026. */
@media (max-width: 899px) {
  html.aposta.js[data-revelar="true"] .revelar { filter: none; transition: opacity 520ms ease, transform 520ms var(--ease); }
  html.aposta.js .carta.carta-pronta.is-virada { transition: transform 480ms var(--ease), opacity 220ms ease; }
}

@media print {
  html.aposta article.capitulo, html.aposta .fontes, html.aposta .glossario-lista { content-visibility: visible; }
  html.aposta .hero-luz, html.aposta .mock-painel, html.aposta .barra-pilha, html.aposta .fecho-arte { display: none !important; }
  html.aposta .carta, html.aposta .fio.bilhete, html.aposta .tese.placa, html.aposta .interativo, html.aposta .hero-fatos li, html.aposta .bloco-numero, html.aposta .capitulo-nota-num {
    background: #fff !important; color: #000 !important; box-shadow: none !important; transform: none !important; opacity: 1 !important; border: 1px solid #999 !important;
  }
  html.aposta .carta p, html.aposta .fio.bilhete p, html.aposta .tese-frase, html.aposta .hero-fatos li b { color: #000 !important; }
  /* the hero on paper: no veil (its gradient printed as a dark band under black text), black type on white */
  html.aposta .hero { min-height: 0 !important; padding: 0 0 1.5rem !important; background: #fff !important; }
  html.aposta .hero::before, html.aposta .hero::after { display: none !important; }
  html.aposta .hero, html.aposta .hero * { color: #000 !important; -webkit-text-fill-color: #000 !important; text-shadow: none !important; }
}
