/*
 * alperakar.com — 01.10.2026 üçüncü tasarım (FAZ 3; Alper: "site mobilde farklı, desktopda farklı... kafana göre yap").
 * Tek kural: masaüstü ve telefon aynı yapıyı kullanır, ekran daralınca yalnız sütun sayısı azalır. Yazı hiçbir
 * zaman resmin üstüne binmez: resim üstte, yazı altta. Renkler ve yazı tipi önceki tasarımdan (gece mavisi, altın,
 * Plus Jakarta Sans, OFL). Dış istek, betik, çerez, satır içi stil yok (CSP).
 */
@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #070b14;
  --panel: #0e1421;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3efe6;
  --soft: #cfd7ea;
  --muted: #97a2b6;
  --gold: #ffb31f;
  --gold-2: #ffcf5c;
  --ink: #1a1204;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: clamp(18px, 2vw, 24px);
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------------- Üst çubuk: her sayfada ve her ekranda aynı ---------------- */
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13px; letter-spacing: 0.2em; white-space: nowrap; }
.logo img { width: 28px; height: 28px; }
.nav nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 32px); }
.nav nav a { font-weight: 600; font-size: 15px; color: var(--soft); transition: color 0.15s ease; }
.nav nav a:hover,
.nav nav a[aria-current="page"] { color: var(--gold); }

/* ---------------- Ortak parçalar ---------------- */
.kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.label { font-size: 13px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.lead { color: var(--soft); font-size: clamp(16px, 1.5vw, 18px); max-width: 60ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px;
  font-weight: 800; font-size: 15px; white-space: nowrap; border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); }
.btn-line { border-color: rgba(255, 255, 255, 0.25); color: var(--text); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.btn-soon { background: rgba(255, 255, 255, 0.07); border-color: var(--line); color: var(--soft); cursor: default; }
.btn-soon:hover { transform: none; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pills li { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--soft); }

/* Oyun sanatının kırpılacağı yer (satır içi stil yasak olduğu için sınıfla) */
.odak-lunagol { object-position: 78% 50%; }
.odak-globall { object-position: 50% 45%; }
.odak-nightdesk { object-position: 46% 50%; }
.odak-lobi { object-position: 40% 50%; }

/* ---------------- Giriş (ana sayfa, oyunlar sayfası) ---------------- */
.intro { display: grid; gap: 16px; padding: clamp(24px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.intro h1 { font-size: clamp(36px, 5.4vw, 64px); max-width: 16ch; }

/* ---------------- Oyun kartları: 3 sütun → 2 → 1 ---------------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 179, 31, 0.45); }
.card .art { aspect-ratio: 16 / 10; overflow: hidden; background: #0b1020; }
.card .art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .art img { transform: scale(1.04); }
.card .body { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px 22px; flex: 1; }
.card .head { display: flex; gap: 14px; align-items: center; }
.card .icon { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.card h2, .card h3 { font-size: 24px; letter-spacing: -0.03em; margin-top: 2px; }
.card h2 a::after, .card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .sub { color: var(--muted); font-size: 14px; font-weight: 600; margin-top: 3px; }
.card .desc { color: var(--soft); font-size: 15px; flex: 1; }
.card .btn { position: relative; z-index: 2; align-self: flex-start; }

/* ---------------- Hakkında ---------------- */
.about {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px 64px; align-items: start;
  margin-top: clamp(56px, 8vw, 96px); padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line);
}
.about h2 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 10px; }
.about p { color: var(--soft); }
.promises { list-style: none; margin: 20px 0 28px; padding: 0; display: grid; gap: 10px; }
.promises li { display: flex; gap: 12px; align-items: baseline; color: var(--soft); font-weight: 600; }
.promises li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; transform: translateY(-2px); }

/* ---------------- Oyun sayfası: sanat üstte, kimlik altta ---------------- */
.crumbs { color: var(--muted); font-size: 14px; padding: 4px 0 18px; }
.crumbs a:hover { color: var(--gold); }
.game-top { display: grid; gap: 22px; }
.game-art { aspect-ratio: 21 / 9; max-height: min(56vh, 520px); width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0b1020; }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.game-id { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; }
.game-id .icon { width: clamp(64px, 6vw, 84px); height: clamp(64px, 6vw, 84px); border-radius: 20px; flex: none; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); }
.game-id .names { flex: 1 1 260px; }
.game-id h1 { font-size: clamp(38px, 5vw, 60px); margin-top: 6px; }
.game-id .sub { color: var(--soft); font-weight: 700; font-size: clamp(16px, 1.6vw, 20px); margin-top: 4px; letter-spacing: -0.01em; }

