/* =========================================
   1. FONTS, RESET & GLOBAL STYLES
   ========================================= */
@font-face {
  font-family: 'azn-normal';
  src: url('../fonts/azn.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'azn';
  src: url('../fonts/azn.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Helvetica, sans-serif;
  color: #fff;
  background: #0b0b0b url('https://gso.sgp1.digitaloceanspaces.com/hsgaming/companyprofile/background.jpg') center top repeat-y;
  background-size: cover;
  position: relative;
  z-index: 0;
  overflow-x: hidden;
}

.body-no-scroll {
  overflow: hidden;
}

section {
  padding: 80px 20px;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Scroll Margins for Anchors */
.hero, .mission-section, .provablyfair-section, .our-games, .contact-section {
  scroll-margin-top: 100px !important;
}

/* =========================================
   2. TYPOGRAPHY & TEXT UTILITIES
   ========================================= */
h2, h3 {
  text-align: center;
}

h2 {
  font-size: 60px;
  font-family: azn-normal;
  font-style: normal;
  line-height: 1.15;
}

h3 {
  font-size: 30px;
  font-family: lexend;
}

h4 {
  font-family: lexend;
}

/* Gradient Text Classes */
.goldtxt {
  background: linear-gradient(to bottom, #ba9310 0%, #ffff85 20%, #ba9310 40%, #ffff85 60%, #ba9310 80%, #ffff85 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.silvertxt {
  background: linear-gradient(to bottom, #b0b0b0 0%, #ffffff 20%, #b0b0b0 40%, #ffffff 60%, #b0b0b0 80%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Gradient spans inside H2: avoid cropping */
h2 .goldtxt,
h2 .silvertxt,
.mission-section h2 .goldtxt,
.mission-section h2 .silvertxt {
  display: inline-block;
  overflow: visible;
  padding: 0.05em 0.18em 0.12em;
  margin: 0 -0.18em;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.decorative-img {
  pointer-events: none;
  user-select: none;
  z-index: -99;
}

/* =========================================
   3. NAVIGATION (GLOBAL)
   ========================================= */
nav {
  position: fixed;
  top: 25px;
  left: 0;
  right: 0;
  z-index: 3000;
  padding: 0 16px 8px;
  display: flex;
  justify-content: center;
  background: transparent;
}

/* Capsule Style */
.nav-shell {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  border-radius: 999px;
  border: 3px solid rgba(255,215,0,0.45);
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,0.10), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(255,255,255,0.06), transparent 55%),
    #050505;
  box-shadow:
    0 0 20px rgba(0,0,0,0.9),
    0 0 22px rgba(255,215,0,0.25);
}

.nav-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a,
.nav-link.dropdown-toggle {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-link.dropdown-toggle:hover {
  color: #ba9310;
}

.nav-link.dropdown-toggle {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

/* Dropdown Styles */
.nav-dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: 130%;
  left: 0;
  background: #111;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 8px 0;
  min-width: 150px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.dropdown-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
}

.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Language Picker */
.language-picker .language-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.flag-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #333;
}

.language-menu { min-width: 160px; }
.language-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 14px;
}
.language-menu a:hover { background: #1a1a1a; }

/* --- Mobile Navigation Base --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 4000;
}

.hamburger span {
  background: #fff;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translateY(11.8px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-11.8px); }

.sidebar {
  position: fixed;
  top: 80px;
  right: -310px;
  width: 250px;
  height: auto;
  max-height: calc(100vh - 100px);
  background: hsl(0, 0%, 15%);
  flex-direction: column;
  padding: 20px 25px;
  transition: right 0.3s ease-in-out;
  z-index: 3500;
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
  border-radius: 50px;
}

.sidebar.active { right: 10px; }

.sidebar a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  margin: 12px 0;
  font-weight: 500;
  transition: color 0.2s ease;
}
.sidebar a:hover { color: #ba9310; }

.sidebar-item {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sidebar-link.has-children {
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  font-size: 18px;
  font-weight: 500;
  padding: 0;
  margin: 12px 0;
  cursor: pointer;
}

.sidebar-submenu {
  display: flex;
  flex-direction: column;
  padding-left: 10px;
  margin-top: 4px;
  border-left: 1px solid #333;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.25s ease;
}

.sidebar-submenu a { font-size: 16px; margin: 6px 0; }
.sidebar-item.open .sidebar-submenu { max-height: 400px; opacity: 1; transform: translateY(0); }

.language-picker-mobile .sidebar-link { display: flex; align-items: center; gap: 10px; }
.language-picker-mobile .flag-icon { width: 20px; height: 20px; }
.language-picker-mobile .sidebar-submenu a { display: flex; align-items: center; gap: 10px; font-size: 15px; }


/* =========================================
   4. NAVIGATION MEDIA QUERIES
   ========================================= */

/* Desktop (Dynamic capsule width on hover) */
@media (min-width: 769px) {
  nav {
    --nav-collapsed-width: 260px;
    --nav-open-width: min(1200px, 100%);
    --logo-open-left: 52px;
  }

  .hamburger { 
    display: none; 
  }

  .nav-shell {
    width: var(--nav-collapsed-width);
    transition: width 0.35s ease, box-shadow 0.25s ease;
  }

  .nav-container { 
    justify-content: flex-start; 
  }

  .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-shrink: 0;
    transition: left 0.35s ease, transform 0.35s ease;
  }

  .nav-links {
    position: absolute;
    top: 50%;
    right: 32px;
    transform: translate(16px, -50%);
    opacity: 0;
    pointer-events: none;              /* default: SELALU MATI */
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  /* kapsul melebar saat hover (atau kalau suatu saat kamu pakai .nav-open) */
  nav:hover .nav-shell,
  nav.nav-open .nav-shell {
    width: var(--nav-open-width);
    box-shadow: 0 0 20px rgba(0,0,0,0.9), 0 0 28px rgba(255,215,0,0.55);
  }

  nav:hover .logo,
  nav.nav-open .logo {
    left: var(--logo-open-left);
    transform: translate(0, -50%);
  }

  /* HOVER hanya ngurus visual (muncul / geser), BUKAN klik */
  nav:hover .nav-links,
  nav.nav-open .nav-links {
    opacity: 1;
    transform: translate(0, -50%);
  }

  /* KLlK menu baru hidup kalau nav sudah READY (class ini dikasih JS
     setelah transition width selesai) */
  nav.nav-ready .nav-links,
  nav.nav-open .nav-links {
    pointer-events: auto;
  }
}


/* Intermediate Widths */
@media (max-width: 920px) {
  .nav-links a, .nav-link.dropdown-toggle { font-size: 15px; }
}

@media (max-width: 870px) {
  .nav-links a, .nav-link.dropdown-toggle { font-size: 13px; }
}

/* Mobile "Dynamic Island" Style */
@media (max-width: 768px) {
  nav {
    top: 20px;
    padding: 0 16px 8px;
    border: none;
  }
  .nav-shell {
    width: min(360px, 100%);
    max-width: 100%;
  }
  .nav-container {
    padding: 10px 18px;
    justify-content: space-between;
  }
  .logo {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }
  .logo img { height: 40px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  
  .sidebar {
    display: flex;
    position: fixed;
    top: 100px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-20px);
    width: min(360px, 100% - 32px);
    max-height: calc(100vh - 110px);
    background:
      radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
      radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
      linear-gradient(135deg, rgba(186, 147, 16, 0.40), rgba(0, 0, 0, 0.85));
    backdrop-filter: blur(26px) saturate(1.35);
    -webkit-backdrop-filter: blur(26px) saturate(1.35);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.04);
    opacity: 0;
    pointer-events: none;
    isolation: isolate;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }
  .sidebar.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* NAV stays expanded when dropdown is open */
nav.nav-force-open .nav-shell {
    width: var(--nav-open-width) !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.9), 0 0 28px rgba(255,215,0,0.55);
}

nav.nav-force-open .logo {
    left: var(--logo-open-left);
    transform: translate(0, -50%);
}

nav.nav-force-open .nav-links {
    opacity: 1;
    transform: translate(0, -50%);
    pointer-events: auto; /* ensure clickable */
}


/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  background-color: #000;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.80) 55%, rgba(0, 0, 0, 1.0) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.9));
}

.hero-inner {
  position: relative;
  max-width: 1200px;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Base Styles for Hero Images */
.hero-img {
  position: absolute;
  width: auto;
  max-width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  animation: popIn 0.6s ease-out forwards;
  transform-origin: center center;
  pointer-events: none;
  user-select: none;
}

/* Specific Hero Images */
.hero-img-3 {
  left: 2%; top: 0%; transform: translateY(-50%) scale(0.8); width: 25%;
  animation: popIn 0.6s ease-out 1.1s forwards, shine 1s ease-out 1.7s 1 forwards;
  /* Transitions */
  transition: margin-left 0.15s linear, left 0.15s linear, right 0.15s linear;
  will-change: margin-left, left, right;
}

.hero-img-4 {
  right: 2%; top: 0%; transform: translateY(-50%) scale(0.8); width: 70%;
  animation: popIn 0.6s ease-out 1.1s forwards, shine 1s ease-out 1.7s 1 forwards;
  /* Transitions */
  transition: margin-left 0.15s linear, left 0.15s linear, right 0.15s linear;
  will-change: margin-left, left, right;
}

/* Lights */
.hero-img-5 { width: 60%; opacity: 0; transform: translateY(50%); position: absolute; }
.hero-img-5.hero-light-a { right: 52%; bottom: 0%; animation: lightIntroA 3.6s ease-in-out 1.8s forwards, lightLoopA 6s ease-in-out 5.4s infinite; }
.hero-img-5.hero-light-b { right: 63%; bottom: 97%; animation: lightLoopB 6s ease-in-out 5.4s infinite; }

.hero-img-6 { width: 60%; opacity: 0; transform: translateY(-50%); position: absolute; }
.hero-img-6.hero-light-a { left: 63%; top: 5%; animation: lightIntroA 3.6s ease-in-out 1.8s forwards, lightLoopA 6s ease-in-out 5.4s infinite; }
.hero-img-6.hero-light-b { right: 17%; top: 100%; animation: lightLoopB 6s ease-in-out 5.4s infinite; }

/* Hero Text */
.hero-text {
  position: absolute;
  transform: translateX(-50%);
  font-style: italic;
  z-index: 9999;
  pointer-events: none;
  user-select: none;
}

.hero-1 {
  bottom: 50%; left: 50%;
  animation-delay: 0.6s;
  font-size: 100px;
  font-family: azn;
  overflow: visible;
  white-space: nowrap;
  padding-inline: 0.3em;
}

.hero-1 .goldtxt, .hero-1 .silvertxt {
  display: inline-block;
  overflow: visible;
  padding: 0.05em 0.12em;
  margin: 0 -0.12em;
}

.hero-logo {
  position: absolute;
  bottom: 40%;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 1200px);
  aspect-ratio: 8 / 1;
  z-index: 99;
}

/* Coins & Decorations */
.hero-img-7 { top: 24%; left: -16%; width: 200px; --end-rotation: 17deg; animation: none; }
.hero-img-8 { top: 26%; right: -17%; width: 180px; --end-rotation: -30deg; animation: none; }
.hero-img-9 { bottom: 8%; left: 0%; width: 190px; --end-rotation: 30deg; animation: none; }
.hero-img-10 { bottom: 8%; right: 4%; width: 160px; --end-rotation: -30deg; animation: none; }
.hero-img-11 { top: 60%; left: -21%; width: 136px; --end-rotation: 25deg; animation: none; }
.hero-img-12 { top: 61%; right: -20%; width: 135px; --end-rotation: -25deg; animation: none; }

/* Shared Coin Properties (Pointer events & transitions) */
.hero-img-7, .hero-img-8, .hero-img-9, .hero-img-10, .hero-img-11, .hero-img-12 {
  pointer-events: auto;
  filter: brightness(1) drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  transition:
    top 0.15s linear, bottom 0.15s linear, left 0.15s linear, right 0.15s linear,
    filter 0.8s ease-out;
  will-change: top, bottom, left, right;
}

.hero-coin-ready {
  opacity: 1;
  animation: coinIdle 6s ease-in-out infinite;
  transform-origin: center center;
}

.hero-coin-jiggle { animation: jiggle 0.35s ease-in-out; }
.hero-coin-pop { animation: coinPopRotate 0.8s ease-out forwards; }

.hero-coin-glow {
  filter: brightness(1.9) drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 35px rgba(255, 215, 0, 0.9));
}

/* Hero Symbols (Interaction) */
.hero-symbol {
  position: absolute;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
  cursor: pointer;
  z-index: 15;
  pointer-events: none;
  height: auto;
}
.hero-symbol.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

/* Individual Symbol Config */
.hero-symbol-7 { width: 185px; --symbol-offset-x: 15px; --symbol-offset-y: -65px; }
.hero-symbol-8 { width: 185px; --symbol-offset-x: -9px; --symbol-offset-y: -80px; }
.hero-symbol-9 { width: 121px; height: 154px; --symbol-offset-x: 5px; --symbol-offset-y: -72px; }
.hero-symbol-10 { width: 150px; --symbol-offset-x: -2px; --symbol-offset-y: -55px; }
.hero-symbol-11 { width: 195px; --symbol-offset-x: 16px; --symbol-offset-y: -53px; }
.hero-symbol-12 { width: 160px; --symbol-offset-x: -7px; --symbol-offset-y: -60px; }


/* =========================================
   6. HERO RESPONSIVE MEDIA QUERIES
   ========================================= */


  /* Max 1500px */
@media(max-width:1656px) {
.hero-img-11 { top: 60%; left: -11%; width: 136px; }
.hero-img-12 { top: 61%; right: -9%; width: 135px; }
.hero-img-9 { bottom: 8%; left: 8%; width: 190px; }
.hero-img-10 { bottom: 8%; right: 12%; width: 160px; }
}

/* Max 1500px */
@media(max-width:1500px) {
  .hero-img-1 { max-width: 28%; top: 24%; left: 12%; }
  .hero-img-2 { max-width: 31%; top: 25%; right: 10%; }
  .hero-img-7 { max-width: 15%; left: 18%; top: 23%; }
  .hero-img-8 { max-width: 15%; right: 18%; top: 23%; }
  .hero-img-9 { max-width: 45%; bottom: 9%; left: 17%; }
  .hero-img-10 { max-width: 45%; bottom: 9%; right: 20%; }
  .hero-img-11 { width: 136px; top: 37%; left: 2%; }
  .hero-img-12 { width: 135px; top: 39%; right: 2%; }
  
  .hero-symbol-7 { width: 150px; }
  .hero-symbol-8 { width: 150px; }
  
  .hero-1 { font-size: 95px; }
  .hero-logo { bottom: 36%; }
}

/* Max 1024px */
@media (max-width: 1024px) {
  .hero-logo { bottom: 41%; }
  .hero-img-1 { max-width: 25%; top: 33%; left: 17%; }
  .hero-img-2 { max-width: 28%; top: 34%; right: 15%; }
  .hero-img-7 { max-width: 18%; left: 10%; }
  .hero-img-8 { max-width: 16%; right: 11%; }
  .hero-img-9 { max-width: 30%; bottom: 7%; left: 22%; }
  .hero-img-10 { max-width: 30%; bottom: 7%; right: 23%; }
  .hero-img-11 { top: 73%; }
  .hero-img-12 { top: 74%; right: 3%; }
  .hero-1 { font-size: 80px; }
}

/* Max 768px (Mobile) */
@media (max-width: 768px) {
  .hero-logo { bottom: 45%; }
  .hero-img-2 { display: none; }
  .hero-img-1 { max-width: 50%; top: 30%; left: 25%; z-index: 0; }
  .hero-1 { font-size: 55px; }
  .hero-img-7 { max-width: 23%; top: 25%; left: 0%; }
  .hero-img-8 { max-width: 22%; top: 26%; right: 0%; }
  .hero-img-9 { max-width: 30%; bottom: 7%; left: 0%; }
  .hero-img-10 { max-width: 30%; bottom: 6%; right: 0%; }
  .hero-img-11 { left: 17%; max-width: 25%; top: 67%; }
  .hero-img-12 { right: 17%; max-width: 25%; top: 68%; }

  .hero-symbol-7 { max-width: 25%; --symbol-offset-x: 7px; --symbol-offset-y: -45px; }
  .hero-symbol-8 { max-width: 25%; --symbol-offset-x: -20px; --symbol-offset-y: -58px; }
  .hero-symbol-9 { max-width: 25%; height: 130px; --symbol-offset-x: 6px; --symbol-offset-y: -60px; }
  .hero-symbol-10 { max-width: 25%; }
  .hero-symbol-11 { max-width: 25%; --symbol-offset-x: 5px; --symbol-offset-y: -33px; }
  .hero-symbol-12 { max-width: 25%; }
}

/* Smaller Mobile Breakpoints */
@media (max-width: 530px) { .hero-1 { font-size: 45px; } }

@media (max-width: 480px) {
  .hero { height: 85vh; }
  .hero-img-1 { max-width: 85%; top: 5%; left: 9%; opacity: 0.5; animation: none !important; }
  .hero-img-7 { max-width: 24%; left: 0%; }
  .hero-img-8 { max-width: 22%; right: 2%; top: 25%; }
  .hero-img-9 { max-width: 30%; bottom: 14%; }
  .hero-img-10 { max-width: 25%; bottom: 15%; }
  .hero-img-11 { left: 39%; max-width: 20%; top: 25%; }
  .hero-img-12 { right: 40%; max-width: 25%; top: 68%; }
  .hero-logo { bottom: 47%; }
  
  .hero-symbol-7 { max-width: 23%; }
  .hero-symbol-8 { max-width: 20%; --symbol-offset-x: -22px; --symbol-offset-y: -42px; }
  .hero-symbol-9 { max-height: 15%; }
  .hero-symbol-10 { max-width: 25%; --symbol-offset-y: -42px; }
  .hero-symbol-11 { max-width: 25%; }
  .hero-symbol-12 { max-width: 25%; }
}

@media (max-width: 440px) {
  .hero-1 { font-size: 8vw; }
  .hero-img-8 { max-width: 25%; }
  .hero-symbol-7 { width: 107px; }
  .hero-symbol-8 { width: 110px; }
  .hero-symbol-9 { width: 110px; height: 125px; }
  .hero-symbol-10 { width: 100px; }
}

@media (max-width: 400px) { .hero-logo { bottom: 46%; } }

@media (max-width: 370px) {
  .hero { height: 85vh; max-height: 900px; }
  .hero-img-7, .hero-img-8 { top: 31%; max-width: 30%; }
  .hero-img-9 { max-width: 30%; bottom: 11%; }
  .hero-img-10 { max-width: 30%; bottom: 12%; }
}

@media (max-width: 365px) { .hero-logo { bottom: 46%; } }
@media (max-width: 344px) { .hero-logo { bottom: 47%; } }


/* =========================================
   7. PARTNERS SECTION
   ========================================= */
.partners {
  position: relative;
  overflow: hidden;
  text-align: center;
  height: 400px;
  background-color: rgba(82, 82, 82, 0.2);
  --partner-bg: none;
}

.partners::before {
  content: ''; position: absolute; inset: 0; background: transparent; z-index: 0; pointer-events: none;
}

/* Moving bar with clip-path */
.partners::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.8) 40%, rgba(10, 10, 10, 0.75) 100%), var(--partner-bg) center/cover no-repeat;
  clip-path: polygon(0 0, 0 0, 0 50%, 0 100%, 0 100%);
  transition: clip-path 0.6s cubic-bezier(0.45, 0, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}

