/* Eşya dönüşümü ekranı (demirci ocağı) */
.sahne.ozel { width: min(860px, calc(100vw - 12px)); min-width: 0; }
.sahne.ozel .sahne-kaydir { display: none; }
.sahne-ozel:empty { display: none; }
.sahne.ozel .sahne-ozel { max-height: calc(100svh - 190px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--altin) rgba(0, 0, 0, .3); }

.don { --renk: #ff8a7d; display: flex; flex-direction: column; gap: 10px; }
.don[data-sinif="ninja"] { --renk: #6fe0ab; }
.don[data-sinif="sura"] { --renk: #cfa0ff; }
.don[data-sinif="saman"] { --renk: #ffc46b; }
.don-fon { width: 100%; height: clamp(96px, 20svh, 170px); object-fit: cover; object-position: 72% 55%; border: 1px solid rgba(214, 176, 106, .55); border-radius: 6px; }

.don-siniflar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.don-siniflar button { --r: #ff8a7d; padding: 9px 2px; border: 1px solid rgba(214, 176, 106, .25); border-bottom: 3px solid var(--r); border-radius: 4px; background: rgba(6, 9, 18, .65); color: var(--r); font: 600 1rem var(--baslik); cursor: pointer; transition: filter .2s, background .2s; }
.don-siniflar .ninja { --r: #6fe0ab; }
.don-siniflar .sura { --r: #cfa0ff; }
.don-siniflar .saman { --r: #ffc46b; }
.don-siniflar button:hover { filter: brightness(1.2); }
.don-siniflar button[aria-pressed="true"] { background: var(--r); color: #14070c; box-shadow: 0 0 18px var(--r); }

.don-liste { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.don-liste li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); align-items: center; gap: 8px; padding: 20px 14px 14px; border: 1px solid rgba(214, 176, 106, .32); border-radius: 8px; background: radial-gradient(ellipse at 82% 50%, rgba(255, 190, 80, .16), transparent 55%), linear-gradient(90deg, rgba(30, 10, 22, .88), rgba(44, 16, 34, .9)); animation: don-gir .4s ease-out backwards; }
.don-liste li:nth-child(2) { animation-delay: .08s; }
.don-liste li:nth-child(3) { animation-delay: .16s; }
@keyframes don-gir { from { opacity: 0; transform: translateY(12px); } }
.don-tur { position: absolute; left: 50%; top: 0; translate: -50% -1px; padding: 0 14px 2px; border-radius: 0 0 8px 8px; background: var(--renk); color: #14070c; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.don-esya { display: flex; align-items: center; gap: 12px; min-width: 0; text-align: left; }
.don-esya.hedef { flex-direction: row; }
/* İkon kutusu tablodaki haliyle, birebir boyutta: büyütme ve renk filtresi yok */
.don-yuva { flex: none; display: block; width: 52px; height: 52px; }
.don-yuva img { display: block; width: 52px; height: 52px; clip-path: polygon(13% 0, 87% 0, 100% 13%, 100% 87%, 87% 100%, 13% 100%, 0 87%, 0 13%); }
.don-ad { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font: 600 1.02rem/1.3 var(--baslik); color: #e6dfd6; overflow-wrap: anywhere; }
.don-ad b { padding: 0 8px; border: 1px solid rgba(214, 176, 106, .45); border-radius: 8px; color: #cfc6bb; font: 700 .72rem var(--govde); }
.hedef .don-yuva { filter: drop-shadow(0 0 7px rgba(255, 200, 90, .75)); }
.hedef .don-ad { color: #ffe3a0; font-size: 1.12rem; }
.hedef .don-ad b { border-color: #ffe08a; color: #ffe08a; }
/* Ardışık yanan üç ok */
.don-ok { display: flex; justify-content: center; gap: 2px; }
.don-ok i { width: 13px; height: 13px; border-top: 3px solid #ffd77a; border-right: 3px solid #ffd77a; rotate: 45deg; animation: don-ak 1.2s linear infinite; }
.don-ok i:nth-child(2) { animation-delay: .2s; }
.don-ok i:nth-child(3) { animation-delay: .4s; }
@keyframes don-ak { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }

@media (max-width: 600px) {
  .sahne.ozel .sahne-kutu { border-width: 10px; border-image-width: 10px; padding: 0; }
  .sahne.ozel .sahne-ozel { max-height: calc(100svh - 170px); }
  .don-fon { height: 88px; }
  .don-siniflar button { font-size: .82rem; }
  .don-liste li { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 4px; padding: 20px 6px 10px; }
  .don-esya, .don-esya.hedef { flex-direction: column; gap: 10px; text-align: center; align-self: start; }
  .don-ad, .hedef .don-ad { align-items: center; font-size: .86rem; }
  .don-ok { align-self: start; margin-top: 26px; }
  .don-ok i { width: 9px; height: 9px; border-width: 2px 2px 0 0; }
}

/* Görselin boş sol yanında seçili sınıf */
.don-ust { position: relative; }
.don-fon { display: block; }
.don-ust p { position: absolute; left: 22px; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; text-align: left; text-shadow: 0 2px 10px #000; }
.don-ust strong { color: var(--renk); font: 700 clamp(1.4rem, 3.4vw, 2.3rem)/1.15 var(--baslik); }
.don-ust span { color: #d8cfc4; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 600px) { .don-ust p { left: 12px; } .don-ust span { font-size: .68rem; } }

/* Kısa telefon ekranı: iki satır da kaydırmadan görünsün */
@media (max-width: 600px) and (max-height: 640px) { .don-ust { display: none; } .don-liste li { padding-top: 18px; padding-bottom: 6px; } }

.don-liste li { padding-bottom: 10px; }
@media (max-width: 600px) { .don-yuva, .don-yuva img { width: 46px; height: 46px; } .don-esya, .don-esya.hedef { gap: 6px; } .don-ok { margin-top: 16px; } }
@media (min-width: 601px) and (max-height: 720px) { .don { gap: 8px; } .don-fon { height: 84px; } .don-ust strong { font-size: 1.5rem; } .don-siniflar button { padding-block: 6px; } .don-liste { gap: 7px; } .don-liste li { padding-top: 18px; padding-bottom: 6px; } }

/* Oyunun orijinal ikonu: kendi boyutunda, koyu yuvanın içinde */
.don-yuva.ham { display: grid; place-items: center; width: 52px; height: 74px; border: 1px solid rgba(214, 176, 106, .45); border-radius: 8px; background: radial-gradient(circle, #4a3646, #120a12 75%); box-shadow: inset 0 0 10px rgba(0, 0, 0, .7); }
.hedef .don-yuva.ham { border-color: #ffe08a; background: radial-gradient(circle, #6b4a1c, #150d08 76%); }
.don-yuva.ham img { width: 32px; height: auto; clip-path: none; }
@media (max-width: 600px) { .don-yuva.ham { width: 46px; height: 70px; } .don-yuva.ham img { width: 32px; height: auto; } }
@media (min-width: 601px) and (max-height: 720px) { .don-fon { height: 56px; } .don-ust span { display: none; } .don-yuva.ham { height: 60px; width: 44px; } .don-yuva.ham img { width: 28px; height: auto; } }
