@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --accent-primary: #7c5cfc;
  --accent-secondary: #a78bfa;
  --accent-gradient: linear-gradient(135deg, #7c5cfc, #00d4ff);
  --accent-cyan: #00d4ff;
  --card-radius: 18px;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s ease;

  --bg-primary: #2a0e6e;
  --bg-secondary: rgba(0, 0, 0, 0.25);
  --bg-card: rgba(255, 255, 255, 0.18);
  --bg-card-hover: rgba(255, 255, 255, 0.25);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  --border-color: rgba(255, 255, 255, 0.2);
  --shadow-glow: 0 0 20px rgba(255, 255, 255, 0.2);
  --nav-bg: rgba(20, 10, 60, 0.55);
  --nav-border: rgba(255, 255, 255, 0.12);
  --section-bg: rgba(255, 255, 255, 0.12);
  --section-border: rgba(255, 255, 255, 0.2);
  --card-bg: rgba(255, 255, 255, 0.18);
  --card-border: rgba(255, 255, 255, 0.2);
  --card-info-bg: rgba(255, 255, 255, 0.08);
  --search-bg: rgba(0, 0, 0, 0.2);
  --search-border: rgba(255, 255, 255, 0.2);
  --icon-color: #00e5ff;
  --footer-bg: rgba(20, 10, 60, 0.5);
}

[data-theme="dark"] {
  --bg-primary: #0a0a1a;
  --bg-secondary: #111128;
  --bg-card: #181833;
  --bg-card-hover: #222250;
  --text-primary: #f0f0ff;
  --text-secondary: #a0a0c0;
  --text-muted: #606080;
  --border-color: rgba(124, 92, 252, 0.15);
  --shadow-glow: 0 0 20px rgba(124, 92, 252, 0.35);
  --nav-bg: rgba(10, 10, 26, 0.85);
  --nav-border: var(--border-color);
  --section-bg: rgba(17, 17, 40, 0.8);
  --section-border: var(--border-color);
  --card-bg: var(--bg-card);
  --card-border: transparent;
  --card-info-bg: transparent;
  --search-bg: var(--bg-secondary);
  --search-border: var(--border-color);
  --icon-color: var(--accent-primary);
  --footer-bg: var(--bg-secondary);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  background-image: url('/images/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-primary);
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  min-height: 100vh;
}

[data-theme="dark"] body {
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 92, 252, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(124, 92, 252, 0.06) 0%, transparent 50%);
  background-size: auto;
  background-position: initial;
  background-attachment: initial;
}

img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: auto;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(124, 92, 252, 0.12);
  border: 1.5px solid rgba(124, 92, 252, 0.25);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: rgba(124, 92, 252, 0.2);
  border-color: rgba(124, 92, 252, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(124, 92, 252, 0.3);
}

.theme-toggle:active {
  transform: translateY(0) scale(0.95);
}

.theme-toggle i {
  font-size: 18px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover i {
  transform: rotate(15deg);
}

.theme-toggle .fa-sun {
  color: #fbbf24;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

.theme-toggle .fa-moon {
  color: #c4b5fd;
  filter: drop-shadow(0 0 6px rgba(196, 181, 253, 0.6));
}

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--nav-border);
  z-index: 10000;
  display: flex;
  align-items: center;
  padding: 0 28px;
  transition: all 0.3s ease;
}

.nav-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.nav-logo:hover {
  transform: translateY(-1px);
}

.nav-logo img {
  height: 40px;
  width: auto;
  border-radius: 10px;
}

.nav-logo-text {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}

