/* ==============================================================================
   Metin2dle - Modern Dark Fantasy RPG Tasarım Sistemi
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Renk Paleti - Karanlık Obsidyen, Kömür ve Metin2 Altını */
  --bg-deep: #07080c;
  --bg-dark: #0b0d12;
  --bg-surface: #13161f;
  --bg-surface-elevated: #1a1e2b;
  --bg-surface-trans: rgba(19, 22, 31, 0.88);

  --gold-primary: #c8a055;
  --gold-light: #e5c17b;
  --gold-bright: #ffe299;
  --gold-dark: #8c6a2e;
  --gold-border: rgba(200, 160, 85, 0.4);
  --gold-glow: rgba(229, 193, 123, 0.35);

  --crimson: #9e2a2b;
  --crimson-bright: #d63447;
  --crimson-glow: rgba(214, 52, 71, 0.4);

  --green-win: #2ec4b6;
  --green-glow: rgba(46, 196, 182, 0.4);

  --text-main: #f0f3fa;
  --text-muted: #8e96aa;
  --text-gold: #e5c17b;

  /* Sınıf Renkleri (Metin2 Karakter Auraları) */
  --class-warrior: #e63946;
  --class-ninja: #2a9d8f;
  --class-sura: #9d4edd;
  --class-shaman: #f4a261;

  /* Tipografi */
  --font-epic: 'Cinzel', Georgia, serif;
  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Geçiş ve Gölgeler */
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-slot: inset 0 2px 8px rgba(0, 0, 0, 0.85), 0 4px 15px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 15px rgba(200, 160, 85, 0.25);
}

/* ------------------------------------------------------------------------------
   Temel Sıfırlama ve Gövde
   ------------------------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ------------------------------------------------------------------------------
   Metin2 Giriş Ekranı Atmosferi (Arka Plan ve Vignette)
   ------------------------------------------------------------------------------ */
.bg-ambient-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url('../img/bg-metin2.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(14px) brightness(0.32);
  transform: scale(1.05); /* Bulanıklık kenar taşmasını önler */
  pointer-events: none;
}

.bg-vignette-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    circle at center,
    rgba(11, 13, 18, 0.6) 0%,
    rgba(7, 8, 12, 0.92) 75%,
    rgba(3, 4, 6, 0.98) 100%
  );
  pointer-events: none;
}

/* ------------------------------------------------------------------------------
   Kapsayıcı ve Düzen
   ------------------------------------------------------------------------------ */
.app-wrapper {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 0 1rem 5.5rem 1rem; /* Alttaki sticky banner için boşluk */
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ------------------------------------------------------------------------------
   Üst Menü ve Logo Başlığı (Header)
   ------------------------------------------------------------------------------ */
.site-header {
  padding: 1.25rem 0 0.75rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.brand-title {
  font-family: var(--font-epic);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #fff3d1 0%, var(--gold-light) 50%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 15px rgba(200, 160, 85, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.brand-title .dragon-icon {
  color: var(--gold-light);
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px var(--gold-light));
}

.daily-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(19, 22, 31, 0.75);
  border: 1px solid var(--gold-border);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--gold-light);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.daily-timer-pill .pulsing-dot {
  width: 7px;
  height: 7px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-bright);
  animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Mod Sekmeleri (Eşya / NPC / Mob) */
.mode-tabs {
  display: flex;
  background: rgba(14, 17, 24, 0.9);
  border: 1px solid rgba(200, 160, 85, 0.25);
  border-radius: 12px;
  padding: 3px;
  width: 100%;
  max-width: 440px;
  margin-top: 0.25rem;
}

.mode-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.4rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: var(--transition-smooth);
}

