/* Dedo do Lula — tema escuro, alto contraste, responsivo. */

:root {
  --bg: #050505;
  --bg-2: #0d0d0d;
  --panel: #121212;
  --panel-2: #191919;
  --line: #2a2a2a;
  --line-2: #3a3a3a;
  --ink: #ece7dc;
  --ink-strong: #fffaf0;
  --muted: #aaa498;
  --red: #ff5a4e;
  --red-soft: rgba(255, 90, 78, 0.12);
  --paper: #e9e3d6;
  --paper-ink: #111;

  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --cond: "IBM Plex Sans Condensed", "Arial Narrow", var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, Consolas, "Courier New", monospace;

  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 90, 78, 0.08), transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink-strong); text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red); }
code { font-family: var(--mono); font-size: 0.88em; background: var(--panel-2); padding: 0.1em 0.4em; border-radius: 4px; }
strong { color: var(--ink-strong); font-weight: 700; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--red); color: #000; font-weight: 700; padding: 10px 16px; border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Cabeçalho ---------- */

.masthead { padding-block: clamp(28px, 6vw, 64px) clamp(20px, 4vw, 36px); border-bottom: 1px solid var(--line); }
.kicker {
  margin: 0 0 14px; font: 700 0.78rem/1.5 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--red);
}
.dot { display: inline-block; vertical-align: 1px; margin-right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

.brand {
  margin: 0; font: 700 clamp(2.6rem, 9vw, 5.6rem)/0.92 var(--cond); letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--ink-strong);
}
.brand em { font-style: normal; color: var(--red); }
.subtitle { margin: 14px 0 0; font: 600 clamp(1.05rem, 2.4vw, 1.35rem)/1.35 var(--sans); color: var(--ink); max-width: 46ch; }
.intro { margin: 14px 0 0; color: var(--muted); max-width: 68ch; }
.intro-cta { color: var(--ink-strong); font-weight: 600; }


