
:root {
  --theme-color: #fac03d;
  --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: #aa7000;}

* {
  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: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
}

.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;
}


.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(4, 1fr);
  gap: 20px;
  margin: 20px auto 30px 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: var(--radius-md);
  padding: 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 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;
  border: none;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.game-card.featured {
  grid-column: 1 / -1;
  grid-row: 1;
  aspect-ratio: 2.5;
}

.game-card.small {
  aspect-ratio: 1.2;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.game-card img {
  width: 100%;
  height: 75%;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  object-fit: contain;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.game-card:hover img {
  transform: scale(1.08);
}

.game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  color: var(--text-primary);
  padding: 16px 12px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  z-index: 3;
  line-height: 1.4;
  height: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}


.game-card.featured .game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  color: var(--text-primary);
  padding: 20px 16px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  z-index: 4;
  line-height: 1.3;
  height: 25%;
  overflow: visible;
  text-overflow: initial;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  -webkit-line-clamp: initial;
  -webkit-box-orient: initial;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
  border: none;
  border-top: 1px solid var(--border-color);
  backdrop-filter: none;
  text-shadow: none;
  letter-spacing: 0.3px;
  text-transform: none;
  transition: all 0.4s ease;
}


.game-card.featured .game-name svg {
  width: 24px;
  height: 24px;
  color: var(--theme-color);
  transition: transform 0.4s ease;
}

.game-card.featured:hover .game-name svg {
  transform: translateX(6px);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }

  .game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .game-card.featured {
    grid-column: 1 / -1;
    grid-row: 1;
    aspect-ratio: 2.2;
  }

  .game-card img {
    width: 100%;
    height: 75%;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    object-fit: cover;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
  }

  .game-name {
    font-size: 12px;
    font-weight: 600;
    padding: 14px 10px;
    height: 25%;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .game-card.featured .game-name {
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 18px 14px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    height: 25%;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
    border: none;
    border-top: 1px solid var(--border-color);
    backdrop-filter: none;
    text-shadow: none;
    letter-spacing: 0.2px;
    text-transform: none;
  }

  .game-card.featured .game-name svg {
    width: 20px;
    height: 20px;
    color: var(--theme-color);
    transition: transform 0.4s ease;
  }

  .game-card.featured:hover .game-name svg {
    transform: translateX(5px);
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 24px;
  }

  .game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .game-card.featured {
    grid-column: 1 / -1;
    grid-row: 1;
    aspect-ratio: 2;
  }

  .game-card img {
    width: 100%;
    height: 75%;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    object-fit: cover;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
  }

  .game-name {
    font-size: 11px;
    font-weight: 600;
    padding: 12px 8px;
    height: 25%;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .game-card.featured .game-name {
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 16px 12px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    height: 25%;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
    border: none;
    border-top: 1px solid var(--border-color);
    backdrop-filter: none;
    text-shadow: none;
    letter-spacing: 0.1px;
    text-transform: none;
  }

  .game-card.featured .game-name svg {
    width: 18px;
    height: 18px;
    color: var(--theme-color);
    transition: transform 0.4s ease;
  }

  .game-card.featured:hover .game-name svg {
    transform: translateX(4px);
  }

  
  .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;
  gap: 16px;
}

.game-content {
  padding: 32px;
}


.game-detail-container .game-title,
.game-info .game-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 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;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.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: 2;
  -webkit-box-orient: vertical;
}

.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;
    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;
}