.mode-tab.active {
  background: linear-gradient(135deg, rgba(200, 160, 85, 0.25), rgba(158, 42, 43, 0.25));
  color: var(--gold-bright);
  border: 1px solid var(--gold-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.badge-soon {
  background: rgba(158, 42, 43, 0.35);
  color: #ff9999;
  border: 1px solid rgba(214, 52, 71, 0.4);
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ------------------------------------------------------------------------------
   Oyun Kartı ve Metin2 Envanter Slotu
   ------------------------------------------------------------------------------ */
.game-card-section {
  background: var(--bg-surface-trans);
  border: 1px solid var(--gold-border);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(200, 160, 85, 0.08);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: visible; /* Autocomplete dropdown taşması için visible */
  margin-top: 0.5rem;
  z-index: 10;
}

/* Köşe Metin2 Motifleri */
.game-card-section::before,
.game-card-section::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold-primary);
  pointer-events: none;
}
.game-card-section::before {
  top: 6px;
  left: 6px;
  border-right: none;
  border-bottom: none;
}
.game-card-section::after {
  bottom: 6px;
  right: 6px;
  border-left: none;
  border-top: none;
}

/* İpucu Rozetleri Üst Alanı */
.card-header-hints {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(11, 13, 18, 0.85);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-slot);
}

.category-badge .cat-icon {
  color: var(--gold-bright);
}

/* Karakter Sınıfları Göstergesi (Kafa İkonları) */
.classes-badge-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.class-avatar-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 2px solid transparent;
  background: #141722;
  transition: var(--transition-smooth);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.class-avatar-badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  transition: var(--transition-smooth);
}

/* Sınıf durumları: Aktif vs Pasif */
.class-avatar-badge.active {
  opacity: 1;
  border-color: var(--gold-light);
  box-shadow: 0 0 12px var(--gold-glow), 0 2px 8px rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
}

.class-avatar-badge.savasci.active {
  border-color: #ff6b6b;
  box-shadow: 0 0 10px rgba(230, 57, 70, 0.5);
}
.class-avatar-badge.ninja.active {
  border-color: #48cae4;
  box-shadow: 0 0 10px rgba(42, 157, 143, 0.5);
}
.class-avatar-badge.sura.active {
  border-color: #c77dff;
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
}
.class-avatar-badge.saman.active {
  border-color: #ffd166;
  box-shadow: 0 0 10px rgba(244, 162, 97, 0.5);
}

.class-avatar-badge.passive {
  opacity: 0.28;
  filter: grayscale(100%) brightness(0.4);
  border-color: rgba(255, 255, 255, 0.1);
  transform: scale(0.92);
}

/* Geriye dönük uyumluluk için eski haplar */
.class-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 5px;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

/* ------------------------------------------------------------------------------
   Metin2 İkonik Slot Çerçevesi (Anti-Cheat Görsel Alanı)
   ------------------------------------------------------------------------------ */
.item-slot-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.8rem 0;
}

.metin2-slot-box {
  width: 170px;
  height: 170px;
  background: radial-gradient(circle at center, #1b202c 0%, #0e1117 75%, #080a0e 100%);
  border: 3px solid var(--gold-primary);
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    inset 0 0 20px rgba(0, 0, 0, 0.95),
    inset 0 0 6px rgba(200, 160, 85, 0.4),
    0 8px 25px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

/* İnce iç çerçeve çizgisi (Metin2 envanter deseni) */
.metin2-slot-box::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(200, 160, 85, 0.3);
  border-radius: 8px;
  pointer-events: none;
}

/* Eşya Resmi */
.item-pixel-image {
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(200, 160, 85, 0.3));
  transition: filter 0.3s ease, transform 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
  image-rendering: pixelated; /* Retro mozaik hissi */
}