.case-count { margin: 20px 0 0; font: 500 0.85rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.case-count strong { color: var(--red); font-size: 1.3em; }

/* ---------- Abas ---------- */

main { padding-block: 28px 56px; outline: none; }

.tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; max-width: 520px;
  position: sticky; top: 10px; z-index: 5; backdrop-filter: blur(8px);
}
.tab {
  appearance: none; border: 0; border-radius: 999px; cursor: pointer; min-height: 48px; padding: 10px 16px;
  background: transparent; color: var(--muted); font: 700 0.92rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.tab:hover { color: var(--ink-strong); }
.tab[aria-selected="true"] { background: var(--ink); color: #000; }
.tab-num { opacity: 0.55; margin-right: 6px; }
.view { padding-top: 28px; }

/* ---------- Botões ---------- */

.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line-2);
  font: 700 0.86rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform 0.12s, background 0.2s, border-color 0.2s, color 0.2s;
  color: var(--ink-strong); background: var(--panel-2);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn:hover { border-color: var(--ink); color: var(--ink-strong); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--red); border-color: var(--red); color: #0a0a0a; }
.btn-primary:hover { background: #ff7468; border-color: #ff7468; color: #000; }
.btn-ghost { background: transparent; }
.btn-small { min-height: 40px; padding: 8px 14px; }

/* ---------- Roleta ---------- */

.spin-layout { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) {
  .spin-layout { grid-template-columns: minmax(360px, 460px) minmax(0, 1fr); }
  .wheel-col { position: sticky; top: 90px; }
}

.wheel-col { display: flex; flex-direction: column; align-items: center; }
.wheel-stage { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin-top: 98px; }
.wheel-rotor {
  position: absolute; inset: 0; border-radius: 50%; will-change: transform;
  box-shadow: 0 0 0 6px #000, 0 0 0 8px var(--line-2), 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 90px rgba(255, 90, 78, 0.12);
}
#wheel { width: 100%; height: 100%; display: block; }
.wheel-rim { fill: #000; }
.sector path { stroke: none; transition: opacity 0.4s; }
.sector-light path { fill: var(--paper); }
.sector-dark path { fill: #161616; }
.sector-num { font: 700 11px var(--mono); }
.sector-word { font: 700 11.5px var(--mono); letter-spacing: 0.04em; }
.sector-light text { fill: #0b0b0b; }
.sector-dark text { fill: var(--ink); }
.sector-light .sector-num, .sector-dark .sector-num { fill: var(--red); }
.sector.is-drawn path { opacity: 0.28; }
.sector.is-drawn text { opacity: 0.4; }
.sector-line { stroke: #000; stroke-width: 1; opacity: 0.6; }
.wheel-inner { fill: #050505; stroke: var(--line-2); stroke-width: 2; }

/* Ponteiro: dedo arrancado. A ponta da unha (y=108 de 120 no viewBox) encosta na borda da roleta. */
.wheel-stage { --fw: 64px; }
.pointer {
  position: absolute; z-index: 3; width: var(--fw); height: calc(var(--fw) * 1.875);
  left: calc(50% - var(--fw) / 2); top: calc(16px - var(--fw) * 1.6875);
  transform-origin: 50% 15%; pointer-events: none;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 14px rgba(179, 15, 18, 0.35));
}
.pointer .drop { animation: drop-fall 2.8s ease-in infinite; transform-box: fill-box; transform-origin: center top; }
.pointer .drip { animation: drip 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center top; }
.pointer .drip-2 { animation-delay: -1.6s; }
@keyframes drop-fall {
  0%, 55% { transform: translateY(0) scale(0.6); opacity: 0; }
  65% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(14px) scale(1); opacity: 0; }
}
@keyframes drip { 50% { transform: scaleY(1.25); } }
.wheel-stage.is-spinning .pointer { animation: dangle 0.42s ease-in-out infinite alternate; }
@keyframes dangle { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.pointer.is-tapping { animation: tap 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes tap { 30% { transform: translateY(6px) scaleY(0.97); } }

/* Botão GIRAR no centro da roleta */
.wheel-hub {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer; padding: 0; color: #0a0a0a;
  border: 3px solid #050505;
  background: radial-gradient(circle at 35% 28%, #ff8a7f, var(--red) 45%, #b8261c 100%);
  box-shadow: 0 0 0 3px var(--red), 0 10px 28px rgba(0, 0, 0, 0.8), 0 0 36px rgba(255, 90, 78, 0.45), inset 0 -6px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s, filter 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.wheel-hub::after {
  content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid var(--red);
  opacity: 0; pointer-events: none;
}
.wheel-hub:not(:disabled)::after { animation: hub-ring 2s ease-out infinite; }
@keyframes hub-ring { 0% { opacity: 0.7; transform: scale(0.88); } 100% { opacity: 0; transform: scale(1.18); } }
.wheel-hub:not(:disabled):hover { transform: translate(-50%, -50%) scale(1.05); filter: brightness(1.08); }
.wheel-hub:not(:disabled):active { transform: translate(-50%, -50%) scale(0.95); }
.wheel-hub:disabled { cursor: default; filter: saturate(0.55) brightness(0.75); }
.wheel-hub:focus-visible { outline: 3px solid var(--ink-strong); outline-offset: 6px; border-radius: 50%; }
.hub-label { font: 700 clamp(1.25rem, 5.4vw, 1.85rem)/1 var(--cond); letter-spacing: 0.06em; }
.hub-sub { font: 700 clamp(0.56rem, 2.2vw, 0.68rem)/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.hub-sub strong { color: inherit; }
.is-spinning .hub-label { font-size: clamp(0.95rem, 3.8vw, 1.3rem); }
@media (prefers-reduced-motion: reduce) {
  .pointer .drop, .pointer .drip, .wheel-hub::after, .wheel-stage.is-spinning .pointer, .pointer.is-tapping { animation: none !important; }
}

.controls { display: flex; justify-content: center; margin-top: 28px; width: min(100%, 460px); }

/* ---------- Painel revelado ---------- */

.reveal { scroll-margin-top: 80px; }
.reveal-label { margin: 0 0 12px; font: 700 0.76rem/1 var(--mono); letter-spacing: 0.16em; color: var(--muted); }
.reveal-label span { color: var(--red); margin-left: 6px; }

.placeholder {
  border: 1px dashed var(--line-2); border-radius: var(--radius); padding: clamp(22px, 5vw, 40px);
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255, 255, 255, 0.015) 14px 28px);
}
.placeholder p { margin: 0; color: var(--muted); }
.placeholder p + p { margin-top: 8px; }
.placeholder-title { font: 700 clamp(1.2rem, 3vw, 1.6rem)/1.2 var(--cond); color: var(--ink-strong) !important; text-transform: uppercase; letter-spacing: 0.02em; }
.placeholder-busy .placeholder-title { color: var(--red) !important; animation: pulse 1s ease-in-out infinite; }
.placeholder-error { border-color: var(--red); }

/* ---------- Documento ---------- */

.document-card {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 4vw, 36px); overflow: hidden;
}
.document-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--red), transparent 70%); }
.document-card.is-fresh { animation: reveal-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes reveal-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .document-card.is-fresh { animation: none; } }

.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.doc-num { font: 700 0.86rem/1 var(--mono); letter-spacing: 0.14em; color: var(--red); }
.doc-num span { color: var(--muted); }
.doc-title { margin: 14px 0 6px; font: 700 clamp(1.8rem, 5vw, 2.7rem)/1.05 var(--cond); color: var(--ink-strong); text-transform: uppercase; letter-spacing: 0.005em; }
.doc-keywords { margin: 0 0 8px; font: 500 0.8rem/1.4 var(--mono); color: var(--muted); }
.doc-keywords span { color: var(--ink); text-transform: uppercase; letter-spacing: 0.1em; margin-right: 6px; }

.doc-section { margin-top: 22px; }
.doc-label { margin: 0 0 8px; font: 700 0.76rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-strong); }
.doc-text { max-width: 68ch; }
.doc-text p { margin: 0 0 0.85em; }
.doc-text p:last-child { margin-bottom: 0; }
.doc-text ul { margin: 0.4em 0 0.85em; padding-left: 1.2em; }
.doc-text li { margin: 0.3em 0; }
.doc-text li::marker { color: var(--red); }


.doc-sources ol { margin: 0; padding-left: 1.4em; font-size: 0.95rem; }
.doc-sources li { margin: 0.4em 0; overflow-wrap: anywhere; }
.doc-sources li::marker { font-family: var(--mono); color: var(--muted); }
.doc-sources a { font-weight: 600; }
.source-path { font-weight: 400; color: var(--muted); }
.source-note { color: var(--muted); font-style: italic; }
.source-broken { color: var(--muted); text-decoration: line-through; }

.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .doc-actions .btn { flex: 1 1 100%; } }

/* ---------- Histórico ---------- */

.history { margin-top: clamp(36px, 6vw, 60px); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; font: 700 clamp(1.4rem, 3.5vw, 1.9rem)/1.1 var(--cond); text-transform: uppercase; color: var(--ink-strong); }
.pill { font: 700 0.74rem/1 var(--mono); letter-spacing: 0.12em; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }

.history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); counter-reset: none; }
.history-item {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  padding: 12px 14px; min-height: 56px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  font: inherit; transition: border-color 0.2s, background 0.2s;
}
.history-item:hover { border-color: var(--ink); background: var(--panel-2); }
.history-step { font: 700 0.8rem/1 var(--mono); color: var(--muted); }
.history-name { flex: 1; font-weight: 600; line-height: 1.3; color: var(--ink-strong); }
.history-num { display: block; font: 700 0.7rem/1.4 var(--mono); letter-spacing: 0.12em; color: var(--red); text-transform: uppercase; }

