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

body {
  background: linear-gradient(160deg, #d1fae5, #ecfdf5);
  background-attachment: fixed;
  font-family: 'Space Grotesk', sans-serif;
  color: #3a3a3a;
  line-height: 1.65;
  font-size: 15px;
  min-height: 100vh;
}

h1, h2, h3, .site-logo {
  font-family: 'Instrument Serif', serif;
  color: #1f1f1f;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.25rem; margin-bottom: 16px; }
h2 { font-size: 1.4rem; margin-bottom: 16px; }
h3 { font-size: 1.2rem; margin-bottom: 12px; }

p { margin-bottom: 12px; }

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

a { color: #059669; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Cookie banner (bottom-sheet) */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  padding: 18px 22px;
  font-size: 14px;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); }
.cookie-banner .cookie-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}
.cookie-banner .cookie-text { flex: 1 1 320px; min-width: 0; }
.cookie-banner .cookie-title { font-weight: 600; color: #1f1f1f; margin: 0 0 4px; font-family: 'Space Grotesk', sans-serif; }
.cookie-banner p { margin: 0; color: #3a3a3a; }
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner .btn,
.cookie-banner .btn-secondary {
  padding: 9px 22px;
  font-size: 14px;
  border-radius: 20px;
}
.btn-secondary {
  background: rgba(0,0,0,0.06);
  color: #1f1f1f;
  border: 1px solid rgba(0,0,0,0.08);
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(0,0,0,0.1); text-decoration: none; color: #1f1f1f; }

/* Navbar */
.site-header {
  padding: 16px 0;
  background: transparent;
}
.site-logo {
  display: block;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 8px;
}
.site-logo a { color: #1f1f1f; text-decoration: none; }
.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}
.nav-links a {
  color: #1f1f1f;
  font-weight: 500;
}
.nav-links a:hover { color: #059669; text-decoration: none; }

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

.hero-inner { max-width: 60%; }
.hero-inner p { color: #3a3a3a; font-size: 1.05rem; }

.about-inner { max-width: 800px; }

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

.card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: 0 6px 18px rgba(5,150,105,0.08); }

.game-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.game-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}
.game-title-block { flex: 1; }
.game-title-block h3 { margin-bottom: 4px; }
.game-dev { color: #7a7a7a; font-size: 13px; }

.badge {
  display: inline-block;
  background: rgba(5,150,105,0.12);
  color: #059669;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-weight: 500;
}

.game-desc { margin-bottom: 16px; color: #3a3a3a; }

.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.shots img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.btn {
  display: inline-block;
  background: #059669;
  color: #fff;
  border-radius: 20px;
  padding: 10px 24px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  transition: opacity 0.2s;
  text-align: center;
}
.btn:hover { opacity: 0.85; text-decoration: none; color: #fff; }
.btn-block { width: 100%; padding: 12px; display: block; }

.catalog-note { font-size: 13px; color: #7a7a7a; margin-top: -6px; margin-bottom: 18px; }

/* Disclosure block */
.disclosure {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.04);
  border-radius: 8px;
  font-size: 13px;
  color: #3a3a3a;
}

/* Subscribe / Contact form */
.form-wrap { max-width: 560px; margin: 0 auto; }
.form-wrap .card { padding: 32px; }
.form-wrap p.subtitle { color: #7a7a7a; margin-bottom: 20px; }

.form-field { margin-bottom: 14px; }
.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #3a3a3a;
  font-weight: 500;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  font-family: 'Space Grotesk', sans-serif;
  background: #fff;
}
.form-field input:focus {
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(5,150,105,0.12);
}
.optional { color: #7a7a7a; font-weight: 400; font-size: 12px; }

/* Consent checkbox */
.consent-group { margin: 6px 0 16px; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #3a3a3a;
  cursor: pointer;
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 0;
}
.consent-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #b8b8b8;
  border-radius: 4px;
  margin: 1px 0 0;
  flex-shrink: 0;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.18s, background 0.18s;
  position: relative;
}
.consent-label input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(5,150,105,0.5);
  outline-offset: 2px;
}
.consent-label input[type="checkbox"]:checked {
  background: #1f1f1f;
  border-color: #1f1f1f;
}
.consent-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent-group.has-error .consent-label input[type="checkbox"] { border-color: #1f1f1f; }

/* Form error (neutral) */
.form-error {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(31,31,31,0.06);
  border-left: 3px solid #1f1f1f;
  border-radius: 4px;
  color: #1f1f1f;
  font-size: 13px;
}
.form-error[hidden] { display: none; }

/* Success message — fade + slide */
.form-success {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(31,31,31,0.05);
  border-radius: 6px;
  color: #1f1f1f;
  font-size: 14px;
  text-align: center;
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.form-success.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 32px 0;
  color: #7a7a7a;
  font-size: 14px;
}
.site-footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}
.site-footer a { color: #7a7a7a; }
.site-footer a:hover { color: #059669; }
.site-footer address {
  font-style: normal;
  margin-top: 8px;
}

/* Legal pages */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { margin-top: 28px; }
.legal-content ul { margin: 12px 0 12px 22px; }
.legal-content li { margin-bottom: 6px; }

/* FAQ */
.faq-list { margin-top: 12px; }
.faq-item {
  margin-bottom: 12px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #1f1f1f;
  padding: 14px 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 18px;
  color: #7a7a7a;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:focus-visible {
  outline: 2px solid rgba(5,150,105,0.5);
  outline-offset: -2px;
}
.faq-item .faq-body { padding: 0 18px 16px; color: #3a3a3a; }
.faq-item .faq-body p { margin-bottom: 8px; }

/* 404 */
.notfound { text-align: center; padding: 80px 0; }
.notfound h1 { font-size: 4rem; margin-bottom: 8px; color: #1f1f1f; }
.notfound .lead { color: #7a7a7a; margin-bottom: 24px; }
.notfound .links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.notfound .links a { color: #3a3a3a; }

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  .hero-inner { max-width: 100%; }
  .nav-links { gap: 14px; font-size: 14px; }
  .form-wrap .card { padding: 24px; }
  section { padding: 48px 0; }
  .game-head { flex-direction: row; }
  .cookie-banner .cookie-inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner .cookie-actions { width: 100%; }
  .cookie-banner .btn,
  .cookie-banner .btn-secondary { flex: 1; }
}
