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

body {
  background: linear-gradient(200deg, #e0e7ff, #eef2ff);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  color: #444;
  line-height: 1.75;
}

h1, h2, h3, .site-logo {
  font-family: 'Libre Baskerville', serif;
  color: #1a1a1a;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.5rem; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background: transparent;
  padding: 16px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.25rem;
  color: #1a1a1a;
  text-decoration: none;
}

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

.nav-links a {
  text-transform: uppercase;
  font-size: 13px;
  color: #444;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  text-decoration: underline;
  color: #4338ca;
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 0;
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 16px;
}

.hero p {
  color: #444;
}

/* Sections */
.section {
  padding: 72px 0;
}

/* About section */
.about-inner {
  max-width: 800px;
  margin: 0 auto;
}

.about-inner h2 {
  margin-bottom: 16px;
}

.about-inner p {
  margin-bottom: 14px;
}

/* Game catalog */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.catalog-grid h2 {
  grid-column: 1 / -1;
}

/* Card */
.card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(2px);
  border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Game card specifics */
.game-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.game-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}

.game-card-header-text h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.genre-badge {
  display: inline-block;
  background: #4338ca;
  color: #fff;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.developer-name {
  font-size: 13px;
  color: #777;
  margin-top: 4px;
}

.game-description {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.65;
}

.screenshot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.screenshot-row img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-block;
  background: #4338ca;
  color: #fff;
  border-radius: 20px;
  padding: 10px 24px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
  text-decoration: none;
  color: #fff;
}

.btn-full {
  width: 100%;
  padding: 10px;
  font-weight: 500;
}

/* Links */
a {
  color: #4338ca;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Subscribe / Contact form */
.subscribe-section {
  padding: 72px 0;
}

.subscribe-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px;
}

.subscribe-card h2 {
  margin-bottom: 6px;
}

.subscribe-card .subtitle {
  color: #777;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 15px;
  font-family: 'Source Sans 3', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.form-input:focus {
  border-color: #4338ca;
  box-shadow: 0 0 0 2px rgba(67,56,202,0.12);
}

.form-consent {
  margin-top: 4px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  cursor: pointer;
}

.consent-checkbox {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #4338ca;
  flex-shrink: 0;
  cursor: pointer;
}

.success-message {
  display: none;
  color: #16a34a;
  font-weight: 600;
  margin-top: 14px;
  text-align: center;
}

.success-message.visible {
  display: block;
}

/* Footer */
.footer {
  text-align: center;
  color: #777;
  padding: 32px 0;
  font-size: 14px;
}

.footer a {
  color: #777;
}

.footer a:hover {
  color: #4338ca;
}

.footer-links {
  margin-bottom: 8px;
}

.footer-links a {
  margin: 0 8px;
}

/* Cookie banner */
.cookie-banner {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  padding: 14px 20px;
  text-align: center;
  font-size: 14px;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  display: inline;
}

.cookie-btn {
  display: inline-block;
  background: #4338ca;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 6px 18px;
  font-size: 13px;
  font-family: 'Source Sans 3', sans-serif;
  cursor: pointer;
  margin-left: 12px;
  transition: opacity 0.2s;
}

.cookie-btn:hover {
  opacity: 0.85;
}

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 72px 0;
}

.legal-content h1 {
  margin-bottom: 24px;
}

.legal-content h2 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.legal-content p {
  margin-bottom: 12px;
}

.legal-content ul {
  margin: 12px 0 12px 24px;
}

.legal-content li {
  margin-bottom: 6px;
}

/* Page content (about, quick-start) */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 72px 0;
}

.page-content h1 {
  margin-bottom: 24px;
}

.page-content h2 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.page-content p {
  margin-bottom: 14px;
}

.page-content ol {
  margin: 16px 0 16px 24px;
}

.page-content li {
  margin-bottom: 10px;
}

/* Muted text */
.text-muted {
  color: #777;
}

/* Section heading centered */
.section-heading {
  text-align: center;
  margin-bottom: 8px;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  margin: 5px 0;
  transition: transform 0.2s;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.3rem; }

  .hero { padding: 48px 0; }

  .section { padding: 48px 0; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    right: 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 16px 24px;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 100;
  }

  .nav-links.open {
    display: flex;
  }

  .navbar .container {
    position: relative;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .subscribe-card {
    padding: 24px;
  }

  .subscribe-section { padding: 48px 0; }

  .legal-content { padding: 48px 0; }
  .page-content { padding: 48px 0; }
}
