:root { --bg: #f7f8fb; --fg: #1d2333; --muted: #5d6578; --line: #dfe3ec; --card: #ffffff; --link: #1f5fd6; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #11141c; --fg: #e8ebf2; --muted: #a3abbd; --line: #2a3040; --card: #181c27; --link: #7aa7ff; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
h1 { font-size: 1.8rem; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 1.2rem; margin: 32px 0 8px; }
h3 { margin: 0 0 4px; }
a { color: var(--link); }
.lead { font-size: 1.15rem; color: var(--muted); }
.meta, .crumb { color: var(--muted); font-size: 0.9rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
ul { padding-left: 20px; }
li { margin: 6px 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

/* Home page (index.html). The policy pages keep the plain styles above. */
.home { --accent: #ff8a1f; --accent2: #1f6fe0; --sky: #e8f2ff; --hero-fg: #ffffff; }
@media (prefers-color-scheme: dark) { .home { --sky: #142033; } }
.home h1, .home h2, .home h3, .home .brand { font-family: "Baloo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.home .top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; max-width: 1080px; margin: 0 auto; padding: 16px; }
.home .brand { color: #fff; font-weight: 800; font-size: 1.5rem; text-decoration: none; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.home .top nav a { color: #fff; text-decoration: none; font-weight: 600; margin-left: 20px; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.home .hero { position: relative; overflow: hidden; color: var(--hero-fg); min-height: 560px; display: flex; align-items: flex-end; }
.home .hero-art { position: absolute; inset: 0; background: url(/img/hero.jpg) right center / cover no-repeat; }
.home .hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,18,45,.94) 0%, rgba(8,18,45,.78) 38%, rgba(8,18,45,.15) 70%, rgba(8,18,45,0) 100%), linear-gradient(180deg, rgba(8,18,45,.35) 0%, rgba(8,18,45,0) 30%); }
@media (max-width: 760px) { .home .hero-art::after { background: linear-gradient(180deg, rgba(8,18,45,.3) 0%, rgba(8,18,45,.55) 40%, rgba(8,18,45,.95) 100%); } .home .hero-art { background-position: 72% center; } }
.home .hero-body { position: relative; max-width: 1080px; width: 100%; margin: 0 auto; padding: 120px 16px 48px; }
.home .app-icon { border-radius: 24px; box-shadow: 0 8px 24px rgba(0,0,0,.4); display: block; margin-bottom: 16px; }
.home .kicker { margin: 0; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: #ffd27a; }
.home .hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05; margin: 4px 0 12px; text-shadow: 0 3px 12px rgba(0,0,0,.4); }
.home .hero .lead { color: rgba(255,255,255,.92); max-width: 560px; margin: 0 0 24px; }
.home .stores { display: flex; flex-wrap: wrap; gap: 12px; }
.home .store { display: inline-flex; flex-direction: column; padding: 8px 18px; border-radius: 12px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.35); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.home .store small { font-weight: 500; font-size: .72rem; opacity: .8; }
.home main.wide { max-width: 1080px; padding: 0 16px 48px; }
.home .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: -28px 0 40px; position: relative; z-index: 1; }
.home .feature { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 6px 20px rgba(20,30,60,.08); }
.home .feature h3 { font-size: 1.3rem; margin: 8px 0 4px; }
.home .feature p { margin: 0; color: var(--muted); }
.home .dot { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 800; }
.home .d1 { background: #e8463a; } .home .d2 { background: #f2a516; } .home .d3 { background: #2f9e44; }
.home .shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.home .shots img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 18px; border: 1px solid var(--line); scroll-snap-align: start; }
.home .links-card { background: var(--sky); border-radius: 18px; padding: 24px; margin: 40px 0; }
.home .links-card h2, .home .about h2 { font-size: 1.6rem; margin: 0 0 4px; }
.home .pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.home .pill { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; text-decoration: none; font-weight: 600; }
.home .about { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.home .mail { font-weight: 700; font-size: 1.1rem; }
.home .foot { border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .9rem; padding: 16px; }
@media (max-width: 640px) {
  .home .hero { min-height: 520px; }
  .home .top nav a { margin-left: 14px; }
  .home .about { grid-template-columns: 1fr; gap: 8px; }
  .home .shots { grid-auto-columns: 62%; }
}

/* Studio home page */
.home .studio-hero { position: relative; color: #fff; background: radial-gradient(1200px 500px at 85% 0%, #ff9a7a 0%, rgba(255,154,122,0) 60%), linear-gradient(135deg, #ff6b5b 0%, #e2456b 45%, #3b2d8f 100%); }
.home .studio-hero .hero-body { padding: 120px 16px 72px; }
.home .studio-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.08; margin: 6px 0 14px; max-width: 760px; }
.home .studio-hero .lead { color: rgba(255,255,255,.92); max-width: 620px; margin: 0; }
.home .studio-hero .kicker { color: #ffe1b8; }
.home .section-title { font-size: 1.8rem; margin: 40px 0 16px; }
.home .cards { display: grid; align-items: start; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.home .game-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: 0 6px 20px rgba(20,30,60,.08); transition: transform .15s ease, box-shadow .15s ease; }
.home a.game-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,30,60,.16); }
.home .game-art { aspect-ratio: 1024 / 500; background: center / cover no-repeat; }
.home .game-body { display: flex; gap: 14px; padding: 18px; align-items: flex-start; }
.home .game-icon { border-radius: 16px; flex: none; }
.home .game-body h3 { font-size: 1.3rem; margin: 0 0 4px; }
.home .game-body p { margin: 0 0 10px; color: var(--muted); }
.home .tag { display: inline-block; font-size: .8rem; font-weight: 700; color: #b4440f; background: #fff0e3; border-radius: 999px; padding: 3px 10px; }
@media (prefers-color-scheme: dark) { .home .tag { color: #ffb37a; background: #3a2416; } }
.home .game-card.placeholder { border-style: dashed; box-shadow: none; justify-content: center; background: transparent; min-height: 180px; }
.home .about { margin-top: 48px; }

/* Policy pages: same bar, fonts and footer as the home page */
.sitebar { background: linear-gradient(135deg, #ff6b5b 0%, #e2456b 45%, #3b2d8f 100%); }
.sitebar .inner { max-width: 760px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.sitebar a { color: #fff; text-decoration: none; font-weight: 600; }
.sitebar .brand { font-family: "Baloo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-weight: 800; font-size: 1.4rem; }
.sitebar nav a { margin-left: 18px; }
.doc h1, .doc h2 { font-family: "Baloo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.doc h1 { font-size: 2rem; margin-top: 8px; }
.doc h2 { font-size: 1.35rem; }
.doc .foot { border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .9rem; padding: 16px; }
.doc .foot a { color: var(--muted); }

/* Header bar with the color logo (white in light mode, navy in dark mode) */
:root { --bar: #ffffff; --bar-fg: #14213D; }
@media (prefers-color-scheme: dark) { :root { --bar: #14213D; --bar-fg: #FBF7F2; } }
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand img { height: 44px; width: auto; display: block; }
@media (max-width: 520px) { .brand img { height: 32px; } }
.home .top { position: sticky; top: 0; max-width: none; padding: 12px max(16px, calc((100% - 1048px) / 2)); background: var(--bar); border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(20,33,61,.08); }
.home .top nav a { color: var(--bar-fg); text-shadow: none; }
.home .top nav a:hover { color: #FF5A47; }
.home .hero-body { padding-top: 72px; }
.home .studio-hero .hero-body { padding-top: 72px; }
.sitebar { background: var(--bar); border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(20,33,61,.08); }
.sitebar a { color: var(--bar-fg); }
.sitebar nav a:hover { color: #FF5A47; }
/* Keep anchored sections clear of the sticky header bar */
.home [id] { scroll-margin-top: 88px; }

/* Official store badges (Google Play PNG has built-in padding, so it is drawn taller) */
.home .stores { align-items: center; }
.badge { display: inline-block; line-height: 0; }
.badge-apple img { height: 48px; width: auto; }
.badge-play img { height: 70px; width: auto; margin: -11px -10px; }

/* Language switch (EN / TR) in the header */
.home .top nav a.lang { padding: 2px 10px; border: 1.5px solid currentColor; border-radius: 999px; font-size: .85rem; }
/* Phone header: hamburger menu (site.js toggles .open; without JS the links stay visible) */
.menu-toggle { display: none; }
@media (max-width: 640px) {
  .js .home .top { flex-wrap: wrap; }
  .js .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--bar-fg); cursor: pointer; }
  .js .menu-toggle svg { width: 26px; height: 26px; }
  .js .menu-toggle .i-close, .js .home .top.open .menu-toggle .i-open { display: none; }
  .js .home .top.open .menu-toggle .i-close { display: block; }
  .js .home .top nav { display: none; flex-basis: 100%; flex-direction: column; margin-top: 12px; padding: 4px 0; border-top: 1px solid var(--line); }
  .js .home .top.open nav { display: flex; }
  .js .home .top nav a { margin: 0; padding: 12px 2px; font-size: 1.05rem; }
  .js .home .top nav a + a { border-top: 1px solid var(--line); }
  .js .home .top nav a.lang { align-self: flex-start; margin: 10px 0 6px; padding: 4px 14px; border: 1.5px solid currentColor; }
}

/* Cookie consent banner (site.js, shown only when Google Analytics is set up) */
.consent { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; padding: 16px 18px; background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 34px rgba(20,33,61,.22); font-size: .95rem; }
.consent p { margin: 0 0 12px; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.consent-more { margin-right: auto; color: var(--link); }
.consent button { min-height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.consent-no { background: transparent; color: var(--fg); border: 1.5px solid var(--line); }
.consent-yes { background: #FF5A47; color: #fff; border: 1.5px solid #FF5A47; }
.consent button:focus-visible, .consent a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
[data-consent-open] { display: none; }
.ga [data-consent-open] { display: inline; }
.foot a { color: var(--muted); }
