/* Base styles - Optimized for Core Web Vitals */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #0d0b13;
  color: #f5f5f5;
  line-height: 1.6;
  font-display: swap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
/* Header */
header {
  background-color: #0d0b13;
  border-bottom: 1px solid #1a152c;
  padding: 1rem 0;
  position: static;
  top: auto;
  z-index: auto;
}
.header-inner {
  display: flex;
  align-items: center;
}
.logo {
  font-family: 'Cursive', sans-serif;
  font-size: 2rem;
  color: #f8d98d;
  text-shadow: 0 0 12px rgba(248, 217, 141, 0.6);
}
nav {
  margin-left: 2rem;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
nav li a {
  font-weight: 500;
  color: #ffffff;
  transition: color 0.2s, background-color 0.2s;
  padding: 0.5rem;
  border-radius: 0.5rem;
  display: block;
  -webkit-tap-highlight-color: transparent;
}
nav li a:hover {
  color: #f9c86f;
  background-color: rgba(249, 200, 111, 0.1);
}
.actions {
  margin-left: auto;
  display: flex;
  gap: 1rem;
}
.btn {
  padding: 0.55rem 1.25rem;
  font-weight: 600;
  border-radius: 1rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.btn-outline {
  background-color: #1f1534;
  color: #e6a940;
  border: none;
  background-image: linear-gradient(#1f1534, #1f1534), linear-gradient(90deg, #f3c56b 0%, #e1a54a 100%);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
}
.btn-outline:hover {
  color: #0d0b13;
  border: none;
  background-image: linear-gradient(90deg, #f3c56b 0%, #e1a54a 100%);
}
.btn-primary {
  background-image: linear-gradient(90deg, #f3c56b 0%, #e1a54a 100%);
  color: #0d0b13;
  border: none;
}
.btn-primary:hover {
  background-image: linear-gradient(90deg, #e1a54a 0%, #f3c56b 100%);
}
/* Hero banner */
.hero {
  background: radial-gradient(circle at top left, #23163d, #0d0b13);
  border-radius: 1rem;
  margin-top: 2rem;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  overflow: hidden;
}
.hero-text {
  flex: 1;
}
.hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}
.hero-desc {
  color: #c4b6e3;
  margin-bottom: 1.5rem;
}
/* Tabs */
.tabs {
  margin-top: 2rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tab {
  padding: 0.55rem 1.25rem;
  border-radius: 1rem;
  background-color: #211532;
  color: #b7a0d9;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.tab.active {
  background-color: #8b52cf;
  color: #ffffff;
}
.tab:hover {
  background-color: #342050;
  color: #d3c1ea;
}
/* Sections */
section {
  margin-top: 2rem;
}
.section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
  word-wrap: break-word;
  hyphens: auto;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.game-card {
  background-color: #251a3b;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.game-card:hover {
  transform: translateY(-4px);
}
.game-thumb {
  height: 120px;
  width: 100%;
  border-bottom: 1px solid #251e3f;
}
.game-content {
  padding: 0.75rem;
}
.game-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.game-meta {
  font-size: 0.875rem;
  color: #9a8bb8;
}
/* Footer */
footer {
  margin-top: 3rem;
  padding: 2rem 0;
  background-color: #1a152c;
  border-top: 1px solid #1a152c;
  text-align: center;
  font-size: 0.875rem;
  color: #9a8bb8;
}
footer a {
  color: #c4b6e3;
  margin: 0 0.5rem;
  text-decoration: underline;
}
footer a:hover {
  color: #f2bf53;
}
/* Elements with redirect-target class should show pointer cursor to indicate clickability */
.redirect-target {
  cursor: pointer;
}
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  loading: lazy;
  decoding: async;
}
.hero-banner-wrapper {
  position: relative;
}
.hero-banner {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  display: block;
}
.btn-cta {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background-image: linear-gradient(90deg, #f3c56b 0%, #e1a54a 100%);
  color: #0d0b13;
  border: none;
  border-radius: 1rem;
  padding: 0.55rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  transition: background 0.3s;
}
.btn-cta:hover {
  background-image: linear-gradient(90deg, #e1a54a 0%, #f3c56b 100%);
}

/* Modern Useful Info Section */
.useful-info-section {
  margin-top: 3rem;
  background: linear-gradient(135deg, #1a152c 0%, #251a3b 50%, #1a152c 100%);
  border-radius: 1.5rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(248, 217, 141, 0.1);
}

.useful-info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f3c56b 0%, #e1a54a 50%, #f3c56b 100%);
}

.useful-info-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #ffffff;
  text-align: center;
  position: relative;
}

.useful-info-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #f3c56b 0%, #e1a54a 100%);
  border-radius: 2px;
}

.useful-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.useful-info-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(248, 217, 141, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.useful-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #f3c56b 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.useful-info-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(248, 217, 141, 0.3);
  box-shadow: 0 8px 25px rgba(248, 217, 141, 0.1);
}

.useful-info-card:hover::before {
  opacity: 1;
}

.useful-info-card-title {
  color: #f3c56b;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.useful-info-card-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, #f3c56b 0%, #e1a54a 100%);
  border-radius: 2px;
}

.useful-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.useful-info-item {
  margin-bottom: 0.75rem;
  position: relative;
}

.useful-info-item:last-child {
  margin-bottom: 0;
}

.useful-info-link {
  color: #c4b6e3;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  position: relative;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  font-size: 0.95rem;
}

.useful-info-link::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #8b52cf;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.useful-info-link:hover {
  color: #f3c56b;
  background: rgba(248, 217, 141, 0.1);
  padding-left: 0.5rem;
  transform: translateX(4px);
}

.useful-info-link:hover::before {
  background: #f3c56b;
  transform: scale(1.2);
}

.useful-info-icon {
  font-size: 1.1rem;
  opacity: 0.8;
  transition: all 0.2s ease;
}

.useful-info-link:hover .useful-info-icon {
  opacity: 1;
  transform: scale(1.1);
}

/* Mobile-First Responsive Design */
@media (max-width: 1200px) {
  .container {
    padding: 0 1rem;
  }
  
  .header-inner {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  header {
    position: static;
    top: auto;
    z-index: auto;
  }
  
  .actions {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    order: 3;
    position: static;
  }
}

@media (max-width: 768px) {
  /* Header Mobile Optimization */
  .header-inner {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
  }
  
  header {
    position: static;
    top: auto;
    z-index: auto;
  }
  
  .logo {
    font-size: 1.8rem;
    order: 1;
  }
  
  nav {
    margin-left: 0;
    order: 2;
    width: 100%;
  }
  
  nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  nav li a {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
  
  .actions {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
    position: static;
    background: transparent;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-width: 120px;
    text-align: center;
  }
  
  .btn-outline {
    background-color: #1f1534;
    border: 2px solid #f3c56b;
    box-shadow: 0 2px 10px rgba(243, 197, 107, 0.3);
  }
  
  .btn-primary {
    background-image: linear-gradient(90deg, #f3c56b 0%, #e1a54a 100%);
    box-shadow: 0 4px 15px rgba(243, 197, 107, 0.4);
    border: 2px solid #f3c56b;
  }
  
  /* Hero Section Mobile */
  .hero {
    margin-top: 1rem;
    padding: 1.5rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .hero-desc {
    text-align: center;
    font-size: 0.95rem;
  }
  
  /* Games Grid Mobile */
  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .game-card {
    border-radius: 0.75rem;
  }
  
  .game-thumb {
    height: 100px;
  }
  
  .game-content {
    padding: 0.5rem;
  }
  
  .game-name {
    font-size: 0.9rem;
  }
  
  .game-meta {
    font-size: 0.8rem;
  }
  
  /* Tabs Mobile */
  .tabs {
    justify-content: center;
    gap: 0.5rem;
  }
  
  .tab {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Sections Mobile */
  .section-title {
    font-size: 1.3rem;
    text-align: center;
  }
  
  /* Useful Info Section Mobile */
  .useful-info-section {
    padding: 1.5rem 1rem;
    margin-top: 2rem;
  }
  
  .useful-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .useful-info-card {
    padding: 1.25rem;
  }
  
  .useful-info-title {
    font-size: 1.5rem;
  }
  
  /* Hero Banner Mobile */
  .hero-banner-wrapper {
    margin: 1rem 0;
  }
  
  .btn-cta {
    bottom: 0.5rem;
    right: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  /* Extra Small Mobile Devices */
  .container {
    padding: 0 0.75rem;
  }
  
  .header-inner {
    padding: 0.75rem 0;
  }
  
  header {
    position: static;
    top: auto;
    z-index: auto;
  }
  
  .logo {
    font-size: 1.6rem;
  }
  
  nav ul {
    gap: 0.5rem;
  }
  
  nav li a {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }
  
  .actions {
    gap: 0.75rem;
    position: static;
  }
  
  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    min-width: 100px;
  }
  
  .hero {
    padding: 1rem;
    margin-top: 0.5rem;
  }
  
  .hero-title {
    font-size: 1.3rem;
  }
  
  .hero-desc {
    font-size: 0.9rem;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
  }
  
  .game-thumb {
    height: 90px;
  }
  
  .game-content {
    padding: 0.4rem;
  }
  
  .game-name {
    font-size: 0.85rem;
  }
  
  .game-meta {
    font-size: 0.75rem;
  }
  
  .section-title {
    font-size: 1.2rem;
  }
  
  .useful-info-section {
    padding: 1rem 0.75rem;
  }
  
  .useful-info-card {
    padding: 1rem;
  }
  
  .useful-info-title {
    font-size: 1.3rem;
  }
  
  .useful-info-link {
    font-size: 0.9rem;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }
  
  .tab {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
  }
  
  .game-card {
    min-height: 44px;
  }
  
  .useful-info-link {
    min-height: 44px;
    padding: 0.75rem 0;
  }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .header-inner {
    flex-direction: row;
    flex-wrap: nowrap;
  }
  
  header {
    position: static;
    top: auto;
    z-index: auto;
  }
  
  .logo {
    order: 1;
    flex: 0 0 auto;
  }
  
  nav {
    order: 2;
    flex: 1;
    margin-left: 1rem;
  }
  
  nav ul {
    justify-content: flex-start;
  }
  
  .actions {
    order: 3;
    flex: 0 0 auto;
    margin-left: 1rem;
    width: auto;
    position: static;
  }
  
  .hero {
    padding: 1rem;
  }
  
  .hero-title {
    font-size: 1.4rem;
  }
}

/* Additional mobile improvements */
@media (max-width: 768px) {
  /* Improve text readability */
  body {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Better spacing for mobile */
  section {
    margin-top: 1.5rem;
  }
  
  /* Improve button visibility */
  .btn-primary {
    background: linear-gradient(90deg, #f3c56b 0%, #e1a54a 100%);
    box-shadow: 0 4px 15px rgba(243, 197, 107, 0.4);
    border: 2px solid #f3c56b;
  }
  
  .btn-outline {
    background: rgba(31, 21, 52, 0.9);
    border: 2px solid #f3c56b;
    color: #f3c56b;
    box-shadow: 0 2px 10px rgba(243, 197, 107, 0.3);
  }
  
  /* Improve game card visibility */
  .game-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #3a2f4d;
  }
  
  .game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
  }
  
  /* Improve tab visibility */
  .tab {
    background: rgba(33, 21, 50, 0.9);
    border: 1px solid #4a3f5d;
  }
  
  .tab.active {
    background: linear-gradient(90deg, #8b52cf 0%, #6d3a9f 100%);
    box-shadow: 0 2px 10px rgba(139, 82, 207, 0.3);
  }
  
  /* Improve useful info cards */
  .useful-info-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #3a2f4d;
  }
  
  /* Improve hero banner */
  .hero-banner-wrapper {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  /* Improve CTA button */
  .btn-cta {
    box-shadow: 0 6px 20px rgba(243, 197, 107, 0.4);
    border: 2px solid #f3c56b;
  }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo {
    text-shadow: 0 0 8px rgba(248, 217, 141, 0.8);
  }
  
  .btn-primary {
    box-shadow: 0 4px 15px rgba(243, 197, 107, 0.5);
  }
  
  .game-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  }
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
  .btn-outline {
    background: rgba(31, 21, 52, 0.95);
    border-color: #f3c56b;
    box-shadow: 0 2px 10px rgba(243, 197, 107, 0.3);
  }
  
  .tab {
    background: rgba(33, 21, 50, 0.95);
    border-color: #4a3f5d;
  }
  
  .game-card {
    background: linear-gradient(135deg, #1a1625 0%, #2a1f3d 100%);
    border-color: #3a2f4d;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus improvements for keyboard navigation */
.btn:focus,
.tab:focus,
.game-card:focus,
.useful-info-link:focus,
nav li a:focus {
  outline: 2px solid #f3c56b;
  outline-offset: 2px;
}

/* Additional page-specific styles */
/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: #1a1625;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

th, td {
  padding: 0.75rem;
  border-bottom: 1px solid #251e3f;
  text-align: left;
}

th {
  background-color: #211532;
  color: #f3c56b;
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: #1a122a;
}

tr:hover {
  background-color: #2a1f3d;
}

/* Reviews */
.review {
  background-color: #251a3b;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid #3a2f4d;
}

.review-title {
  font-weight: 600;
  color: #f3c56b;
  margin-bottom: 0.5rem;
}

.review-rating {
  color: #f9c86f;
  margin-bottom: 0.5rem;
}

/* FAQ */
details {
  background-color: #251a3b;
  border-radius: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid #3a2f4d;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: #f3c56b;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

summary:hover {
  background-color: rgba(243, 197, 107, 0.1);
}

details p {
  margin-top: 0.5rem;
  padding-left: 0.5rem;
}

/* Game boxes */
.game-box {
  background-color: #251a3b;
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid #3a2f4d;
}

.game-box h3 {
  margin-top: 0;
  color: #f3c56b;
}

.game-box p {
  margin-bottom: 0.75rem;
}

/* Bonus boxes */
.bonus-box {
  background-color: #251a3b;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid #3a2f4d;
}

.bonus-box h3 {
  margin-top: 0;
  color: #f3c56b;
}

.bonus-box p {
  margin-bottom: 0.75rem;
}

/* Contact info */
.contact-info {
  background-color: #251a3b;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid #3a2f4d;
}

/* Lists */
ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  margin-bottom: 0.5rem;
}

/* Mobile optimizations for additional elements */
@media (max-width: 768px) {
  /* Tables mobile */
  table {
    font-size: 0.9rem;
  }
  
  th, td {
    padding: 0.5rem;
  }
  
  /* Reviews mobile */
  .review {
    padding: 1rem;
  }
  
  /* FAQ mobile */
  details {
    padding: 0.75rem;
  }
  
  summary {
    padding: 0.5rem;
    font-size: 0.95rem;
  }
  
  /* Game boxes mobile */
  .game-box {
    padding: 0.75rem;
  }
  
  /* Bonus boxes mobile */
  .bonus-box {
    padding: 1rem;
  }
  
  /* Contact info mobile */
  .contact-info {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  /* Tables small mobile */
  table {
    font-size: 0.8rem;
  }
  
  th, td {
    padding: 0.4rem;
  }
  
  /* Reviews small mobile */
  .review {
    padding: 0.75rem;
  }
  
  /* FAQ small mobile */
  details {
    padding: 0.5rem;
  }
  
  summary {
    padding: 0.4rem;
    font-size: 0.9rem;
  }
  
  /* Game boxes small mobile */
  .game-box {
    padding: 0.5rem;
  }
  
  /* Bonus boxes small mobile */
  .bonus-box {
    padding: 0.75rem;
  }
  
  /* Contact info small mobile */
  .contact-info {
    padding: 0.75rem;
  }
}

/* Print styles */
@media print {
  .btn,
  .tab,
  .actions,
  .btn-cta {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .game-card {
    border: 1px solid #ccc !important;
    background: white !important;
  }
  
  table {
    border: 1px solid #ccc !important;
    background: white !important;
  }
  
  .review,
  .bonus-box,
  .game-box,
  .contact-info {
    border: 1px solid #ccc !important;
    background: white !important;
  }
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
  /* Ensure buttons are always visible and accessible */
  .actions {
    position: static;
    background: transparent;
    padding: 1rem 0;
    border-top: none;
    z-index: auto;
  }
  
  /* Improve game grid for mobile */
  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  }
  
  /* Better hero section for mobile */
  .hero {
    text-align: center;
    padding: 2rem 1rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Improve tabs for mobile */
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .tabs::-webkit-scrollbar {
    display: none;
  }
  
  .tab {
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  /* Improve useful info section for mobile */
  .useful-info-section {
    padding: 2rem 1rem;
  }
  
  .useful-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .useful-info-card {
    padding: 1.5rem;
  }
  
  /* Improve footer for mobile */
  footer {
    padding: 2rem 1rem;
    text-align: center;
  }
}

/* Ultra-wide mobile devices */
@media (max-width: 480px) and (orientation: portrait) {
  .container {
    padding: 0 0.5rem;
  }
  
  .header-inner {
    padding: 0.5rem 0;
  }
  
  header {
    position: static;
    top: auto;
    z-index: auto;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  nav ul {
    gap: 0.25rem;
  }
  
  nav li a {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
  }
  
  .actions {
    gap: 0.5rem;
    position: static;
  }
  
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    min-width: 90px;
  }
  
  .hero {
    padding: 1.5rem 0.5rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-desc {
    font-size: 0.9rem;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
  }
  
  .game-thumb {
    height: 80px;
  }
  
  .game-content {
    padding: 0.3rem;
  }
  
  .game-name {
    font-size: 0.8rem;
  }
  
  .game-meta {
    font-size: 0.7rem;
  }
  
  .section-title {
    font-size: 1.1rem;
  }
  
  .useful-info-section {
    padding: 1.5rem 0.5rem;
  }
  
  .useful-info-card {
    padding: 1rem;
  }
  
  .useful-info-title {
    font-size: 1.2rem;
  }
  
  .useful-info-link {
    font-size: 0.85rem;
  }
}

/* Final mobile optimizations */
@media (max-width: 768px) {
  /* Ensure all interactive elements are touch-friendly */
  .btn,
  .tab,
  .game-card,
  .useful-info-link,
  nav li a {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Improve button contrast and visibility */
  .btn-primary {
    background: linear-gradient(90deg, #f3c56b 0%, #e1a54a 100%);
    color: #0d0b13;
    font-weight: 700;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(243, 197, 107, 0.5);
    border: 2px solid #f3c56b;
  }
  
  .btn-outline {
    background: rgba(31, 21, 52, 0.95);
    border: 2px solid #f3c56b;
    color: #f3c56b;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(243, 197, 107, 0.3);
  }
  
  /* Improve game card visibility */
  .game-card {
    background: linear-gradient(135deg, #1a1625 0%, #2a1f3d 100%);
    border: 1px solid #3a2f4d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
  }
  
  /* Improve tab visibility */
  .tab {
    background: rgba(33, 21, 50, 0.95);
    border: 1px solid #4a3f5d;
    color: #b7a0d9;
  }
  
  .tab.active {
    background: linear-gradient(90deg, #8b52cf 0%, #6d3a9f 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(139, 82, 207, 0.3);
  }
  
  /* Improve useful info cards */
  .useful-info-card {
    background: linear-gradient(135deg, #1a1625 0%, #2a1f3d 100%);
    border: 1px solid #3a2f4d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
  
  /* Improve hero banner */
  .hero-banner-wrapper {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  /* Improve CTA button */
  .btn-cta {
    background: linear-gradient(90deg, #f3c56b 0%, #e1a54a 100%);
    color: #0d0b13;
    box-shadow: 0 6px 20px rgba(243, 197, 107, 0.4);
    border: 2px solid #f3c56b;
    font-weight: 700;
  }
}
