/* ============================================================
   Şablon değiştirici — şablondan bağımsız, sol alt sabit
   ============================================================ */
.tpl-switch {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 999;
  font-family: 'Nunito', system-ui, sans-serif;
  display: block;
}
/* Not: Eski sol-alt maskot butonu kaldırıldı (kılık artık maskotu
   basılı tutunca değişiyor), o yüzden tema paneli sola kaymadan durur. */

/* Tema geçişi (dairesel reveal): varsayılan kayma animasyonunu kapat;
   yeni görünüm JS'in clip-path animasyonuyla daire içinde açılır */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

/* Maskotun sayfa-geçişi kimliği. View-transition'a katılan consumer'da
   (POLİTİKA = `@view-transition { navigation: auto }`, o consumer'ın işi ve
   onun <head>'inde durur) tarayıcı maskotu eski→yeni konuma MORPH'lar; kendine
   isim verilir. Politika açık DEĞİLKEN bu iki kural tamamen ETKİSİZ — bu yüzden
   kitte durması güvenli, açan bedavaya morph alır, açmayan hiçbir şey kaybetmez.
   Süre mas-enter (~0.46s) üstüne çekilir ki geçiş bitene dek canlı öğe
   pseudo-snapshot altında gizli kalsın (çift animasyon görünmez). */
.mascot { view-transition-name: mascot; }
::view-transition-group(mascot) { animation-duration: .5s; }

/* Reveal dairesinin kenarındaki renkli halka çizgisi */
.tpl-ring {
  position: fixed;
  z-index: 2100;
  border-radius: 50%;
  border: 10px solid transparent;
  transform: scale(0);
  pointer-events: none;
}

/* Yedek geçiş (View Transitions yoksa): tıklanan noktadan büyüyen boya damlası */
.tpl-splash {
  position: fixed;
  z-index: 2000;
  border-radius: 50%;
  transform: scale(0);
  opacity: 1;
  pointer-events: none;
  transition: transform .5s cubic-bezier(.55, .1, .4, 1), opacity .5s ease;
}
.tpl-splash.grow { transform: scale(1); }
.tpl-splash.fade { opacity: 0; }

.tpl-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid #14110c;
  border-radius: 999px;
  background: #2a2620;
  color: #faf3e3;
  font: 700 14px/1 'Nunito', system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(20, 17, 12, .45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tpl-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 rgba(20, 17, 12, .45); }
