:root {
  --space-void: #050510;
  --space-deep: #0a0a1f;
  --space-mid: #131333;
  --aurora-violet: #8b5cf6;
  --aurora-magenta: #ec4899;
  --aurora-cyan: #06b6d4;
  --aurora-indigo: #6366f1;
  --star-gold: #fbbf24;
  --ink: #f5f5ff;
  --ink-dim: #c4c4e0;
  --muted: #8888aa;
  --line: rgba(139, 92, 246, 0.15);
  --line-bright: rgba(139, 92, 246, 0.4);
}

html {
  scroll-behavior: smooth;
}

body.astra {
  background: var(--space-void);
  color: var(--ink);
  font-family: "Geist", sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
  position: relative;
  min-height: 100vh;
  padding-top: 0 !important;
}

body.astra a {
  color: inherit;
  text-decoration: none;
}

/* === COSMIC BACKGROUND === */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.cosmos::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 40% at 20% 20%,
      rgba(139, 92, 246, 0.2),
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 50% at 80% 70%,
      rgba(236, 72, 153, 0.15),
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 60% at 50% 50%,
      rgba(6, 182, 212, 0.08),
      transparent 70%
    ),
    linear-gradient(180deg, var(--space-void) 0%, var(--space-deep) 100%);
}
.cosmos::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
}
.cosmos .stars {
  position: absolute;
  inset: 0;
}
.cosmos .stars .star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}
.cosmos .stars .star.glow {
  box-shadow:
    0 0 3px white,
    0 0 8px rgba(255, 255, 255, 0.5);
}
.cosmos .stars .star.bright {
  box-shadow:
    0 0 5px white,
    0 0 14px rgba(255, 255, 255, 0.7);
}
.cosmos .stars .star.gold {
  background: var(--star-gold);
  box-shadow:
    0 0 5px var(--star-gold),
    0 0 12px rgba(251, 191, 36, 0.5);
}
.cosmos .stars .star.cyan {
  background: var(--aurora-cyan);
  box-shadow:
    0 0 5px var(--aurora-cyan),
    0 0 12px rgba(6, 182, 212, 0.5);
}

/* HERO SEARCH */
.hero-search {
  padding: 8px 20px 28px;
  position: relative;
  z-index: 10;
}
.hero-search-box {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(19, 19, 51, 0.85),
    rgba(10, 10, 31, 0.7)
  );
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--line-bright);
  border-radius: 18px;
  padding: 14px 16px 14px 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow:
    0 12px 40px rgba(139, 92, 246, 0.18),
    0 0 0 1px rgba(236, 72, 153, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-search-box::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 19px;
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0%,
    rgba(236, 72, 153, 0.4) 25%,
    transparent 50%,
    rgba(6, 182, 212, 0.4) 75%,
    transparent 100%
  );
  z-index: -1;
  animation: laserSpin 8s linear infinite;
  opacity: 0;
  transition: opacity 0.4s;
  filter: blur(8px);
}
.hero-search-box:focus-within {
  border-color: var(--aurora-magenta);
  box-shadow:
    0 16px 50px rgba(236, 72, 153, 0.3),
    0 0 0 3px rgba(236, 72, 153, 0.15);
}
.hero-search-box:focus-within::before {
  opacity: 1;
}

.hero-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--aurora-magenta);
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 6px rgba(236, 72, 153, 0.5));
  animation: searchPulse 2.5s ease-in-out infinite;
}
@keyframes searchPulse {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.1);
  }
}

.hero-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: "Geist", sans-serif;
  font-size: 15px;
  font-weight: 400;
  min-width: 0;
}
.hero-search-input::placeholder {
  color: var(--muted);
  transition: opacity 0.3s;
}
.hero-search-box:focus-within .hero-search-input::placeholder {
  opacity: 0.5;
}

.hero-search-shortcut {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 500;
}

