/* Página inicial — segue a imagem de referência */

.h-hero { position: relative; background: #000; }
.h-hero img { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.h-hero::after {
  content: ''; position: absolute; inset: auto 0 0; height: 70px;
  background: linear-gradient(transparent, var(--fundo)); pointer-events: none;
}

/* Barra de atalhos */
.h-atalhos {
  position: relative; z-index: 2;
  width: calc(100% - 44px); max-width: 1476px; margin: -22px auto 0; padding: 5px 8px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: linear-gradient(180deg, #0c1c13, #08130d);
  border: 1px solid var(--borda); border-radius: var(--raio);
  box-shadow: 0 0 0 1px rgba(61, 220, 111, .08), 0 0 24px rgba(61, 220, 111, .12);
}
.h-atalhos a {
  display: flex; align-items: center; gap: 12px; padding: 3px 16px;
  border-left: 1px solid var(--borda);
}
.h-atalhos a:first-child { border-left: 0; }
.h-atalhos svg { font-size: 26px; color: var(--verde); filter: drop-shadow(0 0 6px var(--verde-brilho)); }
.h-atalhos b { display: block; font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: .3px; }
.h-atalhos small { display: block; font-size: 12px; color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-atalhos a:hover b { color: var(--verde); }

/* Grade principal */
.h-grade {
  max-width: 1520px; margin: 0 auto; padding: 10px 22px 10px;
  display: grid; gap: 10px;
  grid-template-columns: 330px minmax(0, 1fr) 380px;
  grid-template-areas:
    "chat lanc rank"
    "chat ult  vip";
  align-items: stretch;
}
.h-esq { grid-area: esq; display: flex; flex-direction: column; gap: 10px; }
.h-generos { flex: 1; }
.h-lanc { grid-area: lanc; }
.h-ranking { grid-area: rank; }
.h-ultimos { grid-area: ult; }
.h-vip { grid-area: vip; }
.h-banners { grid-area: ban; }

.h-caixa {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #0d1d14, #081109);
  border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 8px 10px;
  box-shadow: inset 0 1px 0 rgba(61, 220, 111, .15);
}
.h-cab { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.h-pilula, .h-titulo-solto {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .4px;
}
.h-pilula {
  padding: 3px 12px 3px 8px; border: 1px solid var(--verde); border-radius: 8px;
  background: rgba(61, 220, 111, .08); box-shadow: 0 0 10px rgba(61, 220, 111, .15);
}
.h-pilula svg, .h-titulo-solto svg { font-size: 17px; color: var(--verde); }
.h-ver { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--verde); }
.h-ver:hover { text-decoration: underline; }
.h-verde { color: var(--verde); }
.h-deco { position: absolute; right: 0; top: 0; height: 100%; width: auto; opacity: .45; pointer-events: none; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }

/* Gêneros — igual à imagem de referência; o título "Próximos lançamentos" leva para a página de pedidos */
.h-generos {
  display: flex; flex-direction: column; overflow: visible; padding: 0 0 6px;
  border-color: rgba(61, 220, 111, .7);
  box-shadow: 0 0 14px rgba(61, 220, 111, .18), inset 0 1px 0 rgba(61, 220, 111, .2);
}
.h-generos-cab {
  position: relative; display: flex; align-items: center; justify-content: flex-end;
  min-height: 62px; padding: 6px 8px 6px 78px; gap: 4px; z-index: 2;
  transition: transform .22s ease, background .22s, box-shadow .22s;
  border-bottom: 1px solid rgba(61, 220, 111, .35);
  background: linear-gradient(90deg, rgba(61, 220, 111, .06), transparent 70%);
  border-radius: var(--raio) var(--raio) 0 0;
}
.h-generos-cab img {
  position: absolute; left: -12px; bottom: -4px; width: 96px; height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6));
  /* apaga o fundo quadrado da imagem, deixando só o panda */
  -webkit-mask-image: radial-gradient(ellipse 50% 52% at 50% 46%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 52% at 50% 46%, #000 62%, transparent 100%);
}
.h-generos-cab h2 {
  display: flex; align-items: baseline; gap: 4px; white-space: nowrap;
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 10.5px; text-transform: uppercase; color: #e6efe9;
}
.h-generos-cab h2 b { font-size: 18px; font-weight: 700; color: var(--verde); text-shadow: 0 0 12px var(--verde-brilho); }
.h-generos-cab img { transition: transform .25s ease; }
.h-generos-ir { flex-shrink: 0; font-size: 16px; color: var(--verde); transition: transform .22s ease; }
/* Ao passar o mouse: o topo inteiro sobe e acende, o panda dá um pulinho e a seta anda */
.h-generos-cab:hover, .h-generos-cab:focus-visible {
  transform: translateY(-4px);
  background: linear-gradient(90deg, rgba(61, 220, 111, .2), rgba(61, 220, 111, .06));
  box-shadow: 0 8px 18px rgba(0, 0, 0, .45), 0 0 18px rgba(61, 220, 111, .35);
  border-radius: var(--raio);
}
.h-generos-cab:hover img { transform: translateY(-5px) rotate(-6deg) scale(1.05); }
.h-generos-cab:hover h2 b { color: #7af3a3; }
.h-generos-cab:hover .h-generos-ir { transform: translateX(4px); }
.h-generos ul {
  flex: 1; list-style: none; margin: 0; padding: 4px 14px 0;
  display: flex; flex-direction: column; justify-content: space-between;
}
.h-generos li { border-bottom: 1px solid rgba(61, 220, 111, .12); }
.h-generos li:last-child { border-bottom: 0; }
.h-generos li a {
  display: flex; align-items: center; gap: 14px; padding: 6px 6px 6px 8px;
  border-radius: 6px; font-size: 15px; font-weight: 600; color: #e6efe9;
}
.h-generos li a:hover { background: rgba(61, 220, 111, .1); color: var(--verde); }
.g-ic { font-size: 21px; color: var(--verde); filter: drop-shadow(0 0 5px rgba(61, 220, 111, .35)); }
.g-seta { margin-left: auto; font-size: 16px; color: #cfd8d2; }

/* Carrossel */
.h-lanc, .h-ultimos { display: flex; flex-direction: column; }
.carrossel {
  position: relative; flex: 1; min-height: 190px;
  border-radius: 10px; overflow: hidden; background: #000;
  border: 1px solid var(--borda);
}
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.slide.ativo { opacity: 1; visibility: visible; }
.slide-arte { width: 100%; height: 100%; object-fit: cover; }
/* Obra sem banner: usa a capa esticada como banner, com o título por cima */
.slide-arte-capa { object-position: center 22%; filter: saturate(1.15); }
.slide-titulo {
  position: absolute; left: 14px; top: 38px; z-index: 1; max-width: 60%;
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 30px; line-height: 1.05; text-transform: uppercase;
  color: #fff; text-shadow: 0 2px 0 #000, 0 0 18px rgba(0, 0, 0, .9);
}
.slide-novo { position: absolute; top: 10px; left: 10px; z-index: 2; }
.slide-base {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: flex-end; gap: 10px; padding: 26px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .88) 55%);
}
.slide-base .h-novo { position: absolute; left: 12px; top: 6px; }
.slide-base p { margin: 0; font-size: 13px; font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide-base .btn { font-size: 13px; padding: .4em 1em; border-radius: 8px; }
.car-btn {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 30px; height: 44px; border-radius: 8px;
  background: rgba(5, 12, 8, .75); border: 1px solid var(--borda); color: var(--verde);
  display: grid; place-items: center; cursor: pointer; font-size: 18px;
}
.car-btn:hover { border-color: var(--verde); }
.car-ant { left: 8px; } .car-ant svg { transform: rotate(180deg); }
.car-prox { right: 8px; }
.car-pontos { display: flex; justify-content: center; gap: 5px; padding-top: 6px; }
.car-pontos button { width: 14px; height: 4px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .25); cursor: pointer; }
.car-pontos button.ativo { width: 22px; background: var(--verde); }

/* Roleta de capas: a do meio é a escolhida; o botão Aleatório gira e sorteia uma obra */
.h-aleatorio { cursor: pointer; color: var(--texto); font: inherit; font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .4px; transition: background .15s, box-shadow .15s, transform .1s; }
.h-aleatorio:hover { background: rgba(61, 220, 111, .18); box-shadow: 0 0 16px rgba(61, 220, 111, .35); }
.h-aleatorio:active { transform: scale(.96); }
.h-aleatorio[disabled] { cursor: wait; opacity: .85; }
.h-aleatorio[disabled] svg { animation: dado .45s linear infinite; }
@keyframes dado { to { transform: rotate(360deg); } }

.roleta {
  position: relative; flex: 1; min-height: 290px; overflow: hidden; border-radius: 10px;
  background: radial-gradient(ellipse at center, rgba(61, 220, 111, .14), transparent 65%), #050c08;
  border: 1px solid var(--borda); touch-action: pan-y;
}
.roleta-card {
  --pos: 0; --esc: 1;
  position: absolute; left: 50%; top: 50%; width: var(--larg, 120px); aspect-ratio: 2 / 3;
  border-radius: 10px; overflow: hidden; background: var(--painel-2); border: 2px solid var(--borda);
  transform: translate(-50%, -50%) translateX(calc(var(--pos) * var(--passo, 90px))) scale(var(--esc));
  transition: transform var(--t, .45s) cubic-bezier(.3, .7, .3, 1), opacity var(--t, .45s), filter var(--t, .45s);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .6);
}
.roleta-card img { width: 100%; height: 100%; object-fit: cover; }
.roleta-card.centro { border-color: var(--verde); box-shadow: 0 0 22px var(--verde-brilho), 0 10px 30px rgba(0, 0, 0, .7); }
.roleta-card.escolhida { animation: escolhida 1s ease-out 2; }
@keyframes escolhida {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 111, .9), 0 10px 30px rgba(0, 0, 0, .7); }
  100% { box-shadow: 0 0 0 22px rgba(61, 220, 111, 0), 0 10px 30px rgba(0, 0, 0, .7); }
}
.roleta .car-btn { z-index: 50; }

