:root {
  --primary: #0940e5;
  --primary-dark: #0940e5;
  --secondary: #1a1a2e;
  --accent: #0940e5;
  --bg-dark: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #252542;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --border-color: #2a2a4a;
  --gradient-primary: linear-gradient(135deg, #0940e5 0%, #0940e5 100%);
  --shadow-hover: 0 8px 30px rgba(229, 9, 20, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  background-image: url('../../images/main-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-wrapper {
  flex: 1;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 14px 36px;
  font-size: 16px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 40px;
}

.header-right {
  display: flex;
  align-items: center;
}

.bp77-text {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.banner-carousel {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 70px auto 0;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
}

.carousel-track {
  position: relative;
  width: 100%;
}

.carousel-slide {
  display: none;
  width: 100%;
  position: relative;
  animation: fadeIn 0.5s ease-in-out;
}

.carousel-slide.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.slide-content h2 {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin: 0;
}

@media (max-width: 768px) {
  .banner-carousel {
    margin-top: 70px;
  }

  .slide-content h2 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .slide-content h2 {
    font-size: 24px;
  }
}


.promotions {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
}

.game-list-section {
  max-width: 1400px;
  margin: 0 auto 20px;
  padding: 0 20px;
  text-align: left;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.section-title-left {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.filter-container {
  display: inline-flex;
  margin-bottom: 20px;
  border-radius: 28px;
  background: rgba(20, 20, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white 100%, transparent 100%);
  mask-image: radial-gradient(white 100%, transparent 100%);
}

@media (max-width: 768px) {
  .filter-container {
    display: flex;
  }
}

@supports (backdrop-filter: blur(10px)) {
  .filter-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

.filter-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
}

.filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px;
  border-radius: 14px;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex-shrink: 0;
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  scroll-snap-align: start;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.3px;
}

.filter-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.filter-chip:active {
  transform: scale(0.92);
}

.filter-chip.active {
  background: #0940e5;
  color: #fff;
  box-shadow: 0 4px 20px rgba(9, 64, 229, 0.5), 0 2px 8px rgba(9, 64, 229, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  letter-spacing: 0;
}

.game-card.hidden {
  display: none;
}

.game-card {
  position: relative;
  background: rgba(108, 117, 125, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 100%;
  cursor: pointer;
  transition: var(--transition);
}

.game-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.game-banner {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.game-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 12px 15px;
  gap: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.game-icon {
  flex-shrink: 0;
}

.game-icon img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.game-details {
  flex: 1;
}

@media (max-width: 768px) {
  .game-banner {
    aspect-ratio: 4/3;
  }
  
  .game-info {
    padding: 20px 15px;
  }
  
  .game-icon img {
    width: 40px;
    height: 40px;
  }
  
  .game-name {
    font-size: 14px;
  }
  
  .game-desc {
    font-size: 12px;
  }
}

.game-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.game-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.promo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.promo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.promo-card img {
  width: 100%;
  height: auto;
  display: block;
}

.footer {
  background: var(--secondary);
  border-top: 1px solid var(--border-color);
  padding: 5px 10px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

/* Promo Carousel - Fade Effect */
.promo-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.promo-carousel-track {
  position: relative;
  width: 100%;
}

.promo-carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.promo-carousel-item:first-child {
  position: relative;
}

.promo-carousel-item.active {
  opacity: 1;
}

.promo-carousel-item img {
  width: 100%;
  height: auto;
  display: block;
}

.promo-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to left, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
  backdrop-filter: blur(5px);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

.promo-logo {
  position: absolute;
  top: 50%;
  right: 15%;
  transform: translateY(-50%);
  z-index: 2;
}

.promo-logo img {
  width: auto;
  max-width: 80px;
  height: auto;
}

/* About Us Section */
.about-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-image: url('../images/bg-about-dsk.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .about-section {
    min-height: auto;
    background-image: none;
    background-color: transparent;
    padding: 40px 15px;
  }

  .about-overlay {
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 0;
  }
}

.about-overlay {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 60px 50px;
  border: 1px solid var(--border-color);
}

.about-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.about-text {
  font-size: 16px;
  line-height: 2;
  color: var(--text-primary);
  text-align: justify;
}

@media (max-width: 768px) {
  .about-section {
    padding: 40px 15px;
  }

  .about-overlay {
    padding: 40px 25px;
  }

  .about-title {
    font-size: 24px;
    text-align: center;
  }

  .about-text {
    font-size: 15px;
    line-height: 1.9;
    text-align: left;
  }
}

.footer-logo img {
  height: 30px;
  margin-bottom: -10px;
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 20px 0;
}

/* Certifications */
.cert-title {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.certifications {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.cert-item {
  background: #6c757d;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  min-height: 45px;
}

.cert-item img {
  max-width: 60px;
  max-height: 30px;
  object-fit: contain;
}

.footer-text {
  margin-bottom: 5px;
}

.footer-text h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.footer-text p {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-desc-full {
  text-align: left;
}

.footer-desc-full h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 10px;
}

.footer-desc-full h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 15px 0 8px;
}

.footer-desc-full p {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-desc-full ul {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.8;
  margin-left: 20px;
  margin-bottom: 10px;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  border: 1px solid var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 28px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}

.read-more-btn:hover {
  opacity: 0.85;
}

.copyright {
  color: var(--text-secondary);
  font-size: 14px;
}

@media (max-width: 1024px) {
  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 20px;
    gap: 12px;
  }

  .promo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(9, 64, 229, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(9, 64, 229, 0.5);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* Marquee Notice */
.marquee-wrapper {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  padding: 6px 20px;
  display: flex;
  align-items: center;
}

.marquee-wrapper .notice-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  margin-right: 12px;
  color: #ffffff;
}

.marquee-wrapper .notice-icon svg {
  width: 16px;
  height: 16px;
}

.marquee-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 18s linear infinite;
  padding-left: 100%;
}

.marquee-content span {
  display: inline-block;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  letter-spacing: 0.3px;
}

.marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Loading Animation */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo {
  width: 120px;
  height: auto;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.95);
  }
}
