.custom-hover {
 transition: color 0.3s ease; /* Renk geçişinin yumuşak olması için */
         }

.custom-hover:hover {
  color: darkgray !important; /* Fareyle üzerine gelince olacak renk (Örn: Sarı) */
}


.carouselExampleIndicators{
 
  align-items: center;
  gap: 50px;
}


/* ── Navbar toggler ikonu beyaz yap ── */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Mobilde collapsed menü stili ── */
@media (max-width: 991.98px) {
  /* Menü açılınca arka plan */
  .navbar-collapse {
    background-color: var(--bs-primary);
    border-radius: 0 0 12px 12px;
    padding: 12px 16px;
  }

  /* Nav linkleri mobilde ortala ve daha büyük tıklama alanı */
  .navbar-nav .nav-link {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1rem;
  }

  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  /* Dropdown mobilde içeri girintisiz */
  .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    box-shadow: none;
  }

  .dropdown-menu .dropdown-item {
    color: #fff;
  }

  .dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
  }

  /* Search bar mobilde tam genişlik */
  .navbar-collapse form {
    width: 100%;
    margin-top: 8px;
  }

  .navbar-collapse form .form-control {
    width: 100%;
  }
}

/* ── Carousel mobilde yüksekliği sabitle ── */
@media (max-width: 768px) {
  .carousel-item img {
    height: 200px;
    object-fit: cover;
  }
}

/* ── Footer mobilde dikey hizala ── */
@media (max-width: 767.98px) {
  footer .d-flex.flex-column > ul {
    margin-bottom: 1rem;
    padding-left: 0;
    text-align: center;
  }
}



/* 1. Tüm Kartların Kapsayıcısı (Ana Grid Düzeni) */

.other-cards {
    text-decoration: none;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    height: auto;
    /* Mobilde 100% (tek kart), geniş ekranda en az 260px olacak şekilde ayarlar */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 15px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 10px; /* Kenarlara yapışmayı engeller */
    margin-bottom: 10px;
}

.other-cards .cards-v {
  text-decoration: none;
    display: flex;
    flex-direction: row;
    /* Kırpılmayı önlemek için Sabit 300px YERİNE 100% veriyoruz */
    width: 100%;
    max-width: 260px; /* Kartın aşırı büyümesini engeller */
    height: 135px;
    background-color: white;
    border: 0.5px solid #c6ddff;
    border-radius: 25px;
    margin: 0 auto;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

/* Sol Resim Alanı (Genişliği esnek tutuyoruz) */
.cards-v .cards-i {
    text-decoration: none;
    flex: 0 0 120px; /* 120px sabit kalır ama kart daralınca taşmaz */
    height: 100%;
    overflow: hidden;
}

.cards-v .cards-i .cards-img {
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
    object-fit: cover !important;
    display: block;
}

/* Sağ Yazı Alanı */
.cards-v .cards-w {
  text-decoration: none !important;
    flex: 1; /* Kalan tüm boşluğu doldurur */
    padding: 12px 10px;
    display: flex;
    flex-direction: column !important;
    justify-content: center;
    box-sizing: border-box !important;
    min-width: 0; /* Metin taşmalarını engeller */
}

.cards-w .cards-h {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111 !important;
    margin-bottom: 4px !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis; /* Çok uzun başlığı 3 nokta yapar */
}

/* Hover Efektleri */
.other-cards .cards-v:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.2);
    border-color: #0D6EFD;
}

.other-cards .cards-v:hover .cards-i .cards-img {
    transform: scale(1.1);
}

.other-cards .cards-v:hover .cards-h {
    color: #0D6EFD;
}

.other-cards .cards-t{
    color: #000000 !important;
}

/* Mobil Ekran İyileştirmesi */
@media (max-width: 380px) {
    .cards-v .cards-i {
        flex: 0 0 95px; /* Mobilde görseli biraz daraltarak yazıya yer açar */
    }
}


/* 1. ANIMASYON DEĞİŞKENİ (En üstte, global alanda kalmalı) */
@property --border-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0turn;
}

/* 2. DÖNME ANIMASYONU KURALI */
@keyframes bg-spin {
  to {
    --border-angle: 1turn;
  }
}

