/* Fab Prompts · Trinity Academy
   Layout: hero com arte Trinity → barra de abas fixa → quatro estúdios (Forja, Prancha 8K, Comparador, Guia).
   Identidade: obsidiana + ouro escovado + brilho gelo do Ankh. Visual escuro único, deliberado. */
:root {
  --void: #050507;
  --obsidian: #0b0b10;
  --basalt: #12121a;
  --basalt-2: #1a1a24;
  --gold: #d6b062;
  --gold-hi: #f5dc9c;
  --gold-deep: #8f6d28;
  --ice: #a8dcff;
  --ice-deep: #4fa6e6;
  --ink: #f3eee2;
  --mute: #a39c8c;
  --faint: #6d685e;
  --line: rgba(214, 176, 98, 0.16);
  --line-strong: rgba(214, 176, 98, 0.38);
  --ok: #6fd6a0;
  --warn: #f0b45a;
  --bad: #ef7a6a;
  --gold-grad: linear-gradient(135deg, #f8e3a8 0%, #d6b062 38%, #9b7630 70%, #e9c97d 100%);
  --font-display: "Michroma", "Eurostile", "Arial Black", sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --r: 3px;
  --gutter: clamp(16px, 3vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { background: var(--void); color: var(--ink); }
body {
  margin: 0;
  font: 15px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  overflow-x: hidden;
}
body::before {
  /* Poeira estelar e brilho dourado ao fundo */
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(214, 176, 98, 0.13), transparent 70%),
    radial-gradient(ellipse 40% 30% at 100% 100%, rgba(79, 166, 230, 0.06), transparent 70%),
    var(--void);
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(214, 176, 98, 0.35); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { padding-inline: var(--gutter); max-width: 1680px; margin-inline: auto; }

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  font: 600 11px/1.2 var(--font-body);
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
}
.display {
  font-family: var(--font-display); font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase;
}
.gold-text {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--mute); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px);
  align-items: center; padding-block: clamp(28px, 5vw, 56px);
}
.hero-copy { display: grid; gap: 18px; min-width: 0; }
.hero h1 { font-size: clamp(34px, 6.2vw, 84px); line-height: 1; letter-spacing: 0.04em; }
.hero h1 small {
  display: block; margin-top: 14px; font: 500 clamp(12px, 1.3vw, 15px)/1.3 var(--font-body);
  letter-spacing: 0.42em; color: var(--ink); text-transform: uppercase;
}
.hero-lede { font-size: clamp(15px, 1.4vw, 18px); color: var(--mute); max-width: 54ch; }
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.flow-step {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px;
  border: 1px solid var(--line); background: rgba(18, 18, 26, 0.7); border-radius: 40px; cursor: pointer;
  font-size: 13px; font-weight: 600; transition: border-color .2s, background .2s;
}
.flow-step:hover { border-color: var(--line-strong); background: rgba(214, 176, 98, 0.07); }
.flow-step b {
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold-grad); color: #1a1408; font: 700 11px/1 var(--font-display);
}
.flow-arrow { color: var(--gold-deep); }
.hero-art { position: relative; min-width: 0; }
.hero-art .frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; }
.hero-art img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--r);
  -webkit-mask-image: radial-gradient(ellipse 85% 90% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 85% 90% at 50% 50%, #000 62%, transparent 100%);
}
.corners { position: absolute; inset: -8px; pointer-events: none; }
.corners i { position: absolute; width: 22px; height: 22px; border-color: var(--gold); border-style: solid; opacity: .8; }
.corners i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.corners i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.corners i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.corners i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.hero-geo { position: absolute; inset: 0; pointer-events: none; opacity: .5; }

/* ---------- Barra de navegação ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(5, 5, 7, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.brand span { font: 400 13px/1 var(--font-display); letter-spacing: 0.12em; }
.brand em { font-style: normal; color: var(--gold); }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; padding: 19px 16px 17px; background: none; border: 0; cursor: pointer;
  font-weight: 600; font-size: 14px; color: var(--mute); white-space: nowrap; transition: color .2s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--gold-hi); }
.tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--gold-grad);
  box-shadow: 0 0 12px rgba(214, 176, 98, .6);
}
.tab .n { font: 400 10px/1 var(--font-display); color: var(--gold-deep); margin-right: 8px; }
.lang { flex: none; }
.lang select { background: var(--basalt); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 8px; font-size: 13px; }

/* ---------- Views ---------- */
.view { padding-block: 28px 64px; }
.view-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.view-head h2 { font: 400 clamp(20px, 2.4vw, 28px)/1.15 var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; }
.view-head p { color: var(--mute); max-width: 70ch; margin-top: 8px; }

