:root {
  --bg:      #07080f;
  --bg2:     #0d0f1c;
  --bg3:     #131629;
  --surface: #181c30;
  --surface2:#1e2238;
  --border:  rgba(255,255,255,.07);
  --border2: rgba(255,255,255,.13);
  --cyan:    #00e5ff;
  --pink:    #f000b8;
  --gold:    #fbbf24;
  --text:    #eef0ff;
  --muted:   #6b7db3;
  --r:       16px;
  --head:    Orbitron, sans-serif;
  --body:    'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 15px; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a   { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul  { list-style: none; }

::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 4px; }

.container { max-width: 1300px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(7,8,15,.9);
  backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border);
}
nav {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 24px; max-width: 1300px; margin: 0 auto;
}
.logo {
  font-family: var(--head); font-size: 1.25rem; font-weight: 900;
  letter-spacing: -.02em; white-space: nowrap; flex-shrink: 0;
}
.logo-arc  { background: linear-gradient(100deg,var(--cyan),#7cf3ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-zone { background: linear-gradient(100deg,var(--pink),#ff70d8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-dot  { color: var(--gold); -webkit-text-fill-color: var(--gold); }

.search-wrap { flex: 1; max-width: 440px; position: relative; margin: 0 auto; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; width: 17px; height: 17px; }
.search-wrap input {
  width: 100%; background: var(--surface); border: 1px solid var(--border2);
  border-radius: 50px; padding: 10px 40px 10px 42px;
  color: var(--text); font-family: var(--body); font-size: .88rem; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-wrap input::placeholder { color: var(--muted); }
.search-wrap input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,229,255,.1); }
.search-clear {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: .9rem; padding: 0; display: none;
}
.search-wrap input:not(:placeholder-shown) ~ .search-clear { display: block; }

.nav-links { display: flex; gap: 2px; flex-shrink: 0; }
.nav-links a { font-weight: 700; font-size: .83rem; padding: 7px 13px; border-radius: 8px; transition: background .18s, color .18s; white-space: nowrap; }
.nav-links a:hover  { background: var(--surface2); color: var(--cyan); }
.nav-links a.active { background: linear-gradient(135deg,var(--cyan),#00b5cc); color: #000; font-weight: 800; }

.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--text); flex-shrink: 0; padding: 4px; }
.hamburger svg { width: 22px; height: 22px; }

.mobile-menu { display: none; flex-direction: column; background: var(--bg2); border-top: 1px solid var(--border); padding: 10px 20px 14px; gap: 2px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-weight: 700; font-size: .92rem; padding: 10px 12px; border-radius: 8px; transition: background .15s; }
.mobile-menu a:hover { background: var(--surface); color: var(--cyan); }

#search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.75); overflow: hidden; z-index: 300; display: none;
}
#search-results.open { display: block; }
.sr-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; transition: background .12s; }
.sr-item:hover { background: var(--surface); }
.sr-thumb { width: 44px; height: 34px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: var(--surface2); }
.sr-name  { font-weight: 700; font-size: .88rem; }
.sr-cat   { font-size: .72rem; color: var(--muted); text-transform: capitalize; }
.sr-empty { padding: 16px; text-align: center; color: var(--muted); font-size: .88rem; }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  padding: 48px 24px 44px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 120% at 60% 50%, rgba(0,229,255,.11) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 90%,  rgba(240,0,184,.09)  0%, transparent 55%),
    var(--bg2);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,229,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridShift 22s linear infinite;
}
@keyframes gridShift { from { background-position: 0 0 } to { background-position: 48px 48px } }

.particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.particle  { position: absolute; border-radius: 50%; opacity: 0; animation: floatP linear infinite; }
@keyframes floatP {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  10%  { opacity: .8; }
  90%  { opacity: .3; }
  100% { opacity: 0; transform: translateY(-280px) scale(1.4); }
}

/* layout interno do hero */
.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 340px;
  align-items: center;
  gap: 32px;
}

