* {
  box-sizing: border-box;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: rgba(228, 228, 228, 0.72);
  --soft: rgba(255, 255, 255, 0.10);
  --violet: rgba(113, 54, 211, 0.95);
  --violet-soft: rgba(113, 54, 211, 0.30);
  --cyan-soft: rgba(80, 164, 255, 0.16);
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 50% 26%, rgba(255,255,255,0.05), transparent 25%),
    radial-gradient(circle at 50% 60%, rgba(88, 53, 155, 0.08), transparent 35%),
    #000;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  overflow-x: hidden;
}

.homepage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  isolation: isolate;
  overflow: hidden;
}

.content-wrap {
  position: relative;
  z-index: 3;
  width: min(1120px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: introFade 1.6s ease-out both;
}

.logo-wrap {
  position: relative;
  display: inline-block;
}

.logo-wrap::before {
  content: "";
  position: absolute;
  inset: 12% 14% 9%;
  border-radius: 50%;
  background: transparent;
  filter: none;
  z-index: -1;
  animation: none;
}

 .logo-gif {
  width: min(86vw, 980px);
  height: auto;
  display: block;
  filter: none;
  animation: logoRise 1.4s ease-out both;
}

.caption {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.eyebrow {
  margin: 0;
  font-size: clamp(0.76rem, 1.05vw, 0.98rem);
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.30em;
}

.caption h1 {
  margin: 0;
  font-size: clamp(1.4rem, 4.4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1;
}

.bahadur-link {
  color: #ffffff;
  text-decoration: none;
  text-shadow:
    0 0 6px rgba(255,255,255,0.28),
    0 0 16px rgba(113,54,211,0.38),
    0 0 28px rgba(113,54,211,0.22);
  transition: transform 0.25s ease, text-shadow 0.25s ease, opacity 0.25s ease;
}

.bahadur-link:hover,
.bahadur-link:focus,
.bahadur-link:visited {
  color: #ffffff;
}

.bahadur-link:hover,
.bahadur-link:focus {
  opacity: 1;
  transform: translateY(-1px);
  text-shadow:
    0 0 10px rgba(255,255,255,0.34),
    0 0 22px rgba(113,54,211,0.52),
    0 0 34px rgba(113,54,211,0.30);
}

.tagline {
  margin: 2px 0 0;
  width: min(840px, 90vw);
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  line-height: 1.65;
  color: rgba(238,238,238,0.76);
  text-transform: none;
  letter-spacing: 0.05em;
}

.enter-button {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  padding: 14px 28px;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.24em;
  font-size: 0.86rem;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 0 24px rgba(113,54,211,0.12);
  backdrop-filter: blur(4px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.enter-button:hover,
.enter-button:focus,
.enter-button:visited {
  color: #ffffff;
}

.enter-button:hover,
.enter-button:focus {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.36);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(113,54,211,0.10));
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 0 34px rgba(113,54,211,0.20);
}

.smoke {
  position: absolute;
  z-index: 1;
  width: 72vw;
  height: 72vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  pointer-events: none;
}

.smoke-one {
  top: -18vw;
  left: -10vw;
  background:
    radial-gradient(circle, rgba(255,255,255,0.09) 0%, rgba(113,54,211,0.11) 28%, rgba(255,255,255,0.02) 48%, transparent 70%);
  animation: driftOne 22s ease-in-out infinite alternate;
}

.smoke-two {
  right: -12vw;
  bottom: -14vw;
  background:
    radial-gradient(circle, rgba(80,164,255,0.08) 0%, rgba(255,255,255,0.04) 25%, rgba(113,54,211,0.08) 45%, transparent 68%);
  animation: driftTwo 26s ease-in-out infinite alternate;
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.28) 68%, rgba(0,0,0,0.62) 100%);
}

.particles {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,0.72);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255,255,255,0.34), 0 0 16px rgba(113,54,211,0.18);
  opacity: 0;
  animation: ashFloat linear infinite;
}

.p1  { left: 8%;  bottom: 12%; animation-duration: 14s; animation-delay: 0s; }
.p2  { left: 16%; bottom: 18%; animation-duration: 16s; animation-delay: 2s; width: 2px; height: 2px; }
.p3  { left: 23%; bottom: 9%;  animation-duration: 13s; animation-delay: 5s; }
.p4  { left: 33%; bottom: 15%; animation-duration: 18s; animation-delay: 1s; width: 2px; height: 2px; }
.p5  { left: 42%; bottom: 10%; animation-duration: 15s; animation-delay: 6s; }
.p6  { left: 52%; bottom: 8%;  animation-duration: 17s; animation-delay: 4s; width: 2px; height: 2px; }
.p7  { left: 60%; bottom: 12%; animation-duration: 12s; animation-delay: 3s; }
.p8  { left: 68%; bottom: 14%; animation-duration: 19s; animation-delay: 8s; width: 2px; height: 2px; }
.p9  { left: 75%; bottom: 10%; animation-duration: 15s; animation-delay: 7s; }
.p10 { left: 82%; bottom: 16%; animation-duration: 18s; animation-delay: 2.5s; width: 2px; height: 2px; }
.p11 { left: 90%; bottom: 11%; animation-duration: 14s; animation-delay: 6.5s; }
.p12 { left: 48%; bottom: 20%; animation-duration: 21s; animation-delay: 9s; width: 2px; height: 2px; }