.partners.has-partner-bg::after {
  clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
}

.partners > * { position: relative; z-index: 2; }
.partners h2 { margin: 20px 0 80px; }

.partners-slider {
  position: relative; width: 100%; overflow: visible; margin-top: 50px;
}

.slider-track {
  display: flex; width: max-content;
  animation: scrollPartners 30s linear infinite;
  transition: all 0.3s ease;
}

.slider-track:has(img:hover) { animation-play-state: paused; }

.slider-track img {
  height: 60px; width: auto; margin: 0 40px; flex-shrink: 0;
  opacity: 0.7; transition: all 0.3s ease; cursor: pointer;
}
.slider-track img.pragmatic { height: 120px; position: relative; top: -40px; }
.slider-track img:hover { transform: scale(1.2); opacity: 1; }
.slider-track:has(img:hover) img:not(:hover) { filter: grayscale(100%); opacity: 0.5; transform: scale(0.8); }

@media (max-width: 768px) {
  .partners { padding: 40px 0 30px; }
  .partners-slider { margin-top: 20px; }
  .slider-track img { height: 48px; margin: 0 16px; }
  .slider-track img.pragmatic { height: 72px; top: -20px; }
}


/* =========================================
   8. MISSION SECTION
   ========================================= */
.mission-section {
  background-color: transparent;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: justify;
  text-align: justify;
}