.nav-categories {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-categories::-webkit-scrollbar {
  display: none;
}

.nav-category {
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.nav-category:hover,
.nav-category.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

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

.nav-search {
  position: relative;
  width: 300px;
  flex-shrink: 0;
}

.nav-search input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  background: var(--search-bg);
  border: 1.5px solid var(--search-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  font-weight: 400;
  outline: none;
  transition: all 0.3s ease;
}

.nav-search input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.nav-search input:hover {
  border-color: rgba(124, 92, 252, 0.3);
  background: rgba(124, 92, 252, 0.1);
}

.nav-search input:focus {
  border-color: rgba(124, 92, 252, 0.5);
  background: rgba(124, 92, 252, 0.08);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.1), 0 4px 20px rgba(124, 92, 252, 0.1);
}

.nav-search > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.nav-search:focus-within > i {
  color: var(--accent-primary);
}

.nav-search .search-shortcut {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: rgba(124, 92, 252, 0.06);
  border: 1px solid rgba(124, 92, 252, 0.12);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nav-search input:focus ~ .search-shortcut,
.nav-search input:not(:placeholder-shown) ~ .search-shortcut {
  opacity: 0;
}

.nav-search .search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: rgba(124, 92, 252, 0.08);
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.nav-search .search-clear:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.nav-search input:not(:placeholder-shown) ~ .search-clear {
  display: flex;
}

.main-content {
  padding-top: 88px;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-section {
  padding: 20px 0 40px;
}

.hero-featured {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.hero-main {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  transition: var(--transition-normal);
}

.hero-main:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-main-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 24px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.hero-main-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-main-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent-gradient);
  border-radius: 30px;
  color: white;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition-fast);
}

.hero-main-play:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-side-game {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  flex: 1;
  cursor: pointer;
  transition: var(--transition-normal);
}

.hero-side-game:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-glow);
}

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

.hero-side-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.hero-side-title {
  font-size: 16px;
  font-weight: 600;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-top: 20px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.section-title i {
  font-size: 18px;
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
  transition: all 0.3s ease;
}

.section-header:hover .section-title i {
  transform: scale(1.15);
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.7));
}

.section-view-all {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.section-view-all:hover {
  gap: 10px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.game-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: block;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .game-card {
  background: rgba(24, 24, 51, 0.7);
  border: 1px solid rgba(124, 92, 252, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .game-card:hover {
  border-color: rgba(124, 92, 252, 0.4);
  box-shadow:
    0 12px 40px rgba(124, 92, 252, 0.2),
    0 0 0 1px rgba(124, 92, 252, 0.3);
}

.game-card:hover .game-card-image::after {
  opacity: 1;
}

.game-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.game-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.15) 100%);
  z-index: 1;
  pointer-events: none;
}

[data-theme="dark"] .game-card-image::before {
  background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 26, 0.4) 100%);
}

.game-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(124, 92, 252, 0.1);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
  pointer-events: none;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.game-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.game-card-play-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #7c5cfc, #00d4ff);
  border-radius: 30px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 24px rgba(124, 92, 252, 0.5);
  transform: translateY(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover .game-card-play {
  opacity: 1;
}

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

.game-card-info {
  padding: 12px 14px;
  transition: all 0.3s ease;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .game-card-info {
  background: rgba(10, 10, 26, 0.6);
  border-top: 1px solid rgba(124, 92, 252, 0.06);
}

.game-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
  letter-spacing: 0.2px;
  transition: color 0.3s ease;
}

.game-card:hover .game-card-title {
  color: #ffffff;
}

.game-card-category {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.games-scroll-container {
  position: relative;
  margin-bottom: 40px;
}

.games-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
  scroll-snap-type: x mandatory;
}

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

.games-scroll .game-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
  color: var(--text-primary);
}

.scroll-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.scroll-btn.left {
  left: -22px;
}

.scroll-btn.right {
  right: -22px;
}

.special-section {
  background: var(--section-bg);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 32px;
  border: 1px solid var(--section-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.special-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 92, 252, 0.3), rgba(0, 212, 255, 0.2), transparent);
}

[data-theme="dark"] .special-section {
  background: rgba(17, 17, 40, 0.6);
  border: 1px solid rgba(124, 92, 252, 0.08);
}

.special-section .section-header {
  padding-top: 0;
}

