/* ==========================================================================
   Kyzen — sistema visual (v5 "Bloco")
   Preto verdadeiro + roxo #6f0ecf em rampa. Anton (display) + Work Sans (texto).
   Um arquivo para todas as páginas. Movimento só em transform/opacity.
   ========================================================================== */

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/anton-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;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/work-sans-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;
}

:root {
  color-scheme: dark;

  /* chão e superfícies: degraus de luminosidade, sem sombra */
  --bg: #000000;
  --s1: #0f0e11;
  --s2: #17161a;
  --s3: #201e24;
  --line: #232027;
  --line-2: #2b2830;
  --line-3: #3a3640;

  /* tinta */
  --ink: #f2f0f5;
  --ink-2: #bdb8c4;
  --ink-3: #8b8693;

  /* roxo Kyzen — rampa a partir de #6f0ecf */
  --p-50: #f5eeff;
  --p-100: #e9dbff;
  --p-200: #d4b8ff;
  --p-300: #bb92ff;
  --p-400: #a06bfb;
  --p-500: #8a3ff0;
  --p-600: #6f0ecf;
  --p-700: #5a0aaa;
  --p-800: #450884;
  --p-900: #2e0659;
  --p-950: #1b0436;

  --accent: var(--p-600);
  --accent-hi: var(--p-500);
  --accent-lo: var(--p-700);
  --accent-ink: var(--p-300);

  /* estado */
  --ok: #46d18a;
  --ok-bg: #0f2a1c;
  --warn: #f2b33d;
  --warn-bg: #2a2010;
  --bad: #ff6b81;
  --bad-bg: #2c141a;

  /* tipo */
  --font-display: 'Anton', 'Impact', 'Arial Narrow Bold', sans-serif;
  --font: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-sec: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);   /* títulos de seção (Anton) */
  --fs-page: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);   /* título de página (Anton) */
  --fs-d2: clamp(2rem, 1.5rem + 1.4vw, 2.75rem);       /* número/título de bloco (Anton) */

  /* forma */
  --r-panel: 8px;
  --r-ctl: 6px;
  --r-chip: 4px;

  /* espaço */
  --wrap: 1280px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --bar-h: 64px;
  --sec-gap: clamp(88px, 10vw, 168px);

  /* movimento */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --t-press: 110ms;
  --t-hover: 200ms;
  --t-enter: 420ms;
  --t-reveal: 760ms;
}

/* ── base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h) + 16px);
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-16);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:where(button, a, [role="button"], summary, label) { touch-action: manipulation; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
::selection { background: var(--p-600); color: #fff; }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--p-300);
  outline-offset: 3px;
  border-radius: 2px;
}
[hidden] { display: none !important; }
code, kbd { font-family: var(--font); font-weight: 600; font-size: 0.95em; color: var(--ink); }
.num, .tabular { font-variant-numeric: tabular-nums; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* pular para o conteúdo */
.kz-skip-link, .skip-link {
  position: fixed;
  left: 16px; top: 12px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: var(--r-ctl);
  background: var(--ink);
  color: #000;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--t-hover) var(--ease-out);
}
.kz-skip-link:focus, .skip-link:focus { transform: none; }

/* ── barra superior ───────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--bar-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-hover) linear;
}
.topbar.kz-scrolled { border-bottom-color: var(--line); }
.topbar-in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  flex: none;
}
.brand img { width: 34px; height: 34px; border-radius: var(--r-chip); }
.brand-word {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r-ctl);
  color: var(--ink-3);
  font-size: var(--fs-14);
  font-weight: 600;
  transition: color var(--t-hover) linear, background-color var(--t-hover) linear;
}
.nav a:hover { color: var(--ink); background: var(--s1); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  width: 260px;
  padding: 0 10px 0 12px;
  border-radius: var(--r-ctl);
  background: var(--s1);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: var(--fs-14);
  transition: border-color var(--t-hover) linear, background-color var(--t-hover) linear, color var(--t-hover) linear;
}
.topbar-search:hover { border-color: var(--line-3); color: var(--ink-2); background: var(--s2); }
.topbar-search svg { width: 16px; height: 16px; flex: none; }
.topbar-search span { flex: 1; }
.topbar-search kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: var(--r-chip);
  background: var(--s3);
  color: var(--ink-2);
  font-size: var(--fs-12);
  font-weight: 600;
}

/* passe 24h */
.pass-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: var(--fs-14);
  font-weight: 600;
  white-space: nowrap;
  transition: border-color var(--t-hover) linear, color var(--t-hover) linear, background-color var(--t-hover) linear;
}
.pass-chip:hover { border-color: var(--p-500); color: var(--ink); }
.pass-chip .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-3);
  flex: none;
}
.pass-chip[data-state="on"] { border-color: #1d4a33; color: var(--ok); }
.pass-chip[data-state="on"] .dot { background: var(--ok); }
.pass-chip[data-state="off"] .dot { background: var(--p-400); }

/* ── barra inferior (celular) ─────────────────────────────────────────── */
.mobile-bar { display: none; }

@media (max-width: 1080px) {
  .topbar-search { width: auto; }
  .topbar-search span, .topbar-search kbd { display: none; }
}
@media (max-width: 860px) {
  :root { --bar-h: 56px; }
  .nav { display: none; }
  .topbar-in { gap: 12px; }
  .brand-word { font-size: 23px; }
  .topbar-search { width: 40px; padding: 0; justify-content: center; }
  .pass-chip { padding: 0 12px; }
  .pass-chip .pass-long { display: none; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--s1);
  }
  .mobile-bar-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 64px;
  }
  .m-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--ink-3);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: color var(--t-hover) linear;
  }
  .m-item svg {
    width: 22px; height: 22px;
    transition: transform var(--t-press) var(--ease-out);
  }
  .m-item:active svg { transform: scale(0.88); }
  .m-item.active, .m-item[aria-current="page"] { color: var(--ink); }
  .m-item.active svg, .m-item[aria-current="page"] svg { color: var(--p-300); }
  .m-item.active::before, .m-item[aria-current="page"]::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 24px; height: 2px;
    margin-left: -12px;
    border-radius: 0 0 2px 2px;
    background: var(--accent);
  }
}

/* ── botões ───────────────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-ctl);
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color var(--t-hover) linear, border-color var(--t-hover) linear, color var(--t-hover) linear, transform var(--t-press) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hi); }
.btn-primary:active:not(:disabled) { background: var(--accent-lo); }
.btn-primary:disabled { background: var(--s3); color: var(--ink-3); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line-3); }
.btn-secondary:hover:not(:disabled) { background: var(--s2); border-color: var(--ink-3); }
.btn-light { background: var(--ink); color: #000; }
.btn-light:hover:not(:disabled) { background: #fff; }
.btn-sm { height: 40px; padding: 0 16px; font-size: var(--fs-14); }
.btn-block { width: 100%; }
.btn-icon {
  width: 48px; padding: 0;
  border: 1px solid var(--line-3);
  color: var(--ink-2);
}
.btn-icon:hover { color: var(--ink); border-color: var(--ink-3); background: var(--s2); }
.btn .arrow { transition: transform var(--t-hover) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.link {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(187, 146, 255, 0.45);
  transition: text-decoration-color var(--t-hover) linear, color var(--t-hover) linear;
}
.link:hover { color: var(--p-200); text-decoration-color: currentColor; }
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--ink-2);
  font-size: var(--fs-14);
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--t-hover) linear;
}
.more svg { width: 16px; height: 16px; transition: transform var(--t-hover) var(--ease-out); }
.more:hover { color: var(--ink); }
.more:hover svg { transform: translateX(3px); }

/* ── controles ───────────────────────────────────────────────────────── */
.field { display: grid; gap: 8px; }
.field label, .label {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--ink-2);
}
.input, .select, .textarea,
.kz-auth-field input, .customdb-field input, .customdb-field textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--line-2);
  background: var(--s1);
  color: var(--ink);
  font-size: var(--fs-16);
  transition: border-color var(--t-hover) linear, background-color var(--t-hover) linear;
}
.textarea, .customdb-field textarea { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder,
.kz-auth-field input::placeholder, .customdb-field input::placeholder, .customdb-field textarea::placeholder { color: var(--ink-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-3); }
.input:focus, .select:focus, .textarea:focus,
.kz-auth-field input:focus, .customdb-field input:focus, .customdb-field textarea:focus {
  outline: none;
  border-color: var(--p-400);
  background: var(--s2);
}
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23bdb8c4' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.select option { background: var(--s1); color: var(--ink); }

/* chave liga/desliga */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--ink-2);
  user-select: none;
}
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track {
  position: relative;
  width: 36px; height: 20px;
  flex: none;
  border-radius: 999px;
  background: var(--s3);
  border: 1px solid var(--line-3);
  transition: background-color var(--t-hover) linear, border-color var(--t-hover) linear;
}
.switch-track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ink-2);
  transition: transform var(--t-hover) var(--ease-spring), background-color var(--t-hover) linear;
}
.switch input:checked + .switch-track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(16px); background: #fff; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--p-300); outline-offset: 3px; }