.tpl-btn-ico { font-size: 16px; }
.tpl-btn-txt b { color: #f4b942; }

.tpl-pop {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  width: 240px;
  max-height: min(480px, calc(100vh - 100px));
  overflow-y: auto;
  padding: 12px;
  border-radius: 16px;
  background: #fffdf6;
  box-shadow: 4px 4px 0 rgba(20, 17, 12, .4);
  border: 2px solid #2a2620;
}
.tpl-pop-title {
  margin: 2px 4px 8px;
  font: 800 12px/1 'Nunito', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6f6551;
}
.tpl-pop-hint {
  margin: 8px 4px 2px;
  font: 600 11px/1.3 'Nunito', sans-serif;
  color: #a1957c;
}

/* Nav varyantı (EkidNav) + hero varyantı satırları — tema listesinin üstünde
   segment düğmeleri (aynı görünümü paylaşırlar) */
.tpl-nav {
  display: flex;
  gap: 6px;
  margin: 0 0 12px;
}
.tpl-nav-opt, .tpl-hero-opt {
  flex: 1;
  padding: 7px 10px;
  border: 2px solid #d9cdb2;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font: 700 12px/1.2 'Nunito', sans-serif;
  color: #6f6551;
  transition: background .15s ease;
}
.tpl-nav-opt:hover, .tpl-hero-opt:hover { background: #f3e7cd; }
.tpl-nav-opt.is-active, .tpl-hero-opt.is-active { border-color: #e4572e; background: #fdebd2; color: #2a2620; }

.tpl-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background .15s ease;
}
.tpl-opt:hover { background: #f3e7cd; }
.tpl-opt.is-active { border-color: #e4572e; background: #fdebd2; }

.tpl-opt-letter {
  flex: 0 0 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e4572e;
  border: 2px solid #2a2620;
  color: #fff6e9;
  font: 800 15px/1 'Baloo 2', 'Nunito', sans-serif;
}
.tpl-opt-body b { display: block; font: 800 13px/1.2 'Nunito', sans-serif; color: #2a2620; }
.tpl-opt-body small { font: 600 11px/1.2 'Nunito', sans-serif; color: #6f6551; }

@media (max-width: 640px) {
  .tpl-switch { left: 12px; bottom: 12px; }
  .tpl-btn-txt { display: none; }
  .tpl-btn { padding: 12px; }
}

/* ---------- Maskot konuşma balonu ---------- */
.mas-bubble {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px) scale(.92);
  transform-origin: 50% 0;
  width: max-content;
  max-width: 240px;
  padding: 8px 12px;
  background: #fff;
  color: #2b2b2b;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 14px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .16);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  z-index: 5;
}
.mas-bubble::before { /* kuyruk: maskota bakan ok */
  content: '';
  position: absolute;
  left: 50%;
  top: -6px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 2px solid rgba(0, 0, 0, .78);
  border-top: 2px solid rgba(0, 0, 0, .78);
  transform: translateX(-50%) rotate(45deg);
}
.mas-bubble.on {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  transition: opacity .25s ease, transform .25s ease;
}
/* Daktilo imleci: yazarken yanıp söner */
.mas-bubble.typing .mas-bubble-text::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: currentColor;
  /* NOT: şablonlardaki göz kırpma animasyonu da "masblink" adında;
     şablon CSS'i sonra yüklendiğinden adı ayrı tutmak şart */
  animation: masbubbleblink .7s steps(1) infinite;
}
@keyframes masbubbleblink { 50% { opacity: 0; } }

/* ---------- Maskot kılık değiştirme: basılı tut ----------
   Tek tık = tema. Basılı tutunca kılık değişir: mevcut maskot
   yandan koşup kaçar, yeni maskot öbür yandan koşarak gelir.
   Jest maskotun üstünde olduğu için ayrı bir buton yok. */

/* Metin seçilmesin, uzun-basışta menü/callout çıkmasın, dokunuşu biz alalım */
.mascot {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}

/* Basılı tutarken hafif çömelme: "bir şey oluyor" hissi + jesti keşfettirir */
.mascot.mas-charging {
  animation: mascharge .5s ease forwards;
}
@keyframes mascharge {
  0%   { transform: translateX(-50%) scale(1) translateY(0); }
  100% { transform: translateX(-50%) scale(.9) translateY(3px); }
}

/* Kaçış: sağ yana koşup küçülerek kaybolur */
.mascot.mas-exit {
  animation: masrunoff .34s cubic-bezier(.5, 0, .75, .3) forwards;
}
@keyframes masrunoff {
  0%   { transform: translateX(-50%) translateX(0) rotate(0) scale(1); opacity: 1; }
  55%  { transform: translateX(-50%) translateX(10px) rotate(-8deg) scale(1.02); opacity: 1; }
  100% { transform: translateX(-50%) translateX(64px) rotate(20deg) scale(.55); opacity: 0; }
}

/* Geliş: sol yandan koşarak dalıp yerine oturur */
.mascot.mas-enter {
  animation: masrunin .42s cubic-bezier(.25, .9, .35, 1.25) forwards;
}
@keyframes masrunin {
  0%   { transform: translateX(-50%) translateX(-64px) rotate(-20deg) scale(.55); opacity: 0; }
  55%  { opacity: 1; }
  70%  { transform: translateX(-50%) translateX(6px) rotate(6deg) scale(1.04); opacity: 1; }
  100% { transform: translateX(-50%) translateX(0) rotate(0) scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mascot.mas-charging,
  .mascot.mas-exit,
  .mascot.mas-enter,
  .mascot.mas-idlehop { animation: none; }
}

/* ---------- Mobil: yüzen dost ----------
   Şablonlar 700px altında nav maskotunu gizler (sekmeler burger'a girince
   bekçilik biter). Burada maskot sağ-alt köşeye "yüzen dost" olarak taşınır;
   tık = tema, basılı tut = kılık aynen çalışır. Şablon CSS'i bu dosyadan
   SONRA yüklendiği için seçici bilerek daha özgül (html .mascot).
   Maskotun tüm keyframe'leri translateX(-50%) içerdiğinden konum right
   yerine left+calc ile verilir; böylece zıplama/parti animasyonları
   maskotu yana kaydırmaz. */
@media (max-width: 700px) {
  html .mascot {
    display: block;
    position: fixed;
    top: auto;
    /* !important: masaüstü sekme yürüyüşünden kalan satır-içi left'i de ezer
       (resize sonrası scroll, JS temizliğini iptal edebiliyor) */
    left: calc(100vw - 46px) !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 998;
    /* Büzülme/çıkma yumuşak olsun; left geçişi bilerek listede yok */
    transition: transform .35s ease, opacity .35s ease;
  }
  /* Boşta yaşam: aşağı kaydırınca sağ kenara büzülür (yüzü yarım dışarıda),
     yukarı kaydırınca yerine çıkar */
  html .mascot.mas-tuck {
    transform: translateX(-50%) translateX(30px) scale(.72);
    opacity: .6;
  }
  /* Ara sıra kendiliğinden minik zıplama: köşede yaşadığı belli olsun */
  html .mascot.mas-idlehop { animation: masidlehop .85s ease; }
  @keyframes masidlehop {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(0); }
    25%      { transform: translateX(-50%) translateY(-11px) rotate(-4deg); }
    45%      { transform: translateX(-50%) translateY(0) rotate(0); }
    62%      { transform: translateX(-50%) translateY(-5px) rotate(3deg); }
    80%      { transform: translateX(-50%) translateY(0) rotate(0); }
  }
  /* Balon maskotun SOLUNA açılır (sağda yer yok) */
  .mas-bubble {
    top: 50%;
    bottom: auto;
    left: auto;
    right: calc(100% + 14px);
    max-width: min(230px, calc(100vw - 100px));
    transform: translateY(-50%) translateX(6px) scale(.92);
    transform-origin: 100% 50%;
  }
  .mas-bubble::before { /* kuyruk sağa döner, maskota bakar */
    left: auto;
    top: 50%;
    right: -6px;
    margin-top: -5px;
    border-left: none;
    border-top: 2px solid rgba(0, 0, 0, .78);
    border-right: 2px solid rgba(0, 0, 0, .78);
    transform: rotate(45deg);
  }
  .mas-bubble.on { transform: translateY(-50%) translateX(0) scale(1); }
  /* Tema pili: işini artık yüzen maskot yaptığı için mobilde gizli */
  .tpl-switch { display: none; }

  /* Çekmece gösterisinde sahne kararır: nav + çekmece (ve içindeki maskot)
     dışında her şey söner. Tema damlası/halkası hariç: onların kendi
     opacity geçişleri var, ezilmesin. */
  body > :not(.nav):not(.tpl-splash):not(.tpl-ring) { transition: opacity .25s ease; }
  html.mas-dim body > :not(.nav):not(.tpl-splash):not(.tpl-ring) { opacity: .3; }

  /* İşi maskot devralınca burger küçülerek kaybolur; iş bitince X olarak döner */
  html .nav-burger { transition: transform .3s ease, opacity .3s ease; }
  html .nav-burger.burger-hide {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
  }
}

/* Maskot çekmeceyi indirirken içerik yükseklik animasyonundan taşmasın */
.nav-drawer.drawer-drop { overflow: hidden; }

/* ============================================================
   Dil çipi (.lang-chip) — çok-dilli consumer'ların TR/EN geçiş
   linki (nav-in + drawer içinde). Kılıkların aksine TEMAYLA
   BOYANIR: token değişkenleri kullanır (bu dosya theme.css'ten
   önce yüklense de var() hesaplama anında çözülür). Tek-dilli
   consumer .lang-chip basmaz → kurallar zararsız durur.
   ============================================================ */
.lang-chip {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  padding: 7px 12px;
  border: 2px solid var(--ink, #333);
  border-radius: 999px;
  background: var(--card, #fff);
  color: var(--ink, #333);
  font-family: var(--font-head, system-ui);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .04em;
  text-decoration: none;
  box-shadow: var(--hard-sm, 2px 2px 0 var(--ink, #333));
  transition: transform .15s ease;
}
.lang-chip:hover { transform: translateY(-2px); }
/* Bar içinde çip SAĞ kümeye yaslanır (CTA'nın yanı): space-between dağılımında
   ortada yüzmesin. Drawer'daki çip etkilenmez (margin:auto yalnız flex barda). */
.nav-in .lang-chip { margin-left: auto; }
.nav-in .lang-chip + .nav-cta { margin-left: 0; }

/* ============================================================
   Maskot duvara çarpma (.mas-bump-l/r) — sekme hedefi barın
   akıştaki komşularına (logo / dil çipi / CTA) taşarsa maskot
   duvarda durup sekiyor (MascotController kırpar + bu sınıfı
   basar). Kural: her karede taban translateX(-50%) korunur.
   ============================================================ */
.mascot.mas-bump-r { animation: masbumpr .45s cubic-bezier(.34, 1.56, .64, 1); }
.mascot.mas-bump-l { animation: masbumpl .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes masbumpr {
  0%   { transform: translateX(-50%) scaleX(1); }
  30%  { transform: translateX(-50%) translateX(5px) scaleX(.82); }
  62%  { transform: translateX(-50%) translateX(-8px) scaleX(1.06); }
  100% { transform: translateX(-50%) scaleX(1); }
}
@keyframes masbumpl {
  0%   { transform: translateX(-50%) scaleX(1); }
  30%  { transform: translateX(-50%) translateX(-5px) scaleX(.82); }
  62%  { transform: translateX(-50%) translateX(8px) scaleX(1.06); }
  100% { transform: translateX(-50%) scaleX(1); }
}

/* ---------- Maskot tipi: KEDİ ----------
   Yüz turuncu, iki üçgen kulak (bere ikiz üçgene dönüşür). */
html[data-mascot="kedi"] .mas-face,
html[data-mascot="kedi"] .mas-arm { background: #ffd9a0;
}
html[data-mascot="kedi"] .mas-hat {
  left: 50%; top: 9px;
  width: 14px; height: 14px;
  background: #ffd9a0;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 62% 38% 55% 45%;
  transform: translateX(-168%) rotate(-28deg);
  box-shadow: none;
}
html[data-mascot="kedi"] .mas-hat::after {
  content: '';
  position: absolute;
  left: 17px; top: -1px;
  width: 14px; height: 14px;
  background: #ffd9a0;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 38% 62% 45% 55%;
  transform: rotate(55deg);
}
/* Hareket: hover/party'de kulaklar kısa kısa SEĞİRİR (twitch). */
html[data-mascot="kedi"] .mascot:hover .mas-hat,
html[data-mascot="kedi"] .mascot.party .mas-hat {
  animation: mkkedi-twitchl 1.294s ease-in-out infinite;
}
html[data-mascot="kedi"] .mascot:hover .mas-hat::after,
html[data-mascot="kedi"] .mascot.party .mas-hat::after {
  animation: mkkedi-twitchr 1.294s ease-in-out .412s infinite;
}
@keyframes mkkedi-twitchl {
  0%, 78%, 100% { transform: translateX(-168%) rotate(-28deg); }
  84%           { transform: translateX(-168%) rotate(-42deg); }
  92%           { transform: translateX(-168%) rotate(-23deg); }
}
@keyframes mkkedi-twitchr {
  0%, 78%, 100% { transform: rotate(55deg); }
  84%           { transform: rotate(69deg); }
  92%           { transform: rotate(50deg); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-mascot="kedi"] .mascot:hover .mas-hat,
  html[data-mascot="kedi"] .mascot.party .mas-hat,
  html[data-mascot="kedi"] .mascot:hover .mas-hat::after,
  html[data-mascot="kedi"] .mascot.party .mas-hat::after { animation: none; }
}

/* ---------- Maskot tipi: ROBOT ----------
   Yüz kare panel, bere anten olur, gözler piksel, yanaklar vida. */
html[data-mascot="robot"] .mas-face {
  background: #e6eef8;
  border-radius: 11px;
}
html[data-mascot="robot"] .mas-arm { background: #e6eef8; border-radius: 3px; }
html[data-mascot="robot"] .mas-hat {
  left: 50%; top: 4px;
  width: 3px; height: 11px;
  background: rgba(0, 0, 0, .78);
  border: none;
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: none;
}
html[data-mascot="robot"] .mas-hat::after {
  content: '';
  position: absolute;
  left: 50%; top: -8px;
  width: 8px; height: 8px;
  background: #ff5d6c;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 50%;
  transform: translateX(-50%);
}
html[data-mascot="robot"] .mas-eye i { border-radius: 2px; }
html[data-mascot="robot"] .mas-cheek {
  width: 6px; height: 6px;
  background: #b7c7e2;
  border-radius: 2px;
  opacity: 1;
}
html[data-mascot="robot"] .mas-mouth {
  width: 15px; height: 6px;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, transparent 0 2px, rgba(0, 0, 0, .3) 2px 4px);
}
/* Hareket: hover/party'de kafa paneli robotik adımlarla TİTREŞİR, anten LED'i yanıp söner. */
html[data-mascot="robot"] .mascot:hover .mas-face,
html[data-mascot="robot"] .mascot.party .mas-face {
  animation: mkrobot-buzz .588s steps(2, end) infinite;
}
html[data-mascot="robot"] .mascot:hover .mas-hat::after,
html[data-mascot="robot"] .mascot.party .mas-hat::after {
  animation: mkrobot-led .706s steps(1, end) infinite;
}
@keyframes mkrobot-buzz {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
  25%      { transform: translateX(-52%) translateY(-1px) rotate(-1deg); }
  50%      { transform: translateX(-48%) translateY(0) rotate(1deg); }
  75%      { transform: translateX(-50%) translateY(-1px) rotate(0deg); }
}
@keyframes mkrobot-led {
  0%, 100% { opacity: 1; filter: brightness(1.5); }
  50%      { opacity: .45; filter: brightness(1); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-mascot="robot"] .mascot:hover .mas-hat::after,
  html[data-mascot="robot"] .mascot.party .mas-hat::after { animation: none; }
}

/* ---------- Maskot tipi: KALEM ----------
   Yüz uzun kalem gövdesi, bere silgi olur, gövde ahşap çizgili. */
html[data-mascot="kalem"] .mas-face {
  width: 24px; height: 46px;
  border-radius: 7px 7px 9px 9px;
  background: #FAC775;
}
html[data-mascot="kalem"] .mas-face::before {
  content: '';
  position: absolute;
  left: 5px; top: 2px; bottom: 2px;
  width: 2px;
  background: rgba(186, 117, 23, .5);
  box-shadow: 10px 0 0 rgba(186, 117, 23, .5);
}
html[data-mascot="kalem"] .mas-eye { top: 20px;
}
html[data-mascot="kalem"] .mas-eye-l { left: 4px;
}
html[data-mascot="kalem"] .mas-eye-r { right: 4px;
}
html[data-mascot="kalem"] .mas-cheek { display: none;
}
html[data-mascot="kalem"] .mas-mouth { top: 29px; width: 8px;
}
html[data-mascot="kalem"] .mas-arm { background: #FAC775;
}
html[data-mascot="kalem"] .mas-hat {
  left: 50%; top: 0;
  width: 24px; height: 9px;
  background: #ED93B1;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 6px 6px 2px 2px;
  transform: translateX(-50%);
  box-shadow: none;
}
html[data-mascot="kalem"] .mas-hat::after {
  content: '';
  position: absolute;
  left: -2px; top: 8px;
  width: 24px; height: 3px;
  background: #B4B2A9;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 2px;
}
/* Hareket: hover/party'de silgi başlık yazıyormuş gibi TİK-TAK eğilir. */
html[data-mascot="kalem"] .mascot:hover .mas-hat,
html[data-mascot="kalem"] .mascot.party .mas-hat {
  transform-origin: 50% 100%;
  animation: mkkalem-tiktak .941s ease-in-out infinite;
}
@keyframes mkkalem-tiktak {
  0%, 100% { transform: translateX(-50%) rotate(-7deg); }
  50%      { transform: translateX(-50%) rotate(7deg); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-mascot="kalem"] .mascot:hover .mas-hat,
  html[data-mascot="kalem"] .mascot.party .mas-hat { animation: none; }
}

/* ---------- Maskot tipi: PALYAÇO ----------
   Kırmızı burun, yeşil şapka, sarı fırfır ponpon yanaklar. */
html[data-mascot="palyaco"] .mas-face { background: #FAFAF7;
}
html[data-mascot="palyaco"] .mas-face::after {
  content: '';
  position: absolute;
  left: 50%; top: 18px;
  width: 9px; height: 9px;
  margin-left: -4.5px;
  background: #E24B4A;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 50%;
}
html[data-mascot="palyaco"] .mas-mouth { top: 28px; width: 14px;
}
html[data-mascot="palyaco"] .mascot::before,
html[data-mascot="palyaco"] .mascot::after {
  content: '';
  position: absolute;
  bottom: 22px;
  width: 13px; height: 13px;
  background: #EF9F27;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 50%;
}
html[data-mascot="palyaco"] .mascot::before { left: -1px;
}
html[data-mascot="palyaco"] .mascot::after { right: -1px;
}
html[data-mascot="palyaco"] .mas-hat {
  left: 50%; top: 0;
  width: 16px; height: 10px;
  background: #5DCAA5;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 6px 6px 2px 2px;
  transform: translateX(-50%) rotate(-8deg);
  box-shadow: none;
}
html[data-mascot="palyaco"] .mas-hat::after {
  content: '';
  position: absolute;
  left: 50%; top: -5px;
  width: 6px; height: 6px;
  margin-left: -3px;
  background: #FAC775;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 50%;
}
/* Hareket: hover/party'de kırmızı burun ZIPLAR, şapka yana kayıp döner (ponpon şapkayla gider). */
html[data-mascot="palyaco"] .mascot:hover .mas-face::after,
html[data-mascot="palyaco"] .mascot.party .mas-face::after {
  animation: mkpalyaco-burun .647s ease-in-out infinite;
}
html[data-mascot="palyaco"] .mascot:hover .mas-hat,
html[data-mascot="palyaco"] .mascot.party .mas-hat {
  animation: mkpalyaco-sapka 1.294s ease-in-out infinite;
}
@keyframes mkpalyaco-burun {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-2px) scale(1.12); }
}
@keyframes mkpalyaco-sapka {
  0%, 100% { transform: translateX(-50%) rotate(-8deg); }
  50%      { transform: translateX(-42%) rotate(5deg); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-mascot="palyaco"] .mascot:hover .mas-face::after,
  html[data-mascot="palyaco"] .mascot.party .mas-face::after,
  html[data-mascot="palyaco"] .mascot:hover .mas-hat,
  html[data-mascot="palyaco"] .mascot.party .mas-hat { animation: none; }
}

/* ---------- Maskot tipi: KORSAN ----------
   Bere kırmızı puantiyeli korsan bandanası olur, sağ göz siyah bant. */
html[data-mascot="korsan"] .mas-hat {
  left: 50%; top: 5px;
  width: 42px; height: 15px;
  background-color: #E24B4A;
  background-image: radial-gradient(#FAFAF7 1.3px, transparent 1.6px);
  background-size: 9px 7px;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 20px 20px 4px 4px;
  transform: translateX(-50%);
  box-shadow: none;
}
html[data-mascot="korsan"] .mas-hat::after {
  content: '';
  position: absolute;
  right: -8px; top: 7px;
  width: 10px; height: 7px;
  background: #E24B4A;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 2px 6px 6px 2px;
  transform: rotate(20deg);
}
html[data-mascot="korsan"] .mas-face::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 15px;
  height: 2px;
  background: rgba(0, 0, 0, .78);
}
html[data-mascot="korsan"] .mas-eye-r { right: 7px; top: 13px;
}
html[data-mascot="korsan"] .mas-eye-r i {
  width: 11px; height: 10px;
  border-radius: 3px;
  background: #2C2C2A;
}
/* Hareket: hover/party'de bandana kuyruğu rüzgârda SAVRULUR. */
html[data-mascot="korsan"] .mascot:hover .mas-hat::after,
html[data-mascot="korsan"] .mascot.party .mas-hat::after {
  animation: mkkorsan-kuyruk 1.059s ease-in-out infinite;
}
@keyframes mkkorsan-kuyruk {
  0%, 100% { transform: rotate(20deg); }
  30%      { transform: rotate(38deg); }
  70%      { transform: rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-mascot="korsan"] .mascot:hover .mas-hat::after,
  html[data-mascot="korsan"] .mascot.party .mas-hat::after { animation: none; }
}

/* ---------- Maskot tipi: KAHRAMAN ----------
   Bere gizlenir, yüze maske bandı iner, gözler beyaz parlar, kollar pelerin olur. */
html[data-mascot="kahraman"] .mas-hat { display: none;
}
html[data-mascot="kahraman"] .mas-face::before {
  content: '';
  position: absolute;
  left: -2px; right: -2px; top: 11px;
  height: 13px;
  background: #378ADD;
  border-top: 2px solid rgba(0, 0, 0, .78);
  border-bottom: 2px solid rgba(0, 0, 0, .78);
}
html[data-mascot="kahraman"] .mas-eye i { background: #fff;
}
html[data-mascot="kahraman"] .mas-arm {
  background: #E24B4A;
  width: 8px; height: 20px;
  border-radius: 2px 2px 6px 6px;
}
/* Hareket: hover/party'de kahramanca SÜZÜLME — gövde yükselir, maske bandı rüzgârda dalgalanır. */
html[data-mascot="kahraman"] .mascot:hover .mas-face,
html[data-mascot="kahraman"] .mascot.party .mas-face {
  animation: mkkahraman-suzul 1.412s ease-in-out infinite;
}
html[data-mascot="kahraman"] .mascot:hover .mas-face::before,
html[data-mascot="kahraman"] .mascot.party .mas-face::before {
  animation: mkkahraman-maske 1.412s ease-in-out infinite;
}
@keyframes mkkahraman-suzul {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-3px); }
}
@keyframes mkkahraman-maske {
  0%, 100% { transform: skewX(0deg); }
  50%      { transform: skewX(-7deg); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-mascot="kahraman"] .mascot:hover .mas-face::before,
  html[data-mascot="kahraman"] .mascot.party .mas-face::before { animation: none; }
}

/* ---------- Maskot tipi: OTOBUS ----------
   Yüz sarı otobüs gövdesi, yanlarda pencereler, tekerlekler, bere tepe lambası. */
html[data-mascot="otobus"] .mas-face {
  width: 50px; height: 38px;
  border-radius: 10px;
  background: #FAC775;
}
html[data-mascot="otobus"] .mas-face::before,
html[data-mascot="otobus"] .mas-face::after {
  content: '';
  position: absolute;
  top: 5px;
  width: 16px; height: 12px;
  background: #B5D4F4;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 4px;
}
html[data-mascot="otobus"] .mas-face::before { left: 4px;
}
html[data-mascot="otobus"] .mas-face::after { right: 4px;
}
html[data-mascot="otobus"] .mas-eye { top: 9px; z-index: 1;
}
html[data-mascot="otobus"] .mas-eye-l { left: 11px;
}
html[data-mascot="otobus"] .mas-eye-r { right: 11px;
}
html[data-mascot="otobus"] .mas-cheek {
  top: 27px;
  width: 6px; height: 6px;
  background: #EF9F27;
  border-radius: 50%;
  opacity: 1;
}
html[data-mascot="otobus"] .mas-cheek-l { left: 3px;
}
html[data-mascot="otobus"] .mas-cheek-r { right: 3px;
}
html[data-mascot="otobus"] .mas-mouth { top: 26px; width: 14px;
}
html[data-mascot="otobus"] .mascot::before,
html[data-mascot="otobus"] .mascot::after {
  content: '';
  position: absolute;
  bottom: -3px;
  width: 11px; height: 11px;
  background: #5F5E5A;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 50%;
}
html[data-mascot="otobus"] .mascot::before { left: 7px;
}
html[data-mascot="otobus"] .mascot::after { right: 7px;
}
html[data-mascot="otobus"] .mas-arm { background: #FAC775;
}
html[data-mascot="otobus"] .mas-hat {
  left: 50%; top: 10px;
  width: 10px; height: 6px;
  background: #E24B4A;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 3px;
  transform: translateX(-50%);
  box-shadow: none;
}
html[data-mascot="otobus"] .mas-hat::after { content: none;
}
/* Hareket: hover/party'de gövde yolda ritmik ZIPLAR, tepe lambası aynı ritimde parlayarak eşlik eder. */
html[data-mascot="otobus"] .mascot:hover .mas-face,
html[data-mascot="otobus"] .mascot.party .mas-face {
  animation: mkotobus-yol .706s ease-in-out infinite;
}
html[data-mascot="otobus"] .mascot:hover .mas-hat,
html[data-mascot="otobus"] .mascot.party .mas-hat {
  animation: mkotobus-lamba .706s ease-in-out infinite;
}
@keyframes mkotobus-yol {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  30%      { transform: translateX(-50%) translateY(-2px); }
  60%      { transform: translateX(-50%) translateY(-.5px); }
  80%      { transform: translateX(-50%) translateY(-1.5px); }
}
@keyframes mkotobus-lamba {
  0%, 100% { transform: translateX(-50%) translateY(0); filter: brightness(1); }
  30%      { transform: translateX(-50%) translateY(-2px); filter: brightness(1.7); }
  60%      { transform: translateX(-50%) translateY(-.5px); filter: brightness(1); }
  80%      { transform: translateX(-50%) translateY(-1.5px); filter: brightness(1.4); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-mascot="otobus"] .mascot:hover .mas-hat,
  html[data-mascot="otobus"] .mascot.party .mas-hat { animation: none; }
}

/* ---------- Maskot tipi: MANTAR ----------
   Yüz yuvarlak mantar gövdesi, bere benekli kırmızı şapka olur. */
html[data-mascot="mantar"] .mas-face {
  width: 34px; height: 30px;
  border-radius: 45% 45% 40% 40%;
  background: #FFE9D6;
}
html[data-mascot="mantar"] .mas-eye { top: 10px;
}
html[data-mascot="mantar"] .mas-eye-l { left: 8px;
}
html[data-mascot="mantar"] .mas-eye-r { right: 8px;
}
html[data-mascot="mantar"] .mas-cheek { top: 16px;
}
html[data-mascot="mantar"] .mas-cheek-l { left: 3px;
}
html[data-mascot="mantar"] .mas-cheek-r { right: 3px;
}
html[data-mascot="mantar"] .mas-mouth { top: 17px;
}
html[data-mascot="mantar"] .mas-arm { background: #FFE9D6;
}
html[data-mascot="mantar"] .mas-hat {
  left: 50%; top: 1px;
  width: 52px; height: 26px;
  background-color: #E24B4A;
  background-image: radial-gradient(#FAFAF7 2.2px, transparent 2.6px);
  background-size: 13px 10px;
  background-position: 4px 4px;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 26px 26px 8px 8px;
  transform: translateX(-50%);
  box-shadow: none;
}
html[data-mascot="mantar"] .mas-hat::after { content: none;
}
/* Hareket: hover/party'de benekli şapka neşeyle HOPLAR (tepede benekler parıldar). */
html[data-mascot="mantar"] .mascot:hover .mas-hat,
html[data-mascot="mantar"] .mascot.party .mas-hat {
  animation: mkmantar-hop .941s ease-in-out infinite;
}
@keyframes mkmantar-hop {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); filter: brightness(1); }
  40%      { transform: translateX(-50%) translateY(-3px) rotate(-2deg); filter: brightness(1.1); }
  70%      { transform: translateX(-50%) translateY(-1px) rotate(1.5deg); filter: brightness(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-mascot="mantar"] .mascot:hover .mas-hat,
  html[data-mascot="mantar"] .mascot.party .mas-hat { animation: none; }
}

/* ---------- Maskot tipi: DONDURMA ----------
   Yüz külah + top oluru, bere kiraz olur, alt kısım gofret dokusu. */
html[data-mascot="dondurma"] .mas-face {
  width: 36px; height: 46px;
  border-radius: 50% 50% 42% 42%;
  background: linear-gradient(#F4C0D1 0 60%, #FAC775 60% 100%);
}
html[data-mascot="dondurma"] .mas-face::after {
  content: '';
  position: absolute;
  left: 5px; right: 5px; bottom: 3px;
  height: 13px;
  background: repeating-linear-gradient(45deg, transparent 0 4px, rgba(186, 117, 23, .45) 4px 5.5px);
  border-radius: 0 0 12px 12px;
}
html[data-mascot="dondurma"] .mas-eye { top: 13px;
}
html[data-mascot="dondurma"] .mas-cheek { top: 19px;
}
html[data-mascot="dondurma"] .mas-cheek-l { left: 4px;
}
html[data-mascot="dondurma"] .mas-cheek-r { right: 4px;
}
html[data-mascot="dondurma"] .mas-mouth { top: 20px;
}
html[data-mascot="dondurma"] .mas-arm { background: #F4C0D1;
}
html[data-mascot="dondurma"] .mas-hat {
  left: 50%; top: 0;
  width: 10px; height: 10px;
  background: #E24B4A;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: none;
}
html[data-mascot="dondurma"] .mas-hat::after {
  content: '';
  position: absolute;
  left: 50%; top: -7px;
  width: 2px; height: 7px;
  margin-left: -1px;
  background: rgba(0, 0, 0, .78);
  border-radius: 1px;
}
/* Hareket: hover/party'de tepedeki kiraz düşecekmiş gibi YALPALANIR — ama düşmez. */
html[data-mascot="dondurma"] .mascot:hover .mas-hat,
html[data-mascot="dondurma"] .mascot.party .mas-hat {
  transform-origin: 50% 120%;
  animation: mkdondurma-yalpa 1.059s ease-in-out infinite;
}
@keyframes mkdondurma-yalpa {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  25%      { transform: translateX(-50%) rotate(-13deg); }
  75%      { transform: translateX(-50%) rotate(13deg); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-mascot="dondurma"] .mascot:hover .mas-hat,
  html[data-mascot="dondurma"] .mascot.party .mas-hat { animation: none; }
}

/* ---------- Maskot tipi: SAAT ----------
   Yüz yuvarlak kadran, tepede iki çalar-zil olur. */
html[data-mascot="saat"] .mas-face {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #FAFAF7;
}
html[data-mascot="saat"] .mas-face::before {
  content: '';
  position: absolute;
  left: 50%; top: 3px;
  width: 2px; height: 4px;
  margin-left: -1px;
  background: rgba(0, 0, 0, .78);
}
html[data-mascot="saat"] .mas-arm { background: #FAFAF7;
}
html[data-mascot="saat"] .mas-hat {
  left: 50%; top: 3px;
  width: 13px; height: 9px;
  background: #FAC775;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 8px 8px 2px 2px;
  transform: translateX(-160%) rotate(-22deg);
  box-shadow: none;
}
html[data-mascot="saat"] .mas-hat::after {
  content: '';
  position: absolute;
  left: 19px; top: -2px;
  width: 13px; height: 9px;
  background: #FAC775;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 8px 8px 2px 2px;
  transform: rotate(44deg);
}
/* Hareket: hover/party'de kadran metronom gibi TİK-TAK sallanır, ziller titrer. */
html[data-mascot="saat"] .mascot:hover .mas-face,
html[data-mascot="saat"] .mascot.party .mas-face {
  animation: mksaat-tiktak 1.176s linear infinite;
}
html[data-mascot="saat"] .mascot:hover .mas-hat,
html[data-mascot="saat"] .mascot.party .mas-hat {
  animation: mksaat-zill .588s ease-in-out infinite;
}
html[data-mascot="saat"] .mascot:hover .mas-hat::after,
html[data-mascot="saat"] .mascot.party .mas-hat::after {
  animation: mksaat-zilr .588s ease-in-out infinite;
}
@keyframes mksaat-tiktak {
  0%, 45%  { transform: translateX(-50%) rotate(-3deg); }
  50%, 95% { transform: translateX(-50%) rotate(3deg); }
  100%     { transform: translateX(-50%) rotate(-3deg); }
}
@keyframes mksaat-zill {
  0%, 100% { transform: translateX(-160%) rotate(-22deg); }
  50%      { transform: translateX(-160%) rotate(-34deg); }
}
@keyframes mksaat-zilr {
  0%, 100% { transform: rotate(44deg); }
  50%      { transform: rotate(56deg); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-mascot="saat"] .mascot:hover .mas-hat,
  html[data-mascot="saat"] .mascot.party .mas-hat,
  html[data-mascot="saat"] .mascot:hover .mas-hat::after,
  html[data-mascot="saat"] .mascot.party .mas-hat::after { animation: none; }
}

/* ---------- Maskot tipi: ZİL ----------
   Yüz çan gövdesi, alt tepsi ve tokmak, bere çan kulpu olur. */
html[data-mascot="zil"] .mas-face {
  width: 38px; height: 38px;
  border-radius: 50% 50% 18% 18%;
  background: #FAC775;
}
html[data-mascot="zil"] .mas-face::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px; bottom: -2px;
  height: 6px;
  background: #FAC775;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 5px;
}
html[data-mascot="zil"] .mas-face::before {
  content: '';
  position: absolute;
  left: 50%; bottom: -8px;
  width: 8px; height: 8px;
  margin-left: -4px;
  background: #EF9F27;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 50%;
}
html[data-mascot="zil"] .mas-eye { top: 14px;
}
html[data-mascot="zil"] .mas-cheek { top: 20px;
}
html[data-mascot="zil"] .mas-mouth { top: 21px;
}
html[data-mascot="zil"] .mas-arm { background: #FAC775;
}
html[data-mascot="zil"] .mas-hat {
  left: 50%; top: 7px;
  width: 12px; height: 8px;
  background: transparent;
  border: 2.5px solid rgba(0, 0, 0, .78);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  transform: translateX(-50%);
  box-shadow: none;
}
html[data-mascot="zil"] .mas-hat::after { content: none;
}
/* — Hareket: zil çalar — çan gövdesi kulptan hızla sağa-sola sallanır, tokmak zıt fazda — */
html[data-mascot="zil"] .mascot:hover .mas-face,
html[data-mascot="zil"] .mascot.party .mas-face {
  transform-origin: 50% 0;
  animation: mkzil-ring .588s ease-in-out infinite;
}
html[data-mascot="zil"] .mascot:hover .mas-face::before,
html[data-mascot="zil"] .mascot.party .mas-face::before {
  animation: mkzil-clap .588s ease-in-out infinite;
}
@keyframes mkzil-ring {
  0%, 100% { transform: translateX(-50%) rotate(10deg); }
  50%      { transform: translateX(-50%) rotate(-10deg); }
}
@keyframes mkzil-clap {
  0%, 100% { transform: translateX(-4px); }
  50%      { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-mascot="zil"] .mascot:hover .mas-face::before,
  html[data-mascot="zil"] .mascot.party .mas-face::before { animation: none; }
}

/* ---------- Maskot tipi: PUZZLE ----------
   Yüz bir yapboz parçası, kenarlarda çıkıntılar (knob). */
html[data-mascot="puzzle"] .mas-face {
  width: 38px; height: 36px;
  border-radius: 9px;
  background: #5DCAA5;
}
html[data-mascot="puzzle"] .mas-face::after {
  content: '';
  position: absolute;
  right: -8px; top: 11px;
  width: 13px; height: 13px;
  background: #5DCAA5;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 50%;
}
html[data-mascot="puzzle"] .mas-eye { top: 12px;
}
html[data-mascot="puzzle"] .mas-cheek { top: 18px;
}
html[data-mascot="puzzle"] .mas-mouth { top: 20px;
}
html[data-mascot="puzzle"] .mas-arm { background: #5DCAA5;
}
html[data-mascot="puzzle"] .mas-hat {
  left: 50%; top: 11px;
  width: 13px; height: 13px;
  background: #5DCAA5;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: none;
}
html[data-mascot="puzzle"] .mas-hat::after { content: none;
}
/* — Hareket: parça hafif ayrılıp yerine oturur, üst knob zıt fazda hoplar — */
html[data-mascot="puzzle"] .mascot:hover .mas-face,
html[data-mascot="puzzle"] .mascot.party .mas-face {
  animation: mkpuzzle-snap 1.059s ease-in-out infinite;
}
html[data-mascot="puzzle"] .mascot:hover .mas-hat,
html[data-mascot="puzzle"] .mascot.party .mas-hat {
  animation: mkpuzzle-knob 1.059s ease-in-out infinite;
}
@keyframes mkpuzzle-snap {
  0%, 100% { transform: translateX(-50%) translate(0, 0) rotate(0deg); }
  40%      { transform: translateX(-50%) translate(3px, -3px) rotate(4deg); }
  70%      { transform: translateX(-50%) translate(-1px, 0) rotate(-2deg); }
}
@keyframes mkpuzzle-knob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  40%      { transform: translateX(-50%) translateY(-3px); }
  70%      { transform: translateX(-50%) translateY(1px); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-mascot="puzzle"] .mascot:hover .mas-hat,
  html[data-mascot="puzzle"] .mascot.party .mas-hat { animation: none; }
}

/* ---------- Maskot tipi: CANTA ----------
   Yüz sırt çantası gövdesi, ön cep, sapkalık askı, yan askılar. */
html[data-mascot="canta"] .mas-face {
  width: 40px; height: 42px;
  border-radius: 12px 12px 10px 10px;
  background: #5DCAA5;
}
html[data-mascot="canta"] .mas-face::before {
  content: '';
  position: absolute;
  left: 6px; right: 6px; bottom: 3px;
  height: 16px;
  background: #9FE1CB;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 7px;
}
html[data-mascot="canta"] .mas-eye { top: 12px;
}
html[data-mascot="canta"] .mas-cheek { display: none;
}
html[data-mascot="canta"] .mas-mouth { top: 28px; width: 12px;
}
html[data-mascot="canta"] .mascot::before,
html[data-mascot="canta"] .mascot::after {
  content: '';
  position: absolute;
  bottom: 5px;
  width: 5px; height: 18px;
  background: #0F6E56;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 3px;
}
html[data-mascot="canta"] .mascot::before { left: 3px;
}
html[data-mascot="canta"] .mascot::after { right: 3px;
}
html[data-mascot="canta"] .mas-arm { background: #5DCAA5;
}
html[data-mascot="canta"] .mas-hat {
  left: 50%; top: 4px;
  width: 18px; height: 11px;
  background: transparent;
  border: 3px solid rgba(0, 0, 0, .78);
  border-bottom: none;
  border-radius: 9px 9px 0 0;
  transform: translateX(-50%);
  box-shadow: none;
}
html[data-mascot="canta"] .mas-hat::after { content: none;
}
/* — Hareket: okula koşan çanta ritmik hoplar, sap gecikmeli zıt fazda oynar — */
html[data-mascot="canta"] .mascot:hover .mas-face,
html[data-mascot="canta"] .mascot.party .mas-face {
  animation: mkcanta-hop .706s ease-in-out infinite;
}
html[data-mascot="canta"] .mascot:hover .mas-hat,
html[data-mascot="canta"] .mascot.party .mas-hat {
  animation: mkcanta-strap .706s ease-in-out infinite;
}
@keyframes mkcanta-hop {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
  50%      { transform: translateX(-50%) translateY(-4px) rotate(-2deg); }
}
@keyframes mkcanta-strap {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(2px); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-mascot="canta"] .mascot:hover .mas-hat,
  html[data-mascot="canta"] .mascot.party .mas-hat { animation: none; }
}

/* ---------- Maskot tipi: TEBEŞİR ---------- */
html[data-mascot="tebesir"] .mas-face {
  width: 20px; height: 44px;
  border-radius: 6px 6px 5px 5px;
  background: #F4C0D1;
}
html[data-mascot="tebesir"] .mas-eye { top: 18px;
}
html[data-mascot="tebesir"] .mas-eye-l { left: 3px;
}
html[data-mascot="tebesir"] .mas-eye-r { right: 3px;
}
html[data-mascot="tebesir"] .mas-cheek { display: none;
}
html[data-mascot="tebesir"] .mas-mouth { top: 27px; width: 8px;
}
html[data-mascot="tebesir"] .mas-arm { background: #F4C0D1;
}
html[data-mascot="tebesir"] .mas-hat { display: none;
}
/* — Hareket: tahtaya yazar gibi dipten tik-tak eğilir — */
html[data-mascot="tebesir"] .mascot:hover .mas-face,
html[data-mascot="tebesir"] .mascot.party .mas-face {
  transform-origin: 50% 100%;
  animation: mktebesir-write .824s ease-in-out infinite;
}
@keyframes mktebesir-write {
  0%, 100% { transform: translateX(-50%) rotate(-8deg); }
  50%      { transform: translateX(-50%) rotate(8deg) translateY(1px); }
}

/* ---------- Maskot tipi: DEFTER ----------
   Yüz mavi defter sayfası, üstte spiral çizgi, köşede yıldız. */
html[data-mascot="defter"] .mas-face {
  width: 38px; height: 42px;
  border-radius: 6px;
  background: #B5D4F4;
}
html[data-mascot="defter"] .mas-face::before {
  content: '★';
  position: absolute;
  right: 3px; top: 3px;
  font-size: 10px;
  line-height: 1;
  color: #EF9F27;
}
html[data-mascot="defter"] .mas-eye { top: 15px;
}
html[data-mascot="defter"] .mas-cheek { top: 21px;
}
html[data-mascot="defter"] .mas-mouth { top: 24px;
}
html[data-mascot="defter"] .mas-arm { background: #B5D4F4;
}
html[data-mascot="defter"] .mas-hat {
  left: 50%; top: 8px;
  width: 34px; height: 8px;
  background: transparent;
  border: none;
  border-top: 3px dotted rgba(0, 0, 0, .78);
  border-radius: 0;
  transform: translateX(-50%);
  box-shadow: none;
}
html[data-mascot="defter"] .mas-hat::after { content: none;
}
/* — Hareket: sayfa rüzgarda havalanır (flutter), köşedeki yıldız parıldar — */
html[data-mascot="defter"] .mascot:hover .mas-face,
html[data-mascot="defter"] .mascot.party .mas-face {
  transform-origin: 50% 100%;
  animation: mkdefter-flutter 1.176s ease-in-out infinite;
}
html[data-mascot="defter"] .mascot:hover .mas-face::before,
html[data-mascot="defter"] .mascot.party .mas-face::before {
  animation: mkdefter-star .941s ease-in-out infinite;
}
@keyframes mkdefter-flutter {
  0%, 100% { transform: translateX(-50%) rotate(-2deg) translateY(0); }
  50%      { transform: translateX(-50%) rotate(3deg) translateY(-2px); }
}
@keyframes mkdefter-star {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50%      { transform: scale(1.3) rotate(18deg); opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-mascot="defter"] .mascot:hover .mas-face::before,
  html[data-mascot="defter"] .mascot.party .mas-face::before { animation: none; }
}

/* ---------- Maskot tipi: YAPIŞTIRICI ----------
   Yüz dik yapıştırıcı tüpü, bere kapak, orta bant etiket. */
html[data-mascot="yapistirici"] .mas-face {
  width: 26px; height: 40px;
  border-radius: 6px 6px 8px 8px;
  background: #7F77DD;
}
html[data-mascot="yapistirici"] .mas-face::before {
  content: '';
  position: absolute;
  left: -1px; right: -1px; top: 13px;
  height: 17px;
  background: #EEEDFE;
  border-top: 2px solid rgba(0, 0, 0, .78);
  border-bottom: 2px solid rgba(0, 0, 0, .78);
}
html[data-mascot="yapistirici"] .mas-eye { top: 17px; z-index: 1;
}
html[data-mascot="yapistirici"] .mas-eye-l { left: 4px;
}
html[data-mascot="yapistirici"] .mas-eye-r { right: 4px;
}
html[data-mascot="yapistirici"] .mas-cheek { display: none;
}
html[data-mascot="yapistirici"] .mas-mouth { top: 24px; width: 8px; z-index: 1;
}
html[data-mascot="yapistirici"] .mas-arm { background: #7F77DD;
}
html[data-mascot="yapistirici"] .mas-hat {
  left: 50%; top: 2px;
  width: 26px; height: 12px;
  background: #CECBF6;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 6px 6px 3px 3px;
  transform: translateX(-50%);
  box-shadow: none;
}
html[data-mascot="yapistirici"] .mas-hat::after { content: none;
}
/* — Hareket: yapışkan esneme — tüp dipten squish yapar, kapak zıt fazda oturur — */
html[data-mascot="yapistirici"] .mascot:hover .mas-face,
html[data-mascot="yapistirici"] .mascot.party .mas-face {
  transform-origin: 50% 100%;
  animation: mkyapistirici-squish .706s ease-in-out infinite;
}
html[data-mascot="yapistirici"] .mascot:hover .mas-hat,
html[data-mascot="yapistirici"] .mascot.party .mas-hat {
  animation: mkyapistirici-cap .706s ease-in-out infinite;
}
@keyframes mkyapistirici-squish {
  0%, 100% { transform: translateX(-50%) scale(1, 1); }
  50%      { transform: translateX(-50%) scale(1.08, .88); }
}
@keyframes mkyapistirici-cap {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(3px); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-mascot="yapistirici"] .mascot:hover .mas-hat,
  html[data-mascot="yapistirici"] .mascot.party .mas-hat { animation: none; }
}

/* ---------- Maskot tipi: KEP ----------
   Bere düz kare akademik kep olur, püskül sallanır. */
html[data-mascot="kep"] .mas-hat {
  left: 50%; top: 2px;
  width: 30px; height: 30px;
  background: #534AB7;
  border: 2px solid rgba(0, 0, 0, .78);
  border-radius: 4px;
  transform: translateX(-50%) scale(1, .5) rotate(45deg);
  box-shadow: none;
}
html[data-mascot="kep"] .mas-hat::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: #FAC775;
  border-radius: 50%;
}
html[data-mascot="kep"] .mascot::after {
  content: '';
  position: absolute;
  left: 50%; top: 10px;
  width: 3px; height: 12px;
  margin-left: 15px;
  background: #FAC775;
  border-radius: 0 0 2px 2px;
}
/* — Hareket: püskül tepeden savrulur, kep hafifçe oynar — */
html[data-mascot="kep"] .mascot:hover::after,
html[data-mascot="kep"] .mascot.party::after {
  transform-origin: 50% 0;
  animation: mkkep-tassel 1.059s ease-in-out infinite;
}
html[data-mascot="kep"] .mascot:hover .mas-hat,
html[data-mascot="kep"] .mascot.party .mas-hat {
  animation: mkkep-tip 1.059s ease-in-out infinite;
}
@keyframes mkkep-tassel {
  0%, 100% { transform: rotate(-14deg); }
  50%      { transform: rotate(14deg); }
}
@keyframes mkkep-tip {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1, .5) rotate(45deg); }
  50%      { transform: translateX(-50%) translateY(-2px) scale(1, .5) rotate(49deg); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-mascot="kep"] .mascot:hover::after,
  html[data-mascot="kep"] .mascot.party::after,
  html[data-mascot="kep"] .mascot:hover .mas-hat,
  html[data-mascot="kep"] .mascot.party .mas-hat { animation: none; }
}