.special-games-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.special-games-grid .game-card {
  background: var(--card-bg);
}

[data-theme="dark"] .special-games-grid .game-card {
  background: rgba(24, 24, 51, 0.7);
}

.all-games-section {
  padding: 24px;
  margin-bottom: 40px;
}

.all-games-section .section-header {
  padding-top: 0;
}

#games {
  padding-bottom: 20px;
}

#games ins.adsbygoogle {
  grid-column: 1 / -1;
  display: block;
  margin: 20px 0;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  margin-top: 8px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .search-results {
  background: rgba(17, 17, 40, 0.95);
  border-color: rgba(124, 92, 252, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.search-results.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.search-result-item:hover {
  background: rgba(124, 92, 252, 0.12);
  border-left-color: var(--accent-primary);
  padding-left: 20px;
}

.search-result-item:first-child {
  border-radius: 14px 14px 0 0;
}

.search-result-item:last-child {
  border-radius: 0 0 14px 14px;
}

.search-result-item img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.search-result-item span {
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
  color: var(--text-primary);
}

.bottom-ad-container {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 728px;
  height: 90px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 26, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: none;
  padding: 5px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .bottom-ad-container {
  background: rgba(10, 10, 26, 0.95);
}

@media (max-width: 750px) {
  .bottom-ad-container { display: none; }
}

.site-footer {
  background: var(--footer-bg);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--section-border);
  padding: 48px 24px 32px;
  margin-top: 60px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124, 92, 252, 0.4), rgba(0, 212, 255, 0.3), rgba(124, 92, 252, 0.4), transparent);
  border-radius: 2px;
}

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

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 13px;
  max-width: 300px;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.footer-logo img {
  height: 32px;
  border-radius: 8px;
}