.mission-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: justify;
}

.mission-left h2 {
  text-align: center;
  font-size: 45px;
  margin-bottom: 40px;
}

/* Headings & Text Blocks */
.mission-heading,
.whyhs-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
}

.mission-text { max-width: 650px; }
.mission-icon, .whyhs-icon { width: 35px; height: auto; }
.mission-block, .whyhs-block { position: relative; }

.mission-block p {
  color: #ddd;
  font-size: 14px;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  font-weight: bold;
}

.whyhs-columns {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding-left: 20px;
}

.whyhs-item { flex: 1; }
.whyhs-item h4 {
  color: #fff;
  font-size: 25px;
  margin-bottom: 5px;
  font-weight: bolder;
  margin-top: 0;
}
.whyhs-item p {
  color: #ddd;
  font-size: 14px;
  line-height: 1.8;
  padding-right: 50px;
  font-weight: 600;
}

.divider {
  width: 2px;
  background: linear-gradient(to bottom, #ba9310 0%, #ffff85 30%, #ba9310 60%, #ffff85 100%);
  border-radius: 1px;
  height: auto;
  align-self: stretch;
  margin: 0 20px;
}

/* --- Floating Elements (Base Positions) --- */
.card-img {
  position: absolute;
  right: 0%;
  top: 65%;
  transform: translateY(-50%) rotate(5deg);
  width: 330px;
  max-width: 400px;
  pointer-events: none;
  user-select: none;
}

.coin {
  position: absolute;
  width: 60px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.coin1 { top: -20%; left: -30%; transform: scale(3); }
.coin2 { top: 10%; left: -10%; transform: scale(1.5) rotate(15deg); }
.coin3 { bottom: 5%; left: -15%; transform: scale(1.15) rotate(-100deg); }
.coin4 { bottom: -20%; right: -10%; transform: rotate(-15deg) scale(1.2) scaleX(-1); }
.coin5 { bottom: 40%; right: -15%; transform: rotate(100deg) scale(1.2) scaleX(-1); }


/* =========================================
   MISSION MEDIA QUERIES
   (Specific Coordinate Overrides)
   ========================================= */

/* Range: 1700px - 1799px */
@media (max-width: 1799px) and (min-width: 1700px) {
  .card-img { right: -4%; width: 330px; }
  .coin1 { left: -28%; transform: scale(2.8); }
  .coin2 { left: -9%; transform: scale(1.4) rotate(15deg); }
  .coin3 { left: -13%; transform: scale(1.1) rotate(-100deg); }
  .coin4 { right: -9%; transform: rotate(-15deg) scale(1.1) scaleX(-1); }
  .coin5 { right: -13%; transform: rotate(100deg) scale(1.1) scaleX(-1); }
}

/* Range: 1600px - 1699px */
@media (max-width: 1699px) and (min-width: 1600px) {
  .card-img { right: -3%; width: 310px; }
  .coin1 { left: -26%; transform: scale(2.6); }
  .coin2 { left: -8%; transform: scale(1.3) rotate(15deg); }
  .coin3 { left: -11%; transform: scale(1.05) rotate(-100deg); }
  .coin4 { right: -8%; transform: rotate(-15deg) scale(1.0) scaleX(-1); }
  .coin5 { right: -11%; transform: rotate(100deg) scale(1.0) scaleX(-1); }
}

/* Max Width: 1599px */
@media (max-width: 1599px) {
  .card-img { right: -2%; width: 290px; }
  .coin1 { left: -24%; transform: scale(2.4); }
  .coin2 { left: -7%; transform: scale(1.2) rotate(15deg); }
  .coin3 { left: -9%; transform: scale(1.0) rotate(-100deg); }
  .coin4 { right: -7%; transform: rotate(-15deg) scale(0.9) scaleX(-1); }
  .coin5 { right: -9%; transform: rotate(100deg) scale(0.9) scaleX(-1); }
}

/* Max Width: 1500px */
@media(max-width:1500px) {
  .mission-left h2 { text-align: center; font-size: 45px; margin-bottom: 40px; }
  
  /* Text & Column Adjustments */
  .mission-heading, .whyhs-title {
    right: -48px; position: relative;
  }
  .mission-block p {
    right: -55px; position: relative;
  }
  .whyhs-columns {
    right: -57px; position: relative;
  }

  /* Coins & Card */
  .card-img { right: -5%; top: 55%; transform: translateY(-50%) rotate(5deg); width: 300px; }
  .coin1 { top: -20%; left: -13%; transform: scale(3); }
}

/* Max Width: 1380px */
@media(max-width:1380px) {
  .mission-left h2 { text-align: center; font-size: 45px; margin-bottom: 40px; }
  
  /* Text & Column Adjustments */
  .mission-heading, .whyhs-title { right: -102px; position: relative; }
  .mission-block p { right: -114px; position: relative; }
  .whyhs-columns { right: -112px; position: relative; }

  /* Coins & Card */
  .card-img { right: -3%; top: 55%; transform: translateY(-50%) rotate(5deg); width: 260px; }
  .coin1 { top: -20%; left: -8%; transform: scale(2.5); }
  .coin2 { top: 10%; left: -4%; transform: scale(1.5) rotate(15deg); }
  .coin3 { bottom: 5%; left: -3%; transform: scale(1.15) rotate(-100deg); }
  .coin4 { bottom: -20%; right: -8%; transform: rotate(-15deg) scale(1.2) scaleX(-1); }
  .coin5 { bottom: 40%; right: -12%; transform: rotate(100deg) scale(1.2) scaleX(-1); }
}

/* Max Width: 1245px */
@media(max-width:1245px) {
  .mission-left h2 { text-align: center; font-size: 45px; margin-bottom: 40px; }
  
  /* Text & Column Adjustments */
  .mission-heading, .whyhs-title { right: -95px; position: relative; }
  .mission-block p { right: -100px; position: relative; }
  .whyhs-columns { right: -112px; max-width: 965px; position: relative; }

  /* Coins & Card */
  .card-img { right: -2%; top: 55%; transform: translateY(-50%) rotate(5deg); width: 200px; }
  .coin1 { top: -5%; left: -3%; transform: scale(2.5); }
  .coin2 { top: 10%; left: -2%; transform: scale(1.5) rotate(15deg); }
  .coin3 { bottom: 5%; left: -4%; transform: scale(1.15) rotate(-100deg); }
  .coin4 { bottom: -20%; right: -5%; transform: rotate(-15deg) scale(1.2) scaleX(-1); }
  .coin5 { bottom: 40%; right: -8%; transform: rotate(100deg) scale(1.2) scaleX(-1); }
}

/* Max Width: 1024px (Significant Layout Change) */
@media (max-width: 1024px) {
  .mission-section { padding: 70px 40px; backdrop-filter: blur(6px); }
  .mission-left h2 { font-size: 60px; margin-bottom: 60px; letter-spacing: 1px; text-shadow: 0 0 15px rgba(186, 147, 16, 0.4); }

  /* Centered Headings */
  .mission-heading, .whyhs-title { justify-content: center; gap: 12px; position: relative; right: 10px; }

  /* Boxed Content Styles */
  .mission-block, .whyhs-block {
    margin: 0 auto 40px; padding: 30px 30px 40px;
    border: 1px solid rgba(186, 147, 16, 0.55);
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(186, 147, 16, 0.32), inset 0 0 10px rgba(255, 255, 255, 0.06);
  }

  .mission-text p { font-size: 15px; line-height: 1.8; max-width: 100%; right: -75px; }

  /* Columns Vertical Stack */
  .whyhs-columns { flex-direction: column; gap: 20px; align-items: stretch; padding-left: 0; position: relative; right: 1px; }

  .whyhs-item {
    padding: 20px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(186, 147, 16, 0.18), rgba(0, 0, 0, 0.9));
    border: 1px solid rgba(186, 147, 16, 0.4);
    box-shadow: 0 0 18px rgba(186, 147, 16, 0.25);
    backdrop-filter: blur(6px);
    text-align: left;
  }
  .whyhs-item h4 { font-size: 22px; margin-bottom: 8px; }
  .whyhs-item p { font-size: 15px; line-height: 1.65; }

  .divider { display: none; }

  /* Coins & Card Repositioning */
  .card-img {
    position: absolute; top: -60px; right: 0; width: 200px; max-width: 30%;
    transform: none; margin: 0; filter: drop-shadow(0 0 15px rgba(186, 147, 16, 0.5));
  }
  
  .coin1, .coin2, .coin3, .coin4, .coin5 { filter: drop-shadow(0 0 15px rgba(186, 147, 16, 0.5)); }
  .coin1 { top: 0%; left: 0%; transform: scaleX(-1) scale(2); }
  .coin2 { top: 0%; left: 0%; transform: scale(1.5) rotate(15deg); }
  .coin3 { bottom: -6%; left: -3%; transform: scale(1.15) rotate(-100deg); }
  .coin4 { bottom: 0%; right: 0%; transform: scaleX(-1) rotate(-15deg) scale(1.2) scaleX(-1); }
  .coin5 { bottom: 50%; right: -5%; transform: rotate(100deg) scale(1.2) scaleX(-1); }
}

/* Intermediate Mobile Adjustments for Text */
@media (max-width: 960px) { .mission-text p { font-size: 15px; line-height: 1.8; max-width: 100%; right: 3px; } }
@media (max-width: 840px) { .mission-text p { font-size: 15px; line-height: 1.8; max-width: 100%; right: 1px; } }
@media (max-width: 800px) { .mission-text p { font-size: 15px; line-height: 1.8; max-width: 100%; right: 1px; } }

/* Max Width: 768px (Mobile Layout) */
@media (max-width: 768px) {
  .mission-section { padding: 50px 16px; }
  .mission-left h2 { margin-bottom: 50px; font-size: 8vw; }
  
  .mission-heading, .whyhs-title { justify-content: center; text-align: center; margin: 20px 0; }
  .mission-icon, .whyhs-icon { width: 26px; }

  .mission-block, .whyhs-block {
    margin: 0 auto 28px; padding: 18px 16px 22px;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.9));
    border-radius: 16px; border: 1px solid rgba(186, 147, 16, 0.7);
    box-shadow: 0 0 18px rgba(186, 147, 16, 0.28);
  }
  
  .mission-text, .mission-block p { max-width: 100%; font-size: 14px; line-height: 1.7; text-align: justify; }
  
  .whyhs-columns { flex-direction: column; align-items: stretch; padding-left: 0; gap: 14px; max-width: 100%; }
  .whyhs-item {
    background: linear-gradient(135deg, rgba(186, 147, 16, 0.18), rgba(0, 0, 0, 0.9));
    border-radius: 10px; padding: 10px 12px 12px;
  }
  .whyhs-item h4 { font-size: 18px; margin-bottom: 4px; }
  .whyhs-item p { padding-right: 0; font-size: 14px; line-height: 1.6; }

  /* Mobile Coins & Card */
  .card-img { width: 180px; margin: 18px auto 0; display: block; }
  .coin1 { max-width: 20%; top: 0%; left: 0%; }
  .coin2 { bottom: -20%; left: 0%; }
  .coin3 { bottom: -5%; left: -3%; }
  .coin4 { bottom: -8%; right: -3.5%; }
  .coin5 { bottom: 50%; right: -6%; }
}

