/* =========================================================
   FORTUNA — sistema visual
   Dia: estourado pelo sol · Noite: luz de sódio
   ========================================================= */

@font-face { font-family: "Anton"; src: url("../fonts/anton.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Yellowtail"; src: url("../fonts/yellowtail.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-ext.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/bc-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/bc-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/bc-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Paleta oficial (manual, seção Identidade) */
  --branco-estourado: #FFF6E9;
  --concreto: #CFC6B8;
  --agua-piscina: #19C3C9;
  --amarelo-protetor: #FFD23F;
  --laranja-sodio: #FF8A1F;
  --flamingo: #FF2D7A;
  --roxo-hematoma: #2A1240;
  --asfalto: #0E0E12;

  --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-script: "Yellowtail", "Brush Script MT", cursive;
  --f-mono: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-serif: "Jost", "Futura", "Century Gothic", sans-serif;
  --f-roman: "Barlow Condensed", "Arial Narrow", sans-serif;

  --grad-assinatura: linear-gradient(100deg, var(--laranja-sodio) 0%, var(--flamingo) 70%, #c4157a 100%);
  --wrap: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 4px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* Modo Dia */
html[data-theme="day"] {
  --bg: var(--branco-estourado);
  --bg-2: #F3E7D3;
  --surface: #FBF0DF;
  --ink: #17121C;
  --ink-soft: #4b4250;
  --line: rgba(23,18,28,.18);
  --accent: var(--flamingo);
  --accent-2: var(--agua-piscina);
  --highlight: var(--amarelo-protetor);
  --card: #FFFBF4;
  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px -22px rgba(60,30,20,.45);
  --sky-top: #9FDCE0;
  --sky-mid: #FFE3B3;
  --sky-low: #FFB98A;
  --sea: #19C3C9;
  --city: #2A1240;
  --sun: #FFD23F;
  color-scheme: light;
}

/* Modo Noite */
html[data-theme="night"] {
  --bg: var(--asfalto);
  --bg-2: #160f1d;
  --surface: #1b1222;
  --ink: var(--branco-estourado);
  --ink-soft: #c9bfcf;
  --line: rgba(255,246,233,.16);
  --accent: var(--laranja-sodio);
  --accent-2: var(--agua-piscina);
  --highlight: var(--flamingo);
  --card: #1d1424;
  --shadow: 0 1px 0 rgba(255,255,255,.03), 0 22px 50px -24px rgba(0,0,0,.9);
  --sky-top: #0E0E12;
  --sky-mid: #2A1240;
  --sky-low: #7a2150;
  --sea: #10464c;
  --city: #050407;
  --sun: #FF8A1F;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-serif);
  font-size: clamp(1.02rem, .97rem + .2vw, 1.14rem);
  line-height: 1.6;
  transition: background-color .6s var(--ease), color .6s var(--ease);
  overflow-x: hidden;
}
/* Grão de papel */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .16; mix-blend-mode: multiply;
}
html[data-theme="night"] body::before { mix-blend-mode: screen; opacity: .07; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--flamingo); color: var(--branco-estourado); }

p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
strong { font-weight: 650; }
em { font-style: italic; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 68ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--ink); color: var(--bg); padding: .6rem 1rem; font-family: var(--f-mono); }
.skip:focus { left: 8px; }

/* ---------- Tipografia ---------- */
.display { font-family: var(--f-display); text-transform: uppercase; line-height: .86; letter-spacing: .005em; }
.grad-text { background: var(--grad-assinatura); -webkit-background-clip: text; background-clip: text; color: transparent; }
.halftone-text { position: relative; }
.script { font-family: var(--f-script); font-weight: 400; text-transform: none; letter-spacing: 0; }
.mono, .kicker { font-family: var(--f-mono); }
.kicker { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); display: inline-flex; gap: .6em; align-items: center; }
.kicker::before { content: ""; width: 1.8em; height: 1px; background: currentColor; }
.roman { font-family: var(--f-roman); letter-spacing: .16em; text-transform: uppercase; }
.lead { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.42rem); line-height: 1.5; }
.drop::first-letter { font-family: var(--f-display); float: left; font-size: 4.4em; line-height: .82; padding: .06em .12em 0 0; color: var(--accent); }
.h-section { font-size: clamp(3rem, 2rem + 6vw, 7.5rem); }
.h-sub { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3.2rem); }
.h-card { font-family: var(--f-display); text-transform: uppercase; font-size: 1.55rem; line-height: 1; letter-spacing: .01em; }
.muted { color: var(--ink-soft); }
.small { font-size: .88em; }

/* Recortes estilo bilhete de resgate */
.ransom { display: inline-flex; flex-wrap: wrap; gap: .06em; font-family: var(--f-display); text-transform: uppercase; line-height: 1; }
.ransom span { display: inline-block; padding: .08em .14em .02em; background: var(--branco-estourado); color: var(--asfalto); box-shadow: 0 2px 0 rgba(0,0,0,.25); clip-path: polygon(2% 6%, 98% 0, 100% 92%, 4% 100%); }
.ransom span:nth-child(3n) { background: var(--asfalto); color: var(--branco-estourado); clip-path: polygon(0 0, 96% 5%, 100% 100%, 3% 95%); }
.ransom span:nth-child(4n+1) { transform: rotate(-4deg) translateY(.04em); }
.ransom span:nth-child(5n+2) { transform: rotate(3deg); font-family: var(--f-roman); }
.ransom span:nth-child(7n) { background: var(--laranja-sodio); }
.ransom span:nth-child(6n+4) { background-image: radial-gradient(rgba(0,0,0,.28) 1px, transparent 1.4px); background-size: 5px 5px; }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 120; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1.2rem; height: 68px; }
.brand { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; }
.brand-word { font-family: var(--f-display); font-size: 1.85rem; letter-spacing: .02em; line-height: 1; }
.brand-tag { font-family: var(--f-script); font-size: 1.1rem; color: var(--ink-soft); }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav a { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: .55rem .8rem; border-radius: 2px; position: relative; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; background: var(--accent); }
.nav a.btn-mini { background: var(--ink); color: var(--bg); }
.nav a.btn-mini:hover { background: var(--accent); color: var(--asfalto); }
.hud-chip { display: flex; align-items: center; gap: .6rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.hud-chip b { font-weight: 600; }
.hud-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--ink); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); width: 42px; height: 42px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .hud-chip { display: none; }
  .menu-btn { display: grid; place-items: center; margin-left: auto; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.6rem; gap: .2rem; transform: translateY(-120%); transition: transform .35s var(--ease); z-index: -1; }
  .nav.open { transform: translateY(0); }
  .nav a { font-size: 1rem; padding: .95rem .2rem; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"]::after { left: .2rem; right: auto; width: 2.5rem; }
  .nav a.btn-mini { text-align: center; margin-top: .8rem; border: 0; }
  .nav .theme-toggle { align-self: flex-start; margin-top: .6rem; }
}