/* ---------- Todos os Casos ---------- */

.search-bar { display: flex; gap: 10px; align-items: center; }
.search-field {
  flex: 1; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 16px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px;
}
.search-field:focus-within { border-color: var(--ink); }
.search-field svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search-field input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink-strong);
  font: 400 1.05rem/1.2 var(--sans); padding: 14px 0;
}
.search-field input::placeholder { color: var(--muted); opacity: 0.85; }
.search-field input::-webkit-search-cancel-button { display: none; }


.result-count { margin: 18px 0 12px; font: 700 0.76rem/1 var(--mono); letter-spacing: 0.16em; color: var(--muted); }
.card-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; cursor: pointer;
  padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  font: inherit; min-height: 180px; position: relative; transition: transform 0.15s, border-color 0.2s, background 0.2s;
}
.card-tile:hover { transform: translateY(-2px); border-color: var(--ink); background: var(--panel-2); }
.card-tile.is-drawn { border-color: rgba(255, 90, 78, 0.5); }
.tile-top { display: flex; width: 100%; justify-content: space-between; align-items: center; }
.tile-num { font: 700 2rem/1 var(--cond); color: var(--red); }
.tile-drawn { font: 700 0.64rem/1 var(--mono); letter-spacing: 0.14em; background: var(--red); color: #000; padding: 5px 8px; border-radius: 4px; }
.tile-word { font: 700 0.72rem/1 var(--mono); letter-spacing: 0.14em; color: var(--muted); }
.tile-title { flex: 1; font: 600 1.08rem/1.3 var(--sans); color: var(--ink-strong); }
.no-results { margin-top: 18px; padding: 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* ---------- Diálogos ---------- */

.dialog {
  padding: 0; border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg-2); color: var(--ink);
  width: min(820px, calc(100vw - 24px)); max-width: none; max-height: min(92dvh, 1000px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9); overflow: hidden;
}
.dialog::backdrop { background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(4px); }
.dialog[open] { display: flex; animation: dialog-in 0.22s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } }
@media (prefers-reduced-motion: reduce) { .dialog[open] { animation: none; } }
.dialog-box { position: relative; overflow-y: auto; overscroll-behavior: contain; width: 100%; max-height: inherit; padding: 0 clamp(14px, 3vw, 24px) clamp(16px, 3vw, 24px); }
.dialog-bar {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; margin-bottom: 4px; background: linear-gradient(var(--bg-2) 80%, transparent);
}
.dialog-kicker { margin: 0; font: 700 0.76rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.icon-btn {
  appearance: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel);
  color: var(--ink-strong); display: grid; place-items: center; cursor: pointer; flex: none;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; fill: none; }
