* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html, body {
      height: 100%;
      font-family: 'Merriweather', 'Georgia', serif;
      background: #ffffff;
      color: #333333;
      line-height: 1.6;
      overflow-x: hidden;
    }

    .home-content {
      position: relative;
      z-index: 1;
      background: #ffffff;
    }

    /* Hide particle canvas on home page */
    .home-content #particle-canvas-home {
      display: none !important;
    }

    /* Menu button styles */
    .menu-button {
      position: fixed;
      top: 20px;
      left: 20px;
      z-index: 1001;
      background: #000;
      border: none;
      color: #ffffff;
      padding: 10px 20px;
      font-size: 0.9rem;
      font-family: 'Merriweather', serif;
      font-weight: 400;
      cursor: pointer;
      transition: all 0.3s ease;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .menu-button:hover {
      background: #6d3410;
    }

    .menu-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.95);
      color: #ffffff;
      display: none;
      z-index: 1000;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    .menu-overlay.active {
      display: flex;
    }

    .menu-overlay a {
      color: #ffffff;
      font-size: 1.8rem;
      font-family: 'Merriweather', serif;
      text-decoration: none;
      margin: 15px 0;
      transition: all 0.3s ease;
      cursor: pointer;
      font-weight: 300;
    }

    .menu-overlay a:hover {
      color: #cccccc;
    }

    .menu-overlay .close-btn {
      position: absolute;
      top: 30px;
      right: 40px;
      font-size: 2.5rem;
      background: none;
      border: none;
      color: #ffffff;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .menu-overlay .close-btn:hover {
      color: #cccccc;
    }