/* ---------- Componentes básicos ---------- */
.panel { background: linear-gradient(180deg, rgba(26, 26, 36, .55), rgba(12, 12, 17, .75)); border: 1px solid var(--line); border-radius: var(--r); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px;
  border-radius: var(--r); border: 1px solid var(--line-strong); background: rgba(214, 176, 98, 0.04);
  color: var(--ink); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .1s;
}
.btn:hover { background: rgba(214, 176, 98, 0.12); border-color: var(--gold); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn-gold { background: var(--gold-grad); color: #1b1408; border-color: transparent; box-shadow: 0 0 0 1px rgba(245, 220, 156, .25), 0 6px 22px -8px rgba(214, 176, 98, .7); }
.btn-gold:hover { filter: brightness(1.08); background: var(--gold-grad); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--mute); }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn.is-on { border-color: var(--ice); color: var(--ice); background: rgba(168, 220, 255, 0.08); }
.btn.copied { border-color: var(--ok); color: var(--ok); }
.icon-btn { padding: 7px; }

.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .lbl { font-size: 12px; font-weight: 600; color: var(--mute); display: flex; justify-content: space-between; gap: 8px; }
.lbl output, .field > label output { color: var(--gold-hi); font-variant-numeric: tabular-nums; font-weight: 700; }
.hint { font-size: 12px; color: var(--faint); line-height: 1.5; }
input[type="text"], input[type="url"], input[type="number"], select, textarea {
  width: 100%; background: var(--obsidian); border: 1px solid var(--line); border-radius: var(--r);
  padding: 9px 11px; font-size: 14px; color: var(--ink); transition: border-color .2s;
}
textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type="color"] { width: 44px; height: 38px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r); background: var(--obsidian); cursor: pointer; }
input[type="range"] { width: 100%; accent-color: var(--gold); height: 22px; margin: 0; cursor: pointer; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.switch { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; line-height: 1.4; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; width: 34px; height: 20px; border-radius: 20px; background: var(--basalt-2); border: 1px solid var(--line-strong); position: relative; cursor: pointer; margin: 0; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--mute); transition: transform .2s, background .2s; }
.switch input:checked { background: rgba(214, 176, 98, .3); border-color: var(--gold); }
.switch input:checked::after { transform: translateX(14px); background: var(--gold-hi); }
.switch small { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }

/* Segmentado */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); padding: 2px; background: var(--obsidian); flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 12px; border-radius: 2px; font-size: 13px; font-weight: 600; color: var(--mute); cursor: pointer; }
.seg button[aria-pressed="true"] { background: rgba(214, 176, 98, .16); color: var(--gold-hi); }

/* Chips de escolha (estilo / destino) */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
  background: var(--obsidian); transition: border-color .2s, background .2s; height: 100%;
}
.chip span b { font-size: 13px; }
.chip span small { font-size: 11.5px; color: var(--faint); line-height: 1.35; }
.chip input:checked + span { border-color: var(--gold); background: rgba(214, 176, 98, 0.09); box-shadow: inset 0 0 0 1px rgba(214, 176, 98, .25); }
.chip input:checked + span b { color: var(--gold-hi); }
.chip input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 2px; }

