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

body {
  background: linear-gradient(170deg, #a7f3d0, #ecfdf5);
  background-attachment: fixed;
  font-family: 'Outfit', sans-serif;
  color: #4a4a4a;
  line-height: 1.65;
  min-height: 100vh;
  font-size: 15px;
}

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

h1 { font-size: 2.25rem; line-height: 1.2; margin-bottom: 16px; }
h2 { font-size: 1.4rem; margin-bottom: 16px; }
h3 { font-size: 1.15rem; margin-bottom: 10px; }

p { margin-bottom: 12px; }

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

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

/* Cookie banner */
.cookie-banner {
  background: rgba(255,255,255,0.7);
  padding: 14px 20px;
  font-size: 14px;
}
.cookie-banner .cookie-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner button {
  background: #047857;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  transition: opacity 0.2s;
}
.cookie-banner button:hover { opacity: 0.85; }

/* Navbar */
.navbar {
  padding: 16px 0;
  background: transparent;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-logo {
  font-size: 1.5rem;
  color: #1a1a1a;
}
.site-logo:hover { text-decoration: none; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 26px;
  flex-wrap: wrap;
}
.nav-links a {
  color: #1a1a1a;
  font-weight: 500;
}
.nav-links a:hover { color: #047857; text-decoration: none; }

/* Section */
section { padding: 56px 0; }

/* Hero */
.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.hero-text { flex: 0 0 60%; }
.hero-image { flex: 0 0 40%; display: flex; justify-content: center; }
.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

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

/* Cards */
.card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); }

/* Game catalog */
.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.game-card { display: flex; flex-direction: column; }
.game-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.game-head img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}
.game-head .meta { flex: 1; }
.game-head h3 { margin-bottom: 4px; font-size: 1.1rem; }
.developer { color: #808080; font-size: 13px; }
.badge {
  display: inline-block;
  background: rgba(4,120,87,0.12);
  color: #047857;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.game-card p { margin-bottom: 14px; }
.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;
}
.btn {
  background: #047857;
  color: #fff;
  border-radius: 20px;
  padding: 10px 24px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  transition: opacity 0.2s;
  display: inline-block;
  text-align: center;
}
.btn:hover { opacity: 0.85; text-decoration: none; color: #fff; }
.btn-block { display: block; width: 100%; }
.game-card .btn { margin-top: auto; }

/* Contact form */
.form-wrap { max-width: 560px; margin: 0 auto; }
.form-wrap .card { padding: 32px; }
.form-wrap h2 { text-align: center; }
.form-sub { text-align: center; color: #808080; margin-bottom: 20px; }
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #4a4a4a;
}
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 15px;
  font-family: 'Outfit', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
input:focus {
  border-color: #047857;
  box-shadow: 0 0 0 2px rgba(4,120,87,0.13);
}
.form-success {
  margin-top: 14px;
  padding: 10px;
  border-radius: 6px;
  background: rgba(4,120,87,0.12);
  color: #047857;
  text-align: center;
  font-size: 14px;
  display: none;
}
.form-success.show { display: block; }

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

/* Footer */
footer {
  text-align: center;
  color: #808080;
  padding: 32px 0;
  font-size: 14px;
}
footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  .hero-inner { flex-direction: column; }
  .hero-text, .hero-image { flex: 1 1 100%; }
  .nav-links { gap: 16px; font-size: 14px; }
  .form-wrap .card { padding: 24px; }
  section { padding: 40px 0; }
  .shots img { height: 120px; }
}

/* === AEPD cookie bottom-sheet (accent #047857) === */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 9998;
  display: none;
  animation: cookieFadeIn 0.4s ease forwards;
}
.cookie-overlay.visible { display: block; }
.cookie-sheet {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 32px));
  background: #ffffff;
  border-top: 4px solid #047857;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  padding: 22px 24px 20px;
  z-index: 9999;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  animation: cookieSlideUp 0.45s ease forwards;
}
.cookie-sheet.pulse { animation: cookiePulse 1.6s ease-in-out; }
.cookie-icon {
  color: #047857;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.cookie-sheet.pulse .cookie-icon { animation: cookieIconShake 0.6s ease-in-out; }
.cookie-body { grid-column: 2 / -1; }
.cookie-title {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #1a1a1a;
}
.cookie-desc {
  font-size: 14px;
  color: #444;
  margin-bottom: 0;
  line-height: 1.55;
}
.cookie-desc a { color: #047857; text-decoration: underline; }
.cookie-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 20px;
  cursor: pointer;
  border: 1.5px solid #047857;
  transition: opacity 0.2s, transform 0.1s;
  min-width: 140px;
}
.cookie-btn:hover { opacity: 0.88; }
.cookie-btn:active { transform: translateY(1px); }
.cookie-btn-accept { background: #047857; color: #fff; }
.cookie-btn-reject { background: #fff; color: #047857; }
@keyframes cookieFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes cookieSlideUp {
  from { opacity: 0; transform: translate(-50%, 30px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes cookiePulse {
  0%, 100% { box-shadow: 0 18px 48px rgba(0,0,0,0.18); }
  50% { box-shadow: 0 18px 48px rgba(4,120,87,0.35), 0 0 0 4px rgba(4,120,87,0.18); }
}
@keyframes cookieIconShake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(8deg); }
  60% { transform: rotate(-5deg); }
  80% { transform: rotate(5deg); }
}
@media (max-width: 600px) {
  .cookie-sheet {
    grid-template-columns: 1fr;
    bottom: 12px;
    padding: 18px 18px 16px;
  }
  .cookie-icon { justify-content: flex-start; }
  .cookie-body { grid-column: 1; }
  .cookie-actions {
    grid-column: 1;
    flex-direction: column-reverse;
  }
  .cookie-btn { width: 100%; min-width: 0; }
}

/* === Hero / about block layout (main.html template) === */
.hero-block, .about-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.section-heading {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero-meta {
  font-size: 13px;
  color: #6b6b6b;
  margin-top: 10px;
}

/* === Disclosure strip === */
.disclosure-strip {
  background: rgba(4,120,87,0.07);
  border-left: 3px solid #047857;
  padding: 12px 16px;
  margin: 24px 0;
  font-size: 13px;
  color: #4a4a4a;
  border-radius: 4px;
}
.footer-disclosure {
  margin-top: 14px;
  font-size: 12px;
  color: #808080;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* === Subscribe card (newsletter w/ consent) === */
.subscribe-card {
  max-width: 560px;
  margin: 24px auto 0;
  padding: 32px;
  text-align: left;
}
.subscribe-card h2 { text-align: center; }
.subscribe-card .subtitle { text-align: center; color: #808080; margin-bottom: 22px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #4a4a4a;
}
.optional { color: #999; font-size: 12px; font-weight: 400; }
.form-microcopy {
  font-size: 13px;
  color: #5a5a5a;
  margin: 8px 0 14px;
  line-height: 1.55;
}
.consent-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 4px;
}
.consent-group input[type="checkbox"] {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #047857;
  cursor: pointer;
}
.consent-group label {
  font-size: 13px;
  color: #4a4a4a;
  line-height: 1.5;
  margin: 0;
  cursor: pointer;
}
.consent-group label a { color: #047857; text-decoration: underline; }
.consent-error {
  display: none;
  margin: 6px 0 0 26px;
  padding: 6px 10px;
  font-size: 12px;
  color: #1a1a1a;
  background: rgba(4,120,87,0.12);
  border-left: 2px solid #047857;
  border-radius: 4px;
}
.consent-error.show { display: block; }
.submit-btn {
  width: 100%;
  padding: 12px;
  background: #047857;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: opacity 0.2s;
  margin-top: 6px;
}
.submit-btn:hover { opacity: 0.85; }

/* === Form success (template override) === */
.form-success {
  display: none;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 18px 20px;
  background: rgba(4,120,87,0.10);
  color: #1a1a1a;
  border-left: 3px solid #047857;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-align: left;
}
.form-success.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.success-icon { color: #047857; flex-shrink: 0; margin-top: 2px; }
.success-title { margin-bottom: 4px; }
.form-success p { margin-bottom: 4px; }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 32px auto 0; }
.faq-item {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: 'Fraunces', serif;
  color: #1a1a1a;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #047857;
  font-size: 1.4rem;
  font-weight: 400;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin: 12px 0 0; font-size: 15px; color: #4a4a4a; }
.faq-item p a { color: #047857; text-decoration: underline; }

/* === Page intro / content-block (about, methodology, 404) === */
.page-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.page-updated {
  text-align: center;
  font-size: 13px;
  color: #808080;
  margin-top: 22px;
  font-style: italic;
}
.content-block {
  max-width: 800px;
  margin: 32px auto 0;
}
.content-block .card { margin-bottom: 20px; }
.content-block ul { margin: 12px 0 14px 22px; }
.content-block li { margin-bottom: 6px; }

/* === Footer enhancements === */
footer .footer-links a { color: #047857; }

