/* Glowtown web: tek stil dosyası, harici kaynak yok. Palet: marka/renk-paleti.png (oyunun Pal sınıfı).
   Dil: kalın mürekkep kontur + ofset gölge + neon pembe vurgu. Köşe sistemi: kutular 24px, küçük öğeler hap (999px). */
@font-face { font-family: "DynaPuff"; src: url("fonts/DynaPuff.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --bg: #FFF2F9;
  --bg-2: #FFE6F2;
  --surface: #FFFBFD;
  --ink: #2D1740;
  --muted: #574368;
  --stroke: #2D1740;
  --shadow: #2D1740;
  --accent: #FF4FA3;
  --accent-text: #B0115D;
  --tint-pink: #FFD9EC;
  --tint-lilac: #E9E0FF;
  --tint-butter: #FFF1B0;
  --pop-stroke: #2D1740;
  --focus: #5B3CD9;
  --glow: rgba(255, 79, 163, .22);
  --r: 24px;
  --bw: 3px;
  --font-head: "DynaPuff", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A0F2A; --bg-2: #22143A; --surface: #241538; --ink: #FFF2F9; --muted: #D6C8E8; --stroke: #0B0613; --shadow: #0B0613;
    --accent-text: #FF8CC4; --tint-pink: #3A1A3E; --tint-lilac: #2B1F4D; --tint-butter: #3B3218; --pop-stroke: #FFF2F9;
    --focus: #FFE066; --glow: rgba(255, 79, 163, .28);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1A0F2A; --bg-2: #22143A; --surface: #241538; --ink: #FFF2F9; --muted: #D6C8E8; --stroke: #0B0613; --shadow: #0B0613;
  --accent-text: #FF8CC4; --tint-pink: #3A1A3E; --tint-lilac: #2B1F4D; --tint-butter: #3B3218; --pop-stroke: #FFF2F9;
  --focus: #FFE066; --glow: rgba(255, 79, 163, .28);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 16px; top: -80px; background: var(--surface); color: var(--ink); border: 2px solid var(--stroke); padding: 10px 16px; border-radius: 999px; z-index: 20; font-weight: 800; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
main { flex: 1; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .45em; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46ch; }

/* Logo görselleri: temaya göre biri görünür */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.logo-d { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-l { display: none; } :root:not([data-theme="light"]) .logo-d { display: block; } }
:root[data-theme="dark"] .logo-l { display: none; }
:root[data-theme="dark"] .logo-d { display: block; }

/* Üst bar */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 2px solid color-mix(in srgb, var(--stroke) 14%, transparent); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 66px; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a, .top nav button { color: var(--ink); font: inherit; font-weight: 800; font-size: .95rem; text-decoration: none; padding: 8px 12px; border-radius: 999px; background: none; border: 2px solid transparent; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.top nav a:hover, .top nav button:hover { background: var(--tint-lilac); }
.top nav .lang { border-color: var(--stroke); }
.top nav .theme { border-color: color-mix(in srgb, var(--stroke) 30%, transparent); }
@media (max-width: 720px) { .top nav .opt { display: none; } }
@media (max-width: 380px) { .brand img { height: 32px; } .top nav a, .top nav button { padding: 8px 10px; font-size: .9rem; } }

/* Mağaza rozetleri: resmi dosyalar, değiştirilmeden. Görünen rozet yüksekliği --bh; Google PNG'sindeki
   şeffaf güvenli boşluk negatif kenar boşluğuyla dengelenir (görsel kırpılmaz ya da değiştirilmez). */
.stores { --bh: 54px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.badge { display: inline-block; border-radius: 10px; line-height: 0; transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.badge:hover { transform: translateY(-2px); }
.badge:active { transform: translateY(1px); }
.badge img { height: var(--bh); width: auto; max-width: none; }
.gp-tr img { height: calc(var(--bh) * 250 / 192); margin-block: calc(var(--bh) * -29 / 192); }
.gp-en img { height: calc(var(--bh) * 250 / 168); margin: calc(var(--bh) * -41 / 168); }
.soon { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; border-radius: 999px; background: var(--tint-butter); color: var(--ink); border: 2px solid var(--stroke); font-weight: 900; font-size: .9rem; }
[data-live="true"] .soon { display: none; }
@media (max-width: 420px) { .stores { --bh: 46px; gap: 12px; } }

/* Düğme (yasal sayfalar ve 404) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: var(--bw) solid var(--stroke); background: var(--accent); color: #2D1740; font: inherit; font-weight: 900; text-decoration: none; box-shadow: 0 4px 0 var(--shadow); transition: transform .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--shadow); text-decoration: none; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--shadow); }
.btn.alt { background: var(--surface); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero: ana görsel + hemen altında indirme alanı. Genişlik ekran yüksekliğine göre ayarlanır, düğmeler ilk ekranda kalır. */
.hero { position: relative; padding: 18px 0 56px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0 0 25% 0; z-index: -1; pointer-events: none; background: radial-gradient(55% 60% at 50% 18%, var(--glow), transparent 72%); }
.hero-inner { width: min(100% - 32px, 1240px, max(860px, (100svh - 300px) * 16 / 9)); margin-inline: auto; }
.hero-art { border: var(--bw) solid var(--stroke); border-radius: var(--r); overflow: hidden; box-shadow: 8px 8px 0 var(--accent); background: #2D1740; aspect-ratio: 16 / 9; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-dock { display: grid; gap: 18px 40px; margin-top: 26px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 3.6rem); margin-bottom: .2em; line-height: 1.08; }
.hero .lead { margin-bottom: 0; }
.pop { color: var(--accent); -webkit-text-stroke: .1em var(--pop-stroke); paint-order: stroke fill; text-shadow: .045em .06em 0 var(--shadow); display: inline-block; transform: rotate(-3deg); }
@media (min-width: 900px) {
  .hero { padding-top: 22px; }
  .hero-dock { grid-template-columns: 1fr auto; }
  .hero h1 { font-size: clamp(2.4rem, 3.7vw, 3.6rem); }
  .hero .stores { display: grid; grid-template-columns: auto auto; justify-content: end; justify-items: end; }
  .hero .stores .soon { order: -1; grid-column: 1 / -1; }
}
@media (max-width: 600px) { .hero-art { border-radius: 18px; box-shadow: 5px 5px 0 var(--accent); } .hero-dock { margin-top: 20px; } }

/* Bölümler */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.feat-copy p { color: var(--muted); max-width: 48ch; font-size: 1.1rem; }
.shot img, .tile-img img { width: 100%; }
.shot { border: var(--bw) solid var(--stroke); border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: 7px 7px 0 var(--shadow); }

/* 1) Stil: metin + üst üste binen iki ekran */
.feat-split { display: grid; gap: 36px; align-items: center; }
.collage { position: relative; padding-bottom: 22%; }
.collage .shot-sub { position: absolute; width: 56%; right: 0; bottom: 0; transform: rotate(2.5deg); box-shadow: 7px 7px 0 var(--accent); }
@media (min-width: 900px) {
  .feat-split { grid-template-columns: 5fr 7fr; gap: 64px; }
  .collage { padding-bottom: 0; margin-bottom: 72px; }
  .collage .shot-sub { width: 50%; left: -14%; right: auto; bottom: -72px; transform: rotate(-3deg); }
}

/* 2) Şehir: geniş tek ekran */
.feat-wide { margin-top: clamp(80px, 11vw, 150px); }
.feat-wide .feat-copy { margin-bottom: 28px; }
@media (min-width: 900px) { .feat-wide .feat-copy { margin-left: 8%; } }

/* 3) Defile + ev: asimetrik iki hücre */
.bento { display: grid; gap: 24px; margin-top: clamp(64px, 9vw, 120px); }
.tile { border: var(--bw) solid var(--stroke); border-radius: var(--r); overflow: hidden; box-shadow: 7px 7px 0 var(--shadow); display: flex; flex-direction: column; }
.tile-a { background: var(--tint-lilac); }
.tile-b { background: var(--tint-pink); }
.tile-img { border-bottom: var(--bw) solid var(--stroke); }
.tile-txt { padding: 22px 24px 26px; }
.tile-txt h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .3em; }
.tile-txt p { margin: 0; color: var(--muted); }
@media (min-width: 900px) {
  .bento { grid-template-columns: 7fr 5fr; align-items: start; }
  .tile-b { margin-top: 64px; }
}

/* Güvenlik */
.safe { background: var(--bg-2); border-block: 2px solid color-mix(in srgb, var(--stroke) 14%, transparent); }
.safe-grid { display: grid; gap: 36px; }
.safe-head p:not(.age) { color: var(--muted); max-width: 40ch; }
.safe-head a { font-weight: 800; }
.age { display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; border: var(--bw) solid var(--stroke); background: var(--tint-butter); color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 2rem; box-shadow: 5px 5px 0 var(--shadow); transform: rotate(-6deg); margin: 0 0 22px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 40px; }
.points li { padding-top: 16px; border-top: var(--bw) solid var(--accent); }
.points h3 { margin-bottom: .3em; }
.points p { margin: 0; color: var(--muted); }
@media (min-width: 700px) { .points { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .safe-grid { grid-template-columns: 4fr 7fr; gap: 72px; align-items: start; } }

/* Son çağrı: dans ekranı üzerinde koyu perde (her iki temada aynı, görsel kart) */
.cta { position: relative; border: var(--bw) solid var(--stroke); border-radius: var(--r); overflow: hidden; box-shadow: 8px 8px 0 var(--accent); background: #2D1740; color: #FFF2F9; min-height: 360px; display: grid; align-items: end; }
@media (max-width: 899px) { .cta { padding-top: 120px; } }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 15, 42, .2) 0%, rgba(26, 15, 42, .88) 42%, rgba(26, 15, 42, .96) 100%); }
.cta-in { position: relative; z-index: 1; padding: clamp(28px, 5vw, 56px); }
.cta h2 { color: #FFF2F9; }
.cta p { color: #EBDDF5; max-width: 44ch; }
.cta .soon { background: #FFE066; color: #2D1740; border-color: #0B0613; }
@media (min-width: 900px) { .cta { min-height: 460px; } .cta::after { background: linear-gradient(90deg, rgba(26, 15, 42, .94) 0%, rgba(26, 15, 42, .82) 42%, rgba(26, 15, 42, .1) 75%); } .cta-in { max-width: 620px; } }

/* Alt bilgi */
.foot { border-top: 2px solid color-mix(in srgb, var(--stroke) 14%, transparent); padding: 44px 0 calc(40px + env(safe-area-inset-bottom)); font-size: .97rem; }
.foot .wrap { display: grid; gap: 28px; }
.foot-brand p { margin: 8px 0 0; color: var(--muted); }
.foot-brand .brand img { height: 44px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: none; }
.foot nav a:hover { color: var(--accent-text); text-decoration: underline; }
@media (min-width: 860px) { .foot .wrap { grid-template-columns: 1fr 1.3fr; align-items: start; } .foot ul { grid-template-columns: repeat(3, auto); justify-content: end; } }

/* Görünüme girme ve hero girişi (yalnızca hareket tercihi açıksa) */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .collage .shot-sub { transition: transform .9s cubic-bezier(.16, 1, .3, 1) .15s; }
  .hero-art { animation: rise .8s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-dock { animation: rise .8s cubic-bezier(.16, 1, .3, 1) .12s both; }
  .shot, .tile { transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
  .tile:hover { transform: translateY(-4px); }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

/* Metin sayfaları */
.doc { padding: 40px 0 72px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { margin-top: 1.8em; font-size: 1.5rem; }
.doc h3 { margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.4em; margin: 0 0 1em; }
.doc li { margin-bottom: .4em; }
.doc blockquote { margin: 1em 0; padding: 12px 18px; border-left: 5px solid var(--accent); background: var(--surface); border-radius: 0 14px 14px 0; }
.doc hr { border: 0; border-top: 2px solid color-mix(in srgb, var(--stroke) 16%, transparent); margin: 2em 0; }
.doc .lead { max-width: none; }
.doc code { font-size: .92em; background: var(--tint-lilac); padding: 1px 6px; border-radius: 6px; }
.tablewrap { overflow-x: auto; margin: 1em 0; border: 2px solid color-mix(in srgb, var(--stroke) 22%, transparent); border-radius: 16px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1.5px solid color-mix(in srgb, var(--stroke) 12%, transparent); }
th { background: var(--tint-lilac); font-family: var(--font-head); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.note { background: var(--tint-butter); border: 2px solid var(--stroke); border-radius: 16px; padding: 12px 18px; margin: 0 0 1.4em; }
.meta { color: var(--muted); font-size: .97rem; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 14px 54px; margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; border: var(--bw) solid var(--stroke); background: var(--accent); color: #2D1740; font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; }
details { border: 2px solid color-mix(in srgb, var(--stroke) 22%, transparent); border-radius: 16px; background: var(--surface); margin-bottom: 12px; }
summary { cursor: pointer; padding: 14px 18px; font-weight: 800; min-height: 48px; }
details[open] summary { border-bottom: 2px solid color-mix(in srgb, var(--stroke) 12%, transparent); }
details > div { padding: 14px 18px 4px; }
