/* Dere Studio — derestudiogames.com */
:root {
  --navy: #03436b;
  --navy-deep: #022c47;
  --river: #1190c4;
  --river-soft: #e3f3fa;
  --bg: #f6f9fb;
  --surface: #ffffff;
  --text: #102433;
  --muted: #536676;
  --line: #dde6ec;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(3, 40, 64, .06), 0 8px 28px rgba(3, 40, 64, .08);
  --accent: var(--river);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Outfit", var(--font);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--river); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -.01em; }

/* language switch: content lives in .tr / .en siblings */
html[data-lang="tr"] .en, html[data-lang="en"] .tr { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 249, 251, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 34px; height: 35px; }
.brand b { font: 700 18px/1 var(--display); letter-spacing: .14em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--river-soft); color: var(--navy); }
.lang {
  border: 1px solid var(--line); background: var(--surface); color: var(--navy);
  font: 600 13px/1 var(--font); letter-spacing: .06em;
  padding: 9px 12px; border-radius: 999px; cursor: pointer; margin-left: 6px;
}
.lang:hover { border-color: var(--river); }
@media (max-width: 640px) {
  .nav .hide-sm { display: none; }
  .brand b { font-size: 16px; }
}

/* hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 85% -10%, #cdeaf6 0%, transparent 70%),
    radial-gradient(700px 360px at 0% 110%, #e6f0f6 0%, transparent 70%);
  z-index: -1;
}
.hero .river { position: absolute; right: -80px; top: 40px; width: 620px; opacity: .9; z-index: -1; pointer-events: none; }
@media (max-width: 960px) { .hero .river { opacity: .35; right: -220px; } }
.eyebrow { color: var(--river); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 700; color: var(--navy-deep); max-width: 14ch; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 52ch; margin: 22px 0 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; text-decoration: none;
  font-weight: 600; padding: 13px 22px; border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--river); background: var(--surface); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
section.block { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); color: var(--navy-deep); }
.section-head p { color: var(--muted); margin: 8px 0 0; }

/* game cards */
.games { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .games { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .games { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(3,40,64,.06), 0 18px 40px rgba(3,40,64,.14); }
.card .art { aspect-ratio: 1024 / 500; background: #0b1530 center / cover no-repeat; position: relative; }
.card .art.ridge { background: linear-gradient(180deg, #8fb8ea 0%, #cfe0f5 60%, #f4f8fd 100%); display: grid; place-items: center; }
.card .art.ridge img { width: 82%; filter: drop-shadow(0 6px 12px rgba(2,44,71,.25)); }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .meta { display: flex; align-items: center; gap: 12px; }
.card .meta img { width: 52px; height: 52px; border-radius: 13px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.card h3 { font-size: 22px; }
.card .genre { color: var(--muted); font-size: 14px; }
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--card-accent, var(--river)); }
.tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; background: var(--river-soft); color: var(--navy);
}
.tag.live { background: #dff5e6; color: #11642f; }

/* about */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 28px; } }
.about h2 { font-size: clamp(28px, 4vw, 38px); color: var(--navy-deep); margin-bottom: 16px; }
.about p { color: var(--muted); }
.values { display: grid; gap: 14px; }
.value { background: var(--surface); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.value b { display: block; color: var(--navy); margin-bottom: 4px; }
.value span { color: var(--muted); font-size: 15px; }

/* contact band */
.band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, #0a6a9a);
  color: #fff; border-radius: 28px; padding: 48px; display: flex; gap: 24px;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.band h2 { font-size: clamp(26px, 3.5vw, 34px); }
.band p { color: #cfe6f2; margin: 8px 0 0; }
.band .btn { background: #fff; color: var(--navy); }
.band .btn:hover { background: var(--river-soft); }
@media (max-width: 640px) { .band { padding: 32px 24px; border-radius: 22px; } }

/* footer */
footer { padding: 48px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--navy); }

/* game page */
.game-hero { color: var(--game-text, #fff); background: var(--game-bg); position: relative; overflow: hidden; }
.game-hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
@media (max-width: 860px) { .game-hero .wrap { grid-template-columns: 1fr; } }
.game-hero .icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 6px 20px rgba(0,0,0,.25); margin-bottom: 20px; }
.game-hero h1 { font-size: clamp(36px, 5.5vw, 56px); }
.game-hero .tagline { font-size: 19px; opacity: .9; margin: 14px 0 26px; max-width: 46ch; }
.game-hero .feature { border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.back { display: inline-block; color: inherit; opacity: .8; text-decoration: none; font-size: 14px; margin-bottom: 22px; }
.back:hover { opacity: 1; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  padding: 9px 18px 9px 14px; border-radius: 12px; min-width: 168px;
  border: 1px solid rgba(255,255,255,.22);
}
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 11px; opacity: .8; line-height: 1.1; }
.store strong { display: block; font-size: 17px; line-height: 1.15; font-weight: 600; }
.store[aria-disabled="true"] { opacity: .55; cursor: default; }
.soon { font-size: 13px; opacity: .85; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature-item { background: var(--surface); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.feature-item b { display: block; color: var(--game-accent, var(--navy)); font-family: var(--display); font-size: 18px; margin-bottom: 6px; }
.feature-item span { color: var(--muted); font-size: 15px; }

/* screenshot gallery */
.shots-block { background: linear-gradient(180deg, var(--bg) 0%, #e9f1f6 18%, #e9f1f6 82%, var(--bg) 100%); }
.gallery { position: relative; }
.gallery-track {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 12px 4px 28px; margin: 0 -4px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.device {
  flex: none; scroll-snap-align: start; cursor: zoom-in; border: 0; margin: 0;
  background: #0c0f16; padding: 9px; border-radius: 42px;
  box-shadow: 0 0 0 1.5px #2a3140 inset, 0 1px 2px rgba(3,40,64,.12), 0 18px 40px rgba(3,40,64,.22);
  transition: transform .25s ease, box-shadow .25s ease;
}
.device:hover { transform: translateY(-6px); box-shadow: 0 0 0 1.5px #2a3140 inset, 0 2px 4px rgba(3,40,64,.12), 0 28px 56px rgba(3,40,64,.28); }
.device:focus-visible { outline: 3px solid var(--river); outline-offset: 4px; }
.device img { display: block; width: 100%; height: auto; border-radius: 33px; background: #1b2230; }
.device.port { width: clamp(210px, 24vw, 264px); }
.device.port img { aspect-ratio: 720 / 1556; object-fit: cover; }
.quiz-page .device.port img { aspect-ratio: 9 / 16; }
.device.land { width: clamp(300px, 52vw, 600px); border-radius: 38px; }
.device.land img { aspect-ratio: 2868 / 1320; object-fit: cover; border-radius: 29px; }
.gallery-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.gnav {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--navy); font: 400 26px/1 var(--font); cursor: pointer; box-shadow: var(--shadow);
  display: grid; place-items: center; padding-bottom: 3px;
}
.gnav:hover:not(:disabled) { border-color: var(--river); color: var(--river); }
.gnav:disabled { opacity: .35; cursor: default; }
@media (max-width: 640px) { .gallery-nav { display: none; } .gallery-track { gap: 18px; } }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(4, 10, 20, .88); backdrop-filter: blur(6px); }
.lightbox .lb-inner { width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 64px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 112px); border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font: 400 28px/1 var(--font); display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 16px; right: 16px; font-size: 24px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox .lb-inner { padding: 64px 12px; } .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.info div { background: var(--surface); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.info small { display: block; color: var(--muted); font-size: 13px; }
.info strong { color: var(--text); }

/* simple text pages */
.page { max-width: 760px; margin: 0 auto; padding: 48px 20px 24px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); color: var(--navy-deep); margin-bottom: 12px; }
.page h2 { font-size: 22px; color: var(--navy); margin: 36px 0 10px; }
.page p, .page li { color: #2b3f4e; }
.page .muted { color: var(--muted); }
.panel { background: var(--surface); border-radius: 18px; padding: 8px 24px 20px; box-shadow: var(--shadow); margin-top: 20px; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); }
details p { margin: 10px 0 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* social links */
.social-row { display: flex; align-items: center; gap: 14px; }
.social { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); color: var(--navy) !important; }
.social:hover { color: var(--river) !important; }
.social svg { width: 18px; height: 18px; }
