/* ==========================================================================
   MobMonks — design system
   Cozy pastel "game map" theme. Mobile-first. No framework dependency.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Jersey+10&display=swap");

:root {
  --bg: #a8dcc6;
  --bg-soft: #bee7d3;
  --surface: #fff8ef;
  --surface-2: #f6d7c3;
  --peach: #f6d7c3;
  --ink: #1e4b52;
  --border: #1e4b52;
  --border-soft: rgba(30, 75, 82, 0.25);
  --text: #1e4b52;
  --text-dim: #3a6b6d;
  --text-faint: #5e8b87;
  --accent: #f4732c;
  --accent-2: #ff5b04;
  --accent-deep: #d8541a;
  --teal: #2e9e8f;
  --yellow: #ffd95e;
  --blue: #a6deec;
  --brown: #4a2313;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --container: 1180px;
  --shadow: 0 6px 0 rgba(30, 75, 82, 0.9);
  --shadow-soft: 0 4px 0 rgba(30, 75, 82, 0.35);
  --font: "Jersey 10", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* meadow speckles + flowers, like the game-map art */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle 4px at 30px 40px, rgba(255, 255, 255, 0.55) 100%, transparent 0),
    radial-gradient(circle 3px at 140px 120px, rgba(255, 255, 255, 0.4) 100%, transparent 0),
    radial-gradient(circle 5px at 230px 60px, rgba(255, 217, 94, 0.75) 100%, transparent 0),
    radial-gradient(circle 3px at 90px 210px, rgba(255, 255, 255, 0.45) 100%, transparent 0),
    radial-gradient(circle 4px at 200px 240px, rgba(46, 158, 143, 0.35) 100%, transparent 0),
    radial-gradient(circle 3px at 300px 170px, rgba(255, 255, 255, 0.5) 100%, transparent 0);
  background-size: 340px 300px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.5px;
}

p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.55;
  font-size: 19px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 14px;
  font-family: var(--font);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.5px;
  border: 3px solid var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 5px 0 var(--ink);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--ink);
}

.btn-primary {
  background: var(--accent);
  color: #fff8ef;
}

.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--ink);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--ink);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  border-bottom: 3px solid var(--ink);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.5px;
}

.brand .brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
}

.brand-word {
  color: var(--brown);
  text-transform: uppercase;
}

.brand-word b {
  color: var(--accent-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-dim);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: var(--peach);
}

.nav-links .btn {
  margin-left: 8px;
  padding: 8px 18px;
  box-shadow: 0 4px 0 var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 3px solid var(--ink);
  background: var(--surface);
  box-shadow: 0 4px 0 var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

.nav-toggle.active span {
  background: transparent;
}

.nav-toggle.active span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink);
}

.hero h1 {
  font-size: clamp(42px, 6.5vw, 76px);
  margin-top: 20px;
  margin-bottom: 18px;
  color: var(--ink);
  text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.55);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-2);
}

.hero p.lead {
  font-size: 21px;
  max-width: 52ch;
  margin-bottom: 30px;
}

.hero-art {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hero-art a {
  border-radius: var(--radius);
  transition: transform 0.2s ease;
}

.hero-art a:nth-child(odd) {
  transform: rotate(-2deg);
}

.hero-art a:nth-child(even) {
  transform: rotate(2deg);
}

.hero-art a:hover {
  transform: rotate(0deg) translateY(-4px);
}

.hero-art img {
  border-radius: var(--radius);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  aspect-ratio: 748/896;
  object-fit: cover;
}

.stat-row {
  display: flex;
  gap: 28px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.stat-row .stat b {
  display: block;
  font-size: 34px;
  font-weight: 400;
  color: var(--accent-2);
}

.stat-row .stat span {
  font-size: 16px;
  color: var(--text-faint);
}

/* ---------- Sections ---------- */

.section {
  padding: 70px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-top: 12px;
  color: var(--ink);
}

.section-head p {
  max-width: 60ch;
  margin-top: 10px;
}

/* ---------- Game cards ---------- */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}

.game-card {
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: var(--shadow);
}

.game-card .thumb {
  aspect-ratio: 748/896;
  overflow: hidden;
  position: relative;
  border-bottom: 3px solid var(--ink);
}

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

.game-card:hover .thumb img {
  transform: scale(1.05);
}

.game-card .status-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: var(--yellow);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink);
}

.game-card .body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--peach);
  border: 2px solid var(--border-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

.game-card h3 {
  font-size: 28px;
  color: var(--ink);
}

.game-card .tagline {
  font-size: 18px;
  flex: 1;
}

.game-card .card-cta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 400;
  font-size: 19px;
  color: var(--accent-2);
}

.game-card .card-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.game-card:hover .card-cta svg {
  transform: translateX(4px);
}

/* ---------- Game detail page ---------- */

.game-hero {
  position: relative;
  padding: 48px 0 46px;
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  background: var(--bg-soft);
}

.game-hero .backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.16;
  filter: blur(6px) saturate(1.1);
  transform: scale(1.08);
}

