:root {
  --theme-color: #1c579b;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --text-color: #6ca7eb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  background: #f8fafc;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Roboto",
    "Oxygen",
    "Ubuntu",
    "Cantarell",
    "Fira Sans",
    "Droid Sans",
    "Helvetica Neue",
    sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--theme-color);
  height: 50px;
  padding: 0 20px;
  z-index: 999;
  margin: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
  border-radius: 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.header-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.header-center {
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .logo img {
    width: 140px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .logo img {
    width: 120px;
    height: 40px;
  }
}

.header-icons {
  display: flex;
  gap: 20px;
}

.header-icon {
  color: white;
  font-size: 20px;
  text-decoration: none;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.header-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.header-icon:active {
  transform: scale(0.95);
}

.header-icon svg {
  width: 30px;
  height: 30px;
  color: white;
  display: block;
  flex-shrink: 0;
}

.categories-menu {
  position: fixed;
  top: 90px;
  right: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  width: 280px;
  height: calc(100vh - 90px);
  z-index: 998;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  backdrop-filter: blur(10px);
}

.categories-menu.active {
  transform: translateX(0);
  animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.categories-header {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 10;
}

.categories-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.close-categories {
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: normal;
  background: var(--bg-color);
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-categories:hover {
  background-color: var(--border-color);
  color: var(--text-primary);
  transform: scale(1.1) rotate(90deg);
}

.category-item {
  padding: 20px 32px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  margin: 0 12px;
  border-radius: var(--radius-sm);
}

.category-item:hover {
  background: rgba(99, 102, 241, 0.08);
  transform: translateX(-4px);
}

.category-item.active {
  background: rgba(99, 102, 241, 0.12);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.category-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.category-name {
  background: var(--theme-color);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  min-width: 36px;
  text-align: center;
  text-transform: capitalize;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.category-item:hover .category-name {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.main-content {
  margin-top: 50px;
  padding: 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
  overflow: hidden;
}

.main-content::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(188, 227, 254, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(99, 102, 241, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(139, 92, 246, 0.04) 0%,
      transparent 60%
    );
  pointer-events: none;
  z-index: -1;
  animation: floatBackground 20s ease-in-out infinite;
}

.main-content::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(188, 227, 254, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 227, 254, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
  animation: gridMove 30s linear infinite;
}

@keyframes floatBackground {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -20px) scale(1.05);
  }
  50% {
    transform: translate(-10px, 20px) scale(0.95);
  }
  75% {
    transform: translate(-20px, -10px) scale(1.02);
  }
}

@keyframes gridMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

.footer {
  border-top: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.footer-links {
  background: var(--theme-color);
  padding: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links a,
.footer-link {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.footer-links a:hover,
.footer-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-copyright {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 24px;
  text-align: center;
  color: #fff;
}

.footer-brand {
  color: white;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.footer-copyright-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  letter-spacing: 0.3px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 24px 0;
  letter-spacing: -0.5px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px auto 40px auto;
  height: auto;
  width: 100%;
  max-width: 640px;
  justify-content: center;
  align-items: stretch;
  box-sizing: border-box;
}

.game-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 0;
  text-align: center;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 0.75;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20%;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 4;
  pointer-events: none;
}

.game-card:hover::before {
  left: 100%;
}

.game-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(99, 102, 241, 0.2),
    0 8px 16px rgba(99, 102, 241, 0.15);
  border-color: var(--theme-color);
}

.game-card img {
  width: 100%;
  height: 68%;
  border-radius: 16px 16px 0 0;
  object-fit: cover;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
  filter: brightness(1) contrast(1) saturate(1);
  padding: 8px;
  border-radius: 40%;
}

.game-card:hover img {
  transform: scale(1.08);
  filter: brightness(1.1) contrast(1.05) saturate(1.15);
}

.game-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 3;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.06);
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
}

.game-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-bottom: 6px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    font-family:
      "Inter",
      -apple-system,
      BlinkMacSystemFont,
      sans-serif;
    color: #000;
    width: 100%;
  }

.game-meta-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.game-rating-small {
  font-size: 11px;
  color: #f59e0b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.12) 0%,
    rgba(251, 191, 36, 0.12) 100%
  );
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
  transition: all 0.3s ease;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  letter-spacing: 0.2px;
}

.game-category-small {
  font-size: 10px;
  color: #6366f1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.12) 0%,
    rgba(139, 92, 246, 0.12) 100%
  );
  padding: 4px 10px;
  border-radius: 10px;
  white-space: nowrap;
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

.game-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.game-players {
  font-size: 10px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  white-space: nowrap;
  background: linear-gradient(
    135deg,
    rgba(100, 116, 139, 0.08) 0%,
    rgba(148, 163, 184, 0.08) 100%
  );
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid rgba(100, 116, 139, 0.12);
  transition: all 0.3s ease;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  letter-spacing: 0.2px;
}

.game-size {
  font-size: 10px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  white-space: nowrap;
  background: linear-gradient(
    135deg,
    rgba(100, 116, 139, 0.08) 0%,
    rgba(148, 163, 184, 0.08) 100%
  );
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid rgba(100, 116, 139, 0.12);
  transition: all 0.3s ease;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  letter-spacing: 0.2px;
}

.game-card:hover {
  background: linear-gradient(to top, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%);
  border-top-color: rgba(99, 102, 241, 0.3);
}

.game-card:hover .game-name {
  color: #6366f1;
  text-shadow: 0 2px 4px rgba(99, 102, 241, 0.15);
}

.game-card:hover .game-rating-small {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.18) 0%,
    rgba(251, 191, 36, 0.18) 100%
  );
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 3px 6px rgba(245, 158, 11, 0.15);
  transform: translateY(-1px);
}

