/* ============================================
   telinha — o site é uma sala de controle de TV.
   Os canais são os temas do app (channels.css, gerado do src/theme.zig);
   o canal 00 é este aqui: as cores dos olhos do husky.
   Leve de propósito: nada de blur nem filtro, o que anima é transform e
   opacity, e o que sai da tela para (home.js).
   ============================================ */

@font-face { font-family: 'Big Shoulders Display'; font-weight: 100 900; font-display: swap; src: url(fonts/big-shoulders-display.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url(fonts/barlow-400.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url(fonts/barlow-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-600.woff2) format('woff2'); }
@font-face { font-family: 'Fira Code'; font-weight: 300 700; font-display: swap;
  src: url(fonts/fira-code-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fira Code'; font-weight: 300 700; font-display: swap;
  src: url(fonts/fira-code-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==================== CANAL 00 ==================== */
:root, [data-theme="husky"] {
  --bg: #07090d; --bg-2: #0c1016; --bg-3: #11161e; --bg-4: #181f2a;
  --line: #1f2733; --line-2: #333e4e;
  --text: #d9e1ea; --text-2: #97a5b6; --text-3: #8391a3; --head: #f4f7fb;
  --accent: #6fd3ff; --accent-text: #6fd3ff; --on-accent: #04131b; --accent-2: #ffb648;
  --live: #ff3d52; --ok: #34d399; --fur: #2a3546;
  --radius: 4px; color-scheme: dark;
  --font-body: 'Barlow', system-ui, sans-serif;
  --font-label: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --body-size: 1em;
}
:root {
  --font-display: 'Big Shoulders Display', 'Barlow Condensed', Impact, sans-serif;
  --font-mono: 'Fira Code', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --head-h: 48px;
  --pale: #ece8f2;
}

* { box-sizing: border-box; }
html { font-size: 15px; scroll-padding-top: calc(var(--head-h) + 20px); -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
  background: var(--bg); color: var(--text);
  font: 400 1rem/1.6 var(--font-body); font-size: calc(1rem * var(--body-size, 1));
}
[data-theme] { color: var(--text); }
::selection { background: var(--accent); color: var(--on-accent); }
img { max-width: 100%; height: auto; }
a { color: var(--accent-text); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: fixed; top: 8px; left: 8px; z-index: 200; width: auto; height: auto; clip: auto; padding: 8px 14px; background: var(--accent); color: var(--on-accent); }
kbd { font: 500 .82em var(--font-mono); padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 3px; color: var(--head); background: var(--bg-3); white-space: nowrap; }
code { font-family: var(--font-mono); font-size: .86em; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: -.2em; }
.i-fill { width: 1.1em; height: 1.1em; fill: currentColor; stroke: none; flex-shrink: 0; vertical-align: -.18em; }

.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 300; background: var(--live); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* ==================== CABEÇALHO ==================== */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--head-h); background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { height: 100%; max-width: 1560px; margin: 0 auto; padding: 0 clamp(16px, 2.4vw, 36px); display: flex; align-items: center; gap: 22px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--head); font: 900 1.5rem/1 var(--font-display); letter-spacing: .01em; flex-shrink: 0; }
.logo img { width: 24px; height: 24px; display: block; }
.main-nav { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { position: relative; padding: 5px 10px; white-space: nowrap; text-decoration: none; color: var(--text-2); font: 600 .95rem var(--font-label); letter-spacing: .05em; text-transform: uppercase; }
.main-nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.main-nav a:hover { color: var(--head); }
.main-nav a:hover::after, .main-nav a.active::after { transform: none; }
.main-nav a.active { color: var(--head); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.search-btn, .icon-btn, .remote { height: 30px; border: 1px solid var(--line-2); border-radius: var(--radius); background: transparent; color: var(--text-2); }
.search-btn { display: inline-flex; align-items: center; gap: 9px; padding: 0 9px; cursor: pointer; font: 600 .86rem var(--font-label); letter-spacing: .04em; text-transform: uppercase; transition: color .15s, border-color .15s; }
.search-btn:hover, .icon-btn:hover { color: var(--head); border-color: var(--accent); }
.search-btn kbd { font-size: .68rem; padding: 0 4px; border-bottom-width: 1px; color: var(--text-3); background: transparent; }
.search-btn .i { width: 14px; height: 14px; }
.icon-btn { width: 30px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; transition: color .15s, border-color .15s; }
.icon-btn .i, .icon-btn .i-fill { width: 16px; height: 16px; }
.lang-switch { width: auto; padding: 0 8px; font: 600 .82rem var(--font-label); letter-spacing: .08em; }
.remote { display: inline-flex; align-items: center; overflow: hidden; }
.ch-btn { width: 24px; height: 100%; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--text-2); cursor: pointer; transition: background .12s, color .12s; }
.ch-btn:hover { background: var(--accent); color: var(--on-accent); }
.ch-btn .i { width: 14px; height: 14px; stroke-width: 2.4; }
.ch-now { min-width: 46px; padding: 0 2px; text-align: center; font: 500 .72rem var(--font-mono); color: var(--accent-text); white-space: nowrap; }
.menu-btn { display: none; }
.menu-btn .shut, .menu-btn[aria-expanded="true"] .open { display: none; }
.menu-btn[aria-expanded="true"] .shut { display: inline; }
.mobile-nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 120; display: flex; flex-direction: column; padding: 6px 16px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 11px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font: 600 1.05rem var(--font-label); letter-spacing: .04em; text-transform: uppercase; }
.mobile-nav a.active { color: var(--accent-text); }
.mobile-nav .i { width: 13px; height: 13px; margin-left: 4px; }

/* troca de canal: chiado e o número no canto, como numa TV */
.zap { position: fixed; inset: 0; z-index: 900; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; opacity: 0; }
.osd { position: fixed; top: calc(var(--head-h) + 46px); right: clamp(16px, 2.4vw, 36px); z-index: 901; pointer-events: none; text-align: right; font: 900 clamp(2.2rem, 5vw, 3.6rem)/1 var(--font-display); color: var(--ok); opacity: 0; }
.osd small { display: block; margin-top: 3px; font: 500 .82rem var(--font-mono); color: var(--head); }
.osd.show { animation: osd 1.7s steps(1) both; }
@keyframes osd { 0%, 88% { opacity: 1; } 94% { opacity: .35; } 100% { opacity: 0; } }

/* ==================== PEÇAS COMUNS ==================== */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 2.4vw, 36px); }
.home { flex: 1; }
.btn { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); color: var(--head); cursor: pointer; text-decoration: none; font: 600 1.04rem var(--font-label); letter-spacing: .03em; transition: transform .18s cubic-bezier(.2, .8, .2, 1), border-color .15s, background .15s, color .15s; }
.btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn small { font-weight: 600; font-size: .8em; opacity: .7; }
.btn .i, .btn .i-fill { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dl-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.dl-note { margin-top: 11px; font-size: .84rem; color: var(--text-3); }
.dl-note a { color: var(--text-2); }
.chip { padding: 5px 11px; border: 1px solid var(--line-2); border-radius: var(--radius); background: transparent; color: var(--text-2); cursor: pointer; font: 500 .8rem var(--font-mono); transition: color .15s, border-color .15s, background .15s; }
.chip small { font: 400 .95em var(--font-body); opacity: .8; margin-left: 4px; }
.chip:hover { color: var(--head); border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.dot.live { background: var(--live); }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); }
.bars i { display: block; height: 100%; }
.bars i:nth-child(1) { background: #c0c0c0; } .bars i:nth-child(2) { background: #c0c000; } .bars i:nth-child(3) { background: #00c0c0; } .bars i:nth-child(4) { background: #00c000; }
.bars i:nth-child(5) { background: #c000c0; } .bars i:nth-child(6) { background: #c00000; } .bars i:nth-child(7) { background: #0000c0; }

/* surgir ao rolar (só com JS: sem ele, tudo já aparece) */
html.js:not(.calm) .rv { opacity: 0; transform: translateY(16px); transition: opacity .55s, transform .65s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
html.js:not(.calm) .rv.on { opacity: 1; transform: none; }
/* ligar o tubo: a tela nasce como uma linha e abre; a assinatura do site */
html.js:not(.calm) .power { opacity: 0; transform: scale(1, .006); }
html.js:not(.calm) .power.on { opacity: 1; transform: none; animation: tube .62s var(--d, 0s) cubic-bezier(.2, .9, .25, 1) backwards; }
@keyframes tube { 0% { opacity: 0; transform: scale(.3, .006); } 22% { opacity: 1; transform: scale(1, .012); } 100% { opacity: 1; transform: none; } }

/* ==================== HUSKY ==================== */
.husky { position: absolute; display: block; padding: 0; border: 0; background: none; cursor: pointer; outline: 0; -webkit-tap-highlight-color: transparent; }
.husky svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.husky-head { transform-origin: 50% 90%; transition: transform .5s cubic-bezier(.34, 1.4, .5, 1); }
.h-fur { fill: var(--fur); }
.h-pale { fill: var(--pale); }
.h-line { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.h-v { fill: none; stroke: var(--fur); stroke-width: 3; stroke-linecap: round; }
.h-sock { fill: #120d19; stroke: #231b33; stroke-width: 1.8; }
.h-rim { fill: #231b33; }
.h-muzzle { fill: none; stroke: #cfc8da; stroke-width: 2; stroke-linecap: round; }
.h-nose { fill: #14101c; stroke: var(--accent); stroke-width: 1.6; }
.h-mouth { fill: none; stroke: #231b33; stroke-width: 2.6; stroke-linecap: round; }
.h-toes { fill: none; stroke: #231b33; stroke-width: 2.6; stroke-linecap: round; }
.h-paw { stroke: #231b33; stroke-width: 2; }
.h-closed { fill: none; stroke: #231b33; stroke-width: 3.2; stroke-linecap: round; opacity: 0; }
.h-eyes, .h-ear { transform-box: fill-box; }
.h-eyes { transform-origin: 50% 50%; }
.h-ear-l { transform-origin: 70% 100%; }
.h-ear-r { transform-origin: 30% 100%; }
.asleep .h-eyes { opacity: 0; }
.asleep .h-closed { opacity: 1; }
.asleep .husky-head { transform: translateY(14%); }
.asleep:hover .h-eyes { opacity: 1; }
.asleep:hover .h-closed { opacity: 0; }
.asleep:hover .husky-head { transform: none; }
.heart { position: absolute; z-index: 6; pointer-events: none; font-size: 22px; line-height: 1; color: var(--live); }

/* ==================== TOPO ==================== */
.hero { position: relative; padding: 0 clamp(16px, 2.4vw, 36px) 26px; max-width: 1760px; width: 100%; margin: 0 auto; overflow: clip; }
.hero-strip { display: flex; align-items: center; gap: 18px; height: 36px; font: 500 .74rem var(--font-mono); color: var(--text-3); white-space: nowrap; }
.onair { display: inline-flex; align-items: center; gap: 7px; padding: 2px 8px 2px 7px; background: var(--live); color: #fff; font-weight: 700; letter-spacing: .08em; border-radius: 2px; }
.onair i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: tally 1.6s steps(2, jump-none) infinite; }
@keyframes tally { 50% { opacity: .4; } }
.tc { color: var(--head); font-variant-numeric: tabular-nums; }
.strip-end { margin-left: auto; color: var(--accent-text); }

.mega { position: relative; z-index: 0; margin: 2px 0 0 -.012em; font: 900 min(23vw, 40vh)/.8 var(--font-display); letter-spacing: -.012em; color: var(--head); user-select: none; }
.mega > span { display: inline-flex; }
.mega span span { display: inline-block; }
html.js:not(.calm) .mega span span { animation: rollIn .7s cubic-bezier(.2, .9, .25, 1) backwards; }
.mega span span:nth-child(2) { animation-delay: .05s !important; } .mega span span:nth-child(3) { animation-delay: .1s !important; } .mega span span:nth-child(4) { animation-delay: .15s !important; }
.mega span span:nth-child(5) { animation-delay: .2s !important; } .mega span span:nth-child(6) { animation-delay: .25s !important; } .mega span span:nth-child(7) { animation-delay: .3s !important; }
@keyframes rollIn { 0% { opacity: 0; transform: translateY(38%) scaleY(.5); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
/* o pingo do i é a luz de "no ar" */
.mega-i { position: relative; }
.mega-i b { position: absolute; left: 50%; top: .012em; width: .135em; height: .135em; margin-left: -.0675em; border-radius: 50%; background: var(--live); animation: tally 2.2s steps(2, jump-none) infinite; }
.mega-ghost { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; color: var(--accent); }
.mega-ghost.two { color: var(--accent-2); }

.hero-grid { position: relative; display: grid; grid-template-columns: minmax(290px, 1fr) min(60%, max(520px, calc(96vh - 150px + 2vw))); gap: clamp(26px, 4vw, 70px); align-items: start; margin-top: clamp(-120px, -7.6vw, -40px); }
.hero-copy { position: relative; z-index: 2; padding-top: clamp(66px, 9vw, 150px); }
.hero-sub { margin: 0; max-width: 34em; font-size: 1.08rem; line-height: 1.6; color: var(--text); }
.hero-sub b { color: var(--head); font-weight: 600; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: clamp(22px, 3.2vh, 38px) 0 0; padding: clamp(14px, 2vh, 20px) 0 0; border-top: 1px solid var(--line); max-width: 34em; }
.hero-stats dt { font: 800 1.1rem/1 var(--font-display); color: var(--text-2); }
.hero-stats dt b { font-weight: 900; font-size: 2.8rem; color: var(--accent-text); letter-spacing: -.01em; margin-right: 2px; }
.hero-stats div:nth-child(2) dt b { color: var(--accent-2); }
.hero-stats dd { margin: 6px 0 0; font-size: .82rem; line-height: 1.35; color: var(--text-2); }

/* ==================== A PAREDE DE TELAS ==================== */
.wall { --pad: clamp(50px, 6.2vw, 96px); --hw: clamp(100px, 12.5vw, 190px); position: relative; z-index: 1; min-width: 0; padding-top: var(--pad); }
/* as patinhas (a 90% da altura do desenho) ficam em cima da borda da tela: a cabeça atrás, as patas na frente */
.wall .husky { left: 21%; top: calc(var(--pad) - var(--hw) * .747); width: var(--hw); aspect-ratio: 176 / 146; }
.wall .husky-head, .invite-stage .husky-head { z-index: 0; }
.wall .husky-paws, .invite-stage .husky-paws { z-index: 3; }
.wall-stage { position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 11.45; background: var(--bg); }
.wall-stage noscript img { width: 100%; display: block; }
.scene { position: absolute; left: 0; top: 0; width: 960px; height: 540px; overflow: hidden; contain: strict; transform-origin: 0 0; cursor: pointer; background: var(--bg-2); color: var(--text); outline: 0; border-radius: 3px; box-shadow: 0 0 0 2px var(--line); }
.scene:focus-visible { box-shadow: 0 0 0 4px var(--accent-2); }
.scene.pgm { cursor: crosshair; box-shadow: 0 0 0 2px var(--live); }
.scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, .05) 2px 4px); }
.scene:not(.pgm):hover { box-shadow: 0 0 0 4px var(--accent); }
.sc-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: var(--bg-4); font: 600 15px var(--font-mono); color: var(--text-2); }
.sc-bar i { width: 13px; height: 13px; border-radius: 50%; background: var(--line-2); }
.sc-bar i:nth-child(1) { background: #ff5f57; } .sc-bar i:nth-child(2) { background: #febc2e; } .sc-bar i:nth-child(3) { background: #28c840; }
.sc-bar b { margin-left: 10px; font-weight: 600; }
.sc-main { display: flex; height: 470px; }
.sc-tree { width: 190px; margin: 0; padding: 14px 0; list-style: none; flex-shrink: 0; background: var(--bg-3); font: 400 15px/28px var(--font-mono); color: var(--text-2); }
.sc-tree li { padding: 0 14px 0 34px; white-space: nowrap; }
.sc-tree .dir { padding-left: 14px; color: var(--accent-text); } .sc-tree .sub { padding-left: 24px; }
.sc-tree .on { background: var(--bg-4); color: var(--head); }
.sc-code { position: relative; flex: 1; min-width: 0; overflow: hidden; background: var(--bg-2); }
.sc-code pre { margin: 0; padding: 14px 0; font: 400 17px/27px var(--font-mono); white-space: pre; color: var(--text); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.sc-code code { font-size: inherit; }
.ln { display: block; height: 27px; } .ln i { display: inline-block; width: 58px; margin-right: 16px; text-align: right; font-style: normal; color: var(--text-3); opacity: .7; }
.sc-foot { display: flex; gap: 22px; height: 30px; padding: 0 16px; align-items: center; background: var(--accent); color: var(--on-accent); font: 500 14px var(--font-mono); }
.s-game { background: #071019; }
.s-game canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.s-test { background: #000; }
.s-test .bars { height: 67%; } .s-test .castle { display: grid; grid-template-columns: repeat(7, 1fr); height: 8%; } .s-test .castle i { display: block; }
.castle i:nth-child(1) { background: #0000c0; } .castle i:nth-child(2) { background: #131313; } .castle i:nth-child(3) { background: #c000c0; } .castle i:nth-child(4) { background: #131313; } .castle i:nth-child(5) { background: #00c0c0; } .castle i:nth-child(6) { background: #131313; } .castle i:nth-child(7) { background: #c0c0c0; }
.pluge { display: grid; grid-template-columns: 5fr 5fr 5fr 8fr 5fr; height: 25%; } .pluge i { display: block; }
.pluge i:nth-child(1) { background: #00214c; } .pluge i:nth-child(2) { background: #fff; } .pluge i:nth-child(3) { background: #32006a; } .pluge i:nth-child(4) { background: #131313; } .pluge i:nth-child(5) { background: #090909; }
.dial { position: absolute; left: 50%; top: 50%; width: 270px; height: 270px; margin: -135px 0 0 -135px; border-radius: 50%; background: #0c0c0c; border: 5px solid #e8e8e8; color: #e8e8e8; text-align: center; overflow: hidden; }
.dial b { position: absolute; left: 0; right: 0; top: 66px; font: 900 62px/1 var(--font-display); color: #fff; }
.dial span { position: absolute; left: 0; right: 0; bottom: 56px; font: 500 16px var(--font-mono); }
.dial .cross { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #555; }
.dial .hand { position: absolute; left: 50%; top: 50%; width: 3px; height: 135px; margin-left: -1.5px; background: var(--live); transform-origin: 50% 0; animation: hand 4s linear infinite; }
@keyframes hand { to { transform: rotate(360deg); } }
.s-term { background: #06080c; color: #d6dde6; }
.s-term .sc-bar { background: #10151c; color: #93a1b1; }
.s-term pre { margin: 0; padding: 18px 22px; font: 400 19px/33px var(--font-mono); white-space: pre-wrap; }
.s-term pre span { display: block; }
.t-cmd::before { content: "$ "; color: #34d399; } .t-cmd { color: #fff; }
.t-ok::before { content: "[ ok ] "; color: #6fd3ff; } .t-ok { color: #a7b3c0; }
.t-in::before { content: "  →  "; color: #ffb648; } .t-in { color: #d7c9ac; }
.t-live::before { content: "[LIVE] "; color: #ff3d52; } .t-live { color: #ffb3bb; }
.s-term .caret { display: inline-block; width: 11px; height: 21px; vertical-align: -4px; background: #6fd3ff; }
.s-room { display: flex; background: var(--bg-3); font-size: 18px; }
.rm-side { width: 280px; padding: 20px 16px; background: var(--bg-2); flex-shrink: 0; }
.rm-title { margin-bottom: 14px; font: 600 14px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.rm-user { display: flex; align-items: center; gap: 12px; padding: 8px 6px; }
.rm-user i { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font: 700 18px var(--font-body); }
.rm-user b { font-weight: 600; }
.rm-user em { margin-left: auto; padding: 1px 7px; border-radius: 3px; background: var(--live); color: #fff; font: 700 12px var(--font-mono); }
.rm-user em.bot { background: var(--accent); color: var(--on-accent); }
.rm-user.speak i::after { content: ""; position: absolute; inset: -5px; border: 3px solid #22c55e; border-radius: 50%; animation: speak 1.3s steps(5) infinite alternate; }
.rm-user.two i::after { animation-delay: .5s; animation-duration: .9s; }
@keyframes speak { from { opacity: .15; } to { opacity: 1; } }
.rm-main { flex: 1; min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.rm-card { padding: 14px 18px; border-left: 4px solid var(--accent); border-radius: 4px; background: var(--bg-4); }
.rm-card small { display: block; font: 700 13px var(--font-mono); letter-spacing: .06em; color: var(--accent-text); }
.rm-card strong { display: block; margin-top: 4px; color: var(--head); font-weight: 600; font-size: 22px; }
.rm-card span { color: var(--text-2); font-size: 15px; }
.rm-bar { height: 6px; margin: 11px 0; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.rm-bar i { display: block; height: 100%; background: var(--ok); transform-origin: 0 50%; animation: prog 48s linear infinite; }
@keyframes prog { from { transform: scaleX(.05); } to { transform: scaleX(1); } }
.rm-btns { display: flex; gap: 8px; } .rm-btns u { padding: 2px 13px; border-radius: 4px; background: var(--line-2); color: var(--head); text-decoration: none; font-size: 15px; }
.rm-chat { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 9px; }
.rm-msg { line-height: 1.3; }
.rm-msg b { font-weight: 600; margin-right: 9px; }
.rm-msg u { display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 9px; background: var(--bg-4); text-decoration: none; font-size: 14px; color: var(--head); }
.rm-input { padding: 11px 16px; border-radius: 6px; background: var(--bg-4); color: var(--text-3); font-size: 16px; }

.ink { position: absolute; left: 0; top: 0; z-index: 30; touch-action: pan-y; cursor: crosshair; }
.pgm-hud { position: absolute; left: 0; top: 0; right: 0; z-index: 31; display: flex; align-items: center; justify-content: flex-end; gap: 5px; padding: 9px 11px; pointer-events: none; font: 500 .72rem var(--font-mono); color: #fff; }
.pgm-hud > * { padding: 2px 6px; background: rgba(0, 0, 0, .72); border-radius: 2px; white-space: nowrap; }
.pgm-hud b { font-weight: 600; }
.pgm-hud .live-tag { background: var(--live); color: #fff; font-weight: 700; letter-spacing: .08em; }
.hud-right b { color: #7ef0b3; }
.pen-chip { position: absolute; left: 0; top: 0; z-index: 32; padding: 1px 7px; border-radius: 2px 9px 9px 9px; background: var(--accent-2); color: #171004; pointer-events: none; font: 600 .78rem var(--font-label); opacity: 0; }
.ink-hint { position: absolute; z-index: 31; right: 12px; pointer-events: none; padding: 3px 9px; background: rgba(0, 0, 0, .72); color: #fff; border-radius: 2px; font: 500 .72rem var(--font-mono); opacity: 0; transition: opacity .4s; }
.ink-hint.show { opacity: 1; }
.cut-flash { position: absolute; left: 0; top: 0; z-index: 29; background: #fff; pointer-events: none; opacity: 0; }
.wall-note { margin: 9px 0 0; font-size: .76rem; color: var(--text-3); text-align: right; }

/* ==================== LETREIRO ==================== */
.ticker { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); }
.ticker-run { display: inline-flex; white-space: nowrap; animation: crawl 70s linear infinite; font: 600 .98rem/36px var(--font-label); letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); }
.ticker-run span { padding: 0 22px; position: relative; }
.ticker-run span::after { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--accent-2); }
@keyframes crawl { to { transform: translate3d(-50%, 0, 0); } }

/* ==================== SEÇÕES ==================== */
.sec { padding: clamp(84px, 13vh, 150px) 0 0; content-visibility: auto; contain-intrinsic-size: auto 720px; }
.sec-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28em); gap: 8px 40px; align-items: end; margin-bottom: clamp(30px, 5vh, 50px); padding-top: 13px; border-top: 1px solid var(--line-2); }
.sec-head::before { content: ""; position: absolute; left: 0; top: -2px; width: 44px; height: 3px; background: var(--live); }
html.js:not(.calm) .sec-head::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
html.js:not(.calm) .sec-head.on::before { transform: none; }
html.js:not(.calm) .sec-head > * { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1); }
html.js:not(.calm) .sec-head.on > * { opacity: 1; transform: none; }
html.js:not(.calm) .sec-head.on > h2 { transition-delay: .06s; }
html.js:not(.calm) .sec-head.on > p { transition-delay: .14s; }
.sec-ch { grid-column: 1 / -1; font: 600 .86rem var(--font-label); letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); }
.sec-head h2 { margin: 0; font: 800 clamp(2.5rem, 5.4vw, 4.4rem)/.96 var(--font-display); color: var(--head); letter-spacing: -.003em; }
.sec-head p { margin: 0; color: var(--text-2); font-size: .98rem; line-height: 1.5; }
.foot { max-width: 56em; margin: 18px 0 0; font-size: .84rem; color: var(--text-3); line-height: 1.55; }

/* laboratório de atraso */
.lab { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mon { position: relative; margin: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.mon figcaption { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 11px; border-bottom: 1px solid var(--line); font: 500 .75rem var(--font-mono); color: var(--text-2); }
.mon figcaption b { margin-left: auto; color: var(--accent-2); font-weight: 600; }
.mon canvas { display: block; width: 100%; aspect-ratio: 16 / 8.2; touch-action: pan-y; }
.mon canvas[data-lab-a] { cursor: crosshair; }
.mon-tip { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font: 500 .74rem var(--font-mono); color: var(--text-3); pointer-events: none; transition: opacity .3s; }
.lab.touched .mon-tip { opacity: 0; }
.lab-ctl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lab-label { margin-right: 8px; font: 600 .86rem var(--font-label); letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); }
.wire { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 36px 0 0; padding: 20px 0 0; list-style: none; }
.wire::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 1px; background: var(--line-2); }
.wire li { position: relative; font-size: .86rem; color: var(--text-2); line-height: 1.4; }
.wire li::before { content: ""; position: absolute; left: 0; top: -21px; width: 7px; height: 7px; background: var(--line-2); transition: background .2s; }
.wire li.hot::before { background: var(--accent-2); }
.wire b { display: block; margin-bottom: 2px; font: 600 1.06rem var(--font-label); letter-spacing: .03em; color: var(--head); transition: color .2s; }
.wire li.hot b { color: var(--accent-2); }
.wire-dot { position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); pointer-events: none; }

/* novidades */
.news-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tag-badge { padding: 2px 9px; background: var(--live); color: #fff; border-radius: 2px; font: 700 .78rem var(--font-mono); }
.news-head a { margin-left: auto; font: 600 .98rem var(--font-label); letter-spacing: .03em; color: var(--accent-text); text-decoration: none; }
.news-head a:hover { text-decoration: underline; }
.news-body ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 12px 40px; }
.news-body li { max-width: 62em; margin: 0; padding-left: 15px; border-left: 2px solid var(--line-2); font-size: 1.05rem; line-height: 1.55; color: var(--text); }
.news-body li strong { color: var(--head); font-weight: 600; }

/* espelho (rundown): a folha do programa */
.rundown { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.rundown li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 15em) minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 19px 0; border-top: 1px solid var(--line); }
.rundown li::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .38s cubic-bezier(.2, .8, .2, 1); }
.rundown li:hover::before { transform: none; }
.rundown .no { font: 500 .8rem var(--font-mono); color: var(--text-3); transition: color .15s; }
.rundown li:hover .no { color: var(--live); }
.rundown h3 { margin: 0; font: 800 1.9rem/1 var(--font-display); color: var(--head); }
.rundown p { margin: 0; max-width: 46em; color: var(--text-2); }
.rundown code { color: var(--accent-text); }

/* corrida do convite */
.race { padding: clamp(16px, 2.2vw, 28px); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); }
.race-inv { display: block; padding: 11px 13px; border-radius: 3px; background: var(--bg); font-size: .86rem; color: var(--text-3); overflow-wrap: anywhere; line-height: 1.6; }
.race-inv span { color: var(--text-2); transition: color .2s, background .2s; }
.race-inv span.lit { color: var(--accent-text); }
.race-inv span.won { background: var(--accent); color: var(--on-accent); }
.race-inv .fp { color: var(--accent-2); }
.race-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 20px; }
.race-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.race-rows li { display: grid; grid-template-columns: minmax(100px, 11em) minmax(0, 1fr) minmax(90px, 8.5em); gap: 14px; align-items: center; }
.race-rows b { font: 600 1.02rem var(--font-label); letter-spacing: .02em; color: var(--text); }
.lane { position: relative; display: block; height: 10px; border-radius: 2px; background: var(--bg-4); overflow: hidden; }
.lane i { position: absolute; inset: 0; background: var(--text-3); transform: scaleX(0); transform-origin: 0 50%; }
.race-rows em { font: 500 .74rem var(--font-mono); font-style: normal; color: var(--text-3); text-align: right; }
.race-rows li.won .lane i { background: var(--accent); }
.race-rows li.won em { color: var(--accent-text); }
.race-rows li.won b { color: var(--head); }
.race-rows li.lost .lane i { background: var(--live); opacity: .55; }
.race-rows li.stop .lane i { opacity: .4; }
.race-out { min-height: 1.5em; margin: 14px 0 0; font: 600 1.08rem var(--font-label); letter-spacing: .02em; color: var(--ok); }
.got { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(30px, 5vh, 48px); }
.got h3 { margin: 0 0 6px; font: 600 1.14rem var(--font-label); letter-spacing: .02em; color: var(--head); }
.got h3 .i { color: var(--accent-text); width: 16px; height: 16px; margin-right: 2px; }
.got h3 code { font-size: .84em; }
.got p { margin: 0; color: var(--text-2); font-size: .93rem; }
.got b { color: var(--text); font-weight: 600; }

/* programação: a parede de monitores */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { position: relative; display: block; padding: 20px 18px 22px; background: var(--bg); text-decoration: none; color: inherit; transition: background .15s; overflow: hidden; }
.tile::before { content: ""; position: absolute; right: 12px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background .12s; }
.tile:hover { background: var(--bg-2); }
.tile:hover::before { background: var(--live); }
.tile > .i { width: 21px; height: 21px; color: var(--accent-text); stroke-width: 1.5; }
.tile h3 { margin: 12px 0 5px; font: 800 1.42rem/1.05 var(--font-display); color: var(--head); }
.tile p { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--text-2); }

/* canais */
.ch-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.ch-tile { display: block; width: 100%; padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg); overflow: hidden; cursor: pointer; text-align: left; transition: transform .22s cubic-bezier(.2, .9, .25, 1), border-color .15s; }
.ch-tile:hover { transform: translateY(-4px); border-color: var(--accent); }
.ch-tile.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ch-mini { display: flex; aspect-ratio: 16 / 10; }
.m-side { width: 34%; padding: 9% 6%; display: flex; flex-direction: column; gap: 9%; background: var(--bg-2); }
.m-side u { display: block; height: 5px; border-radius: 3px; background: var(--line-2); } .m-side u:first-child { background: var(--accent); }
.m-main { flex: 1; padding: 9% 7%; display: flex; flex-direction: column; gap: 8%; background: var(--bg-3); }
.m-main b { display: block; flex: 1; border-radius: 3px; background: var(--bg-4); position: relative; }
.m-main b::after { content: ""; position: absolute; left: 6%; top: 10%; width: 22%; height: 18%; background: var(--live); border-radius: 1px; }
.m-main em { display: block; height: 4px; width: 80%; border-radius: 2px; background: var(--text-3); opacity: .6; } .m-main em:last-child { width: 56%; background: var(--accent-2); opacity: 1; }
.ch-name { display: block; padding: 7px 10px 9px; color: var(--head); font: 600 .98rem/1.2 var(--font-label); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--bg); }
.ch-name small { display: block; font: 500 .68rem var(--font-mono); color: var(--text-3); letter-spacing: 0; }

/* bots */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 76px); align-items: start; }
.split h3 { margin: 0 0 10px; font: 800 1.9rem/1 var(--font-display); color: var(--head); }
.split > div > p { margin: 0 0 16px; color: var(--text-2); }
.split b { color: var(--head); font-weight: 600; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ticks li { display: flex; gap: 12px; color: var(--text-2); font-size: .95rem; line-height: 1.5; }
.ticks .i { width: 17px; height: 17px; margin-top: 3px; color: var(--accent-text); }
.ticks code, .steps code { padding: 1px 4px; border-radius: 3px; background: var(--bg-3); color: var(--accent-text); }
.split-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 40%); gap: 14px; align-items: start; }
.code-card { grid-column: 1 / -1; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.code-card .bar { display: flex; gap: 7px; align-items: center; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--line); font: 500 .74rem var(--font-mono); color: var(--text-3); }
.code-card pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 400 .82rem/1.65 var(--font-mono); }
.bot-shot { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(120px, 36%) minmax(0, 1fr); gap: 16px; align-items: center; margin: 0; }
.bot-shot img { display: block; width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius); }
.bot-shot figcaption { font-size: .88rem; color: var(--text-2); }

/* arquivo */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; }
.shot { margin: 0; }
.shot.big { grid-column: 1 / -1; }
.shot button { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; cursor: zoom-in; }
.shot button .i { position: absolute; right: 9px; top: 9px; z-index: 1; width: 22px; height: 22px; padding: 4px; color: #fff; background: rgba(0, 0, 0, .68); border-radius: 2px; opacity: 0; transition: opacity .15s; }
.shot button:hover .i, .shot button:focus-visible .i { opacity: 1; }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.shot.big img { aspect-ratio: 16 / 8; }
.shot button:hover img { transform: scale(1.018); }
.shot figcaption { margin-top: 9px; font-size: .88rem; line-height: 1.45; color: var(--text-2); }
.shot figcaption b { color: var(--head); font-weight: 600; }
.zoom { width: min(1400px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.zoom::backdrop { background: rgba(0, 0, 0, .86); }
.zoom img { display: block; width: 100%; max-height: 92vh; object-fit: contain; }
.zoom form { position: absolute; right: 8px; top: 8px; margin: 0; }
.zoom button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 3px; background: rgba(0, 0, 0, .75); color: #fff; cursor: pointer; }

/* instalar */
.install { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 60px); align-items: start; }
.terminal { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; min-width: 0; }
.lang-tabs-bar { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); }
.lang-tab { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--text-2); cursor: pointer; white-space: nowrap; font: 600 .94rem var(--font-label); letter-spacing: .05em; text-transform: uppercase; }
.lang-tab:hover { color: var(--head); }
.lang-tab.active { color: var(--on-accent); background: var(--accent); }
.lang-tab .i, .lang-tab .i-fill { width: 14px; height: 14px; }
.lang-panel { position: relative; padding: 16px 18px 18px; }
.lang-panel[hidden] { display: none; }
.lang-panel p { margin: 0 0 12px; font-size: .92rem; color: var(--text-2); }
.lang-panel p code { color: var(--accent-text); }
.lang-panel p b { color: var(--text); font-weight: 600; }
.lang-panel pre { position: relative; margin: 0; padding: 12px 66px 12px 12px; border-radius: 3px; background: var(--bg); font: 400 .8rem/1.7 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.lang-panel .ps { color: var(--ok); user-select: none; }
.lang-panel .cm { color: var(--text-3); }
.code-copy-btn { position: absolute; top: 7px; right: 7px; padding: 2px 9px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--bg-3); color: var(--text-2); cursor: pointer; font: 500 .7rem var(--font-mono); opacity: 0; transition: opacity .12s, color .12s; }
pre:hover > .code-copy-btn, .code-copy-btn:focus, .lang-panel .code-copy-btn { opacity: 1; }
@media (hover: none) { .code-copy-btn { opacity: 1; } }
.code-copy-btn:hover { color: var(--head); border-color: var(--accent); }
.code-copy-btn.copied { color: var(--ok); border-color: var(--ok); }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 15px 42px; color: var(--text-2); font-size: .95rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -5px; font: 900 2rem/1 var(--font-display); color: var(--accent-2); }
.steps b { color: var(--head); font-weight: 600; }

/* fim da transmissão */
.signoff { margin-top: clamp(90px, 14vh, 150px); content-visibility: auto; contain-intrinsic-size: auto 340px; }
.signoff > .bars { height: 12px; }
.signoff-in { position: relative; padding-block: clamp(46px, 7vh, 70px); }
.signoff-box h2 { margin: 0 0 8px; font: 900 clamp(3rem, 8vw, 6.4rem)/.92 var(--font-display); color: var(--head); }
.signoff-box p { margin: 0; max-width: 34em; color: var(--text-2); }
.signoff .husky { right: clamp(16px, 7vw, 110px); bottom: -2px; width: clamp(96px, 13vw, 190px); aspect-ratio: 176 / 146; }

/* ==================== KO-FI ==================== */
/* o botão é a imagem do próprio Ko-fi; a sombra dura laranja-escura e o resto são por conta da casa */
.kofi { position: relative; display: inline-block; flex-shrink: 0; line-height: 0; transition: transform .22s cubic-bezier(.3, 1.5, .5, 1); }
.kofi img { position: relative; display: block; width: auto; height: 100%; }
.kofi:hover { transform: translateY(-2px) rotate(-1.5deg); }
.kofi:active { transform: translateY(1px) scale(.98); }
.kofi-head { height: 30px; }
.kofi-side { height: 30px; margin-top: 18px; }
.site-footer .kofi { height: 30px; }
.kofi-big { height: 58px; }
.kofi-big::before { content: ""; position: absolute; inset: 0; border-radius: 15px; background: #a8341a; transform: translate(5px, 6px); transition: transform .22s cubic-bezier(.3, 1.5, .5, 1); }
.kofi-big:hover::before { transform: translate(9px, 10px); }
.kofi-big:active::before { transform: translate(2px, 3px); }

/* ==================== INTERVALO COMERCIAL ==================== */
.ad-break { margin-top: clamp(84px, 13vh, 150px); background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; content-visibility: auto; contain-intrinsic-size: auto 520px; }
.ad-rail { display: flex; align-items: center; gap: 26px; height: 30px; padding-inline: clamp(16px, 2.4vw, 36px); overflow: hidden; white-space: nowrap; background: repeating-linear-gradient(-45deg, #ff6433 0 14px, #e8501f 14px 28px); color: #fff; font: 600 .86rem var(--font-label); letter-spacing: .13em; text-transform: uppercase; }
.ad-rail b { padding: 0 7px; background: #fff; color: #c8401a; border-radius: 2px; font-weight: 600; }
.ad-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(200px, 1fr); gap: clamp(26px, 5vw, 80px); align-items: end; padding-top: clamp(44px, 7vh, 70px); }
.ad-copy { padding-bottom: clamp(44px, 7vh, 70px); }
.ad-copy h2 { margin: 6px 0 12px; font: 800 clamp(2.5rem, 5.4vw, 4.4rem)/.96 var(--font-display); color: var(--head); }
.ad-copy p { max-width: 34em; margin: 0; color: var(--text-2); }
.ad-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 26px; }
.ad-skip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 2px; background: rgba(0, 0, 0, .28); color: var(--text-2); text-decoration: none; font: 500 .78rem var(--font-mono); transition: color .15s, border-color .15s; }
.ad-skip .i { width: 13px; height: 13px; }
.ad-skip:hover { color: var(--head); border-color: var(--accent); }
.ad-skip.wait { pointer-events: none; color: var(--text-3); border-style: dashed; }
/* a caneca faz o papel da tela: a cabeça do husky atrás, as patinhas na borda */
.mug-stage { position: relative; justify-self: center; width: min(100%, 320px); aspect-ratio: 220 / 214; isolation: isolate; }
.mug { position: absolute; left: 0; bottom: -4px; z-index: 1; width: 100%; display: block; overflow: visible; }
.mug-body { fill: var(--pale); stroke: #231b33; stroke-width: 5; stroke-linejoin: round; }
.mug-rim { fill: none; stroke: #cfc8da; stroke-width: 3; }
.mug-handle { fill: none; stroke: #231b33; stroke-width: 19; stroke-linecap: round; }
.mug-handle-in { fill: none; stroke: var(--pale); stroke-width: 10; stroke-linecap: round; }
.mug-heart { fill: #ff6433; transform-box: fill-box; transform-origin: 50% 50%; animation: beat 1.5s ease-in-out infinite; }
@keyframes beat { 0%, 44%, 100% { transform: scale(1); } 14% { transform: scale(1.1); } 28% { transform: scale(.98); } }
.on-mug { left: 12%; bottom: 53.5%; width: 69%; aspect-ratio: 176 / 146; }
.on-mug .husky-head { z-index: 0; transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); }
.on-mug .husky-paws { z-index: 2; }
.on-mug .h-closed { transition: opacity .1s; }
.ad-break:has(.kofi-big:hover) .on-mug .husky-head { transform: translateY(-7%); }
.ad-break:has(.kofi-big:hover) .on-mug .h-eyes { opacity: 0; }
.ad-break:has(.kofi-big:hover) .on-mug .h-closed { opacity: 1; }
.steam { position: absolute; bottom: 72%; z-index: 0; width: 8px; height: 46px; border-radius: 8px; background: var(--line-2); opacity: 0; animation: steam 3.2s ease-out infinite; }
.steam.s1 { left: 4%; } .steam.s2 { right: 19%; animation-delay: 1s; } .steam.s3 { left: 11%; height: 34px; animation-delay: 2.1s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(26px) scaleY(.5); } 30% { opacity: .85; } 100% { opacity: 0; transform: translateY(-44px) scaleY(1.2); } }

/* ==================== MOLDURA DAS DOCS ==================== */
.docs-shell { flex: 1; width: 100%; max-width: 1560px; margin: 0 auto; display: grid; grid-template-columns: 228px minmax(0, 1fr) 208px; gap: clamp(26px, 3.4vw, 56px); padding: 30px clamp(16px, 2.4vw, 36px) 70px; }
.docs-shell.no-toc { grid-template-columns: 228px minmax(0, 1fr); }
.tk-sidebar { position: sticky; top: calc(var(--head-h) + 20px); align-self: start; max-height: calc(100vh - var(--head-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
.tk-sidebar-header { display: none; }
.tk-sidebar .kofi { display: block; width: max-content; }
.tk-tree { list-style: none; margin: 0; padding: 0; }
.tk-tree-cat-name { display: flex; align-items: center; gap: 7px; padding: 14px 0 5px; font: 600 .84rem var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.tk-tree li:first-child .tk-tree-cat-name { padding-top: 0; }
.tk-tree-cat-name .i { width: 14px; height: 14px; color: var(--accent-text); }
.tk-tree-pages { list-style: none; margin: 0; padding: 0; }
.tk-tree-link { display: block; padding: 4px 0 4px 21px; border-left: 2px solid var(--line); font-size: .92rem; color: var(--text-2); text-decoration: none; transition: color .12s, border-color .12s; }
.tk-tree-link:hover { color: var(--head); border-left-color: var(--line-2); }
.tk-tree-link.active { color: var(--head); font-weight: 600; border-left-color: var(--live); }

.toc { position: sticky; top: calc(var(--head-h) + 20px); align-self: start; max-height: calc(100vh - var(--head-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
.toc-title { margin: 0 0 8px; font: 600 .84rem var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc-link { display: block; padding: 3px 0 3px 10px; border-left: 1px solid var(--line); color: var(--text-3); text-decoration: none; font-size: .82rem; line-height: 1.4; }
.toc li.lvl3 .toc-link { padding-left: 20px; font-size: .78rem; }
.toc-link:hover { color: var(--head); }
.toc-link.active { color: var(--accent-text); border-left-color: var(--accent); }
.toc-actions { margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line); }
.toc-actions a { font-size: .78rem; color: var(--text-3); text-decoration: none; }
.toc-actions a:hover { color: var(--head); }
.toc-actions .i, .meta-item .i { width: 13px; height: 13px; margin-right: 3px; }

.doc-main { min-width: 0; max-width: 860px; }
.docs-shell.no-toc .doc-main { max-width: 980px; }
.tk-breadcrumb { margin-bottom: 8px; font: 500 .74rem var(--font-mono); color: var(--text-3); }
.tk-breadcrumb a { color: var(--text-2); text-decoration: none; }
.tk-breadcrumb .sep { margin: 0 6px; color: var(--line-2); }
.article-header-card { padding-bottom: 16px; border-bottom: 1px solid var(--line-2); position: relative; }
.article-header-card::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 44px; height: 3px; background: var(--live); }
.category-badge { font: 600 .84rem var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.article-header-card h1 { margin: 4px 0 10px; font: 800 clamp(2.4rem, 5vw, 3.7rem)/.98 var(--font-display); color: var(--head); }
.meta-row { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.meta-item { font-size: .8rem; color: var(--text-3); }
.meta-item b { color: var(--text-2); font-weight: 600; }
.meta-item a { color: var(--text-3); text-decoration: none; }
.meta-item a:hover { color: var(--head); }

.markdown-body { font-size: 1rem; line-height: 1.7; overflow-wrap: break-word; }
.markdown-body > :first-child { margin-top: 1.4rem; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { position: relative; color: var(--head); }
.markdown-body h2 { margin: 2.3em 0 .5em; font: 800 2.05rem/1.05 var(--font-display); }
.markdown-body h3 { margin: 1.8em 0 .4em; font: 600 1.28rem/1.2 var(--font-label); letter-spacing: .015em; }
.markdown-body h4 { margin: 1.5em 0 .3em; font: 600 1.05rem/1.25 var(--font-body); }
.markdown-body .anchor { margin-left: 8px; opacity: 0; text-decoration: none; color: var(--text-3); font-size: .8em; }
.markdown-body :is(h2, h3, h4):hover .anchor, .markdown-body .anchor:focus { opacity: 1; }
.markdown-body p { margin: 0 0 1em; }
.markdown-body a { color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.markdown-body a:hover { text-decoration-color: currentColor; }
.markdown-body ul, .markdown-body ol { padding-left: 1.35em; margin: 0 0 1em; }
.markdown-body li { margin-bottom: .32em; }
.markdown-body li::marker { color: var(--text-3); }
.markdown-body strong { color: var(--head); font-weight: 600; }
.markdown-body img { border: 1px solid var(--line-2); border-radius: var(--radius); }
.markdown-body code { padding: 1px 5px; border-radius: 3px; background: var(--bg-3); color: var(--accent-text); }
.markdown-body pre { position: relative; margin: 0 0 1.25em; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); font: 400 .83rem/1.62 var(--font-mono); }
.markdown-body pre[data-lang] { padding-top: 30px; }
.markdown-body pre code { padding: 0; background: none; color: var(--text); font-size: inherit; }
.markdown-body pre[data-lang]::before { content: attr(data-lang); position: absolute; top: 8px; left: 16px; font: 500 .68rem var(--font-mono); color: var(--text-3); }
.markdown-body blockquote { margin: 1.3em 0; padding: .1em 0 .1em 1.1em; border-left: 3px solid var(--line-2); color: var(--text-2); }
.markdown-body blockquote > :last-child { margin-bottom: 0; }
.callout { --c: var(--accent-text); margin: 1.4em 0; padding: .8em 1em; border-left: 3px solid var(--c); border-radius: 0 var(--radius) var(--radius) 0; background: var(--bg-2); }
.callout-title { margin-bottom: .2em; font: 600 .84rem var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.callout > :last-child { margin-bottom: 0; }
.callout.tip { --c: var(--ok); }
.callout.important, .callout.warning { --c: var(--accent-2); }
.callout.caution { --c: var(--live); }
.markdown-body table { display: block; width: 100%; margin: 0 0 1.4em; overflow-x: auto; border-collapse: collapse; font-size: .9em; scrollbar-width: thin; }
.markdown-body th, .markdown-body td { padding: 7px 12px 7px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.markdown-body th { border-bottom-color: var(--line-2); color: var(--head); font: 600 1rem var(--font-label); letter-spacing: .03em; }
.markdown-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.markdown-body details { margin: 0 0 1em; padding: .6em .9em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.markdown-body summary { cursor: pointer; color: var(--head); font-weight: 600; }
.markdown-body details[open] summary { margin-bottom: .6em; }

/* realce de código: as cores vêm do canal */
.hl .c, .hl .c1, .hl .cm, .hl .ch, .hl .cs, .hl .cp { color: var(--text-3); font-style: italic; }
.hl .k, .hl .kd, .hl .kn, .hl .kr, .hl .kc, .hl .kt, .hl .ow { color: var(--accent-text); }
.hl .s, .hl .s1, .hl .s2, .hl .sb, .hl .se, .hl .sh, .hl .si, .hl .sx, .hl .sa, .hl .dl { color: var(--ok); }
.hl .m, .hl .mi, .hl .mf, .hl .mh, .hl .il, .hl .nd { color: var(--accent-2); }
.hl .nf, .hl .fm, .hl .nc, .hl .nn, .hl .nt, .hl .na { color: var(--head); font-weight: 500; }
.hl .nb, .hl .bp, .hl .nv, .hl .vg, .hl .vi { color: var(--text); }
.hl .o, .hl .p { color: var(--text-2); }
.hl .gp { color: var(--ok); user-select: none; }
.hl .err { color: inherit; background: none; }

.page-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.mini-card { display: block; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .15s, transform .18s; }
.mini-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.mini-card span { display: block; font-size: .78rem; color: var(--text-3); }
.mini-card b { display: block; font: 600 1.12rem var(--font-label); letter-spacing: .02em; color: var(--head); }
.mini-card.next { grid-column: 2; text-align: right; }

/* changelog: a linha do tempo */
.page-changelog .markdown-body h2 { padding-left: 22px; }
.page-changelog .markdown-body h2::before { content: ""; position: absolute; left: 1px; top: .32em; width: 10px; height: 10px; border-radius: 50%; background: var(--live); }
.page-changelog .markdown-body > :not(h2) { margin-left: 5px; padding-left: 21px; border-left: 1px solid var(--line); }
.page-changelog .markdown-body > ul, .page-changelog .markdown-body > ol { padding-left: 2.4em; }
.page-changelog .markdown-body h3 { font-size: 1.05rem; color: var(--accent-text); margin-top: 0; padding-top: 1em; }

/* ==================== BUSCA ==================== */
.search-overlay { position: fixed; inset: 0; z-index: 1000; display: none; align-items: flex-start; justify-content: center; padding: 11vh 16px 16px; background: rgba(0, 0, 0, .72); }
.search-overlay.open { display: flex; }
.search-box { width: 100%; max-width: 620px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.search-input-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.search-input-row .prompt { font: 500 .82rem var(--font-mono); color: var(--ok); white-space: nowrap; }
.search-input-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--head); font: 400 1.04rem var(--font-body); caret-color: var(--live); }
.search-results { max-height: 60vh; overflow-y: auto; padding: 5px; }
.search-empty { padding: 18px; text-align: center; color: var(--text-3); font-size: .9rem; }
.tk-search-result { display: block; padding: 9px 11px; border-left: 2px solid transparent; border-radius: 2px; text-decoration: none; }
.tk-search-result:hover, .tk-search-result.sel { border-left-color: var(--live); background: var(--bg-3); }
.tk-search-result-cat { font: 600 .76rem var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.tk-search-result-title { color: var(--head); font-weight: 600; }
.tk-search-result-excerpt { font-size: .84rem; line-height: 1.45; color: var(--text-2); }
.tk-search-result mark { background: var(--accent); color: var(--on-accent); }
.search-foot { padding: 7px 14px; border-top: 1px solid var(--line); font: 500 .68rem var(--font-mono); color: var(--text-3); }

/* ==================== RODAPÉ, GAVETA E TOPO ==================== */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); background: var(--bg); margin-top: auto; }
.footer-inner { max-width: 1560px; margin: 0 auto; padding: 18px clamp(16px, 2.4vw, 36px); display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; font-size: .84rem; color: var(--text-3); }
.footer-inner a { color: var(--text-2); text-decoration: none; }
.footer-inner a:hover { color: var(--head); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.tk-drawer-btn { display: none; position: fixed; left: 16px; bottom: 16px; z-index: 90; height: 38px; padding: 0 13px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); cursor: pointer; font: 600 .98rem var(--font-label); letter-spacing: .04em; text-transform: uppercase; }
.tk-drawer-btn .i { width: 15px; height: 15px; }
.tk-drawer-overlay { display: none; position: fixed; inset: 0; z-index: 140; background: rgba(0, 0, 0, .62); }
.tk-top-btn { position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); color: var(--head); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.tk-top-btn.show { opacity: 1; pointer-events: auto; }
.tk-top-btn .i { width: 17px; height: 17px; }

/* ==================== CONVITE E 404 ==================== */
.invite { position: relative; max-width: 780px; margin: 0 auto; padding: clamp(36px, 7vh, 80px) clamp(16px, 2.4vw, 36px) 70px; }
.invite-kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 .9rem var(--font-label); letter-spacing: .13em; text-transform: uppercase; color: var(--accent-text); }
.invite-kicker .i { width: 15px; height: 15px; }
.invite h1 { margin: 6px 0 12px; font: 900 clamp(3.4rem, 11vw, 6.6rem)/.9 var(--font-display); color: var(--head); }
.invite-sub { margin: 0; max-width: 38em; color: var(--text-2); font-size: 1.06rem; }
.invite-sub b { color: var(--head); font-weight: 600; }
.invite-stage { position: relative; margin-top: clamp(62px, 10vw, 90px); }
.invite-stage { --hw: clamp(88px, 16vw, 130px); }
/* a borda do cartão passa a 89% da altura do desenho, igual à tela do topo */
.invite-stage .husky { right: 9%; bottom: 100%; margin-bottom: calc(var(--hw) * -.0913); width: var(--hw); aspect-ratio: 176 / 146; }
.invite-card { position: relative; z-index: 1; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); }
.invite-card + .invite-card { margin-top: 14px; }
.invite-card h2 { margin: 0 0 8px; font: 800 1.7rem/1.05 var(--font-display); color: var(--head); }
.invite-card p { margin: 0 0 8px; color: var(--text-2); }
.invite-card p:last-child { margin-bottom: 0; }
.invite-card .dl-row { margin: 12px 0 10px; }
.invite-card .dl-note b { color: var(--text); font-weight: 600; }
.invite-card code { color: var(--accent-text); }
.invite-cmd { margin: 8px 0; padding: 11px 13px; overflow-x: auto; border-radius: 3px; background: var(--bg); font: 400 .8rem/1.6 var(--font-mono); }
.no-signal { position: relative; display: flex; flex-direction: column; min-height: calc(100vh - var(--head-h) - 58px); }
.no-signal .bars { position: absolute; inset: 0; opacity: .9; }
.no-signal-box { position: relative; z-index: 1; margin: auto; padding: 26px clamp(20px, 5vw, 56px) 30px; background: var(--bg); border: 1px solid var(--line-2); text-align: center; }
.no-signal-box h1 { margin: 0; font: 900 clamp(6rem, 22vw, 13rem)/.86 var(--font-display); color: var(--head); }
.no-signal-box p { margin: 8px 0 0; color: var(--text-2); }
.no-signal-box .dl-row { justify-content: center; }

/* ==================== MENOS EFEITOS ==================== */
/* "lite" (o navegador não está dando conta, ou ?fx=lite) e fora da tela: tudo parado */
html.lite .ticker-run, html.lite .rm-bar i, html.lite .dial .hand, html.lite .rm-user.speak i::after, html.lite .steam, html.lite .mug-heart { animation: none; }
[data-off], [data-off] *, [data-off] *::before, [data-off] *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ==================== RESPONSIVO ==================== */
@media (max-width: 1240px) { .docs-shell, .docs-shell.no-toc { grid-template-columns: 212px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 1100px) {
  .kofi-head { display: none; }
  .ch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); margin-top: clamp(-60px, -3vw, 0px); gap: 18px; }
  .hero-copy { order: 2; padding-top: 0; }
  .hero-sub, .hero-stats { max-width: 46em; }
  .wall .husky { right: 9%; }
  .mega { font-size: 33vw; }
  .wall { --pad: clamp(58px, 11vw, 84px); --hw: clamp(92px, 15vw, 150px); }
  .wall-note { text-align: left; }
}
@media (max-width: 900px) {
  .docs-shell, .docs-shell.no-toc { grid-template-columns: minmax(0, 1fr); padding-top: 18px; }
  .tk-sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 150; width: min(300px, 86vw); max-height: none; padding: 18px; background: var(--bg-2); transform: translateX(-102%); transition: transform .22s ease; }
  body.drawer-open .tk-sidebar { transform: none; }
  body.drawer-open .tk-drawer-overlay { display: block; }
  .tk-drawer-btn { display: inline-flex; align-items: center; gap: 8px; }
  .search-btn .label, .search-btn kbd { display: none; }
  .split, .install { grid-template-columns: minmax(0, 1fr); }
  .got { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .ad-in { grid-template-columns: minmax(0, 1fr); }
  .ad-copy { padding-bottom: 0; }
  .mug-stage { width: min(68%, 260px); margin-top: 40px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  html { font-size: 15.5px; }
  .main-nav, .gh-btn { display: none; }
  .menu-btn { display: inline-flex; }
  .header-inner { gap: 10px; }
  .strip-hide { display: none; }
  .lab { grid-template-columns: minmax(0, 1fr); }
  .wire { grid-template-columns: minmax(0, 1fr); padding: 0 0 0 16px; gap: 11px; }
  .wire::before { left: 3px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .wire li::before { left: -16px; top: 6px; }
  .wire-dot { display: none; }
  .rundown li { grid-template-columns: 34px minmax(0, 1fr); gap: 3px 10px; }
  .rundown p { grid-column: 2; }
  .race-rows li { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; }
  .lane { grid-column: 1 / -1; grid-row: 2; }
  .tile { padding: 15px 14px 17px; }
  .ch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ch-name { white-space: normal; }
  .hud-right, [data-hud-what] { display: none; }
  .pgm-hud { padding: 6px 7px; font-size: .64rem; }
  .page-nav { grid-template-columns: 1fr; }
  .mini-card.next { grid-column: 1; }
}
@media (max-width: 520px) {
  .tiles, .shots { grid-template-columns: minmax(0, 1fr); }
  .split-side { grid-template-columns: minmax(0, 1fr); }
  .hero-stats dt b { font-size: 2.3rem; }
  .ch-now { min-width: 42px; }
  .tk-top-btn { bottom: 62px; }
}
@media print {
  .site-header, .tk-sidebar, .toc, .site-footer, .tk-drawer-btn, .tk-top-btn, .page-nav, .code-copy-btn, .scroll-progress, .zap, .osd { display: none !important; }
  .docs-shell { display: block; }
}