.hero-trending {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-trending-label {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.hero-trending-label::before {
  content: "🔥";
  font-size: 11px;
}
.trending-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.trending-pill:hover {
  background: rgba(236, 72, 153, 0.12);
  border-color: var(--aurora-magenta);
  color: var(--ink);
  transform: translateY(-1px);
}

.hero-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(15, 15, 38, 0.95);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  padding: 8px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(236, 72, 153, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 100;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.hero-suggestions.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s;
  cursor: pointer;
}
.suggest-item:hover,
.suggest-item.active {
  background: rgba(139, 92, 246, 0.15);
}
.suggest-item img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.suggest-item .game-cover-fallback {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    var(--aurora-violet),
    var(--aurora-magenta)
  );
  display: grid;
  place-items: center;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
}
.suggest-text {
  flex: 1;
  min-width: 0;
}
.suggest-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 2px;
}
.suggest-meta {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.suggest-arrow {
  color: var(--muted);
  font-size: 16px;
  opacity: 0.5;
}
.suggest-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.suggest-section-label {
  padding: 8px 12px 4px;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

body.astra ::selection {
  background: var(--aurora-magenta);
  color: var(--space-void);
}

/* === SCROLL REVEAL === */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 1.2s ease-out;
}
.reveal-fade.in-view {
  opacity: 1;
}

.games-grid .game-card {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s;
}
.games-grid.in-view .game-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.games-grid.in-view .game-card:nth-child(1) {
  transition-delay: 0.05s;
}
.games-grid.in-view .game-card:nth-child(2) {
  transition-delay: 0.1s;
}
.games-grid.in-view .game-card:nth-child(3) {
  transition-delay: 0.15s;
}
.games-grid.in-view .game-card:nth-child(4) {
  transition-delay: 0.2s;
}
.games-grid.in-view .game-card:nth-child(5) {
  transition-delay: 0.25s;
}
.games-grid.in-view .game-card:nth-child(6) {
  transition-delay: 0.3s;
}
.games-grid.in-view .game-card:nth-child(7) {
  transition-delay: 0.35s;
}
.games-grid.in-view .game-card:nth-child(8) {
  transition-delay: 0.4s;
}

.games-grid.in-view .game-card:hover {
  transform: translateY(-6px) scale(1.02);
}

/* === NAV === */
nav.topnav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  padding: 6px 14px 6px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  background: rgba(10, 10, 31, 0.5);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow:
    0 8px 32px rgba(139, 92, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.5);
  border: 1px solid var(--line-bright);
  animation: brandPulse 4s ease-in-out infinite;
}
@keyframes brandPulse {
  0%,
  100% {
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.5);
  }
  50% {
    box-shadow:
      0 0 24px rgba(236, 72, 153, 0.9),
      0 0 40px rgba(139, 92, 246, 0.4);
  }
}
.brand .name {
  font-family: "Instrument Serif", serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.05em;
  background: linear-gradient(
    135deg,
    var(--aurora-magenta),
    var(--aurora-cyan)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.3s;
}
.btn-icon:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--line-bright);
}
.nav-login {
  background: linear-gradient(
    135deg,
    var(--aurora-violet),
    var(--aurora-magenta)
  );
  color: var(--ink);
  padding: 9px 20px;
  border: none;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.nav-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.5);
}

.nav-register {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  padding: 8px 18px;
  border: 1px solid var(--line-bright);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(10px);
}
.nav-register:hover {
  background: rgba(236, 72, 153, 0.1);
  border-color: var(--aurora-magenta);
  color: var(--ink);
}

.nav-account {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.15),
    rgba(236, 72, 153, 0.15)
  );
  color: var(--ink);
  padding: 7px 8px 7px 14px;
  border: 1px solid var(--line-bright);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}
.nav-account:hover {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.25),
    rgba(236, 72, 153, 0.25)
  );
  border-color: var(--aurora-magenta);
  transform: translateY(-1px);
}
.nav-account .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--aurora-violet),
    var(--aurora-magenta)
  );
  display: grid;
  place-items: center;
  font-family: "Geist", sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: white;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
  flex-shrink: 0;
}
.nav-account .username {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .nav-register {
    display: none;
  }
}