/* Netlik Rozeti (Slot sağ alt köşe) */
.slot-step-indicator {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(11, 13, 18, 0.9);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Animasyonlar: Shake (Yanlış tahmin) ve Win Glow (Doğru tahmin) */
.shake-anim {
  animation: slotShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  border-color: var(--crimson-bright) !important;
}

@keyframes slotShake {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(5px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
  40%, 60% { transform: translate3d(5px, 0, 0); }
}

.win-anim {
  animation: slotGlow 1.2s infinite alternate ease-in-out;
  border-color: var(--green-win) !important;
}

@keyframes slotGlow {
  0% { box-shadow: 0 0 15px var(--green-glow), inset 0 0 15px var(--green-glow); }
  100% { box-shadow: 0 0 30px var(--green-glow), inset 0 0 30px var(--green-glow); }
}

/* Dinamik Kilitli İpucu Kutusu (Seviye / Ek Açıklama) */
.hints-reveal-panel {
  background: rgba(14, 17, 24, 0.7);
  border: 1px solid rgba(200, 160, 85, 0.25);
  border-radius: 10px;
  padding: 0.75rem;
  margin: 0.6rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hint-row .hint-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hint-row .hint-value {
  color: var(--gold-light);
  font-weight: 700;
}

.hint-row.locked .hint-value {
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.6;
}

/* ------------------------------------------------------------------------------
   Kalan Hak Göstergesi (Attempts Counter - Wordle Slots)
   ------------------------------------------------------------------------------ */
.attempts-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.attempt-pip {
  width: 32px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(200, 160, 85, 0.2);
  transition: var(--transition-smooth);
}

.attempt-pip.used-wrong {
  background: var(--crimson);
  border-color: var(--crimson-bright);
  box-shadow: 0 0 6px var(--crimson-glow);
}

.attempt-pip.used-correct {
  background: var(--green-win);
  border-color: #52e3d5;
  box-shadow: 0 0 8px var(--green-glow);
}

.attempt-pip.current {
  border-color: var(--gold-light);
  background: rgba(229, 193, 123, 0.3);
  box-shadow: 0 0 6px var(--gold-glow);
}

/* ------------------------------------------------------------------------------
   Akıllı Arama ve Autocomplete Bileşeni
   ------------------------------------------------------------------------------ */
.search-input-wrapper {
  position: relative;
  width: 100%;
  margin-top: 0.5rem;
}

.input-container {
  display: flex;
  align-items: center;
  background: #0e1117;
  border: 2px solid var(--gold-border);
  border-radius: 10px;
  padding: 0.25rem 0.5rem 0.25rem 0.85rem;
  box-shadow: var(--shadow-slot);
  transition: var(--transition-smooth);
}

.input-container:focus-within {
  border-color: var(--gold-light);
  box-shadow: 0 0 15px var(--gold-glow), var(--shadow-slot);
}

.item-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  padding: 0.6rem 0.2rem;
}

.item-search-input::placeholder {
  color: #656d80;
  font-size: 0.88rem;
}

.btn-guess-submit {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  color: #1a1408;
  border: 1px solid #ffeaab;
  border-radius: 7px;
  font-family: var(--font-epic);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.6rem 1.15rem;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.btn-guess-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 4px 15px rgba(229, 193, 123, 0.4);
}

.btn-guess-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-guess-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(80%);
}

/* Autocomplete Öneri Listesi Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #11141e;
  border: 2px solid var(--gold-primary);
  border-radius: 10px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.95), 0 0 20px rgba(200, 160, 85, 0.25);
  max-height: 250px;
  overflow-y: auto;
  z-index: 99999;
  display: none;
  backdrop-filter: blur(14px);
}

.autocomplete-dropdown.open {
  display: block;
}

.autocomplete-item {
  padding: 0.65rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.focused {
  background: rgba(200, 160, 85, 0.15);
}

.item-left-info {
  display: flex;
  flex-direction: column;
}

.item-title-text {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
}

.item-sub-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.item-level-tag {
  background: rgba(200, 160, 85, 0.2);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* ------------------------------------------------------------------------------
   Tahmin Geçmişi Listesi (Wordle / Loldle Karşılaştırma Tablosu)
   ------------------------------------------------------------------------------ */
.guess-history-section {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.guess-card {
  background: rgba(14, 17, 24, 0.85);
  border: 1px solid rgba(200, 160, 85, 0.2);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  animation: slideInGuess 0.35s ease-out forwards;
}

@keyframes slideInGuess {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.guess-name {
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guess-category-badge {
  text-align: center;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.guess-category-badge.match {
  background: rgba(46, 196, 182, 0.2);
  color: var(--green-win);
  border: 1px solid rgba(46, 196, 182, 0.4);
}

.guess-category-badge.mismatch {
  background: rgba(158, 42, 43, 0.25);
  color: #ff8585;
  border: 1px solid rgba(158, 42, 43, 0.4);
}

.guess-level-badge {
  text-align: center;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.guess-level-badge.equal {
  background: rgba(46, 196, 182, 0.2);
  color: var(--green-win);
  border: 1px solid rgba(46, 196, 182, 0.4);
}

.guess-level-badge.higher {
  background: rgba(229, 193, 123, 0.2);
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
}

.guess-level-badge.lower {
  background: rgba(158, 42, 43, 0.25);
  color: #ff9999;
  border: 1px solid rgba(158, 42, 43, 0.4);
}

/* ------------------------------------------------------------------------------
   Adsterra CPM Reklam Alanları (CLS Önleyici Sabit Rezervasyonlar)
   ------------------------------------------------------------------------------ */
/* 1. Oyun Kartının Altındaki Reklam (320x100 / Native Banner) */
.ad-container-middle {
  width: 100%;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px; /* CLS önleme */
}

.ad-box-320x100 {
  width: 320px;
  height: 100px;
  background: rgba(11, 13, 18, 0.7);
  border: 1px dashed rgba(200, 160, 85, 0.35);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ad-sponsor-label {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.62rem;
  color: rgba(200, 160, 85, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ad-placeholder-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* 2. Ekranın En Altındaki Mobil Sticky Banner (320x50) */
.ad-sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(7, 8, 12, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--gold-border);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.8);
  height: 60px;
  padding: 5px 0;
  transition: transform 0.3s ease;
}

.ad-sticky-bottom.hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.ad-box-320x50 {
  width: 320px;
  height: 50px;
  background: rgba(14, 17, 24, 0.8);
  border: 1px dashed rgba(200, 160, 85, 0.3);
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-close-btn {
  position: absolute;
  top: -12px;
  right: -10px;
  width: 22px;
  height: 22px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* ------------------------------------------------------------------------------
   Oyun Sonu / Sonuç Modalı (Zafer / Yenilgi & Seri & Paylaşım)
   ------------------------------------------------------------------------------ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
  animation: modalFadeIn 0.3s ease-out forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: #12151e;
  border: 2px solid var(--gold-primary);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px var(--gold-glow);
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-close-x {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-title {
  font-family: var(--font-epic);
  font-size: 1.5rem;
  color: var(--gold-bright);
}

.modal-item-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 17, 24, 0.9);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 1rem;
}

.modal-item-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--gold-light));
}

.modal-item-name {
  font-family: var(--font-epic);
  font-size: 1.25rem;
  color: var(--gold-light);
  font-weight: 700;
}

.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(200, 160, 85, 0.2);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-epic);
  font-size: 1.35rem;
  color: var(--gold-light);
  font-weight: 800;
}

.stat-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.share-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-share {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-share.whatsapp {
  background: #25d366;
  color: #0b2214;
}

.btn-share.twitter {
  background: #1da1f2;
  color: #ffffff;
}

.btn-share.copy {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  color: #120e06;
}

.btn-share:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ------------------------------------------------------------------------------
   SEO & FAQ Bölümü (Nasıl Oynanır? / Metin2 Hakkında)
   ------------------------------------------------------------------------------ */
.seo-info-section {
  margin-top: 2rem;
  background: rgba(14, 17, 24, 0.6);
  border: 1px solid rgba(200, 160, 85, 0.15);
  border-radius: 12px;
  padding: 1.25rem;
}

.seo-title {
  font-family: var(--font-epic);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seo-accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.seo-accordion-item:last-child {
  border-bottom: none;
}

.seo-accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.seo-accordion-content {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-bottom: 0.75rem;
  display: none;
}

.seo-accordion-item.open .seo-accordion-content {
  display: block;
}

.seo-accordion-item.open .acc-icon {
  transform: rotate(180deg);
}

.acc-icon {
  transition: transform 0.2s ease;
  font-size: 0.75rem;
  color: var(--gold-light);
}

/* ------------------------------------------------------------------------------
   Responsive Medya Sorguları
   ------------------------------------------------------------------------------ */
@media (max-width: 420px) {
  .brand-title {
    font-size: 1.5rem;
  }
  .metin2-slot-box {
    width: 145px;
    height: 145px;
  }
  .item-pixel-image {
    width: 110px;
    height: 110px;
  }
  .guess-card {
    grid-template-columns: 1.3fr 1fr 1fr;
    font-size: 0.75rem;
    padding: 0.5rem;
  }
}
