/*
 * FEASTEK SİTESİ — STİL
 *
 * İKİ KATMAN. Sitenin kabuğu (üst çubuk, bölümler, düğmeler, alt bilgi)
 * Feastek'in sade kimliğini taşıyor: koyu çubuklar, beyaz ve açık gri
 * bölümler, sistemin kendi yazı tipi. Renk ve oyun hissi yalnızca oyunların
 * kendi alanlarından geliyor: tanıtım görseli (`.keyart-*`), oyun kartının
 * görseli ve ekran görüntüleri. Stüdyo birden fazla oyun yayınlayacağı için
 * kabuk hiçbir oyunun renginde değil; her oyun kendi görselini getiriyor.
 *
 * Gövde yazısı sistem yazı tipi: dosya indirmeden her platformda tanıdık bir
 * web sayfası görünümü veriyor. Oyunun Baloo 2 yazı tipi yalnızca oyunun
 * kelime markasında kullanılıyor.
 */

/* Oyunun kelime markası için: yalnızca latin ve latin-ext. */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url('/fonts/baloo-2-latin-800-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url('/fonts/baloo-2-latin-ext-800-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  --ink: #0e1116;
  --ink-soft: #1a1f27;
  --paper: #ffffff;
  --mist: #f3f5f8;
  --text: #14171c;
  --muted: #5b6573;
  --line: #e2e6ec;
  --on-ink: #ffffff;
  --on-ink-muted: #aab2bf;

  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

/*
 * Bölüm bağlantısıyla (`#delete-account`, politikanın silme bölümü) açılan
 * sayfada hedef, yapışkan üst çubuğun altında kalmasın diye çubuğun boyu
 * kadar aşağıda duruyor. Çubuk telefonda iki satır, geniş ekranda tek satır.
 */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

@media (min-width: 760px) {
  html {
    scroll-padding-top: 84px;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
}

main {
  flex: 1;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid #2f7cf6;
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 20px;
}

.container.narrow {
  max-width: 48rem;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

/*
 * ÜST ÇUBUK — marka, menü, dil.
 *
 * Telefonda menü ikinci satıra iniyor: üç kısa bağlantı sığıyor ve açılır menü
 * betik gerektirirdi, site betik çalıştırmıyor.
 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--ink);
  color: var(--on-ink);
}

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'brand lang'
    'nav nav';
  align-items: center;
  gap: 6px 16px;
  padding-top: 14px;
  padding-bottom: 10px;
}

.brand {
  grid-area: brand;
  color: var(--on-ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.primary-nav {
  grid-area: nav;
  display: flex;
  gap: 22px;
}

.primary-nav a,
.lang-switch a {
  color: var(--on-ink-muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.primary-nav a:hover,
.lang-switch a:hover {
  color: var(--on-ink);
}

.lang-switch {
  grid-area: lang;
  display: flex;
  gap: 12px;
}

.lang-switch a[aria-current='page'] {
  color: var(--on-ink);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

@media (min-width: 760px) {
  .header-bar {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 'brand nav lang';
    gap: 32px;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 68px;
  }

  .primary-nav {
    gap: 28px;
  }
}

/* DÜĞMELER — düz, köşeli web düğmeleri. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 120ms ease,
    color 120ms ease,
    border-color 120ms ease;
}

.btn-dark {
  background: var(--ink);
  color: var(--on-ink);
}

.btn-dark:hover {
  background: #2a313c;
}

.btn-light {
  background: var(--paper);
  color: var(--text);
}

.btn-light:hover {
  background: #dfe4ea;
}

.btn-outline {
  border-color: var(--ink);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--on-ink);
}

.btn-outline-light {
  border-color: rgb(255 255 255 / 0.6);
  color: var(--on-ink);
}

.btn-outline-light:hover {
  border-color: var(--on-ink);
  background: rgb(255 255 255 / 0.08);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* BÖLÜMLER */
.section {
  padding: 72px 0;
}

.section-mist {
  background: var(--mist);
}

.section-ink {
  background: var(--ink);
  color: var(--on-ink);
}

.section-title {
  margin: 0 0 36px;
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-title.align-start {
  text-align: left;
  margin-bottom: 16px;
}

.prose p,
.lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 18px;
}

/*
 * TELEFON ÇERÇEVESİ — oyun ekran görüntüleri.
 *
 * Görüntüler oyunun gerçek ekranları; çerçeve yalnızca telefonda nasıl
 * göründüğünü anlatıyor, süs değil.
 */
.phone {
  margin: 0;
  width: 100%;
  max-width: 280px;
  padding: 9px;
  border-radius: 40px;
  background: #0b0d12;
  box-shadow: 0 24px 60px rgb(14 17 22 / 0.28);
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 31px;
}

/* STÜDYO SAYFASI — giriş */
.hero-studio {
  background: var(--ink);
  color: var(--on-ink);
  padding: 64px 0 72px;
  overflow: hidden;
}

.hero-studio-grid {
  display: grid;
  gap: 44px;
  justify-items: center;
}

.hero-studio-text {
  max-width: 36rem;
}

.hero-studio h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6.4vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-studio p {
  margin: 0 0 30px;
  color: var(--on-ink-muted);
  font-size: 19px;
}

.hero-studio-phone {
  max-width: 250px;
}

@media (min-width: 900px) {
  .hero-studio {
    padding: 88px 0 0;
  }

  .hero-studio-grid {
    grid-template-columns: 1fr auto;
    align-items: end;
    justify-items: start;
  }

  .hero-studio-text {
    align-self: center;
    padding-bottom: 88px;
  }

  /* Telefon bölümün altından taşarak kesiliyor; ekranın üst yarısı görünüyor. */
  .hero-studio-phone {
    max-width: 300px;
    margin-bottom: -180px;
  }
}

/* OYUN KARTLARI */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 24px;
}

.game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.game-card-art {
  display: grid;
  place-items: center;
  min-height: 220px;
  text-decoration: none;
}

.game-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 24px 26px;
}

.game-card-body h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.game-card-body h3 a {
  text-decoration: none;
}

.game-card-body p {
  margin: 0;
  color: var(--muted);
}

/* Büyük harfe çevrilmiyor: Türkçe kuralla "Android" markası "ANDROİD" oluyordu. */
.game-card-meta {
  font-size: 15px;
  font-weight: 700;
}

.game-card-body .btn {
  margin-top: 12px;
}

/*
 * TEK OYUN — kart bütün genişliğe yayılıyor ve yatay diziliyor. Dar bir kart
 * sayfanın solunda tek başına kalıp sağ tarafı boş bırakıyordu. İkinci oyun
 * eklenince kartlar kendiliğinden ızgaraya dönüyor.
 */
@media (min-width: 760px) {
  .game-card:only-child {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .game-card:only-child .game-card-art {
    flex: 1 1 55%;
    min-height: 320px;
  }

  .game-card:only-child .game-card-body {
    flex: 1 1 45%;
    justify-content: center;
    padding: 40px 44px;
  }

  .game-card:only-child .game-card-art .game-wordmark {
    font-size: 40px;
  }
}

/*
 * OYUNUN TANITIM GÖRSELİ — GuessChallenge.
 *
 * Oyunun kendi zemini: okyanus degradesi ve nişanı yankılayan eş merkezli
 * halkalar. Yalnızca oyunun alanlarında kullanılıyor.
 */
.keyart-guesschallenge {
  position: relative;
  color: #ffffff;
  background:
    radial-gradient(58% 40% at 50% -6%, rgb(60 210 240 / 0.32), transparent 72%),
    repeating-radial-gradient(circle at 50% 42%, transparent 0 48px, rgb(190 235 255 / 0.08) 48px 49.5px),
    radial-gradient(125% 90% at 50% -10%, #1466c4, #062058);
}

.keyart {
  padding: 72px 0 64px;
}

.keyart-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.keyart-title {
  margin: 0;
}

.keyart-tagline {
  margin: 0;
  color: #d6f1ff;
  font-size: 20px;
  font-weight: 700;
}

.game-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.game-wordmark {
  font-family: 'Baloo 2', ui-rounded, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 8vw, 64px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.game-card-art .game-wordmark {
  font-size: 30px;
}

.game-card-art .game-logo {
  gap: 10px;
}

/* OYUN SAYFASI — telefon ve özet yan yana */
.split {
  display: grid;
  gap: 40px;
  justify-items: center;
}

.split-text {
  max-width: 34rem;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 72px;
    justify-items: start;
  }
}

/* NASIL OYNANIR — dört adım, her biri bir ekranla */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 40px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.step .phone {
  max-width: 230px;
  margin: 0 auto 22px;
}

.step-number {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/*
 * Telefonda adımlar yana kayan bir şerit: dört uzun ekran alt alta dizildiğinde
 * bölüm birkaç ekran boyu uzuyordu. Şerit kendi içinde kayıyor, sayfa yana
 * taşmıyor; her adım ortada durarak yerine oturuyor.
 */
@media (max-width: 759px) {
  .steps {
    display: flex;
    gap: 16px;
    margin: 0 -20px;
    padding: 0 20px 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
  }

  .step {
    flex: 0 0 78%;
    scroll-snap-align: center;
  }
}

/* ÖZELLİKLER */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

/* DESTEK BANDI */
.support {
  text-align: center;
}

.support p {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--on-ink-muted);
  font-size: 18px;
}

.support .actions {
  justify-content: center;
}

/* GİZLİLİK POLİTİKASI — okunur genişlikte belge */
.doc {
  padding: 36px 24px 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-size: 16px;
  line-height: 1.7;
}

.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.doc h2 {
  margin: 36px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 22px;
  line-height: 1.3;
}

.doc h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.doc p,
.doc ul {
  margin: 10px 0;
}

.doc ul {
  padding-left: 22px;
}

.doc a {
  color: #1f5fd1;
  font-weight: 600;
}

.doc code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--mist);
  font-size: 0.92em;
}

.doc hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

/* Ayraçtan hemen sonra gelen başlık kendi çizgisini çizmiyor; iki çizgi üst üste binerdi. */
.doc hr + h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.doc blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--line);
  background: var(--mist);
  color: var(--muted);
}

