@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body::-webkit-scrollbar {
    display: none;
}
html {
  scroll-behavior: smooth;
}

:root {
  --bg: #f0f4ff;
  --bg-section: #f8faff;
  --card-bg: #ffffff;
  --card-hover: #f5f8ff;
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-glow: rgba(79, 70, 229, 0.25);
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-glow: rgba(245, 158, 11, 0.3);
  --teal: #14b8a6;
  --teal-light: #5eead4;
  --pink: #ec4899;
  --pink-light: #f9a8d4;
  --orange: #f97316;
  --green: #22c55e;
  --text: #1e293b;
  --text-dim: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 25px 60px rgba(0, 0, 0, 0.15);
}

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ========== Animated Background Blobs ========== */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: blobFloat 20s ease-in-out infinite;
}

.blob:nth-child(1) {
  width: 400px;
  height: 400px;
  background: rgba(99, 102, 241, 0.15);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.blob:nth-child(2) {
  width: 350px;
  height: 350px;
  background: rgba(236, 72, 153, 0.1);
  top: 30%;
  right: -80px;
  animation-delay: -5s;
  animation-duration: 25s;
}

.blob:nth-child(3) {
  width: 300px;
  height: 300px;
  background: rgba(20, 184, 166, 0.12);
  bottom: 10%;
  left: 20%;
  animation-delay: -10s;
  animation-duration: 22s;
}

.blob:nth-child(4) {
  width: 250px;
  height: 250px;
  background: rgba(245, 158, 11, 0.1);
  top: 60%;
  right: 20%;
  animation-delay: -7s;
  animation-duration: 18s;
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -40px) scale(1.1);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }

  75% {
    transform: translate(40px, 30px) scale(1.05);
  }
}

/* ========== Scroll Animations ========== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-d1 {
  transition-delay: 0.1s;
}

.fade-d2 {
  transition-delay: 0.2s;
}

.fade-d3 {
  transition-delay: 0.3s;
}

.stagger>* {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger.visible>*:nth-child(1) {
  transition-delay: 0s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(2) {
  transition-delay: 0.06s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(3) {
  transition-delay: 0.12s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(4) {
  transition-delay: 0.18s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(5) {
  transition-delay: 0.24s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(6) {
  transition-delay: 0.30s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(7) {
  transition-delay: 0.36s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(8) {
  transition-delay: 0.42s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(9) {
  transition-delay: 0.48s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(10) {
  transition-delay: 0.54s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(11) {
  transition-delay: 0.54s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(12) {
  transition-delay: 0.54s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(13) {
  transition-delay: 0.54s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(14) {
  transition-delay: 0.54s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(15) {
  transition-delay: 0.54s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(16) {
  transition-delay: 0.54s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(17) {
  transition-delay: 0.54s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(18) {
  transition-delay: 0.54s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(19) {
  transition-delay: 0.54s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(20) {
  transition-delay: 0.54s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(21) {
  transition-delay: 0.54s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(22) {
  transition-delay: 0.54s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(23) {
  transition-delay: 0.54s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(24) {
  transition-delay: 0.54s;
  opacity: 1;
  transform: none;
}

.stagger.visible>*:nth-child(25) {
  transition-delay: 0.54s;
  opacity: 1;
  transform: none;
}

/* ========== HEADER ========== */
.header {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6d28d9 100%);
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  top: 0;
      margin-bottom: 6px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.scrolled {

  box-shadow: 0 4px 30px rgba(79, 70, 229, 0.35);
}

.header-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  position: relative;
}

.header-logo::after {
  content: 'GAMES';
  position: absolute;
  top: 0;
  left: 0;
  font-family: 'Fredoka One', cursive;
  font-size: 26px;
  font-weight: 900;
  color: var(--accent-light);
  opacity: 0;
  pointer-events: none;
}

.header-logo:hover {
  transform: scale(1.08);
}

.header-logo.glitch {
  animation: glitchText 0.3s steps(2) 2;
}

@keyframes glitchText {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-3px, 2px);
  }

  40% {
    transform: translate(3px, -2px);
  }

  60% {
    transform: translate(-2px, -1px);
  }

  80% {
    transform: translate(2px, 1px);
  }

  100% {
    transform: translate(0);
  }
}