/* === PWA TOP BANNER === */
#pwaTopBanner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  height: 46px;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.97),
    rgba(236, 72, 153, 0.97)
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0 16px;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.45);
}
#pwaTopBanner.show {
  display: flex;
}
.pwa-banner-icon {
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}
.pwa-banner-text {
  flex: 1;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pwa-banner-install {
  background: #fff;
  color: var(--aurora-violet);
  border: none;
  padding: 5px 14px;
  border-radius: 100px;
  font-family: "Geist", sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.pwa-banner-install:hover {
  opacity: 0.85;
}
.pwa-banner-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.pwa-banner-close:hover {
  color: #fff;
}
body.pwa-banner-visible nav.topnav {
  top: 46px;
}
body.pwa-banner-visible main.astra-main {
  padding-top: 96px;
}
@media (max-width: 600px) {
  .pwa-banner-text {
    font-size: 11px;
  }
  .pwa-banner-install {
    padding: 5px 10px;
    font-size: 11px;
  }
  body.pwa-banner-visible main.astra-main {
    padding-top: 96px;
  }
}

/* === MAIN === */
body.astra main.astra-main {
  position: relative;
  z-index: 10;
  padding-top: 50px;
  padding-bottom: 110px;
}

/* === SECTION INTRO === */
.section-intro {
  padding: 0 20px;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.section-intro.in-view {
  opacity: 1;
  transform: translateY(0);
}
.section-intro .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 12px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 100px;
  backdrop-filter: blur(10px);
}
.section-intro .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aurora-magenta);
  box-shadow: 0 0 8px var(--aurora-magenta);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
.section-intro h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 10px;
}
.section-intro h2 em {
  font-style: italic;
  background: linear-gradient(
    90deg,
    var(--aurora-magenta),
    var(--aurora-violet),
    var(--aurora-cyan),
    var(--aurora-violet),
    var(--aurora-magenta)
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientSweep 6s linear infinite;
}
@keyframes gradientSweep {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}
.section-intro p {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
  max-width: 500px;
}

/* SLIDE */
.slide {
  padding: 0 16px 32px;
}
.slide-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
}
.slide-track::-webkit-scrollbar {
  display: none;
}
.slide-card {
  flex: 0 0 90%;
  scroll-snap-align: center;
  aspect-ratio: 16/9;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--space-mid);
}
.slide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.slide-card:hover img {
  transform: scale(1.04);
}
.slide-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
}
.slide-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}
.slide-dots span.active {
  width: 22px;
  border-radius: 100px;
  background: linear-gradient(
    90deg,
    var(--aurora-magenta),
    var(--aurora-violet),
    var(--aurora-magenta)
  );
  background-size: 200% 100%;
  animation: dotShimmer 2s linear infinite;
}
@keyframes dotShimmer {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

/* FLASH SALE */
.flash-sale {
  padding: 28px 20px;
}
.flash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.flash-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.flash-title h2 {
  font-family: "Instrument Serif", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.flash-title h2 em {
  font-style: italic;
  background: linear-gradient(135deg, #ff6b35, var(--aurora-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.flash-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 8px var(--star-gold));
  animation: flashBoom 1.4s ease-in-out infinite;
  display: inline-block;
}
@keyframes flashBoom {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 8px var(--star-gold));
  }
  25% {
    transform: rotate(-12deg) scale(1.15);
    filter: drop-shadow(0 0 18px var(--star-gold)) drop-shadow(0 0 4px #ff6b35);
  }
  50% {
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 8px var(--star-gold));
  }
  75% {
    transform: rotate(12deg) scale(1.15);
    filter: drop-shadow(0 0 18px var(--star-gold)) drop-shadow(0 0 4px #ff6b35);
  }
}

.countdown-box {
  background: rgba(255, 107, 53, 0.15);
  border: 1px solid rgba(255, 107, 53, 0.3);
  color: #ff8c69;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  min-width: 36px;
  text-align: center;
  transition: all 0.15s;
}
.countdown-box.tick {
  background: rgba(255, 107, 53, 0.3);
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.5);
}
.countdown-sep {
  color: var(--muted);
  font-weight: 600;
}
.countdown {
  display: flex;
  gap: 4px;
  align-items: center;
  font-family: "Geist Mono", monospace;
}
.flash-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.flash-track::-webkit-scrollbar {
  display: none;
}
.flash-card {
  flex: 0 0 158px;
  background: linear-gradient(
    135deg,
    rgba(19, 19, 51, 0.7),
    rgba(10, 10, 31, 0.5)
  );
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s;
  position: relative;
}
.flash-card:hover {
  border-color: rgba(255, 107, 53, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.2);
}
.flash-cover {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--space-mid), var(--space-deep));
  overflow: hidden;
}
.flash-cover img {
  width: 60%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 22%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.flash-discount {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff6b35;
  color: white;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}
.flash-info {
  padding: 12px;
}
.flash-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.2;
}
.flash-price-old {
  font-size: 11px;
  color: var(--muted);
  text-decoration: line-through;
}
.flash-price-new {
  font-family: "Geist Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  color: #ff8c69;
}
.flash-bar {
  margin-top: 8px;
  height: 4px;
  background: rgba(255, 107, 53, 0.15);
  border-radius: 100px;
  overflow: hidden;
}
.flash-bar div {
  height: 100%;
  background: linear-gradient(to right, #ff6b35, var(--aurora-magenta));
  border-radius: 100px;
}
.flash-stock {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* GAME GRID */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 32px;
  perspective: 1200px;
}
.game-card {
  position: relative;
  border-radius: 18px;
  cursor: pointer;
  aspect-ratio: 2/3;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: rgba(19, 19, 51, 0.7);
  backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  padding: 1.5px;
  isolation: isolate;
  display: block;
  color: inherit;
}
.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1.5px;
  background: var(--line);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.4s;
}
.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1.5px;
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0%,
    var(--aurora-cyan) 8%,
    var(--aurora-violet) 16%,
    var(--star-gold) 24%,
    var(--aurora-magenta) 32%,
    transparent 40%,
    transparent 60%,
    var(--aurora-cyan) 68%,
    var(--aurora-violet) 76%,
    var(--star-gold) 84%,
    var(--aurora-magenta) 92%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  animation: laserSpin 4s linear infinite;
  pointer-events: none;
  z-index: 3;
}
.game-card .laser-glow {
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0%,
    var(--aurora-cyan) 8%,
    var(--aurora-violet) 16%,
    var(--star-gold) 24%,
    var(--aurora-magenta) 32%,
    transparent 40%,
    transparent 60%,
    var(--aurora-cyan) 68%,
    var(--aurora-violet) 76%,
    var(--star-gold) 84%,
    var(--aurora-magenta) 92%,
    transparent 100%
  );
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.5s;
  animation: laserSpin 4s linear infinite;
  z-index: -1;
  pointer-events: none;
}
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes laserSpin {
  to {
    --angle: 360deg;
  }
}
.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.25);
}
.game-card:hover::after {
  opacity: 0;
}
.game-card:hover::before {
  opacity: 1;
}
.game-card:hover .laser-glow {
  opacity: 0.5;
}
.game-card.featured::after {
  opacity: 0;
}
.game-card.featured::before {
  opacity: 1;
}
.game-card.featured .laser-glow {
  opacity: 0.35;
}
.game-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16.5px;
  overflow: hidden;
  background: rgba(19, 19, 51, 0.85);
}
.game-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--space-mid), var(--space-deep));
}
.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}
.game-card:hover .game-cover img {
  transform: scale(1.06);
}
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 16, 0.55) 0%, transparent 25%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.game-card:hover .card-overlay {
  opacity: 1;
}

