/* ============================================================
   MORLUP — paylaşılan stil dosyası (index.html + gizlilik.html)
   Renk paleti doğrudan yüklenen kurt logosundan alındı:
   mor tüy, açık sarı ay, koyu lacivert gece gökyüzü.
   ============================================================ */

:root {
  --bg: #0b0818;
  --bg-soft: #14102b;
  --bg-soft-2: #1b1538;
  --line: rgba(184, 175, 217, 0.14);

  --violet: #8b5cf6;
  --violet-bright: #a67bfb;
  --violet-deep: #4c2f8c;
  --moon: #f3e6a6;

  --ink: #f5f3ff;
  --ink-dim: #b8afd9;
  --ink-faint: #7c74a3;

  --radius: 20px;
  --radius-sm: 12px;

  /* Harf Blok'un kendi tahta renkleri — SADECE oyun kartında kullanılıyor */
  --tile-blue: #4a89ed;
  --tile-green: #4abf8c;
  --tile-orange: #f29e33;
  --tile-pink: #ed6ba1;
  --tile-red: #e64d4d;
  --tile-yellow: #ffcc33;

  --glow: rgba(139, 92, 246, 0.35);
  --star-opacity: 1;
  --nav-bg: rgba(11, 8, 24, 0.86);
  --badge-bg: rgba(139, 92, 246, 0.16);
  --badge-border: rgba(139, 92, 246, 0.35);
}

/* ---------- Gündüz teması ----------
   Gece kurdunun ay ışığı yerini gündüz güneşine bırakıyor: aynı mor
   ton korunuyor (marka kimliği), zemin aya değil güneşe yakışan
   sıcak krem tona dönüyor, yıldızlar gündüz görünmeyeceği için
   siliniyor. */
:root[data-theme="light"] {
  --bg: #fbf7ef;
  --bg-soft: #f3ecdc;
  --bg-soft-2: #ebe1c9;
  --line: rgba(76, 47, 140, 0.14);

  --violet: #7c4fe0;
  --violet-bright: #6633cc;
  --violet-deep: #ded0f7;
  --moon: #e8a23a;

  --ink: #221a3d;
  --ink-dim: #55507a;
  --ink-faint: #8b84ab;

  --glow: rgba(232, 162, 58, 0.30);
  --star-opacity: 0;
  --nav-bg: rgba(251, 247, 239, 0.86);
  --badge-bg: rgba(124, 79, 224, 0.12);
  --badge-border: rgba(124, 79, 224, 0.30);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-word {
  font-family: "Fredoka", "Manrope", sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

a { color: inherit; }

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Yıldız dokusu: hafif, tekrar eden bir arka plan ---------- */
.starfield {
  position: relative;
}
.starfield::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(243,230,166,0.55), transparent),
    radial-gradient(1.5px 1.5px at 80% 15%, rgba(243,230,166,0.4), transparent),
    radial-gradient(1px 1px at 35% 70%, rgba(243,230,166,0.5), transparent),
    radial-gradient(1.5px 1.5px at 65% 55%, rgba(243,230,166,0.35), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(243,230,166,0.45), transparent),
    radial-gradient(1.5px 1.5px at 20% 90%, rgba(243,230,166,0.3), transparent),
    radial-gradient(1px 1px at 50% 30%, rgba(243,230,166,0.4), transparent);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: var(--star-opacity);
  transition: opacity 0.4s;
}

