:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #1c2433;
  --ink-soft: #5a6678;
  --brand: #2f9e6e;
  --brand-dark: #237a55;
  --accent: #f4a93d;
  --ring: rgba(47, 158, 110, 0.18);
  --radius: 18px;
  --shadow: 0 8px 30px rgba(28, 36, 51, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 249, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 36, 51, 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 36px; height: 36px; border-radius: 9px; }

.site-nav { display: flex; gap: 6px; }

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover { background: var(--ring); color: var(--brand-dark); }

/* Hero */
.hero {
  padding: 84px 0 64px;
  text-align: center;
  background:
    radial-gradient(700px 360px at 15% 0%, rgba(47, 158, 110, 0.12), transparent 65%),
    radial-gradient(700px 360px at 85% 10%, rgba(244, 169, 61, 0.14), transparent 65%);
}

.hero img.logo {
  width: 168px;
  height: 168px;
  margin: 0 auto 28px;
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

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

.hero p {
  max-width: 560px;
  margin: 14px auto 32px;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(47, 158, 110, 0.35);
  transition: transform 0.15s, background 0.2s;
}

.btn:hover { background: var(--brand-dark); transform: translateY(-2px); }

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

.section-head { text-align: center; margin-bottom: 44px; }

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.section-head p { color: var(--ink-soft); margin-top: 8px; }

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

@media (max-width: 980px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .games-grid { grid-template-columns: 1fr; }
}

.game-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 38px rgba(28, 36, 51, 0.13);
}

.game-card > a:first-child { display: block; }

.game-card img {
  width: 108px;
  height: 108px;
  margin: 0 auto 18px;
  border-radius: 24px;
  box-shadow: 0 4px 14px rgba(28, 36, 51, 0.14);
}

.game-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }

.game-card p {
  color: var(--ink-soft);
  font-size: 0.93rem;
  min-height: 3.4em;
  margin-bottom: 18px;
}

.game-card .btn {
  padding: 10px 24px;
  font-size: 0.92rem;
  box-shadow: none;
}

.platforms {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 700;
}

/* About */
.about { background: var(--surface); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: center;
}

.about-inner img {
  width: 100%;
  max-width: 280px;
  border-radius: 32px;
  box-shadow: var(--shadow);
  margin: 0 auto;
}

.about-inner h2 { font-size: 1.9rem; font-weight: 900; margin-bottom: 16px; }

.about-inner p { color: var(--ink-soft); margin-bottom: 14px; }

.about-inner .tagline { font-weight: 800; color: var(--brand-dark); font-size: 1.05rem; }

@media (max-width: 720px) {
  .about-inner { grid-template-columns: 1fr; text-align: center; }
}

/* Contact */
.contact-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: var(--shadow);
}

.contact-card label {
  display: block;
  font-weight: 800;
  font-size: 0.9rem;
  margin: 18px 0 6px;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(28, 36, 51, 0.14);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.97rem;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-card input:focus,
.contact-card textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}

.contact-card .btn { margin-top: 24px; width: 100%; justify-content: center; }

.contact-email {
  text-align: center;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(28, 36, 51, 0.08);
  padding: 34px 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer a { font-weight: 700; }

/* Game detail pages */
.game-hero {
  padding: 64px 0 48px;
  text-align: center;
  background:
    radial-gradient(700px 360px at 15% 0%, rgba(47, 158, 110, 0.12), transparent 65%),
    radial-gradient(700px 360px at 85% 10%, rgba(244, 169, 61, 0.14), transparent 65%);
}

.game-hero img.icon {
  width: 128px;
  height: 128px;
  margin: 0 auto 22px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.game-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.game-hero p.tag {
  max-width: 520px;
  margin: 10px auto 26px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 24px 24px;
  max-width: 1060px;
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.shots img {
  height: 380px;
  width: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
  scroll-snap-align: center;
  flex-shrink: 0;
}

.game-desc {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.game-desc h2 { font-size: 1.3rem; font-weight: 800; margin: 26px 0 10px; }
.game-desc p { color: var(--ink-soft); margin-bottom: 14px; }
.game-desc ul { padding-left: 22px; margin: 8px 0 14px; }
.game-desc li { color: var(--ink-soft); margin-bottom: 6px; }

.game-cta {
  text-align: center;
  padding-bottom: 72px;
}

.back-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.back-link:hover { color: var(--brand-dark); }

.card-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--brand-dark);
  text-decoration: none;
}

.card-more:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .shots img { height: 300px; }
}

/* Legal page */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: 2.1rem; font-weight: 900; margin-bottom: 4px; }
.legal .effective { color: var(--ink-soft); margin-bottom: 32px; font-weight: 700; }
.legal h2 { font-size: 1.25rem; font-weight: 800; margin: 30px 0 10px; }
.legal h3 { font-size: 1.05rem; font-weight: 800; margin: 18px 0 6px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 22px; margin: 8px 0; }

@media (max-width: 620px) {
  .brand span { display: none; }
  .site-header .wrap { padding: 0 12px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 8px 8px; font-size: 0.86rem; }
  .hero { padding: 56px 0 44px; }
  .hero img.logo { width: 132px; height: 132px; }
  section { padding: 52px 0; }
}