.footer-logo span {
  background: linear-gradient(135deg, #ffffff, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-primary);
  transition: width 0.25s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-link:hover::after {
  width: 100%;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 13px;
}

.top-sticky-ad {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  width: 728px;
  height: 90px;
  z-index: 99999;
  background-color: transparent;
  pointer-events: none;
}

.top-sticky-ad ins {
  width: 728px;
  height: 90px;
  border-radius: 0 !important;
  pointer-events: auto;
}

.bottom-right-ad {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 336px;
  height: 280px;
  z-index: 10001;
  background-color: rgba(0, 0, 0, 0.1);
}

.ad-banner {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

@media (max-width: 1200px) {
  .hero-featured {
    grid-template-columns: 1fr;
  }
  .hero-sidebar {
    flex-direction: row;
  }
  .hero-side-game {
    aspect-ratio: 16/9;
  }
  .nav-categories {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-nav {
    height: 58px;
    padding: 0 16px;
  }
  .nav-logo-text {
    display: none;
  }
  .nav-search {
    width: 100%;
    max-width: 200px;
  }
  .main-content {
    padding-top: 76px;
  }
  .container {
    padding: 0 16px;
  }
  .hero-sidebar {
    flex-direction: column;
  }
  .special-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .game-card-info {
    padding: 10px;
  }
  .game-card-title {
    font-size: 13px;
  }
  .section-title {
    font-size: 20px;
  }
  .top-sticky-ad {
    width: 320px;
    height: 50px;
  }
  .top-sticky-ad ins {
    width: 320px;
    height: 50px;
  }
  .scroll-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .special-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-main-title {
    font-size: 20px;
  }
  .hero-main-play {
    padding: 10px 20px;
    font-size: 14px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.loading {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.category-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.category-btn {
  padding: 10px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.category-btn:hover,
.category-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
}

.category-btn i {
  margin-right: 6px;
}

.game-container {
  width: 100%;
  max-width: 1000px;
  height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 9999;
  margin: 0 auto;
}

iframe.game-frame {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

iframe {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.more-games-section {
  margin: 40px auto;
  text-align: center;
  color: white;
  max-width: 1000px;
}

.more-games-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.more-games-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.more-games-grid a {
  text-decoration: none;
  color: white;
  width: 150px;
  transition: transform 0.2s;
}

.more-games-grid a:hover {
  transform: scale(1.05);
}

.more-games-grid img {
  width: 100%;
  border-radius: 8px;
  height: auto;
  display: block;
}

.more-games-grid p {
  margin-top: 8px;
  font-size: 16px;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  margin: 20px 0 36px;
  padding: 56px 48px;
  background: rgba(20, 10, 60, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  box-shadow: 0 4px 60px rgba(0, 0, 0, 0.15);
  animation: hero-glow-pulse 4s ease-in-out infinite;
}

@keyframes hero-glow-pulse {
  0%, 100% { box-shadow: 0 4px 60px rgba(0, 0, 0, 0.15); }
  50% { box-shadow: 0 4px 80px rgba(124, 92, 252, 0.15), 0 0 40px rgba(0, 212, 255, 0.05); }
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(124, 92, 252, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200vmax;
  height: 200vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(
    rgba(255, 255, 255, 0.015) 0deg 1deg,
    transparent 1deg 4deg
  );
  animation: hero-rotate 60s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes hero-rotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

[data-theme="dark"] .hero-banner {
  background: linear-gradient(135deg, #0f0a2e 0%, #1a1050 30%, #0d1040 60%, #0a0820 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: rgba(124, 92, 252, 0.2);
  box-shadow: 0 4px 60px rgba(124, 92, 252, 0.15);
}

[data-theme="dark"] .hero-banner::before {
  background:
    radial-gradient(circle at 20% 50%, rgba(124, 92, 252, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 0%, rgba(124, 92, 252, 0.08) 0%, transparent 60%);
}

[data-theme="dark"] .hero-banner::after {
  background: repeating-conic-gradient(
    rgba(124, 92, 252, 0.03) 0deg 1deg,
    transparent 1deg 4deg
  );
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-blob-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.2) 0%, transparent 70%);
  top: -120px;
  left: -100px;
  animation: blob-float 10s ease-in-out infinite;
}

.hero-blob-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  bottom: -100px;
  right: -80px;
  animation: blob-float 12s ease-in-out infinite reverse;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15px, -10px) scale(1.03); }
  66% { transform: translate(-8px, 8px) scale(0.98); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(124, 92, 252, 0.5);
  border-radius: 50%;
  animation: particle-drift linear infinite;
}

.hero-particle:nth-child(odd) {
  background: rgba(0, 212, 255, 0.4);
}

@keyframes particle-drift {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-200px) translateX(30px); opacity: 0; }
}

.hero-banner-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #c4b5fd;
  letter-spacing: 0.3px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-badge i {
  color: var(--accent-cyan);
  font-size: 14px;
  filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.5));
}

.hero-title {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title-accent {
  background: linear-gradient(135deg, #7c5cfc 0%, #00d4ff 50%, #a78bfa 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-text 5s ease infinite;
}

@keyframes gradient-text {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin: 0 auto 32px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(124, 92, 252, 0.08);
  border: 1px solid rgba(124, 92, 252, 0.18);
  border-radius: 16px;
  padding: 14px 32px;
  backdrop-filter: blur(10px);
  margin-top: 8px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 22px;
}

.hero-stat-num {
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(124, 92, 252, 0.2);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(124, 92, 252, 0.4);
  letter-spacing: 0.3px;
  animation: cta-glow 3s ease-in-out infinite;
}

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(124, 92, 252, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(124, 92, 252, 0.6), 0 0 60px rgba(0, 212, 255, 0.15); }
}

.hero-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(124, 92, 252, 0.5);
  animation: none;
}

.hero-cta i {
  font-size: 14px;
}

.hero-bookmark-hint {
  margin-top: 28px;
  font-size: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-bookmark-hint i {
  color: #a78bfa;
  font-size: 16px;
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.5));
}

.hero-bookmark-hint kbd {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.3px;
}

@media (max-width: 640px) {
  .hero-banner {
    padding: 36px 24px;
    margin: 16px 0 24px;
  }
  .hero-stats {
    padding: 10px 16px;
  }
  .hero-stat {
    padding: 0 12px;
  }
  .hero-stat-num {
    font-size: 18px;
  }
}

.seo-hidden-content {
  width: 100%;
  padding: 20px;
  font-size: 0.55rem;
  line-height: 1.4;
  color: var(--text-muted);
  opacity: 0.3;
}
.seo-hidden-content h1,
.seo-hidden-content h2 {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 8px 0 4px;
}
.seo-hidden-content p {
  margin: 0 0 6px;
}

.ctrld-banner {
  max-width: 1200px;
  margin: 100px auto -32px;
  padding: 0 20px;
}

.ctrld-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: rgba(17, 17, 40, 0.5);
  border: 1px solid rgba(124, 92, 252, 0.12);
  padding: 24px 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.3s ease, border 0.3s ease;
}

[data-theme="dark"] .ctrld-inner {
  background: rgba(17, 17, 40, 0.6);
  border: 1px solid rgba(124, 92, 252, 0.08);
}

.ctrld-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(124, 92, 252, 0.08), rgba(0, 212, 255, 0.06), transparent);
  animation: ctrld-shimmer 5s ease-in-out infinite;
  pointer-events: none;
}

[data-theme="dark"] .ctrld-shimmer {
  background: linear-gradient(90deg, transparent, rgba(124, 92, 252, 0.06), rgba(0, 212, 255, 0.04), transparent);
}

@keyframes ctrld-shimmer {
  0% { left: -60%; }
  100% { left: 160%; }
}

.ctrld-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}

.ctrld-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 92, 252, 0.35);
}

