/* ==========================================================================
   Runevorn — zindanlara özel yürüyüş yolları
   Her zindan zemininin (.floor) ::after katmanı o zindanın yolu olarak kullanılır.

   ASIL GÖRÜNÜM (dosyanın sonundaki "RESİM TARZI YOL (v3)" bloğu):
   paths.js her zindanın hazır WebP dokularını --path-tile / --path-mouth olarak yükler ve
   zemine data-path-art="1" ekler. Taş rengi zindanın zemininden ölçülür. Üretim çizimleri
   tools/path-art.js dosyasındadır.

   YEDEK GÖRÜNÜM (aşağıdaki SVG/gradyan kuralları): dokular yüklenirken veya yüklenemezse
   görünen daha sade, çerçeveli yol.

   paths.js her zemine --path-start da yazar (kapı basamaklarının dibi); yol oradan başlar.
   Zeminler app.js'te style="--tex:url(assets/floor-<id>.jpg)" ile kurulur; seçiciler bunu kullanır.
   Kaldırmak için index.html'deki paths.css ve paths.js satırlarını silmek yeterlidir.
   ========================================================================== */

/* ---------- Ortak yol iskeleti (8 zindan) ---------- */
.floor::after {
  display: block;
  top: var(--path-start, 0px);
  /* transform yerine left: ekrana sabit ışık katmanı dönüşüm altında çalışmaz. */
  left: calc(50% - var(--road) / 2);
  transform: none;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(transparent, #000 20px);
  mask-image: linear-gradient(transparent, #000 20px);

  /* Basamak ve sahanlık taşı: zindanın renginden hafif bir ton alır. */
  --stone: color-mix(in srgb, var(--c) 9%, #262d31);
  --stone-hi: color-mix(in srgb, var(--c) 16%, #4f5a60);
  --curb: color-mix(in srgb, var(--c) 7%, #182126);
  --po: 112px; /* desenli yolun başladığı yer (sahanlığın altı) */

  --l-shadow: linear-gradient(#000000d9, #0000);
  --l-step: linear-gradient(180deg, var(--stone-hi) 0 2px, var(--stone) 2px 23px, #04070a 23px 31px, #0000 31px);
  --l-landing: linear-gradient(180deg, var(--stone-hi) 0 2px, color-mix(in srgb, var(--stone) 88%, #fff) 2px,
    var(--stone) 30px, color-mix(in srgb, var(--stone) 72%, #000) 70px, #04070a 70px 80px, #0000 80px);
  --l-rim: linear-gradient(90deg, #0000 22px, #ffffff14 22px 23px, #0000 23px calc(100% - 23px), #ffffff14 calc(100% - 23px) calc(100% - 22px), #0000 calc(100% - 22px));
  --l-post: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='86'><rect x='3' y='60' width='26' height='24' rx='2' fill='%231d2529' stroke='%23000' stroke-width='1.5'/><rect x='4' y='61' width='24' height='2' fill='%23fff' fill-opacity='.1'/><rect x='9' y='26' width='14' height='36' fill='%23283237' stroke='%23000' stroke-width='1.3'/><rect x='10.5' y='28' width='1.6' height='32' fill='%23fff' fill-opacity='.1'/><path d='M3 22h26l-4 7H7z' fill='%23384449' stroke='%23000' stroke-width='1.3'/><ellipse cx='16' cy='22' rx='11' ry='2.6' fill='%23000' fill-opacity='.7'/></svg>");
  --l-glow: radial-gradient(closest-side, color-mix(in srgb, var(--c) 40%, #fff) 0 8%, color-mix(in srgb, var(--c) 85%, transparent) 20%, color-mix(in srgb, var(--c) 30%, transparent) 50%, #0000);
  --l-curbs: linear-gradient(90deg, #05080bf2 0 4px, var(--curb) 4px 28px, #ffffff1f 28px 29px, #000000a6 29px 33px, #00000040 33px 44px, #0000 60px,
    #0000 calc(100% - 60px), #00000040 calc(100% - 44px), #000000a6 calc(100% - 33px) calc(100% - 29px), #ffffff1f calc(100% - 29px) calc(100% - 28px), var(--curb) calc(100% - 28px) calc(100% - 4px), #05080bf2 calc(100% - 4px));

  background:
    /* Kahramanın ayağının altındaki ışık havuzu: ekrana sabit, kaydırdıkça yol boyunca ilerler. */
    radial-gradient(closest-side, color-mix(in srgb, var(--c) 15%, transparent), #0000) 50% 72% / var(--road) 300px no-repeat fixed,
    /* Kapı ağzı: meşale alevleri, kaideler, gölge, sahanlıktaki oyma işaret, basamak ve sahanlık. */
    var(--l-glow) 0 2px / 48px 48px no-repeat,
    var(--l-glow) 100% 2px / 48px 48px no-repeat,
    var(--l-post) 8px 4px / 32px 86px no-repeat,
    var(--l-post) calc(100% - 8px) 4px / 32px 86px no-repeat,
    var(--l-shadow) 0 0 / 100% 22px no-repeat,
    radial-gradient(closest-side, color-mix(in srgb, var(--c) 30%, transparent), #0000) 50% 44px / 120px 64px no-repeat,
    var(--motif, none) 50% -108px / var(--motif-size, 80px 240px) no-repeat,
    var(--l-rim) 0 31px / 100% 70px no-repeat,
    var(--l-step) 50% 0 / calc(100% - 64px) 31px no-repeat,
    var(--l-landing) 0 31px / 100% 80px no-repeat,
    /* Desenli yol (sahanlığın altından başlar). */
    var(--deco-l, none) 3px var(--po) / var(--deco-size, 26px 120px) repeat-y,
    var(--deco-r, none) calc(100% - 3px) var(--po) / var(--deco-size, 26px 120px) repeat-y,
    var(--motif, none) 50% var(--po) / var(--motif-size, 80px 240px) repeat-y,
    var(--joints, none) 0 var(--po) / var(--joints-size, 100% 240px) var(--joints-repeat, repeat-y),
    var(--surface, none) 0 var(--po) / var(--surface-size, 100% 240px),
    var(--l-curbs);
}

/* Kapı yoksa (telefon görünümü) kapı ağzı süsleri çizilmez; yol en üstten başlar. */
.floor[data-gate='0']::after {
  --po: 0px;
  --l-shadow: none; --l-step: none; --l-landing: none; --l-rim: none; --l-post: none; --l-glow: none;
}

/* ---------- 1 · Kara Taş Mahzeni: oyulmuş taş levhalar, demir kenetler, turkuaz rünler ---------- */
.floor[style*="floor-stone"]::after {
  --deco-l: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='120'><rect x='2' y='108' width='22' height='26' rx='2' fill='%23202a2f' stroke='%23000' stroke-width='1.5'/><rect x='2' y='-14' width='22' height='26' rx='2' fill='%23202a2f' stroke='%23000' stroke-width='1.5'/><path d='M4 109.5H22M4-12.5H22' stroke='%23a9c4c0' stroke-opacity='.3'/><circle cx='13' cy='120' r='3.2' fill='%234c5d62' stroke='%23000' stroke-opacity='.6'/><circle cx='13' cy='0' r='3.2' fill='%234c5d62' stroke='%23000' stroke-opacity='.6'/><circle cx='12.2' cy='119.2' r='1.1' fill='%23fff' fill-opacity='.45'/><circle cx='12.2' cy='-.8' r='1.1' fill='%23fff' fill-opacity='.45'/></svg>");
  --deco-r: var(--deco-l);
  --motif: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='240' viewBox='0 0 80 240'><defs><radialGradient id='g'><stop offset='0' stop-color='%2377ddd0' stop-opacity='.32'/><stop offset='1' stop-color='%2377ddd0' stop-opacity='0'/></radialGradient></defs><circle cx='40' cy='180' r='36' fill='url(%23g)'/><g fill='none' stroke-linecap='round' stroke-linejoin='round'><path d='M40 154 63 180 40 206 17 180Z' stroke='%23000' stroke-opacity='.7' stroke-width='4'/><path d='M40 154 63 180 40 206 17 180Z' stroke='%23a6f2e8' stroke-opacity='.85' stroke-width='1.8'/><path d='M40 166v28M31 177l9 7 9-7M33 190h14' stroke='%23a6f2e8' stroke-opacity='.85' stroke-width='1.8'/><circle cx='40' cy='180' r='20' stroke='%2377ddd0' stroke-opacity='.4' stroke-dasharray='2 5'/></g></svg>");
  --joints: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='240' viewBox='0 0 100 240' preserveAspectRatio='none'><g fill='none'><path d='M0 1H100M0 121H100M50 1V121M25 121V240M75 121V240' stroke='%23000' stroke-opacity='.85' stroke-width='3.5' vector-effect='non-scaling-stroke'/><path d='M0 4H100M0 124H100M52.5 4V118M27.5 124V238M77.5 124V238' stroke='%23d6efea' stroke-opacity='.14' stroke-width='1.2' vector-effect='non-scaling-stroke'/></g></svg>");
  --surface: repeating-linear-gradient(180deg, #ffffff08 0 3px, #0000 40px, #0000 90px, #0000002e 120px);
  --surface-size: 100% 120px;
}

/* ---------- 2 · Ayaz Mezarları: çatlak buz levhalar, buz kristalleri, kar tanesi mühürler ---------- */
.floor[style*="floor-frost"]::after {
  /* Kapının beyaz buz basamaklarıyla uyumlu, buzlu açık sahanlık. */
  --stone: #6d8796;
  --stone-hi: #e4f6ff;
  --curb: #1d2c35;
  --l-landing: linear-gradient(180deg, #f2fbff 0 2px, #b9d6e4 2px, #7f9cab 26px, #4f6876 70px, #0a141a 70px 80px, #0000 80px);
  --deco-l: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='120'><path d='M2 34 24 46 2 58Z' fill='%23bfe9ff' fill-opacity='.38' stroke='%23eef9ff' stroke-opacity='.65'/><path d='M2 40 14 46 2 52Z' fill='%23fff' fill-opacity='.35'/><path d='M2 86 15 94 2 102Z' fill='%23bfe9ff' fill-opacity='.26' stroke='%23eef9ff' stroke-opacity='.45'/></svg>");
  --deco-r: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='120'><g transform='matrix(-1 0 0 1 26 0)'><path d='M2 34 24 46 2 58Z' fill='%23bfe9ff' fill-opacity='.38' stroke='%23eef9ff' stroke-opacity='.65'/><path d='M2 40 14 46 2 52Z' fill='%23fff' fill-opacity='.35'/><path d='M2 86 15 94 2 102Z' fill='%23bfe9ff' fill-opacity='.26' stroke='%23eef9ff' stroke-opacity='.45'/></g></svg>");
  --motif: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='240' viewBox='0 0 80 240'><defs><radialGradient id='g'><stop offset='0' stop-color='%23a7dcf5' stop-opacity='.34'/><stop offset='1' stop-color='%23a7dcf5' stop-opacity='0'/></radialGradient></defs><circle cx='40' cy='180' r='36' fill='url(%23g)'/><g fill='none' stroke-linecap='round'><path d='M40 156V204M19.2 168 60.8 192M19.2 192 60.8 168' stroke='%23000' stroke-opacity='.6' stroke-width='4'/><path d='M40 156V204M19.2 168 60.8 192M19.2 192 60.8 168M40 164l-5-5M40 164l5-5M40 196l-5 5M40 196l5 5M26 172l-7 1M26 172l-2-7M54 188l7-1M54 188l2 7M26 188l-7-1M26 188l-2 7M54 172l7 1M54 172l2-7' stroke='%23e3f7ff' stroke-opacity='.9' stroke-width='1.6'/></g></svg>");
  --joints: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='240' viewBox='0 0 100 240' preserveAspectRatio='none'><g fill='none' stroke-linejoin='round'><path d='M0 3 28 8 54 2 78 9 100 4M0 124 20 118 47 127 72 120 100 125M44 4 48 62 41 123M20 124 26 182 21 240M76 121 70 186 75 240M48 62 64 80M26 182 12 200' stroke='%23001018' stroke-opacity='.75' stroke-width='3' vector-effect='non-scaling-stroke'/><path d='M0 3 28 8 54 2 78 9 100 4M0 124 20 118 47 127 72 120 100 125M44 4 48 62 41 123M20 124 26 182 21 240M76 121 70 186 75 240M48 62 64 80M26 182 12 200' stroke='%23d9f4ff' stroke-opacity='.38' stroke-width='1.1' vector-effect='non-scaling-stroke'/></g></svg>");
  --surface: radial-gradient(circle, #e8f8ff2e 0 1px, #0000 1.6px), radial-gradient(circle, #e8f8ff1a 0 .8px, #0000 1.4px);
  --surface-size: 23px 19px;
}

/* ---------- 3 · Köz Kalesi: obsidyen levhalar, içinden lav sızan çatlaklar, köz çivileri ---------- */
.floor[style*="floor-ember"]::after {
  --deco-l: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='120'><circle cx='13' cy='60' r='10' fill='%23ff6a1f' fill-opacity='.18'/><circle cx='13' cy='60' r='4.5' fill='%233a1a10' stroke='%23000'/><circle cx='13' cy='60' r='2.6' fill='%23ff9a4d'/><circle cx='12.2' cy='59.2' r='1' fill='%23ffe2b5'/></svg>");
  --deco-r: var(--deco-l);
  --motif: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='240' viewBox='0 0 80 240'><defs><radialGradient id='g'><stop offset='0' stop-color='%23ff8a3d' stop-opacity='.4'/><stop offset='1' stop-color='%23ff8a3d' stop-opacity='0'/></radialGradient></defs><circle cx='40' cy='180' r='36' fill='url(%23g)'/><g fill='none' stroke-linejoin='round'><path d='M40 152C55 168 52 186 40 206 28 186 25 168 40 152Z' stroke='%23000' stroke-opacity='.7' stroke-width='4'/><path d='M40 152C55 168 52 186 40 206 28 186 25 168 40 152ZM40 170C46 178 45 188 40 196 35 188 34 178 40 170Z' stroke='%23ffc27a' stroke-opacity='.95' stroke-width='1.6'/><path d='M22 206H58' stroke='%23ffc27a' stroke-opacity='.5' stroke-width='1.4'/></g></svg>");
  --joints: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='240' viewBox='0 0 100 240' preserveAspectRatio='none'><g fill='none' stroke-linejoin='round'><path d='M0 2 20 5 40 1 60 4 80 1 100 3M0 122 25 119 50 124 75 120 100 122M50 3 47 40 53 80 49 121M25 121 28 170 23 240M75 121 72 180 77 240' stroke='%23000' stroke-opacity='.85' stroke-width='3.4' vector-effect='non-scaling-stroke'/><path d='M0 2 20 5 40 1 60 4 80 1 100 3M0 122 25 119 50 124 75 120 100 122M50 3 47 40 53 80 49 121M25 121 28 170 23 240M75 121 72 180 77 240' stroke='%23ff5a1f' stroke-opacity='.32' stroke-width='6' vector-effect='non-scaling-stroke'/><path d='M0 2 20 5 40 1 60 4 80 1 100 3M0 122 25 119 50 124 75 120 100 122M50 3 47 40 53 80 49 121M25 121 28 170 23 240M75 121 72 180 77 240' stroke='%23ffb066' stroke-opacity='.8' stroke-width='1.2' vector-effect='non-scaling-stroke'/></g></svg>");
  --surface: linear-gradient(115deg, #0000 40%, #ffffff09 50%, #0000 60%), linear-gradient(#0503024d, #0503024d);
  --surface-size: 100% 240px;
  animation: path-ember 3.4s ease-in-out infinite;
}
@keyframes path-ember { 50% { filter: brightness(1.14) saturate(1.1); } }

/* ---------- 4 · Derinlik: karanlık su üstünde basamak taşları, ışıldayan noktacıklar ---------- */
.floor[style*="floor-abyss"]::after {
  --deco-l: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='120'><g fill='%23cbb8ff'><circle cx='9' cy='26' r='7' fill-opacity='.14'/><circle cx='9' cy='26' r='2.2' fill-opacity='.9'/><circle cx='17' cy='66' r='5' fill-opacity='.12'/><circle cx='17' cy='66' r='1.5' fill-opacity='.8'/><circle cx='11' cy='100' r='8' fill-opacity='.14'/><circle cx='11' cy='100' r='2.6' fill-opacity='.9'/></g></svg>");
  --deco-r: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='120'><g fill='%23cbb8ff'><circle cx='17' cy='44' r='7' fill-opacity='.14'/><circle cx='17' cy='44' r='2.2' fill-opacity='.9'/><circle cx='9' cy='84' r='5' fill-opacity='.12'/><circle cx='9' cy='84' r='1.5' fill-opacity='.8'/><circle cx='15' cy='112' r='6' fill-opacity='.12'/><circle cx='15' cy='112' r='1.8' fill-opacity='.85'/></g></svg>");
  --motif: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='240' viewBox='0 0 80 240'><defs><radialGradient id='g'><stop offset='0' stop-color='%23b5a2f4' stop-opacity='.38'/><stop offset='1' stop-color='%23b5a2f4' stop-opacity='0'/></radialGradient></defs><circle cx='40' cy='180' r='36' fill='url(%23g)'/><circle cx='40' cy='180' r='19' fill='none' stroke='%23000' stroke-opacity='.6' stroke-width='4'/><circle cx='40' cy='180' r='19' fill='none' stroke='%23ddd2ff' stroke-opacity='.85' stroke-width='1.6'/><path d='M46 163a18 18 0 1 0 0 34 13 13 0 1 1 0-34Z' fill='%23ddd2ff' fill-opacity='.35'/><circle cx='34' cy='180' r='3' fill='%23ddd2ff'/></svg>");
  --joints: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='170' height='120'><g fill='%23b5a2f4' fill-opacity='.07' stroke='%23000' stroke-opacity='.8' stroke-width='3'><rect x='10' y='8' width='68' height='48' rx='22'/><rect x='92' y='8' width='68' height='48' rx='22'/><rect x='51' y='66' width='68' height='46' rx='22'/><rect x='-31' y='66' width='68' height='46' rx='22'/><rect x='133' y='66' width='68' height='46' rx='22'/></g><g fill='none' stroke='%23e1d8ff' stroke-opacity='.2'><path d='M30 10H58M112 10H140M71 68H99M151 68H179M-11 68H17'/></g></svg>");
  --joints-size: 170px 120px;
  --joints-repeat: round;
  --surface: repeating-radial-gradient(ellipse at 50% 50%, #0000 0 18px, #b5a2f40d 19px 20px, #0000 21px 40px), linear-gradient(#07051466, #07051466);
  --surface-size: 140px 90px;
}

/* ---------- 5 · Diken Mabedi: toprak patika, kenarlarda dikenli kökler, yaprak işaretleri ---------- */
.floor[style*="floor-thorn"]::after {
  --deco-l: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='240'><path d='M15 0C2 40 26 70 12 120 2 160 26 200 15 240' fill='none' stroke='%230d0804' stroke-width='8'/><path d='M15 0C2 40 26 70 12 120 2 160 26 200 15 240' fill='none' stroke='%238f6d40' stroke-width='3.4'/><g fill='%23769a48' stroke='%23000' stroke-opacity='.5'><path d='M9 38 1 34 8 44Z'/><path d='M21 82 29 78 22 88Z'/><path d='M8 150 0 147 7 157Z'/><path d='M22 196 30 192 23 202Z'/></g><g fill='%23b7d58b' fill-opacity='.85'><ellipse cx='20' cy='56' rx='5' ry='2.4' transform='rotate(-30 20 56)'/><ellipse cx='7' cy='178' rx='5' ry='2.4' transform='rotate(30 7 178)'/></g><circle cx='19' cy='120' r='6' fill='%23b7d58b' fill-opacity='.16'/><circle cx='19' cy='120' r='1.6' fill='%23d6f0b0'/></svg>");
  --deco-r: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='240'><g transform='matrix(-1 0 0 1 30 120)'><path d='M15-120C2-80 26-50 12 0 2 40 26 80 15 120' fill='none' stroke='%230d0804' stroke-width='8'/><path d='M15-120C2-80 26-50 12 0 2 40 26 80 15 120' fill='none' stroke='%238f6d40' stroke-width='3.4'/><g fill='%23769a48' stroke='%23000' stroke-opacity='.5'><path d='M9-82 1-86 8-76Z'/><path d='M21-38 29-42 22-32Z'/><path d='M8 30 0 27 7 37Z'/><path d='M22 76 30 72 23 82Z'/></g><ellipse cx='20' cy='-64' rx='5' ry='2.4' fill='%23b7d58b' fill-opacity='.85' transform='rotate(-30 20 -64)'/></g></svg>");
  --deco-size: 30px 240px;
  --motif: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='240' viewBox='0 0 80 240'><defs><radialGradient id='g'><stop offset='0' stop-color='%23b7d58b' stop-opacity='.34'/><stop offset='1' stop-color='%23b7d58b' stop-opacity='0'/></radialGradient></defs><circle cx='40' cy='180' r='36' fill='url(%23g)'/><g fill='none' stroke-linecap='round' stroke-linejoin='round'><path d='M40 156C58 168 58 192 40 204 22 192 22 168 40 156Z' stroke='%23000' stroke-opacity='.6' stroke-width='4'/><path d='M40 156C58 168 58 192 40 204 22 192 22 168 40 156ZM40 162V204M40 176l9-7M40 188l9-7M40 176l-9-7M40 188l-9-7' stroke='%23d6f0b0' stroke-opacity='.9' stroke-width='1.6'/></g></svg>");
  --joints: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><g fill='%23c9b48a' fill-opacity='.08' stroke='%23000' stroke-opacity='.55' stroke-width='1.6'><ellipse cx='22' cy='18' rx='9' ry='6'/><ellipse cx='84' cy='30' rx='6' ry='4'/><ellipse cx='54' cy='64' rx='11' ry='7'/><ellipse cx='12' cy='92' rx='6' ry='4'/><ellipse cx='98' cy='96' rx='9' ry='6'/><ellipse cx='60' cy='108' rx='4' ry='3'/></g><path d='M0 50C30 44 60 58 120 48' fill='none' stroke='%23000' stroke-opacity='.25' stroke-width='2'/></svg>");
  --joints-size: 120px 120px;
  --joints-repeat: round;
  --surface: radial-gradient(ellipse at 30% 40%, #3b2c1a40, #0000 60%), radial-gradient(ellipse at 70% 75%, #2c22144d, #0000 55%);
  --surface-size: 100% 240px;
}

/* ---------- 6 · Kül Mahzeni: mezar levhaları, kenarlarda mumlar, soluk mor kazımalar ---------- */
.floor[style*="floor-crypt"]::after {
  --deco-l: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='120'><circle cx='13' cy='52' r='11' fill='%23ffcf70' fill-opacity='.14'/><rect x='9' y='56' width='8' height='22' rx='1.5' fill='%23cdbfa4' stroke='%23000' stroke-opacity='.6'/><path d='M10 58c1 3 2 4 2 8' stroke='%23fff' stroke-opacity='.5' fill='none'/><rect x='6' y='77' width='14' height='4' rx='1' fill='%232b2630' stroke='%23000'/><path d='M13 45c3 4 3 7 0 10-3-3-3-6 0-10Z' fill='%23ffd27a'/><path d='M13 49c1.4 2 1.4 3.5 0 5-1.4-1.5-1.4-3 0-5Z' fill='%23fff3d0'/></svg>");
  --deco-r: var(--deco-l);
  --motif: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='240' viewBox='0 0 80 240'><defs><radialGradient id='g'><stop offset='0' stop-color='%23d3b3e1' stop-opacity='.3'/><stop offset='1' stop-color='%23d3b3e1' stop-opacity='0'/></radialGradient></defs><circle cx='40' cy='180' r='34' fill='url(%23g)'/><g fill='none' stroke-linecap='round'><path d='M40 158V202M28 172H52' stroke='%23000' stroke-opacity='.6' stroke-width='4'/><path d='M40 158V202M28 172H52M32 194l8 6 8-6' stroke='%23ecd6f7' stroke-opacity='.85' stroke-width='1.6'/><circle cx='40' cy='180' r='21' stroke='%23d3b3e1' stroke-opacity='.4' stroke-dasharray='1 5'/></g></svg>");
  --joints: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='240' viewBox='0 0 100 240' preserveAspectRatio='none'><g fill='none'><path d='M14 10H86V230H14Z' stroke='%23000' stroke-opacity='.85' stroke-width='3.4' vector-effect='non-scaling-stroke'/><path d='M14 12H86M16 10V230' stroke='%23efe0f7' stroke-opacity='.14' stroke-width='1.2' vector-effect='non-scaling-stroke'/><path d='M21 20H79V220H21Z' stroke='%23d3b3e1' stroke-opacity='.22' stroke-width='1' vector-effect='non-scaling-stroke'/></g><path d='M14 10H86V230H14Z' fill='%23d3b3e1' fill-opacity='.04'/></svg>");
  --surface: linear-gradient(#08060b40, #08060b40);
}

/* ---------- 7 · Fırtına: ıslak taş levhalar, ışıldayan şimşek çatlakları, iletken çiviler ---------- */
.floor[style*="floor-storm"]::after {
  --deco-l: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='120'><circle cx='13' cy='60' r='5' fill='%23566369' stroke='%23000' stroke-width='1.4'/><circle cx='12' cy='59' r='1.6' fill='%23fff' fill-opacity='.5'/><path d='M18 56l5-4-2 5 4-1' fill='none' stroke='%23bdf0ff' stroke-opacity='.8' stroke-width='1'/><circle cx='13' cy='60' r='10' fill='%2398d8f2' fill-opacity='.1'/></svg>");
  --deco-r: var(--deco-l);
  --motif: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='240' viewBox='0 0 80 240'><defs><radialGradient id='g'><stop offset='0' stop-color='%2398d8f2' stop-opacity='.36'/><stop offset='1' stop-color='%2398d8f2' stop-opacity='0'/></radialGradient></defs><circle cx='40' cy='180' r='36' fill='url(%23g)'/><circle cx='40' cy='180' r='21' fill='none' stroke='%23d8f6ff' stroke-opacity='.4'/><path d='M44 156 30 184H40L34 206 52 174H41Z' fill='%23bfefff' fill-opacity='.22' stroke='%23000' stroke-opacity='.6' stroke-width='3.5' stroke-linejoin='round'/><path d='M44 156 30 184H40L34 206 52 174H41Z' fill='none' stroke='%23d8f6ff' stroke-opacity='.95' stroke-width='1.5' stroke-linejoin='round'/></svg>");
  --joints: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='240' viewBox='0 0 100 240' preserveAspectRatio='none'><g fill='none' stroke-linejoin='round'><path d='M0 1H100M0 81H100M0 161H100M33 1V81M66 81V161M33 161V240' stroke='%23000' stroke-opacity='.85' stroke-width='3.4' vector-effect='non-scaling-stroke'/><path d='M0 4H100M0 84H100M0 164H100M35 4V78M68 84V158M35 164V238' stroke='%23e0f6ff' stroke-opacity='.13' stroke-width='1.2' vector-effect='non-scaling-stroke'/><path d='M62 0 70 35 58 62 74 98 63 130 70 160' stroke='%2398d8f2' stroke-opacity='.25' stroke-width='5' vector-effect='non-scaling-stroke'/><path d='M62 0 70 35 58 62 74 98 63 130 70 160' stroke='%23d8f6ff' stroke-opacity='.75' stroke-width='1.1' vector-effect='non-scaling-stroke'/></g></svg>");
  --surface: linear-gradient(180deg, #ffffff07, #0000 30%, #ffffff05 60%, #0000);
  --surface-size: 100% 80px;
  animation: path-storm 7s linear infinite;
}
@keyframes path-storm { 0%, 90%, 94%, 100% { filter: none; } 91% { filter: brightness(1.45); } 92.5% { filter: brightness(1.1); } 93% { filter: brightness(1.3); } }

/* ---------- 8 · Tutulma Tahtı: siyah mermer, altın kakma baklavalar, tutulma mühürleri ---------- */
.floor[style*="floor-eclipse"]::after {
  --stone: color-mix(in srgb, var(--c) 6%, #1b1719);
  --stone-hi: color-mix(in srgb, #e6c27a 28%, #3e3634);
  --curb: #17131a;
  --deco-l: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='120'><path d='M13 52 19 60 13 68 7 60Z' fill='%23e6c27a' fill-opacity='.75' stroke='%23000' stroke-opacity='.6'/><path d='M13 54 15 60 13 62Z' fill='%23fff3d6' fill-opacity='.7'/><path d='M13 0V40M13 80V120' stroke='%23e6c27a' stroke-opacity='.22' stroke-dasharray='2 6'/></svg>");
  --deco-r: var(--deco-l);
  --motif: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='240' viewBox='0 0 80 240'><defs><radialGradient id='g'><stop offset='0' stop-color='%23f2c98a' stop-opacity='.32'/><stop offset='1' stop-color='%23f2c98a' stop-opacity='0'/></radialGradient></defs><circle cx='40' cy='180' r='36' fill='url(%23g)'/><circle cx='40' cy='180' r='17' fill='%23120d10' stroke='%23000' stroke-opacity='.7' stroke-width='4'/><circle cx='40' cy='180' r='17' fill='none' stroke='%23f2d08a' stroke-opacity='.95' stroke-width='1.6'/><path d='M47 165a16 16 0 1 0 0 30 12 12 0 1 1 0-30Z' fill='%23f2d08a' fill-opacity='.8'/><g stroke='%23f2d08a' stroke-opacity='.55' stroke-linecap='round'><path d='M40 156v-5M40 209v-5M16 180h-5M69 180h-5M23 163l-4-4M57 197l4 4M57 163l4-4M23 197l-4 4'/></g></svg>");
  --joints: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='240' viewBox='0 0 100 240' preserveAspectRatio='none'><g fill='none'><path d='M50 0 100 60 50 120 0 60ZM50 120 100 180 50 240 0 180Z' stroke='%23000' stroke-opacity='.8' stroke-width='3.2' vector-effect='non-scaling-stroke'/><path d='M50 0 100 60 50 120 0 60ZM50 120 100 180 50 240 0 180Z' stroke='%23e6c27a' stroke-opacity='.42' stroke-width='1.2' vector-effect='non-scaling-stroke'/></g></svg>");
  --surface: linear-gradient(125deg, #0000 0 30%, #ffffff0a 33%, #0000 36% 62%, #ffffff07 64%, #0000 66%), linear-gradient(#05030780, #05030780);
}

/* ==========================================================================
   RESİM TARZI YOL (v3) — 8 zindan
   Doku paths.js tarafından tarayıcıda üretilir (--path-tile, --path-mouth):
   düzensiz kara bazalt taşlar; iki yanda içinden turkuaz ışık akan oyma taş pervaz (yer yer
   kırık, kırık yerde ışık kesilir); pervazın dışında moloz, yosun ve devrik sütun kütükleri.
   Kapı ağzında aynı taştan basamak, ortası ışıklı rün halkalı sahanlık; sahanlıktan çıkan
   kanallar pervazdaki kanallara bağlanır. Dokular yüklenene kadar önceki yol görünür.
   ========================================================================== */
.floor[data-path-art='1']::after {
  width: calc(var(--road) + 160px);
  left: calc(50% - var(--road) / 2 - 80px);
  -webkit-mask-image: linear-gradient(transparent, #000 16px);
  mask-image: linear-gradient(transparent, #000 16px);
  background:
    /* Kahramanın ayağının altındaki hafif ışık. */
    radial-gradient(closest-side, color-mix(in srgb, var(--c) 12%, transparent), #0000) 50% 72% / var(--road) 300px no-repeat fixed,
    var(--path-mouth) 0 0 / 100% 150px no-repeat,
    var(--path-tile) 0 150px / 100% 480px repeat-y;
}
/* Telefonda (kapı yok) kapı ağzı çizilmez. */
.floor[data-path-art='1'][data-gate='0']::after {
  background: var(--path-tile) 0 0 / 100% 480px repeat-y;
}

@media (prefers-reduced-motion: reduce) {
  .floor::after { animation: none !important; }
}
