/* ===================================
   Mr Flip Game - Main Stylesheet
   ================================= */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===================================
   CSS Variables & Reset
   ================================= */
:root {
  /* Colors */
  --primary-color: #2196F3;
  --secondary-color: #FF9800;
  --accent-color: #4CAF50;
  --bg-color: #F5F5F5;
  --white: #FFFFFF;
  --black: #212121;
  --text-dark: #424242;
  --text-light: #757575;
  --border-color: #E0E0E0;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  
  /* Spacing */
  --container-width: 1200px;
  --header-height: 70px;
  --gap: 20px;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
}

/* ===================================
   Container & Layout
   ================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 40px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 30px;
  text-align: center;
}

/* ===================================
   Header & Navigation
   ================================= */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2196F3 0%, #FF9800 50%, #4CAF50 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.logo-icon::before {
  content: '';
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  position: absolute;
  animation: flipBounce 1.5s ease-in-out infinite;
}

@keyframes flipBounce {
  0%, 100% { 
    transform: translateY(0) scaleY(1);
  }
  50% { 
    transform: translateY(-8px) scaleY(0.8);
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text-main {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link:hover {
  background: var(--primary-color);
  color: var(--white);
}

.nav-link.active {
  background: var(--primary-color);
  color: var(--white);
}

/* Search Box */
.search-container {
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-color);
  border-radius: 25px;
  padding: 8px 20px;
  gap: 10px;
  min-width: 250px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 100%;
  color: var(--text-dark);
}

.search-box input::placeholder {
  color: var(--text-light);
}

.search-icon {
  color: var(--text-light);
  font-size: 18px;
}

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 100;
}

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

.search-result-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--bg-color);
}

.search-result-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.search-result-name {
  font-weight: 500;
  color: var(--text-dark);
}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-light);
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  transition: var(--transition);
}

.hamburger:hover {
  opacity: 0.7;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: var(--white);
  box-shadow: 2px 0 10px var(--shadow);
  transition: left 0.3s ease;
  z-index: 2000;
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-header .logo {
  font-size: 18px;
}

.mobile-menu-header .logo-icon {
  width: 36px;
  height: 36px;
}

.mobile-menu-header .logo-text-main {
  font-size: 18px;
}

.mobile-menu-header .logo-text-sub {
  font-size: 10px;
}

.mobile-menu-close {
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
}

.mobile-menu-links {
  list-style: none;
  padding: 20px;
}

.mobile-menu-link {
  display: block;
  padding: 12px 0;
  color: var(--text-dark);
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-link:hover {
  color: var(--primary-color);
}

.mobile-search {
  padding: 20px;
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1500;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===================================
   Game Container
   ================================= */
.game-container {
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  margin: 30px 0;
  box-shadow: 0 4px 15px var(--shadow);
}

/* Game Header */
.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  gap: 20px;
  flex-wrap: wrap;
}

.game-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 200px;
}

.game-thumb {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  display: block;
  background: var(--bg-color);
}

.game-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.3;
}

.game-iframe-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: 12px;
  overflow: hidden;
  background: var(--black);
}

.game-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Game Actions */
.game-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.game-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-light);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.game-action-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.game-action-btn:active {
  transform: translateY(0);
}

.game-action-btn.liked {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

.game-action-btn.liked:hover {
  background: #F57C00;
  border-color: #F57C00;
}

.game-action-icon {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.game-action-btn:hover .game-action-icon {
  transform: scale(1.1);
}

.game-action-btn.liked .game-action-icon {
  animation: likeAnimation 0.4s ease;
}

@keyframes likeAnimation {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

/* Icon styles */
.game-action-btn.btn-like .game-action-icon::before {
  content: '👍';
}

.game-action-btn.btn-share .game-action-icon::before {
  content: '🔗';
}

.game-action-btn.btn-fullscreen .game-action-icon::before {
  content: '⛶';
}

/* Like count */
.like-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--secondary-color);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
  display: none;
}

.like-count:not(:empty) {
  display: block;
}

/* ===================================
   Game Grid
   ================================= */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--gap);
  margin-top: 20px;
}

/* Related Games Grid - 6 per row, max 2 rows */
.related-games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap);
  margin-top: 20px;
}

/* More Games Grid - 6 per row, max 4 rows */
.more-games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap);
  margin-top: 20px;
}

.game-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

.game-card-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.game-card-name {
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
}

.game-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(33, 150, 243, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.game-card-play {
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
}

/* Empty Slot */
.game-card.empty {
  display: none;
}

/* ===================================
   Category Grid
   ================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--gap);
  margin-top: 20px;
}

.category-card {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 12px;
  padding: 12px 24px;
  color: var(--white);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 70px;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

.category-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Flipping Games Icon - 彩色翻转圆盘 */
.category-icon-flipping {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #FF6B6B, #FFA500);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  animation: flipRotate 2s ease-in-out infinite;
}

.category-icon-flipping::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.category-icon-flipping::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #FF6B6B, #FFA500);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes flipRotate {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
}

