/* ============================================================
   MORLUP — oyun kartı düğmeleri + oyun sayfaları (/sozkup vb.)
   style.css'ten SONRA yüklenir. style.css'e dokunmadan ayrı
   tutuldu (o dosyada ikonlar gömülü, çok büyük).
   ============================================================ */

/* ---------- Oyun kartındaki düğmeler ---------- */
.game-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.game-title-link { text-decoration: none; }
.game-title-link:hover { color: var(--violet-bright); }

/* Google Play düğmesi: mağaza rozetlerini andıran koyu düğme,
   üzerinde ara sıra geçen bir parıltı */
.btn-store {
  position: relative;
  overflow: hidden;
  background: #17102e;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}
.btn-store::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: badge-shimmer 3.4s ease-in-out infinite;
}
.btn-store:hover { background: #241a45; border-color: var(--violet); box-shadow: 0 10px 28px rgba(139, 92, 246, 0.35); }
:root[data-theme="light"] .btn-store { background: #221a3d; }
:root[data-theme="light"] .btn-store:hover { background: #33275a; }
.btn-store .store-ic { width: 18px; height: 18px; color: var(--tile-green); transition: transform 0.3s cubic-bezier(.34,1.56,.64,1); }
.btn-store:hover .store-ic { transform: scale(1.25) rotate(-8deg); }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* Haber metnindeki linkler */
.news-item p a { color: var(--violet-bright); }

/* Ortalanmış bölüm başlığı */
.section-head.center { justify-content: center; text-align: center; }
.section-head.center .copy { margin: 0 auto; }

/* ---------- Oyun sayfası: üst bölüm ---------- */
.game-hero { position: relative; padding: 40px 0 80px; overflow: hidden; }
.game-hero .wrap { position: relative; z-index: 1; }

/* Arka planda süzülen harf kutucukları */
.hero-floaters { position: absolute; inset: 0; pointer-events: none; }
.hero-floaters span {
  position: absolute;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  color: #17102e;
  opacity: 0.13;
  transform: rotate(var(--r));
  animation: floater var(--d) ease-in-out infinite;
  animation-delay: var(--delay);
}
:root[data-theme="light"] .hero-floaters span { opacity: 0.2; }
@keyframes floater {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50%      { transform: translateY(-22px) rotate(calc(var(--r) * -1)); }
}

.gp-back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 14.5px;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.15s, transform 0.2s;
}
.gp-back:hover { color: var(--ink); transform: translateX(-4px); }
.game-hero-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
}
/* İkonun arkasında dönen renkli bir hale */
.game-hero-icon-wrap { position: relative; }
.game-hero-icon-wrap::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 54px;
  background: conic-gradient(#4a89ed, #4abf8c, #f29e33, #ed6ba1, #8b5cf6, #4a89ed);
  filter: blur(22px);
  opacity: 0.45;
  animation: halo-spin 8s linear infinite;
}
@keyframes halo-spin { to { transform: rotate(360deg); } }
/* İkon dalgalanması: aynı anda hem sağa-sola hem yukarı-aşağı,
   hafif bir eğilmeyle. Sekiz rakamına benzer yumuşak bir yol çiziyor. */
@keyframes icon-wave {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(7px, -8px) rotate(2deg); }
  50%  { transform: translate(0, -3px) rotate(0deg); }
  75%  { transform: translate(-7px, -8px) rotate(-2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
.game-hero-icon {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 44px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  animation: icon-wave 3.2s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.game-hero-icon:hover { animation-play-state: paused; transform: rotate(-6deg) scale(1.06); }
.game-hero h1 {
  margin-top: 14px;
  font-size: 46px;
  letter-spacing: -0.01em;
}
.game-hero .lead {
  margin: 16px 0 0;
  max-width: 52ch;
  font-size: 18px;
  color: var(--ink-dim);
}
.game-hero .badge { display: inline-block; }

/* ---------- Ekran görüntüleri ---------- */
/* Şerit artık sayfa genişliğinde değil, içerikle aynı hizada ve
   ortada. Sığarsa görseller ortalanır; sığmazsa kenarlar yumuşakça
   solar, altta oklar ve noktalar çıkar (çirkin kaydırma çubuğu yok). */
.shots-viewport { position: relative; }
.shots-viewport.overflowing {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}
.shots-viewport.overflowing.at-start {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent 100%);
          mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent 100%);
}
.shots-viewport.overflowing.at-end {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px);
          mask-image: linear-gradient(90deg, transparent 0, #000 48px);
}
.shots-strip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 18px 6px 26px;
  scrollbar-width: none;
}
.shots-strip::-webkit-scrollbar { display: none; }
/* Sığdığında ortala (taşınca otomatik kenar boşlukları sıfırlanır) */
.shot:first-child { margin-left: auto; }
.shot:last-child { margin-right: auto; }

.shot {
  --tilt: -2deg;
  flex: 0 0 auto;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
  scroll-snap-align: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(40px) rotate(var(--tilt)) scale(0.9);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s, border-color 0.2s, opacity 0.4s;
}
.shot:nth-child(even) { --tilt: 2deg; }
.shots-strip.in .shot {
  opacity: 1;
  transform: rotate(var(--tilt));
  transition-delay: calc(var(--i) * 90ms), 0s, 0s, calc(var(--i) * 90ms);
}
.shots-strip.in .shot:hover {
  transform: translateY(-10px) rotate(0deg) scale(1.04);
  border-color: var(--violet);
  box-shadow: 0 22px 44px rgba(139, 92, 246, 0.35);
  transition-delay: 0s;
}
.shot img {
  height: 460px;
  width: auto;
  min-width: 200px;
  display: block;
}

.shots-nav {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.shots-nav[hidden] { display: none; }
.shots-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, transform 0.25s cubic-bezier(.34,1.56,.64,1), opacity 0.2s;
}
.shots-arrow:hover:not(:disabled) { border-color: var(--violet); transform: scale(1.12); }
.shots-arrow:disabled { opacity: 0.3; cursor: default; }
.shots-dots { display: flex; gap: 8px; }
.shots-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: width 0.3s cubic-bezier(.34,1.56,.64,1), background 0.2s;
}
.shots-dots button:nth-child(1).active { background: #4a89ed; }
.shots-dots button:nth-child(2).active { background: #4abf8c; }
.shots-dots button:nth-child(3).active { background: #f29e33; }
.shots-dots button:nth-child(4).active { background: #ed6ba1; }
.shots-dots button:nth-child(n+5).active { background: #8b5cf6; }
.shots-dots button.active { width: 28px; }

/* ---------- Nasıl oynanır ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.how-step {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), opacity 0.4s, border-color 0.2s, box-shadow 0.25s;
}
/* Kartın üstünde oyunun renklerinden ince bir şerit */
.how-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--c);
}
.how-grid.in .how-step { opacity: 1; transform: none; }
.how-grid.in .how-step:nth-child(2) { transition-delay: 0.12s; }
.how-grid.in .how-step:nth-child(3) { transition-delay: 0.24s; }
.how-grid.in .how-step:hover {
  transform: translateY(-6px);
  border-color: var(--c);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
  transition-delay: 0s;
}
.how-num {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #17102e;
  background: var(--c);
  margin-bottom: 18px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
}
.how-step:hover .how-num { animation: tile-wiggle 0.5s ease; }
@keyframes tile-wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg) scale(1.1); }
  60% { transform: rotate(8deg) scale(1.05); }
}
.how-step h3 { font-size: 20px; margin-bottom: 8px; }
.how-step p { margin: 0; color: var(--ink-dim); font-size: 15.5px; }