.header-logo.glitch::after {
  animation: glitchAfter 0.3s steps(2) 2;
}

@keyframes glitchAfter {
  0% {
    opacity: 0;
    transform: translate(0);
  }

  20% {
    opacity: 0.7;
    transform: translate(3px, -2px);
  }

  40% {
    opacity: 0;
    transform: translate(-3px, 2px);
  }

  60% {
    opacity: 0.5;
    transform: translate(2px, 1px);
  }

  80% {
    opacity: 0;
    transform: translate(-2px, -1px);
  }

  100% {
    opacity: 0;
    transform: translate(0);
  }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 10px;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.header-nav a::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: var(--accent-light);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-50%);
}

.header-nav a:hover,
.header-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.header-nav a:hover::before,
.header-nav a.active::before {
  width: 20px;
}

.header-search {
  position: relative;
  margin-top: 10px;
  margin-bottom: 10px;
}

.header-search input {
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 8px 18px 8px 38px;
  color: #fff;
  font-size: 13px;
  width: 180px;
  outline: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.header-search input:focus {
  background: rgba(255, 255, 255, 0.25);
  width: 240px;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.header-search .search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  transition: color 0.3s;
}

.header-search input:focus~.search-icon {
  color: #fff;
}

/* ========== Container ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ========== Hero Banner ========== */
.hero {
  padding: 24px 30px;
}

.hero-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-row:last-child {
  margin-bottom: 0;
}

.hero-card {
  flex: 1;
  height: 170px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}


.hero-card:hover .card-shine {
  opacity: 1;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.15), transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  animation: heroRotate 4s linear infinite paused;
}

.hero-card:hover::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes heroRotate {
  100% {
    transform: rotate(360deg);
  }
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-xl);
}

.hero-card .card-overlay {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 10px 14px;
  z-index: 2;
}

.hero-card .go-btn {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 22px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(6px);
  opacity: 0;
  box-shadow: 0 4px 12px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.hero-card:hover .go-btn {
  transform: translateY(0);
  opacity: 1;
}

.hero-card .go-btn:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.hero-card .card-title {
  position: absolute;
  left: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 88%;
}

/* ========== Section Header ========== */
.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.section-header .accent-bar {
  width: 5px;
  height: 24px;
  border-radius: 3px;
  margin-right: 14px;
  background: linear-gradient(180deg, var(--primary), var(--pink));
  box-shadow: 0 0 12px var(--primary-glow);
}

.section-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

/* ========== Game Section ========== */
.game-section {
  padding: 0px 30px;
  margin-bottom: 20px;
}

/* Carousel */
.carousel-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 4px 12px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-progress {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.carousel-progress-bar {
  height: 100%;
  width: 30%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--pink));
  transition: width 0.1s linear;
}

.carousel-card {
  min-width: 170px;
  max-width: 170px;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.carousel-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: var(--shadow-lg);
}

.carousel-card .card-thumb {
  width: 100%;
  height: 120px;
  position: relative;
  overflow: hidden;
}

.carousel-card .play-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.carousel-card:hover .play-circle {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: playBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes playBounce {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
  }

  60% {
    transform: translate(-50%, -50%) scale(1.15);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.play-circle::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 14px solid var(--primary);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;
}

.carousel-card .card-info {
  padding: 12px;
}

.carousel-card .card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Game List */
.game-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.game-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.game-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--pink));
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 0 2px 2px 0;
}

.game-list-item:hover::before {
  opacity: 1;
}

.game-list-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.game-list-item .list-thumb {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-list-item:hover .list-thumb {
  transform: scale(1.12) rotate(3deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.game-list-item .list-info {
  flex: 1;
  min-width: 0;
}

.game-list-item .list-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}

.game-list-item .list-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  color: var(--accent);
  font-size: 12px;
  transition: transform 0.3s;
}

.tptop {
  padding-top: 24px;
}

.game-list-item:hover .star {
  animation: starPulse 0.5s ease;
}

@keyframes starPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

.star.empty {
  color: #e2e8f0;
}

.rating-num {
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 6px;
  font-weight: 600;
}

/* ========== NEW GAMES GRID ========== */
.new-games-section {
  padding: 32px 30px;
}

.new-games-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.new-games-header .left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.new-games-header .accent-bar {
  width: 5px;
  height: 24px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--pink));
  box-shadow: 0 0 12px var(--primary-glow);
}

