/* ==========================================================================
   Mobiza Games — Stylesheet
   ========================================================================== */

/* ------------------------------------------------------------------ Tokens */
:root {
  --black: #0b0b0b;
  --ink: #171717;
  --gray-900: #252525;
  --gray-700: #5f5f5f;
  --gray-500: #8c8c8c;
  --gray-300: #d9d9d9;
  --gray-200: #e9e9e9;
  --gray-100: #f5f5f5;
  --white: #ffffff;

  --container: 1320px;
  --header-height: 88px;
  --section-space: clamp(88px, 9vw, 148px);
  --radius-xl: 42px;
  --radius-lg: 30px;
  --transition: 220ms cubic-bezier(.2, .75, .25, 1);
}

/* ------------------------------------------------------------------ Reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
  background: var(--white);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img, picture, svg { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

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

button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 4px;
}

::selection {
  color: var(--white);
  background: var(--black);
}

/* ------------------------------------------------------------- Utilities */
.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--black);
  border-radius: 999px;
  transform: translateY(-150%);
  transition: transform var(--transition);
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.section-kicker {
  margin: 0 0 20px;
  color: var(--gray-700);
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--black);
  font-family: "Poppins", sans-serif;
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.12;
}

/* ---------------------------------------------------------------- Header */
.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--container));
  height: 100%;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: clamp(170px, 15vw, 214px);
  height: auto;
  aspect-ratio: 80 / 17;
}

/* TR logo variant is wider (707x121) than the EN tech logo (574x121);
   override the aspect ratio so it keeps its natural proportions. */
.brand img.lang-tr {
  aspect-ratio: 707 / 121;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
}

/* Right-side cluster grouping nav links, language switcher and hamburger.
   Keeps `.nav-shell`'s space-between layout (brand | .nav-right) intact so
   the nav links stay in their original right-aligned position. */
.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.4vw, 20px);
}

/* Extra breathing room between the last nav link (e.g. Contact) and the
   language switcher, so the switcher reads as a separate control. */
.nav-right .desktop-nav { margin-right: clamp(18px, 2vw, 32px); }

.nav-link {
  position: relative;
  padding-block: 12px;
  color: var(--gray-700);
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--black);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.is-active { color: var(--black); }

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* External nav link (opens in a new tab) */
.nav-link--external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link-icon {
  width: 14px;
  height: 14px;
  color: currentColor;
}

.mobile-nav-link .nav-link-icon { width: 18px; height: 18px; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--black);
  background: transparent;
  border: 1px solid var(--gray-300);
  border-radius: 50%;
  cursor: pointer;
}

/* Header back button — appears on legal/sub pages, same height as menu-toggle */
.header-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  color: var(--black);
  background: transparent;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.header-back:hover {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.header-back svg { width: 16px; height: 16px; }

/* Group of right-aligned header actions on sub-pages (lang switch + back). */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Language switcher — white pill trigger (code + caret), downward dropdown
   listing each language code. No flags, text-only minimalist style. */
.lang-switch { position: relative; }

/* Text-style language switcher — matches the navbar links: no pill / no
   border, just an animated underline on hover. */
.lang-switch-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 12px;
  color: var(--black);
  background: transparent;
  border: 0;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition);
}

/* Underline that grows from the left on hover, mirroring .nav-link::after. */
.lang-switch-btn::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--black);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.lang-switch-btn:hover::after,
.lang-switch.is-open .lang-switch-btn::after {
  transform: scaleX(1);
  transform-origin: left;
}

.lang-switch-code { line-height: 1; }

/* Flag icons inside the language switcher (button + dropdown). Rendered as
   inline SVG so they look identical on every OS (Windows does not draw flag
   emoji). Sized to match the uppercase text height of the control. */
.lang-switch .flag {
  width: 22px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 3px;
  display: inline-block;
  overflow: hidden;
}

.lang-switch-caret {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.lang-switch.is-open .lang-switch-caret { transform: rotate(180deg); }

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1100;
  display: block;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}

.lang-switch.is-open .lang-switch-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switch-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  color: var(--gray-700);
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}

.lang-switch-menu a:hover { background: var(--gray-100); color: var(--black); }
.lang-switch-menu a[aria-current="true"] { color: var(--black); background: var(--gray-100); }

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  position: absolute;
  display: block;
  width: 18px;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 999px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle-lines { position: relative; margin-inline: auto; }
.menu-toggle-lines::before { transform: translateY(-6px); }
.menu-toggle-lines::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { transform: rotate(-45deg); }