/* ---------- Özellikler ---------- */
.gp-features {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 860px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.gp-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  color: var(--ink-dim);
  font-size: 15.5px;
  opacity: 0;
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), opacity 0.4s, border-color 0.2s;
}
.gp-features li::before {
  content: "✓";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--c);
  color: #17102e;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gp-features.in li { opacity: 1; transform: none; }
.gp-features.in li:nth-child(2) { transition-delay: 0.08s; }
.gp-features.in li:nth-child(3) { transition-delay: 0.16s; }
.gp-features.in li:nth-child(4) { transition-delay: 0.24s; }
.gp-features.in li:hover { border-color: var(--c); transform: translateY(-3px); transition-delay: 0s; }

/* ---------- Sayfa sonu çağrısı ---------- */
.gp-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.25), transparent 65%),
    var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 52px 28px;
  opacity: 0;
  transform: scale(0.96);
  transition: transform 0.45s cubic-bezier(.34,1.56,.64,1), opacity 0.4s;
}
.gp-cta.in { opacity: 1; transform: none; }
.gp-cta-tiles { justify-content: center; margin: 0 0 22px; }
.gp-cta h2 { font-size: 32px; }
.gp-cta p { margin: 12px auto 0; max-width: 46ch; color: var(--ink-dim); }
.gp-cta .game-actions { justify-content: center; }
.gp-privacy {
  display: inline-block;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--ink-faint);
}

/* ---------- Görsel büyütme penceresi ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(6, 4, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lb-in 0.2s ease-out;
}
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-img {
  max-width: min(92vw, 560px);
  max-height: 86vh;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: lb-pop 0.3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes lb-pop { from { transform: scale(0.85); } to { transform: scale(1); } }
.lb-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-btn:hover { background: rgba(139, 92, 246, 0.5); }
.lb-btn[hidden] { display: none; }
.lb-close { top: 20px; right: 20px; font-size: 18px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* ---------- Mobil ---------- */
@media (max-width: 780px) {
  .game-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .game-hero-icon-wrap { width: 128px; }
  .game-hero-icon { border-radius: 30px; }
  .game-hero-icon-wrap::before { border-radius: 40px; }
  .game-hero h1 { font-size: 34px; }
  .shot img { height: 380px; min-width: 170px; }
  .how-grid { grid-template-columns: 1fr; }
  .gp-features { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
}

/* Hareket istemeyenler için animasyonları kapat */
@media (prefers-reduced-motion: reduce) {
  .hero-floaters span, .game-hero-icon-wrap::before, .game-hero-icon, .btn-store::after { animation: none; }
  .shot, .how-step, .gp-features li, .gp-cta { opacity: 1; transform: none; transition: none; }
}

/* ---------- Parıltı animasyonu (layout shift'siz) ----------
   style.css'teki rozet parıltısı "left" değerini değiştiriyordu; tarayıcı
   bunu her karede sayfa kayması (layout shift) olarak kaydediyordu.
   Aynı görüntüyü "transform" ile yapıyoruz: hiçbir şeyi yerinden oynatmaz. */
.badge::after, .btn-store::after {
  left: 0;
  width: 40%;
  transform: translateX(-150%);
  animation: shimmer-x 3.4s ease-in-out infinite;
}
@keyframes shimmer-x {
  0% { transform: translateX(-150%); }
  40%, 100% { transform: translateX(350%); }
}