/* ---------- Maskot tipi: SÜT ----------
   Yüz süt kutusu, bere pipet+kapak olur, alt kısımda pembe şerit. */
html[data-mascot="sut"] .mas-face {
  width: 32px; height: 40px;
  border-radius: 4px 4px 6px 6px;
  background: #FAFAF7;
}
html[data-mascot="sut"] .mas-face::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 6px;
  background: #F4C0D1;
}
html[data-mascot="sut"] .mas-eye { top: 13px;
}
html[data-mascot="sut"] .mas-eye-l { left: 6px;
}
html[data-mascot="sut"] .mas-eye-r { right: 6px;
}
html[data-mascot="sut"] .mas-cheek { top: 19px;
}
html[data-mascot="sut"] .mas-cheek-l { left: 2px;
}
html[data-mascot="sut"] .mas-cheek-r { right: 2px;
}
html[data-mascot="sut"] .mas-mouth { top: 21px;
}
html[data-mascot="sut"] .mas-arm { background: #FAFAF7;
}
html[data-mascot="sut"] .mas-hat {
  left: 50%; top: 2px;
  width: 0; height: 0;
  background: transparent;
  border: none;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 12px solid #F4C0D1;
  border-radius: 0;
  transform: translateX(-50%);
  box-shadow: none;
}
html[data-mascot="sut"] .mas-hat::after {
  content: '';
  position: absolute;
  left: 5px; top: -8px;
  width: 3px; height: 13px;
  background: #D4537E;
  border-radius: 2px;
  transform: rotate(18deg);
}
/* — Hareket: süt çalkalanır — kutu dipten yumuşak sallanır, kapak/pipet zıt fazda — */
html[data-mascot="sut"] .mascot:hover .mas-face,
html[data-mascot="sut"] .mascot.party .mas-face {
  transform-origin: 50% 100%;
  animation: mksut-slosh 1.059s ease-in-out infinite;
}
html[data-mascot="sut"] .mascot:hover .mas-hat,
html[data-mascot="sut"] .mascot.party .mas-hat {
  animation: mksut-cap 1.059s ease-in-out infinite;
}
@keyframes mksut-slosh {
  0%, 100% { transform: translateX(-50%) rotate(-4deg); }
  50%      { transform: translateX(-50%) rotate(4deg); }
}
@keyframes mksut-cap {
  0%, 100% { transform: translateX(-50%) rotate(4deg); }
  50%      { transform: translateX(-50%) rotate(-4deg); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-mascot="sut"] .mascot:hover .mas-hat,
  html[data-mascot="sut"] .mascot.party .mas-hat { animation: none; }
}

