/* =====================================================================================================
   EVCİL HAYVANLAR (2026-12-01) — Evcil sayfası, portreler, sol sütun satırı, sağ sütun satırı · js/evcil.js
   Dil: Çiftlik / İşlemehane ile aynı (sıcak kömür zemin, koyu kahve paneller, 1 px kısık kenar, altın vurgu, küçük yazı).
   Sayfa üç sütun: solda seçili evcilin kartı (portre, seviye, buff'lar, yetenekler, düğmeler), ortada Yanında + Ahır,
   sağda Kuluçka + "Nerede düşer". Kaymaz; 1280 × 720'de sığar, 1920'de büyür. Portreler soluk alır, göz kırpar, kulak oynatır;
   "Efektleri azalt" ve prefers-reduced-motion durdurur. Nadirlik: Sıradan / Seçkin sade, Nadir mavi, Destansı turuncu-altın.
   ===================================================================================================== */
.app.desk .evc-win > .sh-body:has(> .evc) { display: flex; padding: 0 18px 14px; overflow: hidden; container: evc / inline-size; }
.app.desk .evc-win > .sh-head { padding-top: 12px; padding-bottom: 10px; margin-bottom: 8px; }
.evc { --ed: #3a3229; --void: #0b0a0a; --ink: #f4ecd9; --sub: #a0968f; --dim: #7f766e; --ok: #8fdc7a; --gold: #e7c26a;
  --panel: linear-gradient(180deg, rgba(36, 31, 26, .96), rgba(20, 17, 15, .97));
  flex: 1 1 auto; width: 100%; min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@container evc (min-width: 1000px) { .evc { zoom: 1.12; } }
@container evc (min-width: 1200px) { .evc { zoom: 1.25; } }
@container evc (min-width: 1340px) { .evc { zoom: 1.4; } }
.evc-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.evc-box { position: relative; min-width: 0; min-height: 0; border-radius: 12px; background: var(--panel); padding: 11px 12px; display: flex; flex-direction: column; gap: 7px;
  box-shadow: 0 0 0 1px var(--void), inset 0 0 0 1px var(--ed), inset 0 1px 0 rgba(255, 236, 200, .06), 0 14px 26px -18px #000; }
.evc-h { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.evc-h > b { font: 700 10px var(--fs); letter-spacing: .16em; text-transform: uppercase; color: #d9bd7e; white-space: nowrap; }
.evc-h > small { flex: 1; min-width: 0; text-align: right; font: 500 10.5px var(--fb); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evc-bar { display: block; height: 4px; border-radius: 2px; overflow: hidden; background: #0e0c0b; box-shadow: inset 0 0 0 1px #2a2420; }
.evc-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #8a6a2c, #e7c26a, #fff0c0); box-shadow: 0 0 8px rgba(231, 194, 106, .45); transition: width .6s var(--ease); }
.evc .ck-btn.bad:hover:not(:disabled) { color: #ee8a6e; }
.evc-hdi { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #e7c26a;
  background: radial-gradient(circle at 50% 40%, #3a2f22, #17130f 75%); box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px #5a4a30; }
.evc-hdi .ic { width: 20px; height: 20px; animation: evPaw 4s ease-in-out infinite; }
@keyframes evPaw { 50% { transform: rotate(-10deg) translateY(-1px); } }

/* ---------- portre ---------- */
.evcp { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--ec) 34%, var(--eb)), var(--eb) 62%, #0f0d0b);
  box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1.5px #4a4036, inset 0 -8px 14px rgba(0, 0, 0, .45); }
.evcp svg { width: 92%; height: 92%; margin-top: 10%; overflow: visible; }
.evcp.evcq1 { box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1.5px #4f8a46, inset 0 -8px 14px rgba(0, 0, 0, .45); }
.evcp.evcq2 { box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 2px #4ea4f0, 0 0 10px -2px rgba(78, 164, 240, .55), inset 0 -8px 14px rgba(0, 0, 0, .45); }
.evcp.evcq3 { box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 2px #f0a040, 0 0 14px -2px rgba(240, 140, 40, .7), inset 0 -8px 14px rgba(0, 0, 0, .45); }
.evcp.evcp-lg::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; box-shadow: inset 0 0 0 2px #ffd36a, 0 0 18px rgba(255, 211, 106, .7); animation: evLg 3s ease-in-out infinite; pointer-events: none; }
@keyframes evLg { 50% { opacity: .55; } }
.evcp .h { transform-box: fill-box; transform-origin: 50% 100%; animation: evBr 4.2s ease-in-out infinite; }
.evcp .e { transform-box: fill-box; transform-origin: 50% 50%; animation: evBl 5.6s infinite; }
.evcp .ea { transform-box: fill-box; transform-origin: 50% 100%; animation: evEa 7s ease-in-out infinite; }
@keyframes evBr { 50% { transform: translateY(1.2px) scale(1.012, .99); } }
@keyframes evBl { 0%, 46%, 50%, 100% { transform: none; } 48% { transform: scaleY(.1); } }
@keyframes evEa { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-4deg); } 94% { transform: rotate(3deg); } }
.evcp-xl { width: 112px; height: 112px; }
.evcp-s { width: 40px; height: 40px; }
.evcp-t { width: 46px; height: 46px; }
.evcp-r { width: 24px; height: 24px; box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px #4a4036; }
.evcp-r svg .h, .evcp-r svg .e, .evcp-r svg .ea, .evcp-t svg .ea { animation: none; }
.evcp-ss { width: 34px; height: 34px; border-radius: 8px; }
.evcp-empty { color: #6e6458; } .evcp-empty .ic { width: 40px; height: 40px; }
.reduce-fx .evcp *, .reduce-fx .evcp::after, .reduce-fx .evc-hdi .ic { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .evcp *, .evcp::after, .evc-hdi .ic { animation: none !important; } }

/* ---------- seçili evcil kartı ---------- */
.evc-main { gap: 8px; }
.evc-main.yan { box-shadow: 0 0 0 1px var(--void), inset 0 0 0 1px #5a4a30, inset 0 1px 0 rgba(255, 236, 200, .08), 0 14px 26px -18px #000; }
.evc-main.up .evcp-xl { animation: evUp 1.2s var(--ease); }
@keyframes evUp { 30% { transform: scale(1.08); filter: brightness(1.35) drop-shadow(0 0 12px #ffd36a); } }
.evc-top { display: flex; gap: 14px; align-items: center; min-width: 0; }
.evc-id { flex: 1; min-width: 0; display: grid; gap: 5px; }
.evc-nmr { display: flex; align-items: center; gap: 6px; min-width: 0; }
.evc-nm { font: 700 20px/1.05 var(--fs); color: #f3d68e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evc-pen { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 6px; color: #8a7a5c; transition: color .15s, background .15s; }
.evc-pen:hover { color: #f3d68e; background: rgba(231, 194, 106, .1); } .evc-pen .ic { width: 12px; height: 12px; }
.evc-ren { flex: 1; min-width: 0; height: 28px; padding: 0 9px; border-radius: 7px; font: 700 15px var(--fs); color: #f3d68e; background: #0f0d0b; border: 0;
  box-shadow: inset 0 0 0 1px #8a6a2c, 0 0 0 3px rgba(231, 194, 106, .12); outline: none; }
.evc-id > small { font: 500 11.5px var(--fb); color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evc-id > small i { font-style: normal; font-weight: 700; }
.evc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.evc-tags span { display: inline-flex; align-items: center; gap: 4px; height: 19px; padding: 0 7px; border-radius: 10px; font: 600 10px var(--fb); color: #c9bfb2; background: #171411; box-shadow: inset 0 0 0 1px #2e2822; white-space: nowrap; }
.evc-tags .ic { width: 10px; height: 10px; color: #8a7a5c; }
.evc-tags .on { color: #1c1408; background: linear-gradient(180deg, #d6bd78, #a98c4d); box-shadow: none; } .evc-tags .on .ic { color: #1c1408; }
.evc-tags .off { color: var(--dim); }
.evc-lv { display: flex; align-items: center; gap: 8px; }
.evc-lvb { display: grid; justify-items: center; flex: none; width: 34px; padding: 2px 0; border-radius: 7px; background: #120f0d; box-shadow: inset 0 0 0 1px #3a3229; }
.evc-lvb small { font: 700 7px var(--fn); letter-spacing: .12em; color: #8a7a5c; } .evc-lvb b { font: 700 15px/1 var(--fn); color: #f3e6c4; }
.evc-lvx { flex: 1; min-width: 0; display: grid; gap: 3px; } .evc-lvx em { font: 600 10px var(--fn); font-style: normal; color: var(--sub); }
.evc-d { margin: 0; font: italic 400 11px/1.3 var(--fb); color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.evc-sts { display: grid; gap: 4px; }
.evc-st { display: flex; align-items: center; gap: 7px; height: 22px; padding: 0 8px; border-radius: 7px; font: 500 11.5px var(--fb); color: #d9cfc0; background: rgba(0, 0, 0, .2); box-shadow: inset 0 0 0 1px #2a2420; }
.evc-st > .ic { width: 12px; height: 12px; color: var(--ok); flex: none; } .evc-st > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evc-st small { color: var(--dim); font-size: 10px; }
.evc-st > b { font: 700 12px var(--fn); color: var(--ok); white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.evc-st.kilit { opacity: .55; } .evc-st.kilit > .ic, .evc-st.kilit > b { color: var(--dim); } .evc-st.kilit b .ic { width: 10px; height: 10px; }
.evc-abs { display: grid; gap: 3px; min-height: 0; }
.evc-ab { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 26px; padding: 2px 6px 2px 2px; border-radius: 7px; cursor: help; }
.evc-ab > i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #141210; box-shadow: inset 0 0 0 1px #3a3229; color: #7f766e; }
.evc-ab > i .ic { width: 11px; height: 11px; } .evc-ab > i em { font: 700 9px var(--fn); font-style: normal; }
.evc-ab > span { display: grid; min-width: 0; } .evc-ab b { font: 700 11.5px/1.15 var(--fb); color: #8f857c; }
.evc-ab small { font: 400 10px/1.2 var(--fb); color: #6e655d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evc-ab > s { text-decoration: none; font: 700 9.5px var(--fn); color: #6e655d; }
.evc-ab.on > i { color: #1c1408; background: linear-gradient(180deg, #d6bd78, #a98c4d); box-shadow: 0 0 8px -2px rgba(231, 194, 106, .6); }
.evc-ab.on b { color: #f0e2bd; } .evc-ab.on small { color: var(--sub); } .evc-ab.on > s { color: #c9a24f; }
.evc-ab.nx { background: rgba(231, 194, 106, .05); box-shadow: inset 0 0 0 1px #3a3229; } .evc-ab.nx > i { color: #e7c26a; box-shadow: inset 0 0 0 1px #8a6a2c; }
.evc-nt { display: flex; gap: 7px; align-items: flex-start; margin-top: auto; padding: 7px 9px; border-radius: 8px; font: 400 10.5px/1.4 var(--fb); color: var(--sub); background: rgba(231, 194, 106, .04); box-shadow: inset 0 0 0 1px #2e2822; }
.evc-nt > .ic { width: 11px; height: 11px; flex: none; margin-top: 2px; color: #c9a24f; } .evc-nt b { color: #d9bd7e; font-weight: 700; }
.evc-act { display: flex; gap: 6px; flex-wrap: wrap; }
.evc-none { align-items: center; justify-content: center; text-align: center; gap: 10px; }
.evc-none > b { font: 700 16px var(--fs); color: #d9bd7e; } .evc-none p { margin: 0; max-width: 340px; font: 400 12px/1.45 var(--fb); color: var(--sub); } .evc-none p b { color: #e7c26a; }

/* ---------- Yanında ---------- */
.evc-slot { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 6px 9px; border-radius: 10px; text-align: left; color: inherit; background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px #2e2822; transition: box-shadow .15s, background .15s; }
button.evc-slot:hover { background: rgba(231, 194, 106, .05); } .evc-slot.sel { box-shadow: inset 0 0 0 1px #8a6a2c, 0 0 0 3px rgba(231, 194, 106, .08); }
.evc-slot > span:last-child { flex: 1; min-width: 0; display: grid; gap: 3px; }
.evc-slot b { font: 700 12.5px var(--fb); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .evc-slot b small { font: 600 10px var(--fn); color: #c9a24f; }
.evc-slot small { font: 400 10.5px var(--fb); color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evc-slot .evcp-e { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #5a5048; box-shadow: inset 0 0 0 1px #2e2822; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .02) 0 4px, transparent 4px 8px); }
.evc-slot .evcp-e .ic { width: 15px; height: 15px; }
.evc-slot.em b, .evc-slot.kilit b { color: #8f857c; } .evc-slot.kilit { opacity: .7; }

/* ---------- Ahır ---------- */
.evc-ahir { flex: 1; }
.evc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; align-content: start; }
.evc-tl { position: relative; display: grid; justify-items: center; gap: 2px; padding: 5px 2px 4px; border-radius: 9px; color: inherit; background: rgba(0, 0, 0, .2); box-shadow: inset 0 0 0 1px #2a2420; transition: background .15s, box-shadow .15s, transform .12s var(--spring); }
.evc-tl:not(.e):hover { background: rgba(231, 194, 106, .06); } .evc-tl:not(.e):active { transform: scale(.96); }
.evc-tl.sel { box-shadow: inset 0 0 0 1px #c9a24f, 0 0 0 3px rgba(231, 194, 106, .1); background: rgba(231, 194, 106, .06); }
.evc-tl.e { min-height: 70px; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .015) 0 4px, transparent 4px 8px); box-shadow: inset 0 0 0 1px #221d19; }
.evc-tl > b { position: absolute; top: 3px; left: 4px; min-width: 16px; height: 14px; padding: 0 3px; display: grid; place-items: center; border-radius: 4px; font: 700 9px/1 var(--fn); color: #d9c48e; background: #141210; box-shadow: inset 0 0 0 1px #3a3328; }
.evc-tl > small { max-width: 100%; font: 600 10px var(--fb); color: #c9bfb2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 3px; }
.evc-yd { position: absolute; top: 3px; right: 4px; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; color: #1c1408; background: linear-gradient(180deg, #d6bd78, #a98c4d); }
.evc-yd .ic { width: 9px; height: 9px; }
.evc-tl.new { animation: evNew 1.4s var(--spring); }
@keyframes evNew { 0% { transform: scale(.6); opacity: 0; } 40% { transform: scale(1.08); opacity: 1; filter: brightness(1.4); } }

/* ---------- Kuluçka ---------- */
.evc-kul { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 9px; border-radius: 10px; background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px #2e2822; }
.evc-kul > span:last-child { flex: 1; min-width: 0; display: grid; gap: 3px; }
.evc-kul b { font: 700 12.5px var(--fb); color: var(--ink); } .evc-kul b small { font: 700 10px var(--fb); }
.evc-kul small { font: 400 10.5px var(--fb); color: var(--sub); }
.evc-egg { position: relative; width: 46px; height: 46px; flex: none; display: grid; place-items: center; }
.evc-egg .evc-if { width: 36px; height: 36px; }
.evc-egg svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.evc-egg .bk { fill: none; stroke: #241f1a; stroke-width: 2.4; }
.evc-egg .fg { fill: none; stroke: #e7c26a; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: calc(113.1 * (1 - var(--p, 0))); transition: stroke-dashoffset .4s linear; filter: drop-shadow(0 0 3px rgba(231, 194, 106, .6)); }
.evc-kul.on .evc-if { animation: evRock 2.6s ease-in-out infinite; }
@keyframes evRock { 0%, 70%, 100% { transform: none; } 76% { transform: rotate(-8deg); } 84% { transform: rotate(7deg); } 92% { transform: rotate(-3deg); } }
.evc-kul.rdy { box-shadow: inset 0 0 0 1px #8a6a2c, 0 0 14px -6px rgba(231, 194, 106, .7); }
.evc-egg.e { border-radius: 50%; color: #5a5048; box-shadow: inset 0 0 0 1px #2e2822; } .evc-egg.e .ic { width: 18px; height: 18px; }
.evc-er { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.evc-er .evc-if { width: 32px; height: 32px; flex: none; }
.evc-er > span { flex: 1; min-width: 0; display: grid; } .evc-er b { font: 700 11.5px var(--fb); color: #e6dfd7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .evc-er small { font: 600 10px var(--fb); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evc-er .ck-btn { height: 24px; padding: 0 8px; font-size: 10.5px; }
.evc-more { font: 500 10.5px var(--fb); color: var(--dim); }

/* ---------- Nerede düşer ---------- */
.evc-rh { flex: 1; overflow: hidden; }
.evc-rg { display: grid; gap: 2px; min-height: 0; }
.evc-rgh { display: flex; align-items: center; gap: 5px; margin: 3px 0 1px; font: 700 9.5px var(--fb); color: #a08a5c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evc-rgh .ic { width: 10px; height: 10px; flex: none; }
.evc-rr { display: flex; align-items: center; gap: 7px; min-height: 25px; }
.evc-rr > span:not(.evcp) { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; }
.evc-rr b { font: 700 11px var(--fb); color: #e6dfd7; white-space: nowrap; }
.evc-rr small { font: 400 10px var(--fb); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evc-rr em { font: 600 9.5px var(--fn); font-style: normal; color: #8a7a5c; white-space: nowrap; }

/* ---------- 720 px yükseklik: sıkı ---------- */
@media (max-height: 760px) {
  .evc-box { padding: 9px 10px; gap: 5px; } .evc, .evc-col { gap: 10px; }
  .evcp-xl { width: 92px; height: 92px; } .evc-nm { font-size: 18px; }
  .evc-ab { min-height: 23px; } .evc-st { height: 20px; } .evc-d { -webkit-line-clamp: 1; }
  .evc-slot { min-height: 46px; padding: 4px 8px; } .evc-slot .evcp-s, .evc-slot .evcp-e { width: 36px; height: 36px; }
  .evc-tl.e { min-height: 62px; } .evcp-t { width: 40px; height: 40px; }
  .evc-kul { min-height: 50px; } .evc-rr { min-height: 22px; } .evcp-r { width: 21px; height: 21px; }
}

/* ---------- sol sütun satırı ---------- */
.pcl-evc b:empty { display: none; }
.pcl-evc .pcl-ic .ic { font-size: 12px; }

/* ---------- sağ sütun satırı ---------- */
button.ss-pet { width: 100%; padding: 0; border: 0; text-align: left; color: inherit; background: none; cursor: pointer; border-radius: 9px; transition: background .15s; }
button.ss-pet:hover { background: rgba(231, 194, 106, .05); }
.ss-pet .pt .evcp { width: 34px; height: 34px; }
.ss-pet.on .pt { background: none; box-shadow: none; overflow: visible; }

/* ---------- Meslekler sayfası: evcil katkısı ---------- */
.app.desk .mk-win .vbs-r .vb-pet { flex: none; display: inline-flex; align-items: center; gap: 2px; margin-left: 2px; padding: 0 4px; height: 14px; border-radius: 7px; font: 700 9px var(--fn); font-style: normal; color: #e7c26a; background: rgba(231, 194, 106, .1); }
.app.desk .mk-win .vbs-r .vb-pet .ic { width: 9px; height: 9px; color: #e7c26a; }