/* filtros em linha (chips de tipo) */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  flex: none;
  border-radius: var(--r-ctl);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: var(--fs-14);
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--t-hover) linear, border-color var(--t-hover) linear, background-color var(--t-hover) linear, transform var(--t-press) var(--ease-out);
}
.chip img { width: 18px; height: 18px; image-rendering: pixelated; opacity: 0.9; }
.chip:hover { color: var(--ink); border-color: var(--line-3); background: var(--s1); }
.chip:active { transform: scale(0.97); }
.chip.active, .chip[aria-pressed="true"], .chip[aria-current="page"] {
  color: var(--p-100);
  background: var(--p-950);
  border-color: var(--p-700);
}
.chip .count { color: var(--ink-3); font-weight: 500; }

/* abas sublinhadas */
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  height: 44px;
  flex: none;
  color: var(--ink-3);
  font-size: var(--fs-14);
  font-weight: 600;
  transition: color var(--t-hover) linear;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"], .tab.active { color: var(--ink); }
.tab[aria-selected="true"]::after, .tab.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
}

/* ── tipografia de seção ──────────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.9;
}
.sec { padding-top: var(--sec-gap); }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.sec-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-sec);
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.sec-sub {
  margin-top: 12px;
  max-width: 56ch;
  color: var(--ink-2);
  font-size: var(--fs-16);
}
.lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--ink-2); line-height: 1.55; max-width: 60ch; }
.muted { color: var(--ink-3); }

/* cabeçalho de página (telas de app) */
.page-head { padding-top: clamp(32px, 5vw, 64px); padding-bottom: 24px; }
.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-page);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.page-sub { margin-top: 14px; color: var(--ink-2); max-width: 62ch; font-size: var(--fs-16); }
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 16px 0 20px;
}
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.count-note { color: var(--ink-3); font-size: var(--fs-14); }

/* ── card de pack ─────────────────────────────────────────────────────── */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  cursor: pointer;
  border-radius: var(--r-panel);
  outline-offset: 4px;
}
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-panel);
  background: var(--s2);
  isolation: isolate;
}
.card-thumb > img:not(.pixel) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 600ms var(--ease-out), opacity 300ms linear;
}
.card-thumb > img.is-loading { opacity: 0; }
.card:hover .card-thumb > img:not(.pixel) { transform: scale(1.045); }
.card:active .card-thumb { transform: scale(0.985); }
.card-thumb { transition: transform var(--t-press) var(--ease-out); }
.card-type-badge {
  position: absolute;
  left: 8px; bottom: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--r-chip);
  background: rgba(0, 0, 0, 0.78);
  color: var(--ink);
  font-size: var(--fs-12);
  font-weight: 600;
}
.card-type-badge img { width: 14px; height: 14px; image-rendering: pixelated; }
.card-body { padding: 12px 2px 4px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title {
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t-hover) linear;
}
.card:hover .card-title { color: #fff; }
/* link esticado: o card inteiro é clicável, mas o HTML continua válido
   (o coração é um botão por cima, não dentro do link) */
.card-link { color: inherit; }
.card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--r-panel);
}
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--p-300); outline-offset: 4px; }
.card-row { position: relative; }
.card-row .card-link::after { border-radius: var(--r-ctl); }
.card-row .row-title { color: var(--ink); }
.card-creator {
  font-size: var(--fs-14);
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  min-height: 30px;
}
.card-type { color: var(--ink-2); font-weight: 600; }
.card-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.card-rating img, .card-rating svg { width: 14px; height: 14px; image-rendering: pixelated; }
.card-rating small { color: var(--ink-3); font-weight: 500; font-size: var(--fs-12); }
.card-state {
  font-size: var(--fs-12);
  font-weight: 600;
  color: var(--ink-3);
}
.card-state.ok { color: var(--ok); }
.card-action-icon {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: var(--r-ctl);
  color: var(--ink-2);
  transition: background-color var(--t-hover) linear, color var(--t-hover) linear;
}
.card-action-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card-action-icon { background: var(--accent); color: #fff; }
.card.is-unverified-key .card-thumb > img:not(.pixel) { filter: saturate(0.55) brightness(0.8); }
body.hide-nokey :is(.mods-grid, .results-grid, .foryou-grid) .card.is-unverified-key { display: none !important; }

/* coração (kyzen-auth injeta) */
.kz-card-fav-btn {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity var(--t-hover) linear, transform var(--t-hover) var(--ease-spring), color var(--t-hover) linear;
}
.kz-card-fav-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.card:hover .kz-card-fav-btn, .kz-card-fav-btn:focus-visible, .kz-card-fav-btn.active { opacity: 1; transform: none; }
.kz-card-fav-btn.active { color: var(--p-300); }
.kz-card-fav-btn.active svg { fill: currentColor; }
.kz-card-fav-btn:active { transform: scale(0.88); }
@media (hover: none) {
  .kz-card-fav-btn { opacity: 1; transform: none; width: 34px; height: 34px; }
}

/* fileiras com rolagem lateral */
.row-scroller { position: relative; }
.cards-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 20px) / 5);
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.cards-row::-webkit-scrollbar { display: none; }
.cards-row > * { scroll-snap-align: start; }
.cards-row.wide { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
.row-arrow {
  position: absolute;
  top: calc((100% - 92px) / 2 - 22px);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #000;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  transition: opacity var(--t-hover) linear, transform var(--t-hover) var(--ease-out);
}
.row-arrow svg { width: 20px; height: 20px; }
.row-arrow.prev { left: -22px; }
.row-arrow.next { right: -22px; }
.row-scroller:hover .row-arrow.can { opacity: 1; pointer-events: auto; transform: none; }
.row-arrow:active { transform: scale(0.92) !important; }
@media (max-width: 1100px) { .cards-row { grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; } .cards-row.wide { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 860px) {
  .row-arrow { display: none; }
  .cards-row {
    grid-auto-columns: 44%;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .cards-row.wide { grid-auto-columns: 82%; }
}
@media (max-width: 420px) { .cards-row { grid-auto-columns: 62%; } }

/* grades da home: colunas fixas e quantidade que fecha a grade em cada largura */
.grid-cards.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cards.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cards.lim-10 > :nth-child(n+11), .grid-cards.lim-5 > :nth-child(n+6), .grid-cards.lim-6 > :nth-child(n+7) { display: none; }
@media (max-width: 1099px) {
  .grid-cards.g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-cards.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cards.lim-10 > :nth-child(n+10) { display: none; }
  .grid-cards.lim-5 > :nth-child(n+4) { display: none; }
}
@media (max-width: 640px) {
  .grid-cards.g5, .grid-cards.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cards.lim-10 > :nth-child(n+7), .grid-cards.lim-6 > :nth-child(n+5) { display: none; }
  .grid-cards.lim-5 > :nth-child(n+5) { display: none; }
  .grid-cards.lim-5 > :nth-child(-n+4) { display: flex; }
}

/* grades */
.grid-cards, .mods-grid, .results-grid, .foryou-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 32px 20px;
}
@media (max-width: 640px) {
  .grid-cards, .mods-grid, .results-grid, .foryou-grid { gap: 24px 12px; }
  .mods-grid, .results-grid, .foryou-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-title { font-size: 0.9375rem; }
  .card-creator, .card-rating, .card-state { font-size: 0.8125rem; }
  .card-type-badge { font-size: 0.8125rem; height: 26px; }
}

/* carregando: barras planas no tamanho real, sem brilho correndo */
.skeleton, .sk {
  position: relative;
  overflow: hidden;
  background: var(--s1);
  border-radius: var(--r-panel);
}
.skeleton::after, .sk::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--s2);
  animation: kz-breathe 1.4s var(--ease-io) infinite alternate;
}
.card.skeleton { cursor: default; aspect-ratio: auto; }
.card.skeleton::before {
  content: '';
  display: block;
  aspect-ratio: 16 / 9;
}
.card.skeleton { background: transparent; }
.card.skeleton::after { inset: 0 0 auto 0; aspect-ratio: 16 / 9; height: auto; border-radius: var(--r-panel); }
.sk-line { height: 14px; border-radius: 3px; margin-top: 10px; }
@keyframes kz-breathe { from { opacity: 0.35; } to { opacity: 1; } }