.hero {
  background: url("http://www.americanyawp.com/test/wp-content/uploads/2018/04/cropped-testsite.jpg") center 20% / cover no-repeat;
  height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}


    .hero::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 0;
    }

    .hero h1 {
      font-size: 3.5rem;
      font-weight: 700;
      position: relative;
      z-index: 1;
      color: #ffffff;
      margin-bottom: 15px;
      font-family: 'Merriweather', serif;
      text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    }

    .hero p {
      font-size: 1.3rem;
      margin-top: 10px;
      font-weight: 300;
      position: relative;
      z-index: 1;
      color: #ffffff;
      font-style: italic;
      max-width: 700px;
      text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    }

    .content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 40px 20px;
    }

    .extras {
      background: #f5f5f5;
      padding: 30px 20px;
      margin: 0;
      text-align: center;
      border-top: 1px solid #ddd;
      border-bottom: 1px solid #ddd;
    }

    .extras a {
      display: inline-block;
      padding: 10px 25px;
      margin: 5px 10px;
      color: #ffffff;
      background: #8B4513;
      text-decoration: none;
      transition: all 0.3s ease;
      font-weight: 400;
      font-family: 'Merriweather', serif;
      font-size: 0.95rem;
    }

    .extras a:hover {
      background: #6d3410;
    }

    .volumes {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      margin-top: 40px;
      margin-bottom: 40px;
    }

    .volume {
      background: #ffffff;
      padding: 0;
    }

    .volume h2 {
      text-align: left;
      margin-bottom: 25px;
      font-size: 1.8rem;
      font-weight: 700;
      color: #8B4513;
      font-family: 'Merriweather', serif;
      padding-bottom: 10px;
      border-bottom: 3px solid #8B4513;
    }

    .volume ul {
      list-style: none;
      padding: 0;
    }

    .volume li {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      padding: 12px 0;
      border-bottom: 1px solid #e0e0e0;
    }

    .volume li:last-child {
      border-bottom: none;
    }

    .volume li:hover {
      background: #f9f9f9;
    }

    .volume li a {
      text-decoration: none;
      color: #333333;
      font-weight: 400;
      transition: color 0.3s ease;
      flex: 1;
      font-family: 'Merriweather', serif;
      font-size: 1rem;
    }

    .volume li a:hover {
      color: #8B4513;
    }

    .volume li span {
      color: #666666;
      font-weight: 400;
      font-size: 0.95rem;
      margin-left: 15px;
    }

    .epigram {
      text-align: center;
      margin: 60px auto;
      font-style: italic;
      font-size: 1.15rem;
      color: #555555;
      padding: 40px 60px;
      background: #f5f5f5;
      border-left: 4px solid #8B4513;
      max-width: 900px;
      font-weight: 300;
      font-family: 'Merriweather', serif;
    }

    .epigram p {
      margin: 15px 0;
      line-height: 1.8;
    }

    .footer-links {
      text-align: center;
      margin: 0;
      padding: 30px 20px;
      background: #f5f5f5;
      border-top: 1px solid #ddd;
      border-bottom: 1px solid #ddd;
    }

    .footer-links a {
      margin: 0 20px;
      text-decoration: none;
      color: #333333;
      transition: all 0.3s ease;
      font-weight: 400;
      font-family: 'Merriweather', serif;
      font-size: 0.95rem;
    }

    .footer-links a:hover {
      color: #8B4513;
    }

    .footer {
      background: #333333;
      color: #999999;
      text-align: center;
      padding: 30px 20px;
      font-size: 0.9rem;
    }

    .footer img {
      max-height: 40px;
      margin: 10px;
      opacity: 0.7;
      transition: opacity 0.3s ease;
    }

    .footer img:hover {
      opacity: 1;
    }

    /* Styles for games section */
    :root {
      --bg-dark: #0f0a1e;
      --bg-card: #1a1330;
      --text-light: #f5f5f5;
      --text-muted: #c4b5fd;
      --accent: #9370db;
      --accent-hover: #b19cd9;
    }

    .games-body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: linear-gradient(135deg, #0a0a0f 0%, #1a0b2e 50%, #0f0a1e 100%);
      color: var(--text-light);
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    .games-header {
      background: rgba(25, 20, 40, 0.6);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      padding: 40px 20px 30px;
      text-align: center;
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
      border-bottom: 1px solid rgba(147, 112, 219, 0.2);
    }

    .games-header h1 {
      margin: 0;
      font-size: 2.8em;
      font-weight: 700;
      background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .games-header p {
      margin-top: 10px;
      font-size: 1.1em;
      color: #b19cd9;
      font-weight: 300;
    }

    #searchInput {
      padding: 12px 20px;
      width: 60%;
      max-width: 450px;
      font-size: 1em;
      border-radius: 25px;
      border: 1px solid rgba(147, 112, 219, 0.3);
      background: rgba(25, 20, 40, 0.6);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      color: #f5f5f5;
      margin-top: 25px;
      transition: all 0.3s ease;
    }

    #searchInput:focus {
      outline: none;
      border-color: rgba(147, 112, 219, 0.6);
      box-shadow: 0 0 20px rgba(147, 112, 219, 0.2);
    }

    #searchInput::placeholder {
      color: #8b7fb8;
    }

    .games-nav {
      background: rgba(15, 10, 30, 0.8);
      backdrop-filter: blur(15px);
      -webkit-backdrop-filter: blur(15px);
      padding: 15px;
      text-align: center;
      box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
      border-bottom: 1px solid rgba(147, 112, 219, 0.15);
    }

    .games-nav a {
      color: var(--text-muted);
      margin: 0 20px;
      text-decoration: none;
      font-weight: 500;
      transition: all 0.3s ease;
      position: relative;
    }

    .games-nav a::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--accent);
      transition: width 0.3s ease;
    }

    .games-nav a:hover {
      color: #ffffff;
    }

    .games-nav a:hover::after {
      width: 100%;
    }

.games-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

