:root{
  --bg:#f5f6fb;
  --ink:white;
  --muted:#6b7280;
  --line:#e5e7ef;
  --card:#ffffff;
  --chip:#f0f2f8;
  --accent:#3163ff;
  --accent-2:#1e3a8a;
  --shadow:0 8px 30px rgba(16,24,40,.08);
  --radius:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font:16px/1.6 "Poppins", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--ink); background:var(--bg);
  box-sizing: border-box;
  background: var(--bg);
  position: relative;
  
}
.wrap{max-width:1140px; margin:auto; padding:0 3%}

/* Reveal on scroll */
.reveal{opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease}
.reveal.is-visible{opacity:1; transform:none}

/* Topbar */
.topbar{margin-left: auto; margin-right: auto; position:sticky; top:40px; z-index:40; background: rgba(255, 255, 255, 0.1);border-radius: 20px;box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);backdrop-filter: blur(25px);width: 80%;}
.topbar__inner{display:flex; align-items:center; justify-content:space-between; height: 100px; max-width: 1140px; width: 90%; margin: 0 auto;}
.brand{display:flex; align-items:center; gap:10px; font-weight:700; color:var(--ink)}
.brand__logo {
  width: 250px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  background: none;
}

.nav{display:flex; gap:24px}
.nav__link{color:#ffffff; text-decoration:none}
.nav__link:hover{color:var(--bpPrimary-200)}

/* Dropdown (Explore) */
.nav__item {
  position: relative;
  transition: all 0.3s ease;
}

.dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(100%);
  min-width: 160px;
  padding: 8px 0;
  z-index: 50;
}

.dropdown__link {
  display: block;
  padding: 10px 16px;
  color:white;
  text-decoration: none;
  font-size: 15px;
}

.dropdown__link:hover {
  background: white;
  color:var(--bpPrimary-500);
  border-radius: 6px;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown__menu {
  display: block;
  transition: all 0.3s ease;
}

/* Add to existing hamburger styles */
.hamburger {
  display: none;
  width: 42px;
  height: 38px;
  background: none;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger-line {
  position: absolute;
  left: 8px;
  height: 2px;
  background: #e9e9e9;
  border-radius: 2px;
  transition: all 0.3s ease;
  width: 26px;
}

.hamburger-line:nth-child(1) {
  top: 10px;
}

.hamburger-line:nth-child(2) {
  top: 18px;
}

.hamburger-line:nth-child(3) {
  top: 26px;
}

/* Hamburger animation when open */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu transition */
.mobile {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  width: 90%;
  margin: 0 auto;
}

.mobile.open {
  max-height: 500px;
  opacity: 1;
}


/* Mobile menu */
.mobile{background:transparent;}
.mobile__link{display:block; padding:12px 20px; color:white; text-decoration:none; border-bottom: 1px solid rgba(255,255,255,0.1);margin-bottom: 5px;}
.mobile__link:hover{background:none;}
.mobile__item {border-bottom:1px solid rgba(255,255,255,0.1);}

.mobile__toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  padding: 12px 20px;
  color: white;
  cursor: pointer;
}

.mobile__submenu {
  display: none;
}

.mobile__sublink {
  display: block;
  padding: 10px 36px;
  text-decoration: none;
  color: white;
  font-size: 15px;
}

.mobile__sublink:hover {
  background: #eef3ff;
  color: var(--accent);
}

/* Show submenu when active */
.mobile__item.open .mobile__submenu {
  display: block;
}

/* 🌌 Header */
.header1 {
  text-align: center;
  padding-top:80px;
}
.header1 h1 {
  font-size: 3em;
  margin-bottom: 10px;
  text-shadow: 0 0 10px #00f7ff, 0 0 20px #00f7ff;
  animation: pulse 2s infinite alternate;
  color: white;
}
@keyframes pulse {
  from { text-shadow: 0 0 5px #00f7ff; }
  to { text-shadow: 0 0 20px #00f7ff, 0 0 40px #00f7ff; }
}
.game-card p {
  margin-top: 0px;
}

.game-card h2 {
  margin: 0px;
}

p {
  margin-top: 0px;
}

/* 🌌 Background canvas */
#stars {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background: radial-gradient(circle at bottom, #0d1b2a, #000);
}

/* 🌌 Container */
.games-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

/* 🌌 Game card */
.game-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.game-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.8);
}
.game-card img {
  max-width: 100%;
  border-radius: 15px;
  margin-bottom: 1rem;
}

/* 🌌 Button style */
.play-btn {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 50px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.7);
}
.play-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 200%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
  transition: all 0.5s ease;
}
.play-btn:hover::after { left: 100%; }

/* 🌌 Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background: #1a1a2e;
  padding: 2rem;
  border-radius: 15px;
  max-width: 500px;
  text-align: center;
  animation: zoomIn 0.5s ease;
}

/* Footer */
.footer{background:rgba(255, 255, 255, 0.1); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); backdrop-filter: blur(25px);}
.foot__top{display:grid; grid-template-columns:1.2fr 1fr 2fr; gap:20px;}
.foot__brand{display:flex; align-items:center; gap:10px; justify-content: center;}
.foot__logo{width:250px; height:auto; border-radius:10px; background:none;}
.foot__social{display:flex; align-items:center}
.foot__social .ico{border-radius:6px; background-color: transparent; color:#5b84ff;}
.foot__links{display:flex; gap:18px; align-items:center; flex-wrap:wrap; justify-content: center; padding-bottom: 20px;}
.foot__links a{color:#ededed; text-decoration:none}
.foot__bottom{margin-left: auto; margin-right: auto; display:grid; justify-content:space-between; align-items:center; gap:16px; padding:12px 12px; border-top:1px solid var(--line); justify-content: center;}
.fa {font-size: 30px;}
.ico, .ph-ico{width:28px; height:28px; border-radius:8px; background:#d3d8e7; margin:0 auto 6px}

.toTop {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    cursor: pointer;
    display: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.toTop:hover {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1);
}

@keyframes zoomIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.close-btn {
  background: crimson;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  color: #fff;
  font-weight: bold;
  margin-top: 1rem;
  cursor: pointer;
}

/* 🌌 Responsive */

@media (max-width: 902px){
  .nav{display:none}
  .hamburger{display:block; border: none; right:10px;}
}

@media (max-width: 768px) {
  .games-container { padding: 2rem 1rem; grid-template-columns: auto; }
  .modal-content { width: 90%; }
  .nav{display:none}
  .hamburger{display:block}
  .foot__top{grid-template-columns:1fr;}  
  
}

  @media (max-width: 480px) {
  .topbar__inner{width: max-content;}
  }

@media (max-width: 344px) {
  .topbar {width: max-content;}
}