/* vazio / erro */
.state {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 20px 24px;
  border: 1px dashed var(--line-3);
  border-radius: var(--r-panel);
  color: var(--ink-2);
  font-size: var(--fs-16);
}
.state strong { color: var(--ink); }
.state.error { border-style: solid; border-color: #4a2029; background: var(--bad-bg); }
.state.error strong { color: var(--bad); }

/* ── HOME: herói (a frase é o layout) ─────────────────────────────────── */
.hero {
  position: relative;
  padding-top: clamp(40px, 7vh, 96px);
  padding-bottom: clamp(32px, 5vh, 64px);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  /* "Addons grátis" (5,6em) + espaço + janela (2,15em) cabem numa linha */
  font-size: calc((min(100vw, var(--wrap) + 2 * var(--gutter)) - 2 * var(--gutter)) / 8.15);
  line-height: 0.86;
  letter-spacing: -0.004em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.16em;
  row-gap: 0.06em;
}
.ht-line { display: block; white-space: nowrap; }
.ht-line.l2 { flex-basis: 100%; }
.ht-slot {
  position: relative;
  display: block;
  height: 0.73em;
  width: 2.15em;
  margin-bottom: 0;
  border-radius: 0.06em;
  overflow: hidden;
  background: var(--p-950);
  cursor: pointer;
  isolation: isolate;
  transform: translateZ(0);
}
.ht-slot .slot-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: translateY(101%);
  will-change: transform;
}
.ht-slot .slot-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  will-change: transform;
}
.ht-slot .slot-layer.is-in { transform: none; transition: transform 900ms var(--ease-out); }
.ht-slot .slot-layer.is-in img { transform: scale(1); transition: transform 1400ms var(--ease-out); }
.ht-slot .slot-layer.is-out { transform: translateY(-38%); opacity: 0; transition: transform 900ms var(--ease-out), opacity 700ms linear; }
.ht-slot .slot-layer.is-static { transform: none; transition: none; }
.ht-slot .slot-layer.is-static img { transform: none; }
.ht-slot .slot-layer.is-logo img { object-fit: contain; padding: 0.08em; }
.ht-slot:hover .slot-layer.is-in img { transform: scale(1.05); transition-duration: 900ms; }
.ht-slot .slot-progress {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 3;
  height: 3px;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}
.ht-slot .slot-progress.run { animation: kz-slot-progress var(--slot-ms, 4200ms) linear forwards; }
@keyframes kz-slot-progress { to { transform: scaleX(1); } }

.hero-foot {
  margin-top: clamp(32px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: end;
}
.hero-copy { display: grid; gap: 20px; }
.hero-copy .lead { color: var(--ink); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero-now {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 24px;
  font-size: var(--fs-14);
  color: var(--ink-3);
}
.hero-now a {
  color: var(--ink);
  font-weight: 600;
  max-width: 34ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid var(--line-3);
  transition: border-color var(--t-hover) linear;
}
.hero-now a:hover { border-color: var(--p-300); }

/* números reais do catálogo como atalhos de categoria */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.stat {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: var(--r-panel);
  background: var(--s1);
  transition: background-color var(--t-hover) linear, transform var(--t-press) var(--ease-out);
}
.stat:hover { background: var(--s2); }
.stat:active { transform: scale(0.98); }
.stat b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-d2);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  transition: color var(--t-hover) linear;
}
.stat span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--ink-3);
  transition: color var(--t-hover) linear;
}
.stat:hover b { color: var(--p-200); }
.stat:hover span { color: var(--ink); }

@media (max-width: 860px) {
  .hero { padding-top: 28px; }
  /* a linha mais longa ("pro seu Bedrock", 6,5em) ocupa a largura toda */
  .hero-title { font-size: calc((100vw - 2 * var(--gutter)) / 6.62); column-gap: 0; row-gap: 0; display: block; }
  .ht-line { display: block; }
  .ht-slot {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    margin: 0.12em 0 0.14em;
    border-radius: var(--r-panel);
  }
  .hero-foot { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 14px; }
}

/* destaque grande (a janela abre) */
.feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 0;
  background: var(--s1);
  border-radius: var(--r-panel);
  overflow: hidden;
  min-height: 420px;
}
.feature-media {
  position: relative;
  overflow: hidden;
  background: var(--s2);
  cursor: pointer;
}
.feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease-out), opacity 500ms linear;
}
.feature-media:hover img { transform: scale(1.03); }
.feature-media img.swap-out { opacity: 0; }
.feature-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 40px);
}
.feature-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: -6px; color: var(--ink-2); font-size: var(--fs-14); font-weight: 600; }
.feature-kicker svg, .row-end svg.star, .md-star { width: 14px; height: 14px; flex: none; }
.inline-rating { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.feature-kicker .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-3); }
.feature-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: var(--fs-d2);
  line-height: 0.95;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-desc {
  color: var(--ink-2);
  font-size: var(--fs-16);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.feature-picks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.feature-pick {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-chip);
  overflow: hidden;
  background: var(--s2);
  opacity: 0.55;
  transition: opacity var(--t-hover) linear, transform var(--t-press) var(--ease-out);
}
.feature-pick img { width: 100%; height: 100%; object-fit: cover; }
.feature-pick:hover { opacity: 0.85; }
.feature-pick:active { transform: scale(0.95); }
.feature-pick[aria-pressed="true"] { opacity: 1; outline: 2px solid var(--p-400); outline-offset: -2px; }
.feature-pick[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--accent);
}
@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; min-height: 0; }
  .feature-media { aspect-ratio: 16 / 9; }
}

/* busca que é título */
.typeline {
  position: relative;
  display: block;
  border-bottom: 2px solid var(--line-2);
  transition: border-color var(--t-hover) linear;
}
.typeline:focus-within { border-color: var(--p-500); }
.typeline input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: var(--fs-sec);
  line-height: 1.1;
  padding: 0 0 0.04em;
  caret-color: var(--p-400);
  letter-spacing: -0.004em;
}
.typeline input:focus { outline: none; }
.typeline input::placeholder { color: var(--line-3); }
.typeline input::-webkit-search-cancel-button { display: none; }
.typeline-go {
  position: absolute;
  right: 0; bottom: 50%;
  transform: translateY(50%);
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  transition: background-color var(--t-hover) linear, transform var(--t-press) var(--ease-out);
}
.typeline-go svg { width: 24px; height: 24px; }
.typeline-go:hover { background: var(--accent-hi); }
.typeline-go:active { transform: translateY(50%) scale(0.92); }
.typeline input { padding-right: 72px; }
.try-row { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 20px; align-items: center; }
.try-row .muted { font-size: var(--fs-14); margin-right: 4px; }
.answer { margin-top: 24px; }
.answer .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.answer .rows:not(:empty) { min-height: 152px; }
@media (max-width: 860px) { .answer .rows { grid-template-columns: 1fr; } }
.answer-note { color: var(--ink-3); font-size: var(--fs-14); margin-bottom: 8px; min-height: 22px; }