.game-hero .backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-hero .backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(190, 231, 211, 0.35), var(--bg-soft) 96%);
}

.game-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  font-size: 17px;
  color: var(--text-faint);
  margin-bottom: 22px;
}

.breadcrumb a {
  color: var(--text-dim);
}

.breadcrumb a:hover {
  color: var(--accent-2);
}

.game-hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.game-hero-art {
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
}

.game-hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  margin: 14px 0 16px;
  color: var(--ink);
}

.platform-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.meta-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 17px;
  color: var(--text-faint);
}

.meta-row strong {
  color: var(--text-dim);
}

/* Feature list */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature-item {
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-item svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--teal);
  margin-top: 2px;
}

.feature-item h4 {
  font-size: 21px;
  margin-bottom: 4px;
  color: var(--ink);
}

.feature-item p {
  font-size: 17px;
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-grid img {
  border-radius: var(--radius-sm);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 600/338;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.03) rotate(-1deg);
}

/* Prose (about text) */

.prose p + p {
  margin-top: 14px;
}

.prose {
  max-width: 72ch;
}

/* ---------- Studio / about ---------- */

.about-panel {
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 44px;
  display: grid;
  gap: 30px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.about-panel h2 {
  color: var(--ink);
}

.about-panel .stat-row {
  margin-top: 22px;
}

.mini-mark {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
}

/* ---------- Contact / CTA ---------- */

.cta-panel {
  background: var(--peach);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 46px;
  text-align: center;
}

.cta-panel h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 14px;
  color: var(--ink);
}

.cta-panel p {
  max-width: 56ch;
  margin: 0 auto 26px;
}

.cta-panel .btn-row {
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 3px solid var(--ink);
  background: var(--ink);
  color: #d9efe6;
  padding: 50px 0 30px;
  margin-top: 40px;
}

.site-footer p {
  color: #a9cfc4;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.4fr 1fr 1fr;
  margin-bottom: 34px;
}

.footer-grid .brand {
  margin-bottom: 12px;
}

.footer-grid .brand-word {
  color: #fff8ef;
}

.footer-grid .brand-word b {
  color: var(--accent);
}

.footer-grid p {
  font-size: 17px;
  max-width: 40ch;
}

.footer-col h5 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--yellow);
  margin: 0 0 14px;
}

.footer-col li + li {
  margin-top: 10px;
}

.footer-col a {
  font-size: 18px;
  color: #d9efe6;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 248, 239, 0.2);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 16px;
  color: #a9cfc4;
}

.footer-bottom a {
  color: #a9cfc4;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ---------- Page heading (privacy / 404) ---------- */

.page-heading {
  padding: 60px 0 30px;
  border-bottom: 3px solid var(--ink);
  background: var(--bg-soft);
}

.page-heading h1 {
  font-size: clamp(30px, 5vw, 44px);
  color: var(--ink);
}

.page-heading p {
  margin-top: 10px;
}

/* ---------- Privacy policy typography ---------- */

.policy {
  padding: 46px 0 90px;
  max-width: 820px;
  margin: 0 auto;
}

.policy h2 {
  font-size: 24px;
  color: var(--ink);
  margin-top: 42px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-soft);
}

.policy h2:first-child {
  margin-top: 0;
}

.policy h3 {
  font-size: 19px;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--accent-deep);
}

.policy h4 {
  font-size: 16px;
  margin-top: 18px;
  margin-bottom: 8px;
}

.policy p {
  margin-bottom: 12px;
}

.policy ul {
  margin: 0 0 14px;
  padding-left: 20px;
  list-style: disc;
}

.policy ul li {
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 6px;
}

.policy a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy address {
  font-style: normal;
  color: var(--text-dim);
  line-height: 1.8;
}

.policy strong {
  color: var(--ink);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 18px 0 26px;
}

.model-card {
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.model-card .badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.model-card p {
  font-size: 14px;
  margin: 0;
}

.lang-switch {
  margin: 26px 0 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.lang-switch summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dim);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-switch summary svg {
  width: 15px;
  height: 15px;
}

.lang-switch[open] summary {
  margin-bottom: 12px;
}

.lang-switch .lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 6px 12px;
}

.lang-switch .lang-grid a {
  font-size: 14px;
  color: var(--text-dim);
  padding: 4px 0;
}

.lang-switch .lang-grid a:hover,
.lang-switch .lang-grid a.current {
  color: var(--accent-deep);
}

/* ---------- 404 ---------- */

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-page .code {
  font-size: 110px;
  font-weight: 400;
  color: var(--accent-2);
  text-shadow: 4px 4px 0 rgba(255, 255, 255, 0.7);
  line-height: 1;
}

.error-page h1 {
  font-size: 28px;
  margin: 14px 0 12px;
  color: var(--ink);
}

.error-page p {
  margin-bottom: 26px;
}

/* ---------- Responsive ---------- */

@media (min-width: 720px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .game-hero-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

@media (max-width: 900px) {
  .about-panel {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 3px solid var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    gap: 4px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .nav-links .btn {
    margin: 8px 2px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-panel {
    padding: 30px 22px;
  }
}
