/* ==========================================================================
   Baklava Crush — SAHNE (mobil öncelikli yol haritası)
   ---------------------------------------------------------------------------
   Referans tasarımın dili: kesintisiz akan izometrik sahne, altın korkuluklu
   kıvrımlı yol, madalyon bölüm düğümleri, çini kaplama tabelalar, tatlı
   heykelleri ve fenerler.

   Bu dosya `css/map.css`'ten SONRA yüklenir. Eski `map.css` yalnızca
   pencere/ayar/hesap katmanını (modal) besler; buradaki `.sc-*` sınıfları
   yeni mimaridir ve eski `.world` kurallarıyla çakışmaz.

   Ölçü birimi politikası
     • Dikey ritim px (yol çizimi px koordinat ister)
     • Madalyon çapı clamp() (cihazdan bağımsız dokunma hedefi)
     • Tüm yatay konumlar sahne kolonunun %'si
   ========================================================================== */

/* ==========================================================================
   0. SAHNE KABUĞU
   ========================================================================== */
.map-screen {
  min-height: 100dvh;
  background:
    radial-gradient(120% 60% at 50% 0%, #fdf6e6 0%, #f6ecd8 45%, #efe3cc 100%);
}
/* harita dışındaki alan da aynı sıcak zemini taşısın (beyaz bant olmasın) */
html.baklava-map-page,
body.baklava-map-page {
  background:
    radial-gradient(70% 50% at 50% 0%, #fdf8ee 0%, #f3e8d2 55%, #ecdfc6 100%);
  background-color: #f3e8d2;
}

/* harita artık tek bir dikey sahne kolonu: mobil öncelikli.
   Eski `.map-scroll` (style.css) iç kaydırma kutusuydu; sahne tam sayfa
   kaydırması kullanır ki sticky HUD ve tarayıcı adres çubuğu doğru davransın. */
.map-screen .map-scroll {
  max-width: 560px;
  max-height: none;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  overscroll-behavior: auto;
  position: relative;
  background: #fdf6e6;
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, .28),
    0 24px 60px rgba(90, 68, 24, .18);
}
.map-screen .map-scroll::-webkit-scrollbar { display: none; }

/* sahne aşaması: yolun ve madalyonların px tabanlı çizim alanı */
.sc-stage {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ==========================================================================
   1. ÜST BAR (HUD) — referans: avatar · can · altın · ayar · mesaj
   ========================================================================== */
.hud {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;                  /* sahne kolonuyla aynı hizada */
  margin: 0 auto;
  padding:
    calc(8px + env(safe-area-inset-top, 0px))
    calc(8px + env(safe-area-inset-right, 0px))
    14px
    calc(8px + env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg,
    rgba(255, 251, 240, .97) 0%,
    rgba(255, 248, 232, .88) 55%,
    rgba(255, 248, 232, 0) 100%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none;                 /* altındaki sahne kaydırılabilsin */
}
.hud > * { pointer-events: auto; }

/* --- avatar ------------------------------------------------------------- */
.hud-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background:
    conic-gradient(from 210deg, #8a5f14, #f7dfa0 18%, #c9962c 34%, #fff3cd 50%, #b8862a 66%, #f7dfa0 82%, #8a5f14);
  box-shadow:
    0 0 0 2px #fff8e4,
    0 0 0 4px rgba(201, 162, 39, .85),
    0 6px 14px rgba(90, 62, 14, .35);
  transition: transform .16s ease;
}
.hud-avatar:active { transform: scale(.94); }
.ha-inner {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #7f93ad;
  background: radial-gradient(circle at 34% 28%, #fdfeff, #dbe6f3 62%, #b9c9dd);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, .9), inset 0 -3px 6px rgba(120, 140, 170, .35);
}
.ha-inner svg { width: 58%; height: 58%; display: block; }
.ha-level {
  position: absolute;
  right: -3px;
  bottom: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  font-size: .62rem;
  font-weight: 800;
  color: #4a3208;
  background: linear-gradient(180deg, #ffeeb4, #e0b354 60%, #b8892c);
  border: 1.5px solid #fff8e4;
  box-shadow: 0 2px 5px rgba(80, 55, 10, .4);
}

/* --- kaynak kapsülleri -------------------------------------------------- */
.hud-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 5px 0 9px;
  border-radius: 99px;
  flex: 0 1 auto;
  min-width: 0;
  font-variant-numeric: tabular-nums;
  border: 2px solid #e9c169;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .45),
    inset 0 -3px 8px rgba(0, 0, 0, .18),
    0 4px 10px rgba(70, 45, 10, .28);
}
.hud-pill b { font-size: .9rem; letter-spacing: .01em; }
.hp-icon { font-size: .95rem; line-height: 1; flex: 0 0 auto; }
.hp-label {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: .82;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* can: koyu bordo gövde, altın çerçeve (referans) */
.hud-lives {
  background: linear-gradient(180deg, #8e3327 0%, #6d2118 55%, #4a120c 100%);
  color: #ffe9cd;
}
.hud-lives .hp-icon { color: #ff5a49; filter: drop-shadow(0 0 4px rgba(255, 90, 73, .8)); }
.hud-lives.is-full .hp-label { color: #ffd9a2; }

/* altın: parlak altın gövde, koyu yazı (referans) */
.hud-coins {
  background: linear-gradient(180deg, #ffeec0 0%, #f0cd76 42%, #d9a93f 72%, #b8862a 100%);
  color: #4a3208;
  border-color: #fff3cd;
}
.hud-coins .hp-icon { font-size: 1rem; }

/* "+" düğmesi */
.hp-plus {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-left: 1px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(122, 84, 14, .55);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  color: #4a3208;
  background: linear-gradient(180deg, #fff6d6, #f2cf7a 55%, #d4a441);
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(70, 45, 10, .35);
  transition: transform .12s ease, filter .12s ease;
}
.hp-plus:hover { filter: brightness(1.08); }
.hp-plus:active { transform: scale(.9); }

/* --- sağdaki ikonlar ---------------------------------------------------- */
.hud-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.hud-btn {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  color: #4a3208;
  border: 2px solid #fff3cd;
  background: linear-gradient(180deg, #ffeec0 0%, #f0cd76 45%, #cf9d33 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .7),
    0 3px 8px rgba(70, 45, 10, .32);
  transition: transform .14s ease, filter .14s ease;
}
.hud-btn:hover { filter: brightness(1.07); }
.hud-btn:active { transform: scale(.92); }
.hud-btn.muted { filter: grayscale(.8) opacity(.65); }
.hud-btn .dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d4402f;
  border: 1.5px solid #fffaf0;
  animation: scDot 1.8s ease-in-out infinite;
}
@keyframes scDot { 50% { transform: scale(1.3); } }

/* ==========================================================================
   2. ALT EYLEM ÇUBUĞU — dükkân · görev · yıldız · ses
   Referansta yan ikonlar vardı; mobilde başparmak erişimi için alta alındı.
   Böylece sahne görselinin üzeri hiç kapanmıyor.
   ========================================================================== */
.map-rail {
  position: fixed;
  z-index: 55;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: row;          /* map.css'teki dikey kuralı ezer */
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 250, 235, .96), rgba(248, 233, 200, .94));
  border: 1.5px solid rgba(201, 162, 39, .7);
  box-shadow: 0 6px 20px rgba(90, 66, 20, .3), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.rail-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  display: grid;
  place-items: center;
  color: #4a3208;
  border: 1.5px solid rgba(255, 243, 205, .9);
  background: linear-gradient(180deg, #ffeec0, #e6bb5c 60%, #c9982f);
  box-shadow: 0 3px 8px rgba(70, 45, 10, .3), inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: transform .14s ease;
}
.rail-btn:active { transform: scale(.9); }
.rail-btn.muted { filter: grayscale(.8) opacity(.6); }
.rail-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 40px;
  padding: 0 11px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 800;
  color: #4a3208;
  background: linear-gradient(180deg, #fff3c9, #e9c063 62%, #c9982f);
  border: 1.5px solid rgba(255, 243, 205, .95);
  box-shadow: 0 3px 8px rgba(70, 45, 10, .28), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.rail-stars b { font-variant-numeric: tabular-nums; }

/* sahnenin altını çubuğa karşı koru */
.map-screen .map-scroll { padding-bottom: 84px; }

/* ==========================================================================
   3. DÜNYA BANDI — kart değil, kesintisiz sahne dilimi
   ========================================================================== */
.sc-band {
  position: relative;
  isolation: isolate;
  --hero: 260px;
  --ground: #f6ecd6;
  --node: 70px;
  /* bandın gerçek yüksekliği stage'den gelir; alt/üst geçiş katmanları
     bu kutunun içinde kalır */
}

/* --- zemin: tüm bant boyunca süren bahçe + mermer dokusu --------------- */
.sc-ground {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    /* çim tarhları — yoğun, referanstaki bahçe zeminini taklit eder */
    radial-gradient(30% 7% at 10% 15%, rgba(143, 190, 120, .6), rgba(143, 190, 120, 0) 70%),
    radial-gradient(26% 6% at 90% 22%, rgba(143, 190, 120, .55), rgba(143, 190, 120, 0) 70%),
    radial-gradient(28% 6.5% at 14% 36%, rgba(143, 190, 120, .5), rgba(143, 190, 120, 0) 70%),
    radial-gradient(24% 6% at 88% 48%, rgba(143, 190, 120, .48), rgba(143, 190, 120, 0) 70%),
    radial-gradient(30% 7% at 12% 62%, rgba(143, 190, 120, .46), rgba(143, 190, 120, 0) 70%),
    radial-gradient(26% 6% at 90% 74%, rgba(143, 190, 120, .44), rgba(143, 190, 120, 0) 70%),
    radial-gradient(28% 6.5% at 16% 88%, rgba(143, 190, 120, .42), rgba(143, 190, 120, 0) 70%),
    /* sıcak ışık */
    radial-gradient(90% 14% at 50% 0%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 66%),
    /* mermer damarları */
    repeating-linear-gradient(112deg, rgba(198, 168, 112, .16) 0 1.5px, rgba(255, 255, 255, 0) 1.5px 46px),
    repeating-linear-gradient(28deg, rgba(198, 168, 112, .1) 0 1.5px, rgba(255, 255, 255, 0) 1.5px 64px),
    var(--ground);
}
/* zeminde fotoğraf tekrarı kullanılmaz: tekrar izi bırakır.
   Bahçe dokusu saf CSS ile kurulur (aşağıdaki .sc-ground katmanları). */
.sc-ground::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    /* çakıl/mercan döşeme noktaları */
    radial-gradient(circle at 50% 50%, rgba(180, 156, 110, .5) 0 1.1px, rgba(255, 255, 255, 0) 1.9px);
  background-size: 26px 26px, 26px 26px;
  background-position: 0 0, 13px 13px;
  opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 6%, #000 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 6%, #000 100%);
}

/* üzerine hafif süt beyazı perde: yazı ve madalyonlar okunur kalsın */
.sc-ground::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 252, 242, .34) 0%,
    rgba(255, 252, 242, .5) 34%,
    rgba(255, 252, 242, .58) 100%);
}

/* --- sahne vitrini: dünyanın "kapak" görseli --------------------------- */
.sc-visual {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--hero);
  z-index: 1;
  overflow: hidden;
}
/* görselin alt kenarı zemine yumuşakça karışır */
.sc-visual::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 54px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--ground) 92%);
  pointer-events: none;
}
.sc-visual-img {
  position: absolute;
  inset: 0;
  z-index: 2;                      /* SVG yedeğinin üstünde */
  background-repeat: no-repeat;
  background-size: 100% 100%;      /* 16:9 → tam sığar, kırpma yok */
  background-position: center;
}
.sc-band.bg-svg .sc-visual,
.sc-band.no-img .sc-visual {
  background: linear-gradient(180deg, var(--sky, #eaf4fb) 0%, var(--ground) 100%);
}

.sc-visual .sc-hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* dikey (9:16) sanat: vitrin tüm bandı kaplar, zemin görünmez */
.sc-band.bg-cover .sc-visual {
  height: 100%;
  -webkit-mask-image: none;
  mask-image: none;
}
.sc-band.bg-cover .sc-visual-img { background-position: center top; }
.sc-band.bg-cover .sc-ground { display: none; }

/* dikey sanatta tabela/heykel HUD'ın hemen altında durur */
.sc-band.bg-cover .sc-plaque { top: 84px; }
.sc-band.bg-cover .sc-prop { top: 168px; }

/* sanat yoksa (SVG yedeği) */
.sc-hero-svg { display: none; }

/* üst ve alt yumuşak geçiş: dünyalar birbirine akar */
.sc-band::before,
.sc-band::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 96px;
  z-index: 4;
  pointer-events: none;
}
.sc-band::before {
  top: 0;
  background: linear-gradient(180deg, rgba(253, 248, 236, .55), rgba(253, 248, 236, 0));
}
.sc-band::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(253, 248, 236, .5), rgba(253, 248, 236, 0));
}

/* --- dünya tabelası (çini kaplama, referans) ---------------------------- */
.sc-plaque {
  position: absolute;
  z-index: 6;
  top: calc(var(--hero) + 6px);
  width: min(46%, 200px);
  padding: 8px 11px 9px;
  text-align: center;
  color: #4a3210;
  border-radius: 10px;
  transform: rotate(-1.6deg);
  background:
    linear-gradient(180deg, #fffaeb 0%, #fdf3d9 55%, #f2e2bd 100%);
  border: 2px solid #c99a2e;
  box-shadow:
    0 0 0 3px rgba(255, 250, 235, .92),
    0 0 0 4.5px rgba(201, 154, 46, .65),
    0 8px 18px rgba(96, 66, 16, .3);
}
.sc-band.side-left .sc-plaque { left: 10px; }
.sc-band.side-right .sc-plaque { right: 10px; transform: rotate(1.6deg); }
.sc-plaque::before,
.sc-plaque::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(201, 154, 46, .85);
  border-radius: 3px;
}
.sc-plaque::before { top: 3px; left: 3px; border-right: 0; border-bottom: 0; }
.sc-plaque::after { bottom: 3px; right: 3px; border-left: 0; border-top: 0; }
.sp-kicker {
  display: block;
  font-size: .52rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #9a7a2c;
}
.sc-plaque h2 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: clamp(.92rem, 3.4vw, 1.1rem);
  line-height: 1.12;
  color: #43300f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .9);
}
.sp-meta {
  display: block;
  margin-top: 3px;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: #8a6a22;
}
.sp-bar {
  display: block;
  height: 4px;
  margin-top: 6px;
  border-radius: 99px;
  background: rgba(150, 120, 60, .3);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(110, 80, 30, .35);
}
.sp-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #e8c15a, #b8862a);
  box-shadow: 0 0 6px rgba(232, 193, 90, .8);
}