/* ---------- Faixa de notícias ---------- */
.ticker { background: var(--asfalto); color: var(--branco-estourado); border-block: 2px solid var(--laranja-sodio); overflow: hidden; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .06em; }
.ticker-inner { display: flex; align-items: center; }
.ticker-label { flex: none; background: var(--laranja-sodio); color: var(--asfalto); padding: .55rem .9rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; position: relative; z-index: 2; }
.ticker-track { display: flex; gap: 3rem; padding-left: 2rem; white-space: nowrap; animation: ticker 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span::before { content: "◆"; color: var(--flamingo); margin-right: 1rem; font-size: .7em; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; overflow-x: auto; } }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--f-mono); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 1rem 1.4rem; border: 1.5px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s; border-radius: 2px; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--asfalto); transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { color: var(--asfalto); }
.btn svg { width: 16px; height: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.link-arrow { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .15rem; }
.link-arrow::after { content: " →"; }

/* ---------- Seções ---------- */
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section.tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section.dark { background: var(--asfalto); color: var(--branco-estourado); --ink: var(--branco-estourado); --ink-soft: #c9bfcf; --line: rgba(255,246,233,.16); --card: #1a1220; }
.section.dark a:hover { color: var(--laranja-sodio); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head .h-section { word-break: break-word; }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } .split.wide-left { grid-template-columns: 1.3fr 1fr; } }

/* ---------- Herói ---------- */
.hero { position: relative; padding: clamp(1.4rem, 3vw, 2.4rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-poster { position: relative; }
.hero-title { font-size: clamp(5.2rem, 2rem + 17vw, 17rem); line-height: .8; text-align: center; letter-spacing: -.005em; position: relative; z-index: 3; margin-bottom: -.12em; }
.hero-title .grad-text { background-image: radial-gradient(rgba(0,0,0,.22) 1.1px, transparent 1.5px), var(--grad-assinatura); background-size: 6px 6px, 100% 100%; }
.hero-frame { position: relative; aspect-ratio: 16 / 8; border: 1.5px solid var(--ink); overflow: hidden; background: var(--sky-mid); box-shadow: var(--shadow); }
@media (max-width: 700px) { .hero-frame { aspect-ratio: 4 / 4.2; } }
.hero-frame svg { width: 100%; height: 100%; object-fit: cover; }
.corner-notes { position: absolute; inset: 0; pointer-events: none; z-index: 4; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--branco-estourado); text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.corner-notes span { position: absolute; max-width: 18ch; line-height: 1.35; }
.corner-notes .tl { top: 1rem; left: 1rem; } .corner-notes .tr { top: 1rem; right: 1rem; text-align: right; }
.corner-notes .bl { bottom: 1rem; left: 1rem; } .corner-notes .br { bottom: 1rem; right: 1rem; text-align: right; }
@media (max-width: 560px) { .corner-notes .tr, .corner-notes .bl { display: none; } }
.hero-motto { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); font-family: var(--f-script); font-size: clamp(1.8rem, 1rem + 4vw, 4.4rem); color: var(--branco-estourado); text-shadow: 0 3px 18px rgba(0,0,0,.35); white-space: nowrap; z-index: 4; }
.hero-meta { display: grid; gap: 1.6rem; margin-top: clamp(1.8rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-meta { grid-template-columns: 1.4fr 1fr; align-items: end; } }
.hero-meta .lead { margin: 0; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: flex-start; }
@media (min-width: 900px) { .hero-actions { justify-content: flex-end; } }

/* ---------- Cartões, selos, polaroids ---------- */
.card { background: var(--card); border: 1px solid var(--line); padding: 1.6rem; box-shadow: var(--shadow); position: relative; }
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.stamp { background: var(--card); padding: .45rem; position: relative; border: 1px solid var(--line); box-shadow: var(--shadow); background-image: radial-gradient(circle, var(--bg-2) 3px, transparent 3.5px); background-size: 12px 12px; background-position: -6px -6px; }
.stamp-inner { border: 1.5px dashed color-mix(in srgb, var(--ink) 45%, transparent); padding: 1rem; height: 100%; background: var(--card); }

.polaroid { background: #F7EFE2; color: var(--asfalto); padding: .8rem .8rem 1.1rem; box-shadow: 0 2px 0 rgba(0,0,0,.08), 0 22px 30px -18px rgba(0,0,0,.6); transform: rotate(var(--tilt, 0deg)); transition: transform .35s var(--ease), box-shadow .35s; cursor: pointer; text-align: left; border: 0; font: inherit; width: 100%; display: block; }
.polaroid:hover, .polaroid:focus-visible { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: 0 30px 40px -20px rgba(0,0,0,.7); }
.polaroid-photo { aspect-ratio: 1 / 1; display: grid; place-items: center; position: relative; overflow: hidden; background: var(--pol-bg, #2A1240); }
.polaroid-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(0,0,0,.25) 1px, transparent 1.4px) 0 0 / 5px 5px; mix-blend-mode: multiply; }
.polaroid-photo svg { width: 46%; height: 46%; color: var(--branco-estourado); position: relative; z-index: 1; }
.polaroid-photo .initials { position: absolute; left: .55rem; bottom: .2rem; font-family: var(--f-display); font-size: 3.4rem; line-height: 1; color: rgba(255,246,233,.18); z-index: 0; }
.polaroid-cap { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; display: flex; justify-content: space-between; margin-top: .7rem; color: #5a4f57; }
.polaroid-name { font-family: var(--f-display); text-transform: uppercase; font-size: 1.3rem; line-height: 1.05; margin-top: .3rem; }
.polaroid-role { font-family: var(--f-serif); font-style: italic; font-size: .95rem; color: #4b4250; }

.street-sign { display: inline-block; background: var(--flamingo); color: var(--branco-estourado); font-family: var(--f-display); text-transform: uppercase; letter-spacing: .04em; padding: .35rem .7rem .25rem; border: 2px solid var(--branco-estourado); outline: 2px solid var(--flamingo); line-height: 1; }
.street-sign small { font-family: var(--f-mono); font-size: .55em; letter-spacing: .1em; margin-left: .3em; vertical-align: top; }
.shield { display: inline-grid; place-items: center; width: 44px; height: 46px; background: var(--ink); color: var(--bg); font-family: var(--f-display); font-size: 1rem; clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); }

/* HUD (painéis de jogo) */
.hud { background: color-mix(in srgb, var(--asfalto) 92%, var(--roxo-hematoma)); color: var(--branco-estourado); border: 1px solid rgba(255,138,31,.45); padding: 1.2rem 1.3rem; position: relative; font-family: var(--f-mono); }
.hud::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(255,246,233,.06); pointer-events: none; }
.hud h3, .hud .hud-title { font-family: var(--f-mono); font-weight: 600; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--laranja-sodio); margin-bottom: .9rem; }
.hud-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid rgba(255,246,233,.1); font-size: .82rem; }
.hud-row:last-child { border-bottom: 0; }
.hud-row b { color: var(--agua-piscina); font-weight: 600; text-align: right; }
.bar { height: 6px; background: rgba(255,246,233,.1); position: relative; margin-top: .4rem; }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--v, 50%); background: var(--grad-assinatura); }

