/* =========================================================================
   ChessNest tasarım sistemi
   Yazı tipleri: Inter (metin), Outfit (başlık) — Fontsource npm paketleri
   ========================================================================= */
:root {
  --zemin: #e9ecf1;
  --yuzey: #ffffff;
  --yuzey-2: #eef1f5;
  --yuzey-3: #e1e5eb;
  --cizgi: #d5dae2;
  --cizgi-guclu: #bfc6d1;
  --yazi: #10131a;
  --yazi-soluk: #4d5667;
  --vurgu: #22a35a;
  --vurgu-koyu: #1b8a4b;
  --vurgu-acik: #e7f6ed;
  --vurgu-yazi: #ffffff;
  --uyari: #d63c3c;
  --altin: #e0a516;
  --kare-acik: #eeeed2;
  --kare-koyu: #769656;
  --kare-son: rgba(246, 246, 105, 0.55);
  --kare-secili: rgba(20, 85, 30, 0.45);
  --golge: 0 1px 2px rgba(16, 19, 26, .06), 0 6px 22px rgba(16, 19, 26, .08);
  --golge-buyuk: 0 14px 44px rgba(16, 19, 26, .16);
  --ust-zemin: rgba(255, 255, 255, .86);
  --ust-cizgi: #d5dae2;
  --isik: rgba(34, 163, 90, .16);
  --yaricap: 16px;
  --yazi-tipi: 'Inter Variable', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --baslik-tipi: 'Outfit Variable', 'Inter Variable', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --zemin: #0c0e12;
    --yuzey: #14171d;
    --yuzey-2: #1b1f27;
    --yuzey-3: #242934;
    --cizgi: #232833;
    --cizgi-guclu: #313847;
    --yazi: #eef1f6;
    --yazi-soluk: #949db0;
    --vurgu: #3ccf7c;
    --vurgu-koyu: #2fb86b;
    --vurgu-acik: rgba(60, 207, 124, .12);
    --vurgu-yazi: #04190c;
    --golge: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --golge-buyuk: 0 20px 60px rgba(0, 0, 0, .5);
    --ust-zemin: rgba(12, 14, 18, .72);
    --ust-cizgi: transparent;
    --isik: rgba(60, 207, 124, .14);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --zemin: #0c0e12;
  --yuzey: #14171d;
  --yuzey-2: #1b1f27;
  --yuzey-3: #242934;
  --cizgi: #232833;
  --cizgi-guclu: #313847;
  --yazi: #eef1f6;
  --yazi-soluk: #949db0;
  --vurgu: #3ccf7c;
  --vurgu-koyu: #2fb86b;
  --vurgu-acik: rgba(60, 207, 124, .12);
  --vurgu-yazi: #04190c;
  --golge: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  --golge-buyuk: 0 20px 60px rgba(0, 0, 0, .5);
  --ust-zemin: rgba(12, 14, 18, .72);
    --ust-cizgi: transparent;
  --isik: rgba(60, 207, 124, .14);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  overflow-x: clip; /* hiçbir öğe sayfayı yana kaydırmasın */
  background: var(--zemin);
  color: var(--yazi);
  font-family: var(--yazi-tipi);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(900px 500px at 85% -10%, var(--isik), transparent 70%),
    radial-gradient(700px 400px at -10% 10%, var(--isik), transparent 70%),
    var(--zemin);
  background-attachment: fixed;
}
main { flex: 1; width: 100%; }

a { color: var(--vurgu); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--baslik-tipi); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; font-weight: 700; }
h1 { font-size: clamp(28px, 3.4vw, 38px); }
::selection { background: color-mix(in srgb, var(--vurgu) 35%, transparent); }
.gizli { display: none !important; }
:focus-visible { outline: none; }

/* --- Üst panel --- */
.ust {
  position: sticky; top: 0; z-index: 100;
  background: var(--ust-zemin);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ust-cizgi);
  transition: border-color .2s, box-shadow .2s;
}
.ust.kaydirildi, .ust.menu-acik { border-bottom-color: var(--cizgi); box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.ust-ic {
  max-width: 1440px; margin: 0 auto; height: 68px; padding: 0 24px;
  display: flex; align-items: center; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--yazi); flex-shrink: 0; }
.logo-simge {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(140deg, color-mix(in srgb, var(--vurgu) 85%, #fff) 0%, var(--vurgu-koyu) 100%);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--vurgu) 40%, transparent), inset 0 1px 0 rgba(255,255,255,.35);
}
.logo-simge svg { width: 26px; height: 26px; fill: #fff; stroke: rgba(0,0,0,.35); stroke-width: 1.2; stroke-linejoin: round; display: block; }
.logo-yazi { font-family: var(--baslik-tipi); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.logo-yazi b { font-weight: 700; color: var(--vurgu); }

.menu { display: flex; align-items: center; gap: 2px; flex: 1; }
.menu a {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  color: var(--yazi-soluk); text-decoration: none; padding: 9px 14px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: color .15s, background .15s;
}
.menu a .ikon { width: 18px; height: 18px; opacity: .85; }
.menu a:hover { color: var(--yazi); background: var(--yuzey-2); }
.menu a.aktif { color: var(--yazi); background: var(--yuzey-2); }
.menu a.aktif .ikon { color: var(--vurgu); opacity: 1; }
.menu a.aktif::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: -14px; height: 2px; border-radius: 2px;
  background: var(--vurgu); box-shadow: 0 0 12px var(--vurgu);
}

.ust-sag { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ikon-dugme {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--cizgi); background: var(--yuzey); color: var(--yazi-soluk); cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.ikon-dugme:hover { color: var(--yazi); border-color: var(--cizgi-guclu); background: var(--yuzey-2); }
.ikon-dugme .ikon { width: 19px; height: 19px; }
.menu-dugme { display: none; }

.hesap { position: relative; display: flex; align-items: center; gap: 8px; }
.giris-link .ikon { width: 17px; height: 17px; }
.profil-cip {
  display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 10px 0 4px;
  border-radius: 999px; border: 1px solid var(--cizgi); background: var(--yuzey); color: var(--yazi);
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s;
}
.profil-cip:hover, .profil-cip[aria-expanded='true'] { border-color: var(--cizgi-guclu); background: var(--yuzey-2); }
.avatar-harf {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--baslik-tipi); font-weight: 700; font-size: 15px; color: var(--vurgu-yazi);
  background: linear-gradient(140deg, color-mix(in srgb, var(--vurgu) 80%, #fff), var(--vurgu-koyu));
}
.avatar-harf.buyuk { width: 44px; height: 44px; font-size: 19px; }
.profil-ad { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.puan-rozet {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--altin) 16%, transparent); color: var(--altin);
  font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.puan-rozet .ikon { width: 13px; height: 13px; stroke-width: 2.4; }
.cip-ok { width: 16px; height: 16px; color: var(--yazi-soluk); transition: transform .2s; }
.profil-cip[aria-expanded='true'] .cip-ok { transform: rotate(180deg); }

.acilir {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 250px; padding: 6px;
  background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 14px; box-shadow: var(--golge-buyuk);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: opacity .15s, transform .15s;
  transform-origin: top right;
}
.acilir.acik { opacity: 1; transform: none; pointer-events: auto; }
.acilir-baslik { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; border-bottom: 1px solid var(--cizgi); margin-bottom: 6px; }
.acilir-baslik .soluk { font-size: 13px; }
.acilir a, .acilir button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px;
  border: 0; background: none; color: var(--yazi); font: inherit; font-size: 14.5px; font-weight: 500; text-decoration: none; cursor: pointer; text-align: left;
}
.acilir a:hover, .acilir button:hover { background: var(--yuzey-2); }
.acilir .ikon { width: 17px; height: 17px; color: var(--yazi-soluk); }
.acilir .tehlike, .acilir .tehlike .ikon { color: var(--uyari); }

@media (min-width: 1381px) {
  .menu { min-width: 0; }
  .menu a { padding: 9px 9px; font-size: 14px; }
  .menu a .ikon { display: none; }
}
@media (max-width: 1380px) {
  .ust-ic { gap: 12px; padding: 0 16px; height: 62px; }
  .menu-dugme { display: grid; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 16px; background: var(--yuzey); border-bottom: 1px solid var(--cizgi); box-shadow: var(--golge-buyuk);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .18s, transform .18s;
  }
  .menu.acik { opacity: 1; transform: none; pointer-events: auto; }
  .menu a { padding: 13px 14px; font-size: 16px; }
  .menu a .ikon { display: inline-block; width: 20px; height: 20px; }
  .menu a.aktif::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  .profil-ad, .cip-ok { display: none; }
}
@media (max-width: 520px) {
  .logo-yazi { font-size: 18px; }
  .giris-link { display: none !important; }
  .puan-rozet { display: none; }
  .profil-cip { padding: 0 4px; }
  .ust-ic { gap: 8px; }
  .ust-sag, .hesap { gap: 4px; }
  .logo { gap: 8px; }
}
@media (max-width: 400px) {
  .ust-ic { padding: 0 12px; }
  .ust .ikon-dugme { width: 36px; height: 36px; }
  .logo-yazi { font-size: 17px; }
}

.aktif-bant {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(90deg, var(--vurgu-koyu), var(--vurgu)); color: var(--vurgu-yazi);
  padding: 10px 16px; font-weight: 600; cursor: pointer; font-size: 15px;
}

main { max-width: 1240px; margin: 0 auto; padding: 32px 24px 48px; }
@media (max-width: 600px) { main { padding: 20px 16px 40px; } }

.alt { border-top: 1px solid var(--cizgi); }
.alt-ic { max-width: 1240px; margin: 0 auto; padding: 20px 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }

/* --- Düğmeler ve formlar --- */
.dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 11px; border: 1px solid var(--cizgi);
  background: var(--yuzey); color: var(--yazi); font: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .06s, background .15s, border-color .15s, box-shadow .15s;
}
.dugme:hover { background: var(--yuzey-2); border-color: var(--cizgi-guclu); }
.dugme:active { transform: translateY(1px); }
.dugme:disabled { opacity: .5; cursor: not-allowed; }
.dugme.ana {
  background: linear-gradient(180deg, color-mix(in srgb, var(--vurgu) 92%, #fff), var(--vurgu));
  border-color: transparent; color: var(--vurgu-yazi);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--vurgu) 32%, transparent), inset 0 1px 0 rgba(255,255,255,.25);
}
.dugme.ana:hover { background: var(--vurgu-koyu); box-shadow: 0 8px 24px color-mix(in srgb, var(--vurgu) 40%, transparent); }
.dugme.hayalet { background: transparent; border-color: transparent; color: var(--yazi-soluk); }
.dugme.hayalet:hover { color: var(--yazi); background: var(--yuzey-2); }
.dugme.buyuk { padding: 14px 24px; font-size: 16.5px; border-radius: 13px; }
.dugme.kucuk { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.dugme.tehlike { color: var(--uyari); }
.dugme .ikon { width: 18px; height: 18px; }
.dugme-grup { display: flex; flex-wrap: wrap; gap: 10px; }

input:not([type]), input[type="text"], input[type="password"], input[type="email"], input[type="search"], input[type="number"] {
  width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--cizgi);
  background: var(--yuzey-2); color: var(--yazi); font: inherit; transition: border-color .15s, box-shadow .15s;
}
input:focus { outline: none; border-color: var(--vurgu); box-shadow: 0 0 0 4px color-mix(in srgb, var(--vurgu) 18%, transparent); }
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 14px; }

.secenekler { display: flex; flex-wrap: wrap; gap: 8px; }
.secenek {
  padding: 11px 16px; border-radius: 12px; border: 1.5px solid var(--cizgi); background: var(--yuzey-2);
  color: var(--yazi); font: inherit; font-weight: 600; cursor: pointer; min-width: 80px; text-align: left;
  transition: border-color .15s, background .15s;
}
.secenek:hover { border-color: var(--cizgi-guclu); }
.secenek.secili { border-color: var(--vurgu); background: var(--vurgu-acik); color: var(--vurgu); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vurgu) 12%, transparent); }
.secenek small { display: block; font-weight: 400; color: var(--yazi-soluk); font-size: 12px; margin-top: 1px; }

.kart {
  background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--yaricap);
  padding: 24px; box-shadow: var(--golge);
}
.kart h3 { font-size: 19px; }
.soluk { color: var(--yazi-soluk); }
.hata-yazi { color: var(--uyari); font-weight: 600; min-height: 1.5em; }

/* --- Ana sayfa --- */
.kahraman { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 20px 0 64px; }
.etiket {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--vurgu-acik); color: var(--vurgu); font-size: 13.5px; font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--vurgu) 25%, transparent); margin-bottom: 22px;
}
.etiket .ikon { width: 16px; height: 16px; }
.kahraman h1 { font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 20px; }
.parlak {
  background: linear-gradient(100deg, var(--vurgu) 0%, color-mix(in srgb, var(--vurgu) 55%, var(--altin)) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kahraman p { font-size: 18px; color: var(--yazi-soluk); max-width: 540px; margin: 0; }
.kahraman-sayilar { display: flex; gap: 36px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--cizgi); max-width: 520px; }
.kahraman-sayilar b { display: block; font-family: var(--baslik-tipi); font-size: 30px; line-height: 1.1; font-weight: 700; }
.kahraman-sayilar span { color: var(--yazi-soluk); font-size: 14px; }
.vitrin { position: relative; justify-self: center; width: 100%; max-width: 480px; }
.vitrin-isik {
  position: absolute; inset: 8% -6% -6% 8%; border-radius: 30px; filter: blur(50px);
  background: linear-gradient(135deg, color-mix(in srgb, var(--vurgu) 55%, transparent), color-mix(in srgb, var(--altin) 35%, transparent));
  opacity: .55;
}
.vitrin-cerceve {
  position: relative; padding: 14px; border-radius: 22px; background: var(--yuzey);
  border: 1px solid var(--cizgi); box-shadow: var(--golge-buyuk); transform: rotate(-1.5deg);
}
.vitrin .tahta-kap { pointer-events: none; }
@media (max-width: 900px) {
  .kahraman { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .vitrin { max-width: 420px; }
  .kahraman-sayilar { gap: 24px; }
}

.bolum-ust { margin: 8px 0 20px; }
.bolum-ust h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 0; }
.ust-etiket { display: block; color: var(--vurgu); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.bolum-ust + .kart, .mod-kartlari + .bolum-ust { margin-top: 0; }
.mod-kartlari + .bolum-ust { margin-top: 56px; }

.mod-kartlari { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.mod-karti {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--yazi); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.mod-karti::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(400px 200px at 0% 0%, var(--vurgu-acik), transparent 70%);
}
.mod-karti:hover { transform: translateY(-4px); box-shadow: var(--golge-buyuk); border-color: color-mix(in srgb, var(--vurgu) 40%, var(--cizgi)); }
.mod-karti:hover::before { opacity: 1; }
.mod-karti .simge {
  position: relative; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--vurgu-acik); color: var(--vurgu); border: 1px solid color-mix(in srgb, var(--vurgu) 22%, transparent);
}
.mod-karti h3 { position: relative; margin: 18px 0 8px; font-size: 20px; }
.mod-karti p { position: relative; margin: 0 0 18px; color: var(--yazi-soluk); font-size: 15px; flex: 1; }
.kart-ok { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--vurgu); font-weight: 700; font-size: 14.5px; }
.kart-ok .ikon { width: 17px; height: 17px; transition: transform .2s; }
.mod-karti:hover .kart-ok .ikon { transform: translateX(4px); }
.bolum-baslik { margin: 40px 0 16px; font-size: 22px; }

