/* ==========================================================
   MATHEUS CORINGA — o sistema foi invadido
   terminal limpo (o hacker) + caneta vermelha (o coringa)
   ========================================================== */
/* fontes hospedadas aqui (sem Google Fonts): só caracteres latinos + setas/símbolos usados */
@font-face {
  font-family: 'Martian Mono';
  src: url(fonts/martian-mono.woff2) format('woff2');
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Permanent Marker';
  src: url(fonts/permanent-marker.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --bg-2: #111110;
  --bg-3: #181716;
  --fg: #ebe8e1;
  --dim: #aaa69d;      /* texto secundário (≥7:1 no fundo) */
  --mute: #55524d;     /* só para bordas e traços, nunca para texto */
  --mute-t: #86827a;   /* texto terciário (≥4.5:1 até no cinza mais claro) */
  --line: #262422;
  --red: #ff2a1f;
  --red-deep: #b3120c;
  --money: #3fd07a;
  --mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --marker: 'Permanent Marker', 'Comic Sans MS', cursive;
  --gut: clamp(16px, 4vw, 56px);
  --top: 44px;
  --bot: 36px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--mono); font-size: 14px; line-height: 1.6;
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bot);
}
body.booting { overflow: hidden; }
::selection { background: var(--red); color: #000; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.defs { position: absolute; width: 0; height: 0; }
.red { color: var(--red); }
.dim { color: var(--dim); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--red); color: #000; padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
kbd { font-family: var(--mono); font-size: 10px; border: 1px solid var(--mute); border-bottom-width: 2px; padding: 1px 5px; border-radius: 3px; color: var(--dim); }

/* grão sutil por cima de tudo */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0,0) } 25% { transform: translate(-3%,2%) } 50% { transform: translate(2%,-3%) } 75% { transform: translate(-1%,3%) } }

/* ---------- caneta vermelha do coringa ---------- */
.scrawl {
  font-family: var(--marker); color: var(--red); margin: 0; line-height: .9;
  pointer-events: none; user-select: none; position: absolute; z-index: 3;
  text-shadow: 0 0 1px rgba(255,42,31,.6);
}

/* ---------- BOOT ---------- */
.boot {
  position: fixed; inset: 0; z-index: 300; background: #000; color: var(--fg);
  padding: clamp(16px, 5vw, 64px); display: flex; flex-direction: column; justify-content: flex-end;
  transition: opacity .5s, visibility .5s;
}
.boot pre { margin: 0; font: 12px/1.7 var(--mono); white-space: pre-wrap; max-height: 100%; overflow: hidden; }
.boot pre .ok { color: var(--fg); }
.boot pre .r { color: var(--red); }
.boot pre .big { display: block; font-family: var(--marker); color: var(--red); font-size: clamp(56px, 16vw, 200px); line-height: 1; margin-top: 12px; }
.boot-skip { color: var(--mute-t); font-size: 11px; margin: 16px 0 0; }
.boot.done { opacity: 0; visibility: hidden; }