/* --- tatlı heykeli (referans: mermer kaide üstünde dev tatlı) ----------- */
.sc-prop {
  position: absolute;
  z-index: 3;
  top: calc(var(--hero) - 116px);
  width: clamp(92px, 24%, 136px);
  pointer-events: none;
}
.sc-band.side-left .sc-prop { right: -6px; }
.sc-band.side-right .sc-prop { left: -6px; }
.sc-prop img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(90, 64, 20, .34));
  animation: scPropFloat 7s ease-in-out infinite;
}
@keyframes scPropFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.sc-prop::after {
  content: "";
  position: absolute;
  left: 12%; right: 12%;
  bottom: -8px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(90, 66, 24, .28), rgba(90, 66, 24, 0) 72%);
}

/* tatlı heykeli yalnızca görseli olmayan dünyalarda kullanılır:
   raster sahnelerde tatlılar zaten görselin içinde var (çakışma olmasın) */
.sc-band.has-img .sc-prop { display: none; }

/* ==========================================================================
   4. YOL — geniş mermer yol + iki yanda altın korkuluk
   ========================================================================== */
.sc-road {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  --road: clamp(74px, 22vw, 116px);
}
.sc-road path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.rd-shadow  { stroke: rgba(109, 74, 14, .3); stroke-width: calc(var(--road) + 14px); }
.rd-rim     { stroke: #8a5f14; stroke-width: calc(var(--road) + 6px); }
.rd-rail    { stroke: #e8c169; stroke-width: var(--road); }
.rd-rail-hi { stroke: #f9e7b0; stroke-width: calc(var(--road) - 9px); }
.rd-marble  { stroke: #fdf7e6; stroke-width: calc(var(--road) - 22px); }
/* korkuluk dikmeleri: kesikli iki ince çizgi, yolun iki yanında */
.rd-baluster {
  stroke: rgba(138, 95, 20, .55);
  stroke-width: calc(var(--road) - 4px);
  stroke-dasharray: 2 13;
  opacity: .5;
}
.rd-stitch  {
  stroke: rgba(201, 162, 39, .38);
  stroke-width: 2;
  stroke-dasharray: 7 20;
  animation: scStitch 26s linear infinite;
}
@keyframes scStitch { to { stroke-dashoffset: -200; } }
@keyframes scStitch { to { stroke-dashoffset: -200; } }

/* ==========================================================================
   5. BÖLÜM MADALYONU (referans: altın disk + yıldızlar + taç)
   ========================================================================== */
/* yol kenarı süsleri */
.sc-deco {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -84%);
  pointer-events: none;
  opacity: .96;
}
.sc-deco svg { display: block; width: 100%; height: auto; }
.sc-deco.is-right { transform: translate(-50%, -84%) scaleX(-1); }
.sc-deco-bush.is-right { transform: translate(-50%, -84%); }
.sc-deco-lamp svg { filter: drop-shadow(0 0 10px rgba(255, 220, 140, .85)); }

.sc-band .lvl {
  position: absolute;
  z-index: 5;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  overflow: visible;
}
.sc-band .lvl-btn {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  width: var(--node);
  height: var(--node);
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 34% 26%, #fff8dc 0%, #f3d488 30%, #d9a93f 62%, #a9781f 100%);
  box-shadow:
    0 0 0 2px #fff6dd,
    0 0 0 4.5px rgba(201, 154, 46, .9),
    0 0 0 6px rgba(120, 84, 16, .18),
    0 7px 0 rgba(120, 84, 16, .34),
    0 12px 20px rgba(90, 62, 14, .34),
    inset 0 3px 0 rgba(255, 255, 255, .9),
    inset 0 -4px 10px rgba(120, 78, 14, .38);
  transition: transform .16s cubic-bezier(.22, .9, .3, 1.15), box-shadow .16s ease, filter .16s ease;
}
.sc-band .lvl-btn:active { transform: translate(-50%, -50%) translateY(3px) scale(.96); }
.sc-band .lvl-num {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4.6vw, 1.45rem);
  font-weight: 700;
  line-height: 1;
  color: #4a3208;
  margin-top: -3px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .9), 0 -1px 0 rgba(255, 240, 190, .6);
}
.sc-band .lvl-stars {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  display: flex;
  justify-content: center;
  gap: 1px;
  font-size: .5rem;
  line-height: 1;
  font-style: normal;
}
.sc-band .lvl-stars i { font-style: normal; color: rgba(92, 64, 10, .26); }
.sc-band .lvl-stars i.on {
  color: #8a5f0c;
  text-shadow: 0 1px 0 rgba(255, 240, 170, .95);
}

/* --- durumlar ----------------------------------------------------------- */
.sc-band .lvl.locked .lvl-btn {
  background: radial-gradient(circle at 34% 26%, #fdfeff 0%, #e2e9f2 34%, #c2ccda 66%, #9aa6b6 100%);
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 4.5px rgba(150, 164, 182, .85),
    0 7px 0 rgba(110, 124, 142, .3),
    0 12px 18px rgba(90, 104, 122, .26),
    inset 0 3px 0 rgba(255, 255, 255, .95);
  cursor: not-allowed;
}
.sc-band .lvl.locked .lvl-num { color: #6d7888; opacity: .9; }

.sc-band .lvl.done .lvl-btn { filter: saturate(.98); }

/* şu anki bölüm: daha büyük, nefes alan hale, taç */
.sc-band .lvl.current { z-index: 8; }
.sc-band .lvl.current .lvl-btn {
  width: calc(var(--node) + 16px);
  height: calc(var(--node) + 16px);
  background:
    radial-gradient(circle at 34% 26%, #fffdf0 0%, #ffeeb4 26%, #f5cf70 56%, #d2a036 84%, #a9781f 100%);
  box-shadow:
    0 0 0 2px #fffdf5,
    0 0 0 5px rgba(255, 226, 140, .95),
    0 0 0 9px rgba(255, 226, 140, .35),
    0 0 34px rgba(255, 224, 132, .9),
    0 8px 0 rgba(120, 84, 16, .3),
    0 15px 24px rgba(90, 62, 14, .34),
    inset 0 4px 0 rgba(255, 255, 255, 1);
  animation: scCurrent 2.4s ease-in-out infinite;
}
.sc-band .lvl.current .lvl-num { font-size: clamp(1.42rem, 5.4vw, 1.7rem); }
@keyframes scCurrent {
  0%, 100% { box-shadow: 0 0 0 2px #fffdf5, 0 0 0 5px rgba(255,226,140,.95), 0 0 0 9px rgba(255,226,140,.28), 0 0 26px rgba(255,224,132,.8), 0 8px 0 rgba(120,84,16,.3), 0 15px 24px rgba(90,62,14,.34), inset 0 4px 0 #fff; }
  50%      { box-shadow: 0 0 0 2px #ffffff, 0 0 0 6px rgba(255,240,180,1), 0 0 0 14px rgba(255,232,150,.2), 0 0 44px rgba(255,232,150,1), 0 8px 0 rgba(120,84,16,.3), 0 15px 24px rgba(90,62,14,.34), inset 0 4px 0 #fff; }
}

/* taç — referanstaki mücevherli altın taç */
.sc-crown {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(var(--node) * -0.62);
  width: calc(var(--node) * 0.6);
  height: calc(var(--node) * 0.42);
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fff3c4 0%, #f2cd6b 34%, #d9a53a 66%, #a9781f 100%);
  clip-path: polygon(0% 100%, 0% 34%, 17% 60%, 28% 0%, 50% 44%, 72% 0%, 83% 60%, 100% 34%, 100% 100%);
  filter: drop-shadow(0 3px 5px rgba(90, 62, 14, .45));
  animation: scCrownBob 2.4s ease-in-out infinite;
}
.sc-crown::after {
  content: "";
  position: absolute;
  left: 50%; top: 46%;
  width: 22%; height: 26%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ff8f7a, #c0392b 70%);
  box-shadow: 0 0 6px rgba(255, 90, 70, .8);
}
@keyframes scCrownBob { 50% { transform: translateX(-50%) translateY(-3px); } }

/* "OYNA" baloncuğu — madalyonun altında, referanstaki gibi nefes alır */
.sc-play {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: calc(var(--node) * 0.62);
  transform: translateX(-50%);
  padding: 3px 11px;
  border-radius: 99px;
  font-size: .5rem;
  letter-spacing: .16em;
  font-weight: 800;
  white-space: nowrap;
  color: #6b4d05;
  background: linear-gradient(180deg, #fffbe6, #f0cf74);
  border: 1.5px solid rgba(138, 104, 18, .7);
  box-shadow: 0 3px 8px rgba(120, 90, 20, .34);
  animation: scPlayBob 1.6s ease-in-out infinite;
}
@keyframes scPlayBob { 50% { transform: translateX(-50%) translateY(3px); } }

/* rozetler */
.sc-badge {
  position: absolute;
  right: -6px;
  top: -8px;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .56rem;
  border: 2px solid #fffaf0;
  box-shadow: 0 2px 6px rgba(60, 45, 10, .35);
}
.sc-badge.lock { background: #e6ecf4; }
.sc-badge.boss {
  width: 23px; height: 23px;
  font-size: .78rem;
  color: #4a3208;
  background: linear-gradient(160deg, #fff6d0, #e2c273 45%, #b08a34);
}

/* zor / patron halkası */
.sc-band .lvl.hard .lvl-btn {
  box-shadow: 0 0 0 2px #fff6dd, 0 0 0 4.5px rgba(192, 74, 57, .85), 0 7px 0 rgba(120, 84, 16, .32), 0 12px 20px rgba(90, 62, 14, .32), inset 0 3px 0 rgba(255, 255, 255, .9);
}
.sc-band .lvl.shake .lvl-btn { animation: scShake .5s ease; }
@keyframes scShake {
  0%, 100% { transform: translate(-50%, -50%); }
  20% { transform: translate(calc(-50% - 5px), -50%); }
  40% { transform: translate(calc(-50% + 5px), -50%); }
  60% { transform: translate(calc(-50% - 3px), -50%); }
  80% { transform: translate(calc(-50% + 3px), -50%); }
}

/* ==========================================================================
   6. DÜNYA SONU — kapı + gizli bonus
   ========================================================================== */
.sc-gate {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 14px 22px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 250, 238, 0), var(--ground) 62%);
}
.sc-gate .gt-icon {
  font-size: 1.4rem;
  line-height: 1;
  color: #c9992c;
  filter: drop-shadow(0 2px 6px rgba(200, 160, 60, .55));
}
.sc-gate.open .gt-icon { animation: scGate 2.4s ease-in-out infinite; }
@keyframes scGate { 50% { filter: drop-shadow(0 0 14px rgba(255, 226, 140, 1)); transform: scale(1.1); } }
.sc-gate b {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7a5a12;
}
.sc-gate i { font-size: .62rem; font-style: normal; color: #9a8a6a; }

/* bonus madalyonu */
.sc-bonus {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: center;
  margin: -8px 0 14px;
}
.sc-bonus .bonus-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 8px;
  border-radius: 99px;
  cursor: pointer;
  border: 2px solid #fff8e4;
  background: linear-gradient(165deg, #fffbeb, #ffeaa8 40%, #e0bd62 72%, #b08a34);
  box-shadow:
    0 0 0 2px rgba(201, 162, 39, .85),
    0 0 22px rgba(255, 226, 140, .65),
    0 5px 12px rgba(120, 92, 30, .3),
    inset 0 2px 0 rgba(255, 255, 255, .95);
  transition: transform .16s ease;
}
.sc-bonus .bonus-btn:hover { transform: translateY(-2px); }
.bn-glyph {
  width: 26px; height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .85rem;
  color: #5b4408;
  background: radial-gradient(circle at 35% 30%, #fffdf2, #e2c273 70%, #a8822a);
  box-shadow: inset 0 1px 0 #fff;
}
.bn-label {
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #5b4408;
  white-space: nowrap;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-bonus .lvl-stars { display: flex; gap: 1px; font-size: .54rem; }
.sc-bonus .lvl-stars i { font-style: normal; color: rgba(90, 65, 10, .3); }
.sc-bonus .lvl-stars i.on { color: #7a5a06; }
.sc-bonus.locked .bonus-btn {
  background: linear-gradient(165deg, #f6f8fc, #e2e8f1 55%, #c6cfdb);
  box-shadow: 0 0 0 2px rgba(140, 152, 170, .5), 0 4px 10px rgba(110, 125, 145, .22);
  cursor: not-allowed;
}
.sc-bonus.locked .bn-label,
.sc-bonus.locked .bn-glyph { color: #7a8492; }

/* ==========================================================================
   7. KİLİTLİ DÜNYA + eski katman temizliği
   ========================================================================== */
.sc-band.is-locked .sc-bg,
.sc-band.is-locked .sc-hero-svg {
  filter: saturate(.28) brightness(1.03) contrast(.96);
}
.sc-band.is-locked .sc-stage { opacity: .86; }
.sc-band.is-locked .sc-plaque h2 { color: #7a7f88; }
.sc-band.is-locked .sc-visual-img { filter: saturate(.3) brightness(1.04); }
.sc-band.is-locked .sc-visual .sc-hero-svg { filter: saturate(.3) brightness(1.04); }
.sc-band.is-locked .sc-lock { display: block; }

/* kilitli dünya bilgisi: tabelanın içinde sade satır */
.sc-lock {
  display: none;
  margin-top: 5px;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: #8a6f3c;
}

/* yeni sahnede kullanılmayan eski dekor katmanları */
.map-screen .map-skyline { display: none; }

/* eski map.css'ten gelen genel kural yeni madalyonları ezmesin */
.sc-band .lvl.golden .lvl-btn {
  background:
    radial-gradient(circle at 34% 26%, #fffdf2 0%, #ffeeb4 28%, #f0c85a 60%, #b8901f 100%);
}

/* ==========================================================================
   8. DUYARLI — mobil öncelikli, sonra masaüstü
   ========================================================================== */
@media (max-width: 400px) {
  .hud { gap: 6px; }
  .hud-avatar { width: 42px; height: 42px; }
  .hud-pill { height: 33px; padding-left: 7px; }
  .hud-pill b { font-size: .84rem; }
  .hp-label { display: none; }         /* en dar ekranda etiket gizlenir */
  .hud-btn { width: 34px; height: 34px; }
  .hp-plus { width: 22px; height: 22px; }
  .sc-band { --node: 62px; }
  .sc-plaque { width: min(58%, 190px); padding: 7px 10px 8px; }
}

@media (min-width: 561px) {
  .sc-band { --node: 74px; }
  .sc-plaque { width: min(38%, 230px); }
  .sc-prop { width: clamp(110px, 18%, 168px); }
}

@media (min-width: 900px) {
  .sc-band { --node: 80px; --road: 148px; }
  .sc-plaque { top: calc(var(--hero) + 10px); }
  /* geniş ekranda sahne kolonu büyür (temel kuraldan sonra gelmeli) */
  .map-screen .map-scroll,
  .map-screen .hud { max-width: 720px; }
  .map-rail { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-prop img,
  .sc-crown,
  .sc-play,
  .sc-band .lvl.current .lvl-btn,
  .sc-gate.open .gt-icon,
  .hud-btn .dot,
  .rd-stitch { animation: none !important; }
}