/* Tablolar dar ekranda KENDİ İÇİNDE kayıyor; sayfanın tamamı yana kaymıyor. */
.doc .scroll {
  overflow-x: auto;
  margin: 14px 0;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.doc th,
.doc td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc th {
  background: var(--mist);
}

@media (min-width: 760px) {
  .doc {
    padding: 48px 56px 56px;
  }
}

/* DESTEK SAYFASI — başlık bandı, sık sorulan sorular, hesap silme */
.page-head {
  padding: 56px 0 44px;
  background: var(--ink);
  color: var(--on-ink);
}

.page-head h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5.6vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.page-head .lead {
  color: var(--on-ink-muted);
}

.page-head .actions {
  margin-top: 22px;
}

.page-hint {
  margin: 16px 0 0;
  color: var(--on-ink-muted);
  font-size: 15px;
}

.page-hint strong {
  color: var(--on-ink);
}

.page-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-soft);
}

.page-toc a {
  color: var(--on-ink);
  font-weight: 700;
  text-underline-offset: 5px;
}

.page-toc a:hover {
  text-decoration-thickness: 2px;
}

/*
 * Sorular tarayıcının kendi açılır öğesi. Varsayılan üçgen yerine sağda bir ok
 * duruyor: kapalıyken aşağı, açıkken yukarı bakıyor ve sorunun açıldığını
 * söyleyen tek işaret o.
 */