/* lista em linhas (novidades, resultados ao vivo) */
.rows { display: grid; gap: 4px; }
.row-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 10px 8px;
  margin-inline: -8px;
  border-radius: var(--r-ctl);
  cursor: pointer;
  transition: background-color var(--t-hover) linear;
}
.row-item:hover { background: var(--s1); }
.row-thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-chip);
  overflow: hidden;
  background: var(--s2);
}
.row-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.row-item:hover .row-thumb img { transform: scale(1.06); }
.row-main { min-width: 0; display: grid; gap: 2px; }
.row-title { font-weight: 600; font-size: var(--fs-16); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { color: var(--ink-3); font-size: var(--fs-14); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-end { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: var(--fs-14); font-variant-numeric: tabular-nums; }
.row-end svg { width: 18px; height: 18px; color: var(--ink-3); transition: transform var(--t-hover) var(--ease-out), color var(--t-hover) linear; }
.row-item:hover .row-end svg { transform: translateX(3px); color: var(--ink); }

/* "afirmação + tabela empurrada à direita" */
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.split-statement { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 24px; }
.split-table { grid-column: 7 / span 6; }
.split-figure {
  margin-top: auto;
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 340px;
  overflow: hidden;
  border-radius: var(--r-panel);
  background: var(--s2);
}
.split-figure img { width: 100%; height: 100%; object-fit: cover; }
.split-figure figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  font-size: var(--fs-14);
  font-weight: 600;
}
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split-statement, .split-table { grid-column: auto; }
  .split-figure { display: none; }
  .row-item { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; }
}
@media (max-width: 480px) {
  .row-item { grid-template-columns: 88px minmax(0, 1fr); }
  .row-end { display: none; }
}

/* passos como uma barra */
.stages {
  display: flex;
  gap: 6px;
  min-height: 200px;
  height: 24vh;
  max-height: 260px;
}
.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 18px 18px 16px;
  border-radius: var(--r-panel);
  color: #fff;
  overflow: hidden;
  transform-origin: left center;
}
.stage b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-d2);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.stage small { font-size: var(--fs-14); font-weight: 600; opacity: 0.86; }
.stage.s1 { flex-grow: 9; background: var(--p-900); }
.stage.s2 { flex-grow: 9; background: var(--p-800); }
.stage.s3 { flex-grow: 9; background: var(--p-700); }
.stage.s4 { flex-grow: 7; background: var(--p-600); }
.stage.s5 { flex-grow: 66; background: var(--ink); color: #000; }
.stage.s5 b { font-size: var(--fs-sec); }
.stage-notes { margin-top: 18px; max-width: 72ch; color: var(--ink-2); font-size: var(--fs-16); }
.stage-notes strong { color: var(--ink); }
.stage-notes-old {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}
.stage-notes p { min-width: 0; font-size: var(--fs-14); color: var(--ink-2); padding-right: 12px; }
.stage-notes p:nth-child(1), .stage-notes p:nth-child(2), .stage-notes p:nth-child(3) { flex: 9 1 0; }
.stage-notes p:nth-child(4) { flex: 7 1 0; }
.stage-notes p:nth-child(5) { flex: 66 1 0; color: var(--ink); }
.stage-notes strong { color: var(--ink); }
@media (max-width: 860px) {
  .stages { flex-direction: column; height: auto; max-height: none; min-height: 0; }
  .stage { min-height: 76px; flex-direction: row; align-items: center; transform-origin: top center; }
  .stage.s5 { min-height: 200px; flex-direction: column; align-items: flex-start; }
  .stage small { text-align: right; max-width: 60%; }
  .stage.s5 small { text-align: left; max-width: none; }
}

/* perguntas: título largo, perguntas recuadas */
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; }
.faq-grid .sec-title { grid-column: 1 / -1; margin-bottom: 56px; }
.faq-list { grid-column: 5 / -1; display: grid; gap: 8px; }
.qa {
  border-radius: var(--r-panel);
  transition: background-color var(--t-enter) var(--ease-out);
}
.qa[open] { background: var(--s1); }
.qa summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: var(--fs-20);
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--r-panel);
  transition: color var(--t-hover) linear;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: #fff; }
.qa summary .chev {
  position: relative;
  width: 14px; height: 14px;
  flex: none;
  transition: transform var(--t-enter) var(--ease-out);
}
.qa summary .chev::before, .qa summary .chev::after {
  content: '';
  position: absolute;
  top: 6px;
  width: 9px; height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.qa summary .chev::before { left: 0; transform: rotate(45deg); }
.qa summary .chev::after { right: 0; transform: rotate(-45deg); }
.qa[open] summary .chev { transform: rotate(180deg); }
.qa-body { padding: 0 24px 24px; max-width: 64ch; color: var(--ink-2); font-size: var(--fs-16); }
.qa-body p + p { margin-top: 10px; }
.qa-body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .faq-grid .sec-title { margin-bottom: 28px; }
  .faq-list { grid-column: 1 / -1; }
  .qa summary { padding: 18px 16px; }
  .qa-body { padding: 0 16px 20px; }
}

/* ── rodapé roxo ─────────────────────────────────────────────────────── */
.footer {
  margin-top: var(--sec-gap);
  background: var(--accent);
  color: #fff;
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 48px;
}
.footer-about { display: grid; gap: 12px; align-content: start; max-width: 38ch; font-size: var(--fs-14); color: #fff; }
.footer-about p { opacity: 0.92; }
.footer-col { display: grid; gap: 2px; align-content: start; font-size: var(--fs-14); }
.footer-col h3, .footer-col .h { font-size: var(--fs-14); font-weight: 600; opacity: 0.72; margin-bottom: 8px; }
.footer-col a {
  position: relative;
  justify-self: start;
  padding: 6px 0;
  font-weight: 600;
}
.footer-col a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-enter) var(--ease-out);
}
.footer-col a:hover::after { transform: scaleX(1); }
.footer-word {
  display: block;
  margin-top: clamp(48px, 8vw, 120px);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  /* "KYZEN" ocupa a largura da coluna */
  font-size: calc((min(100vw, var(--wrap) + 2 * var(--gutter)) - 2 * var(--gutter)) / 2.28);
  line-height: 0.78;
  letter-spacing: -0.012em;
  color: #fff;
  white-space: nowrap;
  padding-bottom: 0.04em;
}
.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 20px 24px;
  font-size: var(--fs-14);
}
.footer-baseband { background: var(--accent-lo); }
.footer-base a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 36px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-word { font-size: calc((100vw - 2 * var(--gutter)) / 2.28); }
}