/* Left Ad */
.games-ad-bar.left-ad {
  position: fixed;
  left: 0;
  top: 300px;
  width: 160px;
  background: rgba(15, 10, 25, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
}

/* Right Ad */
.games-ad-bar.right-ad {
  position: fixed;
  right: 0;
  top: 300px;
  width: 160px;
  background: rgba(15, 10, 25, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
}

.games-main-content {
  flex: 1;
  margin: 0 180px; /* leaves space for ads on both sides */
}


    .games-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 30px;
      padding: 40px 5vw;
    }

    .game-card {
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 15px;
      overflow: hidden;
      text-align: center;
      transition: all 0.4s ease;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
      position: relative;
    }

    .game-card:hover {
      transform: translateY(-10px);
      border-color: rgba(255, 255, 255, 0.2);
      box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(147, 112, 219, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .game-card img {
      width: 100%;
      height: 150px;
      object-fit: cover;
      transition: transform 0.3s ease;
      display: block;
      background: rgba(10, 10, 15, 0.9);
    }

    .game-card:hover img {
      transform: scale(1.05);
    }

    .game-card-content {
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(40px) saturate(180%);
      -webkit-backdrop-filter: blur(40px) saturate(180%);
      border-top: 1px solid rgba(255, 255, 255, 0.15);
      padding: 20px 15px 15px;
      position: relative;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .game-card-content::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .game-card:hover .game-card-content {
      background: rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(50px) saturate(200%);
      -webkit-backdrop-filter: blur(50px) saturate(200%);
      border-top-color: rgba(255, 255, 255, 0.25);
      box-shadow: 
        0 -10px 40px rgba(147, 112, 219, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .game-card:hover .game-card-content::before {
      opacity: 1;
    }

    .game-card h3 {
      margin: 0 0 15px;
      font-size: 1.2em;
      font-weight: 600;
      color: #ffffff;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
      letter-spacing: -0.3px;
    }

    .game-card a {
      display: inline-block;
      margin: 0;
      padding: 12px 28px;
      background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      color: #ffffff;
      border-radius: 25px;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
      border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .game-card a:hover {
      background: rgba(255, 255, 255, 0.25);
      transform: scale(1.05);
      box-shadow: 
        0 6px 25px rgba(147, 112, 219, 0.4),
        0 0 30px rgba(147, 112, 219, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
      border-color: rgba(255, 255, 255, 0.3);
    }

    .games-footer {
      background: rgba(10, 10, 15, 0.95);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      text-align: center;
      padding: 25px;
      font-size: 0.95em;
      color: #8b7fb8;
      border-top: 1px solid rgba(147, 112, 219, 0.2);
    }

    @media (max-width: 900px) {
      .games-ad-bar {
        display: none;
      }

      .games-layout {
        flex-direction: column;
      }

      .volumes {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 600px) {
      .hero h1 { font-size: 2.5rem; }
      .hero p { font-size: 1.1rem; }
      .content { padding: 20px 15px; }
      .epigram { padding: 30px 25px; }
      .volumes {
        grid-template-columns: 1fr;
      }
    }

    /* Hide/show content */
    .home-content {
      display: block;
    }

    .games-content {
      display: none;
    }

    .games-content.active {
      display: block;
    }

    .home-content.hidden {
      display: none;
    }

    /* Player Count - games only */
    .games-content .player-count {
      position: fixed;
      top: 30px;
      right: 30px;
      z-index: 1001;
      background: rgba(25, 20, 40, 0.8);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(147, 112, 219, 0.3);
      color: white;
      padding: 12px 18px;
      border-radius: 25px;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      font-size: 0.95rem;
      display: flex;
      align-items: center;
      gap: 10px;
      box-shadow: 0 8px 32px rgba(147, 112, 219, 0.2);
    }

    .games-content .player-count-ball {
      width: 10px;
      height: 10px;
      background: linear-gradient(135deg, #9370db 0%, #b19cd9 100%);
      border-radius: 50%;
      animation: pulse-glow 2s ease-in-out infinite;
      box-shadow: 0 0 15px rgba(147, 112, 219, 0.8);
    }

    @keyframes pulse-glow {
      0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 15px rgba(147, 112, 219, 0.8);
      }
      50% {
        transform: scale(1.3);
        opacity: 0.8;
        box-shadow: 0 0 25px rgba(147, 112, 219, 1);
      }
    }