:root {
  --bg-1: #050a28;
  --bg-2: #19063d;
  --panel: rgba(5, 11, 40, 0.92);
  --line: rgba(71, 186, 255, 0.28);
  --cyan: #42d6ff;
  --pink: #f54ed6;
  --text: #f4f7ff;
  --muted: #b7c2f2;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(41, 167, 255, 0.2), transparent 26%),
    radial-gradient(circle at right center, rgba(245, 78, 214, 0.22), transparent 28%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
.site-bg { display: none; }

.topbar {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(79, 172, 255, 0.18);
}

.brand-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(66, 214, 255, 0.28), rgba(245, 78, 214, 0.24));
  border: 1px solid rgba(79, 172, 255, 0.36);
  box-shadow: inset 0 0 24px rgba(66, 214, 255, 0.12);
}

.brand-title { font-size: 1.85rem; font-weight: 800; }
.brand-subtitle { color: var(--muted); font-size: 0.95rem; margin-top: 2px; }

.nav {
  position: absolute;
  top: calc(100% + 12px);
  right: 22px;
  width: min(320px, calc(100% - 44px));
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(7, 14, 44, 0.98);
  border: 1px solid rgba(84, 174, 255, 0.24);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), 0 0 24px rgba(66, 214, 255, 0.12);
  z-index: 20;
}

.nav.nav-open {
  display: flex;
}

.menu-toggle {
  display: inline-flex;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(84, 174, 255, 0.35);
  background: rgba(12, 23, 69, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  box-shadow: inset 0 0 20px rgba(255,255,255,0.02);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #e8efff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav a {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid rgba(84, 174, 255, 0.35);
  border-radius: 18px;
  background: rgba(12, 23, 69, 0.75);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02), 0 0 0 rgba(66, 214, 255, 0);
  font-weight: 700;
  color: #e8efff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 218, 255, 0.8);
  background: rgba(18, 31, 86, 0.94);
  box-shadow: 0 0 14px rgba(66, 214, 255, 0.45), 0 0 30px rgba(245, 78, 214, 0.18), inset 0 0 18px rgba(255,255,255,0.04);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px 80px;
}

.hero {
  text-align: center;
  padding: 38px 0 26px;
}

.eyebrow {
  color: #46e0ff;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 800;
  margin: 0 0 18px;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.98;
  font-weight: 800;
  background: linear-gradient(90deg, #53d9ff 10%, #86b8ff 40%, #e48aff 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-line {
  width: min(820px, 92%);
  height: 3px;
  margin: 26px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(66, 214, 255, 0), rgba(66, 214, 255, 0.9), rgba(245, 78, 214, 0.9), rgba(245, 78, 214, 0));
  box-shadow: 0 0 18px rgba(90, 208, 255, 0.4);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.game-card,
.detail-panel,
.info-box {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 18, 58, 0.96), rgba(6, 11, 38, 0.96));
  border: 1px solid rgba(63, 188, 255, 0.28);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.015);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.game-card::before,
.detail-panel::before,
.info-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(66, 214, 255, 0.18), rgba(66, 214, 255, 0) 35%, rgba(245, 78, 214, 0.22));
  opacity: 0.8;
}

.game-card:hover,
.detail-panel:hover,
.info-box:hover {
  transform: translateY(-8px);
  border-color: rgba(116, 222, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(66, 214, 255, 0.18), 0 16px 42px rgba(0, 0, 0, 0.42), 0 0 24px rgba(66, 214, 255, 0.22), 0 0 50px rgba(245, 78, 214, 0.18);
}

.game-image {
  min-height: 230px;
  position: relative;
  display: flex;
  align-items: end;
  padding: 22px;
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  background-size: cover;
  background-position: center;
}

.game-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.45));
}

.game-image span { position: relative; z-index: 1; }
.game-content { padding: 18px 18px 18px; }
.game-content h2 { margin: 0 0 10px; color: var(--cyan); font-size: 1.9rem; }
.game-content p { margin: 0 0 20px; color: var(--muted); line-height: 1.5; font-size: 1.06rem; }

.cta-button,
.back-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
  color: #101533;
  background: linear-gradient(90deg, #4bd6ff, #8cb6ff 42%, #f54ed6);
  box-shadow: 0 10px 24px rgba(245, 78, 214, 0.2), 0 0 0 rgba(66, 214, 255, 0);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.cta-button::after,
.back-button::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.02));
  mix-blend-mode: screen;
  pointer-events: none;
}

.cta-button:hover,
.back-button:hover {
  transform: translateY(-3px) scale(1.015);
  filter: saturate(1.08);
  box-shadow: 0 14px 30px rgba(245, 78, 214, 0.24), 0 0 18px rgba(66, 214, 255, 0.5), 0 0 38px rgba(245, 78, 214, 0.34);
}

.cta-button:active,
.back-button:active {
  transform: translateY(-1px) scale(0.995);
}

.info-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.info-box { padding: 24px; }
.info-box h3 { margin-top: 0; color: var(--cyan); font-size: 1.35rem; }
.info-box p { margin-bottom: 0; color: var(--muted); line-height: 1.6; }

