/* Mulesi Games — shared styles. Warm dark like the studio banner: black, glowing orange, cream. */

@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url(/assets/fonts/baloo2-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url(/assets/fonts/baloo2-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/nunito-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/nunito-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0a0604;
  --bg-2: #120a06;
  --card: rgba(255, 236, 214, 0.045);
  --card-hi: rgba(255, 236, 214, 0.075);
  --line: rgba(255, 150, 60, 0.16);
  --line-hi: rgba(255, 150, 60, 0.38);
  --cream: #fbeee0;
  --muted: #c2aa95;
  --dim: #8d7764;
  --orange: #ff8a1f;
  --orange-2: #ffb547;
  --deep: #e35a0c;
  --ink: #1f1208;
  --radius: 26px;
  --display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 88% -8%, rgba(255, 128, 20, 0.30), transparent 70%),
    radial-gradient(700px 480px at -10% 105%, rgba(227, 90, 12, 0.20), transparent 70%);
  background-attachment: fixed;
  color: var(--cream);
  font: 17px/1.65 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-2); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--cream); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

/* both languages live in the page; the <html> class shows one */
.lang-tr [data-l="en"], .lang-en [data-l="tr"] { display: none !important; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ------------------------------------------------------------------ header */

.top {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, rgba(10, 6, 4, 0.92), rgba(10, 6, 4, 0.72));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 150, 60, 0.10);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; line-height: 1; }
.brand b i { font-style: normal; color: var(--orange); }
.brand small { display: block; font-family: var(--display); font-weight: 700; font-size: 10.5px; letter-spacing: 0.42em; color: var(--orange); margin-top: 2px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover { color: var(--cream); }
.lang {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
}
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: 800 12.5px/1 var(--body); letter-spacing: 0.06em; padding: 7px 11px; border-radius: 999px; cursor: pointer;
}
.lang-tr .lang [data-set="tr"], .lang-en .lang [data-set="en"] { background: var(--orange); color: var(--ink); }

/* ------------------------------------------------------------------ buttons, chips */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font: 800 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-hot {
  background: linear-gradient(180deg, var(--orange-2), var(--orange) 55%, var(--deep));
  color: var(--ink);
  box-shadow: 0 10px 30px -8px rgba(255, 120, 20, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-hot:hover { color: var(--ink); box-shadow: 0 14px 38px -8px rgba(255, 120, 20, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-ghost { color: var(--cream); background: var(--card); border: 1px solid var(--line-hi); }
.btn-ghost:hover { color: var(--cream); background: var(--card-hi); }
.btn svg { width: 18px; height: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.chips li {
  font-size: 13px; font-weight: 800; letter-spacing: 0.02em;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 138, 31, 0.12); color: var(--orange-2); border: 1px solid rgba(255, 138, 31, 0.25);
}

.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 12px; border-radius: 14px;
  background: #000; border: 1px solid rgba(255, 255, 255, 0.18); color: #fff;
  text-decoration: none; line-height: 1.1;
}
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: block; font-size: 11px; color: rgba(255, 255, 255, 0.7); font-weight: 700; }
.store b { display: block; font-size: 16px; font-family: var(--display); font-weight: 700; }
.store.soon { opacity: 0.85; }

/* ------------------------------------------------------------------ sections */

section { padding: 72px 0; }
.kicker {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 12px;
}
.kicker::before { content: ""; display: inline-block; width: 26px; height: 3px; border-radius: 3px; background: var(--orange); vertical-align: middle; margin-right: 10px; transform: translateY(-2px); }
.title { font-size: clamp(34px, 5vw, 52px); font-weight: 800; margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 19px; max-width: 640px; }

/* ------------------------------------------------------------------ studio hero */

.hero { padding: 40px 0 24px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; margin-bottom: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(180deg, var(--orange-2), var(--deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy > p { color: var(--muted); font-size: 18px; max-width: 540px; }
.hero .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.hero-art { position: relative; justify-self: center; width: min(360px, 100%); aspect-ratio: 483 / 430; }
.hero-art .sun {
  position: absolute; inset: -18% -14% -6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 150, 40, 0.55), rgba(255, 110, 10, 0.18) 60%, transparent);
  filter: blur(8px);
}
.hero-art .mascot { position: relative; width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55)); }
.hero-art .ball {
  position: absolute; width: 34px; height: 34px; right: 2%; top: 4%; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff3d6, var(--orange-2) 30%, var(--orange) 60%, var(--deep));
  box-shadow: 0 10px 24px -4px rgba(255, 120, 20, 0.7);
}

/* ------------------------------------------------------------------ game cards */

.games { display: grid; gap: 24px; margin-top: 34px; }
.game {
  display: grid; grid-template-columns: minmax(250px, 340px) 1fr; gap: 0;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 236, 214, 0.07), rgba(255, 236, 214, 0.02));
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}
.game .art { position: relative; background: #8ccaf2; min-height: 100%; }
.game .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.game .info { padding: 36px 38px; display: flex; flex-direction: column; justify-content: center; }
.game .head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.game .head img { width: 76px; height: 76px; border-radius: 19px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); }
.game h3 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; }
.game .tag { color: var(--orange-2); font-weight: 800; font-size: 15px; margin-top: 4px; }
.game .info > p { color: var(--muted); max-width: 560px; }
.game .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 6px; }

