:root {
  --atas-red: #d32f2f;
  --atas-red-dark: #b71c1c;
  --atas-red-light: #ffebee;
  --atas-red-gradient: linear-gradient(180deg, #e53935 0%, #c62828 100%);
  --atas-black: #121212;
  --atas-gray: #f7f7f8;
  --atas-gray-border: #e5e7eb;
  --atas-text: #1f2937;
  --atas-text-muted: #4b5563;
  --atas-white: #ffffff;
  --container: 1200px;
  --header-height: 72px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Montserrat", "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  color: var(--atas-text);
  background: var(--atas-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

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

.btn-signup {
  background: var(--atas-red-gradient);
  color: var(--atas-white);
  border-color: #b71c1c;
}

.btn-login {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--atas-white);
}

.btn-outline {
  background: var(--atas-white);
  border-color: var(--atas-red);
  color: var(--atas-red);
}

.btn-outline:hover {
  background: var(--atas-red-light);
}

/* Top bar */
.top-bar {
  background: #111827;
  color: var(--atas-white);
  font-size: 0.875rem;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.current-time {
  color: #f3f4f6;
  font-weight: 500;
}

.top-link {
  color: #e5e7eb;
  font-weight: 600;
  transition: color 0.2s;
}

.top-link:hover {
  color: var(--atas-white);
}

.top-link-divider {
  color: #6b7280;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-flag {
  position: absolute;
  left: 8px;
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
}

.lang-switcher-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-select {
  background: #1f2937 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 8px center;
  border: 1px solid #4b5563;
  color: var(--atas-white);
  border-radius: 6px;
  padding: 6px 28px 6px 34px;
  font-size: 0.8125rem;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  min-width: 118px;
  transition: border-color 0.2s, background-color 0.2s;
}

.lang-select:hover,
.lang-select:focus {
  border-color: #9ca3af;
  outline: none;
}

.lang-select option {
  background: #1f2937;
  color: var(--atas-white);
}

@media (min-width: 769px) {
  .top-bar {
    padding: 14px 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .top-bar-inner {
    min-height: 48px;
    gap: 32px;
  }

  .top-bar-left,
  .top-bar-right {
    gap: 16px;
  }

  .top-bar-right {
    gap: 22px;
  }

  .top-bar-right .btn {
    padding: 10px 24px;
  }
}

/* Header */
.site-header {
  z-index: 1000;
  background: var(--atas-red);
  box-shadow: var(--shadow-md);
  overflow: visible;
}

@media (min-width: 769px) {
  .mobile-sticky-top {
    display: contents;
  }

  .site-header {
    position: sticky;
    top: 0;
  }
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-height);
}

.logo img {
  height: 36px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.mobile-nav-header,
.mobile-nav-actions,
.nav-backdrop {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-item-head {
  display: inline-flex;
  align-items: stretch;
  border-radius: 10px;
  transition: background 0.2s, box-shadow 0.2s;
}

.nav-item-dropdown:hover .nav-item-head,
.nav-item-dropdown.open .nav-item-head {
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--atas-white);
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.nav-item-head .nav-link {
  border-radius: 10px 0 0 10px;
  padding-right: 6px;
}

.nav-link-label {
  cursor: default;
  pointer-events: none;
}

.nav-item-more .nav-link-label {
  padding-right: 8px;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(0, 0, 0, 0.2);
}

.nav-item-head .nav-link:hover,
.nav-item-head .nav-link.active {
  background: transparent;
}

.nav-item:not(.nav-item-dropdown) > .nav-link:hover,
.nav-item:not(.nav-item-dropdown) > .nav-link.active {
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: none;
  background: transparent;
  color: var(--atas-white);
  cursor: pointer;
  border-radius: 0 10px 10px 0;
  transition: background 0.2s;
}

.nav-dropdown-toggle:hover {
  background: rgba(0, 0, 0, 0.12);
}

.nav-arrow {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  opacity: 0.9;
}

.nav-item-dropdown.open .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 10px 8px 8px;
  list-style: none;
  background: linear-gradient(180deg, #1f1f1f 0%, #141414 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  z-index: 1002;
  pointer-events: auto;
}

.nav-item-dropdown.open .nav-dropdown,
.nav-item-dropdown:hover .nav-dropdown {
  display: block;
  animation: navDropIn 0.22s ease;
}

@keyframes navDropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-item-more .nav-dropdown {
  right: 0;
  left: auto;
  min-width: 220px;
}

@media (min-width: 769px) {
  .nav-item-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
  }
}

.nav-dropdown-link {
  display: block;
  padding: 10px 14px;
  color: #e5e7eb;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.nav-dropdown-link:hover {
  background: rgba(211, 47, 47, 0.28);
  color: #fff;
  transform: translateX(3px);
}

.nav-dropdown-all {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #fca5a5;
  font-weight: 800;
}

.nav-dropdown-all:hover {
  background: rgba(211, 47, 47, 0.18);
  transform: none;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--atas-white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

html.nav-open,
body.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

/* Avoid smooth-scroll animation when the menu closes (was causing jump to top then back) */
html.nav-open {
  scroll-behavior: auto;
}

/* APK banner */
.apk-banner {
  display: none;
  background: #111827;
  color: var(--atas-white);
  padding: 12px 0;
  border-bottom: 1px solid #374151;
}

.apk-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.apk-banner-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
}

.apk-banner-text {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #f9fafb;
}

.apk-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #f9fafb;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.apk-close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.apk-close:focus-visible {
  outline: 2px solid #fca5a5;
  outline-offset: 2px;
}

/* Hero slider */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #000;
}

.hero-track {
  display: flex;
  transition: transform 0.5s ease;
}

.hero-slide {
  min-width: 100%;
}

.hero-slide-link {
  display: block;
  line-height: 0;
}

.hero-slide img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hero banner (single image, no slider) */
.hero-banner {
  overflow: hidden;
  background: #000;
}

.hero-banner-link {
  display: block;
  line-height: 0;
}

.hero-banner img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.hero-dot.active {
  background: var(--atas-white);
}

/* Marquee */
.marquee-strip {
  background: linear-gradient(90deg, #7f1d1d, var(--atas-red));
  color: var(--atas-white);
  padding: 12px 0;
  overflow: hidden;
  max-width: 100%;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
}

.marquee-speaker {
  width: 22px;
  flex-shrink: 0;
  filter: brightness(1.2);
}

.marquee-text {
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
  letter-spacing: 0.01em;
}

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

/* Mobile CTA */
.mobile-cta {
  display: none;
  gap: 12px;
  padding: 18px 0 6px;
}

.mobile-cta .btn {
  flex: 1;
  padding: 14px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.mobile-cta .btn-signup {
  box-shadow: 0 4px 0 #9a0007;
}

/* Quick actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px 0;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  background: var(--atas-white);
  border: 1px solid var(--atas-gray-border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-card:hover {
  transform: translateY(-2px);
  border-color: #fca5a5;
  box-shadow: var(--shadow-md);
}

.quick-card img {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}

.quick-card-title {
  font-weight: 800;
  font-size: 1rem;
  margin: 0;
  color: var(--atas-black);
}

.quick-card-sub {
  font-size: 0.875rem;
  color: var(--atas-text-muted);
  margin: 4px 0 0;
  font-weight: 500;
}

/* Game Categories */
.category-section {
  position: relative;
  background: linear-gradient(180deg, #f7f7f8 0%, #fff 40%, #fff5f5 100%);
  border-top: 1px solid var(--atas-gray-border);
  border-bottom: 1px solid var(--atas-gray-border);
  overflow: hidden;
}

.category-section::before,
.category-section::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
}

.category-section::before {
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.08) 0%, transparent 70%);
}

.category-section::after {
  bottom: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.06) 0%, transparent 70%);
}

