/* FM Tigrotto, rodada 4: cabecalho com logo grande, contador de downloads, guias. Carregar por ultimo. */

/* ---------- Cabecalho ---------- */
.top { background: rgba(10, 10, 10, .74); border-bottom: 1px solid rgba(255, 255, 255, .07); transition: background .3s; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--y-line) 30%, var(--y-line) 70%, transparent); opacity: .7; }
.top .wrap { height: 80px; gap: 22px; transition: height .35s cubic-bezier(.2, .8, .2, 1); }
.brand { gap: 16px; flex: none; }
.brand .badge { position: relative; z-index: 2; width: 96px; height: 96px; flex: none; border-radius: 50%; background: #0a0a0a; padding: 5px;
  transform: translateY(20px); box-shadow: 0 0 0 1px rgba(250, 205, 3, .28), 0 18px 34px rgba(0, 0, 0, .65);
  transition: width .35s cubic-bezier(.2, .8, .2, 1), height .35s cubic-bezier(.2, .8, .2, 1), transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, padding .35s; }
.brand .badge::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed rgba(250, 205, 3, .25); animation: gira 40s linear infinite; transition: opacity .3s; }
.brand .badge img { width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.brand:hover .badge img { transform: rotate(-10deg) scale(1.04); }
.brand .word { display: flex; flex-direction: column; justify-content: center; }
.brand .word b { font: 900 23px/1 var(--display); letter-spacing: -.025em; white-space: nowrap; }
.brand .word b span { color: var(--y); }
.brand .word small { font: 700 10.5px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-top: 6px; max-height: 14px; overflow: hidden; transition: max-height .3s, opacity .3s, margin .3s; white-space: nowrap; }
/* rolando: tudo encolhe e o logo volta para dentro da barra */
.top.scrolled { background: rgba(10, 10, 10, .92); }
.top.scrolled .wrap { height: 62px; }
.top.scrolled .badge { width: 46px; height: 46px; padding: 2px; transform: none; box-shadow: 0 0 0 1px rgba(250, 205, 3, .2); }
.top.scrolled .badge::after { opacity: 0; }
.top.scrolled .word small { max-height: 0; opacity: 0; margin-top: 0; }
.top.scrolled .word b { font-size: 20px; }

/* menu com marcador que desliza */
.nav { position: relative; display: flex; gap: 2px; margin-left: 10px; flex: none; }
.nav a { position: relative; padding: 10px 14px; border-radius: 0; background: none !important; box-shadow: none !important; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a.on { color: var(--ink); }
.nav .ink { position: absolute; bottom: 0; height: 3px; border-radius: 3px; background: var(--y); box-shadow: 0 0 12px rgba(250, 205, 3, .6); opacity: 0; transition: left .35s cubic-bezier(.2, .8, .2, 1), width .35s cubic-bezier(.2, .8, .2, 1), opacity .2s; }

.icon-b { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--s1); display: grid; place-items: center; color: var(--muted); transition: all .2s; }
.icon-b:hover { border-color: var(--y-line); color: var(--y); }
.icon-b svg { width: 17px; }
.icon-b.lang { width: auto; display: flex; gap: 6px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 600; height: 40px; }
.top .btn-sm { height: 40px; }
.top .btn-y svg, .top .btn-coffee svg { width: 16px; }
@media (max-width: 1200px) { .top .btn .t { display: none; } .top .btn-sm { width: 40px; padding: 0; } }
@media (max-width: 1000px) { .brand .badge { width: 70px; height: 70px; transform: translateY(14px); } .brand .word small { display: none; } }

/* ---------- contador de downloads ---------- */
.dlc { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); }
.dlc svg { width: 14px; color: var(--y); }
.dlc b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Guias ---------- */
.g-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.g-card { position: relative; display: grid; grid-template-columns: 200px 1fr; border-radius: 16px; overflow: hidden; background: var(--s1); border: 1px solid var(--line); transition: border-color .25s, transform .3s; }
.g-card:hover { border-color: var(--y-line); transform: translateY(-4px); }
.g-card .gc { position: relative; background: #050505 url(img/facets.svg) center/cover; display: grid; place-items: center; overflow: hidden; }
.g-card .gc img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .6s; }
.g-card:hover .gc img { transform: scale(1.06); }
.g-card .gc .num { position: absolute; left: 14px; bottom: 10px; font: 900 44px/1 var(--display); color: var(--y); text-shadow: 0 4px 20px #000; }
.g-card .gb { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.g-card .gb .kick { font: 800 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--y); }
.g-card h3 { font-size: 20px; line-height: 1.15; }
.g-card p { color: var(--muted); font-size: 14.5px; }
.g-card .gm { margin-top: auto; display: flex; gap: 14px; font-size: 13px; color: var(--dim); }
.g-card > a { position: absolute; inset: 0; }
.article-hero h1 { font-size: clamp(32px, 4vw, 52px); }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: var(--dim); }
.article-meta b { color: var(--ink); font-weight: 600; }
.prose h2 { counter-increment: h; }
.prose.numbered { counter-reset: h; }
.prose.numbered h2::before { content: counter(h, decimal-leading-zero); display: block; font: 900 14px/1 var(--display); letter-spacing: .2em; color: var(--y); margin-bottom: 10px; }
.prose pre { margin: 14px 0; padding: 16px 18px; border-radius: 12px; background: #0b0b0b; border: 1px solid var(--line); overflow: auto; font: 600 13.5px/1.7 ui-monospace, "Cascadia Mono", monospace; color: #e6e2c6; }
.prose pre .c { color: #6f6e66; }
.prose pre .t { color: var(--y); }
.prose .ok, .prose .bad { display: inline-block; font: 800 10.5px/1 var(--display); letter-spacing: .1em; padding: 4px 6px; border-radius: 4px; margin-right: 8px; vertical-align: 1px; }
.prose .ok { background: rgba(61, 220, 132, .16); color: var(--green); }
.prose .bad { background: rgba(255, 90, 74, .16); color: var(--danger); }
.prose .path { margin: 14px 0; }
.tool-box { display: flex; gap: 18px; align-items: center; margin: 22px 0; padding: 18px 20px; border-radius: 14px; background: linear-gradient(90deg, rgba(250, 205, 3, .09), rgba(250, 205, 3, .02)); border: 1px solid var(--y-line); }
.tool-box img, .tool-box .ico { width: 56px; height: 56px; flex: none; border-radius: 50%; border: 2px solid var(--y); background: #0c0c0c; padding: 7px; object-fit: contain; }
.tool-box .ico { display: grid; place-items: center; padding: 0; font: 900 16px/1 var(--display); color: var(--y); }
.tool-box div { flex: 1; }
.tool-box b { display: block; font: 800 16.5px/1.2 var(--display); color: var(--ink); }
.tool-box span { color: var(--muted); font-size: 14.5px; }
.tool-box .btn { text-decoration: none !important; color: #111 !important; flex: none; }
.prose .ad { margin: 34px 0; }
.next-guide { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 50px; padding: 24px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line); text-decoration: none !important; color: var(--ink) !important; transition: border-color .2s; }
.next-guide:hover { border-color: var(--y); }
.next-guide small { display: block; color: var(--dim); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.next-guide b { font: 800 20px/1.2 var(--display); }
.next-guide svg { width: 26px; color: var(--y); flex: none; }

/* pedidos so para apoiadores do Patreon */
.stc.req .perk { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: #f96854; color: #fff; font: 800 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.stc.req .perk svg { width: 12px; }

@media (max-width: 1000px) { .g-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .g-card { grid-template-columns: 1fr; } .g-card .gc { aspect-ratio: 16/8; } }