/* 3. ANA BUTON / BAŞLIK SINIFI */
.other-game {
  /* Boyutlandırma */
 
  width: 100%;
  max-width: 400px; /* Masaüstünde 400px, küçük ekranda %100 olur */
  min-height: 60px;
  box-sizing: border-box;
  
  /* Esnek Hizalama */
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px auto !important;
  padding: 10px 20px;
  text-align: center;
  
  /* Tipografi */
  font-weight: 800;
  font-size: clamp(1.2rem, 5vw, 1.8rem); /* Mobilde otomatik küçülen ideal yazı boyutu */
  color: #ffffff;
  text-shadow: 0 0 10px rgba(13, 110, 253, 0.6);
  
  /* Border ve Radyus */
  border: solid 4px transparent;
  border-radius: 35px;

  /* #0D6EFD Odaklı Arka Plan ve Dönen Kenarlık */
  --main-bg: conic-gradient(
    from var(--border-angle),
    #0D6EFD
  );

  --gradient-border: conic-gradient(
    from var(--border-angle),
    transparent 20%,
    #fd9d0d 50%,
    #ffb75fbd 80%,
    transparent
  );

  background:
    var(--main-bg) padding-box,
    var(--gradient-border) border-box;

  /* Animasyon */
  animation: bg-spin 3s linear infinite;
  box-shadow: 0 0 20px rgba(13, 110, 253, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.other-game:hover {
  animation-play-state: paused;
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(13, 110, 253, 0.5);
}

/* 4. MOBIL MEDYA SORGUSU (Gereksiz çakışmalar temizlendi) */
@media (max-width: 480px) {
  .other-game {
    width: 90%; /* Ekranın sağından ve solundan 5% nefes payı bırakır */
    min-height: 72px;
    margin: 10px auto !important;
    border-width: 4px; /* Mobilde daha zarif durması için kenarlık inceltildi */
    font-size: xx-large;
  }
}

 /* 1. Karta göre konumlandırma ve taşma engeli */
  .ui.card .image {
    overflow: hidden !important;
    position: relative !important;
  }

  /* 2. Resmin 'display: block' olması transform için ZORUNLUDUR */
  .ui.card .image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    transition: transform 0.4s ease-in-out !important;
    transform: scale(1) !important;
  }

  /* 3. Kartın üstüne gelindiğinde resmi büyüt */
  .ui.card:hover .image img {
    transform: scale(1.12) !important;
  }

  /* 4. İsteğe bağlı: Kartın kendisini hafifçe yukarı kaldırır */
  .ui.card {
    transition: transform 0.3s ease !important;
  }
  .ui.card:hover {
    transform: translateY(-4px) !important;
  }



/* Responsive game boards and native-language virtual keyboards. */
.keyboard-container .keyboard-row{display:flex;justify-content:center;width:100%;gap:3px;margin:5px 0}
.keyboard-container .keyboard-row button{flex:1 1 0;min-width:0;max-width:44px;height:44px;min-height:44px;padding:0 2px;font-size:clamp(11px,2.8vw,16px);line-height:1;border-radius:6px;touch-action:manipulation}
.keyboard-container .keyboard-row button.wide-button{flex:1.7 1 0;max-width:72px;font-size:clamp(9px,2.5vw,13px)}
.keyboard-container button.correct{background:#538d4e!important;color:#fff!important}.keyboard-container button.present{background:#b59f3b!important;color:#fff!important}.keyboard-container button.absent{background:#787c7e!important;color:#fff!important}
@media(max-width:767px){
 .wordle{height:auto;min-height:0;padding:12px 0}.wordle .grid-wordle{box-sizing:border-box;width:min(460px,calc(100vw - 20px));max-width:100%;padding:14px 10px;margin:10px auto}
 .wordle .wordle-x{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:min(316px,100%);gap:4px}.wordle .wordle-x .square{width:100%;height:auto;aspect-ratio:1;font-size:clamp(20px,6vw,26px)}
 .wordle .keyboard-container{width:100%;max-width:100%;padding:0;margin-left:0;margin-right:0}
 .page-body .app{box-sizing:border-box;max-width:calc(100vw - 20px)}
 .app #keys{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;width:100%;max-width:100%}.app #keys button{box-sizing:border-box;width:100%;min-width:0;min-height:44px;height:44px;padding:0;font-size:16px;touch-action:manipulation}
 .twox{height:auto;min-height:0}.twox .twox-b{box-sizing:border-box;width:min(370px,calc(100vw - 24px));height:auto;min-height:430px;padding-bottom:16px;border-width:6px}.twox .twox-b .grid-x{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;box-sizing:border-box;width:calc(100% - 20px);height:auto;aspect-ratio:1;border:0;margin:15px 10px}.twox .grid-x>div{width:100%;height:auto;aspect-ratio:1;margin:0;display:flex;align-items:center;justify-content:center;font-size:clamp(18px,6vw,25px)}
 .container-mine{height:auto;min-height:0}.container-mine .grid-mine{box-sizing:border-box;width:min(370px,calc(100vw - 24px));height:auto;min-height:450px;border-width:6px;padding:8px}.grid-mine>.sex{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));box-sizing:border-box;width:100%;height:auto;aspect-ratio:1;margin:12px 0 20px}.grid-mine .sex>div{box-sizing:border-box;width:100%;height:auto;aspect-ratio:1;min-width:0;font-size:clamp(10px,3vw,16px)}
 .container-quiz{max-width:calc(100vw - 20px)}
}