.category-section > .container {
  position: relative;
  z-index: 1;
}

.category-section-header {
  margin-bottom: 36px;
}

.category-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  background: var(--atas-red-light);
  color: var(--atas-red-dark);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-shell {
  padding: 28px;
  background: var(--atas-white);
  border: 1px solid var(--atas-gray-border);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.category-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.category-block {
  --cat-accent: #d32f2f;
  --cat-bg: #fff5f5;
  position: relative;
  border: 1px solid var(--atas-gray-border);
  border-radius: 18px;
  background: var(--atas-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cat-accent) 0%, #ff8a80 100%);
}

.category-block::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, var(--cat-bg) 0%, transparent 70%);
  pointer-events: none;
}

.category-block:hover {
  transform: translateY(-4px);
  border-color: #fca5a5;
  box-shadow: 0 16px 36px rgba(211, 47, 47, 0.1);
}

.category-block-slots {
  --cat-accent: #d32f2f;
  --cat-bg: rgba(255, 245, 245, 0.9);
}

.category-block-live {
  --cat-accent: #c62828;
  --cat-bg: rgba(252, 228, 236, 0.9);
}

.category-block-sports {
  --cat-accent: #b71c1c;
  --cat-bg: rgba(249, 250, 251, 0.95);
}

.category-block-lottery {
  --cat-accent: #e53935;
  --cat-bg: rgba(255, 248, 248, 0.95);
}

