/* Tanıtım sayfası: oyunun koyu lacivert + altın renk dili; oyun stilinden (style.css) bağımsız. */
:root {
  --bg: #0a0d16;
  --bg-2: #0f1424;
  --panel: #0d1220;
  --panel-2: #141b2d;
  --line: #273049;
  --text: #f4f1ea;
  --muted: #9aa3b8;
  --blue: #4c8af7;
  --gold: #f2c96d;
  --gold-dark: #7a5a1c;
  --green: #4fd17a;
  --red: #ff7b7b;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: Montserrat, system-ui, sans-serif;
  line-height: 1.55; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; text-align: center; margin: 8px 0 0; }
.wrap { width: min(1120px, 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - var(--gutter) * 2); }

.logo { font-family: "Luckiest Guy", cursive; color: var(--gold); letter-spacing: 1px; text-shadow: 0 3px 0 var(--gold-dark); text-decoration: none; }

/* ---------- Butonlar ---------- */
.btn {
  border: 2px solid var(--line); border-radius: 10px; padding: 14px 22px; font-weight: 800; color: var(--text);
  background: var(--panel); text-transform: uppercase; letter-spacing: .3px;
  transition: transform .15s var(--ease), filter .15s, box-shadow .2s;
}
.btn:hover { filter: brightness(1.15); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn.gold { background: linear-gradient(#ffd97f, #e8b54a); color: #2a1a00; border-color: #fff0c2; box-shadow: 0 5px 0 #8a621c, 0 10px 30px #f2c96d40; }
.btn.gold:hover { box-shadow: 0 7px 0 #8a621c, 0 14px 40px #f2c96d66; }
.btn.gold:active { box-shadow: 0 2px 0 #8a621c; }
.btn.dark { background: #0d1220cc; backdrop-filter: blur(4px); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.huge { font-size: clamp(20px, 3vw, 28px); padding: 18px 40px; border-radius: 14px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Üst menü ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 10; transition: background .25s, box-shadow .25s; }
.nav.solid { background: #0a0d16e8; backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 12px; height: 64px; }
.nav-logo { font-size: 26px; margin-right: auto; }
.nav-links { display: flex; gap: 22px; margin-right: 12px; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 14px; color: #d6dbe7; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 35%, #1d2944, var(--bg)); }
.demo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.demo.on { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, #0a0d16b0, transparent 75%),
    linear-gradient(#0a0d16cc, transparent 22%, transparent 70%, var(--bg));
}
.hero-in { position: relative; text-align: center; padding: 96px 0 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 6px 14px; border-radius: 99px; background: #0d1220cc; border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 #4fd17a99; animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px #4fd17a00; } 100% { box-shadow: 0 0 0 0 #4fd17a00; } }
.hero-logo { font-size: clamp(64px, 15vw, 168px); line-height: .95; margin: 8px 0 12px; text-shadow: 0 6px 0 var(--gold-dark), 0 18px 40px #000a; animation: drop .9s var(--ease) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-30px) scale(1.08); } }
.hero-sub { max-width: 620px; margin: 0 auto 28px; font-size: clamp(16px, 2vw, 19px); font-weight: 500; color: #e3e6ee; text-shadow: 0 2px 8px #000c; }
.hero-sub b { color: var(--gold); }
.hero-cta { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-note { margin: 20px 0 0; font-size: 13px; color: #c3c9d8; text-shadow: 0 1px 4px #000; }
.scroll-hint { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; font-size: 28px; color: var(--gold); text-decoration: none; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(8px); } }

/* ---------- Bölümler ---------- */
.section { padding: clamp(64px, 10vw, 112px) 0; }
.section.alt { background: linear-gradient(var(--bg-2), var(--bg)); border-block: 1px solid #1a2136; }
.title { font-family: "Luckiest Guy", cursive; color: #fff3d6; font-weight: 400; font-size: clamp(36px, 6vw, 56px); text-align: center; margin: 0; letter-spacing: 1px; text-shadow: 0 3px 0 #3a2c10; }
.lead { text-align: center; color: var(--muted); margin: 8px auto 40px; max-width: 560px; }

/* Adımlar */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { position: relative; background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 14px 14px 20px; transition: transform .25s var(--ease), border-color .25s; }
.step:hover { transform: translateY(-6px); border-color: #3c4a6e; }
.step img { border-radius: 10px; aspect-ratio: 1400 / 860; object-fit: cover; background: #0a1730; }
.step h3 { margin: 16px 0 4px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step-no { position: absolute; top: -16px; left: -10px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: "Luckiest Guy", cursive; font-size: 24px; background: var(--gold); color: #2a1a00; box-shadow: 0 4px 0 var(--gold-dark); z-index: 1; }

/* Özellik kartları */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 24px; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 16px 40px #0008; }
.card-ico { font-size: 36px; line-height: 1; margin-bottom: 12px; transition: transform .3s var(--ease); display: inline-block; }
.card:hover .card-ico { transform: scale(1.15) rotate(-4deg); }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.levels { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.levels b { display: inline-block; min-width: 70px; padding: 1px 8px; margin-right: 6px; border-radius: 4px; color: #10203a; font-size: 12px; text-align: center; }
.levels .easy { background: #8fe3a8; } .levels .normal { background: #9cc7ff; }
.levels .hard { background: #f5b971; } .levels .brutal { background: #ff8b8b; }

/* Harita galerisi */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.map-card { position: relative; background: var(--panel); border: 2px solid var(--line); border-radius: 14px; overflow: hidden; padding: 0; color: var(--text); text-align: left; transition: transform .25s var(--ease), border-color .25s; }
.map-card:hover, .map-card:focus-visible { transform: translateY(-4px); border-color: var(--gold); }
.map-card canvas { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; image-rendering: pixelated; background: #0e1a34; transition: transform .5s var(--ease); }
.map-card:hover canvas { transform: scale(1.08); }
.map-card .meta { position: relative; padding: 10px 14px 12px; background: var(--panel); }
.map-card h3 { margin: 0; font-size: 17px; }
.map-card .tag { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 800; background: #9cc7ff; color: #10203a; padding: 2px 10px; border-radius: 3px; }
.map-card .tag.real { background: var(--gold); color: #2a1a00; }
.map-card .size { float: right; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* İstatistikler */
.counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 40px 0 24px; }
.counter { background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 22px 12px; text-align: center; }
.counter b { display: block; font-family: "Luckiest Guy", cursive; font-weight: 400; font-size: clamp(36px, 6vw, 56px); color: var(--gold); line-height: 1.1; font-variant-numeric: tabular-nums; }
.counter small { color: var(--muted); font-weight: 800; font-size: 12px; letter-spacing: .5px; }
.board { background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 20px; overflow-x: auto; }
.board h3 { margin: 0 0 12px; }
.board table { width: 100%; border-collapse: collapse; font-size: 15px; }
.board th { color: var(--muted); font-size: 11px; text-align: left; border-bottom: 1px solid var(--line); padding: 6px 8px; }
.board td { padding: 10px 8px; border-bottom: 1px solid #1c2338; }
.board tbody tr { transition: background .15s; }
.board tbody tr:hover { background: #18203a; }
.board td:first-child { font-weight: 800; width: 40px; }
.board tr:nth-child(1) td:first-child { color: #ffd700; } .board tr:nth-child(2) td:first-child { color: #d8dde6; }
.board tr:nth-child(3) td:first-child { color: #e0a36b; }
.board .num { font-variant-numeric: tabular-nums; }

/* SSS */
.faq { display: grid; gap: 12px; margin-top: 32px; }
.faq details { background: var(--panel); border: 2px solid var(--line); border-radius: 12px; transition: border-color .2s; }
.faq details[open] { border-color: #3c4a6e; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 800; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; font-size: 24px; color: var(--gold); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* Son çağrı + alt bilgi */
.final { padding: clamp(64px, 10vw, 112px) 0; text-align: center; background: radial-gradient(ellipse at 50% 100%, #2a2210, var(--bg) 70%); }
.final-logo { font-size: clamp(36px, 7vw, 72px); font-weight: 400; margin: 0 0 28px; }
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .logo { font-size: 22px; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; }
.footer nav a:hover { color: var(--text); }
.footer small { margin-left: auto; }
.footer small a { color: var(--text); font-weight: 700; text-decoration: none; }
.footer small a:hover { text-decoration: underline; }

/* ---------- Giriş / kayıt modalı ---------- */
.auth { width: min(400px, 100% - var(--gutter) * 2); background: var(--panel); color: var(--text); border: 2px solid var(--line); border-radius: 18px; padding: 28px 24px 22px; box-shadow: 0 30px 80px #000c; }
.auth::backdrop { background: #04060cc0; backdrop-filter: blur(3px); }
.auth[open] { animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.auth h2 { font-family: "Luckiest Guy", cursive; font-weight: 400; color: #fff3d6; text-align: center; font-size: 36px; margin: 0 0 16px; }
.auth .close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: none; background: transparent; color: var(--muted); font-size: 18px; }
.auth .close:hover { background: var(--panel-2); color: var(--text); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #070a12; border-radius: 10px; }
.auth-tabs button { border: none; border-radius: 7px; padding: 9px; background: transparent; color: var(--muted); font-weight: 800; font-size: 14px; transition: background .15s, color .15s; }
.auth-tabs button.on { background: var(--blue); color: #fff; }
.auth-form { display: grid; gap: 10px; margin-top: 16px; }
.auth-form[hidden] { display: none; }
.auth-form input { padding: 13px 14px; border-radius: 8px; border: 2px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-size: 16px; transition: border-color .15s; }
.auth-form input:focus { outline: none; border-color: var(--blue); }
.auth-form .btn { margin-top: 4px; }
.error { color: var(--red); min-height: 1.3em; margin: 10px 0 0; font-size: 14px; text-align: center; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 6px 0 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Kaydırınca belirme ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .features .reveal:nth-child(3n + 2) { transition-delay: .1s; }
.steps .reveal:nth-child(3), .features .reveal:nth-child(3n) { transition-delay: .2s; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .steps, .features { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 32px; }
}
@media (min-width: 560px) and (max-width: 900px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .nav-logo { font-size: 22px; }
  .nav .btn.ghost { display: none; }
  .hero-cta .btn { width: 100%; }
  .counters { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .map-card .size { display: none; }
  .board th:nth-child(4), .board td:nth-child(4) { display: none; }
  .footer small { margin-left: 0; }
}

/* Hareket azaltma: animasyonlar ve kaydırma efektleri kapalı (demo tek kare çizilir). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .step:hover, .card:hover, .map-card:hover { transform: none; }
  .map-card:hover canvas, .card:hover .card-ico { transform: none; }
}