/* =========================================
   9. PROVABLY FAIR SECTION
   ========================================= */
.provablyfair-section {
  background-color: rgba(82, 82, 82, 0.2);
  position: relative;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  overflow: visible;
}

.provablyfair-container {
  max-width: 1180px; margin: 0 auto; padding: 0 20px; position: relative;
}

.provably-title {
  font-size: 56px; line-height: 1.1; text-align: center;
  font-family: 'Times New Roman', serif; margin-bottom: 15px;
}

.subtitle {
  text-align: left; color: #ccc; font-size: 18px; max-width: 70%;
}

.provablyfair-content, .providers-section {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 60px; position: relative;
}

.provablyfair-left, .provider-right { flex: 1; position: relative; }
.provablyfair-left h3, .provider-right h3 { font-size: 26px; font-weight: 700; margin-bottom: 25px; text-align: left; font-family: lexend; }

.fair-description, .provider-description {
  display: flex; align-items: flex-start; gap: 15px; position: relative;
}

.fair-line {
  position: absolute; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, #ba9310 0%, #ffff85 30%, #ba9310 60%, #ffff85 100%);
  border-radius: 2px;
}

.fair-description p, .provider-description p {
  color: #ddd; font-size: 17px; line-height: 1.6; margin: 0; max-width: 620px; padding-left: 25px;
}

