:root {
  --brand: #e0244f;
  --brand-deep: #8a0c3c;
  --ink: #1d1b22;
  --ink-soft: #5b5762;
  --bg: #fbf8f5;
  --surface: #ffffff;
  --line: #ece6e1;
  --live: #1f9d55;
  --soon: #c27c0e;
  --beta: #2563eb;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(29, 27, 34, 0.08);
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3eef0;
    --ink-soft: #b5adb3;
    --bg: #141217;
    --surface: #1e1b22;
    --line: #2e2a33;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

/* Bilingual content: only the active language is shown */
html[data-lang="en"] [data-l="pt"],
html[data-lang="pt"] [data-l="en"] { display: none !important; }

h1, h2, h3, .brand-name {
  font-family: "Fredoka", "Nunito", sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

a { color: var(--brand); }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand img { width: 38px; height: 38px; }

.brand-name { font-size: 1.3rem; margin: 0; font-weight: 600; }

.brand-name span { color: var(--brand); }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a:hover { color: var(--brand); }

.lang-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}

.lang-toggle:hover { border-color: var(--brand); }

/* Hero */
.hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 45%),
    radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--brand-deep) 14%, transparent), transparent 40%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }

.hero p {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-logo {
  justify-self: center;
  width: min(300px, 70vw);
  filter: drop-shadow(0 18px 30px rgba(138, 12, 60, 0.25));
}

.btn {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.btn:hover { background: var(--brand-deep); }

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

.section-title { font-size: 2.1rem; }

.section-lead {
  color: var(--ink-soft);
  margin: 0 0 34px;
  max-width: 40em;
}

/* Games */
.games {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.game {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.game-media {
  aspect-ratio: 2 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-media img.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game:hover .game-media img.cover { transform: scale(1.03); }

.game-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.app-icon {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.game-title h3 { margin: 0; }

.game-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-body h3 { font-size: 1.5rem; margin-bottom: 6px; }

.game-body p { margin: 0 0 18px; color: var(--ink-soft); }

.game-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status.live { color: var(--live); background: color-mix(in srgb, var(--live) 14%, transparent); }
.status.soon { color: var(--soon); background: color-mix(in srgb, var(--soon) 16%, transparent); }
.status.beta { color: var(--beta); background: color-mix(in srgb, var(--beta) 14%, transparent); }

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
}

.store-link svg { width: 18px; height: 18px; }

/* About / contact */
.about {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-card a.mail {
  font-weight: 800;
  font-size: 1.15rem;
  word-break: break-all;
}

/* Footer */
.site-footer {
  padding: 34px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a { color: var(--ink-soft); }

/* Legal pages */
.legal {
  max-width: 780px;
  padding: 60px 20px 80px;
}

.legal h1 { font-size: 2.4rem; }

.legal h2 { font-size: 1.35rem; margin-top: 2em; }

.legal .updated { color: var(--ink-soft); }

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 12px 0;
}

.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.legal th { font-family: "Fredoka", sans-serif; font-weight: 600; }

.table-scroll { overflow-x: auto; }

@media (max-width: 820px) {
  .hero { padding: 50px 0 40px; }
  .hero .wrap, .about .wrap { grid-template-columns: 1fr; }
  .hero-logo { order: -1; width: 180px; }
  .games { grid-template-columns: 1fr; }
  .nav a.hide-sm { display: none; }
  section { padding: 50px 0; }
}