/* Sports Games Icon - 彩色足球 */
.category-icon-sports {
  width: 46px;
  height: 46px;
  background: white;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.category-icon-sports::before {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: 
    linear-gradient(45deg, transparent 30%, #333 30%, #333 35%, transparent 35%),
    linear-gradient(-45deg, transparent 30%, #333 30%, #333 35%, transparent 35%),
    radial-gradient(circle at 50% 50%, white 65%, transparent 65%);
  border-radius: 50%;
}

.category-icon-sports::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #333;
  border-radius: 50%;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Jumping Games Icon - 彩色跳跃箭头 */
.category-icon-jumping {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #4CAF50, #8BC34A);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon-jumping::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 16px solid white;
  position: absolute;
  animation: jumpUpDown 1s ease-in-out infinite;
}

.category-icon-jumping::after {
  content: '';
  width: 12px;
  height: 3px;
  background: white;
  position: absolute;
  bottom: 10px;
  border-radius: 2px;
}

@keyframes jumpUpDown {
  0%, 100% { 
    top: 18px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
  }
  50% { 
    top: 10px;
    filter: drop-shadow(0 6px 4px rgba(0,0,0,0.3));
  }
}

/* Swing Games Icon - 彩色靶心 */
.category-icon-swing {
  width: 46px;
  height: 46px;
  background: white;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.category-icon-swing::before {
  content: '';
  position: absolute;
  width: 34px;
  height: 34px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: 
    radial-gradient(circle at 50% 50%, #E91E63 0%, #E91E63 30%, white 30%, white 40%, #FF5722 40%, #FF5722 60%, white 60%, white 70%, #E91E63 70%, #E91E63 100%);
  border-radius: 50%;
}

.category-icon-swing::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #FFC107;
  border-radius: 50%;
  box-shadow: 0 0 0 2px white;
}

.category-name {
  font-size: 18px;
  font-weight: 600;
  flex: 1;
}

.category-card.empty {
  display: none;
}

/* ===================================
   SEO Content
   ================================= */
.seo-content {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  margin: 30px 0;
  box-shadow: 0 2px 10px var(--shadow);
}

.seo-content h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 20px;
  text-align: center;
}

/* Minimal padding for category/all-games pages with no description */
.seo-content:has(h1:only-child) {
  padding: 0;
  margin: 0 0 25px 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.seo-content h1:only-child {
  margin: 0;
  padding: 0;
  font-size: 32px;
}

.seo-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.seo-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 25px;
  margin-bottom: 12px;
}

.seo-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.seo-content ul,
.seo-content ol {
  margin-left: 30px;
  margin-bottom: 15px;
}

.seo-content li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.seo-content strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* ===================================
   Footer
   ================================= */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 25px 0;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-section {
  display: none;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.footer-link {
  color: var(--white);
  opacity: 0.8;
  transition: var(--transition);
  font-size: 14px;
  white-space: nowrap;
}

.footer-link:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  color: var(--white);
  opacity: 0.7;
  font-size: 13px;
  margin: 0;
}

/* ===================================
   Buttons
   ================================= */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: #1976D2;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--shadow-hover);
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background: #F57C00;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--shadow-hover);
}

.btn-more {
  display: block;
  margin: 30px auto 0;
  max-width: 200px;
}

/* ===================================
   Responsive Design
   ================================= */

/* Tablet */
@media (max-width: 1024px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .related-games-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .more-games-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  
  .category-card {
    height: 65px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }
  
  .header-container {
    padding: 0 15px;
  }
  
  .logo {
    gap: 10px;
  }
  
  .logo-icon {
    width: 34px;
    height: 34px;
  }
  
  .logo-icon::before {
    width: 16px;
    height: 16px;
  }
  
  .logo-text-main {
    font-size: 17px;
  }
  
  .logo-text-sub {
    font-size: 9px;
  }
  
  /* Hide desktop nav on mobile */
  .nav-links {
    display: none;
  }
  
  .search-box {
    display: none;
  }
  
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
  }
  
  .related-games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .more-games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .game-card-name {
    font-size: 12px;
    padding: 8px;
  }
  
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .category-card {
    padding: 10px 18px;
    gap: 12px;
    height: 60px;
  }
  
  .category-icon {
    width: 40px;
    height: 40px;
  }
  
  .category-icon-flipping,
  .category-icon-sports,
  .category-icon-jumping,
  .category-icon-swing {
    width: 40px;
    height: 40px;
  }
  
  .category-icon-flipping::before {
    width: 18px;
    height: 18px;
  }
  
  .category-icon-flipping::after {
    width: 7px;
    height: 7px;
  }
  
  .category-icon-sports::before {
    width: 24px;
    height: 24px;
  }
  
  .category-icon-sports::after {
    width: 10px;
    height: 10px;
  }
  
  .category-icon-jumping::before {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 13px solid white;
  }
  
  .category-icon-jumping::after {
    width: 10px;
  }
  
  .category-icon-swing::before {
    width: 30px;
    height: 30px;
  }
  
  .category-icon-swing::after {
    width: 7px;
    height: 7px;
  }
  
  .category-name {
    font-size: 16px;
  }
  
  .seo-content {
    padding: 25px 20px;
  }
  
  .seo-content h1 {
    font-size: 28px;
  }
  
  .seo-content h1:only-child {
    font-size: 26px;
  }
  
  .seo-content h2 {
    font-size: 22px;
  }
  
  .seo-content h3 {
    font-size: 18px;
  }
  
  .section-title {
    font-size: 22px;
  }
  
  .game-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .game-info {
    width: 100%;
  }
  
  .game-thumb {
    width: 44px;
    height: 44px;
  }
  
  .game-title {
    font-size: 20px;
  }
  
  .game-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }
  
  .game-action-btn {
    width: 40px;
    height: 40px;
  }
  
  .game-action-icon {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .related-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .more-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .category-card {
    height: 55px;
    padding: 8px 16px;
  }
  
  .category-icon {
    width: 38px;
    height: 38px;
  }
  
  .category-icon-flipping,
  .category-icon-sports,
  .category-icon-jumping,
  .category-icon-swing {
    width: 38px;
    height: 38px;
  }
  
  .category-name {
    font-size: 15px;
  }
}

/* ===================================
   Utility Classes
   ================================= */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mt-30 {
  margin-top: 30px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

.hidden {
  display: none !important;
}

/* Loading Spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