.next {
  display: flex; align-items: center; gap: 22px; padding: 26px 30px;
  border-radius: var(--radius); border: 1.5px dashed var(--line-hi);
  background: rgba(255, 138, 31, 0.04);
}
.next img { width: 72px; height: 72px; filter: grayscale(1) brightness(0.55) sepia(1) hue-rotate(-12deg) saturate(3); opacity: 0.8; }
.next h3 { font-size: 24px; font-weight: 800; }
.next p { margin: 4px 0 0; color: var(--muted); }

/* ------------------------------------------------------------------ studio values */

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.value { padding: 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.value .ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(180deg, var(--orange-2), var(--deep)); color: var(--ink);
  box-shadow: 0 8px 22px -6px rgba(255, 120, 20, 0.6);
}
.value .ic svg { width: 24px; height: 24px; }
.value h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.value p { color: var(--muted); margin: 0; font-size: 16px; }

/* ------------------------------------------------------------------ contact */

.contact {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: 44px; border-radius: 30px;
  background: radial-gradient(600px 300px at 100% 0%, rgba(255, 138, 31, 0.35), transparent 70%), linear-gradient(135deg, #1c0f07, #120904);
  border: 1px solid var(--line-hi);
}
.contact .title { margin-bottom: 8px; }
.contact p { color: var(--muted); margin: 0; }
.contact .mail { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.6vw, 26px); color: var(--cream); word-break: break-all; }

/* ------------------------------------------------------------------ footer */

footer { padding: 40px 0 56px; border-top: 1px solid rgba(255, 150, 60, 0.10); margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; color: var(--dim); font-size: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--cream); }

/* ------------------------------------------------------------------ game page */