.category-block-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px 24px 22px 28px;
}

.category-block h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--atas-black);
  letter-spacing: -0.02em;
}

.category-block h3::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cat-accent);
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.12);
}

.category-block p {
  flex: 1;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--atas-text-muted);
}

.category-block-footer {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed #e5e7eb;
}

.category-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 18px;
  background: transparent;
  color: var(--cat-accent);
  border: 2px solid var(--cat-accent);
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.category-view-all::after {
  content: "→";
  margin-left: 8px;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.category-view-all:hover {
  background: var(--atas-red-gradient);
  color: var(--atas-white);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.28);
}

.category-view-all:hover::after {
  transform: translateX(3px);
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--atas-gray);
  border-top: 1px solid var(--atas-gray-border);
  border-bottom: 1px solid var(--atas-gray-border);
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  font-weight: 800;
  color: var(--atas-black);
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0 auto;
  max-width: 680px;
  color: var(--atas-text-muted);
  font-size: 1rem;
  font-weight: 500;
  padding: 0 4px;
}

/* Hall of Fame */
.hof-section {
  position: relative;
  background: linear-gradient(180deg, #f7f7f8 0%, #fff 40%, #fff5f5 100%);
  border-top: 1px solid var(--atas-gray-border);
  border-bottom: 1px solid var(--atas-gray-border);
  overflow: hidden;
}

.hof-section::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100%);
  height: 200px;
  background: radial-gradient(ellipse, rgba(211, 47, 47, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hof-section-header {
  margin-bottom: 32px;
}

.hof-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  background: var(--atas-red-light);
  color: var(--atas-red-dark);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hof-shell {
  position: relative;
  z-index: 1;
  padding: 24px;
  background: var(--atas-white);
  border: 1px solid var(--atas-gray-border);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.game-tabs-scroll {
  width: 100%;
  margin-bottom: 24px;
}

.game-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px;
  background: linear-gradient(180deg, #1f1f1f 0%, #141414 100%);
  border: 1px solid #333;
  border-radius: 16px;
}

.game-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 12px;
  color: #d1d5db;
  cursor: pointer;
  min-width: 92px;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s, box-shadow 0.2s;
}

.game-tab-btn img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.2s, filter 0.2s;
}

.game-tab-btn span {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.game-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-1px);
}

.game-tab-btn:hover img {
  transform: scale(1.06);
}