/* ── modal de detalhes do pack (modal.js) ─────────────────────────────── */
.kyzen-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms linear, visibility 0s linear 260ms;
  overscroll-behavior: contain;
}
.kyzen-modal-backdrop.open { opacity: 1; visibility: visible; transition: opacity 220ms linear; }
.kyzen-modal-dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--s1);
  border-radius: 10px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  transition: transform 420ms var(--ease-out), opacity 260ms linear;
  scrollbar-width: thin;
  scrollbar-color: var(--line-3) transparent;
}
.kyzen-modal-backdrop.open .kyzen-modal-dialog { transform: none; opacity: 1; }
.md-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.md-media { position: relative; background: #000; min-width: 0; }
.md-stage { position: relative; aspect-ratio: 16 / 9; background: var(--s2); overflow: hidden; }
.md-stage > img { width: 100%; height: 100%; object-fit: cover; transition: opacity 300ms linear; }
.md-stage > img.is-swapping { opacity: 0.25; }
.modal-video-container { position: absolute; inset: 0; display: none; background: #000; }
.modal-video-container.active { display: block; }
.modal-video-container iframe { width: 100%; height: 100%; border: 0; }
.md-media-tabs {
  position: absolute;
  left: 12px; bottom: 12px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.modal-media-tab-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-chip);
  background: rgba(0, 0, 0, 0.78);
  color: var(--ink-2);
  font-size: var(--fs-12);
  font-weight: 600;
  transition: color var(--t-hover) linear, background-color var(--t-hover) linear;
}
.modal-media-tab-btn.active { background: var(--ink); color: #000; }
.modal-gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #000;
}
.modal-gallery-thumbs::-webkit-scrollbar { display: none; }
.modal-thumb {
  flex: none;
  width: 96px;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-chip);
  overflow: hidden;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity var(--t-hover) linear, transform var(--t-press) var(--ease-out);
}
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumb:hover { opacity: 0.85; }
.modal-thumb:active { transform: scale(0.95); }
.modal-thumb.active { opacity: 1; outline: 2px solid var(--p-400); outline-offset: -2px; }
.md-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 28px 24px;
  min-width: 0;
}
.md-type { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: var(--fs-14); font-weight: 600; }
.md-type .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-3); }
.md-type img { width: 16px; height: 16px; image-rendering: pixelated; }
.modal-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.875rem, 1.5rem + 1.2vw, 2.6rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.modal-subhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: -6px; color: var(--ink-2); font-size: var(--fs-14); }
.modal-creator strong { color: var(--ink); font-weight: 600; }
.modal-rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.modal-rating img { width: 14px; height: 14px; image-rendering: pixelated; }
.modal-reviews-count { color: var(--ink-3); font-weight: 500; }
.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
}
.modal-spec-card { padding: 12px 14px; display: grid; gap: 2px; }
.modal-spec-card:nth-child(odd) { border-right: 1px solid var(--line); }
.modal-spec-card:nth-child(n+3) { border-top: 1px solid var(--line); }
.spec-label { font-size: var(--fs-12); font-weight: 600; color: var(--ink-3); }
.spec-value { font-size: var(--fs-14); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.spec-value.highlight { color: var(--p-200); }
.modal-actions { display: flex; gap: 8px; }
.modal-btn-download { flex: 1; }
.modal-btn-download.unavailable { background: var(--s3); color: var(--ink-3); }
.modal-spinner { width: 18px; height: 18px; animation: kz-spin 900ms linear infinite; }
@keyframes kz-spin { to { transform: rotate(360deg); } }
.modal-btn-fav.active { color: var(--p-300); border-color: var(--p-700); }
.modal-btn-fav.active svg { fill: currentColor; }
.modal-btn-fav svg { fill: none; stroke: currentColor; stroke-width: 2; }

.dl-box {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r-panel);
  background: var(--s2);
}
.dl-status-row, .dl-meta-row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-14); }
.dl-status-text { color: var(--ink); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.dl-status-text a { color: var(--p-200); text-decoration: underline; text-underline-offset: 3px; }
.dl-status-percent { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.dl-meta-row { color: var(--ink-3); font-size: var(--fs-12); font-variant-numeric: tabular-nums; }
.dl-progress-track { height: 6px; border-radius: 6px; background: var(--s3); overflow: hidden; }
.dl-progress-fill {
  height: 100%;
  width: 100%;
  border-radius: 6px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 260ms var(--ease-out);
}
.dl-status-text.is-error { color: var(--warn); }
.modal-section-title { font-size: var(--fs-14); font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.modal-desc { color: var(--ink-2); font-size: var(--fs-16); white-space: pre-line; overflow-wrap: anywhere; }
.modal-install-guide {
  padding: 14px 16px;
  border-radius: var(--r-panel);
  border: 1px solid var(--line);
  font-size: var(--fs-14);
  color: var(--ink-2);
}
.modal-install-guide b { color: var(--ink); }
.modal-close-btn {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  transition: background-color var(--t-hover) linear, transform var(--t-press) var(--ease-out);
}
.modal-close-btn svg { width: 18px; height: 18px; }
.modal-close-btn:hover { background: #000; }
.modal-close-btn:active { transform: scale(0.92); }
.kz-banner-slot:empty { display: none; }
.kz-banner-slot iframe { display: block; width: 100%; height: 100px; border: 0; border-radius: var(--r-ctl); background: var(--s2); }
@media (max-width: 860px) {
  .kyzen-modal-backdrop { padding: 0; align-items: flex-end; }
  .kyzen-modal-dialog {
    width: 100%;
    max-height: 94dvh;
    border-radius: 14px 14px 0 0;
    transform: translateY(100%);
    transition: transform 460ms var(--ease-out), opacity 1ms linear;
    opacity: 1;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .kyzen-modal-backdrop.open .kyzen-modal-dialog { transform: none; }
  .md-grid { grid-template-columns: 1fr; }
  .md-body { padding: 20px 16px 24px; }
  .md-grip { display: block; }
}
.md-grip {
  display: none;
  position: absolute;
  top: 8px; left: 50%;
  z-index: 7;
  width: 40px; height: 4px;
  margin-left: -20px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
}

/* doca de download flutuante */
.kyzen-dl-floating-dock {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 150;
  width: min(380px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r-panel);
  background: var(--s2);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-enter) var(--ease-out), opacity var(--t-hover) linear;
}
.kyzen-dl-floating-dock.show { transform: none; opacity: 1; pointer-events: auto; }
@media (max-width: 860px) { .kyzen-dl-floating-dock { right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); } }

/* ── toasts ───────────────────────────────────────────────────────────── */
.kz-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 12px 12px 16px;
  border-radius: var(--r-panel);
  background: var(--ink);
  color: #000;
  font-size: var(--fs-14);
  font-weight: 600;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 420ms var(--ease-out), opacity 200ms linear;
  pointer-events: none;
}
.kz-toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.kz-toast-icon { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: #000; color: var(--ok); }
.kz-toast-icon.heart { color: var(--p-300); }
.kz-toast-icon.warn, .kz-toast-icon.info { color: var(--warn); }
.kz-toast-icon svg { width: 14px; height: 14px; }
.kz-toast-close { width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; color: #333; transition: background-color var(--t-hover) linear; }
.kz-toast-close:hover { background: rgba(0,0,0,0.08); }
@media (max-width: 860px) { .kz-toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }

.kyzen-toast-container {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 300;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
@media (max-width: 860px) { .kyzen-toast-container { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); } }
.kyzen-live-toast {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 6px;
  padding: 14px 16px 16px;
  border-radius: var(--r-panel);
  background: var(--s2);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  animation: kz-toast-in 420ms var(--ease-out) both;
}
.kyzen-live-toast.hide { animation: kz-toast-out 260ms var(--ease-io) both; }
.kyzen-live-toast .toast-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--p-300); font-size: var(--fs-12); font-weight: 600; }
.kyzen-live-toast .toast-title { font-weight: 600; font-size: var(--fs-16); color: var(--ink); }
.kyzen-live-toast .toast-desc { font-size: var(--fs-14); color: var(--ink-2); }
.kyzen-live-toast .toast-action { justify-self: start; margin-top: 4px; font-size: var(--fs-14); font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.kyzen-live-toast .toast-close { width: 32px; height: 32px; margin: -6px -8px -6px 0; border-radius: 50%; color: var(--ink-3); font-size: 20px; }
.kyzen-live-toast .toast-close:hover { color: var(--ink); background: var(--s3); }
.kyzen-live-toast .toast-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: left; animation: kz-toast-timer 8s linear forwards; }
@keyframes kz-toast-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes kz-toast-out { to { opacity: 0; transform: translateY(12px); } }
@keyframes kz-toast-timer { to { transform: scaleX(0); } }

/* ── conta (kyzen-auth) ───────────────────────────────────────────────── */
.kz-auth-wrapper { display: flex; align-items: center; }
.kz-btn-login-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--r-ctl);
  color: var(--ink-2);
  font-size: var(--fs-14);
  font-weight: 600;
  transition: color var(--t-hover) linear, background-color var(--t-hover) linear;
}
.kz-btn-login-trigger:hover { color: var(--ink); background: var(--s1); }
.kz-btn-login-trigger svg { width: 16px; height: 16px; }
.kz-user-menu { position: relative; }
.kz-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  max-width: 180px;
  padding: 0 10px 0 6px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--line-2);
  font-size: var(--fs-14);
  font-weight: 600;
  transition: border-color var(--t-hover) linear, background-color var(--t-hover) linear;
}
.kz-user-pill:hover { border-color: var(--line-3); background: var(--s1); }
.kz-avatar {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  flex: none;
  border-radius: var(--r-chip);
  background: var(--p-900);
  color: var(--p-100);
  font-weight: 600;
  font-size: var(--fs-14);
}
.kz-username { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kz-chevron { width: 14px; height: 14px; color: var(--ink-3); transition: transform var(--t-hover) var(--ease-out); }
.kz-user-pill[aria-expanded="true"] .kz-chevron { transform: rotate(180deg); }
.kz-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; display: inline-block; }
.kz-user-dropdown {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  z-index: 90;
  width: 260px;
  padding: 6px;
  border-radius: var(--r-panel);
  background: var(--s2);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  transform-origin: top right;
  transform: translateY(-6px) scale(0.97);
  opacity: 0;
  visibility: hidden;
  transition: transform 220ms var(--ease-out), opacity 160ms linear, visibility 0s linear 220ms;
}
.kz-user-dropdown.show { transform: none; opacity: 1; visibility: visible; transition: transform 260ms var(--ease-out), opacity 160ms linear; }
.kz-dd-header { padding: 10px 10px 8px; }
.kz-dd-name { display: flex; align-items: center; gap: 8px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kz-dd-badge { margin-top: 2px; color: var(--ink-3); font-size: var(--fs-12); font-weight: 500; }
.kz-pulse-cyan { display: none; }
.kz-dd-divider { height: 1px; margin: 6px 4px; background: var(--line-2); }
.kz-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border-radius: var(--r-ctl);
  color: var(--ink-2);
  font-size: var(--fs-14);
  font-weight: 600;
  text-align: left;
  transition: background-color var(--t-hover) linear, color var(--t-hover) linear;
}
.kz-dd-item svg { width: 16px; height: 16px; flex: none; }
.kz-dd-item span:first-of-type { flex: 1; }
.kz-dd-item:hover { background: var(--s3); color: var(--ink); }
.kz-dd-danger:hover { color: var(--bad); }
.kz-dd-count { min-width: 24px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--s3); color: var(--ink-2); font-size: var(--fs-12); display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }

/* diálogos de conta, listas e cookies */
.kz-auth-modal-backdrop, .kz-list-modal-backdrop, .kz-cookie-modal-backdrop, .customdb-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
}
.kz-auth-modal-backdrop.open, .kz-list-modal-backdrop.open, .kz-cookie-modal-backdrop.show, .customdb-backdrop.open {
  display: flex;
  animation: kz-fade 200ms linear both;
}
.kz-auth-modal-dialog, .kz-list-modal-dialog, .kz-cookie-modal, .customdb-card {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 24px;
  border-radius: 10px;
  background: var(--s1);
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  animation: kz-pop 420ms var(--ease-out) both;
}
.kz-list-modal-dialog { width: min(620px, 100%); }
.customdb-card { width: min(560px, 100%); }
.kz-cookie-modal { width: min(560px, 100%); }
@keyframes kz-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kz-pop { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
.kz-auth-modal-header, .kz-modal-top, .kz-modal-header, .customdb-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.kz-auth-modal-title-row, .kz-modal-heading { display: flex; align-items: center; gap: 12px; }
.kz-auth-modal-logo { width: 40px; height: 40px; border-radius: var(--r-ctl); }
.kz-auth-modal-header h3, .kz-modal-heading h3, .kz-modal-title, .customdb-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.kz-auth-modal-header .sub, .kz-modal-heading .sub, .customdb-sub { margin-top: 6px; color: var(--ink-3); font-size: var(--fs-14); }
.heading-fav-icon { width: 22px; height: 22px; color: var(--p-300); fill: currentColor; flex: none; }
.kz-modal-close, .customdb-close {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  color: var(--ink-2);
  font-size: 22px;
  line-height: 1;
  transition: background-color var(--t-hover) linear, color var(--t-hover) linear, transform var(--t-press) var(--ease-out);
}
.kz-modal-close:hover, .customdb-close:hover { background: var(--s3); color: var(--ink); }
.kz-modal-close:active, .customdb-close:active { transform: scale(0.92); }
.kz-auth-modal-body { display: grid; gap: 14px; }
.kz-auth-discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  border-radius: var(--r-ctl);
  background: #5865f2;
  color: #fff;
  font-weight: 600;
  transition: background-color var(--t-hover) linear, transform var(--t-press) var(--ease-out);
}
.kz-auth-discord-btn:hover { background: #4752c4; }
.kz-auth-discord-btn:active { transform: scale(0.98); }
.kz-discord-icon { width: 20px; height: 20px; }
.kz-auth-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: var(--fs-12); font-weight: 600; }
.kz-auth-divider::before, .kz-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.kz-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; border-radius: var(--r-ctl); background: var(--s2); }
.kz-auth-tab { height: 38px; border-radius: 4px; color: var(--ink-3); font-size: var(--fs-14); font-weight: 600; transition: background-color var(--t-hover) linear, color var(--t-hover) linear; }
.kz-auth-tab.on { background: var(--s3); color: var(--ink); }
.kz-auth-field { display: grid; gap: 8px; margin-bottom: 14px; }
.kz-auth-field label { font-size: var(--fs-14); font-weight: 600; color: var(--ink-2); }
.kz-auth-error { padding: 10px 12px; border-radius: var(--r-ctl); background: var(--bad-bg); color: var(--bad); font-size: var(--fs-14); margin-bottom: 12px; }
.kz-auth-note { padding: 10px 12px; border-radius: var(--r-ctl); background: var(--ok-bg); color: var(--ok); font-size: var(--fs-14); margin-bottom: 12px; }
.kz-auth-submit-btn, .customdb-submit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 48px;
  border-radius: var(--r-ctl);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: background-color var(--t-hover) linear, transform var(--t-press) var(--ease-out);
}
.kz-auth-submit-btn:hover, .customdb-submit-btn:hover { background: var(--accent-hi); }
.kz-auth-submit-btn:active, .customdb-submit-btn:active { transform: scale(0.98); }
.kz-auth-submit-btn:disabled, .customdb-submit-btn:disabled { background: var(--s3); color: var(--ink-3); }
.customdb-submit-btn svg { width: 16px; height: 16px; }
.kz-auth-disclaimer { color: var(--ink-3); font-size: var(--fs-12); text-align: center; }
.kz-auth-disclaimer a { color: var(--ink-2); text-decoration: underline; }
.kz-modal-list-body { display: grid; gap: 4px; }
.kz-list-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--r-ctl);
  transition: background-color var(--t-hover) linear;
}
.kz-list-item:hover { background: var(--s2); }
.kz-item-thumb { width: 88px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-chip); background: var(--s2); }
.kz-item-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kz-item-meta { display: flex; gap: 8px; color: var(--ink-3); font-size: var(--fs-12); flex-wrap: wrap; }
.kz-item-badge { color: var(--ink-2); font-weight: 600; }
.kz-item-actions { display: flex; gap: 6px; }
.kz-btn-action { height: 34px; padding: 0 12px; border-radius: var(--r-ctl); font-size: var(--fs-12); font-weight: 600; display: inline-flex; align-items: center; border: 1px solid var(--line-2); color: var(--ink-2); transition: background-color var(--t-hover) linear, color var(--t-hover) linear; }
.kz-btn-action:hover { background: var(--s3); color: var(--ink); }
.kz-btn-dl { background: var(--accent); border-color: var(--accent); color: #fff; }
.kz-btn-dl:hover { background: var(--accent-hi); color: #fff; }
.kz-btn-trash { width: 34px; justify-content: center; padding: 0; font-size: 18px; }
.kz-btn-trash:hover { color: var(--bad); }
.kz-empty-box { display: grid; justify-items: center; gap: 8px; padding: 36px 16px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-3); border-radius: var(--r-panel); }
.kz-empty-box svg { width: 28px; height: 28px; }
.kz-empty-box h4 { color: var(--ink); font-size: var(--fs-16); }
.kz-empty-box p { font-size: var(--fs-14); max-width: 36ch; }
@media (max-width: 560px) {
  .kz-list-item { grid-template-columns: 72px minmax(0, 1fr); }
  .kz-item-thumb { width: 72px; }
  .kz-item-actions { grid-column: 1 / -1; }
  .kz-btn-view { display: none; }
}

/* Custom DB */
.customdb-body { display: grid; gap: 14px; }
.customdb-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; border-radius: var(--r-ctl); background: var(--s2); }
.customdb-tab { height: 38px; border-radius: 4px; color: var(--ink-3); font-size: var(--fs-14); font-weight: 600; transition: background-color var(--t-hover) linear, color var(--t-hover) linear; }
.customdb-tab.active { background: var(--s3); color: var(--ink); }
.customdb-field { display: grid; gap: 8px; }
.customdb-field label { font-size: var(--fs-14); font-weight: 600; color: var(--ink-2); }
.customdb-status { padding: 10px 12px; border-radius: var(--r-ctl); font-size: var(--fs-14); }
.customdb-status.success { background: var(--ok-bg); color: var(--ok); }
.customdb-status.error { background: var(--bad-bg); color: var(--bad); }