.new-games-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}


.new-games-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 16px;
}

/* Span tall cards */
.ng-card.tall {
  grid-row: span 2;
}


.ng-card {
  border-radius: 18px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: #4f46e5;
  border: 1px solid var(--border);
}

.ng-card .ng-thumb {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.ng-card .ng-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ng-card:hover .ng-thumb img {
  transform: scale(1.08);
}

.ng-card .ng-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

.ng-card .ng-shine {
  position: absolute;
  inset: 0;

  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 2;
}

.ng-card:hover .ng-shine {
  opacity: 1;
}

.ng-card .ng-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ng-card .ng-badge.hot {
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
}

.ng-card .ng-badge.new {
  background: rgba(34, 197, 94, 0.85);
  color: #fff;
}

.ng-card .ng-badge.top {
  background: rgba(245, 158, 11, 0.85);
  color: #fff;
}

.ng-card .ng-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.ng-card:hover .ng-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ng-card .ng-play::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 16px solid var(--primary);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 3px;
}

.ng-card .ng-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 16px 16px 16px;
  z-index: 3;
}

.ng-card .ng-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  margin-bottom: 2px;
}

.ng-card .ng-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.icon-whatsapp:before {
  display: inline-block;
  width: 36px;
  font-size: 30px;
}

.icon-link:before {
  display: inline-block;
  width: 36px;
  font-size: 30px;
}

.icon-reddit:before {
  display: inline-block;
  width: 36px;
  font-size: 30px;
}

.ng-card .ng-meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ng-card .ng-meta .ng-rating {
  color: var(--accent-light);
}

.ng-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

/* Featured glow ring */
.ng-card.featured::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  z-index: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--pink), var(--accent));
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.ng-card.featured:hover::after {
  opacity: 1;
}

.ng-card.featured>* {
  position: relative;
  z-index: 1;
}

/* ========== Particle Burst ========== */
.particle-burst {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
}

.burst-particle {
  position: absolute;
  border-radius: 50%;
  animation: burstFly 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes burstFly {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

/* ========== Floating Particles ========== */
.particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-10vh) rotate(720deg);
    opacity: 0;
  }
}

/* ========== Footer ========== */
.footer {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6d28d9 100%);
  padding: 30px 30px;
  margin-top: 20px;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icons a:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  transition: all 0.3s;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-light);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links a:hover {
  color: #fff;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.scroll-top-btn {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-top-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px var(--accent-glow);
}

/* ========== Ripple ========== */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.2);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .new-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ng-card.wide {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 16px;

  }

  .header-nav {
    order: 1;
    flex-wrap: wrap;



  }

  .hero {
    padding: 16px;
  }

  .hero-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-card {
    min-width: calc(50% - 5px);
  }

  .game-section {
    padding: 16px;
  }

  .new-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-list {
    grid-template-columns: 1fr;
  }

  .footer .container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
  }

  .footer-right {
    align-items: center;
  }

  .game-section {
    margin-bottom: 0px;
  }

  .tptop {
    padding-top: 0px;
  }

  .new-games-section {
    padding: 0px 10px;
  }

  .hero {
    padding: 10px;
  }

  .game-section {
    padding: 10px;
  }

  .footer {
    padding: 30px 10px;
  }

  #main-header .container {
    flex-wrap: wrap;
  }

.header-search input:focus {
  width: 180px;
}
}
.Material .header,.Material .footer,.Material .hero-card {
    background: linear-gradient(135deg, #8BC34A 0%, #607D8B 50%, #6d28d9 100%)!important;
}

.Material .game-tag {
    background: #CDDC39!important;
}

.Material .btn-primary ,.Material .ng-card ,.Material #closeBtn,.Material .dldl {
    background: #CDDC39!important;
}

.Material .ng-card .ng-meta .ng-rating {
    color: #607D8B!important;
}