.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 2px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 150ms ease;
}

.faq-item[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.faq-item summary:hover {
  color: #2a313c;
}

.faq-item p {
  margin: 0 0 22px;
  padding: 0 2px;
  color: var(--muted);
}

.faq-item strong,
.delete-card strong {
  color: var(--text);
}

.faq-item code,
.delete-card code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--mist);
  font-size: 0.92em;
}

.delete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 20px;
  margin-top: 28px;
}

.delete-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.delete-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
}

.delete-card p,
.delete-card ul,
.delete-card ol {
  margin: 0 0 14px;
  color: var(--muted);
}

.delete-card ul,
.delete-card ol {
  padding-left: 22px;
}

.delete-card li + li {
  margin-top: 8px;
}

.delete-steps li::marker {
  color: var(--text);
  font-weight: 800;
}

/* Kartlardaki düğme kartın dibine oturuyor; iki kart yan yanayken aynı hizada. */
.delete-card .btn {
  margin-top: auto;
}

.delete-more {
  margin: 24px 0 0;
  color: var(--muted);
}

.delete-more a {
  color: #1f5fd1;
  font-weight: 600;
}

/* BULUNAMAYAN SAYFA */
.not-found {
  text-align: center;
}

.not-found-code {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.not-found h1 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.02em;
}

.not-found p {
  margin: 4px 0;
  color: var(--muted);
}

.not-found .actions {
  justify-content: center;
}

/* ALT BİLGİ */
.site-footer {
  background: var(--ink);
  color: var(--on-ink-muted);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 32px 28px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.footer-brand {
  grid-column: 1 / -1;
}

.footer-brand p {
  max-width: 26rem;
  margin: 10px 0 0;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-title {
  margin: 0 0 4px;
  color: var(--on-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--on-ink-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--on-ink);
  text-decoration: underline;
}

.site-footer .brand {
  color: var(--on-ink);
}

.footer-bottom {
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--ink-soft);
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.6fr repeat(4, 1fr);
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