body, .nav, .hero-art::before, .btn, .badge, .mystery-card {
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

/* ---------- Üst gezinme ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-brand img { height: 40px; width: 40px; border-radius: 10px; transition: transform 0.3s cubic-bezier(.34,1.56,.64,1); }
.nav-brand:hover img { transform: rotate(-10deg) scale(1.1); }
.nav-brand span {
  font-family: "Fredoka", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.2px;
}
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 15px;
  color: var(--ink-dim);
}
.nav-links a { text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }

.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Gece/gündüz düğmesi: tek bir emoji, tıklayınca tema değişiyor. */
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s;
}
.icon-btn:hover { border-color: var(--violet); }
.icon-btn.spin-once {
  animation: icon-spin 0.5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes icon-spin {
  from { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(190deg) scale(1.15); }
  to   { transform: rotate(360deg) scale(1); }
}

/* Dil seçici: bayrak düğmesi + açılır liste */
.lang-switch { position: relative; }
.lang-switch .icon-btn { padding: 0; overflow: hidden; }
.lang-switch .icon-btn img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

.lang-menu {
  position: absolute;
  top: 50px;
  right: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: none;
  flex-direction: column;
  min-width: 168px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  z-index: 30;
}
.lang-menu.open { display: flex; }
.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  border: none;
  background: none;
  color: var(--ink-dim);
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.lang-item:hover { background: var(--bg-soft-2); color: var(--ink); }
.lang-item img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

/* ---------- Kahraman bölüm ---------- */
.hero {
  padding: 96px 0 84px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: 44px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero p.lead {
  margin-top: 20px;
  max-width: 46ch;
  font-size: 18px;
  color: var(--ink-dim);
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: "Fredoka", sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), background 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-3px) scale(1.045); }
.btn:active { transform: translateY(0) scale(0.95); }
.btn-primary {
  background: var(--violet);
  color: #17102e;
}
.btn-primary:hover { background: var(--violet-bright); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-dim);
}
.btn-ghost:hover { border-color: var(--violet); color: var(--ink); }

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-art::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  filter: blur(8px);
}
.hero-art img {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  cursor: pointer;
  transform-origin: center bottom;
  animation: wolf-breathe 4.5s ease-in-out infinite;
}
@keyframes wolf-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.015); }
}
.hero-art img.howl {
  animation: wolf-howl 0.6s ease;
}
@keyframes wolf-howl {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-7deg) scale(1.08); }
  55% { transform: rotate(5deg) scale(1.05); }
  80% { transform: rotate(-2deg) scale(1.02); }
  100% { transform: rotate(0deg) scale(1); }
}

/* ---------- Genel bölüm başlığı ---------- */
.section { padding: 76px 0; border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.section-head .copy { max-width: 56ch; }
.section-head h2 { font-size: 30px; color: var(--ink); }
.section-head p { margin-top: 12px; color: var(--ink-dim); font-size: 16px; }
.see-all {
  font-family: "Fredoka", sans-serif;
  font-size: 14.5px;
  color: var(--violet-bright);
  text-decoration: none;
  white-space: nowrap;
}
.see-all:hover { text-decoration: underline; }

/* ---------- Oyun kartları ---------- */
.games-list { display: flex; flex-direction: column; gap: 24px; }

.game-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.16);
}
.game-card img.icon {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.28);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s ease;
}
.game-card:hover img.icon {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 18px 40px rgba(139, 92, 246, 0.5);
}
.game-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.game-title-row h3 { font-size: 26px; }
.badge {
  position: relative;
  overflow: hidden;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--violet-bright);
  border: 1px solid var(--badge-border);
}
.badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: badge-shimmer 3.4s ease-in-out infinite;
}
@keyframes badge-shimmer {
  0% { left: -60%; }
  40%, 100% { left: 140%; }
}
.game-card p.desc {
  margin-top: 14px;
  color: var(--ink-dim);
  max-width: 60ch;
}
.feature-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.feature-list li {
  color: var(--ink-dim);
  font-size: 15px;
  padding-left: 20px;
  position: relative;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
}
.tile-row {
  margin-top: 24px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tile-row span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #17102e;
  animation: tile-pop 0.5s cubic-bezier(.34,1.56,.64,1) backwards;
  transition: transform 0.15s;
  cursor: default;
  user-select: none;
}
.tile-row span:hover { transform: translateY(-6px) rotate(-4deg); }
.tile-row span:nth-child(1) { animation-delay: 0.05s; }
.tile-row span:nth-child(2) { animation-delay: 0.11s; }
.tile-row span:nth-child(3) { animation-delay: 0.17s; }
.tile-row span:nth-child(4) { animation-delay: 0.23s; }
.tile-row span:nth-child(5) { animation-delay: 0.29s; }
.tile-row span:nth-child(6) { animation-delay: 0.35s; }
.tile-row span:nth-child(7) { animation-delay: 0.41s; }
.tile-row span:nth-child(8) { animation-delay: 0.47s; }
.tile-row span:nth-child(n+9) { animation-delay: 0.53s; }
@keyframes tile-pop {
  0% { transform: scale(0) rotate(-20deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* ---------- Diğer oyunlar (yakında) ---------- */
.mystery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mystery-card {
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 30px 20px;
  text-align: center;
  color: var(--ink-faint);
  opacity: 0;
  transform: scale(0.82);
  transition: transform 0.5s cubic-bezier(.34,1.56,.64,1), border-color 0.3s, opacity 0.5s ease;
}
.mystery-card.revealed { opacity: 1; transform: scale(1); }
.mystery-card:hover {
  transform: rotate(-1.5deg) scale(1.04);
  border-color: var(--violet);
}
.mystery-card .moon-mark {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--moon);
  box-shadow: inset 10px -4px 0 0 var(--bg-soft-2);
  opacity: 0.7;
  animation: moon-pulse 2.6s ease-in-out infinite;
}
@keyframes moon-pulse {
  0%, 100% { opacity: 0.55; filter: drop-shadow(0 0 0px var(--moon)); }
  50% { opacity: 0.95; filter: drop-shadow(0 0 10px var(--moon)); }
}
.mystery-card span { font-size: 14px; }

/* ---------- Haberler ---------- */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
}
.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: none; }
.news-date {
  color: var(--ink-faint);
  font-size: 14px;
  padding-top: 3px;
}
.news-item h3 { font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.news-item p { color: var(--ink-dim); font-size: 15px; margin: 0; }

/* ---------- Alt bilgi ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-faint);
  font-size: 14px;
}
.foot-brand img { height: 24px; width: 24px; border-radius: 6px; transition: transform 0.3s cubic-bezier(.34,1.56,.64,1); }
.foot-brand:hover img { transform: rotate(-12deg) scale(1.15); }
footer .foot-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--ink-faint);
}
footer .foot-links a { text-decoration: none; }
footer .foot-links a:hover { color: var(--ink-dim); }

/* ---------- Gizlilik sayfası ---------- */
.legal {
  padding-top: 64px;
  padding-bottom: 96px;
  max-width: 720px;
  margin: 0 auto;
}
.legal h1 { font-size: 32px; margin-bottom: 6px; }
.legal .updated { color: var(--ink-faint); font-size: 14px; margin-bottom: 40px; }
.legal h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--violet-bright);
}
.legal p, .legal li { color: var(--ink-dim); font-size: 15.5px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--violet-bright); }