/* cookies */
.kz-cookie-banner {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 240;
  width: min(440px, calc(100vw - 32px));
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 10px;
  background: var(--s2);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  transform: translateY(24px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--t-enter) var(--ease-out), opacity var(--t-hover) linear, visibility 0s linear var(--t-enter);
}
.kz-cookie-banner.show { transform: none; opacity: 1; visibility: visible; transition: transform var(--t-enter) var(--ease-out), opacity var(--t-hover) linear; }
.kz-cookie-text { font-size: var(--fs-14); color: var(--ink-2); }
.kz-cookie-text strong { display: block; color: var(--ink); font-size: var(--fs-16); margin-bottom: 4px; }
.kz-cookie-text a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.kz-cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kz-cookie-actions .btn { flex: 1 1 auto; }
.kz-cookie-link { min-height: 44px; padding: 0 6px; color: var(--ink-2); font-size: var(--fs-14); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.kz-cookie-link:hover { color: var(--ink); }
.kz-cookie-category { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.kz-category-info h4 { font-size: var(--fs-16); font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kz-category-info p { margin-top: 4px; font-size: var(--fs-14); color: var(--ink-3); }
.kz-badge-required { font-size: var(--fs-12); color: var(--ok); font-weight: 600; }
.kz-modal-footer { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
.kz-modal-footer .btn { flex: 1 1 auto; }
@media (max-width: 860px) {
  .kz-cookie-banner {
    left: 12px; right: 12px;
    max-width: none;
    width: auto;
    bottom: calc(76px + env(safe-area-inset-bottom));
    padding: 14px;
    gap: 10px;
  }
  .kz-cookie-text strong { font-size: var(--fs-14); margin-bottom: 2px; }
  .kz-cookie-text { font-size: 0.8125rem; line-height: 1.45; }
  .kz-cookie-actions { flex-wrap: nowrap; }
  .kz-cookie-actions .btn { height: 44px; padding: 0 12px; }
  .kz-cookie-link { padding: 0 2px; white-space: nowrap; }
}

/* ── gate ─────────────────────────────────────────────────────────────── */
.gate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 80px);
  padding-top: clamp(28px, 5vw, 64px);
  align-items: start;
}
.gate-intro { display: grid; gap: 20px; position: sticky; top: calc(var(--bar-h) + 32px); }
.gate-intro .page-title { font-size: clamp(2.75rem, 1.6rem + 4.6vw, 6rem); }
.gate-target {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: var(--r-panel);
  background: var(--s1);
}
.gate-target img { width: 128px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-chip); background: var(--s2); }
.gate-target .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gate-target .m { color: var(--ink-3); font-size: var(--fs-14); }
.gate-panel {
  background: var(--s1);
  border-radius: 10px;
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  gap: 22px;
}
#flowArea { display: grid; gap: 18px; }
#flowArea[hidden] { display: none; }
.gate-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.step-node {
  position: relative;
  display: grid;
  gap: 8px;
  font-size: var(--fs-12);
  font-weight: 600;
  color: var(--ink-3);
}
.step-node::before {
  content: '';
  display: block;
  height: 6px;
  border-radius: 6px;
  background: var(--s3);
  transition: background-color var(--t-enter) linear;
}
.step-node[data-state="active"] { color: var(--ink); }
.step-node[data-state="active"]::before { background: var(--p-400); animation: kz-breathe 1.2s var(--ease-io) infinite alternate; }
.step-node[data-state="done"] { color: var(--ink-2); }
.step-node[data-state="done"]::before { background: var(--accent); }
.step-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; color: var(--ink-3); font-size: var(--fs-14); font-weight: 600; }
.step-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 0.95; }
.step-desc { color: var(--ink-2); }
.step-desc strong { color: var(--ink); }
.instructions ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.instructions li::marker { color: var(--p-300); font-weight: 600; }
.instructions strong { color: var(--ink); }
.timer {
  display: none;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: var(--r-panel);
  background: var(--s2);
}
.timer.show { display: grid; animation: kz-pop 380ms var(--ease-out) both; }
.timer-ring {
  position: relative;
  width: 72px; height: 72px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 30px;
  font-variant-numeric: tabular-nums;
}
.timer-ring svg { position: absolute; inset: 0; width: 72px; height: 72px; transform: rotate(-90deg); }
.timer-ring circle { fill: none; stroke-width: 6; }
.timer-ring .track { stroke: var(--s3); }
.timer-ring .bar { stroke: var(--p-400); stroke-linecap: round; stroke-dasharray: 188.5; stroke-dashoffset: 188.5; transition: stroke-dashoffset 1s linear; }
.timer-ring.done .bar { stroke: var(--ok); }
.timer-copy { display: grid; gap: 2px; font-size: var(--fs-14); color: var(--ink-2); }
.timer-copy strong { color: var(--ink); font-size: var(--fs-16); }
.continue { display: none; gap: 8px; padding: 14px 16px; border-radius: var(--r-panel); border: 1px solid var(--line-2); }
.continue.show { display: grid; animation: kz-pop 380ms var(--ease-out) both; }
.continue h3 { font-size: var(--fs-16); }
.continue p { color: var(--ink-2); font-size: var(--fs-14); }
.continue .btn { justify-self: start; }
.captcha { display: none; gap: 10px; justify-items: start; }
.captcha.show { display: grid; }
.captcha-note { color: var(--ink-3); font-size: var(--fs-14); }
#actionBtn { width: 100%; height: 56px; font-size: var(--fs-18); }
#actionBtn.countdown-locked { background: var(--s3); color: var(--ink-2); }
#actionBtn .lock-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--p-900);
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}
#actionBtn > span, #actionBtn > svg { position: relative; z-index: 1; }
#actionBtn.countdown-locked .lock-fill { animation: kz-lock var(--lock-ms, 5000ms) linear forwards; }
@keyframes kz-lock { to { transform: scaleX(1); } }
#actionBtn.unlocked-pulse { animation: kz-nudge 900ms var(--ease-out) 1; }
@keyframes kz-nudge { 30% { transform: scale(1.025); } 60% { transform: scale(0.99); } 100% { transform: none; } }
.alert {
  display: none;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border-radius: var(--r-panel);
  background: var(--warn-bg);
  border: 1px solid #4a3a16;
}
.alert.show { display: grid; animation: kz-pop 380ms var(--ease-out) both; }
.alert svg { width: 24px; height: 24px; color: var(--warn); }
.alert h2 { font-size: var(--fs-16); font-weight: 600; color: var(--ink); }
.alert p { color: var(--ink-2); font-size: var(--fs-14); margin-top: 2px; }
.alert button { margin-top: 10px; }
.victory { display: none; gap: 16px; justify-items: start; }
.victory.show { display: grid; animation: kz-pop 460ms var(--ease-out) both; }
.victory-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.victory-icon svg { width: 30px; height: 30px; }
.victory h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.25rem, 1.6rem + 2vw, 3.5rem); line-height: 0.95; }
.victory p { color: var(--ink-2); }
.gate-faq { display: grid; gap: 8px; margin-top: 8px; }
.gate-legal { color: var(--ink-3); font-size: var(--fs-14); }
.gate-legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.ad-slot { justify-content: center; min-height: 90px; padding: 8px; border-radius: var(--r-panel); background: var(--s1); overflow: hidden; }
.ad-slot iframe { display: block; width: 100%; height: 100px; border: 0; }
@media (max-width: 640px) {
  .step-node { font-size: 0; gap: 0; }
  .gate-intro .lead { font-size: var(--fs-16); }
}
@media (max-width: 960px) {
  .gate-layout { grid-template-columns: 1fr; }
  .gate-intro { position: static; }
  .gate-target { grid-template-columns: 104px minmax(0, 1fr); }
  .gate-target img { width: 104px; }
}

