/* Shared layout for the game pages. Every game sets its own look in
   css/<game>-theme.css through the variables below. */
:root {
  --bg: #ffffff;
  --bg2: #f4f4f4;
  --surface: #ffffff;
  --line: #e5e5e5;
  --text: #1a1a1a;
  --muted: #666666;
  --accent: #333333;
  --accent-ink: #ffffff;
  --accent2: #999999;
  --font-head: system-ui, sans-serif;
  --font-body: system-ui, sans-serif;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }

/* Language: both texts are in the page, one is shown. */
html[data-lang="en"] .l-tr, html[data-lang="tr"] .l-en { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.brand img { border-radius: 10px; }
.nav-links { display: none; gap: 4px; margin-left: auto; }
@media (min-width: 860px) { .nav-links { display: flex; } }
.nav-link { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.nav-link:hover, .nav-link.active { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.nav-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 860px) { .nav-tools { margin-left: 8px; } }
.lang-toggle {
  font: 700 .8rem var(--font-body); letter-spacing: .06em; cursor: pointer;
  color: var(--text); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 12px;
}
.home-pill {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: .82rem; letter-spacing: .04em; padding: 8px 14px; border-radius: 999px;
}
.home-pill .ico { width: 16px; height: 16px; }
@media (max-width: 420px) { .home-pill span { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.motif { position: absolute; inset: 0; pointer-events: none; }
/* Interactive layer (js/apps-fx.js): a fixed, click-through canvas above the
   page and below the top bar. Its effects are light and fade quickly. */
.fx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 10; }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } .hero { padding: 88px 0 104px; } }
.badge {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin: 18px 0 8px; letter-spacing: -.02em; }
.tagline { font-family: var(--font-head); font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 600; color: var(--accent); margin: 0 0 16px; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 34em; margin: 0 0 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--accent); color: var(--accent-ink); padding: 10px 18px 10px 14px;
  border-radius: 14px; font-weight: 700; line-height: 1.15; box-shadow: var(--shadow);
}
.store-btn .ico { width: 26px; height: 26px; }
.store-btn small { display: block; font-weight: 500; font-size: .72rem; opacity: .8; }
.store-btn.soon { background: transparent; color: var(--text); border: 1.5px solid var(--line); box-shadow: none; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-logo { position: absolute; left: 4%; bottom: 8%; width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--shadow); z-index: 2; }
@media (min-width: 560px) { .hero-logo { width: 120px; height: 120px; border-radius: 28px; } }

/* Phone frame */
.phone {
  margin: 0; padding: 9px; border-radius: 38px; background: #0d0d0f;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, .08);
}
.phone img { border-radius: 30px; width: 100%; height: auto; }
.hero-phone { width: min(300px, 74vw); }

/* Sections */
.section { padding: 72px 0; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 32px; }
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature h3 { font-size: 1.2rem; margin: 14px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
}
.feature-icon .ico { width: 26px; height: 26px; }
/* One row of phones: as many columns as screenshots (2 or 3 on phones). */
.shots { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 236px)); justify-content: center; gap: 24px; padding: 8px 0 12px; }
.shots .phone { min-width: 0; }
@media (max-width: 760px) {
  .shots { grid-template-columns: repeat(var(--m, 2), minmax(0, 1fr)); gap: 16px 12px; }
  .shots .phone { padding: 6px; border-radius: 24px; }
  .shots .phone img { border-radius: 19px; }
}
.promise {
  display: grid; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px); padding: 32px 24px;
}
@media (min-width: 860px) { .promise { grid-template-columns: 1.2fr 1fr; padding: 48px; } }
.promise h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.promise p { color: var(--muted); margin: 0; }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.promise-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.promise-list .ico { width: 24px; height: 24px; color: var(--accent); flex: none; }

/* Privacy and support */
.doc-page { min-height: 60vh; }
.doc { max-width: 780px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc p { color: var(--muted); }
.doc strong { color: var(--text); }
.doc a { color: var(--accent); }
.support-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .support-grid { grid-template-columns: 1.5fr 1fr; } }
.support-grid h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.faqs { display: grid; gap: 12px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 16px; color: var(--muted); }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: 28px; position: sticky; top: 88px; }
.contact-card h2 { margin-top: 16px; }
.contact-card p { color: var(--muted); }
.contact-card .store-btn { word-break: break-all; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 24px; margin-top: 24px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.muted { color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