@keyframes introFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes logoRise {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(0.98);
    opacity: 0.52;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.9;
  }
}

@keyframes driftOne {
  0%   { transform: translate3d(-2vw, -1vw, 0) scale(1); }
  50%  { transform: translate3d(4vw, 2vw, 0) scale(1.08); }
  100% { transform: translate3d(0vw, 5vw, 0) scale(1.02); }
}

@keyframes driftTwo {
  0%   { transform: translate3d(0vw, 0vw, 0) scale(1); }
  50%  { transform: translate3d(-4vw, -3vw, 0) scale(1.12); }
  100% { transform: translate3d(3vw, -5vw, 0) scale(1.03); }
}

@keyframes ashFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.9);
  }
  10% {
    opacity: 0.7;
  }
  75% {
    opacity: 0.35;
  }
  100% {
    opacity: 0;
    transform: translate3d(18px, -82vh, 0) scale(1.25);
  }
}

@media (max-width: 900px) {
  .logo-gif {
    width: min(95vw, 760px);
  }

  .tagline {
    width: min(90vw, 620px);
    letter-spacing: 0.03em;
  }
}

@media (max-width: 600px) {
  .homepage {
    padding: 20px 12px;
  }

  .content-wrap {
    gap: 14px;
  }

  .logo-gif {
    width: 96vw;
  }

  .caption {
    gap: 9px;
  }

  .caption h1 {
    font-size: clamp(1.25rem, 8vw, 2.3rem);
    letter-spacing: 0.10em;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.20em;
  }

  .tagline {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .enter-button {
    min-width: 200px;
    padding: 12px 22px;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
  }

  .smoke {
    width: 110vw;
    height: 110vw;
    filter: blur(72px);
    opacity: 0.24;
  }
}


/* HEADER START */
.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 1840px;
  height: 70px;
  z-index: 999998;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
  background: rgba(35, 36, 52, 0.94);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.32);
  backdrop-filter: blur(10px);
}

.brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  width: 134px;
  min-width: 134px;
  overflow: hidden;
  text-decoration: none;
}

.brand-link img {
  display: block;
  width: auto;
  height: 44px;
  max-width: 128px;
  max-height: 44px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 18px;
  border-radius: 9px;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #ffffff;
  background: rgba(255,255,255,0.09);
}

.homepage {
  padding-top: 108px;
}
/* HEADER END */



/* Games dropdown */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
}

.nav-dropbtn {
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(255,255,255,0.92);
  font-size: 18px;
  font-weight: 800;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.nav-dropbtn:hover,
.nav-dropbtn:focus {
  background: rgba(255,255,255,0.09);
  color: #ffffff;
  outline: none;
}

.nav-dropdown-menu {
  position: absolute;
  top: 54px;
  left: 0;
  min-width: 148px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  background: rgba(28,29,42,0.96);
  box-shadow: 0 14px 34px rgba(0,0,0,0.34);
  backdrop-filter: blur(10px);
  display: none;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block !important;
  height: auto !important;
  padding: 12px 14px !important;
  border-radius: 8px !important;
  color: rgba(255,255,255,0.92) !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
  background: rgba(255,255,255,0.09) !important;
  color: #ffffff !important;
}

@media (max-width: 760px) {
  .nav-dropdown,
  .nav-dropbtn {
    height: 40px;
  }

  .nav-dropbtn {
    padding: 0 9px;
    font-size: 13px;
  }

  .nav-dropdown-menu {
    top: 44px;
    min-width: 120px;
  }

  .nav-dropdown-menu a {
    font-size: 13px !important;
    padding: 10px 12px !important;
  }
}


/* v110: tools entry inside the compact navigation menu. */
.nav-dropdown-menu .nav-tool-link {
  margin-top: 6px !important;
  border-top: 1px solid rgba(255,255,255,0.10) !important;
}


/* v191: JS-assisted dropdown open state, stable on mouse + touch. */
.site-header, .chess-header { overflow: visible !important; }
.nav-dropdown.is-open > .nav-dropdown-menu { display: block !important; opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; }
.nav-dropdown.is-open > .nav-dropbtn { background: rgba(255,255,255,0.12) !important; color: #fff !important; }
.nav-tools-menu { min-width: 220px; }
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .nav-dropdown:hover > .nav-dropdown-menu { display: none; }
  .nav-dropdown.is-open > .nav-dropdown-menu { display: block !important; }
}