.section { padding-top: clamp(48px, 7vw, 88px); }
.story { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px 56px; align-items: start; }
.story p { color: var(--soft); margin: 0 0 16px; font-size: 17px; }
.facts { margin: 0; padding: 24px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: grid; gap: 16px; }
.facts dt { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.facts dd { margin: 4px 0 0; color: var(--text); font-weight: 500; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.features article { padding: 22px 22px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.features b { display: block; color: var(--gold); font-size: 13px; letter-spacing: 0.14em; margin-bottom: 10px; }
.features h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }

/* Oyun görüntüleri yatay telefon çerçevesinde (Alper 29.09: "telefon ekranı detayını sevdim") */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px) clamp(20px, 2.6vw, 36px); }
.shots figure { margin: 0; }
.shots figcaption { color: var(--text); font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; line-height: 1.5; margin-top: 14px; text-align: center; }
.shots figcaption b { color: var(--gold); font-weight: 800; }
.phone {
  position: relative; background: #0b0b0d; border-radius: 30px; padding: 10px 12px;
  box-shadow: 0 0 0 1.5px #2a2d35, 0 30px 60px -24px rgba(0, 0, 0, 0.85), inset 0 0 0 1px #000;
}
.phone::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%; background: #1c1f27; box-shadow: 0 0 0 1px #2d313b;
}
.phone img { border-radius: 20px; width: 100%; }

.links { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); padding-bottom: clamp(56px, 8vw, 96px); }
.link-card { display: block; padding: 24px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: border-color 0.18s ease; }
.link-card:hover { border-color: var(--gold); }
.link-card h2, .link-card h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; }
.link-card p { margin: 0 0 12px; color: var(--muted); }
.link-card span { font-weight: 800; color: var(--gold); }

/* ---------------- Metin sayfaları (gizlilik) ---------------- */
.page { padding: 8px 0 clamp(56px, 8vw, 96px); }
.policy { display: grid; grid-template-columns: 200px 1fr; gap: 28px 64px; }
.policy aside { position: sticky; top: 32px; align-self: start; color: var(--muted); font-size: 14px; }
.policy aside img { width: 96px; border-radius: 24px; margin-bottom: 14px; }
.policy aside p { margin: 0 0 6px; }
.policy aside a { color: var(--gold); font-weight: 700; }
.prose { max-width: 740px; }
.prose h1 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 12px; }
.prose h2 { font-size: 21px; letter-spacing: -0.015em; margin: 36px 0 10px; }
.prose h3 { font-size: 19px; letter-spacing: -0.015em; line-height: 1.2; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--soft); }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0 14px; }
.muted { color: var(--muted) !important; font-size: 15px; }
.policy-lang { font-size: clamp(28px, 3vw, 38px) !important; }

/* ---------------- 404 ---------------- */
.notfound { display: grid; gap: 16px; padding-bottom: clamp(56px, 8vw, 96px); }
.notfound .game-art { margin-bottom: 8px; }
.notfound h1 { font-size: clamp(36px, 5vw, 60px); }

/* ---------------- Alt bilgi ---------------- */
.footer { border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a:hover { color: var(--gold); }

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

/* ---------------- Uyarlama: yapı aynı, sütun sayısı azalır ---------------- */
@media (max-width: 1023px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .about, .story, .policy { grid-template-columns: 1fr; }
  .shots, .links { grid-template-columns: 1fr; }
  .game-art { aspect-ratio: 16 / 10; }
  .policy aside { position: static; display: flex; align-items: center; gap: 14px; }
  .policy aside img { width: 60px; border-radius: 16px; margin: 0; }
  .policy aside p { margin: 0; }
}
@media (max-width: 640px) {
  .grid, .features { grid-template-columns: 1fr; }
  .nav .wrap { height: 68px; }
  .phone { border-radius: 22px; padding: 7px 9px; }
  .phone img { border-radius: 15px; }
  .footer .wrap { flex-direction: column; }
}
@media (max-width: 380px) {
  .nav nav a.opt { display: none; }
}

/* Oyunlar sayfasında kartlar sayfanın son öğesi: alt bilgiyle arasında boşluk */
main.wrap > .grid:last-child { margin-bottom: clamp(56px, 8vw, 96px); }

/* Dikey oyunların ekran görüntüleri (Mundle, Dice Delve): dört sütun, telefonda iki */
.shots.dikey { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .shots.dikey { grid-template-columns: 1fr 1fr; } }

/* ---------------- 02.10.2026 SEO turu: 10 dil, dil menüsü, oyun rehberi, SSS, çağrı bandı ---------------- */
body { overflow-wrap: break-word; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Dil menüsü: betiksiz açılır liste (details/summary); yalnız sayfanın var olan dilleri */
.lang { position: relative; }
.lang summary {
  list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--soft); font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; transition: color 0.15s ease, border-color 0.15s ease;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::marker { content: ""; }
.lang summary:hover, .lang[open] summary { color: var(--gold); border-color: rgba(255, 179, 31, 0.5); }
.lang summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.lang svg { flex: none; }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 20; min-width: 210px; margin: 0; padding: 8px;
  list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.85);
}
.nav nav .lang li a { display: block; padding: 8px 12px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--soft); }
.nav nav .lang li a:hover { background: rgba(255, 255, 255, 0.06); color: var(--gold); }
.nav nav .lang li a[aria-current] { color: var(--gold); }