.footer {
  text-align: center;
  padding: 28px 16px 44px;
  color: var(--muted);
}
.footer a { color: #d8dcff; }

.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 22px 70px;
}

.page-hero {
  padding: 38px 0 24px;
}

.page-hero p {
  color: #70dfff;
  font-weight: 700;
  margin-bottom: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.detail-panel { padding: 28px; }
.detail-panel h2 { margin-top: 0; color: var(--cyan); font-size: 1.9rem; }
.detail-panel h3 { color: #f3a2ff; margin-bottom: 10px; }
.detail-panel p,
.detail-panel li { color: var(--muted); line-height: 1.65; font-size: 1.03rem; }
.detail-panel ul { padding-left: 22px; margin: 10px 0 0; }
.detail-banner {
  min-height: 270px;
  border-radius: 24px;
  margin-bottom: 18px;
  display: flex;
  align-items: end;
  padding: 22px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  border: 1px solid rgba(95, 191, 255, 0.26);
}
.detail-meta {
  display: grid;
  gap: 14px;
}
.meta-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(17, 26, 71, 0.82);
  border: 1px solid rgba(69, 181, 255, 0.2);
}
.meta-card strong {
  display: block;
  color: white;
  margin-bottom: 6px;
}

.game-pubg { background: linear-gradient(135deg, #46514f, #c88a49 60%, #3a2a2d); }
.game-roblox { background: linear-gradient(135deg, #06080e, #293864 45%, #0e0e0e); }
.game-fortnite { background: linear-gradient(135deg, #7c89f8, #d38cc4 55%, #6d4ec4); }
.game-freefire { background: linear-gradient(135deg, #1b6688, #70c5f6 45%, #062e59); }
.game-genshin { background: linear-gradient(135deg, #92aff9, #7d48d6 55%, #1b1f59); }
.game-minecraft { background: linear-gradient(135deg, #3f8f49, #b3d66a 50%, #4e85cf); }

@media (max-width: 980px) {
  .topbar,
  .detail-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .brand-wrap {
    width: 100%;
  }

  .nav {
    right: 0;
    width: 100%;
  }

  .nav a {
    text-align: center;
  }

  .card-grid,
  .info-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .topbar { display: block; }
  .card-grid,
  .info-panels,
  .detail-layout { grid-template-columns: 1fr; }
  .game-image { min-height: 210px; }
}


.game-card .cta-button {
  margin-top: 6px;
}

.game-image, .detail-banner {
  transition: transform 0.35s ease, filter 0.35s ease;
}

.game-card:hover .game-image,
.detail-panel:hover .detail-banner {
  transform: scale(1.03);
  filter: saturate(1.08) brightness(1.04);
}

/* Click Me Neon Button */
.action-btn{
  margin-top:15px;
  padding:12px 25px;
  border:none;
  border-radius:25px;
  background:linear-gradient(90deg,#00ffff,#ff00ff);
  color:white;
  cursor:pointer;
  transition:0.3s;
}
.action-btn:hover{
  box-shadow:0 0 10px #00ffff,0 0 20px #ff00ff,0 0 40px #00ffff;
  transform:scale(1.1);
}

/* Popup */
.popup{
  display:none;
  position:fixed;
  top:0;left:0;
  width:100%;height:100%;
  background:rgba(0,0,0,0.85);
  justify-content:center;
  align-items:center;
  z-index:9999;
}
.popup-content{
  background:#0f172a;
  padding:30px;
  border-radius:15px;
  text-align:center;
  box-shadow:0 0 20px #00ffff,0 0 40px #ff00ff;
}


.contact-page { max-width: 900px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; margin-top: 28px; }
.contact-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.contact-list li { padding: 16px 18px; border-radius: 18px; background: rgba(17, 26, 71, 0.82); border: 1px solid rgba(69, 181, 255, 0.2); }
.contact-list strong { display: block; margin-bottom: 4px; color: #fff; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }


/* Logo styling */
.brand-logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
}


/* Card images */
.game-image {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.game-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 48%, rgba(0,0,0,0.04) 100%);
  pointer-events: none;
}

.game-image span {
  position: relative;
  z-index: 1;
}

/* Keep title visible over custom images */
.game-pubg,
.game-roblox,
.game-fortnite,
.game-freefire,
.game-genshin,
.game-minecraft {
  background: #111827 !important;
}


/* Hero image inside banner container */
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.hero-container {
  overflow: hidden;
  border-radius: 16px;
}


/* Responsive Banner / Hero Image Container for all detail pages */
.detail-banner,
.hero-container,
[class*="banner"],
[class*="hero-image-container"] {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.detail-banner,
.hero-container {
  min-height: clamp(180px, 34vw, 320px);
  height: auto;
  aspect-ratio: 16 / 9;
}

.detail-banner-image,
.hero-image,
.detail-banner img,
.hero-container img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

/* Tablet */
@media (max-width: 991px) {
  .detail-banner,
  .hero-container {
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .detail-banner,
  .hero-container {
    min-height: 180px;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }

  .detail-banner-image,
  .hero-image,
  .detail-banner img,
  .hero-container img {
    border-radius: inherit;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .detail-banner,
  .hero-container {
    min-height: 160px;
    aspect-ratio: 1.3 / 1;
  }
}