.game-tab-btn.active {
  background: var(--atas-red-gradient);
  border-color: #ff8a80;
  color: var(--atas-white);
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.35);
}

.game-tab-btn.active img {
  filter: brightness(0) invert(1);
}

.hof-panels {
  min-height: 120px;
}

.game-tab-panel {
  display: none;
  animation: hofPanelIn 0.35s ease;
}

.game-tab-panel.active {
  display: block;
}

@keyframes hofPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-tab-panel {
    animation: none;
  }

  .game-card,
  .game-card-image img,
  .game-card-overlay,
  .game-card-play,
  .game-tab-btn,
  .game-tab-btn img {
    transition: none;
  }
}

/* Game grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.game-grid-scroll {
  max-height: 540px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px;
  margin-right: -6px;
  scrollbar-width: thin;
  scrollbar-color: #d32f2f #f3f4f6;
}

.game-grid-scroll::-webkit-scrollbar {
  width: 8px;
}

.game-grid-scroll::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 999px;
}

.game-grid-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e53935 0%, #c62828 100%);
  border-radius: 999px;
}

.game-grid-scroll::after {
  content: "";
  display: block;
  height: 4px;
}

.game-card {
  position: relative;
  display: block;
  background: var(--atas-white);
  border: 1px solid var(--atas-gray-border);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0 var(--atas-red);
  pointer-events: none;
  transition: box-shadow 0.25s ease;
  z-index: 2;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: #fca5a5;
  box-shadow: 0 14px 32px rgba(211, 47, 47, 0.14);
}

.game-card:hover::before {
  box-shadow: inset 0 0 0 2px rgba(211, 47, 47, 0.35);
}

.game-card-image {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1515 100%);
}

.game-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.game-card:hover .game-card-image img {
  transform: scale(1.06);
}

.game-card--logo .game-card-image {
  background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
}

.game-card--logo .game-card-image img {
  object-fit: contain;
  padding: 5px;
}

.game-card--logo:hover .game-card-image img {
  transform: scale(1.04);
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.game-card:hover .game-card-overlay,
.game-card:focus-within .game-card-overlay {
  opacity: 1;
}

.game-card-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 16px;
  background: var(--atas-red-gradient);
  color: #fff;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(211, 47, 47, 0.45);
  transform: translateY(6px);
  transition: transform 0.25s ease;
}

.game-card:hover .game-card-play {
  transform: translateY(0);
}

.game-card-name {
  margin: 0;
  padding: 12px 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--atas-black);
  background: #fafafa;
  border-top: 1px solid var(--atas-gray-border);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile app */
.app-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1515 100%);
  color: var(--atas-white);
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.app-content h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 14px;
  color: #fff;
}

.app-content p {
  color: #e5e7eb;
  margin: 0 0 16px;
  font-size: 1rem;
}

.app-content strong {
  color: #fff;
}

.app-qr {
  text-align: center;
}

.app-qr h3 {
  margin: 0 0 18px;
  font-size: 1.375rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}

.app-download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.app-download-item {
  margin: 0;
  text-align: center;
}

.app-download-item img {
  width: 100%;
  border-radius: 14px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.app-download-item figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #e5e7eb;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* User Experience section */
.ux-section {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #fafafa 45%, #fff5f5 100%);
  border-top: 1px solid var(--atas-gray-border);
  border-bottom: 1px solid var(--atas-gray-border);
  overflow: hidden;
}

.ux-section::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.ux-section::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.ux-section > .container {
  position: relative;
  z-index: 1;
}

.ux-section-header {
  margin-bottom: 44px;
}

.ux-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  background: var(--atas-red-light);
  color: var(--atas-red-dark);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ux-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ux-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px 28px;
  background: var(--atas-white);
  border: 1px solid var(--atas-gray-border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.ux-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--atas-red-gradient);
}

.ux-card:hover {
  transform: translateY(-6px);
  border-color: #fca5a5;
  box-shadow: 0 18px 40px rgba(211, 47, 47, 0.12);
}