/* ---------- Maskot tipi: YILDIZ ----------
   Yüz beş köşeli yıldıza dönüşür, şapka kalkar. */
html[data-mascot="yildiz"] .mas-face {
  width: 46px; height: 44px;
  background: #FAC775;
  border: none;
  border-radius: 0;
  box-shadow: none;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
html[data-mascot="yildiz"] .mas-eye { top: 18px;
}
html[data-mascot="yildiz"] .mas-eye-l { left: 14px;
}
html[data-mascot="yildiz"] .mas-eye-r { right: 14px;
}
html[data-mascot="yildiz"] .mas-cheek { top: 23px; background: #F09973;
}
html[data-mascot="yildiz"] .mas-cheek-l { left: 10px;
}
html[data-mascot="yildiz"] .mas-cheek-r { right: 10px;
}
html[data-mascot="yildiz"] .mas-mouth { top: 25px;
}
html[data-mascot="yildiz"] .mas-arm { background: #FAC775;
}
html[data-mascot="yildiz"] .mas-hat { display: none;
}
/* — Hareket: twinkle — yıldız parlayıp söner, hafif döner salınım — */
html[data-mascot="yildiz"] .mascot:hover .mas-face,
html[data-mascot="yildiz"] .mascot.party .mas-face {
  animation: mkyildiz-twinkle 1.176s ease-in-out infinite;
}
@keyframes mkyildiz-twinkle {
  0%, 100% { transform: translateX(-50%) rotate(-4deg) scale(1); filter: brightness(1); }
  50%      { transform: translateX(-50%) rotate(4deg) scale(1.05); filter: brightness(1.3); }
}

/* ---------- Maskot tipi: ELMA ----------
   Yüz kırmızı elma gövdesi, bere sap+yaprak olur. */
html[data-mascot="elma"] .mas-face {
  width: 40px; height: 38px;
  border-radius: 50% 50% 46% 46%;
  background: #E24B4A;
}
html[data-mascot="elma"] .mas-cheek { background: #F7C1C1;
}
html[data-mascot="elma"] .mas-arm { background: #E24B4A;
}
html[data-mascot="elma"] .mas-hat {
  left: 50%; top: 6px;
  width: 4px; height: 11px;
  background: #712B13;
  border: none;
  border-radius: 2px;
  transform: translateX(-50%) rotate(8deg);
  box-shadow: none;
}
html[data-mascot="elma"] .mas-hat::after {
  content: '';
  position: absolute;
  left: 3px; top: -2px;
  width: 14px; height: 8px;
  background: #97C459;
  border: 2px solid rgba(0, 0, 0, .5);
  border-radius: 0 100% 0 100%;
  transform: rotate(-22deg);
}
/* — Hareket: sap+yaprak dipten sallanır, gövde minik kızarma-parlama nabzı — */
html[data-mascot="elma"] .mascot:hover .mas-hat,
html[data-mascot="elma"] .mascot.party .mas-hat {
  transform-origin: 50% 100%;
  animation: mkelma-stem 1.176s ease-in-out infinite;
}
html[data-mascot="elma"] .mascot:hover .mas-face,
html[data-mascot="elma"] .mascot.party .mas-face {
  animation: mkelma-shine 1.294s ease-in-out infinite;
}
@keyframes mkelma-stem {
  0%, 100% { transform: translateX(-50%) rotate(2deg); }
  50%      { transform: translateX(-50%) rotate(14deg); }
}
@keyframes mkelma-shine {
  0%, 100% { transform: translateX(-50%) scale(1); filter: brightness(1) saturate(1); }
  50%      { transform: translateX(-50%) scale(1.04); filter: brightness(1.08) saturate(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-mascot="elma"] .mascot:hover .mas-hat,
  html[data-mascot="elma"] .mascot.party .mas-hat { animation: none; }
}
