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

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

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

h1 { font-size: 2.75rem; 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: #a21caf; 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: 24px;
  flex-wrap: wrap;
}
.nav-links a { color: #333; font-weight: 500; }
.nav-links a:hover { color: #a21caf; text-decoration: none; }

/* Section spacing */
section { padding: 48px 0; }

/* Hero */
.hero {
  text-align: center;
  padding: 80px 0;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.disclosure {
  font-size: 14px;
  color: #555;
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(162,28,175,0.06);
  border-radius: 6px;
  display: inline-block;
}

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

/* Cards */
.card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 6px 24px rgba(162,28,175,0.08); }

/* Catalog grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 24px;
}
.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 { color: #888; font-size: 14px; }
.badge {
  display: inline-block;
  background: rgba(162,28,175,0.1);
  color: #a21caf;
  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 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.screens 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: #a21caf;
  color: #fff;
  border-radius: 6px;
  padding: 10px 24px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: 'Outfit', 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; text-decoration: none; color: #fff; }
.btn:focus-visible { outline: 2px solid #6b21a8; outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn-full { width: 100%; display: block; }
.btn-store { margin-top: auto; }
.btn-secondary {
  background: #ede9fe;
  color: #6b21a8;
  border: 1px solid #d8b4fe;
}
.btn-secondary:hover { background: #ddd6fe; color: #6b21a8; }

/* Subscribe form */
.subscribe-wrap { max-width: 560px; margin: 0 auto; }
.subscribe-wrap .card { padding: 32px; }
.subscribe-wrap h2 { text-align: center; }
.subscribe-sub { 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: 'Outfit', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
input:focus {
  border-color: #a21caf;
  box-shadow: 0 0 0 2px rgba(162,28,175,0.13);
}
.form-note {
  font-size: 13px;
  color: #666;
  background: rgba(162,28,175,0.04);
  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: #a21caf;
}
.consent span { line-height: 1.5; }
.form-error {
  margin: 10px 0;
  padding: 10px 14px;
  background: rgba(162,28,175,0.08);
  color: #6b21a8;
  border-left: 3px solid #a21caf;
  border-radius: 6px;
  font-size: 14px;
}
.success-msg {
  margin-top: 18px;
  padding: 16px;
  background: rgba(162,28,175,0.08);
  color: #6b21a8;
  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 */
.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(70,20,100,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 {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 12px 0;
  flex-wrap: wrap;
}
footer a { color: #6b21a8; }
footer a:hover { color: #a21caf; 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: 'Fraunces', 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: #a21caf;
  font-weight: 700;
  margin-left: 12px;
  transition: transform 0.2s;
}
.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: 56px 0; }
  section { padding: 36px 0; }
  .navbar .inner { flex-direction: column; align-items: flex-start; }
  .nav-links { gap: 14px; }
  .subscribe-wrap .card { padding: 24px; }
  .screens img { height: 130px; }
  .cookie-content { padding: 18px 16px; }
  .cookie-actions .btn { flex: 1 1 100%; }
}