/* --- Tahta --- */
.tahta-kap { width: 100%; max-width: 100%; min-width: 0; aspect-ratio: 1; position: relative; user-select: none; touch-action: pan-y; }
/* Taşlar sürüklenebilsin diye yalnızca taşlı karelerde dokunma kaydırması kapalı; boş karelerden sayfa kaydırılabilir */
.tahta-kap .tas { touch-action: none; }
.tahta {
  /* minmax(0, …): Safari kareleri taşların boyuna göre büyütüp tahtayı ekrandan taşırmasın */
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr));
  width: 100%; height: 100%; border-radius: 6px; overflow: hidden; position: relative;
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
  container-type: inline-size;
}
.kare { position: relative; display: flex; align-items: center; justify-content: center; }
.kare.acik { background: var(--kare-acik); }
.kare.koyu { background: var(--kare-koyu); }
.kare.son::before, .kare.secili::before, .kare.uzerinde::before, .kare.sah::before,
.kare.dogru::before, .kare.yanlis::before, .kare.ipucu::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
}
.kare.son::before { background: var(--kare-son); }
.kare.secili::before { background: var(--kare-secili); }
.kare.uzerinde::before { box-shadow: inset 0 0 0 4px rgba(255,255,255,.75); }
.kare.sah::before { background: radial-gradient(circle, rgba(255,0,0,.9) 0%, rgba(231,0,0,.6) 30%, rgba(169,0,0,0) 70%); }
.kare.dogru::before { background: rgba(60, 200, 90, .55); }
.kare.yanlis::before { background: rgba(230, 60, 50, .55); }
.kare.ipucu::before { box-shadow: inset 0 0 0 5px #3b82f6; }
.kare.hedef::after {
  content: '?'; position: absolute; font-weight: 800; font-size: 6cqi; color: rgba(0,0,0,.35);
}
.kare.yildiz::after {
  content: ''; position: absolute; width: 62%; height: 62%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d4a017' stroke='%238a6500' stroke-width='1' stroke-linejoin='round' d='M12 2.8l2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.3l-5.6 2.9 1.1-6.3-4.6-4.4 6.3-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); animation: parla 1.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes parla { 50% { transform: scale(1.12); } }

.koord { position: absolute; font-size: 2.2cqi; font-weight: 700; pointer-events: none; line-height: 1; }
.kare.acik .koord { color: var(--kare-koyu); }
.kare.koyu .koord { color: var(--kare-acik); }
.sira-k { top: 3%; left: 4%; }
.dosya-k { bottom: 3%; right: 5%; }

.tas {
  width: 92%; height: 92%; cursor: grab; position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  -webkit-user-select: none; user-select: none;
}
.tas-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tas-svg * { stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.svg-beyaz { fill: #fbfaf6; stroke: #1c1c1c; filter: drop-shadow(0 1.5px 1.5px rgba(0,0,0,.35)); }
.svg-siyah { fill: #2c2c2c; stroke: #0d0d0d; filter: drop-shadow(0 1.5px 1.5px rgba(0,0,0,.35)); }
.tas-svg .ic { fill: none; }
.svg-siyah .ic { stroke: #8a8a8a; }
.tas-svg .goz { stroke: none; }
.svg-beyaz .goz { fill: #1c1c1c; }
.svg-siyah .goz { fill: #cfcfcf; }
.tas.suruklenen { opacity: .25; }
.tas.hayalet {
  position: fixed; z-index: 1000; pointer-events: none; display: flex; align-items: center; justify-content: center;
  cursor: grabbing; transform: scale(1.1);
}
.nokta { position: absolute; width: 30%; height: 30%; border-radius: 50%; background: rgba(0,0,0,.18); z-index: 3; pointer-events: none; }
.nokta.alma { width: 100%; height: 100%; background: none; border: 0.8cqi solid rgba(0,0,0,.18); border-radius: 50%; }

.terfi-perde { position: absolute; inset: 0; background: rgba(0,0,0,.35); z-index: 20; }
.terfi { position: absolute; z-index: 21; display: flex; flex-direction: column; background: var(--yuzey); border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.4); overflow: hidden; }
.terfi-tas { border: 0; background: var(--yuzey); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 8%; }
.terfi-tas:hover { background: var(--yuzey-2); }

/* --- Oyun ekranı düzeni --- */
.oyun-duzen { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.tahta-sutun { width: min(100%, calc(100vh - 220px)); min-width: 280px; justify-self: center; }
@media (max-width: 900px) {
  /* minmax(0, …): içerik ne kadar uzun olursa olsun sütun ekran genişliğini aşmasın */
  .oyun-duzen { grid-template-columns: minmax(0, 1fr); }
  .oyun-duzen > * { min-width: 0; max-width: 100%; }
  .tahta-sutun { width: 100%; min-width: 0; }
}
.yan-panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.yan-panel > * { min-width: 0; overflow-wrap: anywhere; }

.oyuncu-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 2px; }
.oyuncu-bilgi { display: flex; align-items: center; gap: 10px; min-width: 0; }
.oyuncu-avatar { width: 36px; height: 36px; border-radius: 8px; background: var(--yuzey-2); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.oyuncu-ad { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oyuncu-puan { color: var(--yazi-soluk); font-weight: 400; font-size: 14px; }
.cevrimdisi { color: var(--uyari); font-size: 12px; font-weight: 600; }
.alinanlar { min-height: 20px; display: flex; align-items: center; flex-wrap: wrap; }
.alinanlar .tas-svg { width: 18px; height: 18px; margin-right: -5px; filter: none; }
.arti-malzeme { margin-left: 10px; font-size: 13px; font-weight: 700; color: var(--yazi-soluk); }
.saat {
  font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 700; padding: 4px 14px; border-radius: 8px;
  background: var(--yuzey-2); color: var(--yazi-soluk); min-width: 100px; text-align: right;
}
.saat.calisiyor { background: var(--yazi); color: var(--zemin); }
.saat.az { background: var(--uyari); color: #fff; }

.hamle-listesi {
  max-height: 280px; overflow-y: auto; display: grid; grid-template-columns: 36px 1fr 1fr;
  font-size: 15px; font-variant-numeric: tabular-nums; border: 1px solid var(--cizgi); border-radius: 10px; background: var(--yuzey);
}
.hamle-listesi > div { padding: 4px 8px; }
.hamle-listesi .no { color: var(--yazi-soluk); background: var(--yuzey-2); text-align: center; }
.hamle-listesi .h { font-weight: 600; }
.hamle-listesi .h.son { background: color-mix(in srgb, var(--vurgu) 20%, transparent); }
.hamle-listesi .bos { grid-column: 1 / -1; color: var(--yazi-soluk); padding: 12px; text-align: center; }

.durum-kutu { padding: 14px 16px; border-radius: 10px; background: var(--yuzey-2); font-weight: 600; }
.durum-kutu.sonuc { background: color-mix(in srgb, var(--vurgu) 18%, var(--yuzey)); border: 1px solid var(--vurgu); }
.durum-kutu .buyuk-yazi { font-size: 22px; display: block; }
.puan-degisim.arti { color: var(--vurgu); }
.puan-degisim.eksi { color: var(--uyari); }

/* --- Dersler --- */
.ders-duzen { display: grid; grid-template-columns: 260px minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.ders-listesi { display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 140px); overflow-y: auto; position: sticky; top: 80px; }
.ders-listesi h4 { margin: 14px 8px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--yazi-soluk); }
.ders-listesi a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--yazi); font-size: 15px; }
.ders-listesi a:hover { background: var(--yuzey-2); }
.ders-listesi a.aktif { background: var(--yuzey-2); font-weight: 700; color: var(--vurgu); }
.ders-listesi .tik { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--cizgi); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.ders-listesi .tik.tamam { background: var(--vurgu); border-color: var(--vurgu); color: var(--vurgu-yazi); }
.ders-metin p, .ders-metin li { font-size: 16px; }
.ders-metin .gorev { font-weight: 700; color: var(--vurgu); }
.gorev-kutu { padding: 14px 16px; border-radius: 10px; background: color-mix(in srgb, var(--vurgu) 12%, var(--yuzey)); border: 1px solid color-mix(in srgb, var(--vurgu) 40%, transparent); font-weight: 600; font-size: 17px; }
.geri-bildirim { min-height: 28px; font-weight: 700; }
.geri-bildirim.iyi { color: var(--vurgu); }
.geri-bildirim.kotu { color: var(--uyari); }
.ders-secenekler { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 12px; }
.ders-secenekler .dugme { justify-content: center; font-size: 15px; white-space: normal; text-align: center; line-height: 1.3; min-height: 44px; }
.ders-secenekler .dugme.dogru { background: var(--vurgu); border-color: var(--vurgu); color: #fff; opacity: 1; }
.ders-secenekler .dugme.yanlis { border-color: var(--uyari); color: var(--uyari); opacity: .75; }
.ders-secenekler .dugme.elendi { opacity: .35; text-decoration: line-through; }
.ders-aciklama { display: block; margin-top: 8px; font-weight: 500; color: var(--yazi); line-height: 1.55; }
.ders-devam { margin-top: 12px; }
.ilerleme { height: 8px; border-radius: 4px; background: var(--yuzey-2); overflow: hidden; }
.ilerleme > div { height: 100%; background: var(--vurgu); transition: width .3s; }
@media (max-width: 1180px) {
  .ders-duzen { grid-template-columns: 1fr 340px; }
  .ders-listesi { grid-column: 1 / -1; position: static; flex-direction: row; flex-wrap: wrap; max-height: none; }
  .ders-listesi h4 { display: none; }
}
@media (max-width: 760px) { .ders-duzen { grid-template-columns: 1fr; } }

/* --- Sıralama tablosu --- */
.tablo { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tablo th, .tablo td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--cizgi); }
.tablo th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--yazi-soluk); }
.tablo tr.ben td { background: color-mix(in srgb, var(--vurgu) 12%, transparent); font-weight: 700; }
.tablo td.sira-no { font-weight: 800; width: 56px; }
.tablo .madalya { font-size: 20px; }
.tablo-kap { overflow-x: auto; }
.istatistikler { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.istatistik { background: var(--yuzey-2); border-radius: 10px; padding: 14px; }
.istatistik b { display: block; font-size: 26px; }
.istatistik span { color: var(--yazi-soluk); font-size: 13px; }

/* --- Ortalanmış kutular --- */
.dar { max-width: 460px; margin: 24px auto; }
.orta { max-width: 640px; margin: 0 auto; }
.sekmeler { display: flex; gap: 4px; background: var(--yuzey-2); padding: 4px; border-radius: 10px; margin-bottom: 16px; }
.sekmeler button { flex: 1; padding: 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-weight: 700; color: var(--yazi-soluk); cursor: pointer; }
.sekmeler button.aktif { background: var(--yuzey); color: var(--yazi); box-shadow: var(--golge); }
.oda-kodu { font-size: 36px; font-weight: 800; letter-spacing: .2em; text-align: center; padding: 16px; background: var(--yuzey-2); border-radius: 10px; font-variant-numeric: tabular-nums; text-indent: .2em; word-break: break-all; }
.baglanti-kutu { display: flex; gap: 8px; }
.baglanti-kutu input { font-size: 14px; }
.bekleme { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 20px; font-weight: 600; }
.donen { width: 26px; height: 26px; border: 3px solid var(--cizgi); border-top-color: var(--vurgu); border-radius: 50%; animation: don 0.8s linear infinite; }
@keyframes don { to { transform: rotate(360deg); } }

.bildirim {
  position: fixed; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%) translateY(calc(100% + 60px));
  opacity: 0; visibility: hidden;
  background: var(--yazi); color: var(--zemin); padding: 12px 20px; border-radius: 10px; font-weight: 600;
  transition: transform .25s, opacity .25s, visibility 0s .25s; z-index: 2000; max-width: calc(100vw - 32px);
}
.bildirim.goster { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; transition: transform .25s, opacity .25s; }
.bildirim:empty { display: none; }
/* Telefonda iki parmakla ve çift dokunuşla yakınlaştırma kapalı */
html { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

.rozet { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--yuzey-2); color: var(--yazi-soluk); }
.rozet.galip { background: color-mix(in srgb, var(--vurgu) 20%, transparent); color: var(--vurgu); }
.rozet.yenik { background: color-mix(in srgb, var(--uyari) 15%, transparent); color: var(--uyari); }
.tas-bilgi { font-size: 14px; color: var(--yazi-soluk); min-height: 42px; }
.bos-yazi { padding: 24px; text-align: center; color: var(--yazi-soluk); }

.ders-duzen .tahta-sutun { width: min(100%, calc(100vh - 150px)); justify-self: center; }
@media (max-width: 1180px) {
  .ders-ilerleme { flex-basis: 100%; }
}
.oyuncu-avatar .tas-svg { width: 28px; height: 28px; filter: none; }
@media (max-width: 760px) {
  .ders-listesi { flex-wrap: nowrap; overflow-x: auto; padding: 8px !important; }
  .ders-listesi a { white-space: nowrap; flex-shrink: 0; }
  .ders-ilerleme { flex-basis: auto; min-width: 120px; flex-shrink: 0; }
}

/* --- İkonlar --- */
.ikon { width: 1.15em; height: 1.15em; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ikon .d { fill: currentColor; stroke: none; }
.ikon.altin { color: var(--altin); }
.ikon.gumus { color: #a8b0b8; }
.ikon.bronz { color: #c07a3e; }
.madalya .ikon { width: 22px; height: 22px; }
.yildizlar .ikon { width: 20px; height: 20px; }
.mod-karti .simge .ikon { width: 40px; height: 40px; stroke-width: 1.7; }
h1 .ikon, h2 .ikon { color: var(--vurgu); }
.oyuncu-avatar .ikon { width: 22px; height: 22px; color: var(--yazi-soluk); }
.secenek-tas .tas-svg { width: 20px; height: 20px; vertical-align: -4px; filter: none; display: inline-block; }
.buyuk-tas { width: 64px; height: 64px; margin: 0 auto 8px; }
.buyuk-ikon { margin-bottom: 8px; }
.buyuk-ikon .ikon { width: 52px; height: 52px; color: var(--yazi-soluk); stroke-width: 1.6; }
.saat .ikon { width: 26px; height: 26px; vertical-align: -6px; }
.nokta-isaret { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin: 0 4px 0 6px; }
.ders-listesi .tik .ikon { width: 14px; height: 14px; stroke-width: 3; }
.aktif-bant .ikon { margin-right: 4px; }
.secenek-tas { display: inline-flex; background: var(--kare-acik); border-radius: 6px; padding: 2px; vertical-align: middle; }
.secenek-tas .tas-svg { vertical-align: 0; }

/* --- Yeni tasarım rötuşları (genel bileşenler) --- */
.mod-karti .simge .ikon { width: 26px; height: 26px; stroke-width: 1.9; }
.tahta { border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.istatistik { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 14px; padding: 16px 18px; box-shadow: var(--golge); }
.istatistik b { font-family: var(--baslik-tipi); font-size: 28px; line-height: 1.2; }
.durum-kutu { border-radius: 14px; background: var(--yuzey); border: 1px solid var(--cizgi); }
.durum-kutu .buyuk-yazi { font-family: var(--baslik-tipi); }
.hamle-listesi { border-radius: 14px; }
.saat { font-family: var(--baslik-tipi); border-radius: 10px; border: 1px solid var(--cizgi); background: var(--yuzey); }
.saat.calisiyor { border-color: transparent; }
.oyuncu-avatar { border-radius: 10px; background: var(--yuzey); border: 1px solid var(--cizgi); }
.gorev-kutu { border-radius: 14px; }
.sekmeler { border-radius: 12px; }
.tablo th { font-size: 12px; letter-spacing: .08em; }
.tablo tbody tr { transition: background .15s; }
.tablo tbody tr:hover td { background: var(--yuzey-2); }
.tablo td a { color: var(--yazi); font-weight: 600; text-decoration: none; }
.tablo td a:hover { color: var(--vurgu); }
.oda-kodu { font-family: var(--baslik-tipi); border-radius: 14px; border: 1px dashed var(--cizgi-guclu); }
.bildirim { border-radius: 12px; box-shadow: var(--golge-buyuk); }
.ders-listesi a.aktif { background: var(--vurgu-acik); }
h1 .ikon, h2 .ikon { width: 1em; height: 1em; vertical-align: -0.12em; }

/* =========================================================================
   Sade görünüm (parlama yok) + animasyonlar
   ========================================================================= */
body { background: var(--zemin); }
.vitrin-isik { display: none; }
.logo-simge { background: var(--vurgu); box-shadow: none; }
.dugme.ana { background: var(--vurgu); box-shadow: none; }
.dugme.ana:hover { background: var(--vurgu-koyu); box-shadow: none; }
.secenek.secili { box-shadow: none; }
input:focus { box-shadow: none; }
.ust.kaydirildi, .ust.menu-acik { box-shadow: none; }

/* --- Menü: gri zemin yok, aktif bağlantı büyür, alt çizgi kayar --- */
@media (min-width: 1381px) { .menu { position: relative; } }
.menu a,
.menu a:hover,
.menu a.aktif { background: none; }
.menu a {
  transform-origin: center bottom;
  transition: color .25s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.menu a:hover { color: var(--yazi); }
.menu a.aktif { color: var(--yazi); transform: scale(1.1); }
.menu a.aktif::after { display: none; }
.menu-cizgi {
  position: absolute; left: 0; bottom: -15px; width: 0; height: 2px; border-radius: 2px;
  background: var(--vurgu); pointer-events: none; opacity: 0;
  transition: left .4s cubic-bezier(.65, 0, .35, 1), width .4s cubic-bezier(.65, 0, .35, 1), opacity .25s ease;
}
.menu-cizgi.anlik { transition: none; }
@media (max-width: 1380px) {
  .menu-cizgi { display: none; }
  .menu a { transform-origin: left center; }
  .menu a.aktif { color: var(--vurgu); transform: scale(1.06); }
}

/* --- Sayfa geçişleri --- */
@keyframes sayfaGiris { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes yukariGel { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
#icerik.sayfa-giris { animation: sayfaGiris .4s cubic-bezier(.22, 1, .36, 1) both; }
#icerik.sayfa-giris .mod-karti,
#icerik.sayfa-giris .istatistik,
#icerik.sayfa-giris .kahraman-sayilar > div { animation: yukariGel .5s cubic-bezier(.22, 1, .36, 1) both; }
#icerik.sayfa-giris .mod-karti:nth-child(2), #icerik.sayfa-giris .istatistik:nth-child(2), #icerik.sayfa-giris .kahraman-sayilar > div:nth-child(2) { animation-delay: .06s; }
#icerik.sayfa-giris .mod-karti:nth-child(3), #icerik.sayfa-giris .istatistik:nth-child(3), #icerik.sayfa-giris .kahraman-sayilar > div:nth-child(3) { animation-delay: .12s; }
#icerik.sayfa-giris .mod-karti:nth-child(4), #icerik.sayfa-giris .istatistik:nth-child(4) { animation-delay: .18s; }
#icerik.sayfa-giris .istatistik:nth-child(n+5) { animation-delay: .22s; }
#icerik.sayfa-giris .vitrin-cerceve { animation: vitrinGiris .7s cubic-bezier(.22, 1, .36, 1) both .1s; }
@keyframes vitrinGiris { from { opacity: 0; transform: rotate(-4deg) scale(.95); } to { opacity: 1; transform: rotate(-1.5deg); } }
.tablo tbody tr { animation: yukariGel .4s cubic-bezier(.22, 1, .36, 1) both; }
.tablo tbody tr:nth-child(2) { animation-delay: .03s; } .tablo tbody tr:nth-child(3) { animation-delay: .06s; }
.tablo tbody tr:nth-child(4) { animation-delay: .09s; } .tablo tbody tr:nth-child(5) { animation-delay: .12s; }
.tablo tbody tr:nth-child(n+6) { animation-delay: .15s; }

/* Küçük etkileşim animasyonları */
.dugme { transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), background .2s, border-color .2s, color .2s; }
.dugme:hover:not(:disabled) { transform: translateY(-1px); }
.dugme:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.secenek { transition: border-color .2s, background .2s, color .2s, transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.secenek.secili { transform: scale(1.04); }
.ikon-dugme { transition: color .2s, border-color .2s, background .2s, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
#temaDugme .ikon { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
/* Başlıktaki diğer simge düğmeleri de üstüne gelince yaylanarak oynar */
.ust .ikon-dugme .ikon { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
/* Üstüne gelme hareketleri yalnızca fareli cihazlarda: dokunmatikte :hover dokunduktan
   sonra takılı kalıyordu. Dokunmatikte (ve tıklamada) bunun yerine kısa bir animasyon oynar. */
@media (hover: hover) {
  #temaDugme:hover .ikon { transform: rotate(25deg); }
  #gorunumDugme:hover .ikon { transform: rotate(-25deg); }
  .ust a[href="/mesajlar"]:hover .ikon { transform: translateY(-2px) rotate(-10deg); }
  .ust a[href="/arkadaslar"]:hover .ikon { transform: scale(1.15); }
  #bildirimDugme:hover .ikon { animation: zilCal .6s ease; transform-origin: 50% 15%; }
  #menuDugme:hover .ikon { transform: scaleX(1.18); }
}
.ust .ikon-dugme.tik .ikon { animation: .6s cubic-bezier(.34, 1.4, .64, 1); }
#temaDugme.tik .ikon { animation-name: tikDunya; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
#gorunumDugme.tik .ikon { animation-name: tikRobot; }
.ust a[href="/mesajlar"].tik .ikon { animation-name: tikKupa; }
#bildirimDugme.tik .ikon { animation-name: zilCal; transform-origin: 50% 15%; }
.ust a[href="/arkadaslar"].tik .ikon { animation-name: tikNabiz; }
@media (hover: none) { .ust .ikon-dugme:hover { color: var(--yazi-soluk); border-color: var(--cizgi); background: var(--yuzey); } }
@keyframes zilCal { 20% { transform: rotate(18deg); } 40% { transform: rotate(-14deg); } 60% { transform: rotate(9deg); } 80% { transform: rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) { .ust .ikon-dugme:hover .ikon { transform: none; animation: none; } }
.ders-listesi a { transition: background .2s, color .2s, transform .2s ease; }
.ders-listesi a:hover { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* --- Hesap ekranları (giriş, kayıt, kod, şifre) --- */
.hesap-kap { display: flex; justify-content: center; padding: 24px 0 48px; }
.hesap-kart { width: 100%; max-width: 430px; padding: 32px; animation: yukariGel .35s ease both; }
.hesap-baslik { text-align: center; margin-bottom: 20px; }
.hesap-baslik h1, .dogrula-kart h1, .basari-kart h1 { font-size: 26px; margin: 12px 0 6px; }
.hesap-baslik p { margin: 0; }
.hesap-simge {
  width: 56px; height: 56px; margin: 0 auto; display: grid; place-items: center; border-radius: 16px;
  background: var(--vurgu-acik); color: var(--vurgu);
}
.hesap-simge .ikon { width: 28px; height: 28px; }
.dugme.tam { width: 100%; margin-top: 6px; }
.alan-kap { position: relative; }
.alan-kap input { padding-left: 42px !important; padding-right: 44px !important; }
.alan-ikon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--yazi-soluk);
  display: grid; pointer-events: none; transition: color .15s;
}
.alan-ikon .ikon, .goster-dugme .ikon, .alan-durum .ikon { width: 18px; height: 18px; }
.alan-kap:focus-within .alan-ikon { color: var(--vurgu); }
.goster-dugme {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none;
  color: var(--yazi-soluk); padding: 7px; border-radius: 8px; cursor: pointer; display: grid;
}
.goster-dugme:hover { color: var(--yazi); background: var(--yuzey-3); }
.alan-durum { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); display: grid; }
.alan-durum.uygun { color: var(--vurgu); }
.alan-durum.uygun-degil, .alan-kap.hatali .alan-ikon { color: var(--uyari); }
.alan-kap.hatali input { border-color: var(--uyari); box-shadow: 0 0 0 4px color-mix(in srgb, var(--uyari) 14%, transparent); }
.alan-kap.eslesti input { border-color: var(--vurgu); }
.form-satir { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 6px; flex-wrap: wrap; }
.kucuk-link { font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.kucuk-link:hover { text-decoration: underline; }
.kucuk-link .ikon { width: 16px; height: 16px; }
.onay-kutusu { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 500; cursor: pointer; user-select: none; position: relative; }
.onay-kutusu input { position: absolute; opacity: 0; pointer-events: none; }
.onay-kutusu .kutu {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--cizgi-guclu); background: var(--yuzey);
  display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.onay-kutusu .kutu .ikon { width: 14px; height: 14px; stroke-width: 3; color: var(--vurgu-yazi); transform: scale(0); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.onay-kutusu input:checked + .kutu { background: var(--vurgu); border-color: var(--vurgu); }
.onay-kutusu input:checked + .kutu .ikon { transform: scale(1); }
.hesap-kart .hata-yazi { display: flex; align-items: center; gap: 6px; font-size: 14px; margin: 8px 0 4px; min-height: 1.4em; }
.hata-yazi .ikon { width: 16px; height: 16px; flex: none; }
.form-alt { text-align: center; font-size: 14px; margin: 16px 0 0; }
.form-alt .ikon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.kucuk-donen { width: 16px; height: 16px; border-width: 2px; border-color: rgba(255,255,255,.4); border-top-color: currentColor; }
.guc { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--yazi-soluk); }
.guc-cubuk { flex: 1; height: 5px; border-radius: 3px; background: var(--yuzey-3); overflow: hidden; }
.guc-dolu { height: 100%; width: 0; border-radius: 3px; background: var(--uyari); transition: width .25s, background .25s; }
.guc.orta .guc-dolu { background: var(--altin); }
.guc.iyi .guc-dolu, .guc.guclu .guc-dolu { background: var(--vurgu); }
.guc.zayif .guc-yazi { color: var(--uyari); }
.guc.guclu .guc-yazi { color: var(--vurgu); font-weight: 600; }

/* Kod ekranı ve 60 saniyelik halka */
.dogrula-kart, .basari-kart { text-align: center; }
.halka-kap { position: relative; width: 120px; height: 120px; margin: 0 auto 4px; --halka: var(--vurgu); }
.halka-kap.az { --halka: var(--altin); }
.halka-kap.kritik, .halka-kap.bitti { --halka: var(--uyari); }
.halka-kap.kritik .halka-ic b { animation: nabiz 1s ease-in-out infinite; }
.halka { width: 100%; height: 100%; transform: rotate(-90deg); }
.halka circle { fill: none; stroke-width: 8; }
.halka-iz { stroke: var(--yuzey-3); }
.halka-dolu { stroke: var(--halka); stroke-linecap: round; transition: stroke .4s; }
.halka-ic { position: absolute; inset: 0; display: grid; place-content: center; line-height: 1; }
.halka-ic b { font-family: var(--baslik-tipi); font-size: 36px; color: var(--halka); transition: color .4s; font-variant-numeric: tabular-nums; }
.halka-ic span { font-size: 12px; color: var(--yazi-soluk); margin-top: 4px; }
@keyframes nabiz { 50% { transform: scale(1.12); } }
.eposta-vurgu { color: var(--yazi); }
.kod-kutulari { position: relative; display: flex; justify-content: center; gap: 8px; margin: 22px 0 6px; cursor: text; }
.kod-kutulari #kodGiris {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; z-index: 1;
  color: transparent; caret-color: transparent; font-size: 16px; cursor: text;
}
.kod-kutu {
  width: 48px; height: 58px; display: grid; place-items: center; font: 700 26px var(--baslik-tipi);
  border-radius: 12px; border: 1.5px solid var(--cizgi); background: var(--yuzey-2); color: var(--yazi);
  transition: border-color .15s, box-shadow .15s, transform .15s, background .15s;
}
.kod-kutu.dolu { border-color: var(--cizgi-guclu); background: var(--yuzey); animation: haneGir .18s ease; }
.kod-kutu.aktif { border-color: var(--vurgu); box-shadow: 0 0 0 4px color-mix(in srgb, var(--vurgu) 18%, transparent); transform: translateY(-2px); }
.kod-kutu.aktif:not(.dolu)::after { content: ''; width: 2px; height: 26px; background: var(--vurgu); animation: imlec 1s steps(1) infinite; }
#kodGiris:disabled ~ .kod-kutu { opacity: .45; }
.kod-kutulari.basarili .kod-kutu { border-color: var(--vurgu); background: var(--vurgu-acik); color: var(--vurgu); }
.kod-kutulari.salla { animation: salla .4s; }
.kod-kutulari.salla .kod-kutu { border-color: var(--uyari); }
@keyframes salla { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@keyframes haneGir { from { transform: scale(.85); } }
@keyframes imlec { 50% { opacity: 0; } }
.dogrula-kart .hata-yazi { justify-content: center; }
.kod-alt { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; }
.gelistirme-bant {
  display: flex; gap: 10px; align-items: flex-start; text-align: left; margin-top: 14px; padding: 10px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--altin) 14%, transparent); border: 1px solid color-mix(in srgb, var(--altin) 40%, transparent); font-size: 13.5px;
}
.gelistirme-bant .ikon { width: 18px; height: 18px; color: var(--altin); flex: none; margin-top: 1px; }
.gelistirme-bant code { font-weight: 700; font-size: 15px; letter-spacing: 2px; }
@media (max-width: 420px) {
  .hesap-kart { padding: 24px 18px; }
  .kod-kutulari { gap: 6px; }
  .kod-kutu { width: 42px; height: 52px; font-size: 22px; }
}

/* Başarı ekranı */
.basari-simge { width: 84px; height: 84px; margin: 4px auto 0; }
.basari-simge svg { width: 100%; height: 100%; fill: none; stroke: var(--vurgu); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.basari-simge circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: ciz .6s ease forwards; }
.basari-simge path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: ciz .4s .5s ease forwards; }
@keyframes ciz { to { stroke-dashoffset: 0; } }
.basari-kart p { margin: 8px 0 22px; }

/* --- Arkadaşlar --- */
.arkadas-dugme { position: relative; }
.sayi-rozet {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--uyari); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  border: 2px solid var(--zemin); box-sizing: content-box; animation: rozetGel .3s cubic-bezier(.3, 1.6, .5, 1);
}
.sayi-rozet[hidden], .sekme-sayi[hidden] { display: none; }
@keyframes rozetGel { from { transform: scale(0); } }
.sekme-sayi {
  display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: 4px; border-radius: 10px; font-size: 12px;
  background: var(--yuzey-3); color: var(--yazi-soluk); font-weight: 700;
}
.sekme-sayi:empty { display: none; }
.sekme-sayi.vurgulu { background: var(--uyari); color: #fff; }
.acilir .sekme-sayi { margin-left: auto; }

.genis-orta { max-width: 760px; }
.sayfa-baslik h1 { display: flex; align-items: center; gap: 10px; }
.sayfa-baslik h1 .ikon { width: 30px; height: 30px; color: var(--vurgu); }
.arama-kart { padding: 14px; margin-bottom: 18px; }
.arama-kart input { background: var(--yuzey-2); }
.arama-sonuc:not(:empty) { margin-top: 10px; border-top: 1px solid var(--cizgi); padding-top: 6px; }
.arama-ipucu { padding: 14px 8px; text-align: center; font-size: 14px; display: flex; justify-content: center; }
.arkadas-sekmeler button { display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.kisi-liste { padding: 6px; }
.kisi-liste.duz { padding: 0; margin: 4px -8px 0; }
.liste-baslik { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--yazi-soluk); padding: 12px 12px 6px; }
.kisi-satir {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; transition: background .15s;
}
.kisi-satir:hover { background: var(--yuzey-2); }
.kisi-avatar { position: relative; display: block; flex: none; text-decoration: none; }
img.avatar-harf { object-fit: cover; background: var(--yuzey-3); }
.durum-nokta {
  position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%;
  border: 2.5px solid var(--yuzey); background: var(--cizgi-guclu);
}
.durum-nokta.cevrimici { background: var(--vurgu); }
.durum-nokta.oyunda { background: var(--altin); }
.kisi-bilgi { flex: 1; min-width: 0; }
.kisi-ad { font-weight: 700; color: var(--yazi); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kisi-ad:hover { color: var(--vurgu); }
.kisi-alt { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--yazi-soluk); margin-top: 2px; flex-wrap: wrap; }
.puan-kucuk { display: inline-flex; align-items: center; gap: 3px; color: var(--altin); font-weight: 700; }
.puan-kucuk .ikon { width: 13px; height: 13px; }
.durum-yazi.cevrimici { color: var(--vurgu); font-weight: 600; }
.durum-yazi.oyunda { color: var(--altin); font-weight: 600; }
.kisi-eylem { display: flex; align-items: center; gap: 6px; flex: none; }
.kisi-eylem .rozet { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; font-size: 12.5px; }
.kisi-eylem .rozet .ikon, .arkadas-rozet .ikon { width: 15px; height: 15px; }
.ikon-dugme.kucuk-ikon { width: 34px; height: 34px; border-color: transparent; background: transparent; }
.ikon-dugme.kucuk-ikon .ikon { width: 17px; height: 17px; }
.ikon-dugme.kucuk-ikon:hover { color: var(--uyari); background: color-mix(in srgb, var(--uyari) 10%, transparent); }
.onay-bekliyor { width: auto !important; padding: 0 10px; color: var(--uyari) !important; background: color-mix(in srgb, var(--uyari) 12%, transparent) !important; font: inherit; font-size: 13px; font-weight: 700; display: inline-flex !important; gap: 5px; }
.dugme.yukleniyor { opacity: .6; pointer-events: none; }
.bos-durum { text-align: center; padding: 40px 20px; }
.bos-durum p { margin: 6px auto 0; max-width: 340px; font-size: 14px; }
.bos-simge { width: 56px; height: 56px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 16px; background: var(--yuzey-2); color: var(--yazi-soluk); }
.bos-simge .ikon { width: 26px; height: 26px; }
.kart-baslik-satir { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kart-baslik-satir h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.kart-baslik-satir h3 .ikon { width: 20px; height: 20px; color: var(--vurgu); }
.bos-satir { margin: 12px 0 0; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bos-satir .ikon { width: 16px; height: 16px; }
.kucuk-donen.koyu { border-color: var(--cizgi); border-top-color: var(--vurgu); }
@media (max-width: 520px) {
  .kisi-satir { flex-wrap: wrap; }
  .kisi-eylem { width: 100%; justify-content: flex-end; }
  .arkadas-sekmeler button { font-size: 13px; padding: 9px 4px; }
}

/* Profil üst kısmı */
.profil-ust { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.profil-kimlik { display: flex; align-items: center; gap: 16px; min-width: 0; }
.profil-kimlik h1 { margin: 0 0 4px; overflow-wrap: anywhere; }
.avatar-harf.dev { width: 72px; height: 72px; font-size: 32px; border-radius: 22px; }
.profil-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 14px; align-items: center; }
.profil-meta span { display: inline-flex; align-items: center; gap: 5px; }
.profil-meta .ikon { width: 15px; height: 15px; }
.profil-durum::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cizgi-guclu); }
.profil-durum.cevrimici { color: var(--vurgu); font-weight: 600; }
.profil-durum.cevrimici::before { background: var(--vurgu); }
.profil-durum.oyunda { color: var(--altin); font-weight: 600; }
.profil-durum.oyunda::before { background: var(--altin); }
.profil-eylem { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.arkadas-rozet { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; font-size: 13px; }

/* Davet kartları (sağ altta) */
.davet-kutulari {
  position: fixed; right: 20px; bottom: 20px; z-index: 1500; display: flex; flex-direction: column; gap: 10px;
  width: min(360px, calc(100vw - 32px));
}
.davet-kart {
  background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 16px; box-shadow: var(--golge-buyuk);
  padding: 14px; animation: davetGel .35s cubic-bezier(.2, 1.2, .4, 1) both; overflow: hidden;
}
.davet-kart.cikis { animation: davetGit .25s ease forwards; }
@keyframes davetGel { from { opacity: 0; transform: translateX(40px) scale(.96); } }
@keyframes davetGit { to { opacity: 0; transform: translateX(40px); } }
.davet-ust { display: flex; gap: 12px; align-items: center; }
.davet-metin { font-size: 14.5px; line-height: 1.4; min-width: 0; }
.davet-metin .soluk { font-size: 12.5px; display: flex; align-items: center; gap: 4px; margin-top: 2px; flex-wrap: wrap; }
.davet-metin .ikon { width: 13px; height: 13px; }
.davet-cubuk { height: 4px; border-radius: 2px; background: var(--yuzey-3); margin: 12px 0; overflow: hidden; }
.davet-cubuk-dolu { height: 100%; width: 100%; background: var(--vurgu); border-radius: 2px; }
.davet-kart.giden .davet-cubuk-dolu { background: var(--yazi-soluk); }
.davet-dugmeler { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 520px) { .davet-kutulari { right: 16px; bottom: 16px; } }

/* Rekabetçi arama kartı (sol altta): kendi aramam ya da "biri rakip arıyor" */
.arama-kutusu {
  position: fixed; left: 20px; bottom: 20px; z-index: 1400;
  width: min(320px, calc(100vw - 32px));
}
.arama-kutusu:empty { display: none; }
.arama-kart .davet-metin b { display: block; }
.arama-simge {
  flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--vurgu-acik); color: var(--vurgu);
}
.arama-simge .ikon { width: 20px; height: 20px; }
.kucuk-donen { flex: none; width: 26px; height: 26px; margin: 0 6px; }
.bot-oneri {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 4px 0 14px; padding: 14px; border-radius: 14px;
  background: var(--yuzey-2, var(--yuzey)); border: 1px solid var(--cizgi);
  animation: davetGel .35s cubic-bezier(.2, 1.2, .4, 1) both;
}
.bot-oneri > div { flex: 1 1 220px; min-width: 0; font-size: 14.5px; line-height: 1.45; }
.bot-oneri .soluk { font-size: 13.5px; margin-top: 2px; }
@media (max-width: 1380px) {
  .arama-kutusu { left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* Pencere (modal) */
.pencere-perde {
  position: fixed; inset: 0; z-index: 1800; background: rgba(8, 10, 14, .55); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 16px; animation: perdeGel .2s ease both;
}
.pencere-perde.cikis { animation: perdeGit .2s ease forwards; }
@keyframes perdeGel { from { opacity: 0; } }
@keyframes perdeGit { to { opacity: 0; } }
.pencere { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; animation: yukariGel .25s ease both; }
.pencere h3 { display: flex; align-items: center; gap: 8px; margin: 0 40px 6px 0; }
.pencere h3 .ikon { width: 20px; height: 20px; color: var(--vurgu); flex: none; }
.pencere-kapat { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-color: transparent; }
.pencere-alt { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }

/* --- Avatar fotoğrafları ve bayraklar --- */
img.avatar-harf { display: block; }
.avatar-harf.kucuk { width: 26px; height: 26px; font-size: 12px; }
img.bayrak { display: inline-block; width: 20px; height: 15px; border-radius: 3px; object-fit: cover; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
img.bayrak.buyuk-bayrak { width: 28px; height: 21px; vertical-align: 1px; border-radius: 4px; }
.tablo-oyuncu { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.tablo-oyuncu span { text-decoration: none; }
.tablo-oyuncu:hover span { text-decoration: underline; }
.oyuncu-avatar.fotolu { position: relative; background: none; padding: 0; overflow: visible; }
.oyuncu-avatar.fotolu .avatar-harf { width: 100%; height: 100%; border-radius: inherit; }
.renk-rozet { position: absolute; right: -5px; bottom: -5px; width: 18px; height: 18px; border-radius: 6px; background: var(--yuzey); box-shadow: 0 0 0 1.5px var(--cizgi); display: grid; place-items: center; }
.renk-rozet svg { width: 15px; height: 15px; }
.profil-bio { margin: 10px 0 0; max-width: 560px; line-height: 1.5; }

/* --- Ayarlar sayfası --- */
.ayarlar-kap { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; max-width: 980px; margin: 0 auto; align-items: start; }
.ayarlar-menu { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.ayarlar-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--yazi-soluk); font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.ayarlar-menu a:hover { background: var(--yuzey-2); color: var(--yazi); }
.ayarlar-menu a .ikon { width: 18px; height: 18px; }
.ayarlar-menu a.tehlike:hover { color: var(--uyari); }
.ayarlar-icerik { min-width: 0; }
.ayar-kart { margin-bottom: 18px; scroll-margin-top: 88px; }
.ayar-kart h2 { font-size: 20px; margin: 0 0 4px; }
.ayar-kart > p.soluk { margin: 0 0 12px; }
.foto-satir { display: flex; align-items: center; gap: 18px; margin: 16px 0 6px; flex-wrap: wrap; }
.foto-onizleme { position: relative; }
.foto-onizleme.yukleniyor-foto::after { content: ''; position: absolute; inset: 0; border-radius: 22px; background: color-mix(in srgb, var(--yuzey) 60%, transparent); }
.kucuk-yazi { font-size: 13px; margin: 8px 0 0; display: flex; align-items: center; gap: 6px; }
.kucuk-yazi .ikon { width: 15px; height: 15px; flex: none; }
.secim-kap { position: relative; display: flex; align-items: center; }
.secim-bayrak { position: absolute; left: 13px; display: grid; pointer-events: none; }
.secim-bayrak:empty + select { padding-left: 14px; }
select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--cizgi); background: var(--yuzey-2); color: var(--yazi);
  font: inherit; transition: border-color .15s, box-shadow .15s;
}
.secim-kap select { padding-left: 44px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--yazi-soluk) 50%), linear-gradient(135deg, var(--yazi-soluk) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
select:focus, textarea:focus { outline: none; border-color: var(--vurgu); box-shadow: 0 0 0 4px color-mix(in srgb, var(--vurgu) 18%, transparent); }
.hatali-alan { border-color: var(--uyari) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--uyari) 14%, transparent) !important; }
.sayac-yazi { text-align: right; font-size: 12.5px; color: var(--yazi-soluk); margin-top: 4px; }
.ayar-kart .hata-yazi { display: flex; align-items: center; gap: 6px; font-size: 14px; margin: 6px 0; min-height: 1.4em; }
.ayar-satir { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--cizgi); flex-wrap: wrap; }
.ayar-satir:first-of-type { border-top: 0; }
.ayar-satir > div:first-child { min-width: 0; flex: 1 1 260px; }
.ayar-satir .soluk { font-size: 14px; margin-top: 2px; overflow-wrap: anywhere; }
.ayar-alt-form { background: var(--yuzey-2); border-radius: 12px; padding: 4px 16px 16px; margin: 0 0 12px; animation: yukariGel .2s ease both; }
.ayar-alt-form input, .ayar-alt-form select { background: var(--yuzey); }
.kucuk-rozet { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; vertical-align: 1px; }
.kucuk-rozet .ikon { width: 12px; height: 12px; }
.kod-tek { letter-spacing: 8px; font: 700 22px var(--baslik-tipi); text-align: center; max-width: 220px; }
.kalan-sure { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--vurgu); }
.kalan-sure.bitti { color: var(--uyari); }
.parcali { display: inline-flex; background: var(--yuzey-2); border-radius: 10px; padding: 3px; gap: 2px; }
.parcali button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--yazi-soluk); font: inherit; font-weight: 600; font-size: 14px; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.parcali button .ikon { width: 16px; height: 16px; }
.parcali button.secili { background: var(--yuzey); color: var(--yazi); box-shadow: var(--golge); }
.anahtar-dugme { position: relative; display: inline-block; width: 46px; height: 26px; margin: 0; cursor: pointer; flex: none; }
.anahtar-dugme input { position: absolute; opacity: 0; width: 0; height: 0; }
.anahtar-dugme span { position: absolute; inset: 0; border-radius: 13px; background: var(--yuzey-3); transition: background .2s; }
.anahtar-dugme span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s cubic-bezier(.3, 1.4, .5, 1); }
.anahtar-dugme input:checked + span { background: var(--vurgu); }
.anahtar-dugme input:checked + span::after { transform: translateX(20px); }
.tehlike-kart { border-color: color-mix(in srgb, var(--uyari) 35%, var(--cizgi)); }
.tehlike-kart h2 { color: var(--uyari); }
.dugme.tehlike-dolu { background: var(--uyari); border-color: transparent; color: #fff; }
.dugme.tehlike-dolu:hover { background: color-mix(in srgb, var(--uyari) 85%, #000); }
@media (max-width: 820px) {
  .ayarlar-kap { grid-template-columns: 1fr; gap: 12px; }
  .ayarlar-menu { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; scrollbar-width: none; }
  .ayarlar-menu a { white-space: nowrap; padding: 8px 12px; background: var(--yuzey-2); }
}

/* hidden özniteliği her zaman gizlesin (display kurallarını ezer) */
[hidden] { display: none !important; }

/* =========================================================================
   Oyun içi sohbet
   ========================================================================= */
.izleyici-sayi { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; color: var(--yazi-soluk); font-weight: 600; }
.izleyici-sayi .ikon { width: 16px; height: 16px; }
.sohbet-kutu { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.sohbet-baslik { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--cizgi); }
.sohbet-baslik .ikon { width: 18px; height: 18px; color: var(--vurgu); }
.sohbet-baslik .ikon-dugme { margin-left: auto; width: 32px; height: 32px; }
.sohbet-baslik .ikon-dugme .ikon { color: var(--yazi-soluk); }
.sohbet-liste { height: 170px; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.sohbet-mesaj { padding: 6px 10px; border-radius: 10px; background: var(--yuzey-2); max-width: 92%; align-self: flex-start; overflow-wrap: anywhere; }
.sohbet-mesaj b { display: block; font-size: 12px; color: var(--yazi-soluk); }
.sohbet-mesaj.benim { align-self: flex-end; background: var(--vurgu-acik); }
.sohbet-bos { margin: auto; text-align: center; font-size: 13px; }
.sohbet-hazir { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 8px; scrollbar-width: none; }
.hazir-mesaj { flex-shrink: 0; border: 1px solid var(--cizgi); background: var(--yuzey-2); color: var(--yazi); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.hazir-mesaj:hover { border-color: var(--vurgu); }
.sohbet-form { display: flex; gap: 6px; padding: 0 12px 12px; }
.sohbet-form input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--cizgi-guclu); background: var(--zemin); color: var(--yazi); font: inherit; font-size: 14px; }
.sohbet-form .ikon { width: 18px; height: 18px; }
.sohbet-kutu.sessiz .sohbet-hazir, .sohbet-kutu.sessiz .sohbet-form { display: none; }

/* =========================================================================
   Oyun analizi
   ========================================================================= */
.analiz-duzen { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .analiz-duzen { grid-template-columns: 1fr; } }
.analiz-tahta-satir { display: flex; gap: 10px; align-items: stretch; }
.analiz-tahta-satir .tahta-kap { flex: 1; min-width: 0; }
.deger-cubugu { width: 22px; flex-shrink: 0; border-radius: 6px; background: #3a3d44; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.deger-cubugu.ters { justify-content: flex-start; }
.deger-beyaz { background: #f2f2ee; width: 100%; height: 50%; transition: height .35s ease; }
.deger-cubugu span { position: absolute; left: 0; right: 0; text-align: center; font-size: 10px; font-weight: 700; }
.deger-cubugu span.altta { bottom: 4px; color: #23262c; }
.deger-cubugu span.ustte { top: 4px; color: #f2f2ee; }
.deger-cubugu.ters span.altta { bottom: auto; top: 4px; }
.deger-cubugu.ters span.ustte { top: auto; bottom: 4px; }
.ok-katmani { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.en-iyi-ok line { stroke: rgba(59, 130, 246, .8); stroke-width: .17; stroke-linecap: round; }
.en-iyi-ok polygon { fill: rgba(59, 130, 246, .8); }
.analiz-gezinti { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.analiz-gezinti .dugme { padding: 8px 14px; }
.analiz-gezinti .ikon { width: 20px; height: 20px; }
.analiz-baslik h1 { font-size: 24px; margin: 0; display: flex; align-items: center; gap: 8px; }
.analiz-baslik h1 .ikon { color: var(--vurgu); width: 24px; height: 24px; }
.analiz-baslik p { margin: 4px 0 0; font-size: 14px; }
.analiz-ilerleme { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--yazi-soluk); }
.analiz-ilerleme-cubuk { height: 6px; border-radius: 99px; background: var(--yuzey-3); overflow: hidden; }
.analiz-ilerleme-cubuk div { height: 100%; width: 0; background: var(--vurgu); transition: width .3s; }
.grafik-kap { border-radius: 10px; overflow: hidden; border: 1px solid var(--cizgi); cursor: pointer; height: 96px; }
.grafik-kap svg { display: block; width: 100%; height: 100%; }
.grafik-siyah { fill: #3a3d44; }
.grafik-beyaz { fill: #f2f2ee; }
.grafik-orta { stroke: rgba(128, 128, 128, .6); stroke-width: 1; vector-effect: non-scaling-stroke; }
.grafik-cizgi { fill: none; stroke: var(--vurgu); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.grafik-imlec { stroke: #3b82f6; stroke-width: 2; vector-effect: non-scaling-stroke; }
.grafik-nokta.hata { fill: #e58a1f; }
.grafik-nokta.buyuk-hata { fill: #d63c3c; }
.isabet-tablo table { width: 100%; border-collapse: collapse; font-size: 14px; }
.isabet-tablo th, .isabet-tablo td { padding: 5px 6px; text-align: center; }
.isabet-tablo th:first-child, .isabet-tablo td:first-child { text-align: left; }
.isabet-tablo th { font-size: 13px; color: var(--yazi-soluk); font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.isabet-tablo tr + tr td { border-top: 1px solid var(--cizgi); }
.isabet-rozet { margin-left: auto; text-align: right; line-height: 1.1; }
.isabet-rozet b { display: block; font-size: 20px; font-family: var(--baslik-tipi); }
.isabet-rozet span { font-size: 12px; color: var(--yazi-soluk); }
.sinif-rozet { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; vertical-align: middle; }
.sinif-rozet .ikon { width: 14px; height: 14px; }
.sinif-rozet.en-iyi { background: #22a35a; }
.sinif-rozet.iyi { background: #6b9e78; }
.sinif-rozet.belirsiz { background: #d9b51c; }
.sinif-rozet.hata { background: #e58a1f; }
.sinif-rozet.buyuk-hata { background: #d63c3c; }
.hamle-yorum { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 12px; padding: 12px 14px; font-size: 14px; min-height: 64px; }
.yorum-ust { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.en-iyi-yazi { color: #3b82f6; }
.analiz-hamleler { max-height: 260px; overflow-y: auto; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 12px; padding: 6px; position: relative; }
.analiz-satir { display: grid; grid-template-columns: 38px 1fr 1fr; gap: 4px; align-items: center; }
.analiz-satir .no { color: var(--yazi-soluk); font-size: 13px; text-align: center; }
.analiz-hamle { text-align: left; border: 0; background: none; color: var(--yazi); font: inherit; font-weight: 600; font-size: 14px; padding: 5px 8px; border-radius: 6px; cursor: pointer; }
.analiz-hamle:hover { background: var(--yuzey-2); }
.analiz-hamle.aktif { background: color-mix(in srgb, var(--vurgu) 22%, transparent); }
.analiz-hamle sup { font-weight: 800; margin-left: 2px; }
.analiz-hamle.belirsiz sup { color: #c9a50f; }
.analiz-hamle.hata sup { color: #e58a1f; }
.analiz-hamle.buyuk-hata sup { color: #d63c3c; }
.analiz-hamle.bekliyor { color: var(--yazi-soluk); }
.tablo-baglantilar { white-space: nowrap; }
.tablo-baglantilar a { display: inline-flex; align-items: center; gap: 3px; margin-right: 8px; }
.tablo-baglantilar .ikon { width: 15px; height: 15px; }

/* =========================================================================
   Canlı oyunlar
   ========================================================================= */
.canli-nokta { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); animation: canliNabiz 1.6s infinite; vertical-align: middle; }
@keyframes canliNabiz { 70% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
@media (prefers-reduced-motion: reduce) { .canli-nokta { animation: none; } }
.canli-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.canli-kart { display: flex; flex-direction: column; gap: 8px; padding: 14px; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.canli-kart:hover { transform: translateY(-2px); box-shadow: var(--golge-buyuk); }
.canli-oyuncu { display: flex; align-items: center; gap: 7px; font-size: 14px; min-width: 0; }
.canli-oyuncu b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.canli-oyuncu .soluk { margin-left: auto; font-size: 13px; }
.kucuk-avatar { width: 24px; height: 24px; flex-shrink: 0; display: inline-flex; }
.kucuk-avatar .avatar-harf { width: 24px; height: 24px; font-size: 12px; border-radius: 6px; }
.mini-tahta { display: grid; grid-template-columns: repeat(8, 1fr); aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.mini-kare { display: flex; align-items: center; justify-content: center; }
.mini-kare.acik { background: var(--kare-acik); }
.mini-kare.koyu { background: var(--kare-koyu); }
.mini-kare .tas-svg { width: 92%; height: 92%; }
.canli-alt { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--yazi-soluk); }
.canli-alt span { display: inline-flex; align-items: center; gap: 4px; }
.canli-alt .ikon { width: 15px; height: 15px; }
.canli-ozet { margin: 0 0 14px; }
.bolum-ust-satir { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#anaCanli { margin-top: 56px; }
.ust-etiket .canli-nokta { width: 8px; height: 8px; margin-right: 4px; vertical-align: 1px; }
.buyuk-ikon { width: 48px; height: 48px; color: var(--yazi-soluk); }

/* =========================================================================
   Turnuvalar
   ========================================================================= */
.ikon.ates, .ates-rozet .ikon { color: #f06a1d; }
.ates-rozet { display: inline-flex; }
.ates-rozet .ikon { width: 17px; height: 17px; }
.arena-kurallar { margin-bottom: 24px; }
.arena-kurallar summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; list-style: none; }
.arena-kurallar summary::-webkit-details-marker { display: none; }
.arena-kurallar summary .ikon { width: 20px; height: 20px; color: var(--altin); }
.arena-kurallar ul, .arena-kural-kisa ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--yazi-soluk); }
.arena-kurallar li .ikon, .arena-kural-kisa li .ikon { width: 16px; height: 16px; vertical-align: -3px; }
.turnuva-bolum { font-size: 20px; margin: 28px 0 12px; display: flex; align-items: center; gap: 8px; }
.turnuva-liste { display: grid; gap: 10px; }
.turnuva-kart { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.turnuva-kart:hover { transform: translateY(-1px); box-shadow: var(--golge-buyuk); border-color: var(--cizgi-guclu); }
.turnuva-kart.suruyor { border-color: color-mix(in srgb, var(--vurgu) 45%, var(--cizgi)); }
.turnuva-simge { width: 44px; height: 44px; border-radius: 12px; background: var(--vurgu-acik); color: var(--vurgu); display: grid; place-items: center; flex-shrink: 0; }
.turnuva-kart.bitti .turnuva-simge { background: var(--yuzey-2); color: var(--yazi-soluk); }
.turnuva-simge .ikon { width: 24px; height: 24px; }
.turnuva-govde { flex: 1; min-width: 0; }
.turnuva-ad { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.turnuva-meta { color: var(--yazi-soluk); font-size: 14px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.turnuva-meta .ikon { width: 15px; height: 15px; }
.turnuva-durum { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; text-align: right; flex-shrink: 0; }
.turnuva-durum .ikon { width: 15px; height: 15px; vertical-align: -3px; }
.durum-hap { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--yuzey-2); font-weight: 700; font-size: 12px; }
.durum-hap.canli { background: rgba(229, 72, 77, .12); color: #e5484d; }
.durum-hap.bitti { color: var(--yazi-soluk); }
.turnuva-kart .rozet .ikon { width: 13px; height: 13px; vertical-align: -2px; }
@media (max-width: 600px) {
  .turnuva-kart { flex-wrap: wrap; }
  .turnuva-durum { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}

.arena-duzen { max-width: 1100px; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .arena-duzen { grid-template-columns: 1fr; } }
.arena-yan { display: grid; gap: 16px; }
.arena-bilgi { display: grid; gap: 10px; }
.arena-bilgi h1 { font-size: 26px; margin: 4px 0 0; overflow-wrap: anywhere; }
.geri-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; text-decoration: none; }
.geri-link .ikon { width: 16px; height: 16px; }
.arena-sayac { display: grid; justify-items: center; gap: 2px; padding: 16px; border-radius: 14px; background: var(--yuzey-2); margin: 6px 0; text-align: center; }
.arena-sayac span { font-size: 13px; color: var(--yazi-soluk); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.arena-sayac b { font-family: var(--baslik-tipi); font-size: 34px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.arena-sayac b .ikon { width: 36px; height: 36px; }
.arena-sayac small { color: var(--yazi-soluk); }
.arena-sayac.canli { background: rgba(229, 72, 77, .08); }
.dugme.genis { width: 100%; justify-content: center; }
.arena-durum { padding: 12px 14px; border-radius: 12px; background: var(--vurgu-acik); font-weight: 600; font-size: 14px; line-height: 1.5; }
.arena-durum .donen { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.arena-durum .ikon { width: 18px; height: 18px; color: var(--vurgu); vertical-align: -4px; margin-right: 4px; }
.kucuk-donen { width: 16px !important; height: 16px !important; border-width: 2px !important; flex-shrink: 0; }
.arena-not { font-size: 13px; margin: 0; }
.arena-kural-kisa h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.arena-kural-kisa h3 .ikon { width: 18px; height: 18px; color: var(--altin); }
.arena-kural-kisa ul { font-size: 14px; }
.arena-tablo { width: 100%; }
.arena-tablo td, .arena-tablo th { padding: 9px 10px; }
.arena-tablo .sayi { text-align: right; font-variant-numeric: tabular-nums; width: 56px; }
.arena-tablo .puan-hucre { font-weight: 800; font-size: 16px; }
.arena-tablo tr.ben td { background: var(--vurgu-acik); }
.arena-tablo tr.pasif td { opacity: .6; }
.arena-tablo .sira-no { width: 40px; color: var(--yazi-soluk); font-weight: 700; }
.tablo-oyuncu { display: flex; align-items: center; gap: 7px; min-width: 0; flex-wrap: wrap; }
.tablo-oyuncu > a:first-of-type { font-weight: 700; color: inherit; text-decoration: none; }
.tablo-oyuncu .soluk { font-size: 13px; }
.oyunda-link { display: inline-flex; color: #e5484d; }
.oyunda-link .ikon { width: 17px; height: 17px; }
.kucuk-yazi { font-size: 12px; }
.madalya { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 13px; }
.madalya.m1 { background: linear-gradient(140deg, #f5cd4f, #d49b0b); }
.madalya.m2 { background: linear-gradient(140deg, #d3d8df, #8e97a3); }
.madalya.m3 { background: linear-gradient(140deg, #e3a36d, #a8612b); }
.baslik-link { color: inherit; text-decoration: none; }
.baslik-link:hover { color: var(--vurgu); }

.podyum { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 12px; margin-bottom: 20px; max-width: 520px; margin-inline: auto; }
.podyum-yer { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.podyum-yer b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podyum-yer > span:not(.podyum-avatar) { font-size: 13px; color: var(--yazi-soluk); }
.podyum-avatar .avatar-harf { width: 52px; height: 52px; font-size: 22px; border-radius: 14px; }
.podyum-blok { width: 100%; border-radius: 12px 12px 4px 4px; display: grid; place-items: center; font-family: var(--baslik-tipi); font-weight: 800; font-size: 26px; color: #fff; margin-top: 6px; }
.y1 .podyum-blok { height: 110px; background: linear-gradient(180deg, #f5cd4f, #d49b0b); }
.y2 .podyum-blok { height: 80px; background: linear-gradient(180deg, #d3d8df, #8e97a3); }
.y3 .podyum-blok { height: 60px; background: linear-gradient(180deg, #e3a36d, #a8612b); }
.arena-tablo .madalya { font-size: 13px; }
.tablo-kap.kart { padding: 6px 4px; }
.arena-tablo tbody tr { animation: none; }

/* =========================================================================
   Başarımlar
   ========================================================================= */
.basarim-bolum { margin-top: 32px; }
.basarim-bolum:empty { display: none; }
.basarim-ust { margin-bottom: 12px; }
.basarim-ust .bolum-baslik { margin: 0; display: flex; align-items: center; gap: 8px; }
.basarim-ust .bolum-baslik .ikon { width: 22px; height: 22px; color: var(--altin); }
.basarim-sayac { display: flex; align-items: center; gap: 10px; color: var(--yazi-soluk); font-weight: 600; }
.basarim-sayac b { color: var(--yazi); font-size: 18px; }
.basarim-sayac .ilerleme { width: 120px; }
.basarim-kart { padding: 8px 20px 20px; }
.basarim-kategori { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--yazi-soluk); margin: 18px 0 10px; }
.basarim-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.basarim { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--yuzey-2); min-width: 0; }
.basarim.kilitli { opacity: .55; }
.basarim-yazi { display: grid; min-width: 0; line-height: 1.3; }
.basarim-yazi b { font-size: 14px; }
.basarim-yazi span { font-size: 13px; color: var(--yazi-soluk); }
.basarim-yazi small { font-size: 11px; color: var(--yazi-soluk); margin-top: 2px; font-weight: 600; }
.rozet-simge { position: relative; width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; }
.rozet-simge.kucuk { width: 34px; height: 34px; }
.rozet-cerceve { position: absolute; inset: 0; width: 100%; height: 100%; }
.rozet-cerceve path { stroke-width: 2.5; stroke-linejoin: round; }
.rozet-simge.s1 .rozet-cerceve path { fill: #f3dcc6; stroke: #b0682c; }
.rozet-simge.s2 .rozet-cerceve path { fill: #e8ecf1; stroke: #8792a0; }
.rozet-simge.s3 .rozet-cerceve path { fill: #fbecb8; stroke: #c99208; }
.rozet-simge .ikon { position: relative; width: 20px; height: 20px; }
.rozet-simge.kucuk .ikon { width: 15px; height: 15px; }
.rozet-simge.s1 .ikon { color: #8a4a17; }
.rozet-simge.s2 .ikon { color: #4d5866; }
.rozet-simge.s3 .ikon { color: #8a6200; }
.rozet-simge.kilitli .rozet-cerceve path { fill: var(--yuzey-3); stroke: var(--cizgi-guclu); }
.rozet-simge.kilitli .ikon { color: var(--yazi-soluk); }
.basarim-bildirimleri { position: fixed; left: 24px; bottom: 24px; z-index: 120; display: grid; gap: 10px; max-width: min(360px, calc(100vw - 32px)); }
.basarim-bildirim { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 16px; background: var(--yuzey); border: 1px solid color-mix(in srgb, var(--altin) 55%, var(--cizgi)); box-shadow: var(--golge-buyuk); animation: yukariGel .35s cubic-bezier(.22, 1, .36, 1) both; }
.basarim-bildirim.cikis { animation: perdeGit .3s ease forwards; }
.basarim-bildirim > div { display: grid; min-width: 0; line-height: 1.3; flex: 1; }
.basarim-bildirim small { color: var(--altin); font-weight: 700; font-size: 12px; }
.basarim-bildirim span { color: var(--yazi-soluk); font-size: 13px; }
.basarim-bildirim .ikon-dugme { width: 30px; height: 30px; border-color: transparent; flex-shrink: 0; }
@media (max-width: 520px) { .basarim-bildirimleri { left: 16px; bottom: 16px; } }

/* =========================================================================
   Alt bilgi, yasal sayfalar, SSS, 404, çerez bandı
   ========================================================================= */
.alt-izgara { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; padding-top: 36px; padding-bottom: 24px; align-items: start; }
.alt-izgara nav, .alt-marka { display: grid; gap: 8px; }
.alt-izgara nav b, .alt-marka b { font-family: var(--baslik-tipi); font-size: 15px; margin-bottom: 2px; }
.alt-marka span { font-weight: 400; max-width: 300px; }
.alt-izgara a, .alt-link { color: var(--yazi-soluk); text-decoration: none; font-weight: 500; }
.alt-izgara a:hover, .alt-link:hover { color: var(--vurgu); }
.alt-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; text-align: left; cursor: pointer; }
.alt-telif { border-top: 1px solid var(--cizgi); padding-top: 16px; padding-bottom: 24px; font-weight: 500; }
@media (max-width: 760px) { .alt-izgara { grid-template-columns: 1fr 1fr; } .alt-marka { grid-column: 1 / -1; } }

.belge { max-width: 820px; }
.belge-ust h1 { display: flex; align-items: center; gap: 10px; font-size: clamp(28px, 4vw, 38px); margin: 0 0 10px; }
.belge-ust h1 .ikon { width: 32px; height: 32px; color: var(--vurgu); flex-shrink: 0; }
.belge-ust p { font-size: 17px; line-height: 1.6; margin: 0; }
.belge-tarih { font-size: 13px !important; color: var(--yazi-soluk); margin-top: 10px !important; }
.belge-icindekiler { margin: 24px 0 8px; padding: 18px 22px; }
.belge-icindekiler ol { margin: 8px 0 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.belge-icindekiler li { margin: 3px 0; break-inside: avoid; }
@media (max-width: 600px) { .belge-icindekiler ol { columns: 1; } }
.belge-bolum { scroll-margin-top: 90px; }
.belge-bolum h2 { font-size: 21px; margin: 32px 0 10px; }
.belge-bolum p, .belge-bolum li { line-height: 1.7; color: var(--yazi); }
.belge-bolum ul { padding-left: 22px; display: grid; gap: 6px; }
.belge-bolum code { background: var(--yuzey-2); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.belge-tablo { font-size: 14px; }
.belge-tablo td { vertical-align: top; }
.belge-alt { margin-top: 36px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.belge-alt .ikon { width: 20px; height: 20px; color: var(--vurgu); }

.sss-liste { display: grid; gap: 10px; margin-top: 24px; }
.sss { padding: 0; overflow: hidden; }
.sss summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; }
.sss summary::-webkit-details-marker { display: none; }
.sss summary .ikon { width: 20px; height: 20px; flex-shrink: 0; color: var(--yazi-soluk); transition: transform .2s; }
.sss[open] summary .ikon { transform: rotate(180deg); }
.sss-cevap { padding: 0 20px 18px; line-height: 1.7; color: var(--yazi-soluk); }
.sss-cta { margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.sss-cta h2 { margin: 0; }
.sss-cta p { margin: 4px 0 0; }

.bulunamadi { max-width: 560px; margin: 24px auto; text-align: center; display: grid; justify-items: center; gap: 4px; }
.bulunamadi-tahta { display: grid; grid-template-columns: repeat(3, 64px); grid-template-rows: repeat(3, 64px); border-radius: 12px; overflow: hidden; box-shadow: var(--golge-buyuk); margin-bottom: 18px; transform: rotate(-4deg); }
.bulunamadi-tahta .acik { background: var(--kare-acik); }
.bulunamadi-tahta .koyu { background: var(--kare-koyu); }
.bulunamadi-tahta div { display: grid; place-items: center; }
.bulunamadi-tahta .tas-svg { width: 54px; height: 54px; animation: atZipla 2.4s ease-in-out infinite; }
@keyframes atZipla { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-14px) rotate(-8deg); } 90% { transform: translateY(0); } }
.bulunamadi-kod { font-family: var(--baslik-tipi); font-weight: 800; font-size: 15px; letter-spacing: .3em; color: var(--vurgu); margin: 0; }
.bulunamadi h1 { margin: 0; font-size: clamp(30px, 5vw, 42px); }
.bulunamadi p { font-size: 17px; line-height: 1.6; }
.bulunamadi .dugme-grup { justify-content: center; margin-top: 8px; }

.cerez-bandi { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; display: flex; justify-content: center; animation: yukariGel .35s cubic-bezier(.22, 1, .36, 1) both; pointer-events: none; }
.cerez-bandi.cikis { animation: perdeGit .25s ease forwards; }
.cerez-ic { pointer-events: auto; max-width: 880px; width: 100%; background: var(--yuzey); border: 1px solid var(--cizgi-guclu); border-radius: 18px; box-shadow: var(--golge-buyuk); padding: 18px 20px; display: flex; gap: 20px; align-items: flex-end; }
.cerez-yazi { flex: 1; min-width: 0; }
.cerez-yazi > b { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.cerez-yazi > b .ikon { width: 20px; height: 20px; color: var(--vurgu); }
.cerez-yazi p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--yazi-soluk); }
.cerez-ayar { display: grid; gap: 8px; margin-top: 12px; }
.cerez-secim { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-weight: 400; font-size: 14px; color: var(--yazi-soluk); cursor: pointer; }
.cerez-secim input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--vurgu); flex-shrink: 0; }
.cerez-secim b { color: var(--yazi); margin-right: 4px; }
.cerez-dugmeler { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) {
  .cerez-ic { flex-direction: column; align-items: stretch; gap: 14px; }
  .cerez-dugmeler { justify-content: stretch; }
  .cerez-dugmeler .dugme { flex: 1; justify-content: center; }
}

/* Telefonda ana sayfadaki çağrı düğmeleri tam genişlik: tek dokunuşla kolay erişim */
@media (max-width: 520px) {
  .kahraman-yazi .dugme-grup { display: grid; grid-template-columns: 1fr; }
  .kahraman-yazi .dugme-grup .dugme { justify-content: center; }
}

/* =========================================================================
   Dil seçimi ve sağdan sola diller
   ========================================================================= */
.alt-telif { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.alt-dil { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; }
.alt-dil .ikon { width: 18px; height: 18px; color: var(--yazi-soluk); }
.gizli-yazi { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dil-secici {
  appearance: none; -webkit-appearance: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--yazi);
  background: var(--yuzey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  border: 1px solid var(--cizgi); border-radius: 10px; padding: 8px 34px 8px 12px; cursor: pointer; min-width: 170px;
}
.dil-secici:hover { border-color: var(--cizgi-guclu); }
[dir="rtl"] .dil-secici { background-position: left 10px center; padding: 8px 12px 8px 34px; }
/* Satranç tahtası ve hamle listesi her dilde soldan sağa kalır */
[dir="rtl"] .tahta, [dir="rtl"] .tahta-kap, [dir="rtl"] .mini-tahta, [dir="rtl"] .hamle-listesi, [dir="rtl"] .saat { direction: ltr; }

/* --- Özel mesajlar --- */
.dm-kap { display: grid; grid-template-columns: 330px 1fr; gap: 16px; height: calc(100dvh - 150px); min-height: 460px; }
.dm-liste, .dm-konusma { padding: 0; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.dm-liste-ust { padding: 16px 16px 10px; border-bottom: 1px solid var(--cizgi); }
.dm-liste-ust h1 { font-size: 22px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.dm-liste-ust h1 .ikon { color: var(--vurgu); width: 24px; height: 24px; }
.dm-ara input { background: var(--yuzey-2); }
.dm-kisiler { flex: 1; overflow-y: auto; padding: 6px; }
.dm-kisi { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--yazi); text-decoration: none; transition: background .15s; }
.dm-kisi:hover { background: var(--yuzey-2); }
.dm-kisi.secili { background: var(--vurgu-acik); }
.dm-kisi .durum-nokta { border-color: var(--yuzey); }
.dm-kisi-bilgi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dm-kisi-ust { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dm-kisi-ust b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-kisi-ust time { font-size: 12px; color: var(--yazi-soluk); flex: none; }
.dm-kisi-alt { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--yazi-soluk); }
.dm-onizleme { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-kisi.okunmamis .dm-onizleme { color: var(--yazi); font-weight: 600; }
.dm-kisi.okunmamis time { color: var(--vurgu); font-weight: 700; }
.dm-sayi { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--vurgu); color: var(--vurgu-yazi); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.dm-yukle { display: grid; place-items: center; padding: 40px; flex: 1; }
.dm-bos-yazi { text-align: center; padding: 24px 12px; margin: 0; }
.dm-bos { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.dm-bos p { max-width: 340px; font-size: 14px; margin: 6px 0 0; }

.dm-baslik { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--cizgi); }
.dm-geri { display: none; }
.dm-baslik-bilgi { min-width: 0; display: flex; flex-direction: column; }
.dm-durum { font-size: 13px; color: var(--yazi-soluk); }
.dm-durum.cevrimici, .dm-durum.yaziyor { color: var(--vurgu); }
.dm-durum.yaziyor { font-style: italic; }
.dm-akis { flex: 1; overflow-y: auto; padding: 16px 16px 8px; overscroll-behavior: contain; }
.dm-akis-ic { display: flex; flex-direction: column; min-height: 100%; justify-content: flex-end; }
.dm-akis-bos { text-align: center; margin: auto; font-size: 14px; padding: 20px; }
.dm-daha { display: grid; place-items: center; padding: 6px 0 12px; }
.dm-gun { display: flex; justify-content: center; margin: 14px 0 8px; position: sticky; top: -8px; z-index: 1; }
.dm-gun span { font-size: 12px; font-weight: 600; color: var(--yazi-soluk); background: var(--yuzey-2); border: 1px solid var(--cizgi); padding: 3px 12px; border-radius: 999px; }
.dm-satir { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.dm-satir.grup-basi { margin-top: 10px; }
.dm-satir.benim { justify-content: flex-end; }
.dm-balon {
  max-width: min(72%, 520px); padding: 8px 12px 6px; border-radius: 18px; background: var(--yuzey-2); color: var(--yazi);
  position: relative; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgb(0 0 0 / .06);
}
.dm-balon.benim { background: var(--vurgu); color: var(--vurgu-yazi); }
.dm-satir.onun:not(.grup-sonu) .dm-balon { border-bottom-left-radius: 6px; }
.dm-satir.onun:not(.grup-basi) .dm-balon { border-top-left-radius: 6px; }
.dm-satir.benim:not(.grup-sonu) .dm-balon { border-bottom-right-radius: 6px; }
.dm-satir.benim:not(.grup-basi) .dm-balon { border-top-right-radius: 6px; }
.dm-metin { white-space: pre-wrap; line-height: 1.45; font-size: 15px; }
.dm-metin a { color: inherit; text-decoration: underline; }
.dm-zaman { display: flex; align-items: center; justify-content: flex-end; gap: 3px; font-size: 11px; opacity: .75; margin-top: 2px; white-space: nowrap; }
.dm-tik { display: inline-flex; opacity: .7; }
.dm-tik.okundu { opacity: 1; }
.dm-tik .ikon { width: 15px; height: 15px; }
.dm-balon.emoji { background: transparent !important; box-shadow: none; padding: 0 2px; color: var(--yazi) !important; }
.dm-balon.emoji .dm-metin { font-size: 42px; line-height: 1.15; }
.dm-balon.emoji .dm-tik.okundu { color: var(--vurgu); }
.dm-balon.medya { padding: 4px; background: var(--yuzey-2) !important; color: var(--yazi) !important; }
.dm-resim { display: block; max-width: 100%; height: auto; border-radius: 14px; cursor: zoom-in; background: var(--yuzey-3); object-fit: cover; }
.dm-balon.medya .dm-zaman { position: absolute; right: 10px; bottom: 9px; background: rgb(0 0 0 / .55); color: #fff; opacity: 1; padding: 1px 7px; border-radius: 10px; }
.dm-balon.medya .dm-tik.okundu { color: #7ef0a8; }
.dm-ses { display: flex; align-items: center; gap: 10px; min-width: 210px; padding: 2px 0; }
.dm-ses-dugme { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgb(255 255 255 / .25); color: inherit; }
.dm-balon.onun .dm-ses-dugme { background: var(--vurgu); color: var(--vurgu-yazi); }
.dm-ses-dugme .ikon { width: 18px; height: 18px; }
.dm-ses-cubuk { flex: 1; height: 5px; border-radius: 3px; background: rgb(127 127 127 / .35); cursor: pointer; overflow: hidden; }
.dm-ses-dolu { height: 100%; width: 0; background: currentColor; border-radius: 3px; transition: width .2s linear; }
.dm-ses-sure { font-size: 12.5px; font-variant-numeric: tabular-nums; min-width: 34px; }
.dm-yukleniyor { display: inline-flex; align-items: center; gap: 8px; opacity: .75; font-size: 14px; }
.dm-sil { opacity: 0; border: 0; background: transparent; color: var(--yazi-soluk); cursor: pointer; padding: 6px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 12.5px; transition: opacity .15s; }
.dm-satir:hover .dm-sil, .dm-sil:focus-visible, .dm-sil.onayla { opacity: 1; }
.dm-sil:hover, .dm-sil.onayla { color: var(--uyari); background: color-mix(in srgb, var(--uyari) 10%, transparent); }
.dm-sil .ikon { width: 16px; height: 16px; }
@media (pointer: coarse) { .dm-sil { opacity: .55; } }

.dm-yazi-alani { position: relative; border-top: 1px solid var(--cizgi); padding: 10px 12px; }
.dm-giris { display: flex; align-items: flex-end; gap: 6px; }
.dm-giris textarea {
  flex: 1; min-width: 0; resize: none; min-height: 42px; max-height: 140px; padding: 10px 14px; border-radius: 21px; border: 1px solid var(--cizgi);
  background: var(--yuzey-2); color: var(--yazi); font: inherit; font-size: 15px; line-height: 1.4; overflow-y: hidden;
}
.dm-giris textarea:focus { outline: none; border-color: var(--vurgu); }
.dm-arac { width: 40px; height: 42px; flex: none; border-color: transparent; background: transparent; color: var(--yazi-soluk); }
.dm-arac:hover, .dm-arac.aktif { color: var(--vurgu); background: var(--vurgu-acik); }
.dm-arac .ikon { width: 22px; height: 22px; }
.dm-gonder { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--yuzey-2); color: var(--yazi-soluk); }
.dm-gonder.dolu, .dm-gonder:hover { background: var(--vurgu); border-color: var(--vurgu); color: var(--vurgu-yazi); }
.dm-gonder .ikon { width: 20px; height: 20px; }
.dm-giris.kayitta { align-items: center; }
.dm-kayit { flex: 1; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 21px; background: var(--yuzey-2); font-variant-numeric: tabular-nums; font-weight: 700; }
.dm-kayit-nokta { width: 10px; height: 10px; border-radius: 50%; background: var(--uyari); animation: kayitNabiz 1s ease-in-out infinite; }
.dm-kayit-yazi { font-weight: 500; font-size: 14px; }
@keyframes kayitNabiz { 50% { opacity: .3; } }
.dm-kilitli { border-top: 1px solid var(--cizgi); padding: 14px 16px; font-size: 14px; display: flex; align-items: center; gap: 8px; justify-content: center; }

.dm-panel { position: absolute; left: 10px; right: 10px; bottom: calc(100% + 8px); background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 16px; box-shadow: var(--golge-buyuk); z-index: 5; overflow: hidden; }
.dm-emoji-panel { max-height: 300px; overflow-y: auto; padding: 8px 10px 12px; }
.dm-emoji-baslik { font-size: 12px; font-weight: 700; color: var(--yazi-soluk); padding: 8px 4px 4px; }
.dm-emoji-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
.dm-emoji-izgara button { border: 0; background: transparent; font-size: 26px; line-height: 1; height: 42px; border-radius: 10px; cursor: pointer; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; transition: transform .1s; }
.dm-emoji-izgara button:hover { background: var(--yuzey-2); transform: scale(1.12); }

.dm-buyuk-resim { position: fixed; inset: 0; z-index: 1000; background: rgb(0 0 0 / .85); display: grid; place-items: center; padding: 24px; cursor: zoom-out; animation: solukGel .15s ease; }
.dm-buyuk-resim img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.dm-buyuk-resim .ikon-dugme { position: absolute; top: 16px; right: 16px; background: rgb(0 0 0 / .4); color: #fff; border-color: transparent; }
@keyframes solukGel { from { opacity: 0; } }
.ikon-dugme.kucuk-ikon.dm-kisayol:hover { color: var(--vurgu); background: var(--vurgu-acik); }

@media (max-width: 820px) {
  .dm-kap { grid-template-columns: 1fr; height: calc(100dvh - 120px); }
  .dm-kap:not(.konusma-acik) .dm-konusma { display: none; }
  .dm-kap.konusma-acik .dm-liste { display: none; }
  .dm-geri { display: grid; }
  .dm-balon { max-width: 82%; }
}
@media (max-width: 520px) {
  .dm-kap { height: calc(100dvh - 100px); }
  .dm-akis { padding: 12px 10px 6px; }
  .dm-yazi-alani { padding: 8px; }
  .dm-arac { width: 34px; }
}

/* =========================================================================
   Görünüm: taş takımları, koordinatlar, önceden hamle
   ========================================================================= */
html[data-koord='0'] .koord { display: none; }
.kare.onhamle::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: rgba(220, 70, 60, .42); }
.nokta.on { background: rgba(200, 50, 40, .3); }
.nokta.alma.on { background: none; border-color: rgba(200, 50, 40, .35); }

html[data-taslar='duz'] .svg-beyaz, .mini-tas[data-taslar='duz'] .svg-beyaz { fill: #ffffff; stroke: #3a3a3a; filter: none; }
html[data-taslar='duz'] .svg-siyah, .mini-tas[data-taslar='duz'] .svg-siyah { fill: #3a3a3a; stroke: #3a3a3a; filter: none; }
html[data-taslar='duz'] .svg-siyah .ic, .mini-tas[data-taslar='duz'] .svg-siyah .ic { stroke: #ffffff; }
html[data-taslar='fildisi'] .svg-beyaz, .mini-tas[data-taslar='fildisi'] .svg-beyaz { fill: #f4e6c4; stroke: #5b4122; }
html[data-taslar='fildisi'] .svg-siyah, .mini-tas[data-taslar='fildisi'] .svg-siyah { fill: #6e4224; stroke: #2a170a; }
html[data-taslar='fildisi'] .svg-siyah .ic, .mini-tas[data-taslar='fildisi'] .svg-siyah .ic { stroke: #d9b48c; }
html[data-taslar='gumus'] .svg-beyaz, .mini-tas[data-taslar='gumus'] .svg-beyaz { fill: #e6eaee; stroke: #36414d; }
html[data-taslar='gumus'] .svg-siyah, .mini-tas[data-taslar='gumus'] .svg-siyah { fill: #34465a; stroke: #0f151c; }
html[data-taslar='gumus'] .svg-siyah .ic, .mini-tas[data-taslar='gumus'] .svg-siyah .ic { stroke: #a9bdd1; }
.mini-tas[data-taslar='klasik'] .svg-beyaz { fill: #fbfaf6; stroke: #1c1c1c; }
.mini-tas[data-taslar='klasik'] .svg-siyah { fill: #2c2c2c; stroke: #0d0d0d; }
.mini-tas[data-taslar='klasik'] .svg-siyah .ic { stroke: #8a8a8a; }
.mini-tas { display: inline-flex; background: var(--kare-acik); border-radius: 6px; padding: 2px; vertical-align: middle; }
.mini-tas .tas-svg { width: 22px; height: 22px; }

.gorunum-pencere { max-width: 520px; }
.gorunum-onizleme { display: grid; grid-template-columns: repeat(6, 1fr); border-radius: 8px; overflow: hidden; margin: 6px 0 14px; container-type: inline-size; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.gorunum-onizleme .kare { aspect-ratio: 1; }
.gorunum-onizleme .tas { cursor: default; }
.tahta-renkleri { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.tahta-renk { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; outline-offset: 2px; }
.tahta-renk.secili { border-color: var(--vurgu); box-shadow: 0 0 0 2px var(--isik); }
.tahta-renk span { display: block; }
@media (max-width: 480px) { .tahta-renkleri { grid-template-columns: repeat(4, 1fr); } }

@media (max-width: 520px) { #gorunumDugme { display: none; } }

/* Ortak küçük parçalar */
.orta.genis { max-width: 1080px; }
.satir-baslik { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.satir-baslik h3 { margin: 0; }
.sayfa-aciklama { margin: -4px 0 20px; max-width: 720px; }
.kucuk-yazi { font-size: 13px; }
.buyuk-simge { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--vurgu-acik); color: var(--vurgu); flex-shrink: 0; }
.buyuk-simge .ikon { width: 28px; height: 28px; }
.dogru-yazi { color: var(--vurgu); }
.yanlis-yazi { color: var(--uyari); }
.dogru-yazi .ikon, .yanlis-yazi .ikon { width: 20px; height: 20px; vertical-align: -3px; }
.uyari-yazi { color: var(--uyari); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.secim-satir { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; font-weight: 500; }
.secim-satir input { width: auto; margin: 0; accent-color: var(--vurgu); }
.sikayet-nedenler { margin: 8px 0 12px; }
.arama-kutu { display: flex; align-items: center; gap: 8px; background: var(--yuzey-2); border: 1px solid var(--cizgi); border-radius: 12px; padding: 0 12px; margin-bottom: 16px; }
.arama-kutu input { border: 0; background: none; box-shadow: none; padding: 12px 0; margin: 0; }
.arama-kutu .ikon { width: 18px; height: 18px; color: var(--yazi-soluk); }
.sekme-cubugu { display: flex; gap: 4px; background: var(--yuzey-2); padding: 4px; border-radius: 12px; margin-bottom: 18px; overflow-x: auto; }
.sekme-cubugu > a, .sekme-cubugu > button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border: 0; border-radius: 9px; background: none; font: inherit; font-weight: 700; color: var(--yazi-soluk); text-decoration: none; cursor: pointer; white-space: nowrap; }
.sekme-cubugu > .secili { background: var(--yuzey); color: var(--yazi); box-shadow: var(--golge); }
.sekme-cubugu .ikon { width: 18px; height: 18px; }
.kucuk-sekme { margin-bottom: 12px; }
.varyant-etiket { display: inline-block; padding: 1px 6px; border-radius: 5px; font-size: 11px; font-weight: 800; background: var(--yuzey-2); color: var(--yazi-soluk); vertical-align: middle; }
.acilis-satir { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--yazi-soluk); }
.acilis-satir:empty { display: none; }
.acilis-satir .ikon { width: 17px; height: 17px; color: var(--vurgu); flex-shrink: 0; }
.acilis-satir b { color: var(--yazi); }
.puan-degisim.arti { color: var(--vurgu); }
.puan-degisim.eksi { color: var(--uyari); }

/* =========================================================================
   Bildirimler
   ========================================================================= */
#bildirimDugme { position: relative; }
.bildirim-panel { position: absolute; top: calc(100% + 8px); right: 0; width: min(380px, calc(100vw - 24px)); padding: 0; z-index: 60; }
.bildirim-ust { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--cizgi); }
.bildirim-liste { max-height: min(420px, 60vh); overflow: auto; padding: 6px; }
.bildirim-oge { display: flex !important; align-items: flex-start; gap: 12px; padding: 10px !important; border-radius: 10px; text-decoration: none; color: var(--yazi) !important; position: relative; }
.bildirim-oge:hover { background: var(--yuzey-2); }
.bildirim-oge.yeni { background: color-mix(in srgb, var(--vurgu) 9%, transparent); }
.bildirim-oge.yeni .bildirim-simge { position: relative; }
.bildirim-oge.yeni .bildirim-simge::after { content: ''; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--vurgu); box-shadow: 0 0 0 2px var(--yuzey); }
.bildirim-satir { position: relative; border-radius: 10px; transition: opacity .18s, transform .18s; }
.bildirim-satir.siliniyor { opacity: 0; transform: translateX(16px); pointer-events: none; }
.bildirim-satir .bildirim-oge { padding-right: 44px !important; }
.bildirim-panel .bildirim-sil, .bildirim-sil {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px;
  display: grid; place-items: center; background: none; color: var(--yazi-soluk); cursor: pointer; opacity: .45; transition: opacity .15s, background .15s, color .15s;
}
.bildirim-sil .ikon { width: 15px !important; height: 15px !important; color: currentColor !important; }
.bildirim-satir:hover .bildirim-sil, .bildirim-sil:focus-visible { opacity: 1; }
.bildirim-panel .bildirim-sil:hover, .bildirim-sil:hover { background: color-mix(in srgb, var(--uyari) 14%, transparent); color: var(--uyari); }
@media (hover: none) { .bildirim-sil { opacity: .75; } }
.bildirim-panel .bildirim-temizle {
  width: auto; flex: none; gap: 6px; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--yazi-soluk);
}
.bildirim-panel .bildirim-temizle .ikon { width: 15px; height: 15px; color: currentColor; }
.bildirim-panel .bildirim-temizle:hover, .bildirim-panel .bildirim-temizle.onayla { background: color-mix(in srgb, var(--uyari) 12%, transparent); color: var(--uyari); }
.bildirim-panel .bildirim-temizle[hidden], .bildirim-temizle-sayfa[hidden] { display: none; }
.bildirim-temizle-sayfa.onayla { color: var(--uyari); border-color: var(--uyari); }
.bildirim-simge { width: 34px; height: 34px; border-radius: 10px; background: var(--yuzey-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bildirim-simge .ikon { width: 18px !important; height: 18px !important; color: var(--vurgu) !important; }
.bildirim-govde { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.4; padding-right: 14px; }
.bildirim-zaman { font-size: 12px; }
.bildirim-alt { display: block !important; text-align: center; padding: 12px !important; border-top: 1px solid var(--cizgi); font-weight: 600; color: var(--vurgu) !important; border-radius: 0 !important; }
.bildirim-bos { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 12px; text-align: center; }
.bildirim-bos .ikon { width: 30px; height: 30px; }
.bildirim-sayfa { padding: 8px; }

/* =========================================================================
   Bulmacalar
   ========================================================================= */
.bulmaca-ozet { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.bulmaca-ozet > div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; background: var(--yuzey); border: 1px solid var(--cizgi); }
.bulmaca-ozet > div .soluk { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.bulmaca-ozet b { font-size: 22px; font-family: var(--baslik-tipi); display: flex; align-items: center; gap: 4px; }
.bulmaca-ozet > p { grid-column: 1 / -1; margin: 0; }
.seri-sayi .ikon { width: 20px; height: 20px; color: var(--yazi-soluk); }
.seri-sayi.bugun .ikon { color: #f07b1f; }
.istatistik .seri-sayi { display: flex; align-items: center; gap: 4px; }
.bulmaca-bilgi { font-size: 14px; line-height: 1.6; }
.bulmaca-bilgi .ikon { width: 15px; height: 15px; vertical-align: -2px; }
.bulmaca-duzen .durum-kutu { min-height: 92px; }

.yaris-giris { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 820px) { .yaris-giris { grid-template-columns: 1fr; } }
.yaris-kart { text-align: center; padding: 36px 28px; }
.yaris-kart h1 { margin: 14px 0 8px; }
.ates-simge { background: #fff1e5; color: #f07b1f; width: 72px; height: 72px; border-radius: 20px; }
.ates-simge .ikon { width: 36px; height: 36px; }
:root[data-theme='dark'] .ates-simge { background: rgba(240, 123, 31, .15); }
.yaris-rekor { margin: 12px 0 20px; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 24px; }
.yaris-rekor .ikon { width: 20px; height: 20px; }
.yaris-tablo { list-style: none; counter-reset: sira; margin: 0; padding: 0; }
.yaris-tablo li { counter-increment: sira; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--cizgi); }
.yaris-tablo li::before { content: counter(sira); width: 26px; font-weight: 800; color: var(--yazi-soluk); }
.yaris-tablo li:nth-child(-n+3)::before { color: var(--altin); }
.yaris-ad { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.yaris-ad a { color: var(--yazi); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yaris-tablo b { font-size: 18px; font-family: var(--baslik-tipi); }
.yaris-ust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yaris-saat, .yaris-skor { padding: 14px; border-radius: 14px; background: var(--yuzey); border: 1px solid var(--cizgi); text-align: center; }
.yaris-saat { font-size: 34px; font-weight: 800; font-family: var(--baslik-tipi); font-variant-numeric: tabular-nums; }
.yaris-saat.az { color: var(--uyari); animation: nabiz 1s ease-in-out infinite; }
@keyframes nabiz { 50% { opacity: .55; } }
.yaris-skor { display: flex; flex-direction: column; justify-content: center; }
.yaris-skor .soluk { font-size: 12px; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; }
.yaris-skor b { font-size: 30px; font-family: var(--baslik-tipi); }
.yaris-hatalar { display: flex; gap: 8px; justify-content: center; }
.yaris-hatalar span { width: 34px; height: 8px; border-radius: 4px; background: var(--yuzey-3); transition: background .2s; }
.yaris-hatalar span.dolu { background: var(--uyari); }
.yaris-gecmis { display: flex; flex-wrap: wrap; gap: 4px; }
.yaris-gecmis span { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; }
.yaris-gecmis span.dogru { background: var(--vurgu); }
.yaris-gecmis span.yanlis { background: var(--uyari); }
.yaris-gecmis .ikon { width: 14px; height: 14px; }

/* Ana sayfa: günün bulmacası */
.gunluk-bulmaca { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 48px; padding: 24px; }
.gunluk-bulmaca[hidden] { display: none; }
.gunluk-tahta { display: block; border-radius: 8px; }
.gunluk-tahta .tahta { pointer-events: none; }
.gunluk-yazi h2 { margin: 4px 0 8px; font-size: 24px; }
.gunluk-yazi .ust-etiket { display: flex; align-items: center; gap: 6px; }
.gunluk-yazi .ust-etiket .ikon { width: 16px; height: 16px; }
.seri-satir { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: var(--yuzey-2); font-size: 14px; }
.seri-satir .ikon { width: 18px; height: 18px; color: var(--yazi-soluk); }
.seri-satir.bugun .ikon { color: #f07b1f; }
@media (max-width: 640px) { .gunluk-bulmaca { grid-template-columns: 1fr; } .gunluk-tahta { max-width: 260px; } }

.oyun-baslik { font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gezinme .dugme { padding: 8px 12px; }
.teklif-kutu { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--cizgi); font-weight: 500; }
.teklif-kutu .dugme-grup { margin-top: 8px; }

/* =========================================================================
   Kulüpler
   ========================================================================= */
.kulup-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
#kBenim .kart { margin-bottom: 16px; }
#kBenim h3 { margin-top: 0; }
.kulup-kart { display: flex; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--cizgi); background: var(--yuzey); color: var(--yazi); text-decoration: none; transition: border-color .15s, transform .15s; }
.kulup-kart:hover { border-color: var(--vurgu); transform: translateY(-1px); }
.kulup-arma { position: relative; width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--vurgu); }
.kulup-arma .ikon { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.kulup-arma b { position: relative; font-family: var(--baslik-tipi); font-size: 17px; color: var(--yazi); margin-top: -2px; }
.kulup-arma.buyuk { width: 84px; height: 84px; }
.kulup-arma.buyuk b { font-size: 30px; }
.kulup-govde { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kulup-govde .soluk { font-size: 13px; }
.kulup-aciklama { white-space: pre-wrap; overflow-wrap: anywhere; }
.kulup-govde .kulup-aciklama { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kulup-ust { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 20px; }
.kulup-ust-govde { flex: 1; min-width: 220px; }
.kulup-ust-govde h1 { margin: 0 0 4px; }
.kulup-ust-govde p { margin: 4px 0; }
.kulup-dugmeler { width: 100%; }
.kulup-duzen { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .kulup-duzen { grid-template-columns: 1fr; } }
.kulup-yan { display: flex; flex-direction: column; gap: 16px; }
.kulup-yan .kart h3 { margin-top: 0; }
.kulup-sohbet { display: flex; flex-direction: column; min-height: 460px; }
.kulup-sohbet h3 { margin-top: 0; }
.kulup-mesajlar { flex: 1; max-height: 520px; min-height: 300px; overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px 4px 12px; }
.kulup-mesaj { display: flex; gap: 10px; align-items: flex-start; }
.kulup-mesaj > div { min-width: 0; flex: 1; }
.kulup-mesaj-ust { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.kulup-mesaj-ust a { color: var(--yazi); text-decoration: none; }
.kulup-mesaj-ust .soluk { font-size: 12px; }
.kulup-mesaj-ust .ikon-dugme { width: 26px; height: 26px; margin-left: auto; opacity: 0; transition: opacity .15s; border: 0; }
.kulup-mesaj-ust .ikon-dugme .ikon { width: 14px; height: 14px; }
.kulup-mesaj:hover .ikon-dugme, .kulup-mesaj-ust .ikon-dugme:focus-visible { opacity: 1; }
@media (hover: none) { .kulup-mesaj-ust .ikon-dugme { opacity: .6; } }
.kulup-mesaj-metin { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.kulup-mesaj.benim .kulup-mesaj-ust b { color: var(--vurgu); }
.kulup-yaz { display: flex; gap: 8px; border-top: 1px solid var(--cizgi); padding-top: 12px; }
.kulup-yaz { align-items: stretch; }
.kulup-yaz input { margin: 0; flex: 1; min-width: 0; }
.kulup-yaz .dugme { padding: 0 16px; }
.kulup-turnuva { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: var(--yazi); text-decoration: none; }
.kulup-turnuva:hover { background: var(--yuzey-2); }
.kulup-turnuva > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.kulup-turnuva .soluk { font-size: 13px; }
.turnuva-durum { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--yuzey-2); color: var(--yazi-soluk); }
.turnuva-durum.suruyor { background: var(--vurgu-acik); color: var(--vurgu); }
.kulup-uyeler { display: flex; flex-direction: column; max-height: 480px; overflow: auto; }
.kulup-uye { display: flex; align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 1px solid var(--cizgi); flex-wrap: wrap; }
.kulup-uye a { color: var(--yazi); text-decoration: none; }
.rol-etiket { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--yuzey-2); color: var(--yazi-soluk); text-transform: uppercase; letter-spacing: .04em; }
.rol-etiket.sahip { background: color-mix(in srgb, var(--altin) 20%, transparent); color: #9a6c00; }
:root[data-theme='dark'] .rol-etiket.sahip { color: var(--altin); }
.rol-etiket.yonetici { background: var(--vurgu-acik); color: var(--vurgu); }
.uye-islem { margin-left: auto; display: flex; gap: 4px; }
.uye-islem .dugme { padding: 4px 8px; font-size: 12px; }
.kulup-rozet { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--vurgu-acik); color: var(--vurgu); font-weight: 700; font-size: 13px; text-decoration: none; margin-bottom: 8px; align-self: flex-start; width: fit-content; }
.kulup-rozet .ikon { width: 15px; height: 15px; }

/* =========================================================================
   Profil eklemeleri: açılışlar, engelle/şikâyet, engellenenler
   ========================================================================= */
.profil-eylem-kap { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.profil-ek { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 700px) { .profil-eylem-kap { align-items: flex-start; } .profil-ek { justify-content: flex-start; } }
.acilis-izgara { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .acilis-izgara { grid-template-columns: 1fr; } }
.acilis-izgara h3 { margin-top: 0; display: flex; align-items: center; gap: 8px; }
.acilis-oge { padding: 8px 0; }
.acilis-oge + .acilis-oge { border-top: 1px solid var(--cizgi); }
.acilis-oge-ust { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.acilis-oge-ust .soluk { white-space: nowrap; }
.sonuc-cubuk { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--yuzey-2); }
.sonuc-cubuk .g, .renk-nokta.g { background: var(--vurgu); }
.sonuc-cubuk .b, .renk-nokta.b { background: #9aa3b2; }
.sonuc-cubuk .m, .renk-nokta.m { background: var(--uyari); }
.renk-nokta { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 4px 0 10px; }
.engel-satir { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--cizgi); }
.engel-satir a { color: var(--yazi); text-decoration: none; flex: 1; }
.dm-baslik-eylem { margin-left: auto; display: flex; gap: 6px; }
.dm-baslik-eylem .ikon-dugme { width: 34px; height: 34px; }

/* =========================================================================
   Açılır seçim kutusu (secimKutusu.js) — tarayıcının kendi listesi yerine
   ========================================================================= */
.secim-kutusu { position: relative; width: 100%; }
.secim-dugme {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 11px;
  border: 1px solid var(--cizgi); background: var(--yuzey-2); color: var(--yazi); font: inherit; text-align: start;
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.secim-dugme:hover { border-color: var(--cizgi-guclu); }
.secim-kutusu.acik .secim-dugme { outline: none; border-color: var(--vurgu); box-shadow: 0 0 0 4px color-mix(in srgb, var(--vurgu) 18%, transparent); }
.secim-yazi { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secim-dugme > .ikon { width: 17px; height: 17px; color: var(--yazi-soluk); flex: none; transition: transform .18s; }
.secim-kutusu.acik .secim-dugme > .ikon { transform: rotate(180deg); }
.secim-liste {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; margin: 0; padding: 6px; list-style: none;
  max-height: 320px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  background: var(--yuzey); border: 1px solid var(--cizgi-guclu); border-radius: 13px; box-shadow: var(--golge-buyuk);
  display: none; transform-origin: top center;
}
.secim-kutusu.yukari .secim-liste { top: auto; bottom: calc(100% + 6px); transform-origin: bottom center; }
/* Kapalıyken display:none ki gizli liste sayfanın altına boşluk eklemesin */
.secim-kutusu.acik .secim-liste { display: block; animation: secimAc .14s ease both; }
.secim-kutusu.acik.yukari .secim-liste { animation-name: secimAcYukari; }
@keyframes secimAc { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@keyframes secimAcYukari { from { opacity: 0; transform: translateY(4px) scale(.98); } }
.secim-liste:focus { outline: none; }
.secim-liste li {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; cursor: pointer;
  font-size: 14.5px; font-weight: 500; color: var(--yazi); user-select: none;
}
.secim-liste li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secim-liste li .ikon { width: 16px; height: 16px; flex: none; color: var(--vurgu); visibility: hidden; }
.secim-liste li.isaretli { background: var(--yuzey-2); }
.secim-liste li[aria-selected="true"] { color: var(--vurgu); font-weight: 650; background: var(--vurgu-acik); }
.secim-liste li[aria-selected="true"] .ikon { visibility: visible; }
.secim-liste li[aria-disabled="true"] { opacity: .45; cursor: default; }
/* Ülke seçimi: soldaki bayrak düğmenin üstünde */
.secim-kap .secim-dugme { padding-left: 44px; }
.secim-bayrak { z-index: 1; }
.secim-bayrak:empty + .secim-kutusu .secim-dugme { padding-left: 14px; }
.ayar-alt-form .secim-dugme { background: var(--yuzey); }
/* Dil seçimi (alt bilgi ve ayarlar) */
.dil-kutusu { width: auto; min-width: 180px; }
.dil-kutusu .secim-dugme { padding: 8px 12px; font-size: 14px; font-weight: 600; border-radius: 10px; background: var(--yuzey); }
.dil-kutusu .secim-liste { min-width: 200px; }

/* =========================================================================
   Alt menü çubuğu: dar ekranlarda hamburger yerine ekranın altında yüzen
   oval bir simge çubuğu
   ========================================================================= */
@media (max-width: 1380px) {
  .menu-dugme { display: none !important; }
  .menu, .menu.acik {
    position: fixed; z-index: 140; top: auto; right: auto; left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%); opacity: 1; pointer-events: auto;
    flex-direction: row; align-items: center; justify-content: center; gap: 4px; flex: none;
    width: max-content; max-width: calc(100vw - 16px); padding: 6px;
    background: color-mix(in srgb, var(--yuzey) 82%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
    border: 1px solid var(--cizgi-guclu); border-radius: 999px; box-shadow: var(--golge-buyuk);
    animation: altBarGel .45s cubic-bezier(.22, 1, .36, 1) backwards; transition: none;
  }
  .menu a, .menu a:hover, .menu a.aktif {
    flex: 1 1 0; min-width: 0; width: 50px; max-width: 50px; height: 46px; padding: 0;
    display: grid; place-items: center; border-radius: 999px; font-size: 0; transform: none;
    color: var(--yazi-soluk); background: none;
    transition: color .2s, background .2s;
  }
  .menu a > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu a .ikon {
    display: block; width: 23px; height: 23px; margin: 0; opacity: 1;
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
  }
  .menu a:hover { color: var(--yazi); background: var(--yuzey-2); }
  .menu a:hover .ikon { transform: translateY(-2px) scale(1.08); }
  .menu a:active .ikon { transform: scale(.9); }
  .menu a.aktif { color: var(--vurgu-yazi); background: var(--vurgu); box-shadow: 0 4px 14px color-mix(in srgb, var(--vurgu) 40%, transparent); }
  .menu a.aktif .ikon { color: currentColor; transform: scale(1.06); }
  .menu a.aktif::after { display: none; }
  /* Çubuk içeriğin ve alttaki öğelerin üstünü kapatmasın */
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .bildirim { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .cerez-bandi { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  .basarim-bildirimleri { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 420px) {
  .menu, .menu.acik { gap: 0; padding: 5px; }
  .menu a, .menu a:hover, .menu a.aktif { height: 42px; }
  .menu a .ikon { width: 21px; height: 21px; }
}
@keyframes altBarGel { from { opacity: 0; transform: translateX(-50%) translateY(24px); } }
@media (prefers-reduced-motion: reduce) { .menu { animation: none !important; } }

/* Alt çubuk simgeleri: her birinin kendine göre üstüne gelme ve tıklama animasyonu */
@media (max-width: 1380px) {
  .menu a:hover .ikon { transform: none; }
  @media (hover: hover) {
    .menu a[data-yol="ogren"]:hover .ikon { transform: translateY(-3px) rotate(-12deg); }
    .menu a[data-yol="bot"]:hover .ikon { transform: rotate(10deg); }
    .menu a[data-yol="bulmaca"]:hover .ikon { transform: rotate(90deg); }
    .menu a[data-yol="arkadas"]:hover .ikon { transform: scale(1.15); }
    .menu a[data-yol="dereceli"]:hover .ikon { transform: translateY(-3px) scale(1.1); }
    .menu a[data-yol="turnuvalar"]:hover .ikon { transform: rotate(-15deg); transform-origin: 50% 0; }
    .menu a[data-yol="canli"]:hover .ikon { transform: scale(1.15); }
    .menu a[data-yol="kulupler"]:hover .ikon { transform: skewY(-8deg) scaleX(1.08); transform-origin: 20% 50%; }
    .menu a[data-yol="siralama"]:hover .ikon { transform: rotate(40deg); }
  }
  .menu a.tik .ikon { animation: .65s cubic-bezier(.34, 1.4, .64, 1); }
  .menu a.tik[data-yol="ogren"] .ikon { animation-name: tikKep; }
  .menu a.tik[data-yol="bot"] .ikon { animation-name: tikRobot; }
  .menu a.tik[data-yol="bulmaca"] .ikon { animation-name: tikBulmaca; }
  .menu a.tik[data-yol="arkadas"] .ikon { animation-name: tikNabiz; }
  .menu a.tik[data-yol="dereceli"] .ikon { animation-name: tikKupa; }
  .menu a.tik[data-yol="turnuvalar"] .ikon { animation-name: tikMadalya; transform-origin: 50% 0; }
  .menu a.tik[data-yol="canli"] .ikon { animation-name: tikCanli; }
  .menu a.tik[data-yol="kulupler"] .ikon { animation-name: tikBayrak; transform-origin: 20% 50%; }
  .menu a.tik[data-yol="siralama"] .ikon { animation-name: tikDunya; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
}
@keyframes tikKep { 30% { transform: translateY(-12px) rotate(-20deg); } 60% { transform: translateY(0) rotate(8deg); } 80% { transform: rotate(-3deg); } 100% { transform: none; } }
@keyframes tikRobot { 15% { transform: rotate(-16deg); } 35% { transform: rotate(14deg); } 55% { transform: rotate(-9deg); } 75% { transform: rotate(5deg); } 100% { transform: none; } }
@keyframes tikBulmaca { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(.8); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes tikNabiz { 25% { transform: scale(1.3); } 45% { transform: scale(.9); } 65% { transform: scale(1.12); } 100% { transform: none; } }
@keyframes tikKupa { 25% { transform: translateY(-10px) scale(1.15); } 50% { transform: translateY(0) scale(.92, 1.06); } 70% { transform: translateY(-3px); } 100% { transform: none; } }
@keyframes tikMadalya { 20% { transform: rotate(28deg); } 40% { transform: rotate(-22deg); } 60% { transform: rotate(13deg); } 80% { transform: rotate(-6deg); } 100% { transform: none; } }
@keyframes tikCanli { 0%, 100% { transform: none; opacity: 1; } 25% { transform: scale(1.3); opacity: .55; } 50% { transform: scale(.92); opacity: 1; } 75% { transform: scale(1.1); opacity: .75; } }
@keyframes tikBayrak { 20% { transform: skewY(-14deg) scaleX(1.1); } 45% { transform: skewY(10deg) scaleX(.95); } 70% { transform: skewY(-5deg); } 100% { transform: none; } }
@keyframes tikDunya { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .menu a .ikon { animation: none !important; transform: none !important; } }

/* Dar ekranda (alt çubuk açıkken) giriş yapmış kullanıcının başlığında yalnızca mesaj ve
   bildirim kalır; tema, tahta-taş ve arkadaşlar profil menüsüne geçer */
.yalniz-dar { display: none !important; }
.pm-tema-ikon { display: contents; }
@media (max-width: 1380px) {
  .acilir .yalniz-dar { display: flex !important; }
  .ust-sag:has(.profil-cip) #gorunumDugme,
  .ust-sag:has(.profil-cip) #temaDugme,
  .hesap a.arkadas-dugme[href="/arkadaslar"] { display: none !important; }
}

/* Alt çubuk giriş/kayıt sayfalarında hiç çıkmaz; dokunmatik ekranda bir yazı kutusuna
   yazarken (klavye açıkken) aşağı kayıp gizlenir ki formun önünü kapatmasın */
@media (max-width: 1380px) {
  body.alt-bar-yok #menu { display: none; }
  body.alt-bar-yok { padding-bottom: 0; }
  #menu { transition: transform .25s cubic-bezier(.22, 1, .36, 1), opacity .2s; }
}
@media (max-width: 1380px) and (pointer: coarse) {
  body.yaziyor #menu {
    transform: translateX(-50%) translateY(calc(100% + 30px)); opacity: 0; pointer-events: none;
  }
}

/* Öğren: telefonda görev, geri bildirim ve düğmeler tahtanın hemen üstünde/altında;
   uzun ders anlatımı en alta iner ki "şu kareye tıkla" gibi yazılar görünür kalsın */
.mobil-gorev { display: none; }
@media (max-width: 760px) {
  .ders-duzen { gap: 10px; }
  .ders-duzen > .yan-panel { display: contents; }
  .ders-duzen > .ders-listesi { order: 0; }
  .ders-duzen .mobil-gorev:not([hidden]) { order: 1; display: block; margin: 4px 2px 0; font-weight: 700; font-size: 15px; line-height: 1.45; color: var(--vurgu); }
  .ders-duzen .gorev-kutu { order: 2; padding: 10px 14px; font-size: 16px; }
  .ders-duzen .geri-bildirim { order: 3; min-height: 0; font-size: 15px; }
  .ders-duzen .geri-bildirim:empty { display: none; }
  .ders-duzen > .tahta-sutun { order: 4; }
  .ders-duzen #dersDugmeler { order: 5; }
  .ders-duzen #dersDugmeler:empty { display: none; }
  .ders-duzen .ders-metin { order: 6; margin-top: 6px; }
  .ders-duzen .ders-metin .gorev { display: none; }
}

/* Aşağı kaydırınca alt çubuk animasyonla küçülür, yukarı kaydırınca eski boyutuna döner */
@media (max-width: 1380px) {
  #menu { transition: transform .3s cubic-bezier(.22, 1, .36, 1), opacity .25s, padding .35s cubic-bezier(.22, 1, .36, 1), gap .35s, bottom .35s cubic-bezier(.22, 1, .36, 1), background .3s; }
  #menu a { transition: color .2s, background .2s, width .35s cubic-bezier(.22, 1, .36, 1), max-width .35s cubic-bezier(.22, 1, .36, 1), height .35s cubic-bezier(.22, 1, .36, 1); }
  #menu a .ikon { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), width .35s cubic-bezier(.22, 1, .36, 1), height .35s cubic-bezier(.22, 1, .36, 1); }
  /* Küçülmüş hâl: kaybolmaz, ince bir çubuğa dönüşür */
  body.bar-asagi #menu { padding: 3px; gap: 0; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--yuzey) 70%, transparent); }
  body.bar-asagi #menu a { height: 32px; width: 36px; max-width: 36px; }
  body.bar-asagi #menu a .ikon { width: 17px; height: 17px; }
  body.bar-asagi #menu a.aktif { box-shadow: none; }
}

/* Bulmaca (antrenman, günlük, yarış): telefonda görev/süre tahtanın üstünde */
@media (max-width: 900px) {
  .bulmaca-duzen { gap: 10px; }
  .bulmaca-duzen > .yan-panel { display: contents; }
  .bulmaca-duzen #bDurum, .bulmaca-duzen .yaris-ust, .bulmaca-duzen #yHatalar, .bulmaca-duzen #yDurum { order: 1; }
  .bulmaca-duzen > .tahta-sutun { order: 2; }
  .bulmaca-duzen > .yan-panel > * { order: 4; }
  .bulmaca-duzen #bDugmeler { order: 3; }
  .bulmaca-duzen .durum-kutu { min-height: 0; }
}

/* Telefon: sıralama, profil (istatistik, başarım, oyun tablosu) */
.basarim-detay { display: none; }
.siralama-tablo th, .siralama-tablo td, .profil-oyunlar th, .profil-oyunlar td { white-space: nowrap; }
.profil-oyunlar td:nth-child(5) { white-space: normal; min-width: 140px; }
@media (max-width: 600px) {
  .tablo th, .tablo td { padding: 9px 8px; }
  .siralama-tablo th:nth-child(4), .siralama-tablo td:nth-child(4) { display: none; }
  .siralama-tablo td.sira-no { width: 36px; }
  .siralama-tablo .tablo-oyuncu span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
  .profil-oyunlar th:nth-child(5), .profil-oyunlar td:nth-child(5),
  .profil-oyunlar th:nth-child(6), .profil-oyunlar td:nth-child(6) { display: none; }
  .profil-oyunlar .tablo-baglantilar a:last-child { display: none; }
  .profil-oyunlar .rozet { padding: 3px 7px; font-size: 12px; }

  .istatistikler { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .istatistik { padding: 10px 6px; text-align: center; border-radius: 12px; }
  .istatistik b { font-size: 18px; justify-content: center; }
  .istatistik .seri-sayi .ikon { width: 15px; height: 15px; }
  .istatistik span { font-size: 10.5px; line-height: 1.2; display: block; }

  .basarim-kart { padding: 4px 12px 14px; }
  .basarim-kategori { margin: 14px 0 8px; }
  .basarim-izgara { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
  .basarim { flex-direction: column; gap: 4px; padding: 8px 4px; text-align: center; cursor: pointer; }
  .basarim.secili { outline: 2px solid var(--vurgu); outline-offset: -2px; opacity: 1; }
  .basarim .rozet-simge { width: 40px; height: 40px; }
  .basarim-yazi b { font-size: 10.5px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .basarim-yazi span, .basarim-yazi small { display: none; }
  .basarim-detay:not(:empty) { display: block; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--yuzey-2); font-size: 13.5px; }
  .basarim-sayac .ilerleme { width: 70px; }
}
@media (max-width: 600px) {
  .profil-oyunlar th:nth-child(3), .profil-oyunlar td:nth-child(3) { display: none; }
  .profil-oyunlar td:nth-child(2) a { display: inline-block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
  .profil-oyunlar .tablo-baglantilar a:first-child { font-size: 0; margin: 0; padding: 4px; }
  .profil-oyunlar .tablo-baglantilar .ikon { width: 18px; height: 18px; }
}
@media (max-width: 600px) {
  .siralama-tablo .tablo-oyuncu { flex-wrap: nowrap; }
  .profil-oyunlar td:nth-child(2) a { max-width: 88px; }
  .profil-oyunlar th:last-child, .profil-oyunlar td:last-child { padding-left: 2px; padding-right: 4px; }
}

/* Oyun ekranları (bilgisayar, dereceli, arkadaşla): telefonda oyuncu/saat şeritleri tahtanın
   hemen üstünde ve altında; durum ve oyun düğmeleri tahtanın hemen altında, hamle listesi sonra */
@media (max-width: 900px) {
  .oyun-duzen { gap: 12px; }
  .oyun-duzen:not(.bulmaca-duzen) > .yan-panel { gap: 10px; }
  .oyun-duzen:not(.bulmaca-duzen) > .yan-panel > * { order: 3; }
  .oyun-duzen:not(.bulmaca-duzen) > .yan-panel > #oyunBaslik { order: 0; }
  .oyun-duzen:not(.bulmaca-duzen) > .yan-panel > .durum-kutu { order: 1; padding: 10px 14px; }
  .oyun-duzen:not(.bulmaca-duzen) > .yan-panel > .dugme-grup { order: 2; }
  .oyun-duzen:not(.bulmaca-duzen) > .yan-panel > .sohbet-kutu { order: 5; }
  .oyun-duzen .hamle-listesi { max-height: 150px; }
  .oyun-duzen .oyuncu-bar { padding: 6px 2px; }
  .oyun-duzen .saat { font-size: 21px; min-width: 88px; padding: 3px 12px; }
  .oyun-duzen .tas-bilgi { font-size: 14px; }
}
@media (max-width: 420px) {
  .siralama-tablo th, .siralama-tablo td { padding-left: 6px; padding-right: 6px; }
  .siralama-tablo .tablo-oyuncu span { max-width: 100px; }
  .siralama-tablo .tablo-oyuncu { gap: 6px; }
}
@media (max-width: 600px) {
  .belge-tablo th, .belge-tablo td { overflow-wrap: anywhere; padding: 8px 6px; }
}

/* Mesajlar telefonda: yükseklik üst çubuk ve alt menüye göre hesaplanır. Bir sohbet açıkken
   alt menü gizlenir, yazı alanı ekranın altına oturur (mesajlaşma uygulamalarındaki gibi). */
@media (max-width: 820px) {
  body:has(.dm-kap) main { padding-bottom: 0; }
  .dm-kap { height: calc(100dvh - var(--dm-ust, 92px) - 96px - env(safe-area-inset-bottom, 0px)); min-height: 320px; }
  body:has(.dm-kap.konusma-acik) { padding-bottom: 0; }
  body:has(.dm-kap.konusma-acik) .menu { display: none; }
  body:has(.dm-kap) footer.alt { display: none; }
  .dm-kap.konusma-acik { height: calc(100dvh - var(--dm-ust, 92px) - 12px - env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 600px) {
  .dm-kap { --dm-ust: 84px; }
}

/* Kısa telefon ekranlarında (iPhone SE vb.) oyun sırasında alt menü tahtanın son sırasını ve
   oyuncunun kendi çubuğunu kapatıyordu: oyun ekranında gizlenir, tahta tam görünür. */
@media (max-width: 820px) and (max-height: 760px) {
  body:has(.oyun-duzen:not(.bulmaca-duzen)) { padding-bottom: env(safe-area-inset-bottom, 0px); }
  body:has(.oyun-duzen:not(.bulmaca-duzen)) .menu { display: none; }
  body:has(.oyun-duzen:not(.bulmaca-duzen)) main { padding-top: 12px; }
}

/* Oyun sonu penceresi: kazandın / kaybettin / berabere ekranın ortasında */
.sonuc-perde {
  position: fixed; inset: 0; z-index: 1900; display: grid; place-items: center; padding: 20px 16px;
  background: rgba(8, 10, 14, .55); backdrop-filter: blur(3px); animation: sonucPerde .2s ease both;
}
.sonuc-perde.kapaniyor { animation: sonucPerde .18s ease reverse both; }
.sonuc-kart {
  --renk: var(--vurgu);
  position: relative; overflow: hidden; width: min(380px, 100%); text-align: center;
  background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 22px; box-shadow: var(--golge-buyuk);
  padding: 30px 24px 22px; animation: sonucKart .32s cubic-bezier(.22, 1.3, .36, 1) both;
}
.sonuc-perde.kapaniyor .sonuc-kart { animation: sonucKart .18s ease reverse both; }
.sonuc-kart.kazandi { --renk: var(--altin); }
.sonuc-kart.kaybetti { --renk: var(--uyari); }
.sonuc-kart.berabere, .sonuc-kart.notr { --renk: var(--yazi-soluk); }
.sonuc-kart::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 120px; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--renk) 22%, transparent), transparent 70%);
}
.sonuc-kapat { position: absolute; top: 10px; right: 10px; z-index: 1; }
.sonuc-simge {
  position: relative; width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--renk) 16%, var(--yuzey)); color: var(--renk);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--renk) 8%, transparent);
}
.sonuc-simge .ikon { width: 40px; height: 40px; }
.sonuc-kart.kazandi .sonuc-simge { animation: sonucZipla 1.6s ease-in-out .35s infinite; }
.sonuc-kart h2 { position: relative; margin: 0 0 6px; font-family: var(--baslik-tipi); font-size: 30px; color: var(--renk); }
.sonuc-kart.berabere h2, .sonuc-kart.notr h2 { color: var(--yazi); }
.sonuc-alt { position: relative; margin: 0 0 16px; color: var(--yazi-soluk); font-size: 15px; }
.sonuc-puan {
  display: inline-flex; align-items: baseline; gap: 10px; margin: 0 auto 18px; padding: 8px 16px; border-radius: 12px;
  background: var(--yuzey-2); border: 1px solid var(--cizgi); font-variant-numeric: tabular-nums;
}
.sonuc-puan span { font-size: 13px; color: var(--yazi-soluk); }
.sonuc-puan b { font-size: 20px; }
.sonuc-puan em { font-style: normal; font-weight: 800; font-size: 15px; }
.sonuc-puan.arti em { color: var(--vurgu); }
.sonuc-puan.eksi em { color: var(--uyari); }
.sonuc-dugmeler { position: relative; display: grid; gap: 8px; }
.sonuc-dugmeler .dugme { width: 100%; justify-content: center; }
.sonuc-konfeti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sonuc-konfeti i {
  position: absolute; top: -12px; left: calc(var(--i) * 5.6% + 2%); width: 7px; height: 12px; border-radius: 2px;
  background: hsl(calc(var(--i) * 47deg) 80% 60%); opacity: 0;
  animation: sonucKonfeti 1.9s cubic-bezier(.3, .6, .5, 1) calc(var(--i) * 45ms + .15s) both;
}
@keyframes sonucPerde { from { opacity: 0; } to { opacity: 1; } }
@keyframes sonucKart { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes sonucZipla { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-4deg); } }
@keyframes sonucKonfeti {
  0% { opacity: 1; transform: translateY(0) rotate(0); }
  100% { opacity: 0; transform: translateY(330px) rotate(calc(var(--i) * 70deg + 200deg)); }
}
@media (prefers-reduced-motion: reduce) {
  .sonuc-perde, .sonuc-kart, .sonuc-simge, .sonuc-konfeti i { animation: none !important; }
  .sonuc-konfeti { display: none; }
}

/* Site duyurusu (Yönetim uygulamasından): başlığın altında ince bant */
.duyuru-bant { --duyuru-renk: var(--vurgu); background: color-mix(in srgb, var(--duyuru-renk) 12%, var(--yuzey)); border-bottom: 1px solid color-mix(in srgb, var(--duyuru-renk) 30%, var(--cizgi)); animation: yukariGel .3s cubic-bezier(.22, 1, .36, 1) both; }
.duyuru-bant.uyari { --duyuru-renk: var(--altin); }
.duyuru-bant.basari { --duyuru-renk: var(--vurgu); }
.duyuru-bant.bilgi { --duyuru-renk: #3b82f6; }
.duyuru-ic { max-width: 1440px; margin: 0 auto; padding: 9px 24px; display: flex; align-items: center; gap: 12px; }
.duyuru-simge { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; color: var(--duyuru-renk); background: color-mix(in srgb, var(--duyuru-renk) 16%, transparent); }
.duyuru-simge .ikon { width: 16px; height: 16px; }
.duyuru-ic p { margin: 0; flex: 1; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--yazi); }
.duyuru-ic p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--duyuru-renk) 60%, transparent); }
.duyuru-kapat { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--yazi-soluk); cursor: pointer; flex: none; }
.duyuru-kapat:hover { background: color-mix(in srgb, var(--duyuru-renk) 14%, transparent); color: var(--yazi); }
.duyuru-kapat .ikon { width: 16px; height: 16px; }
@media (max-width: 640px) { .duyuru-ic { padding: 8px 16px; gap: 10px; } .duyuru-ic p { font-size: 13px; } }

/* Askıya alınmış hesap: girişteki ayrıntı satırları */
.hesap-kart .hata-yazi { flex-wrap: wrap; }
.ban-ayrinti { flex-basis: 100%; display: grid; gap: 2px; padding-left: 22px; font-weight: 500; color: var(--yazi-soluk); font-size: 13px; }
.ban-ayrinti b { font-weight: 600; color: var(--yazi); }

/* --- "Oyna" açılır menüsü (geniş ekran). Dar ekranda grup kaybolur, bağlantılar alt çubukta tek tek durur --- */
.menu-oyna { display: none; }
@media (min-width: 1381px) {
  .menu-grup { position: relative; display: flex; align-items: center; }
  .menu-oyna {
    display: inline-flex; align-items: center; gap: 5px; padding: 9px 9px; border: 0; background: none; cursor: pointer;
    color: var(--yazi-soluk); font: inherit; font-weight: 600; font-size: 14px; white-space: nowrap;
    transform-origin: center bottom; transition: color .25s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1);
  }
  .menu-oyna .oyna-ok { width: 15px; height: 15px; opacity: .7; transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
  .menu-oyna:hover, .menu-grup:hover .menu-oyna, .menu-grup.acik .menu-oyna { color: var(--yazi); }
  .menu-oyna.aktif { color: var(--yazi); transform: scale(1.1); }
  .menu-grup:hover:not(.kapali) .oyna-ok, .menu-grup.acik .oyna-ok { transform: rotate(180deg); }

  .oyna-panel {
    position: absolute; z-index: 60; top: calc(100% + 12px); inset-inline-start: -10px; width: 310px;
    display: grid; gap: 2px; padding: 8px;
    background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 14px; box-shadow: var(--golge-buyuk);
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top left;
    transition: opacity .18s ease, transform .22s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .22s;
  }
  /* Düğmeyle panel arasındaki boşlukta fare kayınca menü kapanmasın */
  .oyna-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .menu-grup:hover:not(.kapali) .oyna-panel, .menu-grup.acik .oyna-panel {
    opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
  }
  .menu .oyna-panel a, .menu .oyna-panel a:hover, .menu .oyna-panel a.aktif {
    display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px;
    white-space: normal; transform: none; color: var(--yazi);
    transition: background .15s, opacity .25s ease, translate .3s cubic-bezier(.22, 1, .36, 1);
  }
  .menu .oyna-panel a:hover { background: var(--yuzey-2); }
  .menu .oyna-panel a.aktif { background: var(--vurgu-acik); }
  .menu .oyna-panel a .ikon {
    display: block; flex: none; box-sizing: content-box; width: 20px; height: 20px; padding: 9px; opacity: 1;
    border-radius: 10px; background: var(--yuzey-2); color: var(--vurgu); transition: background .15s, transform .3s cubic-bezier(.34, 1.56, .64, 1);
  }
  .menu .oyna-panel a:hover .ikon { background: var(--vurgu); color: var(--vurgu-yazi); transform: scale(1.06) rotate(-4deg); }
  .menu .oyna-panel a.aktif .ikon { background: var(--vurgu); color: var(--vurgu-yazi); }
  .oyna-panel a > span { display: grid; gap: 2px; min-width: 0; }
  .oyna-panel a b { font-size: 14.5px; font-weight: 650; }
  .oyna-panel a small { font-size: 12.5px; font-weight: 500; color: var(--yazi-soluk); }
  /* Açılınca maddeler sırayla yukarı kayarak gelir */
  .oyna-panel a { opacity: 0; translate: 0 4px; }
  .menu-grup:hover:not(.kapali) .oyna-panel a, .menu-grup.acik .oyna-panel a { opacity: 1; translate: 0 0; }
  .menu-grup .oyna-panel a:nth-child(2) { transition-delay: 0s, .03s, .03s; }
  .menu-grup .oyna-panel a:nth-child(3) { transition-delay: 0s, .06s, .06s; }
  .menu-grup .oyna-panel a:nth-child(4) { transition-delay: 0s, .09s, .09s; }
}
@media (max-width: 1380px) {
  .menu-grup, .oyna-panel { display: contents; }
}
@media (prefers-reduced-motion: reduce) {
  .oyna-panel, .oyna-panel a, .menu-oyna, .oyna-ok { transition: none !important; }
}
