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

body {
  background: linear-gradient(180deg, #fde68a, #fefce8);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  color: #555;
  line-height: 1.7;
}

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

h1 {
  font-size: 2.75rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.4;
}

p {
  margin-bottom: 12px;
}

a {
  color: #d97706;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

/* Cookie Banner */
.cookie-banner {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  padding: 14px 0;
  font-size: 14px;
}

.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin-bottom: 0;
}

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

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

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

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

.site-logo:hover {
  text-decoration: none;
}

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

.nav-links a {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  color: #555;
  font-weight: 600;
}

.nav-links a:hover {
  color: #d97706;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 24px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #0a0a0a;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

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

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

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

.hero p {
  font-size: 18px;
  color: #555;
}

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

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

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

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

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

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

.game-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex-shrink: 0;
}

.game-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.game-card-meta h3 {
  margin: 0;
  font-size: 1.1rem;
}

.game-badge {
  display: inline-block;
  background: rgba(217,119,6,0.15);
  color: #d97706;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.game-developer {
  font-size: 13px;
  color: #999;
  margin: 0;
}

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

.game-screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.game-screenshots img {
  border-radius: 6px;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

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

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

.btn-block {
  display: block;
  width: 100%;
}

.btn-small {
  font-size: 13px;
  padding: 8px 18px;
}

/* Subscribe / Contact Form */
.subscribe-section {
  padding: 64px 0;
}

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

.form-card h2 {
  text-align: center;
}

.form-subtitle {
  text-align: center;
  color: #999;
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #444;
}

.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: rgba(255,255,255,0.6);
  color: #333;
}

.form-input:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 2px rgba(217,119,6,0.13);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
}

.form-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #d97706;
  cursor: pointer;
}

.form-consent label {
  font-size: 13px;
  color: #555;
  line-height: 1.4;
  cursor: pointer;
  font-weight: 400;
}

.form-consent a {
  color: #d97706;
  text-decoration: underline;
}

.form-success {
  display: none;
  text-align: center;
  color: #15803d;
  font-weight: 600;
  margin-top: 14px;
  font-size: 15px;
}

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

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

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

.footer-links a {
  font-size: 13px;
  color: #999;
}

.footer-links a:hover {
  color: #d97706;
}

.footer-copy {
  margin: 0;
}

/* Legal page content */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0 64px;
}

.legal-content h1 {
  margin-bottom: 24px;
  font-size: 2rem;
}

.legal-content h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.legal-content h3 {
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content ul,
.legal-content ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

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

.legal-content a {
  color: #d97706;
}

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

  h2 {
    font-size: 1.3rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    z-index: 100;
  }

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

  .navbar .container {
    position: relative;
  }

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

  .form-card {
    padding: 24px;
  }

  .section {
    padding: 40px 0;
  }

  .hero {
    padding: 40px 0;
  }

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

  .cookie-banner .container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