/* Arcos (três pilares) */
.arches { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: end; }
.arch { background: var(--card); border: 1.5px solid var(--ink); border-radius: 999px 999px 4px 4px; padding: 3.2rem 1.6rem 1.8rem; text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.arch.mid { padding-top: 4.6rem; background: var(--roxo-hematoma); color: var(--branco-estourado); border-color: var(--roxo-hematoma); }
.arch .roman { font-size: 1.5rem; display: block; margin-bottom: .2rem; }
.arch .script { font-size: 2rem; color: var(--accent); display: block; margin-bottom: 1rem; }
.arch.mid .script { color: var(--laranja-sodio); }
.arch p { font-size: 1rem; margin: 0; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--card); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--f-mono); font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); background: var(--bg-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
@media (max-width: 640px) {
  table.stack thead { display: none; }
  table.stack tr { display: block; border-bottom: 1px solid var(--line); padding: .7rem 0; }
  table.stack td { display: block; border: 0; padding: .25rem 1rem; }
  table.stack td::before { content: attr(data-th); display: block; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
}

/* ---------- Acordeões ---------- */
details.acc { border-top: 1px solid var(--line); }
details.acc:last-of-type { border-bottom: 1px solid var(--line); }
details.acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; padding: 1.05rem .2rem; font-family: var(--f-serif); font-weight: 600; font-size: 1.08rem; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary .num { font-family: var(--f-mono); font-size: .72rem; color: var(--accent); letter-spacing: .1em; min-width: 2.2rem; }
details.acc > summary::after { content: "+"; margin-left: auto; font-family: var(--f-mono); width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: transform .3s var(--ease); flex: none; }
details.acc[open] > summary::after { transform: rotate(45deg); background: var(--accent); color: var(--asfalto); border-color: var(--accent); }
details.acc > .acc-body { padding: 0 .2rem 1.4rem 3.2rem; }
@media (max-width: 640px) { details.acc > .acc-body { padding-left: .2rem; } }

/* ---------- Abas ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.6rem; }
.tab { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; padding: .6rem .95rem; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; border-radius: 999px; transition: background .2s, color .2s, border-color .2s; }
.tab:hover { border-color: var(--accent); }
.tab[aria-selected="true"], .tab.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tabpanel[hidden] { display: none; }
.tabpanel { animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Revelar ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--asfalto); color: var(--branco-estourado); padding: clamp(3.5rem, 7vw, 6rem) 0 2rem; border-top: 3px solid var(--laranja-sodio); position: relative; overflow: hidden; }
.site-footer a { color: var(--branco-estourado); }
.site-footer a:hover { color: var(--laranja-sodio); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: auto 1fr 1fr; align-items: center; } }
.footer-seal { width: 170px; height: 170px; color: var(--laranja-sodio); }
.footer-word { font-family: var(--f-display); font-size: clamp(4rem, 12vw, 10rem); line-height: .8; }
.footer-links { display: flex; flex-direction: column; gap: .4rem; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links a { text-decoration: none; }
.footer-base { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,246,233,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; color: #a99fae; }

/* ---------- Componentes específicos ---------- */
.steps { counter-reset: s; display: grid; gap: 0; }
.step { counter-increment: s; display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before { content: counter(s, decimal-leading-zero); font-family: var(--f-display); font-size: 2.6rem; line-height: .9; color: var(--accent); min-width: 3.2rem; }
.step h3 { font-family: var(--f-serif); font-weight: 650; font-size: 1.15rem; margin-bottom: .3rem; }
.step p { margin: 0; }

.zone-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.zone { background: var(--bg); padding: 1.4rem 1.3rem 1.5rem; position: relative; transition: background .3s; }
.zone:hover { background: var(--card); }
.zone .street-sign { font-size: 1.15rem; margin-bottom: .9rem; }
.zone p { font-size: .95rem; margin: 0; }
.zone .places { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; color: var(--ink-soft); margin-top: .7rem; text-transform: uppercase; line-height: 1.6; }

.radio-list { display: grid; gap: .55rem; }
.radio-item { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; background: color-mix(in srgb, var(--roxo-hematoma) 70%, transparent); border: 1px solid rgba(255,246,233,.08); border-radius: 6px; }
.radio-item .freq { font-family: var(--f-display); font-size: 1.6rem; color: var(--laranja-sodio); min-width: 4.6rem; line-height: 1; }
.radio-item strong { font-family: var(--f-mono); letter-spacing: .1em; font-size: .86rem; display: block; }
.radio-item span { font-size: .92rem; color: #d7cdda; }
.radio-item em { font-family: var(--f-mono); font-style: normal; font-size: .66rem; letter-spacing: .1em; color: var(--agua-piscina); text-align: right; text-transform: uppercase; }
@media (max-width: 600px) { .radio-item { grid-template-columns: auto 1fr; } .radio-item em { grid-column: 2; text-align: left; } }

.quote { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); line-height: 1.45; border-left: 3px solid var(--accent); padding: .2rem 0 .2rem 1.4rem; margin: 0; }
.letter { background: #F7EFE2; color: var(--asfalto); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow); transform: rotate(-.6deg); position: relative; max-width: 620px; }
.letter::before { content: "FLAMINGO ARMS · MIAMI BEACH"; display: block; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .2em; color: var(--flamingo); margin-bottom: 1rem; }
.letter p { font-family: var(--f-serif); font-style: italic; font-size: 1.12rem; }
.letter .sign { font-family: var(--f-script); font-size: 2.2rem; color: var(--flamingo); text-align: right; margin: 0; }

.seal { width: 100%; height: auto; color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .6rem; border: 1px solid currentColor; border-radius: 999px; }
.badge.hot { background: var(--flamingo); color: var(--branco-estourado); border-color: var(--flamingo); }
.badge.cool { background: var(--agua-piscina); color: var(--asfalto); border-color: var(--agua-piscina); }
.badge.sun { background: var(--amarelo-protetor); color: var(--asfalto); border-color: var(--amarelo-protetor); }
.note { border-left: 3px solid var(--accent-2); background: color-mix(in srgb, var(--accent-2) 9%, transparent); padding: 1rem 1.2rem; font-size: .98rem; }
.note > :last-child { margin-bottom: 0; }

code, .code { font-family: var(--f-mono); font-size: .86em; background: color-mix(in srgb, var(--ink) 8%, transparent); padding: .1em .35em; border-radius: 3px; }
pre.template { font-family: var(--f-mono); font-size: .84rem; line-height: 1.6; background: var(--asfalto); color: var(--branco-estourado); padding: 1.2rem 1.3rem; overflow-x: auto; margin: 0; border-left: 3px solid var(--laranja-sodio); white-space: pre-wrap; }
.copy-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.copy-btn { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: .45rem .8rem; background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer; border-radius: 999px; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.done { background: var(--agua-piscina); color: var(--asfalto); border-color: var(--agua-piscina); }

/* Modal */
dialog.modal { border: 0; padding: 0; max-width: min(640px, 92vw); width: 100%; background: #F7EFE2; color: var(--asfalto); box-shadow: 0 40px 80px -20px rgba(0,0,0,.7); }
dialog.modal::backdrop { background: rgba(14,14,18,.72); backdrop-filter: blur(4px); }
dialog.modal[open] { animation: fadeUp .35s var(--ease); }
.modal-head { padding: 1.4rem 1.6rem 1rem; display: flex; gap: 1.2rem; align-items: center; border-bottom: 1px solid rgba(0,0,0,.12); }
.modal-head .polaroid-photo { width: 92px; flex: none; }
.modal-body { padding: 1.4rem 1.6rem 1.8rem; font-size: 1.02rem; }
.modal-close { margin-left: auto; align-self: flex-start; background: none; border: 1px solid rgba(0,0,0,.2); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; color: var(--asfalto); flex: none; }
.modal-close:hover { background: var(--asfalto); color: #F7EFE2; }
.modal-body h4 { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #8a2a52; margin: 1.1rem 0 .3rem; }

/* Formulários */
.form { display: grid; gap: 1.2rem; }
.fieldset { border: 1px solid var(--line); padding: clamp(1.2rem, 3vw, 2rem); background: var(--card); margin: 0; }
.fieldset legend { font-family: var(--f-display); text-transform: uppercase; font-size: 1.6rem; padding: 0 .5rem; margin-left: -.5rem; }
.field { display: grid; gap: .4rem; margin-bottom: 1.15rem; }
.field label, .field .label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.field .hint { font-size: .88rem; color: var(--ink-soft); margin: 0; }
.field input[type="text"], .field input[type="number"], .field input[type="date"], .field select, .field textarea {
  font: inherit; font-size: 1rem; width: 100%; padding: .8rem .9rem; background: var(--bg); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 2px; }
.field textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field .count { font-family: var(--f-mono); font-size: .7rem; color: var(--ink-soft); text-align: right; }
.field .count.over { color: var(--flamingo); font-weight: 600; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--flamingo); }
.field .err { color: var(--flamingo); font-size: .86rem; display: none; }
.field.invalid .err { display: block; }
.choice { display: flex; gap: .7rem; align-items: flex-start; font-size: 1rem; cursor: pointer; margin-bottom: .5rem; }
.choice input { margin-top: .32rem; accent-color: var(--flamingo); width: 18px; height: 18px; flex: none; }
.row-2 { display: grid; gap: 0 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.hp { position: absolute; left: -5000px; }
.form-status { padding: 1.2rem 1.4rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: color-mix(in srgb, var(--agua-piscina) 18%, transparent); border-left: 3px solid var(--agua-piscina); }
.form-status.warn { background: color-mix(in srgb, var(--amarelo-protetor) 22%, transparent); border-left: 3px solid var(--amarelo-protetor); }

/* Mapa */
.map-box { border: 1.5px solid var(--ink); background: var(--bg-2); position: relative; overflow: hidden; }
.map-box svg { width: 100%; height: auto; display: block; touch-action: manipulation; }
.map-land { fill: var(--card); stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.map-water { fill: color-mix(in srgb, var(--agua-piscina) 16%, var(--bg-2)); }
.map-key { fill: var(--card); stroke: var(--ink); vector-effect: non-scaling-stroke; }
.map-label { font-family: var(--f-mono); fill: var(--ink-soft); letter-spacing: .08em; text-transform: uppercase; }
.pin { cursor: pointer; }
.pin circle.dot { fill: var(--flamingo); stroke: var(--branco-estourado); vector-effect: non-scaling-stroke; stroke-width: 2; transition: fill .2s; }
.pin.dim { opacity: .22; }
.pin:hover circle.dot, .pin.active circle.dot, .pin:focus-visible circle.dot { fill: var(--laranja-sodio); }
.pin text { font-family: var(--f-mono); fill: var(--ink); paint-order: stroke; stroke: var(--bg-2); vector-effect: non-scaling-stroke; stroke-width: 3; font-weight: 600; letter-spacing: .04em; }
.map-controls { position: absolute; top: .8rem; left: .8rem; display: flex; gap: .4rem; z-index: 2; flex-wrap: wrap; }
.map-controls .tab { background: var(--bg); }
.map-caption { position: absolute; bottom: .6rem; right: .8rem; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* Destinos */
.dest { background: var(--card); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; box-shadow: var(--shadow); transition: transform .3s var(--ease), border-color .3s; }
.dest:hover { transform: translateY(-3px); border-color: var(--accent); }
.dest.hide { display: none; }
.dest-top { padding: 1.2rem 1.3rem .9rem; border-bottom: 1px dashed var(--line); display: grid; gap: .55rem; position: relative; }
.dest-top .where { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.dest-top .what { font-style: italic; color: var(--ink-soft); font-size: .95rem; }
.dest-body { padding: 1rem 1.3rem 1.3rem; font-size: .98rem; display: grid; gap: .8rem; align-content: start; }
.dest-body p { margin: 0; }
.dest-body dl { margin: 0; display: grid; gap: .55rem; }
.dest-body dt { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.dest-body dd { margin: 0; font-size: .95rem; }
html[data-theme="day"] .dest-body dt { color: #c21762; }
.legend-tag { position: absolute; top: 1rem; right: 1rem; }
.dest-stamp { width: 58px; height: 58px; position: absolute; top: .9rem; right: .9rem; color: var(--accent); opacity: .9; }

/* Roda */
.wheel-box { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 800px) { .wheel-box { grid-template-columns: 220px 1fr; } }
.die { width: 150px; height: 150px; margin-inline: auto; border-radius: 22px; background: var(--branco-estourado); color: var(--asfalto); display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 20px; box-shadow: inset 0 -6px 0 rgba(0,0,0,.12), 0 18px 30px -14px rgba(0,0,0,.6); border: 2px solid var(--asfalto); }
.die i { width: 22px; height: 22px; border-radius: 50%; background: var(--asfalto); place-self: center; opacity: 0; transition: opacity .15s; }
.die i.on { opacity: 1; }
.die.rolling { animation: shake .6s var(--ease); }
@keyframes shake { 0%{transform:rotate(0)} 20%{transform:rotate(-18deg) scale(.95)} 40%{transform:rotate(14deg)} 60%{transform:rotate(-10deg) scale(1.04)} 80%{transform:rotate(6deg)} 100%{transform:rotate(0)} }
.result-card { min-height: 9rem; }
.result-card .h-card { color: var(--accent); }

/* Quiz */
.quiz { background: var(--card); border: 1.5px solid var(--ink); padding: clamp(1.4rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.quiz-progress { display: flex; gap: .3rem; margin-bottom: 1.4rem; }
.quiz-progress i { flex: 1; height: 4px; background: var(--line); }
.quiz-progress i.on { background: var(--grad-assinatura); }
.quiz-q { font-family: var(--f-serif); font-weight: 600; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); line-height: 1.3; margin-bottom: 1.2rem; }
.quiz-opts { display: grid; gap: .6rem; }
.quiz-opt { text-align: left; font: inherit; font-size: 1rem; padding: 1rem 1.1rem; background: var(--bg); color: var(--ink); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, transform .2s; }
.quiz-opt:hover, .quiz-opt:focus-visible { border-color: var(--accent); transform: translateX(4px); }
.quiz-result .h-sub { margin: .4rem 0 1rem; }

/* Mural */
.board { background: #b98b5e; background-image: radial-gradient(rgba(0,0,0,.12) 1px, transparent 1.5px), radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.5px); background-size: 7px 7px, 11px 11px; padding: clamp(1.2rem, 3vw, 2rem); border: 10px solid #6b4a2c; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.note-pin { background: #FFF6E9; color: var(--asfalto); padding: 1.3rem 1rem 1rem; transform: rotate(var(--tilt, -1deg)); box-shadow: 0 10px 16px -10px rgba(0,0,0,.6); position: relative; font-size: .95rem; }
.note-pin::before { content: ""; position: absolute; top: .45rem; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--flamingo); box-shadow: 0 2px 2px rgba(0,0,0,.4); transform: translateX(-50%); }
.note-pin b { display: block; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: #8a2a52; margin-bottom: .3rem; }
.note-pin.yellow { background: #FFE58A; } .note-pin.blue { background: #CDEFF0; } .note-pin.pink { background: #FFD3E2; }

/* Manual: índice lateral */
.manual-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .manual-layout { grid-template-columns: 260px 1fr; } }
.toc { position: sticky; top: 84px; align-self: start; display: grid; gap: .1rem; max-height: calc(100vh - 100px); overflow: auto; }
.toc a { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: .55rem .7rem; border-left: 2px solid var(--line); color: var(--ink-soft); }
.toc a:hover { color: var(--ink); }
.toc a.on { border-left-color: var(--accent); color: var(--ink); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.toc-search { margin-bottom: .8rem; }
.toc-search input { width: 100%; font: inherit; font-family: var(--f-mono); font-size: .8rem; padding: .7rem .8rem; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
@media (max-width: 999px) {
  .toc { position: sticky; top: 68px; z-index: 50; max-height: none; background: var(--bg); padding: .6rem 0; display: flex; overflow-x: auto; gap: .3rem; border-bottom: 1px solid var(--line); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc a { white-space: nowrap; border-left: 0; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .8rem; }
  .toc a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .toc-search { display: none; }
}
.chapter { padding-block: 1rem 3.6rem; border-bottom: 1px solid var(--line); margin-bottom: 3rem; }
.chapter:last-child { border-bottom: 0; }
.chapter-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.chapter-head .num { font-family: var(--f-display); font-size: 3.2rem; color: var(--accent); line-height: .8; }
.chapter-head h2 { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.6rem); line-height: .95; }
.chapter h3 { font-family: var(--f-serif); font-weight: 650; font-size: 1.32rem; margin: 2.2rem 0 .8rem; }
.chapter h3:first-of-type { margin-top: 1rem; }
.chapter ul, .chapter ol { padding-left: 1.2rem; }
.chapter li { margin-bottom: .45rem; }
.chapter.hidden-by-search { display: none; }
.search-empty { display: none; padding: 2rem; border: 1px dashed var(--line); text-align: center; }
.search-empty.show { display: block; }
mark { background: var(--amarelo-protetor); color: var(--asfalto); padding: 0 .1em; }

.mini-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .6rem; }
.duo { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* 404 */
.lost { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }

.link-npc { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.link-npc:hover { color: var(--accent); }

/* Fotografia editorial */
.photo { position: relative; margin: 0; overflow: hidden; background: var(--bg-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ease), filter .6s; }
.photo:hover img { transform: scale(1.025); }
.photo figcaption { position: absolute; left: .9rem; bottom: .8rem; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--branco-estourado); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.photo.frame { border: 1.5px solid var(--ink); box-shadow: var(--shadow); }
.photo.print { background: #F7EFE2; padding: .7rem .7rem 2.6rem; box-shadow: var(--shadow); border: 0; }
.photo.print figcaption { color: var(--asfalto); text-shadow: none; left: .9rem; bottom: .9rem; }
.photo.print img { aspect-ratio: 4/5; }
html[data-theme="night"] .photo img { filter: brightness(.92) contrast(1.04); }
.ratio-45 { aspect-ratio: 4 / 5; } .ratio-wide { aspect-ratio: 16 / 8; } .ratio-11 { aspect-ratio: 1; } .ratio-43 { aspect-ratio: 4 / 3; }
@media (max-width: 700px) { .ratio-wide { aspect-ratio: 4 / 3; } }

.diptych { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.8rem, 2vw, 1.4rem); align-items: start; }
.diptych > :nth-child(2) { margin-top: clamp(2rem, 6vw, 4.5rem); }
.diptych .photo.print:first-child { transform: rotate(-1.6deg); }
.diptych .photo.print:last-child { transform: rotate(1.4deg); }

/* Herói editorial: retrato central com o título atravessando a foto */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; position: relative; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1fr minmax(340px, 470px) 1fr; } }
.hero-side { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); display: grid; gap: 1.4rem; }
.hero-side p { margin: 0; max-width: 24ch; line-height: 1.55; }
.hero-side.right { justify-items: end; text-align: right; }
.hero-side b { color: var(--ink); font-weight: 600; }
@media (max-width: 979px) { .hero-side { grid-template-columns: 1fr 1fr; } .hero-side.right { justify-items: start; text-align: left; } }
.hero-photo { position: relative; }
.hero-photo .photo { aspect-ratio: 4/5; }
.hero-word { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -58%); width: 100vw; max-width: 1400px; text-align: center; pointer-events: none; z-index: 3; mix-blend-mode: normal; }
.hero-word .display { font-size: clamp(5.4rem, 2rem + 15vw, 15rem); line-height: .8; }
.hero-word .grad-text { background-image: radial-gradient(rgba(0,0,0,.25) 1.1px, transparent 1.5px), var(--grad-assinatura); background-size: 6px 6px, 100% 100%; -webkit-text-stroke: 0; filter: drop-shadow(0 6px 20px rgba(0,0,0,.25)); }
.hero-script { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%) rotate(-4deg); font-family: var(--f-script); font-size: clamp(1.7rem, 1rem + 2.6vw, 3rem); color: var(--branco-estourado); white-space: nowrap; text-shadow: 0 3px 16px rgba(0,0,0,.55); z-index: 4; }

.banner { position: relative; }
.banner .photo { aspect-ratio: 16/6.5; }
@media (max-width: 700px) { .banner .photo { aspect-ratio: 4/3; } }
.banner-title { position: absolute; left: var(--gutter); bottom: 1.2rem; z-index: 2; color: var(--branco-estourado); text-shadow: 0 2px 16px rgba(0,0,0,.45); }

.page-hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 5rem); }
.page-hero-grid { display: grid; gap: clamp(1.6rem, 4vw, 3.5rem); grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1.15fr .85fr; } }
.page-title { font-size: clamp(3.6rem, 1.8rem + 9vw, 10rem); line-height: .82; }
.page-title .script { display: block; font-size: .38em; color: var(--accent); margin: .1em 0 0 .1em; transform: rotate(-3deg); transform-origin: left; }
.side-photo { display: grid; gap: .6rem; }
.side-photo .photo { aspect-ratio: 4/5; }
.caption-line { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 1rem; }

/* Vídeo editorial */
.film { position: relative; overflow: hidden; background: #120c16; margin: 0; }
.film video, .film img.poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.film video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.film video.ready { opacity: 1; }
.film::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(10,6,14,.45) 100%); }
.film figcaption { position: absolute; left: .9rem; bottom: .8rem; z-index: 2; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--branco-estourado); text-shadow: 0 1px 3px rgba(0,0,0,.7); display: flex; align-items: center; gap: .5rem; }
.film figcaption::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--flamingo); box-shadow: 0 0 0 3px rgba(255,45,122,.3); }
.film.frame { border: 1.5px solid var(--ink); box-shadow: var(--shadow); }
.film.r-wide { aspect-ratio: 2 / 1; } .film.r-sq { aspect-ratio: 1; } .film.r-45 { aspect-ratio: 4 / 5; } .film.r-cine { aspect-ratio: 2.13 / 1; }
@media (max-width: 700px) { .film.r-cine { aspect-ratio: 16 / 10; } }

.mobile-search { display: none; margin: 1rem 0 1.6rem; }
.mobile-search input { width: 100%; font: inherit; font-family: var(--f-mono); font-size: .9rem; padding: .8rem .9rem; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
@media (max-width: 999px) { .mobile-search { display: block; } }
.h-sub.display, h2.h-sub { line-height: .96; }
.h-section.display { line-height: .9; }

.map-controls .tab.is-on { background: var(--ink); color: var(--bg); }
.zone-strip { gap: 0; background: none; border: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.zone { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .zone-strip { grid-template-columns: repeat(3, 1fr); } }

/* =========================================================
   CAMADA DE JOGO — tipografia e interface
   ========================================================= */
.kicker, .caption-line, .polaroid-cap, .where, .map-caption, .hud, .hud-row, th, .badge, .copy-btn, .tab, .footer-links, .footer-base, .dest-body dt, .field label, .field .label, .count, .radio-item strong, .radio-item em, .modal-body h4, .note-pin b, .hero-side, .hud-chip, .nav a, .ticker, .corner-notes, .letter::before, .film figcaption, .photo figcaption, details.acc > summary .num {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
}
.kicker { font-size: .86rem; font-weight: 600; letter-spacing: .2em; color: var(--accent); }
html[data-theme="day"] .kicker { color: #c21762; }
.section.dark .kicker { color: var(--laranja-sodio); }
.kicker::before { width: 14px; height: 14px; background: none; border: 2px solid currentColor; transform: rotate(45deg) scale(.7); }
.nav a { font-size: .98rem; font-weight: 600; letter-spacing: .12em; }
.hud-chip { font-size: .86rem; font-weight: 500; letter-spacing: .1em; }
.ticker { font-size: .92rem; font-weight: 500; letter-spacing: .06em; }
.ticker-label { font-weight: 700; }
.hero-side { font-size: .9rem; font-weight: 500; letter-spacing: .1em; }
.hero-side b { font-weight: 700; color: var(--accent); }
html[data-theme="day"] .hero-side b { color: #c21762; }
th { font-size: .82rem; font-weight: 700; letter-spacing: .14em; }
.tab { font-size: .9rem; font-weight: 600; letter-spacing: .1em; }
.badge { font-size: .8rem; font-weight: 600; }
.field label, .field .label { font-size: .88rem; font-weight: 700; letter-spacing: .12em; }
.caption-line, .polaroid-cap, .dest-top .where, .map-caption { font-size: .82rem; font-weight: 600; letter-spacing: .14em; }
.dest-body dt { font-size: .78rem; font-weight: 700; letter-spacing: .16em; }
.footer-links { font-size: 1rem; font-weight: 600; letter-spacing: .14em; }
.footer-base { font-size: .86rem; letter-spacing: .06em; }
.film figcaption, .photo figcaption { font-size: .82rem; font-weight: 600; letter-spacing: .16em; }
.radio-item strong { font-size: 1.05rem; font-weight: 700; letter-spacing: .12em; }
.radio-item em { font-size: .8rem; font-weight: 600; }
.hud .hud-title, .hud h3 { font-family: "Barlow Condensed", sans-serif; font-size: .95rem; font-weight: 700; letter-spacing: .2em; }
.hud-row { font-size: .98rem; font-weight: 500; }
.hud-row b { font-weight: 700; letter-spacing: .04em; }
.copy-btn { font-size: .82rem; font-weight: 700; }
.roman { font-weight: 700; letter-spacing: .24em; }
.arch .roman { font-family: var(--f-display); font-weight: 400; font-size: 2.3rem; letter-spacing: .04em; }
details.acc > summary { font-weight: 600; }
details.acc > summary .num { font-size: .95rem; font-weight: 700; }
.step h3 { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em; }
.chapter h3 { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .03em; }
.quiz-q { font-family: "Jost", sans-serif; font-weight: 600; }
.polaroid-role { font-family: "Jost", sans-serif; font-style: normal; font-size: .9rem; }
.page-title .script, .hero-script, .script { text-shadow: 0 0 18px rgba(255,45,122,.35); }

/* Botões em paralelogramo, como prompts de menu */
.btn { font-family: "Barlow Condensed", sans-serif; font-size: 1.08rem; font-weight: 700; letter-spacing: .14em; padding: .9rem 1.8rem; border: 0; border-radius: 0; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); box-shadow: none; }
.btn:hover { transform: translateX(3px); box-shadow: none; background: var(--accent); color: var(--asfalto); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 2px currentColor; clip-path: none; transform: skewX(-12deg); }
.btn.ghost > * , .btn.ghost { }
.btn.ghost:hover { background: var(--accent); color: var(--asfalto); box-shadow: none; transform: skewX(-12deg) translateX(3px); }
.btn::before { content: "▸"; font-size: .9em; margin-right: -.2rem; }
.btn.ghost::before { content: none; }
.nav a.btn-mini { font-weight: 700; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); padding-inline: 1.1rem; }
.link-arrow { font-family: "Barlow Condensed", sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: .14em; }

/* Etiqueta de local, como o texto de início de missão */
.loc { display: inline-block; font-family: var(--f-script); font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); color: var(--accent); transform: rotate(-3deg); transform-origin: left; margin-bottom: .3rem; }
html[data-theme="day"] .loc { color: #d81b68; }
.section.dark .loc { color: var(--laranja-sodio); }

/* Dica de tela de carregamento */
.loadtip { display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .9rem 0; margin-top: clamp(1.6rem, 4vw, 2.6rem); }
.loadtip-label { flex: none; font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: .18em; font-size: .9rem; background: var(--ink); color: var(--bg); padding: .25rem .7rem; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.loadtip-text { font-family: "Jost", sans-serif; font-size: 1.02rem; transition: opacity .5s var(--ease); min-height: 1.6em; }
.loadtip-text.fade { opacity: 0; }
.loadtip-spin { flex: none; margin-left: auto; width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) { .loadtip-spin { display: none; } }

/* Cartões de destino como fichas de mapa */
.dest-top { padding-left: 1.3rem; border-left: 4px solid var(--accent); }
.dest .h-card { font-size: 1.7rem; }
.h-card { font-family: var(--f-display); }
.drop::first-letter { font-family: var(--f-display); }
.loc { display: block; width: fit-content; }
.h-sub.display, h2.h-sub { line-height: 1; }
.btn.ghost { transform: none; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); box-shadow: none; background: transparent; position: relative; }
.btn.ghost { background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor); background-size: 100% 2px, 100% 2px; background-position: 0 0, 0 100%; background-repeat: no-repeat; }
.btn.ghost:hover { transform: translateX(3px); background-color: var(--accent); }
.btn.ghost { background: none !important; clip-path: none; isolation: isolate; position: relative; transform: none; }
.btn.ghost::after { content: ""; position: absolute; inset: 0; border: 2px solid currentColor; transform: skewX(-14deg); z-index: -1; transition: background .2s; }
.btn.ghost:hover { color: var(--asfalto); transform: translateX(3px); }
.btn.ghost:hover::after { background: var(--accent); border-color: var(--accent); }

/* =========================================================
   QUALIDADE DE IMAGEM
   ========================================================= */
body::before { z-index: -1; opacity: .09; }
html[data-theme="night"] body::before { opacity: .05; }
.photo:hover img { transform: none; }
html[data-theme="night"] .photo img { filter: none; }
.photo img, .film video, .film img.poster { image-rendering: auto; backface-visibility: hidden; }
.banner.contained { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.banner.contained .photo { border: 1.5px solid var(--ink); }
.banner.contained .banner-title { left: clamp(1rem, 3vw, 2rem); }
.banner.native { max-width: 1920px; margin-inline: auto; }
.film.r-wide video, .film.r-wide img.poster { object-position: center; }


/* =========================================================
   JOST — todo o texto que não é cabeçalho, título ou destaque
   ========================================================= */
body, p, li, td, dd, dt, th, label, input, select, textarea, button, figcaption, blockquote,
.lead, .note, .muted, .small, .caption-line, .polaroid-cap, .polaroid-role, .where, .what, .map-caption,
.hud-row, .badge, .copy-btn, .tab, .footer-links, .footer-base, .dest-body dt, .field label, .field .label,
.field .hint, .field .err, .count, .radio-item span, .radio-item em, .modal-body, .modal-body h4, .note-pin, .note-pin b,
.hero-side, .corner-notes, .letter::before, .film figcaption, .photo figcaption, details.acc > summary, details.acc > summary .num,
.quiz-q, .quiz-opt, .loadtip-text, .letter p, pre.template, code, .toc a, .toc-search input, .mobile-search input, .form-status,
.map-label, .pin text, .zone p, .zone .places, .stamp p, .hud p, .choice, .dest-body, .dest-top .what, .link-npc {
  font-family: "Jost", "Futura", "Century Gothic", sans-serif;
}
body { font-weight: 400; font-size: clamp(1rem, .96rem + .2vw, 1.1rem); line-height: 1.65; letter-spacing: .005em; }
strong, b { font-weight: 600; }
.lead { font-weight: 400; line-height: 1.55; }
em { font-style: italic; }
/* Elementos de destaque mantêm a Barlow Condensed */
.nav a, .hud-chip, .ticker, .ticker-label, .kicker, .btn, .loadtip-label, .step h3, .chapter h3, .hud-title, .hud h3, .roman, .link-arrow, .street-sign small {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
}
/* Ajustes de proporção da Jost, que é mais larga que a Barlow Condensed */
.caption-line, .polaroid-cap, .dest-top .where, .map-caption, th, .dest-body dt, .badge, .copy-btn, .tab, .field label, .field .label, .film figcaption, .photo figcaption, .footer-links, .hero-side, .modal-body h4, .note-pin b, .radio-item em {
  font-size: .74rem; font-weight: 500; letter-spacing: .12em;
}
.footer-links { font-size: .86rem; }
.hero-side { font-size: .8rem; line-height: 1.6; }
.hero-side b { font-weight: 600; }
.tab { font-size: .8rem; }
.field label, .field .label { font-weight: 600; }
.hud-row { font-size: .92rem; }
details.acc > summary { font-weight: 500; font-size: 1.04rem; }
details.acc > summary .num { font-size: .82rem; font-weight: 600; }
.quiz-q { font-weight: 500; }
.quiz-opt { font-size: .98rem; }
pre.template { font-size: .86rem; }
.letter p { font-style: italic; font-weight: 400; }
.toc a { font-size: .78rem; font-weight: 500; letter-spacing: .08em; }
.map-label { font-size: inherit; }

/* =========================================================
   ENTRAR — ficha no topo
   ========================================================= */
.entry-hero { padding: clamp(1.6rem, 4vw, 3.4rem) 0 clamp(2.4rem, 5vw, 4rem); }
.entry-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .entry-grid { grid-template-columns: 1fr minmax(420px, 520px); } }
.entry-steps { list-style: none; padding: 0; margin: 1.8rem 0 0; counter-reset: es; display: grid; gap: .9rem; }
.entry-steps li { counter-increment: es; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: .9rem; }
.entry-steps li::before { content: counter(es, decimal-leading-zero); grid-row: span 2; font-family: var(--f-display); font-size: 2rem; line-height: 1; color: var(--accent); }
html[data-theme="day"] .entry-steps li::before { color: #d81b68; }
.entry-steps b { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; }
.entry-steps span { color: var(--ink-soft); font-size: .98rem; }
.entry-form { background: var(--card); border: 1.5px solid var(--ink); box-shadow: 10px 10px 0 color-mix(in srgb, var(--accent) 80%, transparent); padding: clamp(1.3rem, 3vw, 2rem); position: relative; }
@media (min-width: 980px) { .entry-form { position: sticky; top: 90px; } }
.entry-form-head { margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.entry-form-head .h-card { font-size: 2.1rem; margin-top: .3rem; }
.entry-form .field { margin-bottom: 1rem; }
.entry-form .field textarea { min-height: 8rem; }
.entry-form .opt { font-weight: 400; letter-spacing: .06em; text-transform: lowercase; color: var(--ink-soft); margin-left: .3rem; }
.entry-submit { width: 100%; justify-content: center; margin-top: .6rem; font-size: 1.2rem; padding-block: 1.05rem; }
.entry-fine { font-size: .86rem; color: var(--ink-soft); margin: 1rem 0 0; text-align: center; }

.age-gate { display: grid !important; grid-template-columns: auto 1fr; gap: .4rem 1rem; align-items: center; padding: 1rem 1.1rem; border: 1.5px dashed color-mix(in srgb, var(--ink) 40%, transparent); cursor: pointer; margin: 1.3rem 0 .4rem; position: relative; transition: border-color .2s, background .2s; }
.age-gate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.age-badge { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; border: 2.5px solid currentColor; font-family: var(--f-display); font-size: 1.55rem; letter-spacing: .02em; color: var(--ink-soft); transition: all .25s var(--ease); transform: rotate(-8deg); }
.age-text { font-size: .96rem; line-height: 1.5; text-transform: none; letter-spacing: 0; font-weight: 400; }
.age-text b { font-weight: 600; }
.age-gate .err { grid-column: 1 / -1; }
.age-gate:hover { border-color: var(--accent); }
.age-gate input:focus-visible ~ .age-badge { outline: 2px solid var(--accent); outline-offset: 3px; }
.age-gate input:checked ~ .age-badge { background: var(--flamingo); color: var(--branco-estourado); border-color: var(--flamingo); transform: rotate(0deg) scale(1.05); box-shadow: 0 0 0 5px color-mix(in srgb, var(--flamingo) 22%, transparent); }
.age-gate:has(input:checked) { border-style: solid; border-color: var(--flamingo); background: color-mix(in srgb, var(--flamingo) 7%, transparent); }
.age-gate.invalid { border-color: var(--flamingo); }

/* Pautas */
.pautas { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pauta { padding: clamp(1.4rem, 3vw, 2.2rem) 0; border-bottom: 1px solid var(--line); display: grid; gap: .9rem; }
.pauta-head { display: flex; gap: 1.2rem; align-items: flex-start; }
.pauta-num { font-family: var(--f-display); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: .85; color: var(--accent); min-width: 3.4rem; }
html[data-theme="day"] .pauta-num { color: #d81b68; }
.pauta-loc { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 .4rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.pauta .h-card { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); }
.pauta-lead { font-size: 1.06rem; max-width: 72ch; margin: 0; }
.pauta-more summary { cursor: pointer; font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .95rem; color: var(--accent); list-style: none; }
html[data-theme="day"] .pauta-more summary { color: #c21762; }
.pauta-more summary::-webkit-details-marker { display: none; }
.pauta-more summary::before { content: "+ "; }
.pauta-more[open] summary::before { content: "− "; }
.pauta-more p { margin: 1rem 0; max-width: 72ch; }
.pauta-more dl { display: grid; gap: .5rem; margin: 0; max-width: 72ch; }
.pauta-more dt { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.pauta-more dd { margin: 0 0 .6rem; }
.pautas-home { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.pauta-teaser { display: grid; gap: .7rem; align-content: start; padding: 1.5rem; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--flamingo); text-decoration: none; color: inherit; transition: transform .3s var(--ease), border-color .3s; }
.pauta-teaser:hover { transform: translateY(-4px); border-color: var(--accent); color: inherit; }
.pauta-teaser p { margin: 0; font-size: .98rem; color: var(--ink-soft); }
.pauta-teaser .h-card { font-size: 1.8rem; }
.pauta-teaser .pauta-loc { margin: 0; }
.section.dark .pauta-teaser { background: #1a1220; }
.float-cta { display: none; }
@media (max-width: 900px) {
  .float-cta { display: inline-flex; align-items: center; gap: .5rem; position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 110; background: var(--flamingo); color: var(--branco-estourado); font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 1rem; padding: .85rem 1.3rem; text-decoration: none; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }
  .float-cta svg { width: 16px; height: 16px; }
  .site-footer { padding-bottom: 5rem; }
}
.entry-grid { grid-template-areas: "copy" "form" "extra"; }
.entry-copy { grid-area: copy; } .entry-form { grid-area: form; } .entry-extra { grid-area: extra; }
@media (min-width: 980px) {
  .entry-grid { grid-template-areas: "copy form" "extra form"; grid-template-rows: auto 1fr; row-gap: 1rem; }
}
