/* Arayüz: parşömen ve taş pencereler (9-slice, assets/ui), ahşap düğmeler, kalite çerçeveli kutular.
   Tüm ölçüler --b (temel birim) ile ölçeklenir; mobilde küçülür. */
:root {
  --b: 16px; --kenar: #2b1a12; --parsomen: #f5e8c8; --parsomen2: #e9d8b0; --murekkep: #3a2616; --soluk: #7a5a3c;
  --q0: #9a9a9a; --q1: #5bb04a; --q2: #4a86e0; --q3: #a45ce0; --q4: #f0922a;
  --altin: #d9a53a; --kirmizi: #b8452e; --yesil: #4f8a3a;
}
@media (max-width: 900px) { :root { --b: 13px; } }
.ui-katman { position: fixed; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; background: rgba(20, 14, 10, .55); }
.ui-katman.acik { display: flex; }
.pencere { position: relative; color: var(--murekkep); font-size: var(--b); border: calc(var(--b) * 1.5) solid transparent;
  border-image: url(../assets/ui/pencere_parsomen.png) 6 / calc(var(--b) * 1.5) stretch; image-rendering: pixelated;
  background: linear-gradient(180deg, #f6e9c9, #efdcb2) padding-box; max-width: 96vw; max-height: 92vh; overflow: auto; overflow-x: hidden; box-sizing: border-box; } /* köşedeki × düğmesi birkaç piksel taşıp yatay kaydırma çubuğu açıyordu */
.pencere.tas { color: #f1e6cc; border-image-source: url(../assets/ui/pencere_tas.png); background: #4a4744 padding-box; }
.pencere h2 { margin: 0 0 .5em; padding-right: 2.2em; font-size: 1.35em; letter-spacing: .02em; display: flex; align-items: center; gap: .5em; }
.pencere h3 { margin: .6em 0 .3em; font-size: 1.05em; }
.kapat { position: absolute; top: -.3em; right: -.3em; width: 1.8em; height: 1.8em; border-radius: 50%; border: .12em solid var(--kenar); background: var(--kirmizi); color: #fff; font-weight: bold; cursor: pointer; line-height: 1; }
.dugme { font: inherit; font-weight: bold; color: #fbeed2; cursor: pointer; padding: .25em 1.1em .35em; min-height: 2.2em; border: calc(var(--b) * .35) solid transparent;
  border-image: url(../assets/ui/buton_normal.png) 3 4 fill / calc(var(--b) * .35) calc(var(--b) * .45) stretch; image-rendering: pixelated; background: none; text-shadow: 0 .08em 0 var(--kenar); }
.dugme:hover { border-image-source: url(../assets/ui/buton_ustunde.png); }
.dugme:active { border-image-source: url(../assets/ui/buton_basili.png); transform: translateY(.08em); }
.dugme:disabled { filter: grayscale(1) brightness(.8); cursor: not-allowed; }
.dugme.kucuk { font-size: .85em; min-height: 1.9em; padding: .15em .8em .25em; }
/* Kalite çerçeveli eşya kutusu (32×32 ikon, 2 kat) */
.kutu { position: relative; width: 4.4em; height: 4.4em; flex: none; image-rendering: pixelated; cursor: pointer; }
/* Lysera: zaten sahip olunan eşya altına döndü */
.kutu.lysera-altin > * { filter: grayscale(.6) brightness(.75); }
.kutu.lysera-altin::after { content: '×3'; position: absolute; right: -.2em; bottom: -.2em; font: bold .8em Georgia, serif; color: #2b1a12; background: #f0c24e; border: .1em solid #6b4a1c; border-radius: .6em; padding: 0 .3em; }
.kutu > img.ikon { position: absolute; inset: 10%; width: 80%; height: 80%; image-rendering: pixelated; }
.kutu > .cerceve { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.kutu.q4::after { content: ''; position: absolute; inset: 0; border-radius: .3em; box-shadow: 0 0 .5em #f0922a; pointer-events: none; animation: efsane 2s ease-in-out infinite; }
@keyframes efsane { 50% { box-shadow: 0 0 1em #ffc050; } }
.kutu.bos { cursor: default; } .kutu.bos > img.ikon { opacity: .75; }
.kutu.secili { outline: .18em solid #fff3c0; outline-offset: .1em; }
.kutu .adet { position: absolute; right: .15em; bottom: .05em; font-size: .75em; font-weight: bold; color: #fff; text-shadow: 0 0 .2em #000, 0 0 .2em #000; }
.izgara { display: grid; grid-template-columns: repeat(auto-fill, 4.4em); gap: .45em; }
.cizgi { height: .15em; background: linear-gradient(90deg, transparent, var(--soluk), transparent); margin: .6em 0; border: 0; }
.sekmeler { display: flex; gap: .3em; margin-bottom: .6em; flex-wrap: wrap; }
.sekme { font: inherit; cursor: pointer; padding: .3em .8em; border: .12em solid var(--kenar); border-radius: .4em .4em 0 0; background: var(--parsomen2); color: var(--murekkep); }
.sekme.acik { background: #fff7e2; font-weight: bold; }
.kalite-yazi.q0 { color: #6a6a6a; } .kalite-yazi.q1 { color: #3f8a30; } .kalite-yazi.q2 { color: #2f66c0; } .kalite-yazi.q3 { color: #8a3cc4; } .kalite-yazi.q4 { color: #c86a10; }
.kucuk-yazi { font-size: .82em; color: var(--soluk); }
.para { display: inline-flex; align-items: center; gap: .25em; font-weight: bold; }
.para img, .simge { width: 1.2em; height: 1.2em; image-rendering: pixelated; vertical-align: -.2em; }
/* Üst bilgi çubuğu */
#hud { position: fixed; top: .5em; right: .5em; z-index: 10; display: flex; gap: .5em; align-items: center; flex-wrap: wrap; justify-content: flex-end; font-size: var(--b); }
#hud .bilgi { display: flex; align-items: center; gap: .35em; background: rgba(43, 26, 18, .85); color: #f5e8c8; padding: .25em .6em; border-radius: .4em; border: .1em solid #6b4a2c; }
#hud .xpcubuk { width: 6em; height: .55em; background: #1a120c; border: .08em solid #6b4a2c; border-radius: .3em; overflow: hidden; }
#hud .xpcubuk > i { display: block; height: 100%; background: linear-gradient(#8fd0ff, #3c8ad8); }
/* İpucu (kısa cümle + ayrıntı) */
.ipucu-kutu { position: fixed; z-index: 40; pointer-events: none; max-width: 20em; font-size: calc(var(--b) * .9); color: var(--murekkep); background: var(--parsomen);
  border: .15em solid var(--kenar); border-radius: .35em; padding: .5em .7em; box-shadow: 0 .4em 1em rgba(0,0,0,.45); }
.ipucu-kutu b.baslik { display: block; font-size: 1.05em; margin-bottom: .15em; }
.ipucu-kutu .satir { display: flex; justify-content: space-between; gap: 1em; } .ipucu-kutu .artı { color: var(--yesil); } .ipucu-kutu .eksi { color: var(--kirmizi); }
.ipucu-kutu .hikaye { font-style: italic; color: var(--soluk); margin-top: .35em; }
/* Diyalog */
.diyalog { position: fixed; left: 50%; bottom: 1.2em; transform: translateX(-50%); z-index: 25; width: min(58em, 96vw); display: none; }
.diyalog.acik { display: block; }
.diyalog .ic { display: flex; gap: 1em; align-items: flex-start; }
.diyalog .portre { width: 12em; height: 12em; flex: none; image-rendering: pixelated; background: #3a2c20; border: .2em solid var(--kenar); border-radius: .3em; margin-top: -4em; box-shadow: 0 .3em .8em rgba(0,0,0,.4); }
.diyalog .ad { display: inline-block; font-weight: bold; font-size: 1.15em; margin-bottom: .2em; }
.diyalog .rol { font-size: .8em; color: var(--soluk); margin-left: .5em; }
.diyalog .metin { font-size: 1.1em; line-height: 1.45; min-height: 3em; }
.diyalog .secenekler { display: flex; flex-wrap: wrap; gap: .5em; margin-top: .7em; }
.diyalog .devam { position: absolute; right: .3em; bottom: .1em; font-size: .9em; color: var(--soluk); animation: zipla 1s steps(2) infinite; }
@keyframes zipla { 50% { transform: translateY(.2em); } }
/* Dükkân düzeni */
.dukkan { display: grid; grid-template-columns: 11em 1fr 15em; gap: 1em; width: min(62em, 94vw); }
.dukkan .sol img.portre { width: 10em; height: 10em; image-rendering: pixelated; border: .18em solid var(--kenar); border-radius: .3em; background: #3a2c20; }
.dukkan .sol .soz { font-style: italic; font-size: .9em; margin-top: .4em; }
.dukkan .detay { background: rgba(255, 250, 235, .55); border: .1em solid var(--parsomen2); border-radius: .4em; padding: .6em; }
.dukkan .detay img.buyuk { width: 6em; height: 6em; image-rendering: pixelated; display: block; margin: 0 auto .3em; }
.dukkan .etiket { display: inline-block; font-size: .75em; padding: .05em .45em; border-radius: .6em; background: var(--parsomen2); margin: .1em .15em 0 0; }
.dukkan .indirim { color: var(--yesil); font-weight: bold; }
@media (max-width: 900px) { .dukkan { grid-template-columns: 1fr; } .dukkan .sol { display: flex; gap: .6em; align-items: center; } .dukkan .sol img.portre { width: 5em; height: 5em; } }
/* Envanter / kuşam */
.envanter { display: grid; grid-template-columns: 22em 1fr; gap: 1.2em; width: min(66em, 94vw); }
.kusam { position: relative; height: 24em; background: radial-gradient(ellipse at 50% 70%, #e9d8b0 0, #d8c29a 60%, transparent 61%); }
.kusam canvas.kahraman { position: absolute; left: 50%; top: 1.5em; transform: translateX(-47%); width: 18em; height: 16.5em; image-rendering: pixelated; }
.kusam .yuva { position: absolute; }
.kusam .alt { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: .6em; }
@media (max-width: 900px) { .envanter { grid-template-columns: 1fr; } }
/* Özellik çubukları */
.ozellik { display: grid; grid-template-columns: 7em 1fr 4.5em; align-items: center; gap: .5em; margin: .25em 0; }
.ozellik .cubuk { height: .7em; background: #d8c29a; border-radius: .35em; overflow: hidden; border: .08em solid #b89a6a; }
.ozellik .cubuk > i { display: block; height: 100%; }
.ozellik .deger { text-align: right; font-weight: bold; }
.talih-kutu { border: .12em dashed var(--soluk); border-radius: .5em; padding: .6em .8em; background: rgba(255, 250, 235, .5); }
.durum { display: inline-block; padding: .1em .5em; border-radius: .6em; font-size: .85em; font-weight: bold; }
.durum.iyi { background: #d7ecc8; color: #2f6a20; } .durum.yorgun { background: #f3d6c8; color: #8a3a20; } .durum.bekle { background: #e8e0c8; color: #6a5a3a; }
/* Macera */
.macera-kartlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(16em, 1fr)); gap: .8em; width: min(62em, 92vw); }
.macera-kart { border: .15em solid var(--kenar); border-radius: .4em; overflow: hidden; background: #fff8e6; cursor: pointer; transition: transform .1s; }
.macera-kart:hover { transform: translateY(-.15em); } .macera-kart.secili { outline: .25em solid var(--altin); }
.macera-kart img { width: 100%; aspect-ratio: 2/1; object-fit: cover; image-rendering: pixelated; display: block; }
.macera-kart .gov { padding: .4em .6em .6em; } .macera-kart .sure { float: right; font-weight: bold; }
#sayac { position: fixed; inset: 0; z-index: 15; display: none; }
#sayac.acik { display: block; }
#sayac .arka { position: absolute; inset: 0; background-size: cover; background-position: center; image-rendering: pixelated; filter: brightness(.8); }
#sayac .panel { position: absolute; left: 50%; bottom: 1.5em; transform: translateX(-50%); width: min(44em, 94vw); text-align: center; }
#sayac .zaman { font-size: 3em; font-weight: bold; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
#sayac .yol { position: relative; height: 7em; margin: .3em 0 .2em; }
#sayac .yol .serit { position: absolute; left: 0; right: 0; bottom: .8em; height: .5em; border-radius: .3em; background: repeating-linear-gradient(90deg, #b89a6a 0 .8em, transparent .8em 1.4em); }
#sayac .yol .dolu { position: absolute; left: 0; bottom: .8em; height: .5em; border-radius: .3em; background: var(--altin); }
#sayac .yol canvas { position: absolute; bottom: .3em; width: 6em; height: 6em; transform: translateX(-50%); image-rendering: pixelated; }
#sayac .yol .bayrak { position: absolute; right: -.3em; bottom: .9em; font-size: 1.6em; }
.rapor { width: min(46em, 92vw); }
.rapor .hikaye-metin { font-size: 1.05em; line-height: 1.55; text-align: justify; }
.rapor .ganimet { display: flex; gap: .6em; flex-wrap: wrap; justify-content: center; margin: .6em 0; }
.rapor .ganimet .kutu { animation: belir .5s both; } @keyframes belir { from { transform: scale(.3) rotate(-8deg); opacity: 0; } }
/* Profil */
.profil { display: grid; grid-template-columns: 15em 1fr; gap: 1.2em; width: min(60em, 94vw); }
.profil canvas.kahraman { width: 15.3em; height: 14em; image-rendering: pixelated; background: radial-gradient(ellipse at 50% 75%, #e9d8b0 0, transparent 62%); }
.unvanlar { display: flex; flex-wrap: wrap; gap: .35em; }
.unvan { padding: .15em .6em; border-radius: 1em; border: .1em solid var(--soluk); font-size: .85em; background: #fff8e6; cursor: pointer; }
.unvan.secili { background: var(--altin); color: var(--kenar); font-weight: bold; } .unvan.kilitli { opacity: .45; cursor: default; }
.tablo { width: 100%; border-collapse: collapse; font-size: .92em; } .tablo td { padding: .2em .3em; border-bottom: .06em solid var(--parsomen2); } .tablo td:last-child { text-align: right; font-weight: bold; }
@media (max-width: 900px) { .profil { grid-template-columns: 1fr; } }

/* Maren'in yumurta açma büyüsü */
.buyu { position: relative; width: 12em; height: 12em; margin: .4em auto .8em; }
.buyu .hale { position: absolute; inset: 1em; border-radius: 50%; background: radial-gradient(circle, var(--renk) 0%, transparent 65%); opacity: .55; animation: hale 0.8s ease-in-out infinite alternate; }
.buyu .yum { position: absolute; left: 3em; top: 3em; width: 6em; height: 6em; image-rendering: pixelated; animation: salla .18s ease-in-out infinite alternate; }
.buyu .parilti { position: absolute; inset: 0; background-size: 300% 100%; image-rendering: pixelated; animation: parilti .45s steps(3) infinite; mix-blend-mode: screen; }
.buyu .flas { position: absolute; inset: -1em; border-radius: 50%; background: radial-gradient(circle, #fff 0%, var(--renk) 40%, transparent 70%); opacity: 0; }
.buyu.patla .flas { animation: flas .35s ease-out forwards; }
.buyu.patla .yum { animation: none; transform: scale(1.3); filter: brightness(2); transition: all .3s; }
@keyframes hale { from { transform: scale(.85); opacity: .35; } to { transform: scale(1.1); opacity: .75; } }
@keyframes salla { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes parilti { to { background-position: 150% 0; } }
@keyframes flas { to { opacity: 1; transform: scale(1.3); } }

/* Büyü: güçlü hale, doğuş */
.buyu .hale { opacity: .8; background: radial-gradient(circle, var(--renk) 0%, transparent 62%); }
.buyu .yum { left: 2em; top: 2em; width: 8em; height: 8em; }
.buyu.sonuc .yum { animation: dogus .5s cubic-bezier(.3, 1.6, .5, 1) both, zipla 1s .5s ease-in-out infinite; }
@keyframes dogus { from { transform: scale(.2); opacity: 0; filter: brightness(3); } }

/* Kuşamdakinden güçlü eşya oku */
.kutu .daha-iyi { position: absolute; right: .05em; top: -.2em; color: #3fbf4f; font-size: 1.35em; font-weight: bold; text-shadow: 0 0 .15em #fff, 0 .08em 0 #1d5a24; pointer-events: none; }
.daha-iyi-yazi { color: #3fbf4f; font-weight: bold; }

/* Oyun içi bildirim uyarısı (sağ üst) */
.oyun-uyari { position: fixed; right: 1em; top: 3.2em; z-index: 60; display: grid; gap: .5em; max-width: 22em; }
.uyari-satir { color: #2b1a12; background: #f3e2bd; border: .15em solid #5a3a1c; border-radius: .35em; padding: .5em .7em; box-shadow: 0 .2em .6em rgba(0,0,0,.45); cursor: pointer; animation: uyariGel .35s ease-out; font-size: .95em; }
@keyframes uyariGel { from { transform: translateX(120%); } }

/* Arena / düello */
.duello-kart { background: rgba(255,250,235,.55); border-radius: .4em; padding: .6em; display: grid; gap: .3em; align-content: start; }
.duello-kahraman { width: 8em; height: 8em; image-rendering: pixelated; justify-self: center; }
.duello-kahraman.ayna { transform: scaleX(-1); }
.bahis-satir { background: #f0dca8; border: .1em solid #8a6a2a; border-radius: .3em; padding: .2em .4em; }
.uyari-cumle { background: #f6d2c2; border-radius: .3em; padding: .3em .5em; }
.duello-ust { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1em; align-items: center; background: url(../assets/scenes/arena.png) center/cover; border-radius: .4em; padding: .6em; image-rendering: pixelated; }
.duello-taraf { display: grid; justify-items: center; background: rgba(255,245,220,.82); border-radius: .4em; padding: .4em; }
.duello-taraf .can { width: 100%; height: .6em; background: #3a2418; border-radius: .3em; overflow: hidden; }
.duello-taraf .can i { display: block; height: 100%; background: linear-gradient(#e0584a, #a32d24); transition: width .9s steps(10); }
.duello-vs { font-size: 1.8em; font-weight: bold; color: #fff3d0; text-shadow: 0 .08em .2em #000; }
.duello-saat { text-align: center; margin: .4em 0; font-weight: bold; }
.duello-hikaye { max-height: 16em; overflow: auto; background: rgba(255,250,235,.6); border-radius: .4em; padding: .5em .7em; display: grid; gap: .45em; }
.duello-satir { animation: uyariGel .01s; } .duello-satir.final { font-size: 1.1em; }
.duello-hikaye b.d1, .duello-kayit b.d1 { color: #a8551a; } .duello-hikaye b.d2, .duello-kayit b.d2 { color: #2f5fb0; }
.duello-sonuc { margin-top: .6em; background: #f0dca8; border: .12em solid #8a6a2a; border-radius: .4em; padding: .5em .7em; text-align: center; }
.duello-kayit { background: rgba(255,250,235,.55); border-radius: .3em; padding: .3em .6em; margin: .3em 0; } .duello-kayit summary { cursor: pointer; }

/* Dilek Kuyusu (yeni görsel yok: meydan sahnesi + kodla ışık) */
.kuyu-sahne { position: relative; height: 13em; border-radius: .4em; overflow: hidden; background: url(../assets/scenes/town_square.png) 50% 55%/260% auto; image-rendering: pixelated; }
.kuyu-isik { position: absolute; left: 50%; top: 58%; width: 9em; height: 9em; margin: -4.5em; border-radius: 50%; background: radial-gradient(circle, rgba(200,230,255,.95), rgba(120,180,255,.35) 45%, transparent 70%); animation: hale 1.4s ease-in-out infinite alternate; }
.kuyu-elvira { position: absolute; left: .5em; bottom: .5em; width: 4.5em; height: 4.5em; image-rendering: pixelated; border: .12em solid #2b1a12; border-radius: .2em; }
.kuyu-soz { position: absolute; left: 5.6em; right: .5em; bottom: .5em; background: rgba(255,248,230,.92); border-radius: .3em; padding: .3em .5em; font-size: .9em; }
.kuyu-sikke { position: absolute; left: 10%; top: 85%; width: 2em; image-rendering: pixelated; animation: sikkeAt 1.2s cubic-bezier(.3,.1,.6,1) forwards; }
.kuyu-sahne.atiliyor .kuyu-isik { animation: hale .25s ease-in-out infinite alternate; }
@keyframes sikkeAt { 0% { transform: translate(0,0) rotate(0); } 50% { transform: translate(14em,-8em) rotate(360deg); } 100% { transform: translate(21em,-2.5em) rotate(720deg) scale(.3); opacity: 0; } }
.kuyu-sonuc { display: flex; gap: .8em; align-items: center; margin-top: .6em; background: #eef4ff; border: .12em solid #6a8ab8; border-radius: .4em; padding: .5em .7em; animation: uyariGel .4s ease-out; }

/* Efsanevi töreni (kodla: altın ışınlar, sırayla tanrı sözleri) */
.toren { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(20,12,4,.78); animation: uyariGel .01s; }
.toren-isin { position: absolute; left: 50%; top: 42%; width: 160vmax; height: 160vmax; margin: -80vmax; background: repeating-conic-gradient(rgba(255,210,90,.16) 0 8deg, transparent 8deg 20deg); animation: torenDon 24s linear infinite; pointer-events: none; }
.toren-ic { position: relative; width: min(46em, 94vw); max-height: 90vh; display: grid; gap: .5em; justify-items: center; text-align: center; background: linear-gradient(#fff6dc, #f0d9a0); border: .25em solid #b8860b; border-radius: .6em; padding: 1em 1.2em; box-shadow: 0 0 3em rgba(255,200,80,.8); }
.toren-baslik { font-size: 1.9em; font-weight: bold; letter-spacing: .06em; color: #8a5a00; text-shadow: 0 0 .4em #ffd870; animation: torenNabiz 1.4s ease-in-out infinite alternate; }
.toren-alt { font-size: 1.15em; color: #3a2410; }
.toren-esya { display: grid; justify-items: center; gap: .2em; }
.toren-kutu { transform: scale(1.6); margin: 1.4em 1.4em 1.6em; animation: efsane 1.2s ease-in-out infinite; }
.toren-sozler { width: 100%; max-height: 40vh; overflow: auto; display: grid; gap: .45em; text-align: left; }
.toren-soz { background: rgba(255,255,255,.6); border-radius: .35em; padding: .35em .6em; color: #2b1a0c; animation: torenBelir .5s ease-out; }
@keyframes torenBelir { from { opacity: 0; transform: translateY(.6em); } }
@keyframes torenDon { to { transform: rotate(360deg); } }
@keyframes torenNabiz { from { transform: scale(1); } to { transform: scale(1.06); } }

.heybe-satir { display: flex; gap: .35em; align-items: center; flex-wrap: wrap; margin: .3em 0; }
.heybe-satir .kutu { width: 2.4em; height: 2.4em; }

/* İlk giriş: karakter yaratma */
.olustur { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: #1d1712 url(../assets/scenes/title.png) center/cover; image-rendering: pixelated; overflow: auto; }
.olustur-ic { width: min(52em, 94vw); background: var(--parsomen, #f3e2bd); color: var(--murekkep, #2b1a12); border: .25em solid #6b4a2c; border-radius: .5em; padding: 1em 1.2em; box-shadow: 0 .4em 1.6em rgba(0,0,0,.6); font-size: var(--b, 16px); margin: 1em 0; }
.olustur-ic h1 { margin: 0 0 .5em; font-size: 1.6em; text-align: center; }
.olustur-g { display: grid; grid-template-columns: 15em 1fr; gap: 1.2em; }
.olustur-onizleme { display: grid; justify-items: center; gap: .4em; text-align: center; }
.olustur-onizleme canvas { width: 12em; height: 12em; image-rendering: pixelated; background: radial-gradient(ellipse at 50% 70%, #e9d8b0 0, #d8c29a 60%, transparent 61%); }
.olustur-form { display: grid; gap: .7em; align-content: start; }
.olustur-form input { display: block; width: 100%; box-sizing: border-box; font: inherit; padding: .35em .5em; margin-top: .2em; border: .12em solid #6b4a2c; border-radius: .3em; background: #fffaf0; }
.olustur-secim { display: flex; flex-wrap: wrap; gap: .35em; margin-top: .25em; }
.olustur-hata { color: #a8321f; min-height: 1em; }
.ten-renk { display: inline-block; width: .9em; height: .9em; border-radius: 50%; border: .08em solid #2b1a12; margin-right: .3em; vertical-align: -.1em; }
@media (max-width: 760px) { .olustur-g { grid-template-columns: 1fr; } .olustur-onizleme canvas { width: 9em; height: 9em; } }
/* Görev kartı */
.rehber-kart { position: fixed; left: .5em; top: 3.2em; z-index: 18; width: min(21em, 90vw); background: #f3e2bd; color: #2b1a12; border: .18em solid #c98a2e; outline: .1em solid #2b1a12; border-radius: .45em; padding: .5em .7em; font-size: var(--b, 15px); box-shadow: 0 .3em 1em rgba(0,0,0,.45); animation: torenBelir .4s ease-out; }
.rehber-ust { display: flex; justify-content: space-between; align-items: center; gap: .5em; }
.rehber-gizle { all: unset; cursor: pointer; padding: 0 .3em; font-size: .9em; }
.rehber-metin { margin: .3em 0; font-size: .92em; }
.rehber-adimlar { display: flex; gap: .3em; margin-bottom: .4em; } .rehber-adimlar i { flex: 1; height: .35em; border-radius: .2em; background: #d8c29a; } .rehber-adimlar i.bitti { background: #4f8a3a; } .rehber-adimlar i.simdi { background: #c98a2e; animation: hale .9s ease-in-out infinite alternate; }
.rehber-kart.gizli .rehber-metin, .rehber-kart.gizli .rehber-adimlar, .rehber-kart.gizli > .dugme { display: none; }
body.telefon .rehber-kart { top: 3.2em; bottom: auto; left: .4em; right: .4em; width: auto; font-size: 13px; } /* altta oyuncunun kahramanını kapatıyordu */
.rehber-test { position: fixed; right: 0; top: 3em; z-index: 99998; max-width: 36em; background: rgba(0,0,0,.85); color: #8f8; font: 12px monospace; white-space: pre-wrap; padding: .5em; margin: 0; }

body.rehberde #ust label.ayar { display: none; }

/* Druid dönüşüm efekti (effects/druid_transform.png, 4 kare) */
.duello-taraf { position: relative; }
.druid-efekt { position: absolute; left: 50%; top: 0; width: 8em; height: 8em; margin-left: -4em; z-index: 2; background-size: 400% 100%; image-rendering: pixelated; animation: druidDon .35s steps(4) 4; pointer-events: none; }
@keyframes druidDon { to { background-position: 133.33% 0; } }

/* İlan Tahtası: görev satırları ve giriş serisi */
.gorev-satir { display: grid; grid-template-columns: 1fr auto auto; gap: .6em; align-items: center; padding: .35em .5em; border-bottom: .08em solid #d8c29a; }
.seri { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3em; margin: .4em 0 .6em; }
.seri-gun { display: grid; gap: .15em; text-align: center; font-size: .85em; background: rgba(255,250,235,.6); border: .1em solid #d8c29a; border-radius: .35em; padding: .3em .2em; }
.seri-gun.alindi { opacity: .5; } .seri-gun.simdi { border-color: #c98a2e; background: #f0dca8; }
body.telefon .seri { grid-template-columns: repeat(4, 1fr); }


/* Druid: dönüşüm taşının parlaması, beyaz parlama */
.tas-isik { position: absolute; width: 1.4em; height: 1.4em; margin: -.7em 0 0 -.7em; border-radius: 50%; z-index: 3; pointer-events: none; background: radial-gradient(circle, #fffde8 0, #b8ffc8 35%, rgba(90,255,150,.5) 55%, rgba(90,255,150,0) 72%); box-shadow: 0 0 .6em .2em rgba(140,255,170,.7); animation: tasParla 1.6s ease-in forwards; }
@keyframes tasParla { 0% { transform: scale(.25); opacity: .2; } 25% { transform: scale(.7); opacity: .9; } 40% { transform: scale(.55); } 60% { transform: scale(1.1); opacity: 1; } 75% { transform: scale(.9); } 100% { transform: scale(3.2); opacity: 0; } }
.donusum-flas { position: absolute; z-index: 2; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,240,.95) 0, rgba(180,255,200,.6) 40%, transparent 70%); animation: donusFlas .9s ease-out forwards; }
@keyframes donusFlas { 0% { opacity: 0; transform: scale(.4); } 35% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.4); } }

.macera-alt { position: sticky; bottom: -.1em; z-index: 2; background: linear-gradient(rgba(243,226,189,.85), #f3e2bd 30%); padding-top: .5em; }

/* Tarayıcı sürümü: prototip test düğmeleri yalnızca test adreslerinde görünür */
body:not(.test-modu) label.ayar { display: none !important; }
body:not(.gelistirici) .hizlandir { display: none !important; } /* 12 saatlik bekleme oyunun kendisi; hızlandırma yalnızca test ve #gelistirici için */

/* Macera reklam hızlandırma: yer tutucu reklam ekranı */
.reklam-ekran { position: fixed; inset: 0; z-index: 9000; background: rgba(10, 6, 4, .78); display: flex; align-items: center; justify-content: center; }
.reklam-ekran .pencere { width: min(26em, 90vw); text-align: center; display: flex; flex-direction: column; gap: .5em; }
.reklam-ekran .reklam-alan { height: 9em; display: flex; align-items: center; justify-content: center; border: .12em dashed #8a6a44; border-radius: .3em; background: rgba(255, 250, 235, .5); color: #8a6a44; font-size: 1.2em; }
.reklam-ekran .reklam-sayac { font-weight: bold; min-height: 1.2em; }
.kuyu-takvim { background: rgba(255, 250, 235, .6); border: .1em solid #c9a86a; border-radius: .4em; padding: .5em .8em; }
/* Arkadaşlar (web/arkadas.js) */
.arkadas-satir { display: flex; align-items: center; gap: .4em; padding: .2em 0; border-bottom: .06em solid rgba(60, 40, 20, .12); }
.arkadas-satir .dugme { min-width: 2.2em; margin-left: .25em; padding: .1em .4em; }
.arkadas-bolum .kucuk-yazi b { display: inline-block; margin-top: .4em; }

/* Kral'ın Şatoları (web/sato.js): armalar kodla çizilir, başlık assets/scenes/title.png */
.sato-banner { height: 8.5em; border-radius: .4em; margin-bottom: .6em; background: linear-gradient(90deg, rgba(20, 14, 10, .82) 0%, rgba(20, 14, 10, .35) 55%, rgba(20, 14, 10, 0) 80%), url(../assets/scenes/title.png) right 35% / cover no-repeat; color: #f6ecd2; display: flex; flex-direction: column; justify-content: center; padding: 0 1.2em; image-rendering: pixelated; }
.sato-banner b { font-size: 1.6em; text-shadow: 0 .08em .2em #000; } .sato-banner span { max-width: 26em; font-size: .9em; text-shadow: 0 .06em .15em #000; }
.sato-durum { display: flex; align-items: center; gap: .7em; flex-wrap: wrap; margin-bottom: .6em; padding: .5em .7em; background: rgba(255, 250, 235, .6); border: .1em solid #c9a86a; border-radius: .4em; }
.sato-tekboynuz { flex-basis: 100%; display: flex; align-items: center; gap: .5em; } .sato-tekboynuz .cubuk { flex: 1; max-width: 14em; height: .6em; background: rgba(0, 0, 0, .15); border-radius: .3em; overflow: hidden; display: inline-block; }
.sato-tekboynuz .cubuk i { display: block; height: 100%; background: linear-gradient(90deg, #b8c8ff, #fff6d8); }
.sato-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(16em, 1fr)); gap: .6em; margin-bottom: .6em; }
.sato-kart { display: flex; align-items: center; gap: .6em; padding: .5em; border: .12em solid #b98a3a; border-radius: .4em; background: rgba(255, 250, 235, .7); flex-wrap: wrap; }
.sato-kart.garnizon { background: rgba(235, 228, 212, .7); } .sato-kart.benim { border-color: #d9a63a; box-shadow: 0 0 .5em rgba(240, 194, 78, .8); }
.sato-kart .sato-bilgi { flex: 1; min-width: 9em; } .sato-kart .sato-ad { font-size: 1.05em; } .sato-kart .dugme { margin-left: auto; }
.sato-arma { flex: none; filter: drop-shadow(0 .08em .12em rgba(0, 0, 0, .45)); } h2 .sato-arma { vertical-align: middle; }