.provablyfair-right { flex: 0 0 400px; }
.provider-left { flex: 0 0 380px; }
.providers-section { margin-top: 60px; }

.pf-image, .guard-img { position: absolute; pointer-events: none; user-select: none; }
.pf-image { width: 200px; top: -5%; right: -40%; transform: scale(1.8); }
.guard-img { width: 400px; top: -5%; left: -70%; }

@media (max-width: 1200px) { .pf-image { right: -45%; } .guard-img { left: -69%; } }

@media (max-width: 1024px) {
  .provablyfair-section { padding: 60px 40px; backdrop-filter: blur(6px); }
  .subtitle { text-align: center; margin: 10px auto 40px; max-width: 90%; }
  .provablyfair-content, .providers-section { display: block; }
  
  /* Top Card */
  .provablyfair-left {
    width: 100%;
    background: linear-gradient(135deg, rgba(186,147,16,0.18), rgba(0,0,0,0.92));
    border: 1px solid rgba(186,147,16,0.55);
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(186,147,16,0.32), inset 0 0 10px rgba(255,255,255,0.06);
    padding: 26px 30px 40px;
    overflow: visible;
  }
  .fair-line { display: none; }
  .provablyfair-left .fair-description p { padding-left: 0; max-width: 60%; }
  
  .pf-image {
    right: 10%; top: 45%; max-width: 25vw; z-index: 1;
    filter: drop-shadow(0 0 20px rgba(186,147,16,0.55));
  }
  
  /* Bottom Card */
  .providers-section { margin-top: 140px; }
  .provider-left { display: none; }
  .provider-right {
    width: 100%; margin-left: auto;
    background: linear-gradient(135deg, rgba(186,147,16,0.18), rgba(0,0,0,0.92));
    border: 1px solid rgba(186,147,16,0.55);
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(186,147,16,0.32), inset 0 0 10px rgba(255,255,255,0.06);
    padding: 30px 30px 90px;
    text-align: right;
    overflow: visible;
  }
  .provider-right .provider-description { justify-content: flex-end; }
  .provider-right .provider-description p { padding-left: 0; max-width: 60%; text-align: right; }
  
  .guard-img { top: 30%; left: -2%; max-width: 55%; width: 340px; filter: drop-shadow(0 0 20px rgba(186,147,16,0.55)); }
}

@media (max-width: 768px) {
  .provablyfair-section { padding: 50px 16px 150px; }
  .provablyfair-container h2 { font-size: 10vw; }
  .provablyfair-left {
    background: radial-gradient(circle at top left, rgba(186,147,16,0.18), rgba(0,0,0,0.9));
    border: 1px solid rgba(186,147,16,0.7);
    margin-top: 420px;
    padding: 20px 16px;
  }
  .provablyfair-left h3, .provider-right h3 { text-align: center; }
  .provablyfair-left .fair-description p, .provider-right .provider-description p { max-width: 73ch; text-align: center; }
  
  .pf-image { top: -415px; left: 50%; transform: translateX(-50%); width: 335px; max-width: none; }
  
  .provider-right {
    background: radial-gradient(circle at top left, rgba(186,147,16,0.18), rgba(0,0,0,0.9));
    border: 1px solid rgba(186,147,16,0.7);
    margin-top: 355px;
    padding: 20px 16px;
  }
  .provider-right .provider-description { justify-content: center; }
  
  .guard-img { top: -335px; left: 50%; transform: translateX(-50%); width: 335px; max-width: none; }
}

@media (max-width: 300px) { .pf-image { width: 265px; top: -330px; } .guard-img { width: 265px; top: -260px; } }


/* =========================================
   10. GAMES SECTION
   ========================================= */
.our-games {
  position: relative;
  margin-top: 80px;
  margin-bottom: 40px;
  text-align: center;
  overflow: hidden;
}

.games-category {
  scroll-margin: 120px;
}
  
