/* =====================================================================
   Camada visual global — fundo preto quente, destaque laranja-vermelho,
   cabeçalho em pílula com logo central, card de pôster com preço sobreposto.
   O destaque vem de --primary (definido em layouts/layout.html).
   ===================================================================== */
:root {
  --ac: hsl(var(--primary));
  --ac-hi: color-mix(in srgb, hsl(var(--primary)) 52%, #fff);
  --ac-lo: color-mix(in srgb, hsl(var(--primary)) 72%, #000);
  --kz-bg: rgb(6,8,17);
  --kz-cream: #f1f5fc;
  --kz-line-2: rgba(255, 255, 255, .08);
  --kz-green: #86efac;
}

/* ---------- base ---------- */
::selection { background: hsl(var(--primary) / .4); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--kz-bg); }
::-webkit-scrollbar-thumb { background: var(--ac); border-radius: 8px; border: 2px solid var(--kz-bg); }

body { color: var(--kz-cream); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -5; pointer-events: none;
  background:
    radial-gradient(1100px 380px at 50% -6%, hsl(var(--primary) / .30), transparent 72%),
    radial-gradient(520px 620px at 100% 12%, hsl(var(--primary) / .12), transparent 70%),
    radial-gradient(520px 620px at 0% 12%, hsl(var(--primary) / .08), transparent 70%);
}
.grid-background { display: none !important; }
[data-ac-fill], [data-ac-stroke] { color: var(--ac); }
body h1, body h2, body h3, body h4 { font-family: 'Geist', system-ui, sans-serif; letter-spacing: -.02em; }

/* ---------- faixa de anúncio ---------- */
#top-announce { background: linear-gradient(90deg, var(--ac-lo), var(--ac) 50%, var(--ac-lo)); color: #fff; font-weight: 600; }

/* ---------- cabeçalho: pílula, logo no centro ---------- */
.kz-header { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 16px 0 0 !important; pointer-events: none; }
.kz-header > .container { pointer-events: auto; }
.kz-pill {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px; padding: 8px 20px;
  border-radius: 9999px; border: 1px solid var(--kz-line-2);
  background: rgba(6,8,17,.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .7), 0 0 20px hsl(var(--primary) / .08);
  transition: background .25s, border-color .25s;
}
.kz-header.is-stuck .kz-pill { background: rgba(6,8,17,.82); border-color: hsl(var(--primary) / .22); }
.kz-left, .kz-right { display: flex; align-items: center; gap: 16px; min-width: 0; }
.kz-burger { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .8); cursor: pointer; transition: color .2s; }
.kz-burger:hover { color: #fff; }
.kz-burger svg { width: 24px; height: 24px; }

.kz-search { position: relative; width: 220px; }
.kz-search > i, .kz-search > svg { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--ac-hi); pointer-events: none; }
.kz-search input, #search-bar, #search-bar-mobile {
  width: 100%; height: 40px; padding: 0 14px 0 38px;
  border-radius: 9999px !important; border: 1px solid rgba(255, 255, 255, .1) !important;
  background: rgba(10, 3, 6, .45) !important; color: #fff; font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.kz-search input::placeholder { color: rgba(255, 255, 255, .75); }
#search-bar:focus, #search-bar-mobile:focus { border-color: hsl(var(--primary) / .7) !important; box-shadow: 0 0 0 3px hsl(var(--primary) / .15) !important; }
.kz-search--wide { width: 100%; }
#search-result, #search-result-mobile { min-width: 320px; border: 1px solid var(--kz-line-2) !important; background: #070b16 !important; border-radius: 16px !important; box-shadow: 0 30px 60px -20px #000; }

.kz-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; }
.kz-logo img { height: 52px; width: auto; object-fit: contain; filter: drop-shadow(0 0 8px hsl(var(--primary) / .7)); transition: transform .25s ease, filter .25s ease; }
.kz-logo:hover img { transform: scale(1.07); filter: drop-shadow(0 0 12px hsl(var(--primary) / 1)); }