/* ── notícias ─────────────────────────────────────────────────────────── */
.news-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 0;
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--s1);
  cursor: pointer;
}
.news-lead-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--s2); }
.news-lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.news-lead:hover .news-lead-media img { transform: scale(1.03); }
.news-lead-body { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 3vw, 36px); }
.news-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--ink-3); font-size: var(--fs-14); font-weight: 600; }
.news-meta .tag { color: var(--p-200); }
.news-lead h2, .news-h {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  line-height: 0.95;
  text-wrap: balance;
}
.news-lead p { color: var(--ink-2); }
.news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
.news-card { display: grid; gap: 10px; align-content: start; cursor: pointer; }
.news-card .media { aspect-ratio: 16 / 9; border-radius: var(--r-panel); overflow: hidden; background: var(--s2); }
.news-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.news-card:hover .media img { transform: scale(1.04); }
.news-card h3 { font-size: var(--fs-20); font-weight: 600; line-height: 1.25; }
.news-card .excerpt { color: var(--ink-2); font-size: var(--fs-14); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#news-list { margin-top: 40px; }
@media (max-width: 960px) {
  .news-lead { grid-template-columns: 1fr; }
  .news-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .news-list { grid-template-columns: 1fr; } }
.reader-backdrop {
  position: fixed; inset: 0; z-index: 220;
  display: none; justify-content: center; align-items: flex-start;
  padding: 40px 16px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.82);
}
.reader-backdrop.open { display: flex; animation: kz-fade 200ms linear both; }
.reader {
  position: relative;
  width: min(760px, 100%);
  border-radius: 10px;
  background: var(--s1);
  overflow: hidden;
  animation: kz-pop 420ms var(--ease-out) both;
}
.reader-media { aspect-ratio: 16 / 9; background: var(--s2); }
.reader-media img { width: 100%; height: 100%; object-fit: cover; }
.reader-body { padding: clamp(20px, 4vw, 40px); display: grid; gap: 14px; }
.reader-body h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 0.95; }
.reader-text { color: var(--ink-2); font-size: var(--fs-18); line-height: 1.65; white-space: pre-line; }

/* ── status / configs ─────────────────────────────────────────────────── */
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel { background: var(--s1); border-radius: var(--r-panel); padding: 24px; display: grid; gap: 16px; align-content: start; }
.panel h2 { font-size: var(--fs-20); font-weight: 600; }
.panel p { color: var(--ink-2); font-size: var(--fs-14); }
.kv { display: grid; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--fs-14); }
.kv > div:first-child { border-top: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: var(--fs-12); font-weight: 600; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.neutral { background: var(--s3); color: var(--ink-2); }
@media (max-width: 860px) { .status-grid { grid-template-columns: 1fr; } }

/* ── textos legais ───────────────────────────────────────────────────── */
.prose { max-width: 72ch; color: var(--ink-2); font-size: var(--fs-16); line-height: 1.7; }
.prose h2 { margin-top: 48px; margin-bottom: 12px; color: var(--ink); font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); line-height: 1; }
.prose h3 { margin-top: 28px; margin-bottom: 8px; color: var(--ink); font-size: var(--fs-18); font-weight: 600; }
.prose p + p, .prose ul + p, .prose p + ul, .prose ol + p, .prose p + ol { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 6px; }
.prose li::marker { color: var(--p-300); }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose code { font-size: 0.92em; padding: 1px 6px; border-radius: 4px; background: var(--s2); }
.toc { position: sticky; top: calc(var(--bar-h) + 24px); display: grid; gap: 2px; font-size: var(--fs-14); }
.toc a { padding: 6px 0; color: var(--ink-3); transition: color var(--t-hover) linear; }
.toc a:hover { color: var(--ink); }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; display: none; } }

/* ── movimento: entrada ao rolar (só transform/opacity) ──────────────── */
.js .rv {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}
.js .rv.in {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 75ms);
}
.js .hero-title .ht-line {
  opacity: 0;
  transform: translate3d(0, 0.18em, 0);
}
.js.ready .hero-title .ht-line {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease-out), transform 1000ms var(--ease-out);
}
.js.ready .hero-title .ht-line.l2 { transition-delay: 90ms; }
.js .hero-title .ht-slot { clip-path: inset(0 100% 0 0 round 0.06em); }
.js.ready .hero-title .ht-slot { clip-path: inset(0 0 0 0 round 0.06em); transition: clip-path 1100ms var(--ease-out) 160ms; }
.js .stages.rv .stage { transform: scaleX(0.001); }
.js .stages.rv.in .stage { transform: none; transition: transform 1000ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js .cards-row .card.kz-card-in, .js .grid-cards .card.kz-card-in, .js .mods-grid .card.kz-card-in, .js .results-grid .card.kz-card-in, .js .foryou-grid .card.kz-card-in {
  animation: kz-card-in 620ms var(--ease-out) both;
  animation-delay: calc(min(var(--kz-i, 0), 10) * 45ms);
}
@keyframes kz-card-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .js .stages.rv .stage { transform: scaleY(0.001); }
}

/* transições entre páginas (navegadores com suporte) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: kz-vt-out 180ms var(--ease-io) both; }
::view-transition-new(root) { animation: kz-vt-in 320ms var(--ease-out) both; }
@keyframes kz-vt-out { to { opacity: 0; } }
@keyframes kz-vt-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .js .rv, .js .hero-title .ht-line, .js .stages.rv .stage { opacity: 1 !important; transform: none !important; }
  .js .hero-title .ht-slot { clip-path: none !important; }
  .ht-slot .slot-progress { display: none; }
  @view-transition { navigation: none; }
}

/* ── peças das telas de catálogo ─────────────────────────────────────── */
.select-sm { width: auto; height: 40px; font-size: var(--fs-14); font-weight: 600; }
.sentinel { height: 1px; }
.load-more { display: flex; justify-content: center; padding-top: 32px; }
.load-more .btn[hidden] { display: none; }
.count-note { min-height: 22px; margin-bottom: 16px; }
.typeline-page { margin-top: 28px; }
.typeline-page input { font-size: var(--fs-d2); padding-right: 120px; }
.typeline-page input::placeholder { color: var(--ink-3); opacity: 0.55; }
.typeline-clear {
  position: absolute;
  right: 64px; top: 50%;
  transform: translateY(-50%);
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--ink-3);
  font-size: 24px; line-height: 1;
  transition: color var(--t-hover) linear, background-color var(--t-hover) linear;
}
.typeline-clear:hover { color: var(--ink); background: var(--s2); }
.typeline-page .typeline-go { width: 48px; height: 48px; }
.idle { display: grid; gap: 4px; padding: 8px 0 24px; }
.idle-title { font-size: var(--fs-18); font-weight: 600; }
.idle-note { font-size: var(--fs-14); max-width: 60ch; margin-top: 12px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.news-card, .news-lead { position: relative; }
.news-lead h2 a, .news-card h3 a { color: inherit; }
.timer-ring span { position: relative; z-index: 1; }
.gate-target .t, .gate-target .m { margin: 0; }
@media (max-width: 640px) {
  .toolbar .chips { flex-wrap: wrap; overflow: visible; }
  .typeline-page input { padding-right: 100px; }
  .toolbar { align-items: stretch; }
  .toolbar-right { width: 100%; justify-content: space-between; }
}

/* ── página do pack (/mod/<uuid>) ─────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 24px 0 20px; font-size: var(--fs-14); color: var(--ink-3); }
.crumbs a { color: var(--ink-2); transition: color var(--t-hover) linear; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-3); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.mod-media { aspect-ratio: 16 / 9; border-radius: var(--r-panel); overflow: hidden; background: var(--s2); }
.mod-media img { width: 100%; height: 100%; object-fit: cover; }
.mod-info { display: grid; gap: 18px; }
.mod-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 1.6rem + 2.6vw, 4rem);
  line-height: 0.92;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.mod-note { font-size: var(--fs-14); color: var(--ink-3); }
.mod-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-top: clamp(56px, 7vw, 104px); }
.mod-body .sec-title { font-size: var(--fs-d2); margin-bottom: 16px; }
.mod-desc { white-space: pre-line; overflow-wrap: anywhere; }
.install-steps { list-style: decimal; padding-left: 22px; display: grid; gap: 10px; }
.install-steps li::marker { color: var(--p-300); font-weight: 600; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.gallery-item { aspect-ratio: 16 / 9; border-radius: var(--r-ctl); overflow: hidden; background: var(--s2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.gallery-item:hover img { transform: scale(1.05); }
@media (max-width: 860px) {
  .mod-hero, .mod-body { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crumbs [aria-current] { max-width: 22ch; }
}
@media (max-width: 640px) {
  .gate-intro .lead { display: none; }
  .gate-intro .page-title { font-size: clamp(2.4rem, 1rem + 7vw, 3.4rem); }
  .gate-layout { padding-top: 20px; gap: 20px; }
}