.game-card:hover .game-category-small {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.18) 0%,
    rgba(139, 92, 246, 0.18) 100%
  );
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 3px 6px rgba(99, 102, 241, 0.15);
  transform: translateY(-1px);
}

.game-card:hover .game-players,
.game-card:hover .game-size {
  background: linear-gradient(
    135deg,
    rgba(100, 116, 139, 0.12) 0%,
    rgba(148, 163, 184, 0.12) 100%
  );
  border-color: rgba(100, 116, 139, 0.18);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .game-card {
    box-shadow:
      0 3px 15px rgba(0, 0, 0, 0.08),
      0 1px 2px rgba(0, 0, 0, 0.04);
  }

  .game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
      0 15px 30px rgba(99, 102, 241, 0.2),
      0 6px 12px rgba(99, 102, 241, 0.15);
  }

  .game-card img {
    width: 100%;
    height: 68%;
    border-radius: 14px 14px 0 0;
    object-fit: cover;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 8px;
  }

  .game-info {
    padding: 10px 12px;
  }

  .game-name {
      font-size: 13px;
      margin-bottom: 5px;
    }

  .game-meta-info {
    gap: 8px;
    padding: 2px 0;
  }

  .game-rating-small {
    font-size: 10px;
    gap: 3px;
    padding: 3px 8px;
  }

  .game-category-small {
    font-size: 9px;
    padding: 3px 8px;
  }

  .game-stats {
    gap: 10px;
    padding-top: 3px;
  }

  .game-players,
  .game-size {
    font-size: 9px;
    gap: 3px;
    padding: 2px 6px;
  }

  @media (max-width: 480px) {
    .section-title {
      font-size: 24px;
    }

    .game-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
    }

    .game-card {
      box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.04);
    }

    .game-card:hover {
      transform: translateY(-6px) scale(1.02);
      box-shadow:
        0 12px 24px rgba(99, 102, 241, 0.2),
        0 4px 8px rgba(99, 102, 241, 0.15);
    }

    .game-card img {
      width: 100%;
      height: 68%;
      border-radius: 12px 12px 0 0;
      object-fit: cover;
      margin: 0;
      position: absolute;
      top: 0;
      left: 0;
      z-index: 2;
      border-radius: 40%;
    }

    .game-info {
      padding: 8px 10px;
    }

    .game-name {
      font-size: 12px;
      margin-bottom: 4px;
    }

    .game-meta-info {
      gap: 6px;
      padding: 2px 0;
    }

    .game-rating-small {
      font-size: 9px;
      gap: 2px;
      padding: 2px 6px;
    }

    .game-category-small {
      font-size: 8px;
      padding: 2px 6px;
    }

    .game-stats {
      gap: 8px;
      padding-top: 2px;
    }

    .game-players,
    .game-size {
      font-size: 8px;
      gap: 2px;
      padding: 2px 5px;
    }

    .categories-menu {
      width: 220px;
      top: 90px;
      height: calc(100vh - 90px);
    }

    .categories-header {
      padding: 24px 28px;
    }

    .categories-title {
      font-size: 22px;
    }

    .category-item {
      padding: 16px 24px;
      margin: 0 8px;
    }

    .category-name {
      padding: 6px 12px;
      font-size: 12px;
      min-width: 32px;
    }
  }

  .search-results-header {
    margin-bottom: 32px;
    text-align: center;
  }

  .search-results-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 12px 0;
    text-transform: uppercase;
    letter-spacing: 1.2px;
  }

  .no-results {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-secondary);
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
  }

  .no-results h3 {
    font-size: 26px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 700;
  }

  .no-results p {
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
  }

  @media (max-width: 768px) {
    .search-results-title {
      font-size: 24px;
    }
  }

  @media (max-width: 480px) {
    .search-results-title {
      font-size: 20px;
    }
  }

  .search-bar {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
  }

  .search-bar:focus-within {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  }

  .search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 6px;
    background: transparent;
    color: var(--text-primary);
  }

  .search-bar input::placeholder {
    color: var(--text-secondary);
  }

  .search-btn {
    background: var(--theme-color);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin-left: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
  }

  .search-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
  }

  .search-btn svg {
    transition: all 0.3s ease;
  }

  .search-icon-svg {
    display: block;
  }

  .close-icon-svg {
    display: none;
  }

  .search-icon-svg circle,
  .search-icon-svg path,
  .close-icon-svg path {
    stroke: white;
  }

  .game-detail-container {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 0;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
  }

  .game-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 32px 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-color);
  }

  .game-icon-wrapper {
    margin-bottom: 24px;
  }

  .game-icon {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    background: var(--bg-color);
    border: 3px solid var(--border-color);
    transition: transform 0.3s ease;
    display: block;
  }

  .game-icon:hover {
    transform: scale(1.05) rotate(2deg);
  }

  .game-header {
    width: 100%;
    text-align: center;
  }

  .game-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .game-content {
    padding: 32px;
  }

  .game-detail-container .game-title,
  .game-info .game-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 10px 0;
    line-height: 1.3;
    position: static;
    background: transparent;
    padding: 0;
    border-radius: 0;
    text-align: center;
    max-height: none;
    overflow: visible;
    display: block;
    -webkit-line-clamp: none;
    -webkit-box-orient: initial;
    letter-spacing: -0.5px;
  }

  .game-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .game-category {
    display: inline-block;
    background: var(--theme-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.8px;
    border: none;
    box-shadow: var(--shadow-sm);
  }

  .game-rating {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .stars {
    color: #ffd700;
    font-size: 18px;
  }

  .rating-text {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
  }

  .game-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
    margin: 0 0 32px 0;
    text-align: center;
  }

  .play-button-container {
    text-align: center;
  }

  .play-button {
    background: var(--theme-color);
    color: white;
    padding: 18px 48px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    letter-spacing: 0.5px;
    border: none;
  }

  .play-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
    opacity: 0.95;
  }

  .recommended-section {
    margin-bottom: 40px;
  }

  .recommended-section .section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.3px;
  }

  .recommended-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }

  .recommended-game {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
    overflow: hidden;
  }

  .recommended-game:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: var(--theme-color);
  }

  .recommended-game-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-color);
    position: relative;
  }

  .recommended-game img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
  }

  .recommended-game:hover img {
    transform: scale(1.1);
  }

  .recommended-game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
  }

  .recommended-game-info-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .recommended-game h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .recommended-game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .recommended-category,
  .recommended-rating,
  .recommended-players {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
  }

  .recommended-category {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .recommended-rating {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(251, 191, 36, 0.12) 100%);
    color: #f59e0b;
  }

  .recommended-players {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.08) 0%, rgba(148, 163, 184, 0.08) 100%);
    color: #64748b;
  }

  .recommended-game-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-color);
    color: var(--theme-color);
    transition: all 0.3s ease;
  }

  .recommended-game:hover .recommended-game-arrow {
    background: var(--theme-color);
    color: white;
    transform: translateX(4px);
  }

  @media (max-width: 768px) {
    .game-hero {
      padding: 32px 24px 24px;
    }

    .game-icon {
      width: 120px;
      height: 120px;
    }

    .game-detail-container .game-title,
    .game-info .game-title {
      font-size: 26px;
    }

    .game-content {
      padding: 24px;
    }

    .game-description {
      font-size: 15px;
    }

    .game-meta {
      flex-direction: column;
      gap: 12px;
    }
  }

  @media (max-width: 480px) {
    .game-hero {
      padding: 24px 20px 20px;
    }

    .game-content {
      padding: 20px;
    }

    .game-icon {
      width: 100px;
      height: 100px;
    }

    .game-detail-container .game-title,
    .game-info .game-title {
      font-size: 22px;
    }

    .game-description {
      font-size: 14px;
    }

    .play-button {
      padding: 16px 36px;
      font-size: 16px;
    }

    .recommended-list {
      gap: 12px;
    }

    .recommended-game {
      padding: 12px;
      gap: 16px;
    }

    .recommended-game-image {
      width: 100px;
      height: 100px;
    }

    .recommended-game h3 {
      font-size: 14px;
    }

    .recommended-list {
      gap: 10px;
    }

    .recommended-game {
      padding: 10px;
      gap: 12px;
    }

    .recommended-game-image {
      width: 80px;
      height: 80px;
    }

    .recommended-game h3 {
      font-size: 13px;
    }

    .recommended-game-arrow {
      width: 24px;
      height: 24px;
    }

    .recommended-game-arrow svg {
      width: 16px;
      height: 16px;
    }

    .play-button {
      padding: 16px 36px;
      margin: 10px 0;
      font-size: 16px;
    }
  }

  .center-logo {
    height: 40px;
    width: auto;
  }

  .back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s;
    background-color: transparent;
    width: 48px;
    height: 48px;
  }

  .back-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }

  .back-button svg {
    width: 36px;
    height: 36px;
  }

  .category-header {
    margin-bottom: 28px;
  }

  .category-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .category-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
  }

  #gamesGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 640px;
    margin: 0 auto 40px auto;
    box-sizing: border-box;
  }

  @media (max-width: 768px) {
    .category-title-section {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }

    .category-title {
      font-size: 28px;
    }

    #gamesGrid {
      gap: 14px;
    }

    #gamesGrid .game-name {
      font-size: 13px;
      max-height: 48px;
      padding: 12px 14px;
    }
  }

  @media (max-width: 480px) {
    #gamesGrid {
      gap: 12px;
    }

    #gamesGrid .game-name {
      font-size: 12px;
      max-height: 44px;
      padding: 10px 12px;
    }
  }

  .privacy-content,
  .terms-content {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 48px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    line-height: 1.8;
    border: 1px solid var(--border-color);
  }

  .privacy-section,
  .terms-section {
    margin-bottom: 36px;
  }

  .privacy-section h2,
  .terms-section h2 {
    color: var(--text-primary);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 18px;
    border-bottom: 3px solid var(--theme-color);
    padding-bottom: 12px;
    letter-spacing: -0.3px;
  }

  .privacy-section h3,
  .terms-section h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px 0;
  }

  .privacy-section p,
  .terms-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 15px;
  }

  .privacy-section ul,
  .terms-section ul {
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 24px;
    font-size: 15px;
  }

  .privacy-section li,
  .terms-section li {
    margin-bottom: 10px;
    line-height: 1.7;
  }

  @media (max-width: 768px) {
    .privacy-content,
    .terms-content {
      padding: 28px;
    }

    .privacy-section h2,
    .terms-section h2 {
      font-size: 22px;
    }

    .privacy-section h3,
    .terms-section h3 {
      font-size: 18px;
    }
  }

  @media (max-width: 480px) {
    .privacy-content,
    .terms-content {
      padding: 20px;
    }

    .privacy-section h2,
    .terms-section h2 {
      font-size: 20px;
    }
  }

  .ads {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .ads > div {
    width: 100%;
    max-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .top-btn {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: 300px;
    width: 50px;
    height: 50px;
    background: var(--theme-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-size: 24px;
    text-decoration: none;
  }

  .top-btn:hover {
    background: var(--theme-color);
    transform: translateY(calc(-50% + 60px)) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }

  .top-btn:active {
    transform: translateY(calc(-50% + 60px)) scale(0.95);
  }

  .top-btn-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: white;
    stroke-width: 2;
    pointer-events: none;
  }

  .carousel-section {
    margin: 40px auto;
    max-width: 640px;
    padding: 0 20px;
  }

  .carousel-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }

  .carousel-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
  }

  .carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
  }

  .carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .carousel-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      135deg,
      rgba(102, 126, 234, 0.75) 0%,
      rgba(118, 75, 162, 0.75) 100%
    );
    z-index: 1;
  }

  .carousel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 500px;
  }

  .carousel-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  .carousel-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }

  .carousel-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
  }

  .carousel-cta {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
  }

  .carousel-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f8fafc;
  }

  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #667eea;
  }

  .carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }

  .carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
  }

  .carousel-prev {
    left: 16px;
  }

  .carousel-next {
    right: 16px;
  }

  .carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
  }

  .carousel-dot.active {
    background: white;
    width: 28px;
    border-radius: 5px;
    border-color: white;
  }

  .carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
  }

  @media (max-width: 768px) {
    .carousel-section {
      margin: 32px auto;
      padding: 0 16px;
    }

    .carousel-wrapper {
      height: 240px;
    }

    .carousel-slide {
      padding: 30px;
    }

    .carousel-title {
      font-size: 26px;
    }

    .carousel-description {
      font-size: 14px;
      margin-bottom: 20px;
    }

    .carousel-cta {
      padding: 12px 28px;
      font-size: 14px;
    }

    .carousel-btn {
      width: 40px;
      height: 40px;
    }

    .carousel-prev {
      left: 12px;
    }

    .carousel-next {
      right: 12px;
    }
  }

  @media (max-width: 480px) {
    .carousel-section {
      margin: 24px auto;
      padding: 0 12px;
    }

    .carousel-wrapper {
      height: 200px;
    }

    .carousel-slide {
      padding: 24px;
    }

    .carousel-badge {
      font-size: 10px;
      padding: 5px 12px;
      margin-bottom: 12px;
    }

    .carousel-title {
      font-size: 22px;
      margin-bottom: 10px;
    }

    .carousel-description {
      font-size: 13px;
      margin-bottom: 16px;
      line-height: 1.5;
    }

    .carousel-cta {
      padding: 10px 24px;
      font-size: 13px;
    }

    .carousel-btn {
      width: 36px;
      height: 36px;
    }

    .carousel-btn svg {
      width: 20px;
      height: 20px;
    }

    .carousel-prev {
      left: 10px;
    }

    .carousel-next {
      right: 10px;
    }

    .carousel-dots {
      bottom: 16px;
      gap: 8px;
    }

    .carousel-dot {
      width: 8px;
      height: 8px;
    }

    .carousel-dot.active {
      width: 24px;
    }
  }
}

/* Category Page Specific Styles */
.category-game-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.category-game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
  z-index: 4;
  pointer-events: none;
}

.category-game-card:hover::before {
  left: 100%;
}

.category-game-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2), 0 8px 16px rgba(99, 102, 241, 0.15);
}

.category-game-card img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  position: relative;
  top: 0;
  left: 0;
  z-index: 2;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
  filter: brightness(1) contrast(1) saturate(1);
  padding: 12px;
  border-radius: 20px;
}

.category-game-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.05) saturate(1.15);
}

.category-game-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.4;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 8px 12px 16px;
  flex-shrink: 0;
  letter-spacing: 0.2px;
}

@media (max-width: 768px) {
  .category-game-name {
    font-size: 12px;
    padding: 6px 10px 12px;
  }
  
  .category-game-card img {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .category-game-name {
    font-size: 11px;
    padding: 4px 8px 10px;
  }
  
  .category-game-card img {
    padding: 8px;
  }
}