/* ----------------------------------------------------------- Mobile menu */
.mobile-nav {
  position: fixed;
  z-index: 999;
  inset: var(--header-height) auto 0 0;
  display: none;
  width: min(76vw, 260px);
  padding: 22px 22px max(22px, env(safe-area-inset-bottom));
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.nav-overlay {
  position: fixed;
  z-index: 998;
  inset: var(--header-height) 0 0;
  display: none;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  cursor: pointer;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: grid;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  color: var(--black);
  border-bottom: 1px solid var(--gray-200);
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
}

/* ------------------------------------------------------------------ Hero */
main { padding-top: var(--header-height); }

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--black);
  scroll-margin-top: var(--header-height);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, .30) 0%, rgba(0, 0, 0, .45) 100%);
  pointer-events: none;
}

.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-poster img,
.hero-video {
  object-fit: cover;
  object-position: center;
}

.hero-video {
  opacity: 0;
  transition: opacity 500ms ease;
}

.hero-video.is-ready { opacity: 1; }

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 880px;
  padding: 24px;
  margin-inline: auto;
  text-align: center;
  color: var(--white);
}

.hero-kicker {
  margin: 0;
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.hero-subtitle {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 400;
  line-height: 1.5;
}

/* ----------------------------------------------------------------- About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(64px, 8vw, 128px);
  align-items: center;
}

.about-media {
  position: relative;
  margin-inline: auto;
  max-width: 520px;
  overflow: hidden;
  border-radius: 24px;
}

.about-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.about-copy .section-title { max-width: 650px; }

.about-lead {
  max-width: 650px;
  margin: 34px 0 0;
  color: var(--gray-900);
  font-size: clamp(19px, 1.65vw, 24px);
  line-height: 1.65;
}

.about-copy p:not(.about-lead) {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--gray-700);
  font-size: 17px;
}

/* ----------------------------------------------------------------- Games */
.games-section {
  background: var(--gray-100);
  border-block: 1px solid var(--gray-200);
}

/* ----------------------------------------------------------- Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 2.6vw, 40px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.service-icon {
  display: grid;
  place-items: center;
  width: clamp(48px, 4.4vw, 60px);
  height: clamp(48px, 4.4vw, 60px);
  margin-bottom: clamp(18px, 2vw, 26px);
  color: var(--white);
  background: var(--black);
  border-radius: 18px;
}

.service-icon svg {
  width: 55%;
  height: 55%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-title {
  margin: 0 0 12px;
  color: var(--black);
  font-family: "Poppins", sans-serif;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.service-description {
  margin: 0;
  color: var(--gray-700);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.7;
}

/* --------------------------------------------------------- References */
.references-section {
  background: var(--gray-100);
  border-block: 1px solid var(--gray-200);
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}

.reference-card {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.8vw, 24px);
  padding: clamp(20px, 2.2vw, 32px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color var(--transition);
}

.reference-card:hover {
  border-color: var(--gray-300);
}

.reference-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(76px, 7vw, 104px);
  height: clamp(76px, 7vw, 104px);
  padding: 8px;
  box-sizing: border-box;
}

.reference-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Sibel Dursun (Otizm ve Lösemi) — dikey logo: küçült, ortala */
.reference-logo img[src*="ref-otizm-velosemi"] {
  max-height: 68%;
}

.reference-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.reference-name {
  margin: 0;
  color: var(--black);
  font-family: "Poppins", sans-serif;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 600;
  line-height: 1.3;
}

.reference-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-700);
  font-family: "Poppins", sans-serif;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 600;
  letter-spacing: -.01em;
}

.reference-link svg { width: 16px; height: 16px; }

.games-heading {
  margin-bottom: clamp(46px, 6vw, 82px);
  text-align: center;
}

.games-heading .section-kicker { margin-bottom: 14px; }

.game-stack { display: grid; gap: clamp(26px, 3vw, 42px); }

.game-card {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  min-height: 540px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
}

.game-card--reverse .game-visual { order: 2; }
.game-card--reverse .game-content { order: 1; }

.game-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
  overflow: hidden;
  background: var(--white);
}

.game-icon {
  position: relative;
  z-index: 2;
  width: clamp(220px, 24vw, 330px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 23%;
  border: 1px solid var(--gray-200);
  transition: border-color var(--transition);
}

.game-card:hover .game-icon {
  border-color: var(--gray-300);
}

.game-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 2.5vw, 36px) clamp(48px, 5vw, 76px);
}

.game-title {
  margin: 0;
  color: var(--black);
  font-family: "Poppins", sans-serif;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.12;
}

.game-description {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--gray-700);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.75;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.store-badge {
  display: block;
  height: 52px;
  border-radius: 8px;
  transition: transform var(--transition), opacity var(--transition);
}

.store-badge:hover {
  opacity: .82;
  transform: translateY(-2px);
}

.store-badge img { width: auto; height: 100%; }

.game-site-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 18px;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.game-site-link:hover { color: var(--black); }

.game-site-link svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------- Contact */
.contact-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.contact-section::before,
.contact-section::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, .11);
  pointer-events: none;
}

