/* Ortak stil. Renkler Kelime Mozaiği uygulamasıyla aynı (lib/core/theme.dart). */

@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/Nunito.ttf') format('truetype');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bg-top: #1b3a5c;
  --bg-bottom: #3b2a66;
  --accent: #ff9f1c;
  --accent-edge: #d97a08;
  --tile: #fffcf5;
  --tile-edge: #d8cfbf;
  --ink: #23233b;
  --muted: rgba(255, 255, 255, 0.72);
  --card: rgba(255, 255, 255, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #fff;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom)) fixed;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* Üst menü */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 18px;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 700; }
.top nav a:hover, .top nav a[aria-current='page'] { color: #fff; }

/* Oyundaki gibi harf karoları */
.tiles { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; }
.tiles span { display: flex; gap: 6px; }
.tiles b {
  display: grid;
  place-items: center;
  width: clamp(34px, 9vw, 58px);
  aspect-ratio: 1;
  border-radius: 22%;
  font-size: clamp(20px, 5.4vw, 34px);
  font-weight: 1000;
  line-height: 1;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 0 var(--accent-edge), 0 8px 16px rgba(10, 10, 30, 0.35);
}
.tiles span + span b {
  background: var(--tile);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--tile-edge), 0 8px 16px rgba(10, 10, 30, 0.35);
}

/* Tanıtım */
.hero { text-align: center; padding-block: 40px 24px; }
.hero .icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.hero h1 { margin: 28px 0 0; }
.tagline { font-size: clamp(20px, 3.2vw, 26px); font-weight: 800; margin: 28px 0 6px; }
.lead { color: var(--muted); max-width: 560px; margin: 0 auto; }
.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  font-weight: 800;
}

.shots {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  padding-block: 32px 8px;
}
.shots img {
  width: min(260px, 30vw);
  height: auto;
  border-radius: clamp(14px, 3.2vw, 34px);
  border: clamp(3px, 0.8vw, 8px) solid #0d1020;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.shots img:nth-child(2) { transform: translateY(-18px); }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  padding-block: 40px;
  margin: 0;
  list-style: none;
}
.features li { background: var(--card); border-radius: var(--radius); padding: 20px 22px; }
.features h3 { margin: 0 0 4px; font-size: 19px; font-weight: 900; }
.features p { margin: 0; color: var(--muted); }
.features .emoji { font-size: 26px; display: block; margin-bottom: 6px; }

/* ---------- Belge sayfaları (gizlilik, destek) ---------- */

.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.125em; }

.page-head { padding-block: 28px 8px; }
.crumbs { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.page-head h1 { margin: 0; font-size: clamp(32px, 5.4vw, 52px); line-height: 1.1; font-weight: 1000; letter-spacing: -0.01em; }
.page-head .lead { margin: 12px 0 0; max-width: 640px; font-size: 19px; text-align: left; }
.stamp {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); font-size: 14px; font-weight: 700; color: var(--muted);
}

/* "Bir bakışta" kartları */
.glance {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px;
  margin: 28px 0 8px; padding: 0; list-style: none;
}
.glance li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 900px) { .glance { grid-template-columns: repeat(3, 1fr); } }
.glance strong { display: block; font-size: 17px; font-weight: 900; }
.glance span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.badge {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 12px; font-size: 22px;
  background: var(--accent); color: #fff; box-shadow: 0 3px 0 var(--accent-edge);
}
.badge.light { background: var(--tile); color: var(--ink); box-shadow: 0 3px 0 var(--tile-edge); }

/* İçindekiler + metin */
.doc-layout { display: grid; gap: 24px; margin-block: 24px 48px; align-items: start; }
@media (min-width: 960px) { .doc-layout { grid-template-columns: 250px 1fr; } }

.toc {
  background: var(--card); border-radius: var(--radius); padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.toc summary { cursor: pointer; font-weight: 900; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--muted); }
.toc[open] summary::after { content: '−'; }
.toc ol { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 10px; padding: 6px 8px; margin-inline: -8px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.35;
}
.toc a::before { content: counter(toc); min-width: 1.4em; color: var(--accent); font-weight: 900; }
.toc a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
@media (min-width: 960px) {
  .toc { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; }
  .toc summary { pointer-events: none; }
  .toc summary::after { content: none; }
}