/* ---------- FORJA ---------- */
.forge { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 22px; align-items: start; }
.dna { position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 92px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent; }
.dna-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--obsidian); z-index: 2; }
.dna-head h3 { font: 400 14px/1.2 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.dna fieldset { border: 0; margin: 0; padding: 16px 18px 18px; display: grid; gap: 12px; border-bottom: 1px solid var(--line); }
.dna fieldset:last-child { border-bottom: 0; }
.dna legend { padding: 0; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; width: 100%; }
.dna legend .eyebrow { flex: none; }
.dna legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.color-field { display: flex; gap: 8px; align-items: center; }
.color-field input[type="text"] { font-family: var(--font-mono); text-transform: uppercase; }

.output { min-width: 0; display: grid; gap: 16px; }
.packs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent; }
.pack {
  flex: none; display: grid; gap: 1px; text-align: left; padding: 10px 14px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--obsidian); cursor: pointer; min-width: 128px;
}
.pack b { font-size: 13px; }
.pack small { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.pack[aria-selected="true"] { border-color: var(--gold); background: rgba(214, 176, 98, 0.1); }
.pack[aria-selected="true"] b { color: var(--gold-hi); }
.pack-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 16px 18px; }
.pack-bar h3 { font: 400 16px/1.3 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.pack-bar p { color: var(--mute); font-size: 13.5px; margin-top: 4px; max-width: 72ch; }
.pack-extra { padding: 0 18px 16px; display: none; }
.pack-extra.on { display: block; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 14px; }
.card { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.card-head { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px 10px; }
.card-num { font: 400 20px/1 var(--font-display); color: var(--gold); min-width: 34px; }
.card-title { flex: 1; min-width: 0; }
.card-title h4 { font-size: 15px; font-weight: 700; }
.card-title p { font-size: 12.5px; color: var(--mute); line-height: 1.45; margin-top: 3px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge { font: 600 10.5px/1 var(--font-mono); letter-spacing: .04em; padding: 5px 7px; border-radius: 2px; border: 1px solid var(--line-strong); color: var(--gold-hi); white-space: nowrap; }
.badge.ice { border-color: rgba(168, 220, 255, .35); color: var(--ice); }
.prompt-text {
  margin: 0 16px; padding: 12px 14px; background: var(--void); border: 1px solid var(--line); border-radius: var(--r);
  font: 12.5px/1.65 var(--font-mono); color: #ddd5c3; white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow: auto;
  scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent;
}
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px 14px; }
.card-foot .hint { font-variant-numeric: tabular-nums; }

/* ---------- PRANCHA 8K ---------- */
.sheet-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 10px 12px; margin-bottom: 14px; }
.sheet-bar .row { gap: 8px; }
.sheet-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.slots { display: grid; gap: 6px; padding: 8px; }
.slot {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s; position: relative;
}
.slot:hover { background: rgba(214, 176, 98, .05); }
.slot.sel { border-color: var(--gold); background: rgba(214, 176, 98, .08); }
.slot.drag { border-color: var(--ice); background: rgba(168, 220, 255, .08); }
.slot-thumb { width: 52px; height: 52px; border-radius: 2px; background: var(--void) center/cover no-repeat; border: 1px solid var(--line); display: grid; place-items: center; font: 400 13px var(--font-display); color: var(--gold-deep); overflow: hidden; }
.slot-thumb canvas { width: 100%; height: 100%; display: block; }
.slot-info { min-width: 0; display: grid; gap: 1px; }
.slot-info b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-info small { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.slot-info small.ok { color: var(--ok); }
.slot-info small.demo { color: var(--warn); }
.slot-actions { display: flex; gap: 4px; margin-top: 4px; }
.slot-actions .btn { padding: 4px 7px; font-size: 11px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }

.stage { min-width: 0; display: grid; gap: 10px; }
.stage-frame { position: relative; padding: 10px; }
.stage-frame canvas { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 2px; touch-action: none; cursor: grab; background: var(--void); }
.stage-frame canvas.grabbing { cursor: grabbing; }
.stage-frame.dragover canvas { outline: 2px dashed var(--ice); outline-offset: 4px; }
.stage-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 12.5px; color: var(--mute); padding: 0 4px; }
.stage-meta b { color: var(--ink); font-weight: 600; }
.kbd { font: 600 11px var(--font-mono); padding: 1px 5px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--gold-hi); }