.ux-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffebee 100%);
  border: 1px solid #fecaca;
  border-radius: 22px;
}

.ux-card-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.ux-card h3 {
  margin: 0 0 10px;
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--atas-black);
}

.ux-card p {
  margin: 0;
  max-width: 260px;
  font-size: 0.9375rem;
  color: var(--atas-text-muted);
  line-height: 1.65;
}

.ux-tag {
  display: inline-block;
  margin-top: 18px;
  padding: 7px 16px;
  background: var(--atas-red-gradient);
  color: var(--atas-white);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ux-tag-outline {
  background: transparent;
  color: var(--atas-red);
  border: 2px solid var(--atas-red);
}

.ux-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--atas-gray-border);
}

.ux-detail {
  position: relative;
  padding: 28px 24px 24px 28px;
  background: var(--atas-white);
  border: 1px solid var(--atas-gray-border);
  border-left: 4px solid var(--atas-red);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ux-detail:hover {
  transform: translateY(-4px);
  border-color: #fca5a5;
  box-shadow: 0 12px 28px rgba(211, 47, 47, 0.1);
}

.ux-detail-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  margin-bottom: 16px;
  padding: 0 12px;
  background: var(--atas-red-gradient);
  color: #fff;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ux-detail h3 {
  margin: 0 0 12px;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--atas-red-dark);
}

