:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-soft: rgba(15,118,110,0.10);
}

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

body {
  background: linear-gradient(170deg, #ccfbf1, #f0fdfa);
  background-attachment: fixed;
  font-family: 'IBM Plex Sans', sans-serif;
  color: #333;
  line-height: 1.7;
  font-size: 17px;
  min-height: 100vh;
}

h1, h2, h3, .site-logo {
  font-family: 'Crimson Pro', serif;
  color: #111;
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.6rem; margin-bottom: 18px; }
h2 { font-size: 1.6rem; margin-bottom: 16px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; }

p { margin-bottom: 14px; }

a { color: var(--brand-dark); 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; }

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

section { padding: 48px 0; }

/* Hero */
.hero { text-align: center; padding: 72px 0; }
.hero-inner { max-width: 760px; margin: 0 auto; }
.disclosure {
  font-size: 14px; color: #555;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--brand-soft);
  border-radius: 6px;
  display: inline-block;
}

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

.card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 24px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 6px 24px var(--brand-soft); }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.game-card { display: flex; flex-direction: column; }
.game-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.game-icon { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.game-meta { display: flex; flex-direction: column; }
.game-title { font-size: 1.15rem; margin-bottom: 4px; }
.developer, .game-dev { color: #888; font-size: 14px; }
.badge {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
  align-self: flex-start;
}
.game-desc { font-size: 15px; margin-bottom: 14px; }
.screens, .screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.screens img, .screenshots img {
  width: 100%; height: 160px; object-fit: cover; border-radius: 6px;
}
.affiliate-note { font-size: 14px; color: #666; margin-top: 6px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  padding: 10px 24px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  transition: opacity 0.2s, background 0.2s, transform 0.1s;
  text-align: center;
  text-decoration: none;
}
.btn:hover { opacity: 0.92; color: #fff; text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn-block, .btn-full { width: 100%; display: block; }
.btn-store { margin-top: auto; }
.btn-secondary {
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid var(--brand);
}
.btn-secondary:hover { background: var(--brand-soft); color: var(--brand-dark); }

/* Subscribe */
.subscribe-wrap, .subscribe-card { max-width: 560px; margin: 0 auto; }
.subscribe-card, .subscribe-wrap .card { padding: 32px; }
.subscribe-card h2, .subscribe-wrap h2 { text-align: center; }
.subscribe-sub, .subtitle { text-align: center; color: #555; margin-bottom: 20px; }

.form-group { margin-bottom: 14px; }
.optional { color: #999; font-weight: normal; font-size: 13px; }
label { display: block; font-size: 14px; margin-bottom: 6px; color: #333; }
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: 'IBM Plex Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft);
}
.form-note {
  font-size: 13px;
  color: #666;
  background: var(--brand-soft);
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.consent-field { margin: 16px 0; }
.consent {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  font-size: 14px; color: #333;
}
.consent input[type="checkbox"] {
  margin-top: 4px; width: 16px; height: 16px; flex-shrink: 0;
  accent-color: var(--brand);
}
.consent span { line-height: 1.5; }
.form-error {
  margin: 10px 0;
  padding: 10px 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  font-size: 14px;
}
.success-msg {
  margin-top: 18px;
  padding: 16px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 8px;
  text-align: center;
  font-size: 15px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.success-msg.show { opacity: 1; transform: translateY(0); }
.success-msg.hidden { display: none; }
.success-msg strong { display: block; margin-bottom: 6px; }
.success-msg p { margin: 0; font-size: 14px; }

/* Cookie sheet (bottom-sheet) */
.cookie-sheet {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: flex-end;
  pointer-events: none;
}
.cookie-sheet[hidden] { display: none; }
.cookie-backdrop {
  position: absolute; inset: 0;
  background: rgba(20,10,30,0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.cookie-sheet.show .cookie-backdrop { opacity: 1; }
.cookie-content {
  position: relative; width: 100%; max-width: 720px;
  margin: 0 auto; background: #fff;
  border-top-left-radius: 16px; border-top-right-radius: 16px;
  padding: 22px 24px 24px;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.18);
  pointer-events: auto;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(.22,.61,.36,1);
}
.cookie-sheet.show .cookie-content { transform: translateY(0); }
.cookie-content h2 { font-size: 1.15rem; margin-bottom: 8px; }
.cookie-content p { font-size: 14px; color: #444; margin-bottom: 14px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-actions .btn { flex: 1 1 160px; min-width: 140px; }

/* Footer */
footer { text-align: center; color: #555; padding: 32px 0; font-size: 14px; }
footer .foot-links, footer .footer-links {
  display: flex; justify-content: center; gap: 16px;
  margin: 12px 0; flex-wrap: wrap;
}
footer a { color: var(--brand-dark); }
footer a:hover { color: var(--brand); text-decoration: underline; }
.address { margin-top: 4px; color: #555; }

/* Legal & info content */
.legal-content, .info-content { max-width: 800px; margin: 0 auto; }
.legal-content h2, .info-content h2 { margin-top: 28px; }
.legal-content ul, .info-content ul { margin: 0 0 14px 22px; }
.legal-content li, .info-content li { margin-bottom: 6px; }
.info-content details {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.info-content details summary {
  font-weight: 600; cursor: pointer;
  font-family: 'Crimson Pro', serif; font-size: 1.05rem; color: #111;
  list-style: none;
}
.info-content details summary::-webkit-details-marker { display: none; }
.info-content details summary::after {
  content: '+'; float: right; color: var(--brand);
  font-weight: 700; margin-left: 12px;
}
.info-content details[open] summary::after { content: '−'; }
.info-content details p { margin: 10px 0 0; font-size: 15px; }

.not-found { text-align: center; padding: 80px 0; }
.not-found h1 { font-size: 3rem; }
.not-found .actions { margin-top: 20px; }

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  body { font-size: 16px; }
  .hero { padding: 52px 0; }
  section { padding: 36px 0; }
  .navbar .inner { flex-direction: column; align-items: flex-start; }
  .nav-links { gap: 14px; }
  .subscribe-wrap .card, .subscribe-card { padding: 24px; }
  .screens img, .screenshots img { height: 130px; }
  .cookie-content { padding: 18px 16px; }
  .cookie-actions .btn { flex: 1 1 100%; }
}
