@font-face {
  font-family: Cinzel;
  src: url("assets/Cinzel.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #120e0b;
  --panel: #1d1610;
  --panel-quiet: #18120e;
  --ink: #faecd4;
  --body: #ddcdb9;
  --muted: #bba993;
  --gold: #efbd79;
  --gold-text: #f1c68d;
  --gold-border: #805c38;
  --line: #4d3423;
  --button-ink: #1a110a;
  --heading: Cinzel, Georgia, serif;
  --body-font: "Avenir Next", Avenir, system-ui, sans-serif;
  --shell: 77rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.62 var(--body-font); }
button, input { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
section[id] { scroll-margin-top: 5.4rem; }

.shell { width: min(calc(100% - 7rem), var(--shell)); margin-inline: auto; }
.skip { position: fixed; z-index: 20; top: .5rem; left: .75rem; padding: .65rem 1rem; background: var(--gold); color: var(--button-ink); transform: translateY(-160%); }
.skip:focus { transform: none; }
.eyebrow { font-size: .72rem; font-weight: 720; letter-spacing: .17em; color: var(--gold-text); line-height: 1.4; }

.header { position: sticky; z-index: 5; top: 0; background: #130e0bef; border-bottom: 1px solid #8e5d383f; backdrop-filter: blur(12px); }
.header-inner { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; position: relative; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; line-height: 1.12; }
.brand img { object-fit: contain; flex: 0 0 auto; }
.brand strong { display: block; font: 650 1.10rem/1.25 var(--heading); letter-spacing: .06em; }
.brand small { display: block; color: var(--muted); font-size: .59rem; letter-spacing: .09em; margin-top: .24rem; white-space: nowrap; }
nav { display: flex; align-items: center; gap: clamp(1.2rem, 3.6vw, 3.2rem); }
nav a { color: var(--body); text-decoration: none; font-size: .87rem; font-weight: 600; white-space: nowrap; }
nav a:hover, .footer a:hover { color: var(--gold-text); }
.menu-toggle { display: none; background: transparent; color: var(--ink); border: 1px solid var(--gold-border); border-radius: 4px; padding: .4rem .75rem; cursor: pointer; }

.hero { position: relative; isolation: isolate; display: grid; min-height: clamp(605px, 76vh, 790px); align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: #170f0a; }
.hero-scene { position: absolute; inset: 0 0 0 32%; z-index: -2; }
.hero-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 48%; }
.hero::before { content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(90deg,#140e0b 1%,#170f0c 27%,#170f0cf2 35%,#160f0ba8 50%,#130d0740 67%,#100b061a 100%),linear-gradient(0deg,#130e0be0 0%,transparent 30%,transparent 78%,#0806023d 100%); }
.hero-inner { padding-block: 82px 97px; }
.hero-copy { width: fit-content; max-width: 100%; }
.date-line { display: flex; align-items: center; flex-wrap: wrap; gap: .72rem; font-size: .75rem; }
.date-line span::before { content: ""; display: inline-block; width: .24rem; height: .24rem; margin: 0 .65rem .17rem 0; background: var(--gold); border-radius: 50%; }
.hero h1 { margin: 1.2rem 0 .73rem; font: 700 clamp(4.2rem, 8.6vw, 8rem)/.98 var(--heading); letter-spacing: -.055em; text-wrap: balance; text-shadow: 0 6px 30px #0a0505af; }
.hero h1 em { display: block; color: var(--gold); font-style: normal; }
.motto { font: 400 clamp(1.15rem, 2.1vw, 1.7rem)/1.35 var(--heading); color: var(--ink); margin-top: 1.4rem; }
.hero-intro { color: var(--body); max-width: 27rem; margin-top: .65rem; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.85rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; padding: .70rem 1.12rem; min-height: 46px; border: 1px solid transparent; border-radius: 4px; font-size: .86rem; font-weight: 750; line-height: 1.25; text-decoration: none; cursor: pointer; }
.primary { background: var(--gold); color: var(--button-ink); }
.primary:hover { background: #f9ce91; }
.secondary { background: #1d130ecd; color: var(--ink); border-color: var(--gold-border); }
.secondary:hover { background: #392415; }
.play { color: var(--gold); font-size: .70rem; line-height: 1; }

.section { padding-block: clamp(4rem,7.5vw,7rem); border-bottom: 1px solid var(--line); }
.section h2 { margin-top: .70rem; font: 650 clamp(2.25rem,4.9vw,4.55rem)/1.04 var(--heading); letter-spacing: -.045em; text-wrap: balance; }
.section-intro > p:not(.eyebrow), .archive-summary { color: var(--body); max-width: 33rem; margin-top: 1rem; text-wrap: pretty; }
.games { background: radial-gradient(ellipse at 83% 26%,#432b1b63,transparent 66%),var(--bg); }
.games-layout { display: grid; grid-template-columns: minmax(235px,.79fr) minmax(345px,1.18fr); gap: clamp(2rem,8vw,9.5rem); align-items: start; }
.games .section-intro { padding-top: 1rem; }
.text-link { display: inline-block; margin-top: 1.26rem; color: var(--gold-text); font-size: .89rem; font-weight: 650; text-underline-offset: .28em; }
.text-link span { display: inline-block; margin-left: .22rem; }
.quiz-card { position: relative; border: 1px solid var(--gold-border); border-radius: 9px; min-height: 376px; padding: clamp(1.10rem, 3vw, 2rem); background: radial-gradient(ellipse at 98% 0%, #5a36203a, transparent 55%),#1a130e; box-shadow: 0 16px 45px #08050272; }
.quiz-top { display: flex; justify-content: space-between; gap: .65rem; align-items: center; }
.quiz-count { color: var(--body); white-space: nowrap; font-size: .82rem; font-variant-numeric: tabular-nums; }
.quiz-progress { height: 3px; border-radius: 2px; background: #513723; margin-top: 1rem; overflow: hidden; }
.quiz-progress span { display: block; width: 0; height: 100%; background: var(--gold); transition: width .25s ease; }
.quiz-category { margin-top: 1.12rem; color: var(--muted); font-size: .80rem; }
.quiz-question h3, .quiz-result h3 { margin: .30rem 0 1.14rem; font: 600 clamp(1.17rem,2.1vw,1.46rem)/1.34 var(--heading); }
.quiz-options { display: grid; grid-template-columns: 1fr; gap: .54rem; }
.quiz-option { display: flex; align-items: center; gap: .70rem; width: 100%; min-height: 45px; text-align: left; padding: .38rem .65rem; color: var(--ink); background: #241910; border: 1px solid #59402c; border-radius: 5px; cursor: pointer; }
.quiz-option:hover:not(:disabled) { border-color: var(--gold); background: #322216; }
.quiz-option:disabled { opacity: 1; cursor: default; }
.quiz-option.is-correct { border-color: #93b784; background: #293622; }
.quiz-option.is-incorrect { border-color: #d38175; background: #402821; }
.quiz-option.is-muted { color: var(--body); }
.option-letter { width: 1.52rem; height: 1.48rem; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #6b4a32; color: var(--gold-text); border-radius: 3px; font-size: .72rem; }
.quiz-feedback { color: var(--body); margin-top: .8rem; font-size: .86rem; }
.quiz-next { margin-top: .85rem; }
.quiz-result { padding-top: 1.7rem; }
.quiz-result .result-number { color: var(--gold); font: 700 3.1rem/1 var(--heading); margin: .82rem 0 .72rem; }
.quiz-result .button { margin-top: 1.25rem; }

.conta { background: radial-gradient(ellipse at 82% 18%, #4c281d70, transparent 68%), #1a110e; }
.conta-layout { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1fr); gap: clamp(1.5rem,7vw,7rem); align-items: start; }
.conta-card { padding: clamp(1.15rem,3.2vw,2rem); border: 1px solid var(--gold-border); border-radius: 6px; background: #221710; }
.conta-valor { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .78rem; }
.conta-valor strong { color: var(--gold); font: 700 clamp(2.2rem,4.9vw,3.7rem)/1 var(--heading); }
.conta-valor span { color: var(--ink); font-weight: 650; }
.conta-card ol { margin: 1.14rem 0 .98rem; padding-left: 1.38rem; color: var(--body); }
.conta-card li + li { margin-top: .5rem; }
.conta-card li::marker { color: var(--gold-text); font-weight: 700; }
.conta-exemplo { border-top: 1px solid var(--line); padding-top: .78rem; color: var(--muted); font-size: .88rem; }

.venues { background: #17110d; }
.venues-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .95rem; margin-top: 1.9rem; }
.venue-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 7px; background: linear-gradient(150deg,#261a13 0%,#1b130e 70%); }
.venue-photo { margin: 0; }
.venue-photo img { width: 100%; aspect-ratio: 8/5; height: auto; object-fit: cover; border-radius: 6px 6px 0 0; background: var(--panel); }
.venue-photo figcaption { padding: .36rem 1.25rem 0; color: var(--muted); font-size: .72rem; }
.venue-photo a { text-underline-offset: .18em; }
.venue-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: .95rem 1.25rem 1.25rem; }
.venue-card h3 { font: 650 1.36rem/1.19 var(--heading); margin: .46rem 0 .64rem; text-wrap: balance; }
.venue-description { font-size: .88rem; color: var(--body); margin: 0 0 .73rem; }
.venue-dishes { display: flex; flex-wrap: wrap; gap: .28rem; padding: 0; list-style: none; margin: auto 0 .95rem; }
.venue-dishes li { font-size: .70rem; color: var(--gold-text); border: 1px solid #715032; padding: .22rem .47rem; border-radius: 3px; }
summary { cursor: pointer; font-size: .85rem; font-weight: 680; padding-top: .72rem; color: var(--gold-text); }
.venue-source { display: inline-block; margin-top: .58rem; color: var(--gold-text); text-underline-offset: .22em; }
.profile-link { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; padding-top: .72rem; border-top: 1px solid var(--line); color: var(--gold-text); font-size: .87rem; font-weight: 700; text-decoration: none; }
.profile-link:hover { text-decoration: underline; text-underline-offset: .25em; }

.candidates { background: radial-gradient(ellipse at 78% 78%, #31171180, transparent 66%),#150e0c; }
.candidate-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.candidate-list li { min-width: 0; }
.candidate-link { position: relative; display: block; height: 100%; padding: 1.05rem 2.65rem 1.1rem 1.1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; color: var(--ink); text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.candidate-link:hover { border-color: var(--gold-border); background: #2a1c13; }
.candidate-link h3 { font: 650 clamp(1.15rem,2vw,1.45rem)/1.2 var(--heading); }
.candidate-link p { margin-top: .45rem; color: var(--body); font-size: .89rem; }
.candidate-link span { position: absolute; top: .94rem; right: 1.1rem; color: var(--gold-text); }

.archive { background: #15100c; }
.archive-layout { display: grid; grid-template-columns: minmax(165px,.52fr) minmax(260px,1fr); gap: clamp(2.5rem,9vw,8rem); align-items: center; }
.archive-image { max-width: 260px; margin-inline: auto; background: radial-gradient(ellipse,#8f552a42,transparent 72%); }
.archive-image img {
  height: auto;
  object-fit: contain;
  /* Contorno da tampinha no cartaz original de 2025. */
  clip-path: polygon(
    94.4% 49.0%, 94.5% 51.0%, 93.8% 52.9%, 95.9% 55.1%, 94.3% 56.8%, 93.4% 58.7%,
    92.9% 60.5%, 92.6% 62.4%, 93.1% 64.7%, 92.6% 66.7%, 90.6% 67.9%, 89.4% 69.5%,
    88.5% 71.2%, 87.8% 73.1%, 87.9% 75.6%, 86.5% 77.0%, 84.1% 77.6%, 82.8% 79.0%,
    81.4% 80.4%, 80.3% 82.0%, 79.7% 84.3%, 78.1% 85.6%, 75.7% 85.6%, 74.0% 86.6%,
    72.3% 87.5%, 70.7% 88.6%, 69.5% 90.6%, 67.8% 91.7%, 65.1% 90.1%, 63.5% 91.4%,
    61.6% 91.8%, 59.8% 92.5%, 58.1% 93.9%, 56.2% 95.0%, 54.1% 94.0%, 52.1% 93.6%,
    50.2% 93.3%, 48.2% 93.6%, 46.3% 93.8%, 44.1% 94.9%, 42.3% 94.0%, 40.5% 92.7%,
    38.7% 92.0%, 36.8% 91.5%, 34.9% 91.2%, 32.6% 91.7%, 30.8% 90.8%, 29.6% 88.7%,
    28.0% 87.6%, 26.3% 86.6%, 24.6% 85.7%, 22.3% 85.5%, 20.6% 84.4%, 19.9% 82.1%,
    18.8% 80.5%, 17.5% 79.1%, 16.0% 77.8%, 13.9% 76.9%, 12.3% 75.6%, 12.2% 73.3%,
    11.7% 71.3%, 10.7% 69.6%, 9.9% 67.9%, 7.9% 66.6%, 7.0% 64.8%, 7.5% 62.5%,
    7.3% 60.6%, 6.8% 58.7%, 7.9% 56.5%, 4.2% 55.1%, 4.7% 53.0%, 5.5% 51.0%,
    5.7% 49.0%, 5.4% 47.1%, 5.3% 45.1%, 4.1% 43.0%, 5.5% 41.1%, 6.6% 39.4%,
    7.2% 37.5%, 7.5% 35.6%, 7.2% 33.4%, 7.3% 31.2%, 9.3% 29.9%, 10.5% 28.4%,
    11.5% 26.6%, 12.3% 24.8%, 12.1% 22.3%, 13.3% 20.7%, 15.7% 20.0%, 17.2% 18.7%,
    18.6% 17.4%, 19.7% 15.8%, 20.4% 13.4%, 21.8% 12.0%, 24.3% 12.1%, 26.1% 11.2%,
    27.8% 10.2%, 29.5% 9.2%, 30.6% 7.1%, 32.4% 6.0%, 34.8% 6.6%, 36.7% 6.3%,
    38.6% 5.8%, 40.5% 5.3%, 42.2% 3.7%, 44.1% 3.0%, 46.3% 4.3%, 48.2% 4.4%,
    50.2% 4.5%, 52.1% 4.3%, 54.1% 3.6%, 56.2% 3.0%, 57.5% 7.1%, 59.8% 5.4%,
    61.7% 6.0%, 63.6% 6.5%, 65.7% 6.4%, 67.9% 6.1%, 68.1% 10.5%, 70.7% 9.4%,
    72.4% 10.5%, 74.1% 11.4%, 75.9% 12.1%, 78.4% 12.2%, 79.2% 14.4%, 80.2% 16.2%,
    81.6% 17.5%, 82.9% 18.9%, 84.5% 20.2%, 86.8% 20.9%, 87.5% 22.8%, 87.7% 25.1%,
    88.6% 26.8%, 89.4% 28.5%, 90.7% 30.1%, 92.7% 31.4%, 92.9% 33.4%, 92.6% 35.6%,
    92.9% 37.6%, 93.4% 39.4%, 94.3% 41.2%, 95.9% 43.0%, 93.0% 45.3%, 94.4% 47.1%
  );
}
.archive-details { margin-top: 1.04rem; border-top: 1px solid var(--line); max-width: 39rem; }
.archive-details p, .archive-details ol { color: var(--body); font-size: .90rem; margin-top: .60rem; }
.archive-details ol { padding-left: 1.4rem; }
.presidency { background: radial-gradient(ellipse at 50% 0%, #3a221870, transparent 68%), #15100c; }
.presidency-letter { max-width: 46rem; margin-inline: auto; padding: clamp(1.4rem,5vw,3.7rem); border: 1px solid var(--line); border-top: 2px solid var(--gold-border); border-radius: 6px; background: #1b130f; }
.presidency-letter h2 { font-size: clamp(2.03rem,4.8vw,3.7rem); text-wrap: initial; margin-bottom: 1.35rem; }
.presidency-letter > p:not(.eyebrow) { color: var(--body); margin-top: .9rem; }
.presidency-signature { margin-top: 1.55rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.presidency-signature p:first-child { font: 650 clamp(1.25rem,3.2vw,1.85rem)/1.25 var(--heading); color: var(--gold-text); }
.presidency-signature p + p { color: var(--muted); font-size: .81rem; margin-top: .22rem; }
.footer { background: #100c0a; padding-block: 1.5rem; }
.footer-inner { display: flex; gap: .45rem 2rem; flex-wrap: wrap; justify-content: space-between; color: var(--muted); font-size: .83rem; }
.footer-sep { padding-inline: .21rem; }
.footer a { text-underline-offset: .23em; }

.trailer-dialog { max-width: min(36rem,calc(100% - 1.6rem)); max-height: calc(100dvh - 1.6rem); padding: .8rem; color: var(--ink); background: #18110e; border: 1px solid var(--gold-border); border-radius: .6rem; box-shadow: 0 12px 65px #000b; }
.trailer-dialog::backdrop { background: #090606d7; }
.trailer-heading { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .55rem; }
.trailer-heading h2 { font: 640 .95rem/1.3 var(--heading); }
.close-button { border: 1px solid var(--gold-border); background: transparent; color: var(--ink); width: 36px; height: 36px; border-radius: 4px; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.trailer-dialog video { display: block; aspect-ratio: 9/16; width: min(100%,calc((100dvh - 7rem) * .5625)); max-height: calc(100dvh - 7rem); margin: auto; background: #050403; border-radius: 4px; }

@media (max-width: 850px) {
  .shell { width: calc(100% - 3rem); }
  .hero { min-height: 575px; }
  .hero-scene { inset-inline-start: 24%; }
  .hero::before { background: linear-gradient(90deg,#140e0b 2%,#170f0bf2 26%,#170f0bb8 47%,#140d0852 70%,#100b063d),linear-gradient(0deg,#140e0bea,transparent 34%); }
  .venues-grid, .candidate-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 2rem); }
  section[id] { scroll-margin-top: 4.6rem; }
  .header-inner { min-height: 64px; gap: .5rem; }
  .brand { gap: .50rem; }
  .brand img { width: 42px; height: 42px; }
  .brand strong { font-size: 1rem; }
  .brand small { font-size: .5rem; }
  .menu-toggle { display: inline-block; }
  nav { display: none; position: absolute; top: calc(100% + 1px); left: -1rem; right: -1rem; padding: .45rem 1rem .8rem; background: #170f0e; border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; align-items: stretch; }
  nav.is-open { display: flex; }
  nav a { padding: .66rem .3rem; }
  .hero { min-height: 646px; align-items: end; }
  .hero-scene { inset: 0 0 0 0; }
  .hero-scene img { object-position: 69% 36%; }
  .hero::before { background: linear-gradient(0deg,#140e0b 2%,#140e0bf7 24%,#170f0bd9 44%,#170f0b65 67%,#140e0b25 100%); }
  .hero-inner { padding-block: 8rem 2.65rem; }
  .hero h1 { font-size: clamp(3.45rem,16.2vw,5.9rem); margin-block: .76rem .45rem; }
  .date-line { font-size: .63rem; gap: .35rem; letter-spacing: .12em; }
  .date-line span::before { margin-right: .40rem; }
  .motto { margin-top: .92rem; }
  .hero-intro { font-size: .90rem; margin-top: .6rem; max-width: 21rem; }
  .hero-actions { gap: .5rem; margin-top: 1.25rem; }
  .hero-actions .button { padding-inline: .70rem; font-size: .80rem; gap: .38rem; }
  .section { padding-block: 3.6rem; }
  .games-layout, .conta-layout, .archive-layout { grid-template-columns: minmax(0,1fr); gap: 1.4rem; }
  .games .section-intro { padding-top: 0; }
  .games .section-intro br { display: none; }
  .quiz-card { min-height: 355px; }
  .venues-grid, .candidate-list { grid-template-columns: minmax(0,1fr); margin-top: 1.15rem; }
  .archive-image { width: 120px; margin-inline: 0; }
  .archive-layout { gap: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.action-space { margin-top: 1.25rem; }
.candidate-link small { display: block; margin-top: .85rem; color: var(--gold-text); }
.candidate-link p, .urna p, #extrato li { overflow-wrap: anywhere; }
.urna h3, .urna h2 { font: 650 clamp(1.5rem,3vw,2.15rem)/1.22 var(--heading); margin: .4rem 0 .9rem; }
.urna p { color: var(--body); }
.urna .eyebrow { color: var(--gold-text); }
.urna .button { margin: 1rem .35rem 0 0; }
.urna .button:disabled { opacity: .65; cursor: wait; }
.urna label { display: block; margin: 1rem 0 .35rem; }
.urna input, .urna select, .urna textarea { width: 100%; min-height: 44px; padding: .65rem .75rem; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--gold-border); border-radius: 4px; }
.urna textarea { resize: vertical; }
#urna-aviso:not(:empty), #aviso-mesa:not(:empty) { margin-top: .8rem; }
#mesa { min-height: calc(100vh - 77px); }
#mesa h1 { font: 700 clamp(2.65rem,6vw,5rem)/1.05 var(--heading); margin: .8rem 0; }
#placar { margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
#placar h2 { font: 650 1.35rem/1.3 var(--heading); }
#saldo { color: var(--gold-text); font-weight: 700; margin-block: .45rem; }
#extrato, .apuracao { padding-left: 1.3rem; color: var(--body); }
#correcao { padding-top: .75rem; border-top: 1px solid var(--line); }
.mesa-link { display: block; border: 0; padding: .5rem 0; margin-top: 1rem; color: var(--gold-text); background: transparent; text-decoration: underline; cursor: pointer; }
.header-inner > .text-link { margin: 0; text-align: right; }
#materias { margin: 1.2rem 0 0; border: 1px solid var(--line); border-radius: 5px; padding: .25rem .8rem .55rem; }
#materias legend { padding-inline: .35rem; color: var(--gold-text); }
#materias label { display: flex; align-items: flex-start; gap: .6rem; padding: .46rem 0; margin: 0; cursor: pointer; line-height: 1.3; }
#materias input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; min-height: 0; margin: .15rem 0 0; accent-color: var(--gold); }
#materias small { display: block; margin-top: .14rem; color: var(--muted); }