.kz-links { display: flex; align-items: center; gap: 26px; margin-right: 10px; }
.kz-links a { color: #f1f5fc; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .2s; }
.kz-links a:hover { color: var(--ac-hi); }

.kz-actions { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kz-round {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid transparent; background: transparent; color: #fff; cursor: pointer; text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
}
.kz-round svg { width: 18px; height: 18px; }
.kz-round:hover { background: rgba(255, 255, 255, .08); }
.kz-round--user { background: #fff; color: #080b16; }
.kz-round--user:hover { background: #fff; transform: scale(1.05); }
.kz-round--cart { border-color: hsl(var(--primary) / .7); background: hsl(var(--primary) / .22); color: var(--ac-hi); }
.kz-round--cart:hover { background: hsl(var(--primary) / .22); border-color: var(--ac); }
/* gatilho do suporte (componente próprio) no mesmo formato */
.kz-actions li > .relative > button:not(#profile-button) { width: 40px; height: 40px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: #fff; }
.kz-actions li > .relative > button:not(#profile-button):hover { background: rgba(255, 255, 255, .08); }

@media (max-width: 1279px) { .kz-links { display: none; } }
@media (max-width: 1023px) {
  .kz-left .kz-search { display: none; }
  .kz-pill { min-height: 60px; padding: 6px 12px 6px 16px; }
  .kz-logo img { height: 42px; }
}
@media (min-width: 1024px) { .kz-only-mobile, #mobile-search-container { display: none !important; } }

/* menu lateral (abre pelo ☰, do lado esquerdo) */
.kh-site-menu.kz-menu { inset: 0 auto 0 0; border-left: 0; border-right: 1px solid hsl(var(--primary) / .24); background: linear-gradient(180deg, #090d1b, #060811); transform: translateX(-102%); }
.kh-site-menu.kz-menu.is-open { transform: translateX(0); }
.kz-menu__top { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--kz-line-2); }
.kz-menu__top strong { font-size: 16px; font-weight: 800; color: #fff; }
.kz-menu__close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--kz-line-2); background: rgba(255, 255, 255, .04); color: #d4d4d8; cursor: pointer; }
.kz-menu__close:hover { color: #fff; border-color: hsl(var(--primary) / .6); }
.kz-menu__scroll { flex: 1; overflow-y: auto; padding: 14px 12px 24px; }
.kz-menu__label { display: block; margin: 14px 10px 8px; color: rgba(255, 255, 255, .4); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.kz-menu__link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px; border-radius: 10px; color: #d4d4d8; font-size: 15px; font-weight: 500; text-decoration: none; transition: background .18s, color .18s; }
.kz-menu__link svg { width: 18px; height: 18px; color: var(--ac-hi); flex: none; }
.kz-menu__link:hover { background: hsl(var(--primary) / .12); color: #fff; }

/* ---------- botões e campos ---------- */
body .btn-primary { background: linear-gradient(135deg, var(--ac), var(--ac-lo)); color: #fff; font-weight: 800; border-radius: 8px; box-shadow: 0 8px 24px -10px hsl(var(--primary) / .8); transition: transform .2s, filter .2s; }
body .btn-primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.1); }
body .btn-secondary, body .btn-outline { border-color: rgba(255, 255, 255, .12); }
body .btn-secondary:hover, body .btn-outline:hover { border-color: hsl(var(--primary) / .6); }
body input:focus-visible, body select:focus-visible, body textarea:focus-visible { box-shadow: 0 0 0 3px hsl(var(--primary) / .18); border-color: hsl(var(--primary) / .8); }

/* ---------- título das vitrines ---------- */
.kz-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.kz-head h2 { margin: 0; color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.kz-head p { margin: 6px 0 0; color: rgba(255, 255, 255, .48); font-size: .9rem; }
.kz-head__link { display: inline-flex; align-items: center; gap: 6px; flex: none; padding-bottom: 4px; color: var(--ac-hi); font-size: 14px; font-weight: 700; text-decoration: none; }
.kz-head__link:hover { color: #fff; }
.kz-head__link svg { width: 16px; height: 16px; }

#categories-container .package-list, #store .package-list { gap: 1.65rem .85rem !important; }

/* botão "Ver mais" das vitrines */
.home-category-view-more {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 22px;
  border-radius: 9999px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(8,11,22,.7);
  color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s;
}

/* ---------- card de jogo: pôster inteiro com informações sobrepostas ---------- */
.kz-card { position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 9px; background: #000; isolation: isolate; transition: transform .3s ease, box-shadow .3s ease; }
.kz-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -22px hsl(var(--primary) / .8), 0 0 0 1px hsl(var(--primary) / .6); }
.kz-card__cover { position: absolute; inset: 0; display: block; background: #000; }
.kz-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.kz-card:hover .kz-card__cover img { transform: scale(1.05); }
.kz-card__ribbon { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: block; padding: 3px 5px; background: #8fe3ab; color: #08301b; font-size: 9.6px; font-weight: 800; letter-spacing: .14em; line-height: 1.5; text-align: center; text-transform: uppercase; pointer-events: none; }
.kz-card__pre { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.kz-card__pre .kz-card__ribbon { position: static; width: 100%; }
.kz-card__ribbon--pre { background: var(--ac); color: #fff; }
.kz-card__date { padding: 3px 9px; border-radius: 9999px; background: rgba(0, 0, 0, .8); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-size: 10px; font-weight: 600; }
.kz-card__sold { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; background: rgba(0, 0, 0, .78); pointer-events: none; }
.kz-card__sold span { padding: 6px 12px; border-radius: 9999px; border: 1px solid rgba(248, 113, 113, .45); background: rgba(69, 10, 10, .9); color: #fca5a5; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.kz-card__info {
  position: absolute; left: -2px; right: -2px; bottom: 0; z-index: 4; padding: 40px 14px 34px; pointer-events: none;
  background: linear-gradient(to top, #000 0%, #000 16%, rgba(0, 0, 0, .94) 30%, rgba(0, 0, 0, .82) 42%, rgba(0, 0, 0, .55) 62%, rgba(0, 0, 0, .22) 82%, transparent 100%);
}
.kz-card__title-link { display: block; color: inherit; text-decoration: none; }
.kz-card__title { margin: 0 0 6px; color: #fafafa; font-size: 15px; font-weight: 700; line-height: 1.25; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.kz-card__prices { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "key key" "was was" "now off"; align-items: end; column-gap: 7px; padding-right: 54px; }
.kz-card__keyline { grid-area: key; display: flex; margin-bottom: 7px; }
.kz-card__platform { display: none; }
.kz-card__key { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 9999px; border: 1px solid hsl(var(--primary) / .7); background: rgba(6, 8, 17, .75); color: var(--ac-hi); font-size: 9.9px; line-height: 1.2; white-space: nowrap; }
.kz-card__key svg { width: 12px; height: 12px; stroke-width: 2; flex: none; }
.kz-card__was-row { display: contents; }
.kz-card__was { grid-area: was; color: rgba(255, 255, 255, .4); font-size: 17px; font-weight: 600; line-height: 1.1; text-decoration: line-through; white-space: nowrap; }
.kz-card__off { grid-area: off; padding-bottom: 3px; color: #86efac; font-size: 12px; font-weight: 800; line-height: 1; white-space: nowrap; }
.kz-card__now-link { grid-area: now; display: block; color: inherit; text-decoration: none; }
.kz-card__now { color: #fff; font-size: 24px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; white-space: nowrap; }
.kz-card__pix { position: absolute; left: 12px; bottom: 13px; z-index: 5; color: #d4d4d8; font-size: 11px; line-height: 1.5; pointer-events: none; }
.kz-card__cart { position: absolute; right: 12px; bottom: 13px; z-index: 5; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--ac); background: var(--ac); color: #fff; box-shadow: 0 8px 20px -8px hsl(var(--primary) / .9); pointer-events: none; transition: filter .2s, transform .2s; }
.kz-card__cart svg { width: 16px; height: 16px; }
.kz-card:hover .kz-card__cart { filter: brightness(1.2); transform: scale(1.05); }
@media (max-width: 639px) {
  .kz-card__info { padding: 30px 10px 28px; }
  .kz-card__title { font-size: 13px; }
  .kz-card__was { font-size: 13px; }
  .kz-card__now { font-size: 18px; }
  .kz-card__off { font-size: 10.5px; padding-bottom: 2px; }
  .kz-card__prices { padding-right: 44px; column-gap: 5px; }
  .kz-card__cart { width: 38px; height: 38px; right: 8px; bottom: 10px; }
  .kz-card__pix { left: 8px; bottom: 9px; font-size: 10px; }
}

/* ---------- superfícies genéricas (páginas internas) ---------- */
#cart-drawer > div { border-left: 1px solid hsl(var(--primary) / .28); background: #070b16; }
.dialog > div { border: 1px solid var(--kz-line-2); background: #070b16; box-shadow: 0 30px 80px -24px #000, 0 0 50px -28px hsl(var(--primary) / .6); }
body aside > div.sticky { border-color: var(--kz-line-2); background: linear-gradient(180deg, hsl(var(--primary) / .07), #070b16 45%); }
body aside li > div[class*="bg-foreground/10"] { background: linear-gradient(90deg, hsl(var(--primary) / .28), transparent); }

/* ---------- rodapé ---------- */
body footer { background: transparent !important; border-top: 1px solid hsl(var(--primary) / .28); }

@media (prefers-reduced-motion: reduce) {
  .kz-card, .kz-card__cover img, .kz-card__cart, body .btn-primary { transition: none; }
}

/* ---------- combo completo: os outros jogos ficam travados ---------- */
.combo-game-card.is-locked { cursor: not-allowed; }
.combo-game-card.is-locked .combo-game-card__bg { filter: grayscale(.85) brightness(.5); }
.combo-game-card.is-locked .combo-game-card__content { opacity: .55; }
.combo-game-card.is-locked .combo-game-card__btn { pointer-events: none; cursor: not-allowed; border-color: rgba(255, 255, 255, .14) !important; background: rgba(255, 255, 255, .05) !important; color: rgba(255, 255, 255, .6) !important; box-shadow: none !important; }
.combo-game-card.is-locked:hover { transform: none !important; }

/* ===============================================================
   BASED KEYS — Títulos das categorias em pílula com divisórias
   Layout inspirado na referência; paleta azul da identidade da loja.
   =============================================================== */
.bk-category-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1vw, 14px);
  width: 100%;
  min-width: 0;
  margin: 0 0 26px;
}
.bk-category-divider::before,
.bk-category-divider::after {
  content: "";
  display: block;
  flex: 1 1 0;
  min-width: 0;
  height: 1px;
  pointer-events: none;
}
.bk-category-divider::before {
  background: linear-gradient(90deg, transparent 0%, hsl(var(--primary) / .24) 100%);
}
.bk-category-divider::after {
  background: linear-gradient(90deg, hsl(var(--primary) / .24) 0%, transparent 100%);
}
.bk-category-divider__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  max-width: min(100%, 86vw);
  min-height: 44px;
  margin: 0;
  padding: 11px clamp(22px, 2.4vw, 34px);
  border: 1px solid hsl(var(--primary) / .25);
  border-radius: 9999px;
  background: linear-gradient(112deg, hsl(var(--primary) / .52), hsl(var(--primary) / .85));
  box-shadow: 0 6px 22px hsl(var(--primary) / .14), inset 0 1px 0 rgba(255, 255, 255, .08);
  color: #fff;
  font-family: inherit;
  font-size: clamp(14px, 1.45vw, 18px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .015em;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.bk-category-divider--page {
  margin-bottom: 28px;
}
@media (max-width: 480px) {
  .bk-category-divider { gap: 8px; margin-bottom: 19px; }
  .bk-category-divider__label { min-height: 40px; padding: 10px 18px; font-size: 14px; }
}
/* ===== Montador de combo: modal "Escolha a edição" ===== */
.combo-edition-overlay[hidden] { display: none; }
.combo-edition-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(3, 3, 8, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: combo-edition-fade .18s ease-out;
}
html.combo-edition-open { overflow: hidden; }
.combo-edition-panel {
  position: relative;
  width: 100%; max-width: 460px; max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 20px;
  border-radius: 22px;
  background: #0e0c15;
  border: 1px solid hsl(var(--primary) / .35);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9), 0 0 60px -20px hsl(var(--primary) / .35);
  animation: combo-edition-pop .22s cubic-bezier(.16, 1, .3, 1);
}
.combo-edition-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #fff;
  border: 0; cursor: pointer; transition: background .15s;
}
.combo-edition-close:hover { background: rgba(255, 255, 255, .16); }
.combo-edition-close svg { width: 16px; height: 16px; }
.combo-edition-head { display: flex; align-items: center; gap: 14px; padding-right: 44px; margin-bottom: 18px; }
.combo-edition-cover { width: 56px; height: 80px; flex: none; object-fit: cover; border-radius: 10px; background: #1a1724; }
.combo-edition-headtext { min-width: 0; }
.combo-edition-kicker {
  display: block; margin-bottom: 4px;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: hsl(var(--primary));
}
.combo-edition-title { margin: 0; font-size: 19px; line-height: 1.2; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.combo-edition-list { display: flex; flex-direction: column; gap: 10px; }
.combo-edition-option {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px; border-radius: 14px; text-align: left; cursor: pointer; color: #fff;
  background: #14111c; border: 1px solid rgba(255, 255, 255, .1);
  transition: border-color .15s, background .15s, transform .15s;
}
.combo-edition-option:hover, .combo-edition-option:focus-visible {
  outline: none; border-color: hsl(var(--primary) / .7); background: hsl(var(--primary) / .08);
}
.combo-edition-option:active { transform: scale(.99); }
.combo-edition-option.is-current { border-color: hsl(var(--primary)); background: hsl(var(--primary) / .12); }
.combo-edition-option__main { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.combo-edition-option__icon { display: inline-flex; color: hsl(var(--primary)); }
.combo-edition-option__icon svg { width: 18px; height: 18px; }
.combo-edition-option__name { font-size: 15px; font-weight: 700; }
.combo-edition-badge {
  padding: 3px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
  background: hsl(var(--primary)); color: #fff;
}
.combo-edition-option__prices { display: flex; flex-direction: column; align-items: flex-end; flex: none; line-height: 1.15; }
.combo-edition-compare { font-size: 12px; color: rgba(255, 255, 255, .45); text-decoration: line-through; }
.combo-edition-price { font-size: 18px; font-weight: 900; }
.combo-edition-note { margin: 16px 2px 0; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .6); }
@keyframes combo-edition-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes combo-edition-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) {
  .combo-edition-overlay { align-items: flex-end; padding: 0; }
  .combo-edition-panel { max-width: none; border-radius: 22px 22px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .combo-edition-overlay, .combo-edition-panel { animation: none; } }

/* Card/slot de jogos com várias edições */
.combo-game-card__from { font-size: 10px; font-weight: 700; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .04em; }
.combo-slot-filled.has-editions { cursor: pointer; }
.combo-slot-filled.has-editions .combo-slot-price { text-decoration: underline dotted rgba(255, 255, 255, .4); text-underline-offset: 3px; }