.dialog .document-card { border: 0; padding: 4px 4px 8px; background: transparent; }
.dialog .document-card::before { display: none; }

@media (max-width: 600px) {
  .dialog { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; margin: 0; }
}

/* ---------- Compartilhar ---------- */

.dialog-share { width: min(620px, calc(100vw - 24px)); }
.share-case { margin: 0 0 16px; font: 700 1.3rem/1.2 var(--cond); text-transform: uppercase; color: var(--ink-strong); }
.share-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.format-btn {
  appearance: none; cursor: pointer; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 14px; min-height: 72px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-strong);
  font: 600 0.95rem/1.25 var(--sans);
}
.format-btn small { display: block; font: 500 0.72rem/1.4 var(--mono); color: var(--muted); letter-spacing: 0.04em; }
.format-btn:hover { border-color: var(--ink); }
.format-btn[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); }
.format-shape { flex: none; border: 2px solid currentColor; border-radius: 4px; color: var(--red); }
.format-stories { width: 18px; height: 32px; }
.format-feed { width: 24px; height: 30px; }
@media (max-width: 420px) { .share-formats { grid-template-columns: 1fr; } }

.share-preview { margin: 16px 0 0; text-align: center; }
.share-preview img {
  display: block; margin: 0 auto; max-width: 100%; max-height: 52dvh; width: auto; height: auto;
  border-radius: 10px; border: 1px solid var(--line-2); background: #000;
}
.share-preview.is-loading img { opacity: 0.25; }
.share-preview[data-format="stories"] img:not([src]) { aspect-ratio: 9 / 16; height: 40dvh; }
.share-preview[data-format="feed"] img:not([src]) { aspect-ratio: 4 / 5; height: 40dvh; }
.share-preview figcaption { margin-top: 8px; font: 500 0.78rem/1.3 var(--mono); }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.share-row .btn { flex: 1 1 200px; }

.share-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.share-link {
  appearance: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 74px; padding: 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel);
  color: var(--ink-strong); font: 700 0.74rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; text-align: center;
}
.share-link:hover { border-color: var(--ink); color: var(--ink-strong); }
.share-link svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.share-whatsapp svg { stroke: #4ade80; }
.manual-copy { display: grid; gap: 6px; margin-top: 12px; font-size: 0.9rem; }
.manual-copy input { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-strong); font: 500 0.9rem var(--mono); }

.message-details { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.message-details summary { cursor: pointer; padding: 14px 16px; font: 700 0.78rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.message-details pre { margin: 0; padding: 0 16px 16px; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 0.92rem/1.55 var(--sans); color: var(--ink); }

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px;
  background: var(--ink); color: #000; font: 700 0.85rem/1.35 var(--mono); letter-spacing: 0.02em; text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6); transition: opacity 0.25s, transform 0.25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Rodapé ---------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 0.92rem; }
.site-footer p { max-width: 80ch; margin: 0 0 10px; }
.site-footer .visit-count {
  margin: 28px auto 0; max-width: none; text-align: center;
  font: 500 0.7rem/1 var(--mono); letter-spacing: 0.12em; color: #4d4a45; user-select: none;
}
.noscript { padding: 20px; color: var(--red); }

/* ---------- Ajustes de celular ---------- */

@media (max-width: 700px) {
  body { font-size: 1.02rem; }
  .tabs { max-width: none; top: 8px; }
  .tab { font-size: 0.8rem; letter-spacing: 0.03em; padding-inline: 6px; white-space: nowrap; }
  .tab-num { margin-right: 4px; }
  .intro { font-size: 0.96rem; }
  .wheel-stage { width: min(100%, 400px); --fw: 52px; margin-top: 80px; }
  .search-bar { flex-wrap: wrap; }
  .card-tile { min-height: 0; }
}