.game-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  z-index: 2;
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.game-card:hover .game-info {
  transform: translateY(0);
}
.game-tag {
  display: none;
}
.game-name {
  font-family: "Geist", sans-serif;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 1px;
  line-height: 1.1;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.game-pub {
  font-family: "Geist Mono", monospace;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.game-flash {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(5, 5, 16, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 2px 5px;
  font-size: 8px;
  font-weight: 600;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: "Geist Mono", monospace;
  color: white;
}
.game-flash .lightning {
  color: var(--star-gold);
  filter: drop-shadow(0 0 3px var(--star-gold));
  font-size: 9px;
}

.game-card.featured .featured-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, var(--aurora-magenta), #ff6b35);
  color: white;
  font-family: "Geist Mono", monospace;
  font-size: 8px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* BOTTOM NAVIGATION */
.bottomnav {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 500px;
  padding: 10px 8px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 50;
  background: rgba(10, 10, 31, 0.75);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 100px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(139, 92, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 2px;
  color: var(--muted);
  font-family: "Geist", sans-serif;
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.3s;
  text-decoration: none;
  text-align: center;
}
.bn-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s;
}
.bn-item span {
  white-space: nowrap;
}
.bn-item:hover {
  color: var(--ink-dim);
}
.bn-item.active {
  color: var(--aurora-magenta);
}
.bn-item.active svg {
  filter: drop-shadow(0 0 6px rgba(236, 72, 153, 0.6));
}

.bn-center {
  position: relative;
}
.bn-center-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--aurora-violet),
    var(--aurora-magenta)
  );
  display: grid;
  place-items: center;
  margin-top: -22px;
  margin-bottom: 2px;
  box-shadow:
    0 8px 24px rgba(139, 92, 246, 0.5),
    0 0 0 4px rgba(10, 10, 31, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.3s;
  animation: centerFloat 3.5s ease-in-out infinite;
}
@keyframes centerFloat {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 8px 24px rgba(139, 92, 246, 0.5),
      0 0 0 4px rgba(10, 10, 31, 0.8),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
  50% {
    transform: translateY(-4px);
    box-shadow:
      0 14px 32px rgba(236, 72, 153, 0.6),
      0 0 0 4px rgba(10, 10, 31, 0.8),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}
.bn-center:hover .bn-center-circle {
  transform: scale(1.08) translateY(-2px);
  box-shadow:
    0 12px 32px rgba(236, 72, 153, 0.6),
    0 0 0 4px rgba(10, 10, 31, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.bn-center-circle svg {
  width: 22px;
  height: 22px;
  color: white;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}
.bn-center span {
  color: var(--ink-dim);
  font-weight: 600;
}

/* === DESKTOP === */
@media (min-width: 768px) {
  .slide-card {
    flex: 0 0 60%;
  }
  .games-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .game-name {
    font-size: 16px;
  }
  .game-tag,
  .game-pub {
    font-size: 9px;
  }
  .hero-search-shortcut {
    display: inline-block;
  }
  .hero-search-input {
    font-size: 16px;
  }
  .hero-search-box {
    padding: 16px 18px 16px 52px;
  }
  body.astra main.astra-main {
    padding-top: 50px;
    padding-bottom: 100px;
  }
  .slide,
  .flash-sale,
  .hero-search,
  .section-intro,
  .games-grid {
    padding-left: 60px;
    padding-right: 60px;
  }
}
@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

/* === GAME CARD: nama game tampil sebagai label di bawah cover === */
.games-grid .game-card {
  aspect-ratio: auto !important;
  display: flex !important;
  flex-direction: column;
  min-width: 0;
}
.games-grid .game-card .game-cover {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2/3;
  border-radius: 16.5px;
  flex: 0 0 auto;
}
.games-grid .game-card .game-cover img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.games-grid .game-card .card-overlay {
  inset: 0 0 auto 0 !important;
  aspect-ratio: 2/3;
  border-radius: 16.5px;
}
.games-grid .game-card .game-info {
  position: relative !important;
  transform: none !important;
  padding: 8px 6px 6px !important;
  text-align: center;
  z-index: 4;
  background: transparent;
}
.games-grid .game-card:hover .game-info {
  transform: none !important;
}
.games-grid .game-card .game-name {
  color: #ffffff !important;
  text-shadow: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.games-grid .game-card .game-pub {
  color: rgba(255, 255, 255, 0.65) !important;
  text-shadow: none !important;
}