.doc {
  background: var(--tile); color: var(--ink);
  border-radius: 24px; padding: clamp(22px, 4.5vw, 52px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  min-width: 0;
}
.doc > :first-child { margin-top: 0; }
.doc section + section { margin-top: 40px; padding-top: 32px; border-top: 1px solid #ebe4d6; }
.doc h2 {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(21px, 2.6vw, 25px); line-height: 1.25; margin: 0 0 12px; font-weight: 1000;
  scroll-margin-top: 20px;
}
.doc h2 .n {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 9px; font-size: 17px;
  background: var(--accent); color: #fff; box-shadow: 0 3px 0 var(--accent-edge);
}
.doc h3 { font-size: 18px; margin: 22px 0 6px; font-weight: 900; }
.doc p { margin: 0 0 12px; }
.doc a { color: #b45f00; font-weight: 700; }
.doc ul { margin: 0 0 12px; padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--accent); }
.doc .callout {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff1d6; border-radius: 14px; padding: 16px 18px; margin: 16px 0;
}
.doc .callout .i { font-size: 22px; color: #c46a00; margin-top: 2px; }
.doc .callout p:last-child { margin-bottom: 0; }
.doc kbd {
  font: inherit; font-weight: 800; font-size: 0.92em;
  padding: 1px 7px; border-radius: 6px; background: #efe8da; white-space: nowrap;
}

/* Veri tablosu; dar ekranda kartlara dönüşür */
.data { width: 100%; border-collapse: separate; border-spacing: 0; margin: 12px 0 16px; font-size: 15px; line-height: 1.5; }
.data th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: #6b6b80; padding: 0 12px 10px; }
.data td { vertical-align: top; padding: 14px 12px; border-top: 1px solid #ebe4d6; }
.data td:first-child { font-weight: 900; }
.data td small { display: block; font-weight: 600; color: #6b6b80; }
@media (max-width: 760px) {
  .data thead { display: none; }
  .data, .data tbody, .data tr, .data td { display: block; }
  .data tr { border: 1px solid #ebe4d6; border-radius: 14px; padding: 6px 14px; margin-bottom: 12px; background: #fff; }
  .data td { border: 0; padding: 8px 0; }
  .data td + td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #6b6b80; }
}

.rights { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 12px 0 16px; padding: 0; list-style: none; }
.rights li { margin: 0 !important; background: #fff; border: 1px solid #ebe4d6; border-radius: 12px; padding: 10px 14px; font-size: 15px; line-height: 1.45; }

.steps { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; }
.steps li { margin: 0 !important; display: flex; gap: 12px; align-items: baseline; background: #fff; border: 1px solid #ebe4d6; border-radius: 12px; padding: 10px 14px; }
.steps li strong { min-width: 150px; }
@media (max-width: 560px) { .steps li { flex-direction: column; gap: 2px; } }

/* İletişim kartı */
.contact-card {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  margin-top: 8px; padding: 22px 24px; border-radius: 18px;
  background: linear-gradient(135deg, var(--bg-top), var(--bg-bottom)); color: #fff;
}
.contact-card h3 { margin: 0; color: #fff; font-size: 20px; }
.contact-card p { margin: 4px 0 0; color: var(--muted); }
.contact {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 14px;
  background: var(--accent); color: #fff !important; font-weight: 900; text-decoration: none;
  box-shadow: 0 4px 0 var(--accent-edge);
  transition: transform 0.12s;
}
.contact:hover { transform: translateY(-1px); }
.contact:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--accent-edge); }

/* Destek: arama, konular, SSS */
.search {
  display: flex; align-items: center; gap: 12px; margin-top: 24px; max-width: 560px;
  padding: 4px 6px 4px 18px; border-radius: 16px; background: #fff; color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.search .i { font-size: 20px; color: #8a8aa0; }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 17px; padding: 12px 0; color: var(--ink);
}
.search:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }

.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.topics a {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 16px; border-radius: var(--radius); text-decoration: none; color: #fff; font-weight: 900;
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s, transform 0.15s;
}
.topics a:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
.topics small { display: block; color: var(--muted); font-weight: 600; font-size: 14px; }

.faq-group + .faq-group { margin-top: 36px; }
.faq-group h2 { scroll-margin-top: 20px; }
.faq details { border-bottom: 1px solid #ebe4d6; }
.faq details:first-of-type { border-top: 1px solid #ebe4d6; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 4px; cursor: pointer; list-style: none; font-weight: 800; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2.5px solid #9a8f7c; border-bottom: 2.5px solid #9a8f7c;
  transform: rotate(45deg) translateY(-3px); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: #b45f00; }
.faq .answer { padding: 0 4px 18px; }
.faq .answer > :last-child { margin-bottom: 0; }
.coins { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 8px; margin: 8px 0 12px; padding: 0; list-style: none; }
.coins li { margin: 0 !important; background: #fff; border: 1px solid #ebe4d6; border-radius: 12px; padding: 10px 12px; font-size: 15px; line-height: 1.35; }
.coins b { display: block; font-size: 18px; color: #b45f00; }
.no-results { display: none; padding: 24px; text-align: center; color: #6b6b80; }
.no-results.show { display: block; }
[hidden] { display: none !important; }

/* Kök sayfa: oyun kartları */
.games { display: grid; gap: 16px; padding-block: 24px 40px; }
.game-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card);
  color: #fff;
  text-decoration: none;
}
.game-card:hover { background: rgba(255, 255, 255, 0.13); }
.game-card img { width: 84px; height: 84px; border-radius: 20px; flex: none; }
.game-card h2 { margin: 0; font-size: 22px; font-weight: 900; }
.game-card p { margin: 2px 0 0; color: var(--muted); }

footer {
  padding-block: 28px 40px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}
footer a { color: var(--muted); }
footer nav { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 6px; }

@media (max-width: 560px) {
  .shots img:nth-child(3) { display: none; }
  .shots img { width: 44vw; }
}

@media (prefers-reduced-motion: no-preference) {
  .tiles b { animation: pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
  .tiles span:first-child b:nth-child(2), .tiles span + span b:nth-child(2) { animation-delay: 0.04s; }
  .tiles b:nth-child(3) { animation-delay: 0.08s; }
  .tiles b:nth-child(4) { animation-delay: 0.12s; }
  .tiles b:nth-child(5) { animation-delay: 0.16s; }
  .tiles b:nth-child(6) { animation-delay: 0.2s; }
  .tiles b:nth-child(7) { animation-delay: 0.24s; }
  @keyframes pop { from { transform: scale(0.4); opacity: 0; } }
}