/* lado esquerdo */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,229,255,.08); border: 1px solid rgba(0,229,255,.22);
  border-radius: 50px; padding: 5px 14px;
  font-size: .74rem; font-weight: 700; color: var(--cyan);
  margin-bottom: 16px; animation: fadeUp .6s ease both;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); animation: pulseDot 2s ease infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,255,.6); }
  50%       { box-shadow: 0 0 0 5px rgba(0,229,255,0); }
}

.hero h1 {
  font-family: var(--head);
  font-size: clamp(1.6rem, 3.8vw, 2.6rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 12px; letter-spacing: -.02em;
  animation: fadeUp .7s .1s ease both;
}
.hl  { color: var(--cyan); }
.hl2 { color: var(--pink); }

.hero p {
  font-size: .95rem; color: var(--muted);
  max-width: 420px; margin-bottom: 24px;
  animation: fadeUp .7s .2s ease both;
}

.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; animation: fadeUp .7s .3s ease both; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: 50px; font-family: var(--body); font-weight: 800; font-size: .88rem; cursor: pointer; border: none; transition: transform .18s, box-shadow .18s; }
.btn:hover       { transform: translateY(-2px); }
.btn-cyan        { background: linear-gradient(135deg,var(--cyan),#00b0d4); color: #000; box-shadow: 0 4px 18px rgba(0,229,255,.4); }
.btn-cyan:hover  { box-shadow: 0 6px 28px rgba(0,229,255,.55); }
.btn-ghost       { background: var(--surface); border: 1px solid var(--border2); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.hero-stats { display: flex; gap: 24px; margin-top: 24px; animation: fadeUp .7s .4s ease both; }
.stat-num   { font-family: var(--head); font-size: 1.2rem; font-weight: 900; color: var(--cyan); line-height: 1; }
.stat-label { font-size: .7rem; color: var(--muted); margin-top: 3px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: translateY(0) } }

/* ── SLIDER DO HERO ── */
.hero-slider-wrap {
  position: relative;
  animation: fadeUp .9s .2s ease both;
}
.hero-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* cada card do slider */
.hs-card {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 14px; overflow: hidden;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.hs-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0,0,0,.65);
  border-color: rgba(0,229,255,.3);
}
.hs-thumb {
  width: 100%; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; overflow: hidden; position: relative;
}
.hs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hs-body { padding: 9px 10px 11px; }
.hs-title {
  font-family: var(--head); font-size: .68rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 5px;
}
.hs-meta { display: flex; align-items: center; justify-content: space-between; }
.hs-rating { font-size: .7rem; color: var(--gold); font-weight: 700; }
.hs-plays  { font-size: .68rem; color: var(--muted); }

/* play overlay */
.hs-play {
  position: absolute; inset: 0;
  background: rgba(0,229,255,.15); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; opacity: 0; transition: opacity .2s;
}
.hs-card:hover .hs-play { opacity: 1; }

/* dots do slider */
.slider-dots {
  display: flex; justify-content: center; gap: 6px; margin-top: 12px;
}
.slider-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border2); border: none; cursor: pointer;
  transition: background .25s, transform .25s; padding: 0;
}
.slider-dot.active {
  background: var(--cyan); transform: scale(1.35);
}

/* ── AD STRIP ── */
.ad-strip { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 10px 0; text-align: center; }
.ad-label { font-size: .6rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 5px; }
.ad-ph { display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 1px dashed rgba(255,255,255,.09); border-radius: 8px; color: var(--muted); font-size: .75rem; gap: 8px; }
.ad-ph.leader { width: min(728px,100%); height: 90px; }
.ad-ph.rect   { width: 300px; height: 250px; max-width: 100%; }
.ad-ph.banner { width: 100%; height: 60px; }

/* ── DIVIDER ── */
.glow-div { width: 100%; height: 1px; background: linear-gradient(90deg,transparent,var(--cyan),transparent); opacity: .2; }