.contact-section::before {
  width: 430px;
  height: 430px;
  top: -245px;
  left: -160px;
  border-width: 55px;
  border-radius: 33%;
  transform: rotate(18deg);
}

.contact-section::after {
  width: 350px;
  height: 350px;
  right: -130px;
  bottom: -225px;
  border-width: 48px;
  border-radius: 50%;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.contact-section .section-kicker { color: #a6a6a6; }
.contact-section .section-title { color: var(--white); }

.contact-copy {
  max-width: 680px;
  margin: 26px auto 0;
  color: #bdbdbd;
  font-size: clamp(17px, 1.6vw, 21px);
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  margin-top: 38px;
  padding: 16px 26px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--white);
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: color var(--transition), background var(--transition);
}

.contact-cta:hover {
  color: var(--white);
  background: transparent;
}

.contact-cta svg { width: 19px; height: 19px; }

.contact-location {
  margin: 20px 0 0;
  color: #8e8e8e;
  font-size: 13px;
  letter-spacing: .04em;
}

/* ---------------------------------------------------------------- Footer */
.site-footer {
  color: #b5b5b5;
  background: #151515;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: center;
  padding-block: 52px 34px;
}

.footer-brand img {
  width: 198px;
  height: auto;
  aspect-ratio: 128 / 27;
}

/* TR footer logo variant uses the wider 707x121 artwork; keep its natural
   proportions instead of the EN tech logo's tighter aspect ratio. */
.footer-brand img.lang-tr {
  aspect-ratio: 707 / 121;
}

.footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 26px 42px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 25px;
}

.footer-nav a {
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color var(--transition);
}

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

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

.social-link:hover {
  color: var(--black);
  background: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

.social-link svg { width: 18px; height: 18px; fill: currentColor; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-block: 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
}

.footer-bottom a {
  color: #d0d0d0;
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--white);
  border-color: currentColor;
}

/* ----------------------------------------------------------- Back to top */
.back-to-top {
  position: fixed;
  z-index: 900;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { transform: translateY(-3px); }
.back-to-top svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  :root { --header-height: 78px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .mobile-nav { display: block; }
  .nav-overlay { display: block; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-copy { order: 1; }
  .about-media { order: 2; }

  .about-copy { max-width: 780px; }

  .game-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .game-card--reverse .game-visual,
  .game-card--reverse .game-content { order: initial; }

  .game-visual { min-height: 470px; }
  .game-content { padding: 34px 56px; }

  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .references-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-main { grid-template-columns: 1fr; }
  .footer-right { justify-content: space-between; }
}

@media (max-width: 767px) {
  :root {
    --header-height: 72px;
    --radius-xl: 28px;
    --radius-lg: 24px;
  }

  .container { width: min(calc(100% - 32px), var(--container)); }
  .nav-shell { width: min(calc(100% - 32px), var(--container)); }
  .brand img { width: 168px; }
  .menu-toggle { width: 44px; height: 44px; }
  .header-back { height: 44px; padding: 0 16px; }
  .header-back span { display: none; }
  .header-back svg { width: 18px; height: 18px; }

  /* Compact language switcher on phones: tighter padding beside the hamburger. */
  .lang-switch-btn { padding-block: 10px; }
  .header-actions { gap: 8px; }

  .hero { aspect-ratio: 4 / 5; }

  .section { padding-block: clamp(64px, 16vw, 90px); }
  .section-kicker { margin-bottom: 14px; }
  .section-title { font-size: clamp(22px, 6vw, 28px); }

  .about-grid { gap: 38px; }
  .about-lead { margin-top: 22px; font-size: 18px; }
  .about-copy p:not(.about-lead) { margin-top: 16px; font-size: 16px; }

  .games-heading { margin-bottom: 38px; }
  .game-stack { gap: 24px; }
  .game-card { border-radius: 28px; }
  .game-visual { min-height: 330px; }
  .game-icon { width: min(58vw, 230px); }
  .game-content { align-items: center; padding: 26px 28px 30px; text-align: center; }
  .game-title { font-size: clamp(19px, 5.5vw, 25px); }
  .game-description { margin-top: 18px; font-size: 16px; }
  .store-links { justify-content: center; margin-top: 28px; }
  .store-badge { height: 47px; }
  .game-site-link { align-self: center; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { align-items: flex-start; text-align: left; }

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

  .contact-copy { font-size: 17px; }
  .contact-cta { width: 100%; max-width: 360px; }

  .footer-main { padding-block: 42px 30px; }
  .footer-right { display: grid; justify-content: start; }
  .footer-nav { gap: 12px 20px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 430px) {
  .store-links { width: 100%; }
  .store-badge { height: 46px; }
  .footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
}

/* ---------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