.ctrld-icon i {
  color: #00d4ff;
  animation: none;
}

.ctrld-body {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ctrld-keys {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrld-kbd {
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: 10px;
  background: rgba(124, 92, 252, 0.15);
  border: 1px solid rgba(124, 92, 252, 0.3);
  color: #fff;
  box-shadow: 0 2px 10px rgba(124, 92, 252, 0.2);
  text-transform: uppercase;
}

[data-theme="dark"] .ctrld-kbd {
  background: rgba(124, 92, 252, 0.12);
  border-color: rgba(124, 92, 252, 0.25);
}

.ctrld-plus {
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  color: #00d4ff;
  text-shadow: 0 0 14px rgba(0, 212, 255, 0.6);
}

.ctrld-text {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

[data-theme="dark"] .ctrld-text {
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .ctrld-banner {
    margin-top: 80px;
  }
  .ctrld-inner {
    padding: 24px;
  }
  .ctrld-content {
    flex-direction: column;
    text-align: center;
  }
  .ctrld-body {
    flex-direction: column;
    gap: 12px;
  }
  .ctrld-kbd {
    font-size: 1.4rem;
    padding: 6px 16px;
  }
  .ctrld-text {
    font-size: 0.95rem;
  }
}

.main-nav.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom-color: rgba(124, 92, 252, 0.15);
  background: var(--nav-bg);
}

[data-theme="dark"] .main-nav.scrolled {
  background: rgba(10, 10, 26, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 92, 252, 0.06);
}

.shuffle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--border-color);
  background: rgba(124, 92, 252, 0.1);
  color: var(--accent-secondary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.shuffle-btn:hover {
  background: rgba(124, 92, 252, 0.2);
  border-color: var(--accent-primary);
  color: #fff;
}

.shuffle-btn i {
  transition: transform 0.4s ease;
}

.game-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 24px;
  padding: 0 10px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(124, 92, 252, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 28px rgba(124, 92, 252, 0.5);
}

@media (max-width: 900px) {
  .popular-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-top {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .popular-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-cta {
    padding: 12px 28px;
    font-size: 14px;
  }
  .hero-actions {
    margin-top: 20px;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 16px;
    border-radius: 12px;
  }
}
