/* =========================================================
   GİZLİ.CSS — kalplerden açılan gizli sayfa (/gizli/)
   Kasa (8 haneli şifre) · Atatürk sahnesi (Gençliğe Hitabe + piksel portre + siren) · ERENCRAFT madenci modu
   Piksel kuralları: yuvarlak köşe, döndürme, kesirli ölçek, bulanıklık yok; konumlar tam piksel.
   ========================================================= */
body.sayfa-gizli { margin: 0; min-height: 100vh; background: #07090f; color: var(--krem); overflow-x: hidden; }
.gz-geri {
  position: fixed; z-index: 60; top: 14px; left: 14px; padding: 8px 10px;
  font: 8px/8px var(--f-piksel); color: var(--murekkep); text-decoration: none; background: var(--krem);
  box-shadow: 0 0 0 3px var(--murekkep), inset -3px -3px 0 var(--krem-2), 5px 5px 0 3px rgba(0, 0, 0, .4);
}
.gz-geri:hover, .gz-geri:focus-visible { background: var(--gold); outline: none; }
body[data-sahne="maden"] .gz-geri { display: none; }   /* oyunda sol üstte yalnızca "Kasaya dön" */
.gz-sahne { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 72px 16px 40px; }
.gz-sahne[hidden] { display: none; }
.gz-yildizlar { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.gz-yildizlar i { position: absolute; width: 4px; height: 4px; background: #c9d4ea; }
.gz-yildizlar i.k { animation: gzKirp 2.4s steps(1) infinite; }
@keyframes gzKirp { 50% { opacity: .15; } }
.gz-dug {
  padding: 12px 14px; border: 0; cursor: pointer;
  font: 8px/8px var(--f-piksel); letter-spacing: 1px; color: var(--murekkep); background: var(--krem);
  box-shadow: 0 0 0 3px var(--murekkep), inset -3px -3px 0 var(--krem-2), 5px 5px 0 3px rgba(0, 0, 0, .45);
}
.gz-dug:hover, .gz-dug:focus-visible { background: var(--gold); outline: none; }
.gz-dug:active { transform: translate(3px, 3px); box-shadow: 0 0 0 3px var(--murekkep); }
.gz-gecis { position: fixed; inset: 0; z-index: 100; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; }

/* ---------- KASA ---------- */
.kasa-kapi {
  position: relative; z-index: 1; width: min(420px, 100%); padding: 28px 28px 24px; text-align: center;
  background: #6e7786;
  box-shadow: inset 6px 6px 0 #9aa3b2, inset -6px -6px 0 #4a5260, 0 0 0 4px var(--murekkep), 12px 12px 0 4px rgba(0, 0, 0, .5);
}
.kasa-civi { position: absolute; width: 8px; height: 8px; background: #c3cad6; box-shadow: 2px 2px 0 #3a404c; }
.kasa-civi:nth-child(1) { top: 12px; left: 12px; } .kasa-civi:nth-child(2) { top: 12px; right: 12px; }
.kasa-civi:nth-child(3) { bottom: 12px; left: 12px; } .kasa-civi:nth-child(4) { bottom: 12px; right: 12px; }
.kasa-baslik { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 10px; font: 16px/16px var(--f-piksel); color: var(--murekkep); text-shadow: 2px 2px 0 #9aa3b2; }
.kasa-kalp { width: 18px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 8' shape-rendering='crispEdges'%3E%3Cpath fill='%231a0505' d='M1 0h2v1H1zM6 0h2v1H6zM0 1h1v3H0zM8 1h1v3H8zM1 4h1v1H1zM7 4h1v1H7zM2 5h1v1H2zM6 5h1v1H6zM3 6h1v1H3zM5 6h1v1H5zM4 7h1v1H4zM3 1h1v1H3zM5 1h1v1H5zM4 2h1v1H4z'/%3E%3Cpath fill='%23ff2a2a' d='M1 1h2v1H1zM6 1h2v1H6zM1 2h3v2H1zM5 2h3v2H5zM4 3h1v1H4zM2 4h5v1H2zM3 5h3v1H3zM4 6h1v1H4z'/%3E%3Cpath fill='%23ffffff' d='M1 1h1v2H1zM2 1h1v1H2z'/%3E%3Cpath fill='%23b30000' d='M7 3h1v1H7zM6 4h1v1H6zM5 5h1v1H5z'/%3E%3C/svg%3E") 0 0 / 18px 16px no-repeat; image-rendering: pixelated; }
.kasa-alt { margin: 0 0 18px; font: 15px/20px var(--f-govde); color: #1c222c; }
.kasa-ekran {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: 0 auto 20px; padding: 10px;
  background: #160606; box-shadow: inset 0 0 0 4px #2a0d0d, 0 0 0 4px var(--murekkep);
}
.kasa-ekran span { display: grid; place-items: center; height: 40px; font: 24px/24px var(--f-piksel); color: #ff4b3e; background: #230a0a; }
.kasa-ekran span.imlec::after { content: ''; width: 16px; height: 4px; margin-top: 18px; background: #ff4b3e; animation: gzKirp 1s steps(1) infinite; }
.kasa-ekran.dogru span { color: #4dff7a; background: #082211; }
.kasa-ekran.yanlis { animation: kasaSalla .36s steps(4); }
@keyframes kasaSalla { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
.kasa-tuslar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kasa-tuslar button {
  height: 56px; border: 0; cursor: pointer; font: 16px/16px var(--f-piksel); color: var(--murekkep); background: #dfe4ec;
  box-shadow: inset -4px -4px 0 #a9b1bf, inset 4px 4px 0 #ffffff, 0 0 0 3px var(--murekkep), 4px 4px 0 3px rgba(0, 0, 0, .35);
}
.kasa-tuslar button:hover, .kasa-tuslar button:focus-visible { background: #fff3c4; outline: none; }
.kasa-tuslar button:active, .kasa-tuslar button.basili { transform: translate(4px, 4px); box-shadow: inset 4px 4px 0 #a9b1bf, 0 0 0 3px var(--murekkep); }
.kasa-tuslar .kasa-sil, .kasa-tuslar .kasa-gir { font-size: 8px; line-height: 8px; }
.kasa-tuslar .kasa-gir { background: #9be7a8; box-shadow: inset -4px -4px 0 #5fb26e, inset 4px 4px 0 #d4ffdb, 0 0 0 3px var(--murekkep), 4px 4px 0 3px rgba(0, 0, 0, .35); }
.kasa-tuslar .kasa-sil { background: #f3b4ad; box-shadow: inset -4px -4px 0 #c97b72, inset 4px 4px 0 #ffe1dd, 0 0 0 3px var(--murekkep), 4px 4px 0 3px rgba(0, 0, 0, .35); }
.kasa-durum { margin: 20px 0 0; font: 8px/8px var(--f-piksel); letter-spacing: 1px; color: #1c222c; }
.kasa-durum.hata { color: #8f1d14; }
.kasa-durum.tamam { color: #0d5c25; }

/* ---------- ATATÜRK ---------- */
.gz-ata { background: #0b0d12; align-content: center; gap: 28px; }
.ata-ic { display: grid; grid-template-columns: minmax(0, 1.25fr) auto; gap: clamp(28px, 5vw, 64px); align-items: center; width: min(1120px, 100%); }
.ata-ust { margin: 0 0 14px; font: 8px/8px var(--f-piksel); letter-spacing: 2px; color: #e3453a; }
.ata-baslik { margin: 0 0 22px; font: 24px/32px var(--f-piksel); color: var(--krem); text-shadow: 4px 4px 0 #3a0a08; }
.ata-hitabe p { margin: 0 0 16px; font: 19px/31px var(--f-govde); color: #efe6d6; }
.ata-hitabe .c { visibility: hidden; }
.ata-hitabe .c.g { visibility: visible; }
.ata-hitabe .c.son { color: var(--gold); }
.ata-imza { margin: 10px 0 0; font: 15px/20px var(--f-govde); color: #a89c88; text-align: right; visibility: hidden; }
.ata-imza.g { visibility: visible; }
.ata-portre { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ata-cerceve {
  position: relative; display: block; padding: 12px; background: #c8a24a;
  box-shadow: inset 4px 4px 0 #f2d27a, inset -4px -4px 0 #8a6d1d, 0 0 0 4px #1a1208, 14px 14px 0 4px rgba(0, 0, 0, .55);
}
.ata-cerceve img { display: block; width: 320px; height: 400px; image-rendering: pixelated; box-shadow: 0 0 0 4px #1a1208; }
/* yas kurdelesi: sol üst köşede siyah çapraz şerit (basamaklı) */
.ata-kurdele { position: absolute; top: -4px; left: -4px; width: 64px; height: 64px; background: #050505;
  clip-path: polygon(0 0, 24px 0, 64px 40px, 64px 64px, 40px 64px, 0 24px, 0 0); }
.ata-portre figcaption { font: 8px/16px var(--f-piksel); text-align: center; color: var(--krem); }
.ata-portre figcaption span { color: #a89c88; }
.gz-dugmeler { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
@media (max-width: 860px) {
  .ata-ic { grid-template-columns: minmax(0, 1fr); }
  .ata-portre { order: -1; }
  .ata-cerceve img { width: 240px; height: 300px; }
  .ata-hitabe p { font-size: 17px; line-height: 28px; }
  .ata-baslik { font-size: 16px; line-height: 24px; }
}

/* ---------- ERENCRAFT ---------- */
.gz-maden { position: fixed; inset: 0; z-index: 10; display: block; padding: 0; background: #78a7ff; overflow: hidden; touch-action: manipulation; }
.mc-tuval { position: absolute; left: 0; top: 0; image-rendering: pixelated; cursor: crosshair; }
.mc-hud { position: absolute; left: 50%; bottom: 12px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px; transform: translateX(-50%); pointer-events: none; }
.mc-kalpler { display: flex; gap: 2px; align-self: flex-start; }
.mc-kalpler i { width: 18px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 8' shape-rendering='crispEdges'%3E%3Cpath fill='%231a0505' d='M1 0h2v1H1zM6 0h2v1H6zM0 1h1v3H0zM8 1h1v3H8zM1 4h1v1H1zM7 4h1v1H7zM2 5h1v1H2zM6 5h1v1H6zM3 6h1v1H3zM5 6h1v1H5zM4 7h1v1H4zM3 1h1v1H3zM5 1h1v1H5zM4 2h1v1H4z'/%3E%3Cpath fill='%23ff2a2a' d='M1 1h2v1H1zM6 1h2v1H6zM1 2h3v2H1zM5 2h3v2H5zM4 3h1v1H4zM2 4h5v1H2zM3 5h3v1H3zM4 6h1v1H4z'/%3E%3Cpath fill='%23ffffff' d='M1 1h1v2H1zM2 1h1v1H2z'/%3E%3Cpath fill='%23b30000' d='M7 3h1v1H7zM6 4h1v1H6zM5 5h1v1H5z'/%3E%3C/svg%3E") 0 0 / 18px 16px no-repeat; image-rendering: pixelated; }
.mc-xp { position: relative; width: 364px; max-width: calc(100vw - 24px); height: 10px; background: #1c1c1c; box-shadow: 0 0 0 2px #000; }
.mc-xp i { display: block; width: 0; height: 100%; background: #80ff20; box-shadow: inset 0 2px 0 #c8ff8a; }
.mc-xp b { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); font: 8px/8px var(--f-piksel); color: #80ff20; text-shadow: 2px 2px 0 #000; }
.mc-hotbar { display: flex; gap: 0; padding: 4px; background: #2b2b2b; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #8b8b8b; max-width: calc(100vw - 24px); overflow: hidden; }
.mc-slot { position: relative; width: 40px; height: 40px; display: grid; place-items: center; background: #8b8b8b; box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #ffffff; }
.mc-slot + .mc-slot { margin-left: 0; }
.mc-slot canvas { display: block; width: 32px; height: 32px; image-rendering: pixelated; }
.mc-slot b { position: absolute; right: 2px; bottom: 1px; font: 8px/8px var(--f-piksel); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.mc-slot.yeni { animation: mcSlot .4s steps(2) 2; }
@keyframes mcSlot { 50% { background: #c6c6c6; } }
.mc-bildirimler { position: absolute; top: 56px; right: 12px; z-index: 65; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.mc-toast { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 10px; width: 300px; max-width: calc(100vw - 24px); padding: 8px 10px;
  background: #212121; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #555; }
.mc-toast canvas { width: 32px; height: 32px; image-rendering: pixelated; }
.mc-toast b { display: block; font: 8px/12px var(--f-piksel); color: #ffff55; }
.mc-toast span { display: block; margin-top: 2px; font: 14px/18px var(--f-govde); color: #fff; }
.mc-baslik-ekrani { position: absolute; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; background: rgba(8, 10, 20, .55); }
.mc-baslik-ekrani[hidden] { display: none; }
.mc-logo { margin: 0; font: 48px/48px var(--f-piksel); color: #c9c9c9; letter-spacing: 0;
  text-shadow: 4px 4px 0 #6b6b6b, 8px 8px 0 #3b3b3b, 12px 12px 0 #1a1a1a; }
.mc-splash { margin: 0 0 18px; font: 16px/16px var(--f-piksel); color: #ffff55; text-shadow: 3px 3px 0 #3f3f00; animation: gzKirp 1.4s steps(1) infinite; }
.mc-menu { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mc-dug {
  width: 300px; max-width: calc(100vw - 48px); height: 44px; border: 0; cursor: pointer;
  font: 8px/8px var(--f-piksel); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; background: #6f6f6f;
  box-shadow: inset 2px 2px 0 #aaaaaa, inset -2px -4px 0 #4a4a4a, 0 0 0 2px #000;
}
.mc-dug:hover, .mc-dug:focus-visible { background: #7b86c9; color: #ffffa0; outline: none; box-shadow: inset 2px 2px 0 #b9c3ff, inset -2px -4px 0 #4f5aa0, 0 0 0 2px #fff; }
.mc-ipucu { margin: 8px 0 0; font: 15px/20px var(--f-govde); color: #e8e8e8; text-shadow: 2px 2px 0 #000; }
.mc-panel { position: absolute; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .55); }
.mc-panel[hidden] { display: none; }
.mc-panel-ic { width: min(440px, 100%); padding: 22px 20px; text-align: center; background: #c6c6c6; color: #3f3f3f; box-shadow: 0 0 0 2px #000, inset 4px 4px 0 #fff, inset -4px -4px 0 #555; }
.mc-panel-ic p { font: 16px/22px var(--f-govde); }
.mc-panel-ic b { color: #1f1f1f; }
.mc-panel-bas { margin: 0 0 12px; font: 16px/16px var(--f-piksel) !important; color: #3f3f3f; }
.mc-panel-ikon canvas { width: 96px; height: 96px; image-rendering: pixelated; }
.mc-cik { position: absolute; top: 14px; left: 14px; z-index: 5; }
.gz-maden .mc-baslik-ekrani:not([hidden]) ~ .mc-cik { display: none; }
@media (max-width: 600px) {
  .mc-logo { font-size: 24px; line-height: 24px; text-shadow: 2px 2px 0 #6b6b6b, 4px 4px 0 #3b3b3b, 6px 6px 0 #1a1a1a; }
  .mc-splash { font-size: 8px; line-height: 8px; }
  .mc-slot { width: 32px; height: 32px; }
  .mc-slot canvas { width: 24px; height: 24px; }
  .mc-xp { width: 292px; }
  .kasa-kapi { padding: 22px 16px 20px; }
  .kasa-ekran span { height: 32px; font-size: 16px; line-height: 16px; }
  .kasa-ekran span.imlec::after { width: 12px; margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .gz-yildizlar i.k, .mc-splash, .kasa-ekran span.imlec::after { animation: none; }
}

/* ---------- ERENCRAFT 3B: mob macerası (js/erencraft/) ---------- */
/* Tasarım dili: mürekkep çerçeveli koyu paneller, krem kâğıt diyalog ve kapışma kartları, üstten ışık alan / alttan
   dudağı olan kabartmalı düğmeler, sarı seçim halkası + Pokémon imleci. Yazılar okunur boyda Pixelify Sans; başlıklar
   piksel yazı. Yuvarlak köşe yok: joystick ve A/B düğmeleri basamaklı piksel daire (SVG). */
.gz-maden {
  --ec-murekkep: #10131c; --ec-panel: #1d2333; --ec-cizgi: #3a4562; --ec-kagit: #fbf8ec; --ec-kagit-2: #e6dfc6;
  --ec-sari: #ffd84a; --ec-yazi: #f4f1e6; --ec-soluk: #aab3c8;
  background: #5c98ff;
}
.gz-maden .mc-cik { display: none; }

/* başlık ekranı */
.mc-baslik-ekrani { gap: 14px; background: linear-gradient(rgba(8, 10, 20, .18), rgba(8, 10, 20, .62)); }
.mc-baslik-ekrani [hidden] { display: none !important; }
.mc-alt-baslik { margin: -2px 0 0; font: 16px/16px var(--f-piksel); letter-spacing: 2px; color: #fff; text-shadow: 2px 2px 0 #1a1a1a; }
.mc-splash { margin: 0 0 8px; font: 700 21px/22px var(--f-govde); letter-spacing: .5px; color: #ffff55; text-shadow: 2px 2px 0 #3f3f00, -1px -1px 0 #3f3f00; animation: mcSplash 1.1s steps(2) infinite; }
@keyframes mcSplash { 50% { transform: translateY(-3px); } }
.mc-menu { gap: 12px; }
.mc-dug {
  --b: #6b6b6b; --b-ust: #a3a3a3; --b-alt: #3f3f3f;
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 360px; max-width: calc(100vw - 48px); height: auto; min-height: 56px; padding: 10px 34px 13px;
  font: 700 20px/22px var(--f-govde); letter-spacing: .5px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .5);
  background: var(--b); box-shadow: inset 0 3px 0 var(--b-ust), inset 0 -5px 0 var(--b-alt), 0 0 0 3px #10131c;
  -webkit-tap-highlight-color: transparent;
}
.mc-dug-birincil { --b: #3c8527; --b-ust: #6fc356; --b-alt: #24561a; }
.mc-dug-tehlike { --b: #b8402f; --b-ust: #e8725e; --b-alt: #6e2116; }
.mc-dug:hover, .mc-dug:focus, .mc-dug:focus-visible { outline: none; background: var(--b); color: #fff; filter: brightness(1.08);
  box-shadow: inset 0 3px 0 var(--b-ust), inset 0 -5px 0 var(--b-alt), 0 0 0 3px #10131c, 0 0 0 6px #ffd84a; }
.mc-dug:hover::before, .mc-dug:focus::before { content: ''; position: absolute; left: 14px; top: 50%; margin-top: -8px; border: 8px solid transparent; border-left: 10px solid #ffd84a; border-right: 0; }
.mc-dug:active { padding-top: 12px; padding-bottom: 11px; box-shadow: inset 0 3px 0 var(--b-alt), 0 0 0 3px #10131c, 0 0 0 6px #ffd84a; }
.mc-dug:disabled { filter: grayscale(1) brightness(.75); cursor: progress; }
.mc-dug-alt { margin-top: 2px; font: 8px/10px var(--f-piksel); letter-spacing: 0; color: rgba(255, 255, 255, .9); text-shadow: 1px 1px 0 rgba(0, 0, 0, .55); }
.mc-menu-sira { display: flex; gap: 12px; width: 360px; max-width: calc(100vw - 48px); }
.mc-menu-sira .mc-dug { flex: 1; width: auto; min-width: 0; padding-left: 28px; padding-right: 14px; font-size: 17px; }
.mc-menu-sira .mc-dug:hover::before, .mc-menu-sira .mc-dug:focus::before { left: 10px; }
.mc-onay p { margin: 0 0 4px; max-width: 360px; font: 700 19px/26px var(--f-govde); color: #fff; text-shadow: 2px 2px 0 #000; }
.mc-ipucu { max-width: 540px; font: 500 16px/22px var(--f-govde); }
.mc-ipucu-tus { margin: -4px 0 0; font: 600 14px/18px var(--f-govde); color: #cfd6e6; text-shadow: 1px 1px 0 #000; }
.gz-maden.dokunmatik .mc-ipucu-tus { display: none; }

/* başarım tostu, Kliko paneli */
.mc-bildirimler { top: 72px; }
.mc-toast { grid-template-columns: 36px 1fr; gap: 12px; width: 320px; padding: 10px 12px; background: #1d2333; box-shadow: 0 0 0 3px #10131c, inset 0 0 0 2px #3a4562; }
.mc-toast b { font: 700 14px/16px var(--f-govde); letter-spacing: .5px; color: #ffd84a; }
.mc-toast span { margin-top: 3px; font: 500 16px/20px var(--f-govde); }
.mc-toast .ec-toast-ikon { width: 32px; height: 32px; image-rendering: pixelated; }
.mc-panel-ic { width: min(460px, 100%); padding: 24px 22px 22px; color: #f4f1e6; background: #1d2333; box-shadow: 0 0 0 3px #10131c, inset 0 0 0 3px #3a4562, 8px 8px 0 3px rgba(0, 0, 0, .4); }
.mc-panel-ic p { font: 500 17px/25px var(--f-govde); }
.mc-panel-ic b { color: #ffd84a; }
.mc-panel-bas { color: #ffd84a !important; text-shadow: 2px 2px 0 #10131c; }
.mc-panel .mc-menu { margin-top: 18px; }
.mc-panel .mc-dug { width: 100%; }

/* temel katmanlar */
.ec-sahne { position: absolute; inset: 0; }
.ec-sahne canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; touch-action: none; cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ec-flas { position: absolute; inset: 0; z-index: 30; background: #fff; opacity: 0; pointer-events: none; }
.ec-gecis { position: absolute; left: 0; top: 0; z-index: 40; image-rendering: pixelated; pointer-events: none; }
.ec-arayuz { position: absolute; inset: 0; z-index: 20; pointer-events: none; font-family: var(--f-govde); color: var(--ec-murekkep); }
.ec-arayuz button { font-family: inherit; }
.ec-arayuz [hidden] { display: none !important; }
.ec-arayuz.ustte { z-index: 45; }
.ec-arayuz.en-ustte { z-index: 80; }
.ec-svg { display: block; flex: none; }
.ec-pk, .ec-ad { font-family: var(--f-piksel); font-size: 16px; font-weight: 400; line-height: 1; letter-spacing: 0; }

/* tuş kapakçığı (dokunmatikte gizli) */
.ec-tus { display: inline-block; flex: none; min-width: 22px; padding: 4px 6px 5px; font: 700 12px/12px var(--f-govde); font-style: normal; letter-spacing: 0; color: #1d2333; text-align: center; text-shadow: none;
  background: #f4f1e6; box-shadow: inset 0 -3px 0 #b9b39c, 0 0 0 2px #10131c; }
.gz-maden.dokunmatik .ec-tus { display: none; }

/* düğme: üstten ışık, alttan dudak; seçilince sarı halka + yanıp sönen imleç */
.ec-btn {
  --b: #4a5266; --b-ust: #6b7591; --b-alt: #2b3040;
  position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 48px; margin: 0;
  padding: 8px 14px 12px 30px; border: 0; cursor: pointer; text-align: left;
  font: 600 18px/22px var(--f-govde); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .45);
  background: var(--b); box-shadow: inset 0 3px 0 var(--b-ust), inset 0 -5px 0 var(--b-alt), 0 0 0 3px var(--ec-murekkep);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
.ec-btn::before { content: ''; position: absolute; left: 10px; top: 50%; width: 0; height: 0; margin-top: -7px; border: 7px solid transparent; border-left: 9px solid var(--ec-sari); border-right: 0; opacity: 0; }
.ec-btn.secili, .ec-btn:focus-visible { outline: none; filter: brightness(1.1); box-shadow: inset 0 3px 0 var(--b-ust), inset 0 -5px 0 var(--b-alt), 0 0 0 3px var(--ec-murekkep), 0 0 0 6px var(--ec-sari); }
.ec-btn.secili::before { opacity: 1; animation: ecImlec .6s steps(2) infinite; }
@keyframes ecImlec { 50% { transform: translateX(3px); } }
.ec-btn:active { padding-top: 10px; padding-bottom: 10px; box-shadow: inset 0 3px 0 var(--b-alt), 0 0 0 3px var(--ec-murekkep), 0 0 0 6px var(--ec-sari); }
.ec-btn:disabled { filter: grayscale(.85) brightness(.62); cursor: not-allowed; }
.ec-btn .ec-tus { margin-left: auto; }
.ec-btn-birincil { --b: #3c8527; --b-ust: #6fc356; --b-alt: #24561a; }
.ec-btn-tehlike { --b: #b8402f; --b-ust: #e8725e; --b-alt: #6e2116; }
.ec-cerceve { background: var(--ec-panel); color: var(--ec-yazi); box-shadow: 0 0 0 3px var(--ec-murekkep), inset 0 0 0 3px var(--ec-cizgi), 6px 6px 0 3px rgba(0, 0, 0, .35); }

/* diyalog: Pokémon düzeni, krem kâğıt */
.ec-diyalog {
  position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 5; width: min(800px, calc(100% - 32px)); min-height: 100px; padding: 18px 54px 20px 24px;
  transform: translateX(-50%); background: var(--ec-kagit); color: #1d2333; pointer-events: auto; cursor: pointer;
  box-shadow: 0 0 0 3px var(--ec-murekkep), inset 0 0 0 3px #fff, inset 0 0 0 6px var(--ec-kagit-2), 6px 6px 0 3px rgba(0, 0, 0, .35);
}
.ec-diyalog-isim { position: absolute; left: 16px; top: -32px; padding: 8px 12px; font: 16px/16px var(--f-piksel); color: var(--ec-sari); background: var(--ec-murekkep); }
.ec-diyalog-metin { margin: 0; font: 500 21px/30px var(--f-govde); white-space: pre-line; }
.ec-diyalog-devam { position: absolute; right: 22px; bottom: 18px; width: 0; height: 0; border: 8px solid transparent; border-top: 10px solid #d2453a; border-bottom: 0; animation: ecDevam .7s steps(2) infinite; }
@keyframes ecDevam { 50% { transform: translateY(4px); } }
.ec-diyalog.savasta { left: 12px; right: 12px; bottom: 12px; width: auto; height: 136px; min-height: 0; padding: 20px 26px; transform: none; }
.ec-arayuz.komutlu .ec-diyalog.savasta { right: calc(12px + min(520px, 58%) + 12px); }

/* seçim listesi (takas, evet/hayır) */
.ec-secim { position: absolute; right: 16px; bottom: 136px; z-index: 6; width: min(380px, calc(100% - 32px)); padding: 14px; pointer-events: auto; }
.ec-secim-baslik { margin: 0 0 12px; font: 700 18px/22px var(--f-govde); letter-spacing: .5px; color: var(--ec-sari); }
.ec-liste { display: flex; flex-direction: column; gap: 10px; }
.ec-satir { width: 100%; justify-content: flex-start; min-height: 52px; }
.ec-satir em { margin-left: auto; padding-left: 10px; font: 700 13px/13px var(--f-govde); font-style: normal; letter-spacing: 1px; color: var(--ec-sari); white-space: nowrap; }
.ec-satir em.sakin { color: var(--ec-soluk); }
.ec-satir .ec-ikon { flex: none; width: 32px; height: 32px; image-rendering: pixelated; }
.ec-satir-ad { font: 600 18px/22px var(--f-govde); }
.ec-satir.bilgi { --b: #343c52; --b-ust: #465070; --b-alt: #232838; }

/* kapışma: kartlar */
.ec-savas { position: absolute; inset: 0; pointer-events: none; }
.ec-kutu { position: absolute; width: min(380px, calc(50% - 28px)); padding: 12px 16px 14px; background: var(--ec-kagit); color: #1d2333;
  box-shadow: 0 0 0 3px var(--ec-murekkep), inset 0 0 0 3px #fff, inset 0 0 0 6px var(--ec-kagit-2), 6px 6px 0 3px rgba(0, 0, 0, .3); transition: transform .2s steps(3), opacity .2s steps(3); }
.ec-kutu.gizli-kutu { opacity: 0; transform: translateY(-12px); }
.ec-rakip { top: max(16px, env(safe-area-inset-top)); left: 16px; }
.ec-ben { right: 16px; bottom: 166px; }
.ec-kutu-ust { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ec-kutu-ust .ad { min-width: 0; font: 16px/18px var(--f-piksel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-cipler { display: flex; flex: none; gap: 6px; }
.ec-sv { display: flex; flex: none; align-items: baseline; gap: 4px; margin-left: auto; padding: 5px 7px; font: 16px/16px var(--f-piksel); color: #fff; background: #1d2333; }
.ec-sv small { font: 8px/8px var(--f-piksel); color: var(--ec-sari); }
.ec-kutu-can { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ec-can-etiket, .ec-xp-etiket { flex: none; padding: 3px 5px; font: 8px/8px var(--f-piksel); color: var(--ec-sari); background: #1d2333; }
.ec-xp-etiket { color: #7cc4ff; }
.ec-can { display: block; flex: 1; position: relative; height: 12px; background: #3b3b3b; box-shadow: 0 0 0 2px #1d2333; }
.ec-can i { display: block; width: 100%; height: 100%; transition: width .7s steps(14); }
.ec-can i.iyi { background: #4ad04a; box-shadow: inset 0 3px 0 #9cf39c, inset 0 -2px 0 #2a8f2a; }
.ec-can i.orta { background: #f0b830; box-shadow: inset 0 3px 0 #ffe08a, inset 0 -2px 0 #b07d10; }
.ec-can i.kotu { background: #e8483c; box-shadow: inset 0 3px 0 #ff9a8a, inset 0 -2px 0 #9e2a20; }
.ec-ben-alt { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ec-xp { display: block; flex: 1; height: 6px; background: #2a2a2a; box-shadow: 0 0 0 2px #1d2333; }
.ec-xp i { display: block; width: 0; height: 100%; background: #48a8f8; transition: width .9s steps(16); }
.ec-ben-alt .sayi { flex: none; min-width: 80px; font: 16px/16px var(--f-piksel); text-align: right; }
.ec-tip, .ec-zehir, .ec-bayik { display: inline-block; flex: none; padding: 3px 4px; font: 8px/8px var(--f-piksel); letter-spacing: 0; color: #fff; text-shadow: 1px 1px 0 rgba(0, 0, 0, .6); background: var(--tip, #555); box-shadow: 0 0 0 2px #1d2333; vertical-align: middle; }
.ec-zehir { background: #8a3ab8; }
.ec-bayik { background: #555; }

/* kapışma: komut paneli (SAVAŞ / ÇANTA / MOBLAR / KAÇ) ve hamleler */
.ec-komut { position: absolute; right: 12px; bottom: 12px; z-index: 7; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; width: min(520px, 58%); height: 136px; padding: 10px; pointer-events: auto; }
.ec-komut .ec-btn { height: 100%; min-height: 0; padding: 6px 12px 9px 30px; font: 16px/16px var(--f-piksel); letter-spacing: 0; }
.ec-komut .ec-svg { width: 30px; height: 30px; }
.ec-k-savas { --b: #d2453a; --b-ust: #f07a68; --b-alt: #85231b; }
.ec-k-canta { --b: #c98a1c; --b-ust: #f0bd55; --b-alt: #7c510b; }
.ec-k-moblar { --b: #3f9e45; --b-ust: #74cf72; --b-alt: #22612a; }
.ec-k-kac { --b: #3a72c9; --b-ust: #6fa2ec; --b-alt: #1f437f; }
.ec-komut-hamle { grid-template-columns: 1fr 1fr 78px; }
.ec-komut-hamle .ec-btn { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 6px 10px 9px 28px; letter-spacing: 0; }
.ec-komut-hamle .ec-btn .ec-tus { position: absolute; right: 9px; bottom: 11px; margin: 0; }
.ec-hamle-ad { max-width: 100%; font: 700 19px/20px var(--f-govde); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-hamle-alt { display: flex; align-items: center; gap: 8px; padding-right: 30px; font: 8px/8px var(--f-piksel); color: rgba(255, 255, 255, .95); white-space: nowrap; }
.ec-hamle .ec-tip { box-shadow: 0 0 0 2px rgba(16, 19, 28, .85); }
.ec-etki { position: absolute; top: -8px; right: 8px; padding: 3px 5px; font: 8px/8px var(--f-piksel); font-style: normal; letter-spacing: 0; color: #10131c; text-shadow: none; background: #9cf39c; box-shadow: 0 0 0 2px var(--ec-murekkep); }
.ec-etki.zayif { background: #c9cbd3; }
.ec-komut-yan { grid-column: 3; grid-row: 1 / span 2; display: grid; grid-template-rows: 1fr 1fr; gap: 10px; min-height: 0; }
.ec-yan-dug { --b: #4a5266; --b-ust: #6b7591; --b-alt: #2b3040;
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 0; padding: 0 0 4px; border: 0; cursor: pointer;
  font: 700 15px/15px var(--f-govde); letter-spacing: 1px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .45);
  background: var(--b); box-shadow: inset 0 3px 0 var(--b-ust), inset 0 -5px 0 var(--b-alt), 0 0 0 3px var(--ec-murekkep); -webkit-tap-highlight-color: transparent; }
.ec-yan-dug .ec-svg { width: 20px; height: 20px; }
.ec-geri-sekme .ec-svg { width: 10px; height: 16px; }
.ec-yan-dug .ec-tus { position: absolute; top: -9px; right: -7px; min-width: 18px; padding: 3px 4px 4px; font-size: 11px; line-height: 11px; }
.ec-savun { --b: #2f7f86; --b-ust: #5cb8bf; --b-alt: #1a4a4f; }
.ec-yan-dug.secili, .ec-yan-dug:hover { outline: none; color: var(--ec-sari); box-shadow: inset 0 3px 0 var(--b-ust), inset 0 -5px 0 var(--b-alt), 0 0 0 3px var(--ec-murekkep), 0 0 0 6px var(--ec-sari); }
.ec-yan-dug:active { padding: 3px 0 1px; box-shadow: inset 0 3px 0 var(--b-alt), 0 0 0 3px var(--ec-murekkep), 0 0 0 6px var(--ec-sari); }

/* HUD */
.ec-hud { position: absolute; inset: 0; pointer-events: none; }
.ec-sol-ust { position: absolute; top: max(12px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: calc(100% - 300px); pointer-events: none; }
.ec-takim { display: flex; flex-wrap: wrap; gap: 9px; max-width: 100%; pointer-events: auto; cursor: pointer; }
.ec-takim-mob { position: relative; display: flex; flex-direction: column; align-items: center; width: 58px; padding: 4px 4px 7px; background: rgba(16, 19, 28, .8); box-shadow: 0 0 0 3px var(--ec-murekkep), inset 0 0 0 2px var(--ec-cizgi); }
.ec-takim-mob.onde { box-shadow: 0 0 0 3px var(--ec-murekkep), inset 0 0 0 2px var(--ec-sari); }
.ec-takim-mob img { width: 48px; height: 48px; image-rendering: pixelated; }
.ec-takim-mob b { position: absolute; top: 2px; right: 2px; padding: 2px 2px 1px 3px; font: 8px/8px var(--f-piksel); color: var(--ec-sari); background: var(--ec-murekkep); }
.ec-takim-mob .ec-can { flex: none; width: 48px; height: 6px; margin-top: 3px; box-shadow: 0 0 0 2px var(--ec-murekkep); }
.ec-takim-mob .ec-can i { transition: none; }
.ec-takim-mob.bayik img { filter: grayscale(1) brightness(.55); }
.ec-ust-dug { position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); display: flex; gap: 10px; pointer-events: auto; }
.ec-ikon-dug { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 46px; height: 46px; padding: 0 11px 3px; border: 0; cursor: pointer;
  font: 700 16px/16px var(--f-govde); letter-spacing: 1px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .45);
  background: var(--ec-panel); box-shadow: inset 0 3px 0 var(--ec-cizgi), inset 0 -4px 0 #0d1018, 0 0 0 3px var(--ec-murekkep); -webkit-tap-highlight-color: transparent; }
.ec-ikon-dug .ec-svg { width: 20px; height: 20px; }
.ec-ikon-dug:hover, .ec-ikon-dug:focus-visible { outline: none; color: var(--ec-sari); box-shadow: inset 0 3px 0 var(--ec-cizgi), inset 0 -4px 0 #0d1018, 0 0 0 3px var(--ec-murekkep), 0 0 0 6px var(--ec-sari); }
.ec-ikon-dug:active { padding: 3px 11px 0; box-shadow: inset 0 3px 0 #0d1018, 0 0 0 3px var(--ec-murekkep); }
.ec-ikon-dug.kapali { color: #ff8a7a; }
.ec-hotbar { position: absolute; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; padding: 4px; transform: translateX(-50%); background: #2b2b2b; box-shadow: 0 0 0 3px var(--ec-murekkep), inset 0 0 0 2px #8b8b8b; }
.ec-hotbar .mc-slot { width: 46px; height: 46px; }
.ec-hotbar .mc-slot img { display: block; width: 32px; height: 32px; image-rendering: pixelated; }
.ec-hotbar .mc-slot b { right: 3px; bottom: 3px; font: 8px/8px var(--f-piksel); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.ec-bolge { position: absolute; left: 50%; top: 86px; padding: 14px 24px 17px; transform: translateX(-50%); font: 16px/16px var(--f-piksel); letter-spacing: 1px; color: #fff; text-shadow: 0 3px 0 var(--ec-murekkep);
  background: rgba(16, 19, 28, .72); box-shadow: 0 0 0 3px rgba(16, 19, 28, .88), inset 0 -4px 0 var(--ec-sari); opacity: 0; white-space: nowrap; }
.ec-bolge.goster { animation: ecBolge 3.2s steps(1) forwards; }
@keyframes ecBolge { 0% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }
.ec-ipucu-satir { position: absolute; left: 50%; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 72px); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; width: max-content; max-width: calc(100% - 32px); padding: 8px 14px 9px;
  transform: translateX(-50%); font: 600 15px/20px var(--f-govde); color: #fff; text-align: center; text-shadow: 1px 1px 0 #000;
  background: rgba(16, 19, 28, .74); box-shadow: 0 0 0 3px rgba(16, 19, 28, .88); white-space: nowrap; }
.ec-ipucu-satir > span { margin-right: 8px; }
.ec-ipucu-satir .ec-ipucu-fare { color: var(--ec-soluk); }
.gz-maden.dokunmatik .ec-ipucu-satir { bottom: 214px; white-space: normal; }
/* etkileşim balonu: hedefin üstünde, tıklanır/dokunulur */
.ec-balon { position: absolute; left: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; margin-top: -14px; padding: 6px 13px 8px 7px; border: 0; cursor: pointer; pointer-events: auto; white-space: nowrap;
  font: 700 17px/18px var(--f-govde); letter-spacing: .5px; color: #fff; text-shadow: 1px 1px 0 #000;
  background: var(--ec-panel); box-shadow: 0 0 0 3px var(--ec-murekkep), inset 0 0 0 2px var(--ec-cizgi); transform: translate(-50%, -100%); animation: ecBalon 1s steps(2) infinite; -webkit-tap-highlight-color: transparent; }
.ec-balon::after { content: ''; position: absolute; left: 50%; bottom: -11px; margin-left: -8px; border: 8px solid transparent; border-top: 8px solid var(--ec-murekkep); border-bottom: 0; }
.ec-balon:hover { color: var(--ec-sari); }
.ec-balon.tehlike { background: #8e2219; box-shadow: 0 0 0 3px var(--ec-murekkep), inset 0 0 0 2px #e05a4c; }
.ec-balon-a { display: grid; place-items: center; width: 24px; height: 24px; font: 700 15px/15px var(--f-govde); color: #fff; background: #d2453a; box-shadow: 0 0 0 2px var(--ec-murekkep); }
@keyframes ecBalon { 50% { margin-top: -17px; } }
.ec-ucanlar { position: absolute; inset: 0; pointer-events: none; }
.ec-ucan { position: absolute; display: flex; align-items: center; gap: 6px; transform: translate(-50%, -100%); font: 16px/16px var(--f-piksel); color: #9cf39c; text-shadow: 2px 2px 0 var(--ec-murekkep); white-space: nowrap; animation: ecUcan 1.2s steps(12) forwards; }
.ec-ucan img { width: 24px; height: 24px; image-rendering: pixelated; }
@keyframes ecUcan { 0% { margin-top: 0; opacity: 1; } 70% { opacity: 1; } 100% { margin-top: -44px; opacity: 0; } }

/* dokunmatik: ekranı sürükleyince beliren joystick + A/B (yalnız dokunmatik kullanılırken) */
.ec-dokun { position: absolute; inset: 0; display: none; pointer-events: none; }
.gz-maden.dokunmatik .ec-dokun { display: block; }
.ec-arayuz.diyalogda .ec-dokun, .ec-arayuz.savasta .ec-dokun { display: none !important; }
.ec-joy { position: absolute; left: calc(max(16px, env(safe-area-inset-left)) + 64px); top: calc(100% - max(16px, env(safe-area-inset-bottom)) - 96px); width: 0; height: 0; opacity: .55; }
.ec-joy-taban { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; }
.ec-joy-top { position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; }
.ec-joy-topsvg { display: block; width: 48px; height: 48px; }
.ec-joy small { position: absolute; left: -50px; top: 66px; width: 100px; font: 8px/8px var(--f-piksel); letter-spacing: 0; color: #fff; text-align: center; text-shadow: 1px 1px 0 #000, -1px 0 0 #000; }
.ec-joy.aktif { opacity: 1; }
.ec-joy.aktif small { display: none; }
.ec-p-murekkep { fill: rgba(16, 19, 28, .88); }
.ec-p-taban { fill: rgba(29, 35, 51, .5); }
.ec-p-iz { fill: rgba(255, 255, 255, .28); }
.ec-p-top { fill: #e7e3d6; }
.ec-p-parla { fill: rgba(255, 255, 255, .55); }
.ec-ab { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); width: 168px; height: 162px; }
.ec-ab button { position: absolute; display: block; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.ec-ab-a { right: 0; top: 0; width: 80px; height: 80px; }
.ec-ab-b { left: 0; bottom: 18px; width: 64px; height: 64px; }
.ec-ab-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ec-ab-a .ec-p-dolgu { fill: #d2453a; }
.ec-ab-b .ec-p-dolgu { fill: #59627a; }
.ec-ab-a.basili .ec-p-dolgu { fill: #a3322a; }
.ec-ab-b.basili .ec-p-dolgu { fill: #3f465a; }
.ec-ab button b { position: absolute; inset: 0; display: grid; place-items: center; font: 16px/16px var(--f-piksel); color: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, .4); }
.ec-ab-b b { padding-left: 2px; }
.ec-ab button.basili b { padding-top: 3px; }
.ec-ab button small { position: absolute; left: 50%; top: 100%; margin-top: 5px; transform: translateX(-50%); font: 8px/8px var(--f-piksel); letter-spacing: 0; color: #fff; text-shadow: 1px 1px 0 #000, -1px 0 0 #000, 0 -1px 0 #000; white-space: nowrap; }

/* paneller: liste, başlangıç kartları, menü, yardım */
.ec-katman { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(6, 8, 14, .55); pointer-events: auto; }
.ec-panel { display: flex; flex-direction: column; width: min(640px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
.ec-panel-ic { display: flex; flex-direction: column; min-height: 0; max-height: 100%; padding: 16px 18px 18px; color: var(--ec-yazi); background: var(--ec-panel);
  box-shadow: 0 0 0 3px var(--ec-murekkep), inset 0 0 0 3px var(--ec-cizgi), 8px 8px 0 3px rgba(0, 0, 0, .4); }
.ec-panel-ust { display: flex; flex: none; align-items: center; gap: 12px; margin: 0 0 14px; }
.ec-panel-baslik { flex: 1; margin: 0; font: 16px/18px var(--f-piksel); letter-spacing: 1px; color: var(--ec-sari); text-shadow: 2px 2px 0 var(--ec-murekkep); }
.ec-kapat-dug { display: grid; flex: none; place-items: center; width: 40px; height: 40px; padding: 0 0 3px; border: 0; cursor: pointer; color: #fff;
  background: #b8402f; box-shadow: inset 0 3px 0 #e8725e, inset 0 -4px 0 #6e2116, 0 0 0 3px var(--ec-murekkep); }
.ec-kapat-dug .ec-svg { width: 16px; height: 16px; }
.ec-kapat-dug.secili, .ec-kapat-dug:hover { outline: none; box-shadow: inset 0 3px 0 #e8725e, inset 0 -4px 0 #6e2116, 0 0 0 3px var(--ec-murekkep), 0 0 0 6px var(--ec-sari); }
.ec-panel .ec-liste, .ec-menu-icerik, .ec-kartlar, .ec-yardim-ic { min-height: 0; margin: -6px; padding: 6px; overflow: auto; }
.ec-panel-not { margin: 12px 0 0; font: 500 15px/20px var(--f-govde); color: var(--ec-soluk); }
.ec-portre { flex: none; width: 56px; height: 56px; image-rendering: pixelated; background: rgba(0, 0, 0, .22); }
.ec-satir-bilgi { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.ec-satir-ust { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ec-satir-ust b { font: 700 19px/20px var(--f-govde); }
.ec-satir-ust b.ec-ad { font: 16px/16px var(--f-piksel); }
.ec-sv-kucuk, .ec-adet { font: 8px/8px var(--f-piksel); color: var(--ec-sari); }
.ec-satir-can { display: flex; align-items: center; gap: 10px; }
.ec-satir-can .ec-can { flex: none; width: min(220px, 55%); height: 10px; }
.ec-satir-can small { font: 8px/8px var(--f-piksel); color: #e8e8e8; }
.ec-satir-not { font: 500 15px/19px var(--f-govde); color: #e3e6ef; text-shadow: none; }
.ec-hamle-cipleri { display: flex; flex-wrap: wrap; gap: 6px; }
.ec-hamle-cipleri span { padding: 2px 6px 3px; font: 600 13px/14px var(--f-govde); color: #f4f1e6; text-shadow: none; background: rgba(0, 0, 0, .28); }
.ec-baslangic { width: min(780px, 100%); }
.ec-kartlar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ec-kart { flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; padding: 16px 10px 18px; text-align: center; }
.ec-kart::before { top: 22px; margin-top: 0; }
.ec-kart > .ec-tus { position: absolute; right: 10px; top: 10px; }
.ec-kart img { width: 128px; height: 128px; image-rendering: pixelated; }
.ec-kart-yazi { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ec-kart-ad { font: 16px/18px var(--f-piksel); }
.ec-kart small { font: 500 15px/20px var(--f-govde); color: #eef0f6; text-shadow: none; }
.ec-menu { width: min(700px, 100%); }
.ec-sekmeler { display: grid; flex: none; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.ec-sekmeler.iki { grid-template-columns: 1fr 1fr; }
.ec-sekmeler .ec-btn { justify-content: center; padding: 10px 8px 13px; font: 16px/16px var(--f-piksel); letter-spacing: 0; }
.ec-sekmeler .ec-btn::before { display: none; }
.ec-sekmeler .ec-btn.acik { --b: #3c8527; --b-ust: #6fc356; --b-alt: #24561a; }
.ec-menu-alt { display: flex; flex: none; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ec-menu-alt .ec-btn { flex: 1 1 140px; justify-content: center; padding-left: 26px; font: 700 18px/20px var(--f-govde); letter-spacing: .3px; }
.ec-menu-alt .ec-btn .ec-tus { margin-left: 4px; }
.ec-dex-ozet { margin: 0 0 12px; font: 600 16px/20px var(--f-govde); color: var(--ec-soluk); }
.ec-dex-ozet b { font: 16px/16px var(--f-piksel); color: var(--ec-sari); }
.ec-dex { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ec-dex-kart { flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px 13px; text-align: center; }
.ec-dex-kart::before { top: 14px; margin-top: 0; left: 6px; }
.ec-dex-kart img { width: 64px; height: 64px; image-rendering: pixelated; }
.ec-dex-kart span { font: 8px/10px var(--f-piksel); }
.ec-dex-kart small { display: block; margin-bottom: 3px; font: 8px/8px var(--f-piksel); color: var(--ec-soluk); }
.ec-dex-kart.bilinmiyor { --b: #2b3142; --b-ust: #394057; --b-alt: #1b1f2b; }
.ec-dex-kart.yakalandi { --b: #3d5a7a; --b-ust: #5a7ea6; --b-alt: #233a52; }
.ec-dex-kart.yakalandi::after { content: ''; position: absolute; right: 7px; top: 7px; width: 8px; height: 8px; background: var(--ec-sari); box-shadow: 0 0 0 2px var(--ec-murekkep); }
.ec-dex-bilgi { position: sticky; bottom: -6px; z-index: 2; display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 56px; margin: 12px 0 0; padding: 10px 12px; font: 500 16px/21px var(--f-govde); color: var(--ec-yazi); background: #151a27; box-shadow: 0 -6px 0 var(--ec-panel), 0 0 0 2px var(--ec-cizgi); }
.ec-dex-bilgi b { color: var(--ec-sari); }
.ec-dex-bilgi > span:not(.ec-tip) { flex-basis: 100%; }
.ec-yardim { width: min(780px, 100%); }
.ec-yardim-ic { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.ec-yardim-ic section.ikinci { order: 2; }
.ec-yardim-oyun { order: 3; grid-column: 1 / -1; }
.ec-yardim h3 { margin: 0 0 10px; font: 700 18px/20px var(--f-govde); letter-spacing: .5px; color: var(--ec-sari); }
.ec-yardim ul { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.ec-yardim li { display: flex; align-items: flex-start; gap: 10px; font: 500 15px/20px var(--f-govde); color: var(--ec-yazi); }
.ec-yardim-tus { display: flex; flex: none; flex-wrap: wrap; gap: 5px; width: 136px; }
.ec-yardim .ec-tus { display: inline-block; }
.ec-yardim-oyun li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 6px; background: var(--ec-sari); }

/* ölüm ekranı */
.ec-olum { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: rgba(150, 10, 10, .55); text-align: center; }
.ec-olum-baslik { margin: 0; font: 32px/36px var(--f-piksel); color: #fff; text-shadow: 4px 4px 0 #3f0000; }
.ec-olum-alt { margin: 0 0 12px; font: 600 19px/24px var(--f-govde); color: #fff; text-shadow: 2px 2px 0 #000; }
.ec-olum .ec-btn { width: min(320px, calc(100vw - 48px)); justify-content: center; }

@media (max-width: 1000px) { .ec-hamle-ad { font-size: 17px; } }
@media (max-width: 640px) {
  .mc-alt-baslik { font-size: 8px; line-height: 8px; letter-spacing: 3px; }
  .mc-splash { font-size: 17px; }
  .mc-dug { min-height: 52px; font-size: 18px; }
  .mc-menu-sira .mc-dug { padding-left: 22px; padding-right: 8px; font-size: 15px; }
  .mc-menu-sira .mc-dug:hover::before, .mc-menu-sira .mc-dug:focus::before { left: 6px; }
  .ec-diyalog { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); width: auto; min-height: 92px; padding: 14px 40px 16px 16px; transform: none; }
  .ec-diyalog-metin { font-size: 17px; line-height: 24px; }
  .ec-diyalog.savasta { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); height: 96px; padding: 12px 16px; }
  .ec-arayuz.komutlu .ec-diyalog.savasta { right: 10px; }
  .ec-komut { left: 10px; right: 10px; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 106px); width: auto; height: 132px; padding: 8px; gap: 8px; }
  .ec-komut .ec-btn { gap: 8px; padding-left: 24px; padding-right: 8px; }
  .ec-komut .ec-btn::before { left: 8px; }
  .ec-komut .ec-svg { width: 20px; height: 20px; }
  .ec-komut-hamle { grid-template-columns: 1fr 1fr 56px; }
  .ec-komut-hamle .ec-btn { padding-right: 8px; padding-left: 22px; }
  .ec-komut-hamle .ec-btn::before { left: 7px; }
  .ec-hamle-ad { font-size: 15px; }
  .ec-hamle-alt { padding-right: 0; }
  .ec-etki { right: 4px; padding: 2px 4px 3px; font-size: 10px; }
  .ec-ben-alt .sayi { min-width: 64px; font: 8px/8px var(--f-piksel); }
  .ec-yan-dug { font-size: 12px; } .ec-komut-yan { gap: 8px; }
  .ec-kutu { width: min(290px, calc(100% - 20px)); padding: 9px 12px 11px; }
  .ec-kutu-ust .ad { font-size: 18px; }
  .ec-rakip { top: max(10px, env(safe-area-inset-top)); left: 10px; }
  .ec-ben { right: 10px; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 250px); }
  .ec-secim { left: 10px; right: 10px; bottom: 120px; width: auto; }
  .ec-kartlar { grid-template-columns: 1fr; }
  .ec-kart { flex-direction: row; align-items: center; text-align: left; padding: 10px 12px 13px 28px; }
  .ec-kart img { width: 72px; height: 72px; }
  .ec-kart-yazi { align-items: flex-start; gap: 6px; }
  .ec-kart::before { top: 50%; margin-top: -7px; }
  .ec-dex { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ec-dex-kart { padding: 8px 4px 10px; } .ec-dex-kart img { width: 48px; height: 48px; }
  .ec-yardim-ic { grid-template-columns: 1fr; }
  .ec-yardim-tus { width: 112px; }
  .ec-sol-ust { gap: 9px; max-width: calc(100% - 130px); } .ec-takim { gap: 7px; }
  .ec-takim-mob { width: 46px; padding: 3px 3px 6px; } .ec-takim-mob img { width: 36px; height: 36px; } .ec-takim-mob .ec-can { width: 36px; }
  .ec-ust-dug { gap: 8px; }
  .ec-ikon-dug { min-width: 42px; height: 42px; padding: 0 10px 3px; }
  .ec-menu-dug span, .ec-menu-dug .ec-tus { display: none; }
  .gz-maden.dokunmatik .ec-hotbar { left: auto; right: max(10px, env(safe-area-inset-right)); top: 66px; bottom: auto; flex-direction: column; transform: none; }
  .gz-maden.dokunmatik .ec-hotbar .mc-slot { width: 40px; height: 40px; }
  .gz-maden.dokunmatik .ec-hotbar .mc-slot img { width: 28px; height: 28px; }
  .ec-bolge { top: 76px; padding: 11px 14px 14px; letter-spacing: 0; }
  .ec-panel-ic { padding: 12px 12px 14px; }
  .ec-sekmeler { gap: 7px; } .ec-sekmeler .ec-btn { flex-direction: column; gap: 5px; padding: 8px 2px 11px; font-size: 8px; line-height: 8px; } .ec-sekmeler .ec-svg { width: 18px; height: 18px; }
  .ec-menu-alt .ec-btn { flex-basis: 96px; padding-left: 22px; padding-right: 8px; font-size: 16px; }
  .ec-menu-alt .ec-btn .ec-svg { display: none; }
  .mc-bildirimler { top: 66px; right: 60px; }
  .mc-toast { width: 260px; }
}
/* yatay telefon / kısa ekran: kartlar üstte yan yana, alt çubuk ince, ipucu joystick ile A/B arasında */
@media (max-height: 500px) and (min-width: 641px) {
  .ec-ben { top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); bottom: auto; }
  .ec-rakip { top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); }
  .ec-kutu { width: min(330px, calc(50% - 24px)); padding: 8px 12px 10px; }
  .ec-kutu-can { margin-top: 7px; }
  .ec-diyalog.savasta { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); height: 104px; padding: 14px 18px; }
  .ec-arayuz.komutlu .ec-diyalog.savasta { right: calc(10px + min(520px, 58%) + 10px); }
  .ec-komut { right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); height: 104px; padding: 8px; gap: 8px; }
  .ec-diyalog { bottom: max(10px, env(safe-area-inset-bottom)); min-height: 84px; padding: 12px 44px 14px 18px; }
  .ec-diyalog-metin { font-size: 18px; line-height: 25px; }
  .ec-bolge { top: 62px; padding: 10px 16px 13px; }
  .gz-maden.dokunmatik .ec-ipucu-satir { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 66px); max-width: calc(100% - 420px); white-space: normal; }
  .ec-komut-hamle .ec-btn { flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; padding-top: 4px; padding-bottom: 7px; }
  .ec-hamle-alt { display: none; }                         /* düğmenin rengi tipi zaten gösteriyor; ad tam sığsın */
  .ec-hamle-ad { font-size: 17px; }
  .ec-komut-hamle .ec-btn .ec-tus { top: 50%; bottom: auto; margin-top: -12px; }
  .ec-komut-hamle .ec-btn .ec-hamle-ad { padding-right: 28px; }
  .gz-maden.dokunmatik .ec-komut-hamle .ec-btn .ec-hamle-ad { padding-right: 0; }
  .ec-panel { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .ec-katman { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-can i, .ec-xp i, .ec-kutu { transition: none; }
  .ec-diyalog-devam, .ec-btn.secili::before, .ec-balon, .ec-ucan, .mc-splash { animation: none; }
}

/* ---------- ERENCRAFT 2: büyük macera (zamanlama, tahmin, nişanlar, ahır, zanaat, harita, gelişim) ---------- */
/* paneller üst üste açılır (menü → mob kartı → takı listesi…): hepsi aynı hücrede, sonuncusu üstte */
.ec-katman > * { grid-area: 1 / 1; z-index: 1; }
.ec-katman > .ec-panel { position: relative; }
.ec-katman > .ec-panel:not(:last-child) { visibility: hidden; }          /* alttaki panel üstteki açıkken gizli */
.ec-katman > .ec-gelisim, .ec-katman > .ec-jenerik, .ec-katman > .ec-olum { grid-area: auto; }        /* tam ekran: ızgara hücresi değil katmanın kendisi */
.ec-bolum { margin: 6px 0 2px; font: 8px/10px var(--f-piksel); letter-spacing: 1px; color: var(--ec-soluk); }
.ec-liste > .ec-bolum:first-child { margin-top: 0; }
.ec-panel-not.ec-not-ust { flex: none; margin: -4px 0 12px; }
.ec-taki-ikon { width: 20px; height: 20px; image-rendering: pixelated; }
.ec-satir em img { width: 16px; height: 16px; margin-right: 3px; vertical-align: -3px; image-rendering: pixelated; }
.ec-tik { display: inline-block; padding: 3px 4px; font: 8px/8px var(--f-piksel); color: #10131c; background: #9cf39c; box-shadow: 0 0 0 2px var(--ec-murekkep); }

/* kapışma: düşmanın niyeti (güç topluyor → SAVUN), eğitmenin kalan mobları */
.ec-niyet { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 10px; padding: 6px 9px 8px; font: 700 15px/18px var(--f-govde); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .5);
  background: #b8402f; box-shadow: 0 0 0 2px var(--ec-murekkep), inset 0 -3px 0 #6e2116; animation: ecNiyet .8s steps(2) infinite; }
.ec-niyet .ec-svg { width: 18px; height: 18px; color: var(--ec-sari); }
.ec-niyet .ec-pk { font-size: 16px; }
.ec-niyet small { flex-basis: 100%; font: 600 13px/16px var(--f-govde); color: #ffe6c8; }
@keyframes ecNiyet { 50% { background: #d8543e; } }
.ec-rakip-takim { display: flex; gap: 4px; margin-top: 8px; }
.ec-rakip-takim img { width: 20px; height: 20px; image-rendering: pixelated; }
.ec-rakip-takim img.bos { filter: grayscale(1) brightness(.5); }

/* zamanlama çubuğu: imleç akar, yeşilde bas */
.ec-zaman { position: absolute; left: 16px; bottom: 170px; z-index: 8; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 14px; width: min(520px, calc(100% - min(380px, calc(50% - 28px)) - 56px)); padding: 12px 16px 12px;
  color: var(--ec-yazi); background: var(--ec-panel); box-shadow: 0 0 0 3px var(--ec-murekkep), inset 0 0 0 3px var(--ec-cizgi), 6px 6px 0 3px rgba(0, 0, 0, .35);
  pointer-events: auto; cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none; }
.ec-zaman-bas { font: 16px/16px var(--f-piksel); color: var(--ec-sari); text-shadow: 2px 2px 0 var(--ec-murekkep); }
.ec-zaman.savun .ec-zaman-bas { color: #7cc4ff; }
.ec-zaman-yol { position: relative; height: 24px; background: #2b3040; box-shadow: 0 0 0 2px var(--ec-murekkep), inset 0 3px 0 #1a1e2a; }
.ec-zaman-iyi { position: absolute; top: 0; bottom: 0; left: 58%; width: 32%; background: #c9a12c; box-shadow: inset 0 3px 0 #f0d070; }
.ec-zaman-tam { position: absolute; top: 0; bottom: 0; left: 70%; width: 10%; background: #4ad04a; box-shadow: inset 0 3px 0 #9cf39c; }
.ec-zaman.savun .ec-zaman-iyi { background: #3a72c9; box-shadow: inset 0 3px 0 #6fa2ec; }
.ec-zaman.savun .ec-zaman-tam { background: #7cc4ff; box-shadow: inset 0 3px 0 #d6ecff; }
.ec-zaman-imlec { position: absolute; top: -7px; bottom: -7px; left: 0; width: 6px; margin-left: -3px; background: #fff; box-shadow: 0 0 0 2px var(--ec-murekkep); }
.ec-zaman-ipucu { grid-column: 1 / -1; font: 600 13px/16px var(--f-govde); color: var(--ec-soluk); text-align: center; }
.ec-zaman.bitti-mukemmel { box-shadow: 0 0 0 3px var(--ec-murekkep), inset 0 0 0 3px #4ad04a, 0 0 0 6px #4ad04a; }
.ec-zaman.bitti-iyi { box-shadow: 0 0 0 3px var(--ec-murekkep), inset 0 0 0 3px #c9a12c, 0 0 0 6px #c9a12c; }
.ec-zaman.bitti-yok { filter: grayscale(.8) brightness(.8); }
.ec-zaman-yazi { position: absolute; left: 50%; top: 40%; z-index: 9; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 18px 14px; transform: translate(-50%, -50%);
  font: 24px/24px var(--f-piksel); color: #9cf39c; text-shadow: 3px 3px 0 var(--ec-murekkep); background: rgba(16, 19, 28, .78); box-shadow: 0 0 0 3px var(--ec-murekkep);
  animation: ecZamanYazi .9s steps(6) forwards; pointer-events: none; white-space: nowrap; }
.ec-zaman-yazi small { font: 16px/16px var(--f-piksel); color: #fff; }
.ec-zaman-yazi.iyi { color: var(--ec-sari); }
.ec-zaman-yazi.savun { color: #7cc4ff; }
@keyframes ecZamanYazi { 0% { margin-top: 10px; } 30% { margin-top: 0; } 85% { opacity: 1; } 100% { margin-top: -14px; opacity: 0; } }
.ec-komut .ec-hamle.sarjli::after { content: ''; position: absolute; left: 4px; bottom: 7px; width: 6px; height: 6px; background: var(--ec-sari); box-shadow: 0 0 0 2px var(--ec-murekkep); }

/* HUD: görev hedefi (yıldız + metin), ekrandaki hedefin üstünde yıldız, ekran dışındaysa kenarda ok */
.ec-hedef { display: flex; align-items: flex-start; gap: 8px; max-width: 340px; padding: 7px 12px 10px 9px; font: 600 15px/19px var(--f-govde); color: #fff; text-shadow: 1px 1px 0 #000;
  background: rgba(16, 19, 28, .8); box-shadow: 0 0 0 3px rgba(16, 19, 28, .9), inset 0 -3px 0 var(--ec-sari); }
.ec-hedef-yildiz { flex: none; padding-top: 1px; color: var(--ec-sari); }
.ec-hedef-yildiz .ec-svg { width: 18px; height: 18px; }
.ec-hedef .ec-pk { font-size: 16px; }
.ec-hedef-ok { position: absolute; left: 0; top: 0; color: var(--ec-sari); transform: translate(-50%, -50%); filter: drop-shadow(2px 2px 0 #10131c) drop-shadow(-2px -2px 0 #10131c); animation: ecHedefOk .8s steps(2) infinite; }
.ec-hedef-ok svg { display: block; }
@keyframes ecHedefOk { 50% { opacity: .55; } }
.ec-hedef-isaret { position: absolute; left: 0; top: 0; color: var(--ec-sari); transform: translate(-50%, -100%); filter: drop-shadow(2px 2px 0 #10131c); animation: ecHedefIsaret 1s steps(2) infinite; }
.ec-hedef-isaret .ec-svg { width: 20px; height: 20px; }
@keyframes ecHedefIsaret { 50% { margin-top: -5px; } }

/* başlangıç zorluğu */
.ec-zorluk { width: min(680px, 100%); }
.ec-zorluk-kartlar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ec-zorluk-kart { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 16px 20px 30px; }
.ec-zorluk-kart::before { top: 28px; margin-top: 0; }
.ec-zorluk-kart > .ec-tus { position: absolute; right: 10px; top: 10px; }
.ec-zorluk-kart small { font: 500 15px/21px var(--f-govde); color: #eef0f6; text-shadow: none; }
.ec-oneri { padding: 3px 5px 4px; font: 8px/8px var(--f-piksel); font-style: normal; color: #10131c; text-shadow: none; background: var(--ec-sari); box-shadow: 0 0 0 2px var(--ec-murekkep); }

/* menü: çanta, görevler, nişanlar */
.ec-canta-ust { display: flex; flex: none; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 16px/20px var(--f-govde); color: var(--ec-soluk); }
.ec-canta-ust img { width: 24px; height: 24px; image-rendering: pixelated; }
.ec-canta-ust b { font: 16px/16px var(--f-piksel); color: var(--ec-sari); }
.ec-gorev-ana { display: flex; flex: none; align-items: flex-start; gap: 10px; padding: 12px 14px 14px; font: 600 17px/23px var(--f-govde); color: #fff; background: #151a27; box-shadow: 0 0 0 2px var(--ec-cizgi), inset 0 -3px 0 var(--ec-sari); }
.ec-gorev-ana > .ec-svg { width: 20px; height: 20px; margin-top: 2px; color: var(--ec-sari); }
.ec-gorev-ana small { display: block; margin-bottom: 6px; font: 8px/8px var(--f-piksel); letter-spacing: 1px; color: var(--ec-sari); }
.ec-menu-icerik > .ec-bolum { margin: 16px 0 10px; }
.ec-menu { height: min(720px, calc(100vh - 32px)); height: min(720px, calc(100dvh - 32px)); }       /* sekme değişince panel zıplamasın */
.ec-menu .ec-panel-ic { height: 100%; }
.ec-menu .ec-menu-icerik { flex: 1; }
.ec-dex-bilgi > span.ec-tik { flex-basis: auto; }
.ec-nisanlar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ec-nisan { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 9px; background: #151a27; box-shadow: 0 0 0 2px var(--ec-cizgi); }
.ec-nisan img { width: 40px; height: 40px; image-rendering: pixelated; filter: brightness(0) opacity(.35); }
.ec-nisan small { font: 600 13px/15px var(--f-govde); color: var(--ec-soluk); }
.ec-nisan.alindi { box-shadow: 0 0 0 2px var(--ec-sari); }
.ec-nisan.alindi img { filter: none; }
.ec-nisan.alindi small { color: #fff; }
.ec-yan-gorevler { display: flex; flex-direction: column; gap: 10px; }
.ec-yan-gorev { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 5px 10px; padding: 10px 12px 12px; color: #fff; background: #151a27; box-shadow: 0 0 0 2px var(--ec-cizgi); }
.ec-yan-gorev b { font: 700 17px/20px var(--f-govde); }
.ec-yan-gorev em { font: 8px/8px var(--f-piksel); font-style: normal; color: var(--ec-sari); white-space: nowrap; }
.ec-yan-gorev small { grid-column: 1 / -1; font: 500 14px/19px var(--f-govde); color: #d8dce8; }
.ec-yan-gorev.hazir { box-shadow: 0 0 0 2px #4ad04a; }
.ec-yan-gorev.hazir em { color: #9cf39c; }
.ec-yan-gorev.bitti { opacity: .62; }
.ec-yan-gorev.bitti em { color: var(--ec-soluk); }
.ec-dex-bilgi .ec-dex-zayif, .ec-dex-bilgi .ec-dex-gelisim { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 500 15px/20px var(--f-govde); color: #d8dce8; }

/* mob kartı */
.ec-mob-kart { width: min(700px, 100%); }
.ec-mob-kart .ec-panel-ic { overflow: auto; }
.ec-mob-ust { display: flex; flex: none; align-items: flex-start; gap: 16px; }
.ec-mob-buyuk { flex: none; width: 128px; height: 128px; image-rendering: pixelated; background: rgba(0, 0, 0, .22); box-shadow: 0 0 0 2px var(--ec-cizgi); }
.ec-mob-yan { display: flex; flex: 1; flex-direction: column; gap: 9px; min-width: 0; }
.ec-stat { display: flex; align-items: center; gap: 8px; }
.ec-stat-ad { flex: none; width: 34px; font: 8px/8px var(--f-piksel); color: var(--ec-sari); }
.ec-stat .ec-can, .ec-stat .ec-xp, .ec-stat-cubuk { flex: 1; min-width: 40px; }
.ec-stat-cubuk { position: relative; display: block; height: 10px; background: #2a2a2a; box-shadow: 0 0 0 2px var(--ec-murekkep); }
.ec-stat-cubuk i { display: block; height: 100%; background: #7cc4ff; box-shadow: inset 0 3px 0 #c8e6ff; }
.ec-stat b { flex: none; min-width: 46px; font: 16px/16px var(--f-piksel); text-align: right; }
.ec-stat small { flex: none; font: 700 13px/13px var(--f-govde); color: #9cf39c; }
.ec-stat small.taki { color: var(--ec-sari); }
.ec-mob-not { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 12px 0 0; font: 500 15px/20px var(--f-govde); color: #e3e6ef; }
.ec-mob-not img { width: 24px; height: 24px; image-rendering: pixelated; }
.ec-mob-not .ec-svg { width: 16px; height: 16px; color: var(--ec-sari); }
.ec-mob-not b { color: #fff; }
.ec-hamle-listesi { display: grid; flex: none; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ec-hamle-satir { --b: #4a5266; --b-ust: #6b7591; --b-alt: #2b3040;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 9px 10px 12px; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
  background: var(--b); box-shadow: inset 0 3px 0 var(--b-ust), inset 0 -4px 0 var(--b-alt), 0 0 0 2px var(--ec-murekkep); }
.ec-hamle-satir b { font: 700 16px/18px var(--f-govde); }
.ec-hamle-satir .ec-sv-kucuk { color: #fff; }
.ec-hamle-satir small { flex-basis: 100%; font: 500 13px/17px var(--f-govde); color: rgba(255, 255, 255, .92); }
.ec-hamle-satir .ec-tip { box-shadow: 0 0 0 2px rgba(16, 19, 28, .85); }

/* ahır: iki sütun (takım | ahır) */
.ec-ahir { width: min(900px, 100%); }
.ec-ahir-sutunlar { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; min-height: 0; margin: -6px; padding: 6px; overflow: auto; }
.ec-ahir-sutunlar section { display: flex; flex-direction: column; min-width: 0; }
.ec-ahir-sutunlar .ec-bolum { margin: 0 0 10px; }
.ec-ahir-sutunlar .ec-liste { overflow: visible; }
.ec-ahir .ec-satir-can .ec-can { width: min(150px, 50%); }

/* çalışma masası, dükkân */
.ec-zanaat, .ec-dukkan { width: min(720px, 100%); }
.ec-gerekler { display: flex; flex-wrap: wrap; gap: 6px; }
.ec-gerekler span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px 3px; font: 600 13px/16px var(--f-govde); text-shadow: none; background: rgba(0, 0, 0, .3); }
.ec-gerekler img { width: 16px; height: 16px; image-rendering: pixelated; }
.ec-gerekler .var { color: #9cf39c; }
.ec-gerekler .yok { color: #ffb0a0; }

/* harita: üstten ada, kamp ateşleri (ışınlan), bölge adları, eğitmenler */
.ec-harita { width: min(900px, 100%); }
.ec-harita .ec-panel-ic { overflow: auto; }
.ec-harita-cerceve { display: flex; flex: none; justify-content: center; padding: 8px; background: #0d1018; box-shadow: inset 0 0 0 2px var(--ec-cizgi); }
.ec-harita-alan { position: relative; flex: none; width: min(100%, calc((100vh - 316px) * 1.25)); width: min(100%, calc((100dvh - 316px) * 1.25)); min-width: 240px; aspect-ratio: 160 / 128; box-shadow: 0 0 0 2px var(--ec-murekkep); }
.ec-harita-resim { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.ec-harita-isaret, .ec-harita-kamp, .ec-harita-hedef, .ec-harita-ben { position: absolute; transform: translate(-50%, -50%); }
.ec-harita-isaret.bolge small { display: block; font: 8px/8px var(--f-piksel); letter-spacing: 0; color: #fff; white-space: nowrap; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 2px 0 #000; }
.ec-harita-isaret.bolge .ec-pk { font-size: 8px; }
.ec-harita-isaret.egitmen, .ec-harita-isaret.koy { width: 8px; height: 8px; box-shadow: 0 0 0 2px var(--ec-murekkep); }
.ec-harita-isaret.egitmen { background: #e8483c; }
.ec-harita-isaret.koy { background: #7cc4ff; }
.ec-harita-kamp { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; cursor: pointer; background: var(--ec-panel); box-shadow: 0 0 0 2px var(--ec-murekkep); }
.ec-harita-kamp img { width: 18px; height: 18px; image-rendering: pixelated; }
.ec-harita-kamp:hover, .ec-harita-kamp.secili { outline: none; box-shadow: 0 0 0 2px var(--ec-murekkep), 0 0 0 4px var(--ec-sari); }
.ec-harita-hedef { color: var(--ec-sari); filter: drop-shadow(1px 1px 0 #10131c) drop-shadow(-1px -1px 0 #10131c); animation: ecHedefOk .7s steps(2) infinite; }
.ec-harita-hedef .ec-svg { width: 16px; height: 16px; }
.ec-harita-ben { width: 10px; height: 10px; background: #fff; box-shadow: 0 0 0 2px #d2453a, 0 0 0 4px var(--ec-murekkep); animation: ecHedefOk .5s steps(2) infinite; }
.ec-harita-anahtar { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.ec-harita-anahtar i { display: inline-block; width: 10px; height: 10px; margin-left: 8px; box-shadow: 0 0 0 2px var(--ec-murekkep); }
.ec-harita-anahtar i.ben { background: #fff; box-shadow: 0 0 0 2px #d2453a; }
.ec-harita-anahtar i.hedef { background: var(--ec-sari); }
.ec-harita-anahtar i.kamp { background: #ff8a1a; }
.ec-kamp-listesi { display: grid; flex: none; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; max-height: 122px; margin: 12px -6px -6px; padding: 6px; overflow: auto; }
.ec-kamp-listesi .ec-satir { min-height: 44px; padding-top: 5px; padding-bottom: 8px; font-size: 16px; line-height: 18px; }
.ec-kamp-listesi .ec-satir .ec-ikon { width: 24px; height: 24px; }

/* gelişim sahnesi: beyaz siluet yanıp söner, sonra yeni biçim */
.ec-gelisim { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; background: #10131c; pointer-events: auto; }
.ec-gelisim-sahne { position: relative; width: 192px; height: 192px; }
.ec-gelisim-mob { position: absolute; inset: 0; width: 192px; height: 192px; image-rendering: pixelated; }
.ec-gelisim-mob.siluet { filter: brightness(0) invert(1); }
.ec-gelisim-isik { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: transparent;
  box-shadow: 0 -96px 0 #fff, 0 96px 0 #fff, -96px 0 0 #fff, 96px 0 0 #fff, -68px -68px 0 var(--ec-sari), 68px 68px 0 var(--ec-sari), 68px -68px 0 var(--ec-sari), -68px 68px 0 var(--ec-sari); animation: ecGelisimIsik .5s steps(2) infinite; }
@keyframes ecGelisimIsik { 50% { opacity: .2; } }
.ec-gelisim.flas { background: #fff; }
.ec-gelisim.tamam .ec-gelisim-isik { box-shadow: 0 -96px 0 var(--ec-sari), 0 96px 0 var(--ec-sari), -96px 0 0 var(--ec-sari), 96px 0 0 var(--ec-sari), -68px -68px 0 #9cf39c, 68px 68px 0 #9cf39c, 68px -68px 0 #9cf39c, -68px 68px 0 #9cf39c; }
.ec-gelisim-yazi { margin: 0; max-width: 640px; font: 700 22px/30px var(--f-govde); color: #fff; text-align: center; text-shadow: 2px 2px 0 #000; }
.ec-gelisim-ipucu { margin: 0; font: 600 14px/18px var(--f-govde); color: var(--ec-soluk); }

/* jenerik */
.ec-jenerik { position: absolute; inset: 0; overflow: hidden; color: #fff; text-align: center; background: #07090f; pointer-events: auto; cursor: pointer; }
.ec-jenerik-akis { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 20px 40px; transform: translateY(100vh); animation: ecJenerik 25s steps(500) forwards; }
@keyframes ecJenerik { to { transform: translateY(-100%); } }
.ec-jenerik p { margin: 4px 0; font: 500 19px/27px var(--f-govde); }
.ec-jenerik-logo { margin: 0 !important; font: 44px/48px var(--f-piksel) !important; color: #c9c9c9; text-shadow: 4px 4px 0 #6b6b6b, 8px 8px 0 #3b3b3b; }
.ec-jenerik-alt { font: 16px/20px var(--f-piksel) !important; letter-spacing: 2px; color: var(--ec-sari); }
.ec-jenerik-baslik { margin-top: 44px !important; font: 16px/18px var(--f-piksel) !important; letter-spacing: 1px; color: var(--ec-sari); }
.ec-jenerik-takim { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.ec-jenerik-takim span { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 150px; text-align: center; }
.ec-jenerik-takim img { width: 72px; height: 72px; image-rendering: pixelated; }
.ec-jenerik-takim small { font: 8px/8px var(--f-piksel); color: var(--ec-soluk); }
.ec-jenerik-son { margin-top: 64px !important; font: 700 28px/34px var(--f-govde) !important; color: var(--ec-sari); }
.ec-jenerik-gec { position: absolute; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); margin: 0; font: 600 14px/18px var(--f-govde); color: var(--ec-soluk); }

/* balık tutma: ünlem çıkınca bas */
.ec-balik { position: absolute; left: 50%; top: 42%; z-index: 9; display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(380px, calc(100% - 32px)); padding: 16px 20px 18px;
  transform: translate(-50%, -50%); color: var(--ec-yazi); text-align: center; background: var(--ec-panel); box-shadow: 0 0 0 3px var(--ec-murekkep), inset 0 0 0 3px var(--ec-cizgi), 6px 6px 0 3px rgba(0, 0, 0, .35);
  pointer-events: auto; cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none; }
.ec-balik-samandira { width: 48px; height: 48px; image-rendering: pixelated; animation: ecSamandira 1.2s steps(2) infinite; }
@keyframes ecSamandira { 50% { transform: translateY(4px); } }
.ec-balik-yazi { margin: 0; font: 600 17px/22px var(--f-govde); }
.ec-balik-unlem { font: 32px/32px var(--f-piksel); color: #ff4a3a; text-shadow: 3px 3px 0 var(--ec-murekkep); }
.ec-balik.vurgun { box-shadow: 0 0 0 3px var(--ec-murekkep), inset 0 0 0 3px var(--ec-sari), 0 0 0 6px var(--ec-sari); }
.ec-balik.vurgun .ec-balik-samandira { animation: ecSamandiraVur .12s steps(2) infinite; }
@keyframes ecSamandiraVur { 50% { transform: translateY(8px); } }
.ec-balik.tuttu { box-shadow: 0 0 0 3px var(--ec-murekkep), inset 0 0 0 3px #4ad04a, 0 0 0 6px #4ad04a; }
.ec-balik.kacti { filter: grayscale(.7); }

@media (max-width: 640px) {
  .ec-hedef { max-width: 230px; padding: 6px 9px 8px 7px; font-size: 13px; line-height: 17px; }
  .ec-bolge { top: 150px; }
  .ec-hedef .ec-pk { font-size: 8px; }
  .ec-zaman { left: 10px; right: 10px; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 108px); width: auto; padding: 10px 12px; gap: 6px 10px; }
  .ec-zaman-bas { font-size: 8px; line-height: 8px; }
  .ec-zaman-yazi { font-size: 16px; line-height: 16px; }
  .ec-zaman-yazi small { font-size: 8px; line-height: 8px; }
  .ec-niyet { font-size: 13px; line-height: 16px; }
  .ec-niyet small { font-size: 12px; }
  .ec-zorluk-kartlar, .ec-ahir-sutunlar, .ec-hamle-listesi { grid-template-columns: 1fr; }
  .ec-mob-ust { gap: 12px; }
  .ec-mob-buyuk { width: 88px; height: 88px; }
  .ec-stat b { min-width: 36px; font-size: 8px; line-height: 8px; }
  .ec-nisanlar { gap: 7px; }
  .ec-nisan img { width: 32px; height: 32px; }
  .ec-nisan small { font-size: 11px; }
  .ec-gelisim-sahne, .ec-gelisim-mob { width: 144px; height: 144px; }
  .ec-gelisim-yazi { font-size: 18px; line-height: 25px; }
  .ec-jenerik-logo { font-size: 24px !important; line-height: 28px !important; text-shadow: 2px 2px 0 #6b6b6b, 4px 4px 0 #3b3b3b; }
  .ec-jenerik p { font-size: 16px; line-height: 23px; }
  .ec-harita-alan { min-width: 0; }
  .ec-kamp-listesi { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ec-kamp-listesi .ec-satir { padding-left: 24px; font-size: 15px; }
  .ec-kamp-listesi .ec-satir em { display: none; }
}
@media (max-height: 500px) and (min-width: 641px) {
  .ec-zaman { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 116px); }
  .ec-hedef { max-width: 260px; font-size: 14px; line-height: 18px; }
  .ec-harita-alan { width: min(100%, calc((100vh - 150px) * 1.25)); width: min(100%, calc((100dvh - 150px) * 1.25)); }
}
@media (prefers-reduced-motion: reduce) {
  .ec-niyet, .ec-hedef-ok, .ec-hedef-isaret, .ec-harita-hedef, .ec-harita-ben, .ec-gelisim-isik, .ec-balik-samandira, .ec-zaman-yazi { animation: none; }
  .ec-jenerik-akis { position: static; transform: none; animation: none; padding-top: 24px; }
  .ec-jenerik { overflow: auto; }
}