.ux-detail p {
  margin: 0;
  color: var(--atas-text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* FAQ */
.faq-section {
  background: linear-gradient(180deg, #fff5f5 0%, #fff 100%);
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--atas-white);
  border: 1px solid var(--atas-gray-border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: var(--atas-white);
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--atas-black);
}

.faq-question:hover {
  background: #fafafa;
}

.faq-question .icon {
  font-size: 1.375rem;
  color: var(--atas-red);
  flex-shrink: 0;
  transition: transform 0.3s;
  font-weight: 400;
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-item.open .faq-question {
  background: #fff5f5;
  color: var(--atas-red-dark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding:22px 20px;
  color: var(--atas-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

/* SEO content */
.seo-content {
  padding: 56px 0 64px;
  background: var(--atas-gray);
}

.seo-inner {
  margin: 0 auto;
  padding: 40px 36px;
  background: var(--atas-white);
  border-radius: 20px;
  border: 1px solid var(--atas-gray-border);
  box-shadow: var(--shadow-sm);
}

.seo-content h1 {
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  font-weight: 800;
  margin: 0 0 25px;
  color: var(--atas-black);
  line-height: 1.3;
}

.seo-content h2 {
  font-size: 1.375rem;
  font-weight: 800;
  margin: 36px 0 14px;
  color: var(--atas-red-dark);
}

.seo-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 26px 0 10px;
  color: var(--atas-black);
}

.seo-content p,
.seo-content li {
  color: var(--atas-text-muted);
  font-size: 1rem;
}

.seo-content ul {
  list-style: disc;
  padding-left: 24px;
  margin: 14px 0;
}

.seo-content li {
  margin-bottom: 8px;
}

.seo-content strong {
  color: var(--atas-text);
}

.seo-content a {
  color: var(--atas-red-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.seo-content strong a {
  font-weight: 800;
}

.seo-content a:hover {
  color: var(--atas-red);
}

/* Footer */
.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 0 0 0;
}

.footer-top {
  display: none;
  text-align: center;
  padding: 32px 0 24px;
  border-bottom: 1px solid #374151;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin: 0 auto 12px;
}

.footer-tagline {
  margin: 0;
  font-size: 0.875rem;
  color: #9ca3af;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 52px 0 36px;
}

.footer-col {
  min-width: 0;
}

.footer-col h2 {
  color: var(--atas-white);
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0 0 14px;
}

.footer-col hr {
  border: none;
  border-top: 1px solid #374151;
  margin: 0 0 16px;
}

.footer-col p {
  font-size: 0.9375rem;
  line-height: 1.75;
  margin: 0;
  color: #d1d5db;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: #e5e7eb;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fca5a5;
}

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

.bank-grid img {
  width: 100%;
  border-radius: 8px;
  background: var(--atas-white);
  padding: 4px;
}

.footer-license {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid #374151;
}

.footer-license h2 {
  color: var(--atas-white);
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.footer-license p {
  font-size: 0.875rem;
  margin: 0;
  color: #9ca3af;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 22px 0;
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
}

@media (max-width: 1100px) {
  .nav-link {
    font-size: 0.75rem;
    padding: 8px 7px;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .game-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .game-grid-scroll {
    max-height: 520px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hof-shell {
    padding: 20px;
  }

  .category-shell {
    padding: 20px;
    border-radius: 18px;
  }

  .category-blocks {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ux-details {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  html,
  body {
    overflow-x: hidden;
    overflow-x: clip;
  }

  .mobile-sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1001;
  }

  .site-header {
    position: static;
    z-index: 1;
  }

  .container {
    width: min(100% - 20px, var(--container));
  }

  body {
    font-size: 15px;
  }

  .top-bar-inner {
    min-height: auto;
    padding: 8px 0;
  }

  .top-bar-left {
    gap: 8px;
    font-size: 0.8125rem;
  }

  .top-bar-right .btn-login,
  .top-bar-right .btn-signup {
    display: none;
  }

  .top-bar-right {
    margin-left: auto;
    flex-shrink: 0;
  }

  .top-bar-right .lang-switcher {
    margin-left: auto;
  }

  .top-bar-right .lang-select {
    display: block;
    min-width: 108px;
    max-width: 132px;
    font-size: 0.75rem;
    padding: 5px 24px 5px 30px;
  }

  .top-bar-right .lang-flag {
    left: 6px;
    width: 16px;
    height: 16px;
  }

  .apk-banner-inner {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .apk-banner-logo {
    width: 40px;
    height: 40px;
  }

  .apk-banner-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.8125rem;
  }

  .apk-banner .btn {
    flex-shrink: 0;
    min-width: 0;
    padding: 8px 14px;
    font-size: 0.8125rem;
  }

  .apk-close {
    width: 34px;
    height: 34px;
    margin-left: 0;
  }

  .header-inner {
    gap: 10px;
    min-height: var(--header-height);
  }

  .logo img {
    height: 30px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1002;
    touch-action: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .nav-backdrop.show {
    opacity: 1;
    visibility: visible;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(100vw - 48px, 340px);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    background: linear-gradient(180deg, #8b1515 0%, #5c0f0f 45%, #1a1a1a 100%);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1003;
    overflow: hidden;
  }

  .main-nav.open {
    display: flex;
    animation: mobileNavSlide 0.28s ease;
  }

  @keyframes mobileNavSlide {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }

  .mobile-nav-header {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 18px 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.18);
  }

  .mobile-nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .mobile-nav-logo {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 8px 0 4px;
  }

  .mobile-nav-logo img {
    height: 32px;
    width: auto;
  }

  .mobile-nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
    padding-top: 4px;
  }

  .mobile-nav-actions .btn {
    width: 100%;
    padding: 11px 10px;
    font-size: 0.8125rem;
  }

  .mobile-nav-title {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .mobile-nav-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-list {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    width: 100%;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item-head {
    display: flex;
    width: 100%;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
  }

  .nav-item-dropdown:hover .nav-item-head,
  .nav-item-dropdown.open .nav-item-head {
    background: rgba(0, 0, 0, 0.22);
    box-shadow: none;
  }

  .nav-item:not(.nav-item-dropdown) > .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 15px 16px;
    font-size: 0.9375rem;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
  }

  .nav-item:not(.nav-item-dropdown) > .nav-link:hover,
  .nav-item:not(.nav-item-dropdown) > .nav-link.active {
    background: rgba(0, 0, 0, 0.32);
    box-shadow: none;
  }

  .nav-item-head .nav-link,
  .nav-item-more .nav-link-label {
    flex: 1;
    justify-content: flex-start;
    padding: 15px 16px;
    font-size: 0.9375rem;
    border-radius: 0;
  }

  .nav-dropdown-toggle {
    width: 52px;
    flex-shrink: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
  }

  .nav-item-dropdown:hover .nav-dropdown {
    display: none;
  }

  .nav-dropdown {
    position: static;
    min-width: 0;
    width: 100%;
    margin: 8px 0 0;
    padding: 6px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: none;
  }

  .nav-item-dropdown.open .nav-dropdown {
    display: block;
  }

  .nav-dropdown-link {
    text-align: left;
    padding: 12px 14px;
    font-size: 0.875rem;
    transform: none;
  }

  .nav-dropdown-link:hover {
    transform: none;
  }

  .nav-dropdown-all {
    text-align: center;
  }

  .header-actions {
    display: flex;
    flex-shrink: 1;
    min-width: 0;
  }

  .header-actions .btn {
    padding: 7px 10px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .apk-banner.show-mobile {
    display: block;
  }

  .hero-slide img,
  .hero-banner img {
    max-height: 240px;
    object-fit: contain;
    background: #000;
  }

  .hero-dots {
    bottom: 10px;
    gap: 8px;
    padding: 6px 10px;
  }

  .marquee-text {
    font-size: 0.8125rem;
  }

  .mobile-cta {
    display: flex;
    padding: 14px 0 14px;
  }

  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 20px 0;
  }

  .quick-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 14px 12px;
    gap: 10px;
  }

  .quick-card img {
    width: 48px;
    height: 48px;
  }

  .quick-card-title {
    font-size: 0.875rem;
    line-height: 1.3;
  }

  .quick-card-sub {
    display: block;
    font-size: 0.75rem;
  }

  .section {
    padding: 40px 0;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .section-header p {
    font-size: 0.9375rem;
  }

  .game-tabs-scroll {
    position: relative;
    margin: 0 -8px 20px;
    padding: 0 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  }

  .game-tabs-scroll::-webkit-scrollbar {
    display: none;
  }

  .hof-shell {
    padding: 16px 12px;
    border-radius: 18px;
  }

  .hof-section-header {
    margin-bottom: 24px;
  }

  .game-tabs-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    min-width: 100%;
    padding: 6px;
    border-radius: 14px;
  }

  .game-tab-btn {
    min-width: 78px;
    padding: 10px 12px;
    flex-shrink: 0;
    scroll-snap-align: center;
  }

  .game-tab-btn img {
    width: 32px;
    height: 32px;
  }

  .game-tab-btn span {
    font-size: 0.6875rem;
  }

  .game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .game-grid-scroll {
    max-height: 480px;
  }

  .category-section-header {
    margin-bottom: 24px;
  }

  .category-shell {
    padding: 16px 14px;
    border-radius: 16px;
  }

  .category-blocks {
    gap: 14px;
  }

  .category-block-inner {
    padding: 22px 18px 18px 24px;
  }

  .category-block h3 {
    font-size: 1.0625rem;
    margin-bottom: 12px;
  }

  .category-block p {
    font-size: 0.875rem;
    line-height: 1.7;
  }

  .category-block-footer {
    margin-top: 18px;
    padding-top: 16px;
  }

  .category-view-all {
    padding: 11px 14px;
    font-size: 0.75rem;
  }

  .game-card {
    border-radius: 12px;
  }

  .game-card-image {
    padding-top: 88%;
  }

  .game-card-overlay {
    opacity: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.65) 100%);
  }

  .game-card-play {
    min-width: 58px;
    padding: 6px 12px;
    font-size: 0.6875rem;
    transform: translateY(0);
  }

  .game-card-name {
    font-size: 0.75rem;
    padding: 8px 6px;
  }

  .app-grid,
  .ux-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ux-section-header {
    margin-bottom: 28px;
  }

  .ux-details {
    margin-top: 36px;
    padding-top: 32px;
  }

  .ux-detail {
    padding: 22px 18px 20px 22px;
  }

  .ux-detail-num {
    min-width: 38px;
    height: 38px;
    margin-bottom: 12px;
    font-size: 0.8125rem;
  }

  .ux-detail h3 {
    font-size: 1rem;
  }

  .ux-detail p {
    font-size: 0.875rem;
    line-height: 1.7;
  }

  .app-content {
    text-align: center;
  }

  .app-content .btn {
    width: 100%;
    max-width: 280px;
  }

  .app-download-grid {
    gap: 12px;
  }

  .app-download-item img {
    max-width: 160px;
    margin: 0 auto;
  }

  .faq-question {
    padding: 16px;
    font-size: 0.9375rem;
    gap: 12px;
  }

  .faq-answer-inner {
    padding: 16px 16px;
    font-size: 0.875rem;
  }

  .seo-content {
    padding: 40px 0 48px;
  }

  .seo-inner {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .footer-top {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px 0 16px;
  }

  .footer-col {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #374151;
    border-radius: 14px;
    padding: 16px 14px;
  }

  .footer-col:first-child,
  .footer-col:nth-child(2) {
    grid-column: 1 / -1;
  }

  .footer-col:first-child p {
    font-size: 0.875rem;
    line-height: 1.65;
  }

  .footer-col h2 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .footer-col hr {
    margin-bottom: 12px;
  }

  .footer-links li {
    margin-bottom: 8px;
  }

  .footer-links a {
    font-size: 0.875rem;
  }

  .footer-license {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0 20px;
  }

  .footer-license > div {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #374151;
    border-radius: 14px;
    padding: 16px 14px;
  }

  .footer-bottom {
    padding: 18px 0;
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 16px, var(--container));
  }

  .current-time {
    font-size: 0.6875rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions {
    display: none;
  }

  .hero-slide img,
  .hero-banner img {
    max-height: 200px;
  }

  .quick-actions {
    grid-template-columns: 1fr 1fr;
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .game-grid-scroll {
    max-height: 440px;
  }

  .category-shell {
    padding: 14px 12px;
  }

  .category-block h3 {
    font-size: 0.9375rem;
  }

  .category-block p {
    font-size: 0.8125rem;
    line-height: 1.65;
  }

  .category-block-footer {
    margin-top: 14px;
    padding-top: 14px;
  }

  .category-view-all {
    padding: 10px 12px;
    font-size: 0.6875rem;
    border-radius: 10px;
  }

  .category-view-all::after {
    margin-left: 6px;
    font-size: 0.875rem;
  }

  .hof-shell {
    padding: 14px 10px;
    border-radius: 16px;
  }

  .game-tab-btn {
    min-width: 70px;
    padding: 9px 10px;
    gap: 6px;
  }

  .game-tab-btn img {
    width: 28px;
    height: 28px;
  }

  .game-card-image {
    padding-top: 82%;
  }

  .game-card-name {
    font-size: 0.6875rem;
    padding: 7px 5px;
  }

  .seo-inner {
    padding: 22px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-col:first-child,
  .footer-col:nth-child(2) {
    grid-column: auto;
  }

  .mobile-cta .btn {
    font-size: 0.8125rem;
    padding: 12px 8px;
  }

  .ux-card {
    padding: 24px 16px;
  }
}

@media (max-width: 360px) {
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .marquee-speaker {
    display: none;
  }
}

/* Floating WhatsApp & Telegram */
.contact-float {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-float-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.contact-float-wa {
  background: #25d366;
}

.contact-float-tg {
  background: #0088cc;
}

@media (max-width: 768px) {
  .contact-float {
    bottom: 88px;
  }
}