.inspector { display: grid; min-width: 0; }
.insp-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.insp-tabs button { background: none; border: 0; padding: 12px 4px; font-size: 12px; font-weight: 700; color: var(--mute); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.insp-tabs button[aria-selected="true"] { color: var(--gold-hi); border-bottom-color: var(--gold); }
.insp-body { padding: 16px; display: grid; gap: 14px; }
.insp-body[hidden] { display: none; }
.insp-title { display: flex; align-items: center; gap: 10px; }
.insp-title b { font: 400 22px/1 var(--font-display); color: var(--gold); }
.insp-title span { font-weight: 700; font-size: 14px; line-height: 1.3; }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.readout { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 12.5px; padding: 10px 12px; background: var(--void); border: 1px solid var(--line); border-radius: var(--r); }
.readout span { color: var(--mute); }
.readout b { font-variant-numeric: tabular-nums; text-align: right; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.export-result { font-size: 12.5px; color: var(--ok); }

/* ---------- COMPARADOR ---------- */
.cmp-bar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; padding: 12px 14px; margin-bottom: 14px; }
.cmp-bar .zoom { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; min-width: 0; }
.cmp-bar .zoom input { flex: 1; min-width: 80px; }
.cmp-bar output { font: 700 13px var(--font-mono); color: var(--gold-hi); min-width: 56px; }
.cmp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cmp-card { display: grid; gap: 10px; padding: 12px; min-width: 0; }
.cmp-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.cmp-tag { font: 400 12px/1 var(--font-display); padding: 6px 9px; border-radius: 2px; background: var(--gold-grad); color: #1b1408; }
.cmp-tag.b { background: linear-gradient(135deg, #d9f0ff, #7cc0ee); }
.cmp-name { flex: 1; min-width: 0; font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-stat { font: 500 11.5px var(--font-mono); color: var(--faint); }
.cmp-view { position: relative; aspect-ratio: 4 / 3; background: var(--void); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.cmp-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.cmp-view.dragover { border-color: var(--ice); }
.cmp-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--faint); font-size: 13px; pointer-events: none; }
.cmp-empty svg { width: 40px; height: 40px; margin: 0 auto 8px; stroke: var(--gold-deep); }
.cmp-wipe .cmp-view { aspect-ratio: 16 / 8; }
.cmp-scale { position: absolute; right: 8px; bottom: 8px; font: 600 11px var(--font-mono); padding: 4px 7px; background: rgba(5, 5, 7, .75); border: 1px solid var(--line); border-radius: 2px; color: var(--ice); pointer-events: none; }

/* ---------- GUIA ---------- */
.guide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 1180px; }
.guide section { padding: clamp(18px, 3vw, 30px); }
.guide h3 { font: 400 17px/1.3 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.guide p, .guide li { color: #d3cbbb; max-width: 74ch; }
.guide p + p { margin-top: 10px; }
.guide strong { color: var(--gold-hi); }
.guide ol, .guide ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.step { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--obsidian); display: grid; gap: 8px; align-content: start; }
.step b { font: 400 26px/1 var(--font-display); }
.step h4 { font-size: 15px; }
.step p { font-size: 13.5px; color: var(--mute); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 13.5px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 11px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); background: var(--obsidian); }
tr:last-child td { border-bottom: 0; }
td.mono { font-family: var(--font-mono); font-size: 12.5px; color: var(--ice); white-space: nowrap; }
.map-wrap { display: grid; gap: 10px; }
.map { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--void); border: 1px solid var(--line-strong); border-radius: 2px; container-type: inline-size; }
.map div { position: absolute; border: 1px solid rgba(214, 176, 98, .45); background: rgba(214, 176, 98, .05); display: grid; place-content: center; text-align: center; padding: 2px; overflow: hidden; }
.map div b { font: 400 clamp(9px, 1.6cqi, 15px)/1.1 var(--font-display); color: var(--gold-hi); }
.map div small { font: 500 clamp(7px, 1.1cqi, 11px)/1.2 var(--font-mono); color: var(--mute); }
.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--obsidian); }
.faq summary { cursor: pointer; padding: 12px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 16px 14px; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 28px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--mute); }
.footer a { color: var(--gold-hi); }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; width: min(92vw, 420px); pointer-events: none; }
.toast { padding: 11px 16px; border-radius: var(--r); background: var(--basalt-2); border: 1px solid var(--line-strong); font-size: 13.5px; box-shadow: 0 12px 30px -10px #000; animation: toastIn .25s ease; }
.toast.ok { border-color: rgba(111, 214, 160, .5); }
.toast.bad { border-color: rgba(239, 122, 106, .6); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Responsivo ---------- */
@media (max-width: 1280px) {
  .sheet-grid { grid-template-columns: 210px minmax(0, 1fr); }
  .inspector { grid-column: 1 / -1; }
  .insp-body { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-items: start; }
}
@media (max-width: 1020px) {
  .forge { grid-template-columns: minmax(0, 1fr); }
  .dna { position: static; max-height: none; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 640px; }
}
@media (max-width: 820px) {
  .sheet-grid { grid-template-columns: minmax(0, 1fr); }
  .slots { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .cmp-grid { grid-template-columns: minmax(0, 1fr); }
  .steps3 { grid-template-columns: minmax(0, 1fr); }
  .brand span { display: none; }
}
@media (max-width: 520px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .tab { padding-inline: 11px; font-size: 13px; }
  .tab .n { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.guide code { font: 600 0.9em var(--font-mono); color: var(--ice); }

/* ---------- Anúncios (somente quando configurados) ---------- */
.ad-slot { margin-top: 24px; padding: 10px 12px 12px; border: 1px dashed var(--line); border-radius: var(--r); min-height: 110px; display: grid; gap: 6px; }
.ad-label { font: 600 10px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