/* ---------- TOPO ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 80;
  display: flex; align-items: center; gap: 16px; padding: 0 var(--gut);
  background: rgba(10,10,10,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); font-size: 12px;
}
.host { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.host .a { width: 18px; height: 18px; color: var(--red); }
.host i { color: var(--red); font-style: normal; }
.host b { color: var(--dim); font-weight: 400; }
.cmdk {
  margin-left: auto; display: flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--bg-2); color: var(--dim); border: 1px solid var(--line); border-radius: 6px;
  font: 11px var(--mono); padding: 5px 8px 5px 12px;
}
.cmdk span { margin-right: 10px; }
.cmdk:hover { border-color: var(--mute-t); color: var(--fg); }
.clock { color: var(--dim); font-variant-numeric: tabular-nums; }

/* ---------- STATUS (tmux) ---------- */
.status {
  position: fixed; inset: auto 0 0 0; height: var(--bot); z-index: 80;
  display: flex; align-items: center; gap: 0; font-size: 11px;
  background: var(--fg); color: #000;
}
.status .sess { background: var(--red); color: #000; font-weight: 700; padding: 0 12px; height: 100%; display: flex; align-items: center; }
.status .tabs { display: flex; overflow-x: auto; scrollbar-width: none; flex: 1; height: 100%; }
.status .tabs::-webkit-scrollbar { display: none; }
.status .tabs a {
  text-decoration: none; padding: 0 12px; display: flex; align-items: center; white-space: nowrap; height: 100%;
  transition: background .2s;
}
.status .tabs a:hover { background: rgba(0,0,0,.1); }
.status .tabs a[aria-current="true"] { background: #000; color: var(--fg); }
.status .tabs a[aria-current="true"]::after { content: '*'; color: var(--red); margin-left: 2px; }
.status .up { padding: 0 12px; white-space: nowrap; }
.status::before { content: ''; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); }
.pane-head .cmd { display: inline-block; }
.pane-head .cmd.typing::after { content: '▍'; color: var(--red); animation: blink .7s steps(2) infinite; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; padding: calc(var(--top) + 24px) var(--gut) 72px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(16px, 3vw, 48px);
  overflow: hidden;
}
.hero-face { position: relative; grid-column: 2; grid-row: 1; height: min(82svh, 860px); align-self: center; }
.hero-face canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.face-tag { position: absolute; left: 0; bottom: 0; font-size: 10px; color: var(--mute-t); letter-spacing: .05em; }
.face-tag em { color: var(--red); font-style: normal; animation: blink 1.2s steps(2) infinite; }
.hero-copy { grid-column: 1; grid-row: 1; position: relative; z-index: 2; }
.prompt { color: var(--dim); font-size: 13px; margin: 0 0 18px; min-height: 1.6em; }
.prompt .ps { color: var(--red); }
.caret { display: inline-block; width: .6em; height: 1.1em; background: var(--fg); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.name { position: relative; width: fit-content; margin: 0; font-weight: 800; line-height: .86; letter-spacing: -.04em; text-transform: uppercase; }
.name .glyph { flex: none; width: .8em; height: .8em; margin-left: .04em; color: var(--red); transform: translateY(-.02em); }
.name .g-a { width: .78em; height: .78em; margin-left: .06em; transform: translateY(-.05em); }
.ideia { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 58px 0 0; font-size: 11px; color: var(--dim); }
.ideia span { display: inline-flex; align-items: center; gap: 6px; }
.ideia .mini { width: 13px; height: 13px; color: var(--red); }
.name .s-hero { display: block; font-size: clamp(34px, 4.6vw, 78px); font-weight: 400; letter-spacing: 0; text-transform: none; font-variation-settings: normal;
  right: -.62em; bottom: -.7em; transform: rotate(-7deg); -webkit-text-stroke: 0; color: var(--red); }
.lede { color: var(--dim); max-width: 34ch; margin: 12px 0 28px; font-size: 13px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.key {
  --c: var(--fg);
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 12px var(--mono);
  padding: 12px 16px; border: 1px solid var(--c); color: var(--c); position: relative; overflow: hidden;
  text-transform: uppercase; letter-spacing: .06em; transition: color .25s var(--ease);
  isolation: isolate;
}
.key::before { content: ''; position: absolute; inset: 0; background: var(--c); transform: translateY(101%); transition: transform .3s var(--ease); z-index: -1; }
.key:hover { color: #000; }
.key:hover::before { transform: none; }
.key.primary { --c: var(--red); background: var(--red); color: #000; }
.key.primary::before { background: var(--fg); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 36px 0 0; font-size: 11px; }
.hero-meta dt { color: var(--mute-t); text-transform: uppercase; letter-spacing: .08em; font-size: 9px; }
.hero-meta dd { margin: 0; }

.ticker { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line); overflow: hidden; height: 34px; display: flex; align-items: center; }
.tk { display: flex; white-space: nowrap; animation: tick 40s linear infinite; font-size: 11px; color: var(--dim); letter-spacing: .1em; }
.tk span { padding-right: 0; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- PANES (seções) ---------- */
.pane { position: relative; padding: clamp(72px, 10vw, 140px) var(--gut) 0; max-width: 1240px; margin: 0 auto; }
.pane.wide { max-width: none; }
.pane-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 16px;
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: clamp(28px, 4vw, 48px);
}
.pane.wide .pane-head { max-width: 1240px; margin-left: auto; margin-right: auto; }
.pid { color: var(--red); font-size: 11px; align-self: start; }
.pane-head h2 { margin: 0; font-weight: 800; font-size: clamp(22px, 3.4vw, 46px); line-height: 1; letter-spacing: -.03em; font-variation-settings: 'wdth' 75; }
.pane-head .path { color: var(--mute-t); font-size: 11px; text-align: right; }
.pane-head.inv { border-color: rgba(0,0,0,.25); }

/* revelar ao rolar */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- WHOAMI ---------- */
.who { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.mug { position: relative; margin: 0; border: 1px solid var(--line); padding: 10px; background: var(--bg-2); }
.mug img { aspect-ratio: 3/4; object-fit: cover; width: 100%; filter: grayscale(1) contrast(1.25) brightness(.95); }
.mug figcaption { font-size: 10px; color: var(--dim); padding-top: 8px; display: flex; justify-content: space-between; }
.mug figcaption span { color: var(--fg); }
.s-mug { font-size: 64px; right: -18px; bottom: 40px; transform: rotate(-12deg); }
.json { margin: 0 0 28px; font: 12.5px/1.8 var(--mono); background: var(--bg-2); border: 1px solid var(--line); border-left: 2px solid var(--red); padding: 18px 20px; overflow-x: auto; }
.json k { color: var(--dim); }
.json s { text-decoration: none; color: var(--fg); }
.json s.red { color: var(--red); }
.json n { color: var(--red); }
.json c { color: var(--mute-t); font-style: italic; }
.who-lead { font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; line-height: 1.2; margin: 0 0 16px; letter-spacing: -.02em; font-variation-settings: 'wdth' 80; }
mark { background: none; color: var(--red); }
.who-out > p { color: #c9c5bd; max-width: 62ch; font-size: 13.5px; }
.who-out b { color: var(--fg); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-top: 28px; }
.stats div { padding: 16px; border-right: 1px solid var(--line); }
.stats div:last-child { border: 0; }
.stats b { display: block; font-size: clamp(32px, 4.4vw, 58px); font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variation-settings: 'wdth' 75; }
.stats span { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }

.film { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: clamp(32px, 5vw, 64px); }
.film figure { margin: 0; position: relative; overflow: hidden; background: #000; }
.film img { aspect-ratio: 2/3; object-fit: cover; width: 100%; filter: url(#dither) contrast(1.4); transition: filter .5s, transform .8s var(--ease); }
.film figure:hover img, .film figure:focus-within img { filter: none; transform: scale(1.04); }
.film figcaption { position: absolute; left: 6px; top: 4px; font-size: 10px; color: var(--red); mix-blend-mode: difference; }
.credit { font-size: 10px; color: var(--mute-t); margin: 10px 0 0; }

/* ---------- REGISTROS (arquivo de evidências) ---------- */
.reg-bar { max-width: 1240px; margin: 0 auto 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.reg-f { font: 11px var(--mono); color: var(--dim); background: none; border: 1px solid var(--line); padding: 7px 12px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.reg-f:hover { color: var(--fg); border-color: var(--mute-t); }
.reg-f[aria-pressed="true"] { background: var(--fg); color: #000; border-color: var(--fg); }
.reg-hint { margin-left: auto; font-size: 10px; color: var(--mute-t); }
.reg-grid {
  --cols: 4;
  max-width: 1240px; margin: 0 auto; display: grid; gap: 6px;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: calc((min(1240px, 100vw - 2 * var(--gut)) - (var(--cols) - 1) * 6px) / var(--cols) * .667);
  grid-auto-flow: dense;
}
.reg { position: relative; overflow: hidden; background: #000; cursor: pointer; border: 0; padding: 0; color: var(--fg); font: inherit; text-align: left;
  grid-column: span 2; grid-row: span 2; }
.reg.tall { grid-column: span 1; grid-row: span 3; }
.reg.big { grid-column: span 3; grid-row: span 3; }
.reg.hidden { display: none; }
.reg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(1.1) brightness(.78); transform: scale(1.02); transition: filter .5s, transform 1.2s var(--ease); }
.reg::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px); transition: opacity .4s; }
.reg:hover img, .reg:focus-visible img { filter: none; transform: scale(1.06); }
.reg:hover::before, .reg:focus-visible::before { opacity: .25; }
/* cantos de mira */
.reg .crn { position: absolute; inset: 10px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s, inset .4s var(--ease);
  background:
    linear-gradient(var(--red), var(--red)) 0 0 / 14px 1.5px no-repeat, linear-gradient(var(--red), var(--red)) 0 0 / 1.5px 14px no-repeat,
    linear-gradient(var(--red), var(--red)) 100% 0 / 14px 1.5px no-repeat, linear-gradient(var(--red), var(--red)) 100% 0 / 1.5px 14px no-repeat,
    linear-gradient(var(--red), var(--red)) 0 100% / 14px 1.5px no-repeat, linear-gradient(var(--red), var(--red)) 0 100% / 1.5px 14px no-repeat,
    linear-gradient(var(--red), var(--red)) 100% 100% / 14px 1.5px no-repeat, linear-gradient(var(--red), var(--red)) 100% 100% / 1.5px 14px no-repeat; }
.reg:hover .crn, .reg:focus-visible .crn { opacity: 1; inset: 16px; }
.reg .hud { position: absolute; inset: 8px 10px; z-index: 3; display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; pointer-events: none; text-shadow: 0 1px 3px #000; }
.reg .hud-t { display: flex; justify-content: space-between; gap: 8px; }
.reg .hud-t b { color: var(--red); font-weight: 400; }
.reg .hud-b { display: flex; justify-content: space-between; align-items: end; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.reg:hover .hud-b, .reg:focus-visible .hud-b { opacity: 1; transform: none; }
.reg .hud-b em { font-style: normal; background: var(--red); color: #000; padding: 2px 6px; font-weight: 700; }
/* decodificação ao aparecer: uma barra vermelha varre a foto */
.reg .wipe { position: absolute; inset: 0; z-index: 4; background: var(--bg); transform-origin: 50% 100%; pointer-events: none; }
.reg .wipe::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); box-shadow: 0 0 12px var(--red); }
.reg.in .wipe { animation: wipe .9s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes wipe { to { transform: scaleY(0); } }

/* ---------- VISUALIZADOR ---------- */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5,5,5,.97); color: var(--fg);
  display: none; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.viewer[open] { display: grid; }
.viewer::backdrop { background: #000; }
.vw-top { display: flex; gap: 18px; align-items: center; padding: 12px var(--gut); border-bottom: 1px solid var(--line); font-size: 11px; color: var(--dim); }
.vw-top #vw-file { color: var(--fg); }
.vw-top #vw-idx { color: var(--red); }
.vw-x { margin-left: auto; background: none; border: 1px solid var(--line); color: var(--dim); font: 11px var(--mono); padding: 6px 10px; cursor: pointer; }
.vw-x:hover { color: var(--fg); border-color: var(--mute-t); }
.vw-stage { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; min-height: 0; padding: 12px 0; touch-action: pan-y; }
.vw-fig { position: relative; margin: 0; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.vw-fig img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.vw-scan { position: absolute; inset: 0; pointer-events: none; }
.vw-fig.load img { animation: vwin .7s var(--ease); }
.vw-fig.load .vw-scan { background: linear-gradient(transparent calc(100% - 2px), var(--red) calc(100% - 2px)); animation: vwscan .7s var(--ease) forwards; }
@keyframes vwin { from { clip-path: inset(0 0 100% 0); filter: contrast(2) grayscale(1); } to { clip-path: inset(0 0 0 0); filter: none; } }
@keyframes vwscan { from { transform: translateY(-100%); opacity: 1; } 90% { opacity: 1; } to { transform: translateY(0); opacity: 0; } }
.vw-nav { height: 100%; background: none; border: 0; color: var(--dim); font: 300 40px var(--mono); cursor: pointer; transition: color .2s; }
.vw-nav:hover { color: var(--red); }
.vw-meta { margin: 0; padding: 10px var(--gut); font: 11px/1.7 var(--mono); color: var(--dim); border-top: 1px solid var(--line); white-space: pre-wrap; }
.vw-meta b { color: var(--red); font-weight: 400; }
.vw-meta i { color: var(--fg); font-style: normal; }
.vw-strip { display: flex; gap: 4px; overflow-x: auto; padding: 8px var(--gut) 14px; scrollbar-width: none; background: #000; }
.vw-strip::-webkit-scrollbar { display: none; }
.vw-strip button { flex: 0 0 auto; width: 74px; height: 50px; padding: 0; border: 1px solid transparent; background: #111 center / cover; cursor: pointer; filter: grayscale(1) brightness(.6); transition: filter .2s, border-color .2s; }
.vw-strip button:hover { filter: none; }
.vw-strip button[aria-current="true"] { filter: none; border-color: var(--red); }
body.viewing { overflow: hidden; }

/* ---------- FILA ---------- */
.ps { border: 1px solid var(--line); font-size: 12px; }
.ps-row { display: grid; grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1.4fr); gap: 16px; padding: 16px; border-bottom: 1px solid var(--line); align-items: center; }
.ps-row:last-child { border: 0; }
.ps-h { color: var(--mute-t); font-size: 10px; letter-spacing: .1em; padding: 10px 16px; }
.ps-row b { font-weight: 700; }
.bar { position: relative; height: 22px; border: 1px solid var(--mute); display: flex; align-items: center; }
.bar i { position: absolute; inset: 2px; right: auto; width: 0; background: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 8px); transition: width 2.2s var(--ease); }
.in .bar i, .bar.in i { width: calc((100% - 4px) * var(--p)); }
.bar em { position: relative; margin-left: auto; padding: 0 8px; font-style: normal; font-size: 10px; color: var(--fg); background: var(--bg); text-transform: uppercase; animation: blink 1.6s steps(2) infinite; }

/* ---------- BARALHO 3D ---------- */
.deck-stage {
  position: relative; height: clamp(440px, 62vw, 620px); perspective: 1400px; perspective-origin: 50% 40%;
  cursor: grab; touch-action: pan-y; user-select: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.deck-stage.drag { cursor: grabbing; }
.deck-ring { position: absolute; left: 50%; top: 38%; width: 0; height: 0; transform-style: preserve-3d; }
.pc {
  --w: clamp(150px, 17vw, 210px);
  position: absolute; width: var(--w); height: calc(var(--w) * 1.4); left: calc(var(--w) / -2); top: calc(var(--w) * -0.7);
  transform-style: preserve-3d; transition: transform .7s var(--ease);
}
.pc-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s var(--ease);
  transform: rotateX(var(--tx, 0deg)) rotateY(calc(var(--ty, 0deg) + var(--flip, 0deg))); }
.pc.front .pc-in { transition: transform .8s var(--ease), --tx .2s; }
.pc.flip .pc-in { --flip: 180deg; }
/* espessura: camadas de papelão entre frente e verso */
.pc-in::before, .pc-in::after { content: ''; position: absolute; inset: 0; border-radius: 10px; background: #cfc7b6; }
.pc-in::before { transform: translateZ(-.8px); }
.pc-in::after { transform: translateZ(.8px); background: #bdb5a3; }
/* brilho metálico: segue o ângulo de cada carta */
.pc-face::before { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.9) 46%, rgba(255,42,31,.55) 52%, rgba(120,200,255,.35) 56%, transparent 68%);
  background-size: 300% 100%; background-position: calc(50% + var(--sh, 0) * 160%) 0; }
.pc-back::before { content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .5;
  background: linear-gradient(105deg, transparent 35%, rgba(255,42,31,.5) 50%, transparent 65%);
  background-size: 300% 100%; background-position: calc(50% - var(--sh, 0) * 160%) 0; }
.pc-back .big-suit { position: absolute; right: -10px; top: 38%; font-size: 120px; line-height: 1; color: rgba(255,42,31,.14); animation: suitspin 6s linear infinite; pointer-events: none; }
@keyframes suitspin { to { transform: rotateY(360deg); } }
.pc-face, .pc-back {
  position: absolute; inset: 0; border-radius: 10px; transform: translateZ(1.2px); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  overflow: hidden; border: 1px solid #3a3733;
}
.pc-face { background: #f1ede4; color: #0a0a0a; padding: 10px; display: flex; flex-direction: column; }
.pc.red .pc-face .idx { color: var(--red-deep); }
.pc-face .idx { font-weight: 800; font-size: 15px; line-height: 1; display: flex; flex-direction: column; align-items: center; width: 18px; }
.pc-face .idx i { font-style: normal; font-size: 13px; }
.pc-face .idx.bot { position: absolute; right: 10px; bottom: 10px; transform: rotate(180deg); }
.pc-face img { width: 78%; aspect-ratio: 1; object-fit: cover; margin: -6px auto 0; border: 1px solid #0a0a0a; }
.pc-face b { display: block; text-align: center; font-size: 12px; margin-top: 10px; line-height: 1.15; text-transform: uppercase; font-variation-settings: 'wdth' 80; }
.pc-face small { display: block; text-align: center; font-size: 9px; color: #555; }
.pc-back {
  transform: rotateY(180deg) translateZ(1.2px); background: #0a0a0a; color: var(--fg); padding: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 10px;
  background-image: repeating-linear-gradient(45deg, rgba(255,42,31,.08) 0 2px, transparent 2px 10px);
}
.pc-back .k { color: var(--mute-t); }
.pc-back b { font-size: 13px; text-transform: uppercase; line-height: 1.15; }
.pc-back .acts { margin-top: auto; display: flex; gap: 6px; }
.pc-back .play { flex: 1; text-decoration: none; background: var(--red); color: #000; text-align: center; padding: 8px 4px; font-family: var(--mono); font-weight: 700; font-size: inherit; text-transform: uppercase; border: 0; cursor: pointer; }
.pc-back .ficha-btn { background: none; color: var(--fg); border: 1px solid var(--mute); }
.pc-back .ficha-btn:hover { border-color: var(--red); color: var(--red); }
.fc-top { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: end; margin-bottom: 16px; }
.fc-top img { width: 140px; height: 140px; object-fit: cover; border: 1px solid var(--line); background: #111; }
.fc-top h3 { margin: 0 0 6px; font-size: clamp(18px, 3vw, 24px); line-height: 1.1; text-transform: uppercase; }
.fc-top p { margin: 0; color: var(--dim); font-size: 11px; }
.fc-cred { margin: 0 0 20px; border-top: 1px solid var(--line); }
.fc-cred div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fc-cred dt { color: var(--red); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; padding-top: 2px; }
.fc-cred dd { margin: 0; font-size: 12px; line-height: 1.5; }
@media (max-width: 480px) { .fc-top { grid-template-columns: 96px 1fr; } .fc-top img { width: 96px; height: 96px; } .fc-cred div { grid-template-columns: 1fr; gap: 2px; } }
.pc-back .ascii { color: var(--red); font-size: 8px; line-height: 1.1; white-space: pre; margin: 4px 0; }
.pc:not(.front) .pc-face::after { content: ''; position: absolute; inset: 0; background: rgba(10,10,10,.35); transition: background .5s; }
.deck-hint { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 10px; color: var(--mute-t); margin: 0; }
.deck-list { list-style: none; margin: 8px auto 0; padding: 0; max-width: 1240px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--line); }
.deck-list li { border-bottom: 1px solid var(--line); }
.deck-list a { display: grid; grid-template-columns: 36px 1fr auto; gap: 8px; padding: 10px 4px; text-decoration: none; font-size: 11px; align-items: baseline; }
.deck-list a:hover, .deck-list a.on { color: var(--red); }
.deck-list .r { color: var(--mute-t); }
.deck-list .y { color: var(--mute-t); font-size: 10px; }
.more { max-width: 1240px; margin: 18px auto 0; font-size: 11px; }
.more a { color: var(--dim); text-decoration: none; border-bottom: 1px solid var(--mute); }
.more a:hover { color: var(--red); border-color: var(--red); }

/* ---------- REDE ---------- */
.net { position: relative; max-width: 1240px; margin: 0 auto; height: clamp(420px, 56vw, 640px); border: 1px solid var(--line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px;
  background-color: var(--bg);
}
.net::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 30%, var(--bg) 85%); pointer-events: none; }
.net canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.net-info { position: absolute; left: 14px; bottom: 14px; z-index: 2; background: rgba(10,10,10,.9); border: 1px solid var(--line); padding: 10px 14px; max-width: 320px; font-size: 11px; }
.net-info b { display: block; color: var(--red); font-size: 13px; }
.net-info span { color: var(--dim); }
.net-list { list-style: none; padding: 0; max-width: 1240px; margin: 20px auto 0; columns: 3 260px; column-gap: 32px; font-size: 11px; }
.net-list li { break-inside: avoid; display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dotted var(--line); }
.net-list li span { color: var(--mute-t); text-align: right; }
.net-list li.big { color: var(--fg); font-weight: 700; }
.net-list a { text-decoration: none; }
.net-more { max-width: 1240px; margin: 14px auto 0; font-size: 11px; color: var(--dim); }
.net-more summary { cursor: pointer; color: var(--dim); border-bottom: 1px solid var(--mute); display: inline-block; padding: 4px 0; }
.net-more summary:hover { color: var(--red); border-color: var(--red); }
.net-more p { margin: 12px 0 0; line-height: 1.9; color: var(--mute-t); }
.net-list a:hover { color: var(--red); }

/* ---------- HAHAHA! (o vírus) ---------- */
.virus { position: relative; margin-top: clamp(80px, 12vw, 160px); background: var(--red); color: #000; overflow: hidden; }
.flood { position: absolute; inset: 0; font: 800 14px/1 var(--mono); color: rgba(0,0,0,.16); word-break: break-all; overflow: hidden; pointer-events: none; user-select: none; }
.virus-in { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gut); }
.virus .pid { color: #000; }
.virus .path { color: rgba(0,0,0,.9); }
.s-virus { position: relative; color: #000; font-size: clamp(80px, 19vw, 300px); transform: rotate(-4deg); margin: 0 0 24px -6px; text-shadow: none; }
.commits { list-style: none; padding: 0; margin: 0; font-size: 12.5px; }
.commits li { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; padding: 12px 0; border-top: 1px solid rgba(0,0,0,.25); align-items: baseline; }
.commits code { font-family: var(--mono); color: rgba(0,0,0,.9); }
.commits b { font-size: clamp(15px, 1.7vw, 20px); font-variation-settings: 'wdth' 80; }
.commits span { color: rgba(0,0,0,.9); }

/* ---------- CLIPES (cctv) ---------- */
.cams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: 1240px; margin: 0 auto; }
.cam { position: relative; aspect-ratio: 16/10; background: #000; overflow: hidden; border: 1px solid var(--line); }
.cam button { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.cam .shot { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(1) contrast(1.3) brightness(.7); transition: filter .4s, transform .8s var(--ease); }
.cam::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 1px, transparent 1px 3px); }
.cam:hover .shot, .cam button:focus-visible .shot { filter: grayscale(0) contrast(1.1); transform: scale(1.04); }
.cam .hud { position: absolute; inset: 8px 10px; display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; z-index: 2; text-shadow: 0 1px 2px #000; pointer-events: none; }
.cam .hud-top { display: flex; justify-content: space-between; }
.cam .rec { color: var(--red); }
.cam .rec::before { content: '●'; margin-right: 4px; animation: blink 1s steps(2) infinite; }
.cam .hud b { font-size: clamp(13px, 1.4vw, 17px); text-transform: uppercase; display: block; font-variation-settings: 'wdth' 80; }
.cam .hud small { color: #cfcac1; }
.cam iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* ---------- MANIFESTO ---------- */
.manifesto { position: relative; padding: clamp(100px, 16vw, 220px) var(--gut); text-align: center; overflow: hidden; }
.big-a { position: absolute; width: min(80vw, 640px); height: min(80vw, 640px); left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--bg-3);
  stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 2.4s cubic-bezier(.6,0,.2,1) .2s, color 1.2s ease 2s; }
.manifesto.in .big-a { stroke-dashoffset: 0; color: #2a1412; }
.mf-cmd { position: relative; margin: 0 0 clamp(18px, 3vw, 36px); font-size: 12px; letter-spacing: .04em; color: var(--dim); }
.mf-lines { position: relative; margin: 0; font-weight: 800; font-size: clamp(36px, 8vw, 120px); line-height: .95; letter-spacing: -.04em; font-variation-settings: 'wdth' 75; }
.mf-l { display: block; }
/* os nomes riscados a spray: DEUSES e MESTRES saem do sistema */
.mf-n { position: relative; display: inline-block; transition: color .5s ease var(--d, 1s); }
.mf-n::after { content: ''; position: absolute; left: -4%; right: -4%; top: 50%; height: .15em; background: var(--red);
  clip-path: polygon(0 25%, 100% 0, 97% 100%, 3% 80%); transform: scaleX(0) rotate(-3deg); transform-origin: left center;
  transition: transform .45s cubic-bezier(.7,0,.2,1) var(--d, 1s); }
.mf-l:nth-child(2) .mf-n { --d: 1.6s; }
.mf-lines.in .mf-n { color: var(--mute-t); }
.mf-lines.in .mf-n::after { transform: scaleX(1) rotate(-3deg); }
.mf-lines .red { opacity: 0; transform: scale(.97); transition: opacity .5s ease 2.4s, transform .5s ease 2.4s; }
.mf-lines.in .red { opacity: 1; transform: none; }
.s-mf { font-size: clamp(30px, 5vw, 64px); right: 8%; bottom: 14%; transform: rotate(-9deg); opacity: 0; transition: opacity .3s ease 3.1s; }
.manifesto.in .s-mf { opacity: 1; }

/* ---------- CONTATO ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.term { border: 1px solid var(--line); background: #050505; border-radius: 8px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(255,42,31,.25); }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--bg-3); border-bottom: 1px solid var(--line); font-size: 10px; color: var(--dim); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--mute); }
.term-bar i:first-child { background: var(--red); }
.term-bar span { margin-left: auto; }
.term-out { height: 300px; overflow-y: auto; padding: 14px 16px 4px; font-size: 12px; white-space: pre-wrap; scrollbar-width: thin; }
.term-out .u { color: var(--dim); }
.term-out .r { color: var(--red); }
.term-out a { color: var(--red); }
.term-in { display: flex; gap: 8px; padding: 4px 16px 14px; font-size: 12px; align-items: center; }
.term-in .ps { color: var(--red); white-space: nowrap; }
.term-in input { flex: 1; min-width: 0; background: none; border: 0; color: var(--fg); font: 12px var(--mono); outline: none; caret-color: var(--red); }
.links { list-style: none; padding: 0; margin: 0; }
.links a { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: clamp(13px, 1.4vw, 16px); font-weight: 700; transition: padding .3s var(--ease), color .3s; }
.links a span { color: var(--mute-t); font-weight: 400; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; align-self: center; }
.links a:hover { color: var(--red); padding-left: 10px; }
.links .label { display: flex; gap: 14px; align-items: center; padding-top: 22px; font-size: 11px; color: var(--dim); }
.links .label img { width: 64px; filter: invert(1) grayscale(1); }
.links .label p { margin: 0; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 64px var(--gut) 20px; font-size: 10px; color: var(--mute-t); max-width: 1240px; margin: 0 auto; }
.foot b { color: var(--red); }

/* ---------- PALETA ---------- */
.palette { width: min(560px, calc(100vw - 32px)); margin: 14vh auto auto; padding: 0; border: 1px solid var(--mute); background: var(--bg-2); color: var(--fg); border-radius: 10px; box-shadow: 0 40px 120px rgba(0,0,0,.7); }
.palette::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.palette input { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--fg); font: 14px var(--mono); padding: 16px 18px; outline: none; }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.palette li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.palette li span { color: var(--mute-t); font-size: 10px; }
.palette li[aria-selected="true"] { background: var(--red); color: #000; }
.palette li[aria-selected="true"] span { color: rgba(0,0,0,.9); }
.pal-foot { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 10px; color: var(--mute-t); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---------- CURSOR ---------- */
.cursor { position: fixed; left: 0; top: 0; width: 28px; height: 28px; z-index: 250; pointer-events: none; opacity: 0; transition: opacity .3s, width .25s var(--ease), height .25s var(--ease); mix-blend-mode: difference; }
.cursor::before, .cursor::after { content: ''; position: absolute; background: #fff; }
.cursor::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.cursor::after { top: 50%; left: 0; right: 0; height: 1px; }
.cursor.big { width: 56px; height: 56px; }
@media (hover: hover) and (pointer: fine) { .cursor.on { opacity: 1; } }

/* easter egg */
.ha { position: fixed; z-index: 260; font-family: var(--marker); color: var(--red); pointer-events: none; transform: rotate(var(--r)); animation: ha 1.6s var(--ease) forwards; }
@keyframes ha { 0% { opacity: 0; transform: rotate(var(--r)) scale(.3); } 15% { opacity: 1; transform: rotate(var(--r)) scale(1.1); } 100% { opacity: 0; transform: rotate(var(--r)) scale(1) translateY(-40px); } }
body.shake main { animation: shake .5s; }
@keyframes shake { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-3px, 5px); } 80% { transform: translate(4px, -2px); } }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; align-content: start; padding-top: calc(var(--top) + 8px); }
  .hero-face { grid-column: 1; grid-row: 1; height: 54svh; margin: 0 calc(var(--gut) * -1); }
  .hero-copy { grid-row: 2; margin-top: -48px; }
  .net-info { position: relative; left: auto; bottom: auto; max-width: none; border-width: 1px 0 0; }
  .net { height: auto; display: flex; flex-direction: column; }
  .net canvas { position: relative; height: 440px; }
  .who { grid-template-columns: 1fr; }
  .mug { max-width: 360px; }
  .film { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .film figure { scroll-snap-align: start; }
  .reg-grid { --cols: 2; }
  .reg.big { grid-column: span 2; grid-row: span 2; }
  .reg-hint { display: none; }
  .vw-stage { grid-template-columns: 36px minmax(0, 1fr) 36px; }
  .vw-nav { font-size: 28px; }
  .ps-row { grid-template-columns: 52px 1fr; }
  .ps-row > :nth-child(3) { display: none; }
  .ps-row > :nth-child(4) { grid-column: 1 / -1; }
  .ps-h > :nth-child(4) { display: none; }
  .contact { grid-template-columns: 1fr; }
  .cams { grid-template-columns: 1fr 1fr; }
  .commits li { grid-template-columns: 72px 1fr; }
  .commits span { grid-column: 2; }
  .pane-head { grid-template-columns: auto 1fr; }
  .pane-head .path { grid-column: 1 / -1; text-align: left; }
  .clock, .face-tag { display: none; }
  .deck-stage { height: 400px; }
  .deck-ring { top: 42%; }
}
/* celular / tablet (toque): alvos de 44px, rodapé acima da barra do iPhone, sem zoom ao focar campo */
@media (pointer: coarse) {
  :root { --bot: calc(48px + env(safe-area-inset-bottom, 0px)); }
  .status { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .host, .cmdk { min-height: 44px; }
  .cmdk { padding-top: 0; padding-bottom: 0; }
  .key, .reg-f, .vw-x, .play-btn, .tx-ctl button, .dock-bar button, .pc-back .play { min-height: 44px; }
  .dock-bar button { min-width: 44px; }
  .deck-list a { padding: 14px 4px; }
  /* links de texto: área de toque maior sem mexer no visual */
  .more a, .net-list a, .foot a { position: relative; }
  .more a::before, .net-list a::before, .foot a::before { content: ''; position: absolute; inset: -16px -6px; }
  .term-in { min-height: 44px; }
  .term-in input { padding: 12px 0; }
  .term-in input, .palette input { font-size: 16px; }
}
@media (hover: none) {
  .cmdk kbd { display: none; }
  .cmdk span { margin-right: 4px; }
}
@media (max-width: 560px) {
  body { font-size: 13px; }
  .host span { font-size: 11px; }
  .cams { grid-template-columns: 1fr; }
  .stats div { padding: 12px 10px; }
  .json { font-size: 11px; padding: 14px; }
  .status .up { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .mf-n, .mf-n::after, .mf-lines .red, .s-mf, .big-a { transition-delay: 0s !important; }
  .big-a { stroke-dasharray: none; }
}
.reg-credit { max-width: 1240px; margin: 10px auto 0; }

/* ---------- PLAYER (spotify) ---------- */
.play-btn { height: 100%; border: 0; background: #000; color: var(--fg); font: 700 11px var(--mono); padding: 0 14px; cursor: pointer; white-space: nowrap; }
.play-btn:hover, .play-btn[aria-expanded="true"] { background: var(--red); color: #000; }
.dock { position: fixed; right: var(--gut); bottom: calc(var(--bot) + 12px); z-index: 85; width: min(380px, calc(100vw - 2 * var(--gut))); background: #050505; border: 1px solid var(--mute); box-shadow: 0 24px 60px rgba(0,0,0,.6); animation: dockin .35s var(--ease); }
.dock[hidden] { display: none; }
@keyframes dockin { from { opacity: 0; transform: translateY(12px); } }
.dock-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 6px 6px 12px; font-size: 10px; color: var(--dim); border-bottom: 1px solid var(--line); }
.dock-bar button { background: none; border: 0; color: var(--dim); font: 18px var(--mono); cursor: pointer; line-height: 1; padding: 2px 8px; }
.dock-bar button:hover { color: var(--red); }
.dock-body iframe { display: block; width: 100%; height: 352px; border: 0; }
@media (max-width: 560px) { .dock-body iframe { height: 152px; } }

/* ---------- INTERCEPTAÇÕES (letras) ---------- */
.intercept { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pkt { border: 1px solid var(--line); border-left: 2px solid var(--red); background: var(--bg-2); padding: 14px 18px; }
.pkt-h { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 10px; color: var(--mute-t); margin-bottom: 8px; }
.pkt-h b { color: var(--red); font-weight: 400; }
.pkt q { display: block; quotes: none; font-size: clamp(16px, 2vw, 24px); font-weight: 700; line-height: 1.35; letter-spacing: -.01em; font-variation-settings: 'wdth' 85; white-space: pre-line; }
.pkt-f { margin-top: 8px; font-size: 11px; color: var(--dim); }

/* ---------- AGENDA (crontab) ---------- */
.cron { border: 1px solid var(--line); font-size: 12px; }
.cron-row { display: grid; grid-template-columns: 150px minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 16px; padding: 16px; border-bottom: 1px solid var(--line); align-items: center; }
.cron-row:last-child { border: 0; }
.cron-h { color: var(--mute-t); font-size: 10px; letter-spacing: .1em; padding: 10px 16px; }
.cron-row .when { color: var(--red); font-variant-numeric: tabular-nums; }
.cron-row b { font-size: 14px; }
.cron-row .tix { font-size: 11px; color: var(--fg); text-decoration: none; border: 1px solid var(--mute); padding: 6px 10px; white-space: nowrap; }
.cron-row .tix:hover { background: var(--red); border-color: var(--red); color: #000; }
.cron-row.past { opacity: .45; }
.cron-empty { padding: 28px 16px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.cron-empty p { margin: 0; color: var(--dim); }
.cron-empty p span { color: var(--mute-t); }

/* ---------- PRESS KIT ---------- */
.press { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.release { border: 1px solid var(--line); background: var(--bg-2); padding: 20px 22px; }
.release p { margin: 0 0 14px; color: #c9c5bd; font-size: 13px; max-width: 64ch; }
.release p.dim { color: var(--mute-t); font-size: 10px; }
.release b { color: var(--fg); }
.files { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.files a { display: grid; grid-template-columns: 52px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s var(--ease); }
.files a:hover { padding-left: 8px; }
.files .ft { grid-row: 1 / 3; align-self: center; font-size: 10px; color: var(--red); border: 1px solid var(--line); text-align: center; padding: 8px 0; }
.files b { font-size: 14px; }
.files small { grid-column: 2; color: var(--mute-t); font-size: 10px; }
.files em { grid-row: 1 / 3; grid-column: 3; align-self: center; font-style: normal; font-size: 11px; color: var(--dim); }
.files a:hover em, .files a:hover b { color: var(--red); }
@media (max-width: 900px) {
  .press { grid-template-columns: 1fr; }
  .cron-row { grid-template-columns: 1fr auto; }
  .cron-row > :nth-child(3) { grid-column: 1; color: var(--dim); }
  .cron-h { display: none; }
}

/* ---------- TRANSMISSÃO (registros na home) ---------- */
.tx { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 6px; }
.tx-mon { position: relative; aspect-ratio: 16 / 9; max-height: 62vh; width: 100%; overflow: hidden; background: #000; border: 1px solid var(--line); cursor: zoom-in; }
.tx-bg { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(22px) brightness(.35) grayscale(.6); }
.tx-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tx-mon::after { content: ''; position: absolute; inset: 0; pointer-events: none; background:
  repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px),
  radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55)); }
.tx-noise { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; mix-blend-mode: screen; image-rendering: pixelated; pointer-events: none; z-index: 2; }
.tx-mon.roll .tx-img { animation: txroll .5s var(--ease); }
@keyframes txroll { 0% { transform: translateY(-6%); clip-path: inset(0 0 100% 0); filter: contrast(2) grayscale(1) brightness(1.6); } 60% { clip-path: inset(0 0 0 0); } 100% { transform: none; filter: none; } }
.tx-hud { position: absolute; inset: 12px 14px; z-index: 3; display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; text-shadow: 0 1px 3px #000; pointer-events: none; }
.tx-top { display: flex; justify-content: space-between; gap: 12px; }
.tx-top b { color: var(--red); font-weight: 400; }
.live { background: var(--red); color: #000; font-weight: 700; padding: 2px 7px; }
.live::before { content: '● '; animation: blink 1s steps(2) infinite; }
.tx.paused .live { background: var(--mute); }
.tx.paused .live::before { content: '❚❚ '; animation: none; }
.tx-bot { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: end; }
.tx-bot b { font-size: clamp(14px, 1.8vw, 22px); text-transform: uppercase; font-variation-settings: 'wdth' 80; }
.tx-bot small { grid-column: 1; color: #cfcac1; font-size: 10px; }
.tx-open { grid-row: 1 / 3; grid-column: 2; font-size: 10px; border: 1px solid rgba(255,255,255,.4); padding: 4px 8px; opacity: 0; transition: opacity .3s; }
.tx-mon:hover .tx-open, .tx-mon:focus-visible .tx-open { opacity: 1; }
.tx-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); z-index: 3; }
.tx-side { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); background: var(--bg-2); padding: 12px; min-height: 0; max-height: 62vh; }
.tx-side-h { margin: 0; font-size: 10px; color: var(--mute-t); }
.tx-log { list-style: none; margin: 0; padding: 0; font-size: 11px; flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.tx-log li { padding: 4px 0; border-bottom: 1px dotted var(--line); white-space: nowrap; animation: logIn .4s var(--ease); }
.tx-log li:first-child { color: var(--fg); }
.tx-log li:not(:first-child) { color: var(--dim); }
.tx-log time { color: var(--mute-t); }
.tx-log span { color: var(--red); font-size: 10px; }
@keyframes logIn { from { opacity: 0; transform: translateX(-8px); } }
.tx-ctl { display: grid; grid-template-columns: 40px 1fr 40px; gap: 4px; }
.tx-ctl button { background: none; border: 1px solid var(--line); color: var(--fg); font: 12px var(--mono); padding: 9px 0; cursor: pointer; }
.tx-ctl button:hover { border-color: var(--red); color: var(--red); }
.tx-side .key { justify-content: center; font-size: 11px; padding: 10px; }
/* esteira que anda pro lado */
.tx-rail { grid-column: 1 / -1; display: flex; overflow: hidden; border: 1px solid var(--line); background: #050505;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tx-track { display: flex; gap: 4px; padding: 6px 2px; flex: none; animation: rail 70s linear infinite; }
.tx-rail:hover .tx-track, .tx.paused .tx-track { animation-play-state: paused; }
@keyframes rail { to { transform: translateX(-100%); } }
.tx-rail button { position: relative; flex: none; width: 112px; height: 72px; padding: 0; border: 1px solid transparent; background: #111; cursor: pointer; overflow: hidden; }
.tx-rail img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.55); transition: filter .25s; }
.tx-rail button:hover img, .tx-rail button.on img { filter: none; }
.tx-rail button.on { border-color: var(--red); }
.tx-rail button span { position: absolute; left: 4px; bottom: 2px; font-size: 8px; color: var(--fg); text-shadow: 0 1px 2px #000; }
@media (max-width: 900px) {
  .tx { grid-template-columns: 1fr; }
  .tx-mon { aspect-ratio: 4 / 3; max-height: 70vh; }
  .tx-side { max-height: none; }
  .tx-side-h, .tx-log, .tx-bot small, .tx-open { display: none; }
  .tx-bot b { font-size: 13px; }
  .tx-rail button { width: 88px; height: 58px; }
}

/* ---------- registros.html ---------- */
.arq-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; padding: 12px var(--gut); background: rgba(10,10,10,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); font-size: 12px; }
.arq-top a { text-decoration: none; color: var(--dim); }
.arq-top a:hover { color: var(--red); }
.arq-top .host { color: var(--fg); }
.arq-top .back { margin-left: auto; }
body.arq { padding-bottom: 0; }
body.arq .pane { padding-top: clamp(32px, 6vw, 72px); }


/* ---------- DUPLA IDENTIDADE: nome clicável ---------- */
.name .lado { all: unset; box-sizing: border-box; position: relative; display: flex; align-items: center; cursor: pointer; font-size: clamp(48px, 8.6vw, 148px); font-variation-settings: 'wdth' 75; transition: transform .35s var(--ease); }
.name .lado:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.name .lado::after { content: attr(data-hint); position: absolute; left: 100%; top: 50%; margin-left: .35em; transform: translate(-6px, -50%); white-space: nowrap;
  font: 400 11px var(--mono); letter-spacing: 0; text-transform: none; color: var(--red); -webkit-text-stroke: 0; opacity: 0; transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.name .lado:hover::after, .name .lado:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.name .lado:hover { transform: translateX(.06em); }
.name .n1:hover > span { color: var(--red); }
.name .n2:hover > span { -webkit-text-stroke-color: var(--red); }
.name .lado:hover .glyph { animation: glyphspin .7s var(--ease); }
@keyframes glyphspin { 50% { transform: rotateY(180deg) scale(1.1); } }
.name .n2 > span { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
@media (hover: none) { .name .lado::after { opacity: 1; transform: translate(0, -50%); font-size: 9px; } }
@media (max-width: 560px) { .name .lado::after { display: none; } }

/* rótulos das duas metades do rosto */
.face-side { position: absolute; top: 6%; z-index: 2; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; pointer-events: none; transition: opacity .4s; }
.face-side svg { width: 14px; height: 14px; color: var(--red); }
.face-side small { display: block; width: 100%; font-weight: 400; color: var(--dim); letter-spacing: 0; font-size: 10px; }
.face-side { flex-wrap: wrap; max-width: 140px; }
.fs-m { left: 2%; }
.fs-c { right: 2%; justify-content: flex-end; text-align: right; }
.fs-c small { text-align: right; }

/* ---------- JANELAS matheus.exe / coringa.exe ---------- */
.mode { width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 1px solid var(--mute); background: #070707; color: var(--fg); border-radius: 8px; overflow: auto; box-shadow: 0 40px 120px rgba(0,0,0,.8); }
.mode[open] { animation: modein .45s var(--ease); }
@keyframes modein { from { opacity: 0; transform: translateY(16px) scale(.98); clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.mode::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(5px); }
.mode-bar { position: sticky; top: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg-3); border-bottom: 1px solid var(--line); font-size: 11px; color: var(--dim); }
.mode-bar svg { width: 16px; height: 16px; color: var(--red); }
.mode-x { margin-left: auto; background: none; border: 0; color: var(--dim); font: 20px var(--mono); cursor: pointer; line-height: 1; padding: 0 6px; }
.mode-x:hover { color: var(--red); }
.mode-body { padding: clamp(18px, 4vw, 30px); }
.mode-lead { margin: 0 0 22px; font-size: clamp(15px, 2vw, 19px); line-height: 1.45; font-weight: 700; letter-spacing: -.01em; font-variation-settings: 'wdth' 85; }
.mode-lead b { color: var(--red); }
.svc { list-style: none; counter-reset: s; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--line); }
.svc li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.svc li::before { content: counter(s, decimal-leading-zero); grid-row: 1 / 3; color: var(--red); font-size: 11px; padding-top: 3px; }
.svc b { font-size: 14px; }
.svc span { color: var(--dim); font-size: 12px; }
.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 3vw, 36px) clamp(24px, 4vw, 48px); }
.hub-g ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hub-g .mode-h { margin-top: 0; }
.hub-a { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--fg); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: padding .3s var(--ease), color .3s; }
.hub-a b { font-size: clamp(14px, 1.5vw, 16px); }
.hub-a span { grid-column: 1; color: var(--dim); font-size: 11px; line-height: 1.4; }
.hub-a i { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; color: var(--red); font-size: 15px; }
.hub-a:hover, .hub-a:focus-visible { color: var(--red); padding-left: 10px; }
.hub-a.hot b::before { content: "▸ "; color: var(--red); }
.mode-h { margin: 26px 0 10px; font: 400 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.mode-h::before { content: "// "; color: var(--mute-t); }
.mode-lead + .mode-h { margin-top: 0; }
.trail { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line); }
.trail li { display: grid; grid-template-columns: 74px 1fr; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.trail time { color: var(--red); font-size: 11px; padding-top: 2px; line-height: 1.3; }
.trail span { color: var(--dim); font-size: 12px; line-height: 1.5; }
.trail span b { color: var(--fg); font-size: 13px; }
.mode-note { margin: 0 0 6px; color: var(--dim); font-size: 12px; line-height: 1.6; }
.mode-note b { color: var(--fg); }
@media (max-width: 480px) { .trail li { grid-template-columns: 1fr; row-gap: 2px; } }
.obra { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.obra a { display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; padding: 12px; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, background .2s; }
.obra a:hover { border-color: var(--red); background: rgba(255,42,31,.06); }
.obra i { grid-row: 1 / 3; font-style: normal; color: var(--red); font-size: 16px; }
.obra b { font-size: 13px; }
.obra span { color: var(--dim); font-size: 10px; }
.mode-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.mode-cta .key { font-size: 11px; }
.mode-cta button.key { background: none; font-family: var(--mono); cursor: pointer; }
.mode-foot { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 10px; color: var(--mute-t); }
.mode-foot svg { width: 13px; height: 13px; color: var(--red); }
@media (max-width: 560px) { .obra { grid-template-columns: 1fr; } }

/* ---------- SELETOR DE IDIOMA (PT · EN · ES) ---------- */
.lang { display: flex; align-items: center; gap: 2px; margin-left: auto; font-size: 11px; }
.lang a { display: inline-flex; align-items: center; justify-content: center; color: var(--dim); text-decoration: none; padding: 5px 7px; border: 1px solid transparent; border-radius: 6px; letter-spacing: .06em; }
.lang a:hover { color: var(--fg); }
.lang a[aria-current="true"] { color: var(--red); border-color: var(--line); }
.topbar .lang + .cmdk, .arq-top .lang + .back { margin-left: 0; }
@media (pointer: coarse) { .lang a { min-height: 44px; min-width: 36px; } }
@media (max-width: 560px) {
  .topbar { gap: 8px; }
  .lang a { padding: 5px 5px; }
  /* celular: o botão de comandos vira só a barra "/" pra caber ao lado do seletor de idioma */
  .cmdk span { font-size: 0; margin-right: 0; }
  .cmdk span::before { content: '/'; font-size: 13px; }
  .cmdk { min-width: 36px; justify-content: center; padding-left: 8px; }
}