/* ── CATEGORIES ── */
.cats-section { padding: 36px 0 4px; }
.eyebrow { font-size: .7rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; font-family: var(--head); }
.cats-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.cats-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; background: var(--surface); border: 1px solid var(--border2);
  border-radius: 50px; font-weight: 700; font-size: .83rem; white-space: nowrap;
  cursor: pointer; flex-shrink: 0;
  transition: background .18s, border-color .18s, color .18s, transform .15s, box-shadow .18s;
}
.cat-pill:hover  { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,229,255,.15); }
.cat-pill.active { background: var(--cyan); color: #000; border-color: var(--cyan); font-weight: 800; box-shadow: 0 4px 18px rgba(0,229,255,.35); }

/* ── FEATURED ── */
.featured-section { padding: 38px 0 0; }
.sec-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.sec-title  { font-family: var(--head); font-size: clamp(1rem,3vw,1.35rem); font-weight: 900; }
.sec-title .ac { color: var(--cyan); }
.see-all { font-size: .82rem; font-weight: 700; color: var(--cyan); border: 1px solid rgba(0,229,255,.25); padding: 6px 14px; border-radius: 20px; transition: background .18s; white-space: nowrap; }
.see-all:hover { background: rgba(0,229,255,.08); }

.feat-grid { display: grid; grid-template-columns: 2.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 390px; }
.feat-card {
  position: relative; border-radius: var(--r); overflow: hidden; cursor: pointer;
  background: var(--surface2); border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 22px 55px rgba(0,0,0,.65); border-color: rgba(0,229,255,.2); }
.feat-card.big   { grid-row: span 2; }

.feat-img { width: 100%; height: 100%; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 5rem; transition: transform .4s; }
.feat-card.big .feat-img { font-size: 7rem; }
.feat-card:hover .feat-img { transform: scale(1.05); }
.feat-overlay { position: absolute; inset: 0; background: linear-gradient(180deg,transparent 25%,rgba(7,8,15,.95) 100%); pointer-events: none; }
.feat-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 18px; }
.feat-card.big .feat-info { padding: 22px 24px; }