/* Explicit game header rows prevent controls and score boxes from overlapping. */
.wordle .grid-wordle{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px 10px}
.wordle .grid-wordle>.wordle-h{position:static;grid-column:1/-1;grid-row:1;justify-self:center;width:min(180px,100%);margin:0;height:auto}
.wordle .grid-wordle>.giveup{position:static;grid-column:1;grid-row:2;justify-self:start;margin:0}
.wordle .grid-wordle>.wordle-how{position:static;grid-column:2;grid-row:2;justify-self:end;margin:0}
.wordle .grid-wordle>.wordle-x{grid-column:1/-1;grid-row:3;justify-self:center;margin:0}
.wordle .grid-wordle>.keyboard-container{grid-column:1/-1;grid-row:4;justify-self:center;margin:0}
.wordle .grid-wordle>.wordle-get{grid-column:1/-1;grid-row:5;justify-self:center;margin:0}
.wordle .grid-wordle>.wordle-hint-status{grid-column:1/-1;grid-row:6;margin:0}
.wordle .grid-wordle>.wordle-hint-status:empty{display:none}
.container-mine{height:auto;margin:24px auto}.container-mine .grid-mine{display:grid;grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr);gap:12px 6px;align-items:center;height:auto;min-height:0;padding:12px}
.grid-mine>.Flags-left{grid-column:1;grid-row:1;min-width:0;width:100%;margin:0}.grid-mine>.emotes{grid-column:2;grid-row:1;width:44px;height:44px;margin:0;justify-self:center;background-size:80%}.grid-mine>.timer-boks{grid-column:3;grid-row:1;min-width:0;width:100%;margin:0;display:flex;justify-content:flex-end}
.grid-mine .platform,.grid-mine .platform-tmr{width:100%;max-width:120px;min-width:0;padding:3px;gap:4px}.grid-mine .flag-img,.grid-mine .clock-img{width:18px;height:18px;object-fit:contain;zoom:1;flex-shrink:0}.grid-mine .counter-container,.grid-mine .counter-container-left{width:auto;min-width:0;flex:1;margin-left:0;justify-content:flex-end}
.grid-mine>.sex{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));width:100%;height:auto;aspect-ratio:1;margin:0}.grid-mine .sex>div{width:100%;height:auto;aspect-ratio:1}
.app:has(#cv) header{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:10px}.app:has(#cv) header h1{display:flex;justify-content:center;width:100%;margin:0}.app:has(#cv) header img{display:block;width:min(220px,100%);max-width:100%;height:auto;max-height:70px;object-fit:contain}.app:has(#cv) .stats{width:100%;justify-content:center}.app:has(#cv) .stat{flex:1;min-width:0}.app:has(#cv) .next{justify-content:center}
.twox-stats{display:flex;gap:12px;justify-content:center;width:calc(100% - 24px);margin-top:10px}.twox-stats>div{flex:1;min-width:0;display:grid;gap:3px;padding:8px;background:#e6f0ff;border:1px solid #a8caff;border-radius:10px}.twox-stats span{font-size:13px;line-height:1.3}.twox-stats strong{font-size:22px;line-height:1.2}


/* Stable keyboard geometry across native language layouts. */
.wordle .keyboard-container { position:static; display:flex; flex-direction:column; gap:6px; background:transparent; border:0; }
.wordle .keyboard-container .keyboard-row { gap:3px; margin:0; align-items:stretch; }
.wordle .keyboard-container .keyboard-row button { margin:0; height:46px; min-height:46px; padding:0; flex:1 1 0; max-width:44px; min-width:0; font-size:14px; letter-spacing:0; text-transform:none; }
.wordle .keyboard-container .keyboard-row button.wide-button { flex:1.85 1 0; max-width:78px; font-size:11px; }
.app #keys button { margin:0; transform:none; min-width:0; letter-spacing:0; }
@media(max-width:767px) {
 .wordle { padding:4px 0 12px; }
 .wordle .grid-wordle { margin:4px auto 10px; padding:12px 6px; gap:10px; }
 .wordle .keyboard-container { padding:0; width:100%; }
 .wordle .keyboard-container .keyboard-row button { font-size:13px; }
 .wordle .keyboard-container .keyboard-row button.wide-button { font-size:10px; }
 .page-body { padding-top:8px; }
 .app #keys { grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; }
 .app #keys button { min-height:44px; height:44px; padding:0; font-size:16px; }
}
/* A single padded frame contains every 2048 tile on desktop and mobile. */
.twox { height:auto; padding:12px 0 20px; }
.twox .twox-b { height:auto; min-height:0; padding:12px; margin:0; border:2px solid #8cbaff; box-shadow:0 12px 30px #0d6efd24; }
.twox .twox-b .grid-x { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-template-rows:repeat(4,minmax(0,1fr)); width:100%; height:auto; aspect-ratio:1; box-sizing:border-box; gap:8px; padding:8px; margin:14px 0 0; border:1px solid #a4c7fa; border-radius:16px; background:#dbe9fb; box-shadow:inset 0 1px 3px #12396814; overflow:hidden; }
.twox .grid-x>div { display:flex; align-items:center; justify-content:center; width:100%; height:100%; aspect-ratio:auto; margin:0; border:1px solid #ffffff80; border-radius:9px; box-shadow:0 2px 4px #12396814; font-size:clamp(18px,6vw,25px); }
/* Keep all mine cells on the same explicit tracks, including revealed cells. */
.container-mine { margin:14px auto 24px; }
.container-mine .grid-mine { width:min(390px,calc(100vw - 24px)); padding:12px; margin:0 auto; border:2px solid #8cbaff; border-radius:22px; background:linear-gradient(145deg,#f6faff,#e9f2ff); box-shadow:0 14px 36px #0d6efd26; }
.grid-mine>.sex { display:grid; grid-template-columns:repeat(var(--mine-columns,9),minmax(0,1fr)); grid-template-rows:repeat(var(--mine-columns,9),minmax(0,1fr)); gap:2px; padding:5px; width:100%; height:auto; aspect-ratio:1; margin:0; border:1px solid #a7c9fa; border-radius:12px; background:#d1e2f9; box-sizing:border-box; overflow:hidden; }
.grid-mine .sex>.square { display:flex; align-items:center; justify-content:center; width:100%; height:100%; min-width:0; min-height:0; aspect-ratio:auto; margin:0; padding:0; border:1px solid #abc8ec; border-radius:4px; background-color:#f5f9ff; box-shadow:inset 0 1px 0 #fff,0 1px 1px #12396816; font:800 clamp(10px,3vw,15px)/1 system-ui,sans-serif; transform:none; }
.grid-mine .sex>.checked { background-color:#e3edf9; border-color:#d2e0f2; box-shadow:none; }
.grid-mine .sex>.bomb-v { background-color:#ffe1e5; background-position:center; background-size:65%; }
.grid-mine .sex>.flag { background-position:center; background-size:65%; }
.grid-mine>.emotes { border:1px solid #a7c9fa; border-radius:12px; background-color:#fff; box-shadow:0 3px 8px #0d6efd16; }

/* Hangman follows the same native keyboard rows as Wordle. */
.app #keys { display:flex; flex-direction:column; align-items:center; gap:6px; width:100%; max-width:520px; margin:12px auto; }
.app #keys .hm-keyboard-row { display:flex; justify-content:center; align-items:stretch; gap:3px; width:100%; }
.app #keys .hm-keyboard-row button { display:flex; align-items:center; justify-content:center; flex:1 1 0; min-width:0; max-width:44px; width:auto; height:46px; min-height:46px; margin:0; padding:0; border-radius:6px; font:700 14px/1 system-ui,sans-serif; letter-spacing:0; touch-action:manipulation; transform:none; }
@media(max-width:480px){.page-body .app:has(#keys){padding-inline:7px;}.app #keys .hm-keyboard-row button{font-size:13px;}}