.category-title {
  font-family: lexend; font-weight: 700; font-size: 28px; color: #fff; text-align: left;
  width: 1110px; margin: 40px auto 10px;
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(to right, #ba9310 0%, #ffff85bd 25%, #ba92107e 50%, #ffff852f 75%, #ba92100a 100%);
  border-image-slice: 1; padding-bottom: 5px;
}

.games-row {
  display: flex; align-items: center; justify-content: center;
  max-width: 1200px; margin: 30px auto; position: relative; padding: 10px 0; overflow: visible;
}

.game-carousel {
  overflow: hidden; width: 100%; margin: 0 auto; box-sizing: border-box;
  position: relative; display: flex; justify-content: flex-start; padding: 10px 0;
}

.arrow {
  background: none; border: none; cursor: pointer; width: 40px; height: 40px;
  background-size: contain; background-repeat: no-repeat; transition: transform 0.2s ease; flex-shrink: 0;
}
.arrow.left { background-image: url('https://gso.sgp1.digitaloceanspaces.com/hsgaming/companyprofile/icons/left-arrow.png'); }
.arrow.right { background-image: url('https://gso.sgp1.digitaloceanspaces.com/hsgaming/companyprofile/icons/right-arrow.png'); }
.arrow:hover { transform: scale(1.1); }

.game-cards { display: flex; gap: 10px; transition: transform 0.6s ease-in-out; will-change: transform; }
.game-cards.no-transition { transition: none; }

.game-card {
  position: relative;
  background: linear-gradient(to bottom, #1b1b1b, #0d0d0d);
  border-radius: 10px; overflow: hidden; width: 210px; height: auto; flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
  box-shadow: 0 0 8px rgba(186, 147, 16, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.game-card:hover { transform: translateY(-4px); box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); }
.game-card img { width: 100%; height: auto; object-fit: fill; border-radius: 0; }

.card-title {
  position: absolute; top: 0px; left: 50%; transform: translateX(-50%);
  padding: 4px 18px; min-width: 60%; max-width: 80%;
  background: linear-gradient(to bottom, #6b4300 0%, #a86a00 50%, #6b4300 100%);
  color: #fff; font-weight: 700; font-size: 13px; text-align: center; text-transform: capitalize;
  border-radius: 0px 0px 8px 8px; border: 1px solid rgba(0,0,0,0.55); box-shadow: 0 2px 6px rgba(0,0,0,0.7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; z-index: 2;
}

.coming-soon {
  position: absolute; bottom: 115px; left: 0; right: 0;
  background: rgba(176, 0, 0, 0.75); backdrop-filter: blur(4px);
  color: #fff; font-weight: bold; padding: 8px 0; font-size: 13px; letter-spacing: 0.5px;
  text-transform: uppercase; text-align: center; z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.2); border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.play-btn {
  width: 100%; background: linear-gradient(to bottom, #ba9310 0%, #ffff85 40%, #ba9310 100%);
  color: #000000; font-weight: 700; font-size: 14px; border: none; border-top: 1px solid #ba9310;
  padding: 10px 0; cursor: pointer; text-transform: capitalize; border-radius: 0; transition: all 0.25s ease;
  margin-top: 0 !important; display: block; line-height: 1;
}
.play-btn:hover { filter: brightness(1.15); transform: none; }

.game-card .coming-soon + .play-btn {
  background: linear-gradient(to bottom, #b00000 0%, #ff5858 40%, #b00000 100%);
  color: #fff; border-top: 1px solid #7a0000;
}
.game-card .coming-soon + .play-btn:hover { filter: brightness(1.2); }

.play-demo-btn {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  color: #ffeeee; font-weight: 800; z-index: 0;
}
.play-demo-btn::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 130px; max-width: 80%; height: 30px;
  background: linear-gradient(to bottom, #cf0000 0%, #ff4040 40%, #b10000 100%);
  border-radius: 10px; box-shadow: 0 0 8px rgba(0,0,0,0.5); z-index: -1;
}
.play-demo-btn:hover::before { filter: brightness(1.1); }

/* Decor Coins/Cards for Games */
.gold-dice-1, .gold-dice-2, .gold-roulette, .gold-card {
  position: absolute; width: 180px; height: auto; opacity: 0.9; z-index: -99; pointer-events: none; user-select: none;
}
.gold-dice-1 { top: -17%; right: -7%; transform: rotate(-40deg) scale(0.8); }
.gold-dice-2 { top: -55%; right: -14%; transform: rotate(-18deg); }
.gold-roulette { top: 8%; right: -10%; transform: scale(1.5); }
.gold-card { top: -21%; left: -14%; width: 170px; transform: scale(1.7); }
.coin6 { top: 15%; left: -16%; transform: scale(1.5) rotate(40deg); }
.coin7 { top: -45%; left: -3%; transform: scale(1.3) rotate(-70deg); }
.coin8 { bottom: 50%; left: -1%; transform: scale(3) rotate(-45deg); z-index: -99; }

.category-coming-soon-banner {
  display: inline-block;
  padding: 18px 72px;                  /* taller + wider */
  min-width: 90%;
  text-align: center;

  border-radius: 5px;
  background: linear-gradient(to bottom, #b00000 0%, #ff5858 40%, #b00000 100%);
  color: #fff;
  font-weight: 900;
  font-size: 22px;                     /* bigger text */
  letter-spacing: 3px;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.6);
}

/* Games Responsive */
@media (max-width: 1200px) {
  .category-title { width: 95%; margin: 32px auto 8px; }
  .games-row { max-width: 95%; }
}

@media (max-width: 1023px) {
  .our-games { padding: 50px 0 40px; margin-top: 0; }
}

@media (max-width: 768px) {
  .games-title { margin-bottom: 20px; font-size: 8vw; }
  .category-title { width: 90%; margin: 24px auto 8px; font-size: 20px; text-align: left; }
  .games-row { max-width: 100%; padding: 0 16px; overflow: hidden; }
  .game-carousel { width: 100%; overflow: hidden; }
  .game-cards { width: 100%; }
  .game-card { width: calc(50% - 6px); min-width: calc(50% - 6px); border-radius: 14px; }
  .card-title { font-size: 12px; padding: 4px 0; }
  .play-btn { font-size: 12px; padding: 8px 0; }
  .arrow { width: 32px; height: 32px; margin: 0 8px; }
  .gold-dice-1, .gold-dice-2, .gold-roulette, .gold-card, .coin6, .coin7, .coin8 { display: none; }
  .play-demo-btn::before { width: 110px; height: 26px; }
  .category-coming-soon-banner {
    padding: 14px 32px;
    min-width: 90%;
    font-size: 16px;
    letter-spacing: 2px;
  }
}

@media (max-width: 768px) and (min-width: 521px) {
  .game-card { width: calc(33.333% - 8px); min-width: calc(33.333% - 8px); }
}


/* =========================================
   11. CONTACT SECTION
   ========================================= */
.contact-section {
  position: relative; padding: 10px 0; background-color: rgba(82, 82, 82, 0.2); overflow: hidden;
}
.contact-section h2 { margin: 60px 0; }
.contact-title { font-size: 60px; text-align: center; }

.contact-container {
  display: flex; justify-content: center; align-items: flex-start; gap: 80px;
  max-width: 1200px; margin: 0 auto 80px auto; padding: 0 40px;
}

.contact-left { flex: 1; overflow: hidden; }
.contact-left .contact-block {
  opacity: 0; transform: translateX(-40px); transition: opacity 0.6s ease, transform 0.6s ease;
}
.contact-left .contact-block.visible { opacity: 1; transform: translateX(0); }

.contact-left h3 {
  font-size: 26px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 10px;
}

.contact-item {
  margin-bottom: 40px; border-left: 4px solid transparent;
  border-image: linear-gradient(to bottom, #ba9310 0%, #ffff85 25%, #ba9310 50%, #ffff85 75%, #ba9310 100%);
  border-image-slice: 1; padding-left: 20px; position: relative;
}
.contact-item p {
  color: #ddd; font-size: 16px; line-height: 1.7; font-weight: 600; margin: 0; max-width: 500px;
}

.contact-form-box {
  flex: 0 0 400px; border: 6px solid #ba9310; border-radius: 12px; padding: 4px 42px 20px;
  box-shadow: 0 0 20px rgba(186, 147, 16, 0.3); position: relative;
}
.contact-form-box h3 { color: #ffffff; font-size: 22px; font-weight: 700; margin-bottom: 25px; text-align: left; }
.contact-form-box label { display: block; font-size: 13px; color: #aaa; margin-bottom: 5px; }

.contact-form-box input, .contact-form-box textarea {
  width: 100%; border: 1px solid #333; border-radius: 8px; color: #000000; padding: 10px;
  font-size: 14px; margin-bottom: 15px; transition: border-color 0.3s ease;
}
.contact-form-box input:focus, .contact-form-box textarea:focus { border-color: #ba9310; outline: none; }
textarea { resize: vertical; }

/* Alerts & Icons */
.contact-alert { margin-bottom: 15px; padding: 10px 12px; border-radius: 8px; font-size: 0.9rem; line-height: 1.4; display: none; }
.contact-alert.is-visible { display: block; }
.contact-alert.success { background: rgba(46, 204, 113, 0.12); border: 1px solid #2ecc71; color: #2ecc71; }
.contact-alert.error { background: rgba(231, 76, 60, 0.12); border: 1px solid #e74c3c; color: #e74c3c; }

.input-with-icon { position: relative; display: flex; align-items: center; }
.input-with-icon input, .input-with-icon textarea { padding-left: 40px; }
.input-icon { position: absolute; left: 12px; color: #aaa; font-size: 18px; top: 11px; }
.textarea-with-icon .input-icon { top: 12px; }
.input-with-icon input:focus + .input-icon, .input-with-icon textarea:focus + .input-icon { color: #f1c40f; }

/* Recaptcha & Buttons */
.recaptcha-placeholder {
  background: #fff; border-radius: 5px; height: 70px; margin: 15px 0;
  display: flex; align-items: center; justify-content: center;
}
.recaptcha-placeholder img { width: 120px; opacity: 0.9; }
.captcha-row { overflow-x: hidden; overflow-y: visible; }
.g-recaptcha { display: inline-block; }

.send-btn {
  width: 100%; padding: 10px 0; border: none;
  background: linear-gradient(to bottom, #ba9310 0%, #ffff85 40%, #ba9310 100%);
  font-weight: 700; font-size: 15px; color: #000; border-radius: 4px; cursor: pointer;
  transition: filter 0.3s ease, transform 0.1s ease; margin-top: 10px;
}
.send-btn:hover { filter: brightness(1.2); transform: translateY(-1px); }

/* Contact Bottom Bar */
.contact-bottom { position: relative; display: flex; justify-content: center; align-items: center; padding-bottom: 100px; }
.contact-bar-inner {
  position: relative; display: flex; align-items: center; justify-content: center;
  max-width: 1200px; width: 100%; margin: 0 auto;
  background: linear-gradient(to right, #0c0c0c, #1a1a1a, #0c0c0c);
  border-radius: 12px; box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5); padding: 20px 0;
}
.contact-icon {
  position: absolute; left: 50px; top: 50%; transform: translateY(-50%); width: 270px; height: auto; z-index: 2;
  pointer-events: none; user-select: none;
}
.contact-info { text-align: left; padding-left: 100px; }
.contact-info h4 { color: #fff; font-weight: 800; font-size: 28px; margin: 0 0 5px 0; letter-spacing: 0.5px; }
.contact-info p { color: #ccc; font-size: 15px; margin: 0; }
.contact-info a { color: #ffffff; font-weight: 500; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* Decor Coins */
.coin9 { top: 0%; left: -250%; width: clamp(60px, 50%, 250px); transform: rotate(-40deg); z-index: -1; }
.coin10 { bottom: -10%; right: -50%; width: clamp(185px, 12%, 120px); transform: rotate(30deg); z-index: -5; }
.coin11 { bottom: -21%; right: -65%; width: clamp(135px, 10%, 100px); transform: rotate(-50deg); z-index: -6; }

/* Contact Responsive */
@media (max-width: 1024px) {
  .contact-bar-inner { flex-direction: column; text-align: center; padding: 40px 20px; }
  .contact-icon { position: relative; left: 0; top: 0; transform: none; margin-bottom: 15px; width: 140px; }
  .contact-info { padding-left: 0; }
}

@media (max-width: 768px) {
  .contact-section { padding: 40px 0 60px; }
  .contact-title { font-size: 8vw; margin: 30px 0 20px; }
  .contact-container {
    flex-direction: column; align-items: center; gap: 32px; max-width: 480px;
    margin: 0 auto 50px auto; padding: 0 16px; text-align: left;
  }
  .contact-left h3 { font-size: 18px; text-align: center; margin-bottom: 8px; }
  .contact-item {
    margin-bottom: 18px; border-left: none; border-image: none; padding: 14px;
    border-radius: 12px;
    background: radial-gradient(circle at top left, rgba(186,147,16,0.25), transparent 55%), rgba(0,0,0,0.55);
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.7); position: relative; overflow: hidden;
  }
  .contact-item::before {
    content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 3px;
    border-radius: 999px; background: linear-gradient(to right, #ba9310, #ffff85, #ba9310); opacity: 0.9;
  }
  .contact-item p { max-width: 100%; font-size: 14px; line-height: 1.6; text-align: center; }
  .contact-form-box { width: 100%; max-width: 400px; padding: 18px 43px 30px; border-radius: 14px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.8); margin: 0 auto; }
  .contact-form-box h3 { text-align: center; font-size: 18px; margin-bottom: 16px; }
  .recaptcha-placeholder {
    width: 100%; box-sizing: border-box; margin: 6px 0 14px; padding: 10px 12px;
    justify-content: flex-start; gap: 10px; box-shadow: 0 0 8px rgba(0, 0, 0, 0.3); transform: none;
  }
  .recaptcha-placeholder input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
  .recaptcha-placeholder img { width: 110px; height: auto; }
  .send-btn { font-size: 13px; padding: 9px 0; border-radius: 999px; }
  .coin9, .coin10, .coin11 { display: none; }
  .contact-bottom { padding: 0 16px 60px; }
  .contact-bar-inner {
    flex-direction: column; padding: 18px 16px; border-radius: 16px;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.9), 0 0 12px rgba(186, 147, 16, 0.35);
    animation: contactGlow 3.2s ease-in-out infinite;
  }
  .contact-icon { position: static; transform: none; margin-bottom: 10px; width: 130px; }
  .contact-info { padding-left: 0; text-align: center; }
  .contact-info h4 { font-size: 20px; margin-bottom: 6px; }
}


/* =========================================
   12. FOOTER
   ========================================= */
.footer {
  background: #0b0b0b; border-top: 2px solid #ba9310; color: #ccc;
  font-family: 'Montserrat', sans-serif; font-size: 14px; padding-top: 20px; padding-bottom: 30px;
}

.footer-container { max-width: 1200px; margin: 0 auto; box-sizing: border-box; }

.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 1px solid #222; padding-bottom: 12px; margin-bottom: 15px; position: relative;
}

.footer-logo { height: 50px; width: auto; }
.footer-center { flex: 1; display: flex; justify-content: flex-start; padding-left: 60px; }

.social-icons { display: flex; gap: 16px; align-items: center; }
.social img { width: 35px; height: 35px; transition: 0.3s ease; }
.social:hover img { filter: brightness(1.3); }

.footer-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 30px; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 500; transition: color 0.2s ease; }
.footer-links a:hover { color: #ba9310; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap; text-align: left;
}

.footer-bottom-left { max-width: 60%; display: flex; align-items: flex-start; gap: 12px; text-align: left; }
.footer-bottom-left img.age-icon { flex-shrink: 0; margin-top: 3px; width: 30px; }
.footer-bottom-left p { font-size: 13px; line-height: 1.6; color: #ccc; margin: 0; text-align: left; max-width: 400px; }
.footer-bottom-left a { color: #ffff85; text-decoration: none; }
.footer-bottom-left a:hover { text-decoration: underline; }

.footer-bottom-right { text-align: right; align-self: flex-end; }
.footer-bottom-right p { margin: 0 0 4px 0; color: #ffff85; font-size: 13px; }
.footer-policy a { color: #ccc; text-decoration: none; font-size: 13px; }
.footer-policy a:hover { color: #ba9310; }

@media (max-width: 768px) {
  .footer-top { flex-direction: column; gap: 20px; text-align: center; align-items: center; }
  .footer-left, .footer-center, .footer-right { display: flex; justify-content: center; width: 100%; }
  .footer-center { padding-left: 0; }
  .social-icons { justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; padding: 0 5px; }
  .footer-bottom-left { max-width: 100%; justify-content: center; }
  .footer-bottom-right { text-align: center; align-self: center; }
}


/* =========================================
   13. GLOBAL ANIMATIONS & KEYFRAMES
   ========================================= */
.fade-in-section {
  opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; will-change: opacity, transform;
}
.fade-in-section.visible { opacity: 1; transform: translateY(0); }
.our-games.fade-in-section, .our-games.fade-in-section.visible { transform: none; }

@keyframes popIn {
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes lightIntroA {
  0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; }
}
@keyframes lightLoopA {
  0%, 10% { opacity: 0; } 20%, 40% { opacity: 1; } 50%, 100% { opacity: 0; }
}
@keyframes lightLoopB {
  0%, 40% { opacity: 0; } 50%, 70% { opacity: 1; } 80%, 100% { opacity: 0; }
}

@keyframes fadeInOnly { to { opacity: 1; } }

@keyframes jiggle {
  0% { transform: translateY(0) rotate(var(--end-rotation)); }
  25% { transform: translateY(-3px) rotate(calc(var(--end-rotation) - 8deg)); }
  50% { transform: translateY(0) rotate(calc(var(--end-rotation) + 6deg)); }
  75% { transform: translateY(-2px) rotate(calc(var(--end-rotation) - 4deg)); }
  100% { transform: translateY(0) rotate(var(--end-rotation)); }
}

@keyframes coinIdle {
  0% { transform: translateY(0) rotate(var(--end-rotation)); }
  50% { transform: translateY(-20px) rotate(calc(var(--end-rotation) + 20deg)); }
  100% { transform: translateY(0) rotate(var(--end-rotation)); }
}

@keyframes coinPopRotate {
  0% { opacity: 0; transform: scale(0.5) translateY(20px) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.05) translateY(0) rotate(0deg); }
  100% { opacity: 1; transform: scale(1) translateY(0) rotate(var(--end-rotation)); }
}

@keyframes shine {
  0% { filter: brightness(1) drop-shadow(0 0 0px rgba(255,255,255,0)); }
  50% { filter: brightness(1.6) drop-shadow(0 0 20px rgba(255,255,255,0.8)); }
  100% { filter: brightness(1) drop-shadow(0 0 0px rgba(255,255,255,0)); }
}

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

@keyframes contactGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(0, 0, 0, 0.9), 0 0 10px rgba(186, 147, 16, 0.2); }
  50% { box-shadow: 0 0 24px rgba(0, 0, 0, 1), 0 0 18px rgba(255, 255, 133, 0.45); }
}

/* Jiggle variants preserving margins */
.hero-coin-ready.hero-coin-jiggle-top {
  animation: coinIdle 6s ease-in-out infinite, coinJiggleTop 0.35s ease-in-out;
}
.hero-coin-ready.hero-coin-jiggle-bottom {
  animation: coinIdle 6s ease-in-out infinite, coinJiggleBottom 0.35s ease-in-out;
}

@keyframes coinJiggleTop {
  0% { margin-top: 0; } 25% { margin-top: -10px; } 50% { margin-top: 0; } 75% { margin-top: -6px; } 100% { margin-top: 0; }
}

@keyframes coinJiggleBottom {
  0% { margin-bottom: 0; } 25% { margin-bottom: -10px; } 50% { margin-bottom: 0; } 75% { margin-bottom: -6px; } 100% { margin-bottom: 0; }
}

  @media (max-width: 768px) {
  h2,
  .games-title,
  .contact-title {
    font-size: 10vw; /* makin kecil layar, makin kecil font */
  }
}

#backToTopBtn{
  position:fixed;left:1.5rem;bottom:1.5rem;width:48px;height:48px;border-radius:999px;border:none;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,hsla(0,0%,30%,0.5),hsla(0,0%,30%,0.5));color:#ffffff;cursor:pointer;box-shadow:0 0 0 1px rgba(15,23,42,0.9),0 10px 20px rgba(15,23,42,0.9);opacity:0;visibility:hidden;transform:translateY(20px);transition:opacity 0.25s ease,transform 0.25s ease,visibility 0.25s ease;z-index:9999;backdrop-filter:blur(13px) saturate(1.15);-webkit-backdrop-filter:blur(13px) saturate(1.15);
}
#backToTopBtn i{
  font-size:1.1rem;
}
#backToTopBtn.show{
  opacity:1;visibility:visible;transform:translateY(0);
}
#backToTopBtn:focus{
  outline:2px solid rgba(248,250,252,0.8);outline-offset:2px;
}
@media (max-width:576px){
  #backToTopBtn{width:40px;height:40px;left:1rem;bottom:1rem;}
}
.hero{
  position:relative;overflow:hidden;
}
.hero-inner{
  position:relative;z-index:3;
}
.hero-dust{
  position:absolute;inset:0;pointer-events:none;z-index:2;
}
.hero-dust-back{
  opacity:0.25;background-image:radial-gradient(circle,rgba(255,255,255,0.10) 0px,rgba(255,255,255,0.10) 1px,transparent 2px);background-size:220px 220px;animation:heroDustMoveBack 60s linear infinite;
}
.hero-dust-front{
  opacity:0.35;background-image:radial-gradient(circle,rgba(255,255,255,0.18) 0px,rgba(255,255,255,0.18) 1px,transparent 2px);background-size:140px 140px;animation:heroDustMoveFront 40s linear infinite;
}
@keyframes 
heroDustMoveBack{0%{background-position:0 0;}100%{background-position:-220px -220px;}
}
@keyframes 
heroDustMoveFront{0%{background-position:0 0;}100%{background-position:140px 140px;}
}
@media (max-width:576px){
  .hero-dust-back{opacity:0.18;}.hero-dust-front{opacity:0.25;}
}