/* ---------- Eğlence katmanı: parıldayan/kayan yıldızlar, konfeti ----------
   Bunlar fun.js tarafından DOM'a eklenip yönetiliyor; burada sadece
   görünümleri tanımlı. */
.js-star {
  position: absolute;
  border-radius: 50%;
  background: var(--moon);
  pointer-events: none;
  animation: twinkle ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1.2); }
}

.shooting-star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(255,255,255,0.85);
  pointer-events: none;
  opacity: 0;
  animation: shoot 1.1s linear forwards;
}
@keyframes shoot {
  0%   { opacity: 0; transform: translate(0, 0); }
  8%   { opacity: 1; }
  100% { opacity: 0; transform: translate(240px, 130px); }
}

.confetti-piece {
  position: fixed;
  border-radius: 3px;
  pointer-events: none;
  z-index: 999;
  will-change: transform, opacity;
}

.howl-bubble {
  position: fixed;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--violet-bright);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 6px 16px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, 0);
  animation: bubble-float 1.1s ease forwards;
}
@keyframes bubble-float {
  0%   { opacity: 0; transform: translate(-50%, 0) scale(0.7); }
  15%  { opacity: 1; transform: translate(-50%, -14px) scale(1); }
  78%  { opacity: 1; transform: translate(-50%, -38px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50px) scale(0.92); }
}

/* ---------- Mobil ---------- */
@media (max-width: 780px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 200px; height: 200px; }
  .hero h1 { font-size: 32px; }
  .nav-links { gap: 14px; font-size: 13.5px; }
  .nav .wrap { height: 68px; }
  .game-card { grid-template-columns: 1fr; }
  .game-card img.icon { width: 120px; }
  .mystery-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .section-head { align-items: flex-start; }
}

/* ---------- Mobil hamburger menü ----------
   Eskiden linkler ikinci bir satıra sarılıyordu (dar ekranda hepsi
   yan yana sıkışık duruyordu). Şimdi dar ekranda linkler tamamen
   gizlenip yerine bir hamburger düğmesi geliyor; basınca linkler alt
   alta, ferah bir panelde açılıyor. */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 18px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Hamburger çizgileri CSS ile çiziliyor (Unicode "☰" değil) — bazı
   mobil tarayıcılar (özellikle iOS) o karakteri emoji fontuyla
   gösterip metin rengini yok sayabiliyordu, karanlık modda bile
   koyu/siyah kalıyordu. Bu yöntem her zaman var(--ink) rengini
   kullanıyor, temaya kesin uyuyor. */
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.hamburger {
  position: relative;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}
.hamburger::before { top: -5px; }
.hamburger::after { top: 5px; }

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0,0,0,0.25);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 16px 28px;
    border-top: 1px solid var(--line);
    font-size: 15.5px;
  }
}