.game-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px; font-family: var(--head); }
.bg-hot  { background: linear-gradient(90deg,#ff5500,#ff8c00); color: #fff; }
.bg-new  { background: linear-gradient(90deg,var(--pink),#c000ff); color: #fff; }
.bg-top  { background: linear-gradient(90deg,#f59e0b,#fbbf24); color: #000; }
.bg-free { background: linear-gradient(90deg,#22c55e,#16a34a); color: #fff; }

.feat-title { font-family: var(--head); font-size: clamp(.88rem,2vw,1.15rem); font-weight: 900; line-height: 1.2; margin-bottom: 6px; }
.feat-card.big .feat-title { font-size: clamp(1rem,2.8vw,1.55rem); }
.feat-meta { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--muted); }
.stars { color: var(--gold); }

.play-ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0);
  width: 60px; height: 60px; border-radius: 50%; background: rgba(0,229,255,.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #000; box-shadow: 0 0 0 8px rgba(0,229,255,.2);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1); pointer-events: none;
}
.feat-card:hover .play-ring { transform: translate(-50%,-50%) scale(1); }

/* ── MAIN LAYOUT ── */
.main-layout { display: grid; grid-template-columns: 1fr 312px; gap: 28px; padding: 40px 0 64px; align-items: start; }
.grid-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.grid-count  { font-size: .82rem; color: var(--muted); font-weight: 600; }

/* Game Card */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 18px; }

.game-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; cursor: pointer; position: relative;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.7);
  border-color: rgba(0,229,255,.3);
}

.thumb-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.card-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s;
}
.game-card:hover .card-img { transform: scale(1.07); }

.card-badges {
  position: absolute; top: 9px; left: 9px; right: 9px;
  display: flex; justify-content: space-between; align-items: flex-start;
  pointer-events: none;
}
.card-cat-badge {
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  color: #fff; font-size: .62rem; font-weight: 800;
  font-family: var(--head); letter-spacing: .06em;
  padding: 4px 9px; border-radius: 20px;
  white-space: nowrap;
}
.card-tag-badge {
  font-size: .62rem; font-weight: 800;
  font-family: var(--head); letter-spacing: .06em;
  padding: 4px 9px; border-radius: 20px;
  white-space: nowrap;
}
.badge-hot  { background: linear-gradient(90deg,#ff5500,#ff8c00); color: #fff; }
.badge-new  { background: linear-gradient(90deg,var(--pink),#c000ff); color: #fff; }
.badge-top  { background: linear-gradient(90deg,#f59e0b,#fbbf24); color: #000; }
.badge-free { background: linear-gradient(90deg,#22c55e,#16a34a); color: #fff; }

.card-hover-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,229,255,.12); backdrop-filter: blur(2px);
  font-size: 2rem; color: rgba(0,229,255,.9);
  opacity: 0; transition: opacity .22s;
  pointer-events: none;
}
.game-card:hover .card-hover-play { opacity: 1; }

.card-body  { padding: 13px 14px 14px; }
.card-title {
  font-family: var(--head); font-size: .82rem; font-weight: 700;
  line-height: 1.25; margin-bottom: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-bottom {
  display: flex; align-items: center; justify-content: space-between;
}
.card-rating { font-size: .78rem; font-weight: 700; color: var(--gold); }
.card-plays  { font-size: .75rem; font-weight: 600; color: var(--muted); }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.ad-box  { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 12px; text-align: center; }

/* ── FOOTER ── */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 44px 0 24px; }
.footer-grid   { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand p { color: var(--muted); font-size: .86rem; line-height: 1.7; margin-top: 10px; }
.footer-social  { display: flex; gap: 8px; margin-top: 16px; }
.soc { width: 36px; height: 36px; border-radius: 9px; background: var(--surface2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .95rem; cursor: pointer; transition: background .18s, border-color .18s, transform .15s; }
.soc:hover { background: var(--surface); border-color: var(--cyan); transform: translateY(-2px); }
.footer-col h4  { font-family: var(--head); font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.footer-col ul  { display: flex; flex-direction: column; gap: 9px; }
.footer-col a   { font-size: .86rem; color: var(--muted); transition: color .18s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom  { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .78rem; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner  { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar     { display: grid; grid-template-columns: 1fr 1fr; }
  .feat-grid   { height: auto; grid-template-columns: 1fr 1fr; }
  .feat-card.big { grid-column: span 2; height: 260px; }
  .feat-card   { height: 175px; }
}
@media (max-width: 640px) {
  .nav-links   { display: none; }
  .hamburger   { display: flex; }
  .feat-grid   { grid-template-columns: 1fr; height: auto; }
  .feat-card.big { grid-column: 1; height: 220px; }
  .feat-card   { height: 165px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .sidebar     { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero        { padding: 36px 20px 32px; }
  .hero-slider { grid-template-columns: repeat(3, 140px); overflow-x: auto; }
}
@media (max-width: 480px) {
  .games-grid  { grid-template-columns: repeat(2,1fr); }
}

/* ── Gradientes fallback para thumbs sem imagem ── */
.t1  { background: linear-gradient(135deg,#1a0533,#6a1aaa) }
.t2  { background: linear-gradient(135deg,#001f4d,#0066d4) }
.t3  { background: linear-gradient(135deg,#003326,#00897b) }
.t4  { background: linear-gradient(135deg,#3d1500,#e65100) }
.t5  { background: linear-gradient(135deg,#2d0022,#c2185b) }
.t6  { background: linear-gradient(135deg,#0a2a00,#388e3c) }
.t7  { background: linear-gradient(135deg,#0d0040,#3949ab) }
.t8  { background: linear-gradient(135deg,#2a0000,#c62828) }
.t9  { background: linear-gradient(135deg,#2a1a00,#f9a825) }
.t10 { background: linear-gradient(135deg,#001a10,#00695c) }
.t11 { background: linear-gradient(135deg,#0a0a0a,#2c2c2c) }
.t12 { background: linear-gradient(135deg,#1a0030,#8800cc) }