.roleta-info { display: flex; align-items: center; gap: 10px; padding-top: 8px; min-height: 38px; }
.roleta-info b { font-size: 17px; font-weight: 800; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roleta-info small { color: var(--verde); font-weight: 800; white-space: nowrap; }
.roleta-info .btn { margin-left: auto; border-radius: 8px; font-size: 14px; padding: .55em 1.2em; }

/* Listas (atualizações e ranking) */
.h-lista { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.h-lista a { display: flex; align-items: center; gap: 10px; padding: 3px 4px; border-radius: 8px; }
.h-lista a:hover { background: rgba(61, 220, 111, .08); }
.h-num {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
  background: var(--verde); color: #04140a;
}
.h-lista img { width: 42px; height: 38px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: var(--painel-2); }
.h-lista-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.h-lista-txt b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-lista-txt small { font-size: 12px; color: var(--texto-2); }
.h-lista time { font-size: 10px; color: var(--texto-2); white-space: nowrap; }

.h-abas { position: relative; z-index: 1; display: flex; gap: 6px; margin-bottom: 8px; }
.h-abas button {
  flex: 1; padding: 5px 4px; border-radius: 6px; cursor: pointer;
  background: transparent; border: 1px solid var(--borda); color: var(--texto-2);
  font: 700 11px var(--corpo);
}
.h-abas button[aria-selected="true"] { background: var(--verde); border-color: var(--verde); color: #04140a; }
.h-lista-rank .h-num { width: 22px; height: 22px; background: transparent; border: 2px solid var(--verde); color: var(--verde); }
.h-lista-rank li:nth-child(4) .h-num { border-color: transparent; color: var(--texto); }
.h-lista-rank img { width: 34px; height: 34px; }
.h-lista-rank .h-lista-txt small { font-weight: 800; }

/* Últimos lançamentos: faixa que passa sozinha, devagar e sem parar (para ao passar o mouse) */
.h-trilho-wrap { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; }
.h-trilho { flex: 1; min-width: 0; overflow: hidden; padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.h-faixa { display: flex; gap: 14px; width: max-content; animation: h-rolar var(--dur, 60s) linear infinite; }
.h-trilho:hover .h-faixa, .h-trilho.pausado .h-faixa, body:has(.h-pop.aberto) .h-faixa { animation-play-state: paused; }
@keyframes h-rolar { to { transform: translateX(calc(-50% - 7px)); } }
.h-card { position: relative; display: flex; flex: 0 0 148px; }
/* Só a capa (inteira, em pé); as informações aparecem no cartão flutuante ao passar o mouse */
.h-card-img {
  position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--borda); background: var(--painel-2); transition: border-color .15s, transform .2s;
}
.h-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .3s; }
.h-card:hover .h-card-img, .h-card-img:focus-visible { border-color: var(--verde); transform: translateY(-3px); }
.h-card-cap-sel { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, .78); color: var(--verde); font-size: 11px; font-weight: 800; }
.h-card-info { display: none; }

/* Cartão flutuante (criado pelo main.js) */
.h-pop {
  position: absolute; z-index: 60; width: 300px; overflow: hidden;
  background: #121c16; border: 1px solid var(--verde); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .7), 0 0 22px rgba(61, 220, 111, .2);
  opacity: 0; transform: scale(.92); transition: opacity .16s, transform .16s;
  pointer-events: none;
}
.h-pop.aberto { opacity: 1; transform: none; pointer-events: auto; }
.h-pop { scroll-margin: 16px 0 16px; }
.h-pop .h-card-cap-sel { display: none; }
.h-pop-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.h-pop-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.h-pop .h-card-info { display: block; padding: 14px 18px 18px; }
.h-card-info h3 { font-size: 20px; font-weight: 800; line-height: 1.2; margin-bottom: 10px; }
.h-pop .h-card-selos { margin-bottom: 10px; }
.h-card-novo { color: var(--verde); font-weight: 800; font-size: 14px; }
.h-card-tag { padding: 2px 9px; border: 1.5px solid #cfd8d2; border-radius: 7px; font-size: 12px; font-weight: 800; }
.h-card-cap { margin: 0 0 14px; font-weight: 800; color: var(--texto-2); }
.h-card-acoes { display: flex; align-items: center; gap: 14px; }
.h-card-acoes .btn { border-radius: 8px; font-size: 14px; padding: .5em 1.1em; }
.h-card-mais { font-size: 26px; color: var(--texto); display: grid; }
.h-card-mais:hover { color: var(--verde); }

/* VIP */
.h-vip { display: flex; flex-direction: column; }
.h-vip > * { position: relative; z-index: 1; }
.h-vip > .h-deco { position: absolute; z-index: 0; }
.h-vip-cab { display: flex; align-items: center; gap: 10px; }
.h-vip-cab svg { font-size: 30px; color: var(--verde); filter: drop-shadow(0 0 8px var(--verde-brilho)); }
.h-vip-cab h2 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 22px; color: var(--verde); }
.h-vip p { margin: 2px 0 8px 40px; font-size: 11px; color: var(--texto-2); line-height: 1.35; }
.h-vip ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.h-vip li { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.h-vip li svg { font-size: 15px; color: var(--verde); }
.h-vip .btn { margin-top: auto; border-radius: 8px; padding: .5em 1em; font-size: 13px; }

/* Quer ajudar */
.h-apoio { display: flex; align-items: flex-end; gap: 4px; padding: 6px 10px 0 0; }
.h-apoio img { width: 84px; height: auto; align-self: flex-end; }
.h-apoio div { flex: 1; text-align: right; padding-bottom: 10px; }
.h-apoio h2 {
  font-family: 'Oswald', sans-serif; font-weight: 600; font-style: italic; font-size: 16px; line-height: 1.1;
  text-transform: uppercase; color: var(--verde); transform: rotate(-4deg);
}
.h-apoio p { margin: 4px 0 18px; font-size: 11px; color: var(--texto-2); }
.h-apoio-coracao { position: absolute; right: 14px; bottom: 12px; font-size: 22px; color: #fff; }

/* Banners de baixo */
.h-banners { display: grid; grid-template-columns: .9fr 1.45fr .75fr 1.4fr; gap: 10px; align-self: end; }
.h-banners > * { height: 66px; }
.h-banner-img { display: block; border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden; background: #071009; }
.h-banner-img img { width: 100%; height: 100%; object-fit: cover; }
a.h-banner-img:hover { border-color: var(--verde); }
.h-discord, .h-seguro { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.h-discord b, .h-seguro b { display: block; white-space: nowrap; font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 12px; text-transform: uppercase; }
.h-discord small, .h-seguro small { display: block; font-size: 10px; color: var(--texto-2); line-height: 1.3; }
.h-discord-ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: #5865f2; font-size: 26px; }
.h-discord .btn { margin-left: auto; border-radius: 8px; flex-shrink: 0; }
.h-seguro > svg { font-size: 34px; color: var(--verde); flex-shrink: 0; }

/* Telas médias: tira a coluna de atualizações para o lado de baixo */
@media (max-width: 1099px) {
  .h-atalhos { margin: -26px 16px 0; }
  .h-atalhos a { padding: 6px 10px; gap: 10px; }
  .h-atalhos svg { font-size: 28px; }
  .h-atalhos small { display: none; }
  .h-grade {
    grid-template-columns: 270px minmax(0, 1fr) 300px;
    grid-template-areas:
      "chat lanc rank"
      "chat ult  vip";
  }
  .h-atalhos { width: auto; }
  .h-banners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-banners > * { height: auto; min-height: 72px; }
  .h-banner-img img { aspect-ratio: 610 / 132; height: auto; }
}

/* Celular */
@media (max-width: 900px) {
  .h-hero img { aspect-ratio: 3 / 1; }
  .h-hero::after { height: 30px; }
  .h-atalhos {
    margin: 0; border-radius: 0; border-left: 0; border-right: 0;
    display: flex; overflow-x: auto; scrollbar-width: none; padding: 8px 6px;
  }
  .h-atalhos::-webkit-scrollbar { display: none; }
  .h-atalhos a { flex: 0 0 auto; flex-direction: column; gap: 4px; padding: 4px 12px; text-align: center; }
  .h-atalhos svg { font-size: 24px; }
  .h-atalhos b { font-size: 13px; }

  .h-grade {
    padding: 14px 12px 16px; gap: 12px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "lanc" "ult" "chat" "rank" "vip";
  }
  .h-generos ul { flex-direction: row; justify-content: flex-start; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 10px 4px; }
  .h-generos li { border: 0; flex-shrink: 0; }
  .h-generos-cab { min-height: 48px; padding-left: 66px; justify-content: flex-start; }
  .h-generos-cab h2 b { font-size: 19px; }
  .h-generos li a { font-size: 14px; gap: 8px; }
  .g-ic { font-size: 16px; }
  .h-generos ul::-webkit-scrollbar { display: none; }
  .h-generos li a { border: 1px solid var(--borda); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
  .g-seta { display: none; }
  .h-generos-cab img { width: 64px; left: -2px; }

  .carrossel { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .roleta { flex: none; height: 230px; }
  .roleta .car-btn { display: none; }
  /* Celular: tipo em cima, nome inteiro (até 2 linhas) e embaixo capítulos + botão */
  .roleta-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tipo tipo" "titulo titulo" "cap ler"; gap: 6px 12px; align-items: center; padding: 12px 2px 2px; }
  .roleta-info [data-roleta-tipo] { grid-area: tipo; justify-self: start; font-size: 11px; padding: 3px 9px; }
  .roleta-info b { grid-area: titulo; font-size: 17px; line-height: 1.25; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 0; }
  .roleta-info small { grid-area: cap; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
  .roleta-info small::before { content: '📚'; }
  .roleta-info .btn { grid-area: ler; margin: 0; padding: .6em 1.3em; font-size: 14.5px; border-radius: 10px; }
  .car-btn { display: none; }
  .slide-titulo { font-size: 18px; top: 34px; max-width: 40%; }
  .h-card { flex-basis: 118px; }
  .h-faixa { gap: 10px; }


  .h-banners { grid-template-columns: minmax(0, 1fr); }
  .h-discord .btn { padding: .55em 1em; }
  .h-esq { display: contents; }
  .h-generos { grid-area: esq; }
  .h-apoio { grid-row: 8; justify-content: space-between; }
  .h-apoio div { text-align: left; }
}



/* Telas de toque: só a imagem; as informações aparecem ao tocar */
@media (hover: none) {
  .h-pop .h-card-info { padding: 12px 14px 14px; }
  .h-pop .h-card-info h3 { font-size: 17px; }
}


.h-vip.brilho-ouro .h-vip-cab svg, .h-vip.brilho-ouro .h-vip-cab h2 { color: #ffc83d; filter: drop-shadow(0 0 8px rgba(255, 200, 61, .6)); }
.h-vip.brilho-ouro li svg { color: #ffc83d; }
.h-vip.brilho-ouro .btn-verde { background: linear-gradient(180deg, #ffe07a, #ffc83d); color: #1d1400; box-shadow: 0 0 16px rgba(255, 200, 61, .5); }
.h-vip.brilho-ouro .h-verde { color: #ffc83d; }
.h-apoio.brilho-verde h2 { text-shadow: 0 0 12px var(--verde-brilho); }

/* Celular: barrinha no topo do cartão aberto, mostrando o tempo até ele fechar */
.h-pop-tempo { display: none; }
@media (hover: none) {
  .h-pop-tempo { display: block; position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 4px; background: rgba(0, 0, 0, .45); }
  .h-pop-tempo span {
    display: block; height: 100%; background: linear-gradient(90deg, var(--verde), #b6ff9c);
    box-shadow: 0 0 8px var(--verde-brilho); transform-origin: left; animation: pop-tempo var(--dur, 3s) linear forwards;
  }
}
@keyframes pop-tempo { from { transform: scaleX(1); } to { transform: scaleX(0); } }


/* Quando ainda não há obras */
.h-vazio { color: var(--texto-2); text-align: center; padding: 40px 16px; margin: 0; }
.h-vazio-li { color: var(--texto-2); padding: 14px 4px; list-style: none; }

/* ================= Home nova: imagem de fundo, chat e painéis translúcidos ================= */
/* A arte da home fica de fundo, com véu verde por cima para o conteúdo continuar legível */
body.pg-inicio { background: #030a06; }
body.pg-inicio::before, body.pg-inicio::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body.pg-inicio::before { background: url(../img/banner.webp?v=2) center 30% / cover no-repeat; filter: saturate(1.05); }
body.pg-inicio::after {
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(61, 220, 111, .14), transparent 70%),
    linear-gradient(180deg, rgba(3, 12, 7, .58) 0%, rgba(3, 12, 7, .74) 45%, rgba(3, 10, 6, .9) 100%),
    linear-gradient(rgba(20, 110, 55, .22), rgba(20, 110, 55, .22));
}
@media (max-width: 700px) { body.pg-inicio::before { background-image: url(../img/banner-cel.webp?v=2); background-position: center top; } }
body.pg-inicio main { position: relative; z-index: 0; }
body.pg-inicio .h-grade { padding-top: 18px; }
body.pg-inicio .h-caixa {
  background: linear-gradient(180deg, rgba(12, 28, 19, .74), rgba(6, 15, 9, .8));
  border-color: rgba(61, 220, 111, .3);
  backdrop-filter: blur(6px) saturate(1.1); -webkit-backdrop-filter: blur(6px) saturate(1.1);
  box-shadow: inset 0 1px 0 rgba(61, 220, 111, .18), 0 10px 30px rgba(0, 0, 0, .35);
}
body.pg-inicio .h-vip.brilho-ouro { background: linear-gradient(180deg, rgba(30, 24, 6, .72), rgba(10, 9, 3, .82)); }
body.pg-inicio .rodape-destaques, body.pg-inicio .rodape { position: relative; z-index: 0; }

/* Atalhos: só no celular (lá eles são a navegação) */
.h-atalhos { display: none; }

@media (max-width: 900px) {
  .h-atalhos { display: flex; }
  body.pg-inicio .h-atalhos { background: rgba(5, 14, 9, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}

/* Ranking e VIP sem fundo: o banner aparece por trás */
body.pg-inicio .h-ranking, body.pg-inicio .h-vip, body.pg-inicio .h-vip.brilho-ouro {
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none;
}
body.pg-inicio .h-ranking { border-color: rgba(61, 220, 111, .35); }
body.pg-inicio .h-vip { border-color: rgba(255, 200, 61, .55); }
body.pg-inicio .h-ranking, body.pg-inicio .h-vip { text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 0 10px rgba(0, 0, 0, .7); }
body.pg-inicio .h-ranking .h-lista a:hover { background: rgba(5, 14, 9, .45); }
body.pg-inicio .h-ranking .h-abas button:not([aria-selected="true"]) { background: rgba(5, 14, 9, .45); }
body.pg-inicio .h-vip .btn { text-shadow: none; }

/* ================= Chat da Comunidade (mensagens reais, mais nova embaixo) ================= */
.h-chat { grid-area: chat; display: flex; flex-direction: column; padding: 0; contain: size; min-height: 560px; }
.h-chat-cab { display: flex; align-items: center; gap: 10px; padding: 12px 12px 11px; border-bottom: 1px solid rgba(61, 220, 111, .22); background: linear-gradient(180deg, rgba(61, 220, 111, .09), transparent); color: var(--texto); text-decoration: none; }
.h-chat-ic { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--verde); color: #04140a; box-shadow: 0 0 14px rgba(61, 220, 111, .45); }
.h-chat-ic svg { width: 20px; height: 20px; }
.h-chat-tit { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.h-chat-tit b { font: 600 16px/1.15 'Oswald', sans-serif; letter-spacing: .2px; }
.h-chat-tit small, .h-chat-status small { color: var(--texto-2); font-size: 11.5px; }
.h-chat-status { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.h-chat-vivo { padding: 3px 8px; border-radius: 6px; font: 800 10.5px/1.2 var(--corpo); text-transform: uppercase; letter-spacing: .06em; color: #04140a; background: var(--verde); box-shadow: 0 0 12px rgba(61, 220, 111, .5); }
.h-chat-status small { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.h-chat-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 8px var(--verde); animation: h-pisca 1.6s ease-in-out infinite; }
@keyframes h-pisca { 50% { opacity: .3; } }

.h-chat-msgs { flex: 1; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 8px 6px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; scrollbar-color: var(--borda) transparent; }
.h-chat-msgs > li { animation: h-chega .35s ease both; }
.h-chat-msgs > li.novo { animation: h-chega .5s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes h-chega { from { opacity: 0; transform: translateY(8px); } }
.h-chat-msg { display: flex; gap: 9px; padding: 7px 8px; border-radius: 10px; color: var(--texto); text-decoration: none; }
.h-chat-msg:hover { background: rgba(61, 220, 111, .08); }
.h-chat-msg .cm-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; background: var(--cor); color: #fff; font: 800 14px var(--corpo); border: 2px solid rgba(61, 220, 111, .35); }
.h-chat-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.h-chat-quem { display: flex; align-items: center; gap: 6px; }
.h-chat-quem b { color: var(--verde); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-chat-quem time { margin-left: auto; color: var(--texto-2); font-size: 11px; flex-shrink: 0; }
.h-chat .cm-selo { padding: 1px 5px; border-radius: 5px; font-size: 9.5px; font-weight: 800; text-transform: uppercase; flex-shrink: 0; }
.h-chat .cm-selo-equipe { color: var(--verde); border: 1px solid rgba(61, 220, 111, .6); }
.h-chat .cm-selo-vip { color: #2a1a00; background: var(--ouro); }
.h-chat-topico { font-size: 12px; font-weight: 800; color: var(--cat); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-chat-p { font-size: 12.5px; line-height: 1.35; color: #d3e3d8; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.h-chat-em { font-size: 11px; color: var(--texto-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-chat-vazio { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px; text-align: center; color: var(--texto-2); font-size: 13px; }
.h-chat-vazio b { color: var(--verde); font: 700 17px 'Oswald', sans-serif; }

.h-chat-campo { display: flex; align-items: center; gap: 10px; margin: 8px 10px 10px; padding: 0 0 0 12px; height: 46px; border-radius: 12px; border: 1px solid rgba(61, 220, 111, .3); background: rgba(3, 10, 6, .6); color: var(--texto-2); font-size: 13px; text-decoration: none; transition: border-color .15s; }
.h-chat-campo:hover { border-color: var(--verde); color: var(--texto); }
.h-chat-campo > svg { width: 20px; height: 20px; }
.h-chat-campo span { flex: 1; }
.h-chat-trancado { border-color: rgba(255, 93, 120, .45); color: #ffb3c0; }
.h-chat-trancado > svg { color: #ff5d78; }
.h-chat-campo input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--texto); font: 600 14px var(--corpo); outline: none; }
.h-chat-campo:focus-within { border-color: var(--verde); }
.h-chat-campo button { width: 46px; height: 100%; display: grid; place-items: center; border: 0; border-radius: 0 11px 11px 0; background: var(--verde); color: #04140a; cursor: pointer; }
.h-chat-campo button svg { width: 18px; height: 18px; }
.h-chat-p a { color: var(--verde); }
.h-chat-p .ch-spoiler { background: #1a2f23; color: transparent; border-radius: 4px; }
.h-chat-campo b { width: 46px; height: 100%; display: grid; place-items: center; border-radius: 0 11px 11px 0; background: var(--verde); color: #04140a; }
.h-chat-campo b svg { width: 18px; height: 18px; }

@media (max-width: 900px) { .h-chat { contain: none; min-height: 0; height: 430px; } }
@media (prefers-reduced-motion: reduce) { .h-chat-msgs > li, .h-chat-status i { animation: none; } }
.h-chat-campo { padding-left: 4px; }
.h-chat-campo .h-chat-pick { width: 36px; height: 36px; flex-shrink: 0; margin-right: -4px; border-radius: 10px; background: none; color: var(--texto-2); }
.h-chat-campo .h-chat-pick:hover, .h-chat-campo .h-chat-pick[aria-expanded="true"] { color: var(--verde); background: rgba(61, 220, 111, .1); }
.h-chat-campo .h-chat-pick svg { width: 21px; height: 21px; }
.h-chat-trancado { padding-left: 12px; }
.h-chat-txt .ch-fig { width: 120px; height: 120px; border-radius: 12px; }
.h-chat-txt .ch-gif { height: 110px; max-width: 100%; }
.h-chat-mencao { background: rgba(255, 200, 61, .08); box-shadow: inset 3px 0 0 var(--ouro); border-radius: 8px; }

@media (prefers-reduced-motion: reduce) { .h-faixa { animation: none; } .h-trilho { overflow-x: auto; } }