/* Oyun adının altındaki mağaza alt başlığı h1'in içinde (arama için), görünüşü eski .sub ile aynı */
.game-id h1 .h1-sub { display: block; margin-top: 6px; color: var(--soft); font-weight: 700; font-size: clamp(16px, 1.6vw, 20px); letter-spacing: -0.01em; line-height: 1.3; }
.story .label { margin-bottom: 18px; }
.facts dd a { color: var(--gold); font-weight: 700; }

/* Nasıl oynanır: mağaza metninin bölümleri (kart) ve uzun listeler (iki sütun) */
.guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.guide article, .inside { padding: 22px 24px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.guide h3, .inside h3 { font-size: 12.5px; font-weight: 800; letter-spacing: 0.16em; line-height: 1.4; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.guide p, .guide li { color: var(--soft); font-size: 15.5px; }
.guide p + p { margin-top: 10px; }
.guide ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.features + .guide, .features + .inside, .guide + .inside, .inside + .inside { margin-top: clamp(12px, 1.6vw, 20px); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.checklist li { display: flex; gap: 12px; align-items: baseline; color: var(--soft); }
.checklist li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; transform: translateY(-2px); }

/* Sık sorulan sorular */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); }
.faq article { padding: 22px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.faq h3 { font-size: 18px; letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 8px; }
.faq p { color: var(--soft); }

/* Sayfa sonu çağrısı: ikon, oyunun kapanış cümlesi, Play düğmesi */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; padding: 24px 28px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(255, 179, 31, 0.13), rgba(255, 255, 255, 0.02)); border: 1px solid rgba(255, 179, 31, 0.35);
}
.cta .icon { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.cta-text { flex: 1 1 260px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }

/* Giriş metni kısaysa (mağaza metninde tek paragraf): yazı tam genişlikte, bilgiler altında yatay ızgara */
.story.kisa { grid-template-columns: 1fr; }
.story.kisa p { max-width: 72ch; }
.story.kisa .facts { grid-template-columns: repeat(4, 1fr); gap: 18px 28px; }
@media (max-width: 1023px) { .story.kisa .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .story.kisa .facts { grid-template-columns: 1fr; } }

/* Kartta oyunun bu dilde olmadığını söyleyen not; alt bilgide gizlilik satırı; 404'te diller */
.card .note { color: var(--muted); font-size: 13px; }
.footer .footer-privacy { flex-basis: 100%; gap: 6px 18px; font-size: 13px; }
.footer .footer-privacy span { color: var(--muted); }
.langs404 { margin-top: 18px; }
.langs404 a:hover { color: var(--gold); }

/* Japonca ve Korece: yazı tipi zinciri, satır kırma, harf aralığı */
html:lang(ja) body { font-family: "Jakarta", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", system-ui, sans-serif; line-break: strict; }
html:lang(ko) body { font-family: "Jakarta", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; word-break: keep-all; }
html:lang(ja) :is(h1, h2, h3, .cta-text), html:lang(ko) :is(h1, h2, h3, .cta-text) { letter-spacing: 0; line-height: 1.3; }
html:lang(ja) .intro h1, html:lang(ko) .intro h1 { max-width: 15em; }
html:lang(ja) :is(.kicker, .label, .guide h3, .inside h3, .shots figcaption), html:lang(ko) :is(.kicker, .label, .guide h3, .inside h3, .shots figcaption) { letter-spacing: 0.04em; }
html:lang(ja) .label, html:lang(ko) .label { font-size: 15px; color: var(--soft); }
html:lang(ja) .kicker, html:lang(ko) .kicker { font-size: 13px; }

@media (max-width: 1023px) {
  .guide { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .faq, .checklist { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .guide { grid-template-columns: 1fr; }
  .cta { padding: 20px; }
}
/* Telefonda üst çubuk sığsın: "Hakkında" gizlenir, dil düğmesinde yalnız dünya simgesi, logo yazısı küçülür */
@media (max-width: 520px) {
  .nav nav a.opt { display: none; }
  .lang summary span { display: none; }
  .lang summary { padding: 7px; }
  .logo { font-size: 12px; letter-spacing: 0.14em; gap: 8px; }
}
@media (max-width: 340px) {
  .logo span { display: none; }
}