.g-hero {
  position: relative; overflow: hidden; border-radius: 34px; margin-top: 28px;
  background: linear-gradient(180deg, #74bff3 0%, #a9dbfb 42%, #e5f4ff 70%, #bfe78f 100%);
  color: #183018;
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 24px;
  padding: 48px 56px 0;
  box-shadow: 0 40px 120px -50px rgba(120, 200, 255, 0.55);
}
.g-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(180px 70px at 12% 22%, rgba(255, 255, 255, 0.9), transparent 70%),
    radial-gradient(240px 80px at 30% 12%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(260px 90px at 92% 30%, rgba(255, 255, 255, 0.75), transparent 70%);
}
.g-hero > * { position: relative; }
.g-hero .copy { padding-bottom: 48px; }
.g-hero .logo { width: min(460px, 100%); filter: drop-shadow(0 14px 22px rgba(30, 80, 20, 0.28)); margin: 0 0 18px -10px; }
.g-hero .say { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; margin-bottom: 12px; color: #1d3b12; }
.g-hero p { color: #34512a; font-size: 18px; max-width: 520px; }
.g-hero .chips li { background: rgba(255, 255, 255, 0.65); color: #2d6a1a; border-color: rgba(45, 106, 26, 0.18); }
.phone {
  justify-self: center; width: min(320px, 80%); aspect-ratio: 941 / 1672;
  border-radius: 44px 44px 0 0; padding: 12px 12px 0; background: #11161d;
  box-shadow: 0 -10px 60px rgba(30, 60, 90, 0.35), inset 0 0 0 2px #2b333d;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px 34px 0 0; }

.shots {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 16px 22px; margin: 30px -16px 0;
  scrollbar-width: thin; scrollbar-color: var(--orange) transparent;
}
.shots img {
  flex: none; width: 236px; aspect-ratio: 1320 / 2868; height: auto; scroll-snap-align: start;
  border-radius: 24px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9); border: 1px solid rgba(255, 255, 255, 0.08);
}

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }

.faq { margin-top: 30px; display: grid; gap: 12px; max-width: 820px; }
.faq details { border-radius: 18px; background: var(--card); border: 1px solid var(--line); padding: 0 22px; }
.faq details[open] { background: var(--card-hi); border-color: var(--line-hi); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 800; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 24px; line-height: 1; color: var(--orange); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* ------------------------------------------------------------------ legal page */

.legal { max-width: 780px; padding-top: 48px; }
.legal h1 { font-size: clamp(32px, 4.6vw, 46px); font-weight: 800; margin-bottom: 8px; }
.legal h2 { font-size: 22px; font-weight: 800; margin: 34px 0 8px; color: var(--orange-2); }
.legal p { color: #e6d6c6; }
.legal .muted { color: var(--dim); font-size: 14px; }

/* ------------------------------------------------------------------ small screens */

@media (max-width: 860px) {
  .nav { display: none; }
  .hero { padding-top: 24px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; }
  .hero-art { grid-row: 1; width: min(230px, 62%); }
  .game { grid-template-columns: 1fr; }
  .game .art { aspect-ratio: 16 / 10; }
  .game .info { padding: 26px 22px 28px; }
  .values, .features { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; padding: 30px 24px; }
  .g-hero { grid-template-columns: 1fr; padding: 32px 22px 0; text-align: left; }
  .g-hero .copy { padding-bottom: 8px; }
  section { padding: 56px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand b { font-size: 23px; }
  .brand img { width: 38px; height: 38px; }
  .shots img { width: 200px; }
}

/* ------------------------------------------------------------------ motion
   Only when the visitor hasn't asked for reduced motion. Scroll reveals are armed by site.js
   (html[data-motion]) so the page is fully visible without JavaScript. */

/* scroll progress along the bottom of the header, with a ball riding the tip */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.progress i {
  position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--deep), var(--orange), var(--orange-2));
}
.progress b {
  position: absolute; top: -5px; left: calc(var(--p, 0) * 100% - 13px); width: 13px; height: 13px; border-radius: 50%;
  transform: rotate(calc(var(--p, 0) * 1440deg));
  background: radial-gradient(circle at 35% 30%, #fff3d6, var(--orange-2) 35%, var(--deep));
  box-shadow: 0 0 12px rgba(255, 140, 30, 0.8);
  opacity: min(1, calc(var(--p, 0) * 40));
}

@media (prefers-reduced-motion: no-preference) {
  .top .wrap, .brand img, .brand b { transition: height 0.3s ease, width 0.3s ease, font-size 0.3s ease, transform 0.4s ease; }
  .top { transition: background 0.3s ease, box-shadow 0.3s ease; }
  .top.scrolled { background: rgba(10, 6, 4, 0.94); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8); }
  .top.scrolled .wrap { height: 56px; }
  .top.scrolled .brand img { width: 36px; height: 36px; transform: rotate(-8deg); }
  .top.scrolled .brand b { font-size: 23px; }

  /* hero plays once on load */
  .hero-copy > * { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3), .hero-copy > :nth-child(4) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.24s; }
  .hero-art { animation: pop 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) 0.15s both; }
  .hero-art .mascot { animation: float 6s ease-in-out infinite; }
  .hero-art .sun { animation: glow 4s ease-in-out infinite alternate; }
  .hero-art .ball { animation: bounce 1.6s cubic-bezier(0.5, 0, 0.5, 1) infinite alternate; }
  [data-parallax] { translate: 0 var(--py, 0px); }

  /* scroll reveals */
  html[data-motion] [data-reveal] {
    opacity: 0; transform: translateY(36px) scale(0.98);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: calc(var(--i, 0) * 0.1s);
  }
  html[data-motion] [data-reveal="left"] { transform: translateX(-48px); }
  html[data-motion] [data-reveal="right"] { transform: translateX(48px); }
  html[data-motion] [data-reveal].in { opacity: 1; transform: none; }

  html[data-motion] .kicker::before { width: 0; transition: width 0.6s ease 0.2s; }
  html[data-motion] .in .kicker::before, html[data-motion] .kicker.in::before, html .hero .kicker::before { width: 26px; }
  html[data-motion] .value .ic { transform: scale(0.3) rotate(-30deg); transition: transform 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) calc(var(--i, 0) * 0.1s + 0.2s); }
  html[data-motion] .value.in .ic { transform: none; }
  .value { transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease; }
  .value:hover { transform: translateY(-6px) rotate(-0.6deg); border-color: var(--line-hi); background: var(--card-hi); }
  .value:hover .ic { animation: wiggle 0.5s ease; }
  html[data-motion] .next.in img { animation: peek 2.4s ease-in-out 0.4s infinite; }

  .game .art { overflow: hidden; }
  .game .art img { transform: scale(1.08); transform-origin: 50% 30%; transition: transform 0.6s ease; }
  .game:hover .art img { transform: scale(1.12); }
  .game .head img { transition: transform 0.3s cubic-bezier(0.2, 1.6, 0.4, 1); }
  .game:hover .head img { transform: rotate(-6deg) scale(1.06); }

  .contact::before {
    content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -120px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 150, 40, 0.45), transparent); animation: glow 5s ease-in-out infinite alternate;
    pointer-events: none;
  }
  .contact > * { position: relative; }
}

@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.7) rotate(-6deg); } }
@keyframes float { 50% { transform: translateY(-12px) rotate(1.5deg); } }
@keyframes glow { from { opacity: 0.7; transform: scale(0.94); } to { opacity: 1; transform: scale(1.06); } }
@keyframes bounce { from { transform: translateY(0) scale(1.08, 0.9); } 18% { transform: translateY(-6px) scale(1); } to { transform: translateY(-64px); } }
@keyframes wiggle { 25% { transform: rotate(-12deg); } 75% { transform: rotate(10deg); } }
@keyframes peek { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-8px) rotate(-8deg); } 90% { transform: translateY(-4px) rotate(6deg); } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .progress b { display: none; } }
