@import url("https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;500;700&display=swap");

:root {
  --yazi: #f4f1ea;
  --soluk: #c9c2b4;
  --altin: #ffd84a;
  --yesil: #6abf40;
  --yesil-koyu: #3f7f22;
  --kirmizi: #e0503a;
  --mavi: #4fb6e8;
  --panel: rgba(20, 17, 24, 0.86);
  --kenar: #000;
  --font: "Pixelify Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  color: var(--yazi);
  background: #1b1720 url("../img/karanlik.png");
  background-size: 64px;
  image-rendering: pixelated;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { image-rendering: pixelated; }
a { color: var(--altin); }
main { flex: 1; }

/* ---------- Ust menu ---------- */
.ust {
  position: sticky; top: 0; z-index: 1000;
  background: url("../img/tas.png");
  background-size: 48px;
  border-bottom: 4px solid var(--kenar);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.35);
}
.ust-ic {
  max-width: 1180px; margin: 0 auto; padding: 10px 18px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 28px; color: #fff; text-decoration: none;
  text-shadow: 3px 3px 0 #000; letter-spacing: 1px;
}
.logo img { width: 36px; height: 36px; border: 3px solid #000; }
.menu { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.menu a {
  color: #fff; text-decoration: none; padding: 6px 12px;
  text-shadow: 2px 2px 0 #000; border: 3px solid transparent;
}
.menu a:hover, .menu a.aktif {
  background: rgba(0,0,0,.45); border-color: #000; color: var(--altin);
}
.btn.menu-dugme { display: none; }
.cimen-serit {
  height: 16px;
  background: url("../img/cimen.png") repeat-x;
  background-size: 32px;
  border-bottom: 4px solid #000;
}

/* ---------- Butonlar (MC tarzi) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 20px; font-weight: 500;
  color: #fff; text-decoration: none; cursor: pointer;
  padding: 10px 22px;
  background: #6f6f6f url("../img/tas.png"); background-size: 48px;
  border: 3px solid #000;
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.35), inset -3px -4px 0 rgba(0,0,0,.45);
  text-shadow: 2px 2px 0 #3a3a3a;
}
.btn:hover { outline: 3px solid #fff; outline-offset: -6px; color: var(--altin); }
.btn:active { transform: translateY(2px); }
.btn.yesil { background: var(--yesil-koyu); box-shadow: inset 3px 3px 0 #7fd655, inset -3px -4px 0 #234d12; }
.btn.mor { background: #5865f2; box-shadow: inset 3px 3px 0 #8d97ff, inset -3px -4px 0 #343c9c; }

/* ---------- Giris (hero) ---------- */
.giris {
  position: relative; text-align: center; padding: 70px 18px 90px;
  background:
    linear-gradient(180deg, rgba(79,182,232,.0) 0%, rgba(27,23,32,.15) 60%, rgba(27,23,32,1) 100%),
    linear-gradient(180deg, #4fa9e0 0%, #8fd3f5 55%, #c8ecff 100%);
  overflow: hidden;
  border-bottom: 4px solid #000;
}
.bulut {
  position: absolute; height: 28px; background: #fff; opacity: .9;
  box-shadow: 28px -14px 0 #fff, 56px 0 0 #fff;
  animation: bulut 60s linear infinite;
}
@keyframes bulut { from { transform: translateX(-200px); } to { transform: translateX(110vw); } }
.giris-zemin {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  background: url("../img/cimen.png") repeat-x top / 64px, url("../img/toprak.png") 0 0 / 64px;
  border-top: 4px solid #000;
}
.dev-baslik {
  position: relative;
  font-size: clamp(48px, 10vw, 112px); font-weight: 700; margin: 0;
  color: var(--altin); letter-spacing: 4px;
  text-shadow: 6px 6px 0 #9a5d00, 10px 10px 0 #000;
}
.alt-baslik {
  position: relative; margin: 8px auto 28px; max-width: 640px;
  font-size: 22px; color: #10202b; text-shadow: 1px 1px 0 rgba(255,255,255,.6);
}
.ip-kutu {
  position: relative; display: inline-flex; align-items: stretch;
  border: 4px solid #000; background: var(--panel); margin-bottom: 18px;
}
.ip-kutu .ip { padding: 12px 20px; font-size: 26px; color: #fff; letter-spacing: 1px; }
.ip-kutu .btn { border-width: 0 0 0 4px; }
.durum {
  position: relative; display: inline-flex; gap: 10px; align-items: center;
  background: var(--panel); border: 3px solid #000; padding: 6px 14px; font-size: 18px;
}
.nokta { width: 12px; height: 12px; background: #888; border: 2px solid #000; }
.nokta.acik { background: #55ff55; box-shadow: 0 0 10px #55ff55; }
.nokta.kapali { background: var(--kirmizi); }
.giris .dugmeler { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Bolumler ---------- */
.bolum { max-width: 1180px; margin: 0 auto; padding: 56px 18px; }
.bolum h2 {
  font-size: 38px; margin: 0 0 8px; color: #fff; text-shadow: 4px 4px 0 #000;
}
.bolum .aciklama { color: var(--soluk); margin: 0 0 28px; }
.panel {
  background: var(--panel); border: 4px solid #000;
  box-shadow: inset 0 0 0 3px #3b3446;
  padding: 22px;
}

/* ---------- Mod kartlari ---------- */
.kartlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.kart {
  display: block; text-decoration: none; color: var(--yazi);
  background: var(--panel); border: 4px solid #000;
  box-shadow: inset 0 0 0 3px #3b3446;
  padding: 18px; transition: transform .1s;
}
.kart:hover { transform: translate(-3px, -3px); box-shadow: inset 0 0 0 3px var(--altin), 6px 6px 0 #000; }
.kart canvas { width: 56px; height: 56px; image-rendering: pixelated; display: block; margin-bottom: 10px; }
.kart h3 { margin: 0 0 4px; font-size: 24px; color: #fff; }
.kart p { margin: 0; color: var(--soluk); font-size: 16px; }
.etiket {
  display: inline-block; font-size: 13px; padding: 1px 8px; margin: 8px 6px 0 0;
  border: 2px solid #000; background: #2c2636; color: var(--altin);
}

/* ---------- Mod detay ---------- */
.mod-detay { display: grid; grid-template-columns: 96px 1fr; gap: 22px; margin-bottom: 22px; scroll-margin-top: 110px; }
.mod-detay canvas { width: 96px; height: 96px; image-rendering: pixelated; border: 4px solid #000; background: #2c2636; }
.mod-detay h3 { margin: 0 0 6px; font-size: 30px; color: var(--altin); text-shadow: 3px 3px 0 #000; }
.mod-detay ul { margin: 10px 0 0; padding-left: 0; list-style: none; }
.mod-detay li { padding-left: 22px; position: relative; margin-bottom: 4px; }
.mod-detay li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 9px; height: 9px; background: var(--yesil); border: 2px solid #000; }

/* ---------- Kurallar ---------- */
.kural-grup { margin-bottom: 22px; }
.kural-grup h3 { margin: 0 0 12px; font-size: 26px; color: var(--altin); text-shadow: 3px 3px 0 #000; }
.kural-grup ol { margin: 0; padding-left: 28px; }
.kural-grup li { margin-bottom: 8px; }
.ceza { width: 100%; border-collapse: collapse; }
.ceza th, .ceza td { border: 3px solid #000; padding: 8px 12px; text-align: left; }
.ceza th { background: #2c2636; color: var(--altin); }

/* ---------- Magaza ---------- */
.yakinda { text-align: center; padding: 50px 22px; }
.yakinda .sandik { font-size: 72px; line-height: 1; }
.yakinda h2 { margin-top: 16px; }

/* ---------- Alt bilgi ---------- */
.alt {
  background: url("../img/toprak.png"); background-size: 64px;
  border-top: 4px solid #000; padding: 26px 18px; text-align: center;
  color: #f1e6d6; text-shadow: 2px 2px 0 #000; font-size: 16px;
}
.alt a { color: #fff; }

/* ---------- Bildirim ---------- */
.bildirim {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 120px);
  background: #1e1a24; border: 4px solid #000; box-shadow: inset 0 0 0 3px var(--yesil);
  padding: 12px 22px; font-size: 18px; z-index: 3000; transition: transform .2s;
}
.bildirim.goster { transform: translate(-50%, 0); }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .menu { display: none; width: 100%; flex-direction: column; }
  .menu.acik { display: flex; }
  .btn.menu-dugme { display: inline-flex; margin-left: auto; padding: 6px 12px; font-size: 18px; }
  .ip-kutu { flex-direction: column; }
  .ip-kutu .btn { border-width: 4px 0 0 0; }
  .mod-detay { grid-template-columns: 1fr; }
}

/* ---------- VIP ---------- */
.vipler { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.vip {
  background: var(--panel); border: 4px solid #000; box-shadow: inset 0 0 0 3px var(--vr, #3b3446);
  padding: 20px; display: flex; flex-direction: column; position: relative;
}
.vip .rozet {
  align-self: flex-start; font-size: 22px; font-weight: 700; padding: 2px 12px;
  background: #000; color: var(--vr); text-shadow: 2px 2px 0 rgba(0,0,0,.6); border: 3px solid var(--vr);
}
.vip .fiyat { font-size: 40px; font-weight: 700; color: #fff; margin: 12px 0 0; text-shadow: 3px 3px 0 #000; }
.vip .fiyat small { font-size: 18px; color: var(--soluk); font-weight: 400; }
.vip .onceki { color: var(--vr); margin: 10px 0 4px; font-size: 16px; }
.vip ul { list-style: none; padding: 0; margin: 6px 0 18px; flex: 1; }
.vip li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.vip li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 9px; height: 9px; background: var(--vr); border: 2px solid #000; }
.vip .btn { width: 100%; }
.vip.populer::after {
  content: "EN POPÜLER"; position: absolute; top: -14px; right: 14px; font-size: 14px;
  background: var(--altin); color: #000; border: 3px solid #000; padding: 0 8px; font-weight: 700;
}
.adimlar { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: adim; }
.adimlar div { background: #2c2636; border: 3px solid #000; padding: 14px 14px 14px 56px; position: relative; }
.adimlar div::before {
  counter-increment: adim; content: counter(adim); position: absolute; left: 12px; top: 12px;
  width: 32px; height: 32px; display: grid; place-items: center; font-weight: 700;
  background: var(--yesil-koyu); border: 3px solid #000; color: #fff;
}
