/* Generated by scripts/build-category-pages.js — do not edit by hand. */
:root {
  --color-arcade: #f97316;
  --color-puzzle: #7c3aed;
  --color-action: #dc2626;
  --color-platformer: #059669;
  --color-strategy: #2563eb;
  --color-sports: #65a30d;
  --color-casual: #db2777;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #0f0f1a 100%);
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(0deg, rgba(13, 75, 142, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 75, 142, 0.07) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}
a { color: inherit; }

/* Header */
header {
  position: relative; z-index: 10;
  background: rgba(15, 15, 26, 0.85);
  border-bottom: 2px solid rgba(232, 117, 48, 0.4);
  backdrop-filter: blur(10px);
}
.header-content { max-width: 1400px; margin: 0 auto; padding: 2rem 1.5rem; }
.logo-link { display: inline-block; }
.logo-img { height: 150px; display: block; margin-bottom: 0.75rem; }
.breadcrumb { font-size: 0.85rem; color: #8a8a9a; margin-bottom: 0.75rem; }
.breadcrumb a { color: #e87530; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.35rem; color: #55556a; }
.cat-h1 {
  font-size: 2.25rem; font-weight: 900; letter-spacing: -1px;
  background: linear-gradient(135deg, #0d4b8e, #e87530);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0.5rem; line-height: 1.1;
}
.cat-tagline { font-size: 1rem; color: #a0a0b0; margin-bottom: 1.5rem; }

/* Category nav pills */
.category-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cat-pill {
  padding: 0.5rem 1.15rem; border-radius: 2rem; font-size: 0.85rem; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04);
  color: #a0a0b0; text-decoration: none; transition: all 0.2s ease; white-space: nowrap;
}
.cat-pill:hover { color: #e0e0e0; border-color: rgba(232, 117, 48, 0.4); }
.cat-pill.active {
  background: linear-gradient(135deg, rgba(13, 75, 142, 0.7), rgba(232, 117, 48, 0.7));
  border-color: #e87530; color: #fff;
}

/* Main */
main { position: relative; z-index: 5; max-width: 1400px; margin: 0 auto; padding: 3rem 1.5rem; }
.intro-text { max-width: 950px; margin-bottom: 2rem; color: #b8b8c8; line-height: 1.7; }
.intro-text p { margin-bottom: 1rem; font-size: 0.98rem; }
.game-count { color: #7a7a8a; font-size: 0.95rem; margin-bottom: 2rem; }

/* Grid */
.games-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem; margin-bottom: 1rem;
}
@media (max-width: 1024px) { .games-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; } }
@media (max-width: 768px)  { .games-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (max-width: 480px)  { .games-grid { grid-template-columns: 1fr; gap: 1rem; } }

/* Cards */
.game-card {
  position: relative; border-radius: 0.75rem; overflow: hidden;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease; display: flex; flex-direction: column; height: 100%; cursor: pointer;
}
.game-card:hover {
  transform: translateY(-8px) scale(1.02); background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.game-thumbnail {
  width: 100%; height: 160px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
  background: linear-gradient(135deg, #f97316, #f59e0b);
}
.thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.2s ease; }
.game-card.arcade .game-thumbnail { background: linear-gradient(135deg, #f97316, #f59e0b); }
.game-card.puzzle .game-thumbnail { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.game-card.action .game-thumbnail { background: linear-gradient(135deg, #dc2626, #ef4444); }
.game-card.platformer .game-thumbnail { background: linear-gradient(135deg, #059669, #10b981); }
.game-card.strategy .game-thumbnail { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.game-card.sports .game-thumbnail { background: linear-gradient(135deg, #65a30d, #84cc16); }
.game-card.casual .game-thumbnail { background: linear-gradient(135deg, #db2777, #ec4899); }
.thumbnail-icon { opacity: 0.3; text-shadow: 0 0 20px currentColor; }
.game-content { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.game-header { margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.game-title { font-size: 1.125rem; font-weight: 700; color: #fff; flex: 1; line-height: 1.3; }
.category-badge {
  padding: 0.375rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; display: inline-block;
}
.category-badge.arcade { background: rgba(249, 115, 22, 0.2); color: #f97316; border: 1px solid rgba(249, 115, 22, 0.3); }
.category-badge.puzzle { background: rgba(124, 58, 237, 0.2); color: #7c3aed; border: 1px solid rgba(124, 58, 237, 0.3); }
.category-badge.action { background: rgba(220, 38, 38, 0.2); color: #dc2626; border: 1px solid rgba(220, 38, 38, 0.3); }
.category-badge.platformer { background: rgba(5, 150, 105, 0.2); color: #059669; border: 1px solid rgba(5, 150, 105, 0.3); }
.category-badge.strategy { background: rgba(37, 99, 235, 0.2); color: #2563eb; border: 1px solid rgba(37, 99, 235, 0.3); }
.category-badge.sports { background: rgba(101, 163, 13, 0.2); color: #65a30d; border: 1px solid rgba(101, 163, 13, 0.3); }
.category-badge.casual { background: rgba(219, 39, 119, 0.2); color: #db2777; border: 1px solid rgba(219, 39, 119, 0.3); }
.game-description {
  font-size: 0.875rem; color: #b0b0c0; line-height: 1.4; margin-bottom: 1rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.play-button {
  padding: 0.75rem; background: linear-gradient(135deg, #0d4b8e, #e87530); color: #fff; border: none;
  border-radius: 0.5rem; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease;
  text-decoration: none; display: block; text-align: center;
}
.play-button:hover { background: linear-gradient(135deg, #1a65b8, #f08040); box-shadow: 0 0 20px rgba(232, 117, 48, 0.4); transform: scale(1.05); }
.coming-soon-badge {
  padding: 0.75rem; background: rgba(100, 100, 140, 0.25); color: #b0b0cc; border: 1px solid rgba(150, 150, 180, 0.4);
  border-radius: 0.5rem; font-weight: 600; font-size: 0.9rem; display: block; text-align: center; width: 100%;
}

/* Footer */
footer {
  position: relative; z-index: 10; background: rgba(15, 15, 26, 0.85);
  border-top: 2px solid rgba(232, 117, 48, 0.4); padding: 3rem 1.5rem; margin-top: 3rem;
  backdrop-filter: blur(10px); text-align: center; color: #7a7a8a;
}
.footer-content { max-width: 1400px; margin: 0 auto; }
.footer-cats { font-size: 0.9rem; margin-bottom: 1.25rem; line-height: 2; }
.footer-cats a { color: #a0a0b0; text-decoration: none; }
.footer-cats a:hover { color: #e87530; text-decoration: underline; }
.footer-copyright { font-size: 0.95rem; margin-bottom: 1rem; }
.footer-credit { font-size: 0.85rem; color: #606070; }
.footer-credit a { color: #e87530; text-decoration: none; }
.footer-credit a:hover { color: #f08040; text-decoration: underline; }

@media (max-width: 768px) {
  .logo-img { height: 110px; }
  .cat-h1 { font-size: 1.75rem; }
}

/* All-games A–Z index page */
.allgames-intro { max-width: 950px; }
.cat-block { margin-bottom: 2.5rem; scroll-margin-top: 1rem; }
.cat-block-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem; margin-bottom: 1rem;
}
.cat-block-head h2 { font-size: 1.4rem; font-weight: 800; color: #fff; }
.cat-block-head .see-all { font-size: 0.85rem; color: #e87530; text-decoration: none; white-space: nowrap; }
.cat-block-head .see-all:hover { text-decoration: underline; }
.game-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.25rem 1rem; }
.game-links a {
  display: flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.55rem;
  border-radius: 7px; color: #cbd5e1; text-decoration: none; font-size: 0.92rem; line-height: 1.3;
}
.game-links a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.game-links .gi { width: 1.35em; text-align: center; flex-shrink: 0; }
