/* ==========================================================================
   Baklava Crush — SARAY HARİTASI (10 dünya · kıvrımlı yol)
   Candy Crush mantığı: altın mermer yol üzerinde zikzak bölüm düğümleri,
   her dünyaya özgü mimari sahne, sabit üst menü, akıcı animasyonlar.
   ========================================================================== */

/* ---------------------------------------------------------- sabit üst bar */
.map-screen .topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: none;
  padding: 10px clamp(10px, 2.4vw, 22px);
  background: linear-gradient(180deg, rgba(255, 253, 248, .97) 0%, rgba(253, 248, 238, .93) 72%, rgba(253, 246, 234, .55) 100%);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid rgba(201, 162, 39, .32);
  box-shadow: 0 8px 26px rgba(120, 100, 60, .1);
}
.map-screen .topbar > * { min-width: 0; }

/* profil rozeti */
.profile-chip {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #fff6d6, #e2c273 45%, #b08a34);
  border: 2px solid #fffaf0;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, .75), 0 6px 14px rgba(138, 104, 18, .28);
  color: #8a6812;
  cursor: pointer;
}
.pc-avatar { width: 60%; height: 60%; opacity: .9; }
.pc-avatar svg { width: 100%; height: 100%; display: block; }
.pc-badge {
  position: absolute;
  right: -4px;
  bottom: -5px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 99px;
  background: linear-gradient(180deg, #7fb45a, #4f8a37);
  color: #fff;
  font-size: .64rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(40, 80, 20, .35);
}

/* cüzdan + ve rozetler */
.pill-plus {
  width: 19px;
  height: 19px;
  margin-left: 3px;
  border-radius: 50%;
  border: 1px solid rgba(138, 104, 18, .55);
  background: linear-gradient(180deg, #ffe9a8, #d9a94a);
  color: #5b4408;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.pill-plus:hover { filter: brightness(1.08); }
.pill-plus:active { transform: scale(.92); }

.icon-btn.has-dot { position: relative; }
.icon-btn .dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4402f;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(180, 40, 20, .4);
  animation: dotPulse 1.8s ease-in-out infinite;
}
@keyframes dotPulse { 50% { transform: scale(1.28); } }

/* ---------------------------------------------------------- harita başlığı */
.map-head { padding-top: 8px; }
.map-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.66rem);
  letter-spacing: .04em;
}
.map-sub { margin-top: 2px; }

.map-scroll {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(6px, 2vw, 16px) 28px;
  max-height: none;
  overflow: visible;
}

/* ==========================================================================
   DÜNYA BÖLÜMÜ
   ========================================================================== */
.world {
  position: relative;
  margin: 0 0 30px;
  border-radius: 26px;
  overflow: hidden;
  background: #fdf8ec;
  border: 1px solid rgba(201, 162, 39, .38);
  box-shadow:
    inset 0 1px 0 #fff,
    0 14px 34px rgba(120, 100, 60, .16);
  isolation: isolate;
}

/* --- giriş sahnesi ---------------------------------------------------- */
.world-hero {
  position: relative;
  height: clamp(230px, 46vw, 320px);
  overflow: hidden;
}
.world-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.04);
  z-index: 1;
}
.hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
}

/* --- raster fon yüklendiğinde: sahne tam genişlik "kartpostal" olur ----- */
.world-hero.has-bg {
  height: auto;
  aspect-ratio: 16 / 9;
  background: #fdf8ec;
}
.world-hero.has-bg .hero-svg { display: none; }
.world-hero.has-bg .world-hero-bg {
  background-position: center bottom;
  animation: heroPan 26s ease-in-out infinite alternate;
}
@keyframes heroPan {
  0%   { transform: scale(1) translateX(0); }
  100% { transform: scale(1.045) translateX(-1.2%); }
}
/* levha okunurluğu için alt yumuşak perde */
.world-hero.has-bg::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(253, 248, 236, 0) 0%,
    rgba(253, 248, 236, .35) 46%,
    rgba(253, 248, 236, .82) 78%,
    rgba(253, 248, 236, .96) 100%);
}

.world.is-locked .world-hero { filter: saturate(.35) brightness(1.02); }

/* raster fonlu sahnede levha sol alta "asılı tabela" gibi yerleşir,
   yolun ve altın disklerin önünü kapatmaz (referans tasarım) */
.world-hero.has-bg .world-banner {
  left: 14px;
  bottom: 12px;
  transform: none;
  width: min(58%, 300px);
  text-align: left;
  padding: 9px 13px 10px;
}
.world-hero.has-bg .world-banner h2 { font-size: clamp(.98rem, 2.6vw, 1.24rem); }
.world-hero.has-bg .world-banner p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
}

/* sahne renk sınıfları */
.hero-svg .h-dome { fill: #ffffff; opacity: .97; }
.hero-svg .h-palace { fill: #fffaf0; opacity: .97; }
.hero-svg .h-roof { fill: #e8c766; }
.hero-svg .h-light { fill: #cfe4f2; opacity: .85; }
.hero-svg .h-crescent { fill: #e8c766; }
.hero-svg .h-arch path { fill: #cfe0ee; opacity: .55; }
.hero-svg .h-tree { fill: #5f8f63; }
.hero-svg .h-hill { fill: #cfe3c9; opacity: .85; }
.hero-svg .h-water { fill: #a9d7ec; opacity: .9; }
.hero-svg .h-bridge { fill: #fdf7e8; stroke: #e3c98e; stroke-width: 3; }
.hero-svg .h-gold { fill: #e2c273; }
.hero-svg .h-kunefe { fill: #e0a45a; }
.hero-svg .h-lokum-a { fill: #f19ab5; }
.hero-svg .h-lokum-b { fill: #a9cf7e; }
.hero-svg .h-lokum-c { fill: #f6d27a; }
.hero-svg .h-lokum-d { fill: #c7a8e6; }
.hero-svg .h-candy-a { fill: #f8a8c8; }
.hero-svg .h-candy-b { fill: #9fd8e8; }
.hero-svg .h-tulip { fill: #e0517a; }
.hero-svg .h-stem { stroke: #4f8a4a; stroke-width: 2.4; fill: none; stroke-linecap: round; }
.hero-svg .h-sun { fill: #fff6d2; opacity: .9; }
.hero-svg .h-cloud ellipse { fill: #ffffff; opacity: .95; }
.hero-svg .h-shadow { fill: rgba(90, 80, 50, .22); }
.hero-svg .h-marble { fill: #d9c7a0; }
.hero-svg .h-marble-top { fill: #fdf8ec; stroke: #e8c766; stroke-width: 2; }
.hero-svg .h-lamp-post { fill: #b08a34; }
.hero-svg .h-lamp-glass { fill: #ffdf8e; }
.hero-svg .h-lamp-glow { fill: #ffdf8e; opacity: .3; }

/* animasyonlar */
.hero-clouds { animation: cloudDrift 34s ease-in-out infinite alternate; }
@keyframes cloudDrift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(46px); }
}
.hero-lamps .h-lamp-glow { animation: lampFlicker 3.4s ease-in-out infinite; transform-origin: center; }
@keyframes lampFlicker {
  0%, 100% { opacity: .26; }
  50%      { opacity: .46; }
}
.hero-svg .h-water { animation: waterShimmer 6s ease-in-out infinite; }
@keyframes waterShimmer {
  0%, 100% { opacity: .92; }
  50%      { opacity: .74; }
}

/* --- dünya levhası ---------------------------------------------------- */
.world-banner {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(92%, 400px);
  padding: 10px 16px 11px;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 253, 246, .97), rgba(250, 240, 218, .95));
  border: 1px solid rgba(201, 162, 39, .7);
  box-shadow:
    inset 0 1px 0 #fff,
    0 8px 22px rgba(120, 92, 30, .22);
  z-index: 3;
}
.world-kicker {
  display: inline-block;
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8a6812;
}
.world-banner h2 {
  margin: 2px 0 1px;
  font-size: clamp(1.05rem, 3.4vw, 1.4rem);
  color: var(--gold-deep);
  text-shadow: 0 1px 0 #fff;
  line-height: 1.1;
}
.world-banner p {
  margin: 0 0 6px;
  font-size: .68rem;
  color: var(--ink-faint);
  font-style: italic;
  font-family: var(--font-display);
}
.world-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .64rem;
  font-weight: 700;
  color: var(--gold-deep);
}
.wp-stars { flex: 0 0 auto; }
.wp-count { flex: 0 0 auto; color: var(--silver-deep); }
.wp-bar {
  flex: 1;
  height: 7px;
  border-radius: 99px;
  background: rgba(160, 140, 90, .25);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(120, 100, 50, .3);
}
.wp-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--foil-gold);
  box-shadow: 0 0 8px rgba(232, 199, 102, .8);
  transition: width .5s ease;
}

/* kilitli dünya */
.world-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  z-index: 4;
  background: rgba(250, 246, 236, .58);
  backdrop-filter: blur(2px);
  color: #7c6a48;
}
.world-lock span { font-size: 2rem; filter: grayscale(.4); }
.world-lock b { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.world-lock i { font-size: .68rem; font-style: normal; opacity: .8; }

/* --- yol -------------------------------------------------------------- */
.world-path {
  position: relative;
  width: min(100%, 620px);
  margin: 0 auto;
  border-radius: 22px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, .95), rgba(252, 245, 230, .6) 55%, rgba(248, 238, 219, .28) 100%),
    repeating-linear-gradient(90deg, rgba(201, 162, 39, .05) 0 1px, transparent 1px 44px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.world.is-locked .world-path { opacity: .72; }

.road-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.road-svg path { vector-effect: non-scaling-stroke; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.road-edge   { stroke: #b08a34; stroke-width: 40; opacity: .9; }
.road-gold   { stroke: #e3bf6b; stroke-width: 33; }
.road-marble { stroke: #fbf3df; stroke-width: 24; }
.road-stitch {
  stroke: rgba(201, 162, 39, .55);
  stroke-width: 2;
  stroke-dasharray: 6 16;
  animation: stitchFlow 22s linear infinite;
}
@keyframes stitchFlow { to { stroke-dashoffset: -220; } }

/* uçuşan altın zerreler */
.world-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 18%, rgba(232, 199, 102, .8) 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 74% 42%, rgba(232, 199, 102, .7) 0 1.4px, transparent 2px),
    radial-gradient(circle at 42% 68%, rgba(255, 248, 224, .95) 0 1.8px, transparent 2.4px),
    radial-gradient(circle at 86% 84%, rgba(232, 199, 102, .6) 0 1.2px, transparent 1.8px);
  background-size: 320px 300px;
  animation: sparkleDrift 24s linear infinite;
  opacity: .8;
}
@keyframes sparkleDrift {
  0%   { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 40px -120px, -30px -180px, 26px -90px, -18px -150px; }
}

/* --- bölüm düğümü ----------------------------------------------------- */
.lvl {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 0;
  height: 0;
  overflow: visible;
}
.lvl-btn {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  border: 3px solid #fffaf0;
  background: linear-gradient(165deg, #fff3cf 0%, #e9c76f 42%, #c9a227 72%, #a07f22 100%);
  box-shadow:
    0 0 0 2px rgba(138, 104, 18, .55),
    0 6px 0 rgba(138, 104, 18, .35),
    0 10px 18px rgba(110, 85, 25, .35),
    inset 0 2px 0 rgba(255, 255, 255, .95),
    inset 0 -3px 8px rgba(120, 85, 15, .4);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.lvl-btn:active { transform: translate(-50%, -50%) translateY(2px) scale(.97); }
.lvl-num {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  color: #4a3606;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .85), 0 -1px 0 rgba(255, 240, 190, .5);
  margin-top: -4px;
}
.lvl-stars {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 1px;
  font-size: .56rem;
  line-height: 1;
}
.lvl-stars i { font-style: normal; color: rgba(90, 65, 10, .28); }
.lvl-stars i.on { color: #7a5a06; text-shadow: 0 1px 0 rgba(255, 238, 170, .9); }

/* durumlar */
.lvl.done .lvl-btn { filter: saturate(.96); }
.lvl.current { z-index: 5; }
.lvl.current .lvl-btn {
  width: 74px;
  height: 74px;
  background: linear-gradient(165deg, #fffbe6 0%, #ffe49a 34%, #f0c85a 62%, #cf9f22 100%);
  box-shadow:
    0 0 0 3px rgba(255, 250, 230, .9),
    0 0 0 6px rgba(232, 199, 102, .6),
    0 0 34px rgba(255, 226, 140, .95),
    0 8px 0 rgba(138, 104, 18, .32),
    0 14px 24px rgba(110, 85, 25, .4),
    inset 0 3px 0 rgba(255, 255, 255, 1);
  animation: currentPulse 2.2s ease-in-out infinite;
}
.lvl.current .lvl-num { font-size: 1.56rem; }
@keyframes currentPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,250,230,.9), 0 0 0 6px rgba(232,199,102,.5), 0 0 26px rgba(255,226,140,.8), 0 8px 0 rgba(138,104,18,.32), 0 14px 24px rgba(110,85,25,.4), inset 0 3px 0 #fff; }
  50%      { box-shadow: 0 0 0 3px rgba(255,255,245,1), 0 0 0 10px rgba(255,236,170,.42), 0 0 46px rgba(255,232,150,1), 0 8px 0 rgba(138,104,18,.32), 0 14px 24px rgba(110,85,25,.4), inset 0 3px 0 #fff; }
}
.lvl-play {
  position: absolute;
  top: -46px;
  left: 0;
  transform: translateX(-50%);
  font-size: .52rem;
  letter-spacing: .16em;
  font-weight: 800;
  color: #6b4d05;
  background: linear-gradient(180deg, #fffbe6, #f0cf74);
  border: 1px solid rgba(138, 104, 18, .6);
  border-radius: 99px;
  padding: 2px 9px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(120, 90, 20, .3);
  animation: playBob 1.6s ease-in-out infinite;
}
@keyframes playBob { 50% { transform: translateX(-50%) translateY(-3px); } }

/* kilitli */
.lvl.locked .lvl-btn {
  background: linear-gradient(165deg, #f4f7fb 0%, #dbe3ee 45%, #b7c2d1 75%, #97a3b3 100%);
  box-shadow:
    0 0 0 2px rgba(120, 135, 155, .45),
    0 6px 0 rgba(100, 115, 135, .3),
    0 10px 18px rgba(90, 105, 125, .28),
    inset 0 2px 0 rgba(255, 255, 255, .9);
  cursor: not-allowed;
}
.lvl.locked .lvl-num { color: #6b7686; opacity: .85; text-shadow: 0 1px 0 rgba(255, 255, 255, .8); }

/* rozetler */
.lvl-badge {
  position: absolute;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  font-size: .6rem;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(60, 45, 10, .35);
  right: -12px;
  top: -10px;
  z-index: 2;
}
.lvl-lock { background: #e6ecf4; font-size: .55rem; }
.lvl-skull { background: #c0392b; color: #fff; }
.lvl-crown { width: 24px; height: 24px; background: linear-gradient(160deg, #ffe9a8, #d9a94a); color: #5b4408; font-size: .8rem; right: -14px; top: -14px; }

/* zor bölüm halkası */
.lvl.hard .lvl-btn { box-shadow: 0 0 0 2px rgba(192, 57, 43, .7), 0 6px 0 rgba(138, 104, 18, .35), 0 10px 18px rgba(110, 85, 25, .35), inset 0 2px 0 rgba(255, 255, 255, .95); }
.lvl.boss .lvl-btn { box-shadow: 0 0 0 3px rgba(201, 162, 39, .9), 0 0 26px rgba(255, 224, 130, .8), 0 6px 0 rgba(138, 104, 18, .35), inset 0 2px 0 #fff; }

.lvl.shake .lvl-btn { animation: lvlShake .5s ease; }
@keyframes lvlShake {
  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%); }
}

/* --- dünya kapısı ----------------------------------------------------- */
.world-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 14px 20px;
  text-align: center;
  background: linear-gradient(180deg, rgba(253, 248, 236, 0), rgba(250, 241, 220, .85));
}
.gate-icon {
  font-size: 1.5rem;
  color: #c9a227;
  filter: drop-shadow(0 2px 6px rgba(200, 160, 60, .5));
}
.world-gate.open .gate-icon { animation: gateGlow 2.4s ease-in-out infinite; }
@keyframes gateGlow { 50% { filter: drop-shadow(0 0 14px rgba(255, 226, 140, 1)); transform: scale(1.1); } }
.world-gate b { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.world-gate i { font-size: .66rem; font-style: normal; color: var(--ink-faint); }

/* ==========================================================================
   BÖLÜM PENCERESİ
   ========================================================================== */
.modal.level { width: min(400px, 100%); padding: 22px 20px 18px; text-align: left; }
.ls-head { text-align: center; margin-bottom: 12px; }
.ls-world {
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--silver-deep);
  font-weight: 700;
}
.ls-numrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 6px 0 4px;
}
.ls-num {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #4a3606;
  background: linear-gradient(165deg, #fff6d6, #e9c76f 45%, #c9a227);
  border: 3px solid #fffaf0;
  box-shadow: 0 0 0 2px rgba(138, 104, 18, .55), 0 6px 14px rgba(110, 85, 25, .3), inset 0 2px 0 #fff;
}
.ls-title { text-align: left; }
.ls-title b { display: block; font-family: var(--font-display); font-size: 1.06rem; color: var(--gold-deep); line-height: 1.15; }
.ls-diff {
  display: inline-block;
  margin-top: 3px;
  font-size: .56rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}
.diff-easy { background: #e8f5dd; color: #4b7a2c; border: 1px solid #a9cf86; }
.diff-normal { background: #eef2f8; color: #5a6472; border: 1px solid #c2ccda; }
.diff-hard { background: #fdeae6; color: #a93a26; border: 1px solid #e3a595; }
.diff-boss { background: linear-gradient(180deg, #fff4cf, #f0d079); color: #6b4c05; border: 1px solid #c9a227; }
.ls-stars { justify-content: center; display: flex; gap: 4px; font-size: 1.1rem; }
.ls-stars .lvl-stars { position: static; font-size: 1.1rem; gap: 4px; }
.ls-stars i { color: rgba(150, 130, 90, .3); font-style: normal; }
.ls-stars i.on { color: var(--gold); text-shadow: 0 0 10px rgba(232, 199, 102, .8); }

.ls-body { border-top: 1px dashed rgba(201, 162, 39, .4); padding-top: 10px; }
.ls-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--silver-deep);
  margin: 4px 0 6px;
}
.ls-row b { color: var(--gold-deep); text-transform: none; letter-spacing: 0; font-size: .86rem; }
.ls-meta { text-transform: none; letter-spacing: 0; font-size: .72rem; color: var(--ink-faint); font-weight: 600; }
.ls-goals { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.ls-goal {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 11px;
  background: linear-gradient(180deg, #fff, #f4f7fb 70%, #e8edf4);
  border: 1px solid rgba(201, 162, 39, .38);
  font-size: .76rem;
  color: var(--ink-soft);
}
.ls-ico {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: #fffaf0;
  border: 1px solid rgba(201, 162, 39, .4);
  color: var(--gold-deep);
  font-size: .8rem;
}
.ls-lbl { flex: 1; }
.ls-goal b { color: var(--gold-deep); font-size: .78rem; }

.ls-boosters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 4px; }
.ls-booster {
  position: relative;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font-size: 1.08rem;
  border-radius: 11px;
  background: linear-gradient(180deg, #fff, #f1f5fa 70%, #e2e8f1);
  border: 1px solid rgba(201, 162, 39, .45);
  box-shadow: inset 0 1px 0 #fff;
}
.ls-booster.empty { opacity: .42; filter: grayscale(.7); }
.ls-booster i {
  position: absolute;
  right: -3px; bottom: -3px;
  min-width: 16px; height: 16px;
  padding: 0 3px;
  border-radius: 99px;
  background: var(--foil-gold);
  color: #4a3606;
  font-size: .54rem;
  font-style: normal;
  font-weight: 800;
  display: grid; place-items: center;
  border: 1px solid rgba(138, 104, 18, .5);
}
.ls-actions { display: grid; gap: 8px; margin-top: 12px; }

/* ==========================================================================
   YENİ DÜNYA KUTLAMASI
   ========================================================================== */
.modal.world-unlock-modal { text-align: center; }
.wu-burst {
  width: 84px; height: 84px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  color: #4a3606;
  background: var(--foil-gold);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .9), 0 0 36px rgba(255, 226, 140, .95), inset 0 2px 0 #fff;
  animation: wuPop .7s cubic-bezier(.2, 1.5, .4, 1);
}
@keyframes wuPop {
  0% { transform: scale(.3) rotate(-14deg); opacity: 0; }
  65% { transform: scale(1.12) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}
.wu-name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.34rem;
  color: var(--gold-deep);
  text-shadow: 0 1px 0 #fff;
}

/* ==========================================================================
   DUYARLI
   ========================================================================== */
@media (max-width: 860px) {
  .map-screen .topbar { flex-wrap: wrap; gap: 8px; }
  .map-screen .wallet { order: 3; width: 100%; margin-left: 0; justify-content: center; }
  .profile-chip { order: 2; margin-left: auto; }
  .map-screen .top-actions { order: 4; width: 100%; justify-content: center; margin-left: 0; }
}

@media (max-width: 640px) {
  .map-screen .topbar { padding: 8px 10px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-text h1 { font-size: 1.18rem; }
  .brand-text p { font-size: .54rem; letter-spacing: .1em; }
  .profile-chip { width: 40px; height: 40px; }
  .wallet-pill { padding: 5px 8px; font-size: .76rem; gap: 4px; }
  .wallet-pill .w-icon { font-size: .84rem; }
  .pill-plus { width: 17px; height: 17px; font-size: .66rem; }
  .icon-btn { width: 34px; height: 34px; font-size: .9rem; }

  .world { border-radius: 20px; margin-bottom: 22px; }
  .world-hero { height: 224px; }
  .world-hero.has-bg {
    height: auto;
    aspect-ratio: 4 / 3;           /* mobilde yol bölgesi daha görünür */
  }
  .world-hero.has-bg .world-hero-bg {
    background-position: center bottom;
  }
  .world-hero.has-bg .world-banner {
    left: 8px;
    bottom: 8px;
    width: min(66%, 240px);
    padding: 7px 10px 8px;
  }
  .world-hero.has-bg .world-banner p { display: none; }
  .world-banner { width: 94%; padding: 7px 11px 8px; bottom: 8px; }
  .world-banner p { display: none; }
  .world-banner h2 { font-size: 1.06rem; }
  .world-path { width: 100%; }
  .lvl-btn { width: 54px; height: 54px; border-width: 2.5px; }
  .lvl-num { font-size: 1.12rem; }
  .lvl.current .lvl-btn { width: 64px; height: 64px; }
  .lvl.current .lvl-num { font-size: 1.34rem; }
  .lvl-stars { font-size: .5rem; }
  .lvl-play { font-size: .46rem; top: -40px; padding: 1px 7px; }
  .road-edge { stroke-width: 32; }
  .road-gold { stroke-width: 26; }
  .road-marble { stroke-width: 19; }
}

@media (max-width: 400px) {
  .lvl-btn { width: 48px; height: 48px; }
  .lvl-num { font-size: 1rem; }
  .lvl.current .lvl-btn { width: 58px; height: 58px; }
  .lvl.current .lvl-num { font-size: 1.18rem; }
  .lvl-stars { display: none; }
  .world-banner h2 { font-size: 1rem; }
  .world-progress { font-size: .58rem; }
  .world-hero { height: 206px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-clouds, .world-deco, .road-stitch, .lvl.current .lvl-btn,
  .lvl-play, .icon-btn .dot, .world-gate.open .gate-icon { animation: none !important; }
}

/* ---------------------------------------------------- ayarlar / görevler */
.set-rows { display: grid; gap: 8px; margin: 14px 0 10px; }
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f3f6fb 70%, #e7ecf4);
  border: 1px solid rgba(201, 162, 39, .38);
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.set-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #c9a227;
  cursor: pointer;
}
.set-note {
  margin: 0 0 12px;
  font-size: .7rem;
  line-height: 1.5;
  color: var(--ink-faint);
  text-align: center;
}
.q-bar {
  display: block;
  height: 5px;
  margin-top: 5px;
  border-radius: 99px;
  background: rgba(160, 140, 90, .22);
  overflow: hidden;
}
.q-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--foil-gold);
  box-shadow: 0 0 6px rgba(232, 199, 102, .7);
}
.ls-goal.done { border-color: rgba(127, 168, 80, .6); background: linear-gradient(180deg, #f7fbef, #eaf5d8); }
.ls-goal.done .ls-ico { color: #4f8a37; border-color: rgba(127, 168, 80, .55); }

/* ---------------------------------------------------- Altin Sultanlik / bonus */
.lvl.golden .lvl-btn {
  background: linear-gradient(165deg, #fffbe8 0%, #ffe9a8 30%, #e9c25c 58%, #b8901f 100%);
  box-shadow:
    0 0 0 2px rgba(201, 162, 39, .95),
    0 0 20px rgba(255, 226, 140, .85),
    0 6px 0 rgba(138, 104, 18, .4),
    inset 0 2px 0 #fff;
}
.lvl.golden .lvl-stars i.on { color: #7a5a06; }
.lvl-badge.lvl-gold {
  background: linear-gradient(160deg, #fff6d0, #e2c273 45%, #b08a34);
  color: #4a3606;
  width: 23px; height: 23px;
  right: -13px; top: -12px;
  animation: goldTwinkle 2.6s ease-in-out infinite;
}
@keyframes goldTwinkle {
  0%, 100% { box-shadow: 0 2px 6px rgba(60,45,10,.35); }
  50%      { box-shadow: 0 0 16px rgba(255, 226, 140, .95), 0 2px 6px rgba(60,45,10,.35); }
}

/* bonus dugumu */
.bonus-node {
  position: relative;
  margin: 12px auto 0;
  width: min(250px, 86%);
  z-index: 3;
  left: auto !important;
  display: flex;
  justify-content: center;
}
.bonus-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 10px;
  border-radius: 99px;
  cursor: pointer;
  border: 2px solid #fffaf0;
  background: linear-gradient(165deg, #fffbe8, #ffe9a8 40%, #e0bd62 72%, #b08a34);
  box-shadow:
    0 0 0 2px rgba(201, 162, 39, .85),
    0 0 22px rgba(255, 226, 140, .7),
    0 5px 12px rgba(120, 92, 30, .3),
    inset 0 2px 0 rgba(255, 255, 255, .95);
  transition: transform .16s ease;
}
.bonus-btn:hover { transform: translateY(-2px); }
.bn-glyph {
  width: 28px; height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fffdf2, #e2c273 70%, #a8822a);
  color: #5b4408;
  font-size: .9rem;
  box-shadow: inset 0 1px 0 #fff;
}
.bn-label {
  flex: 1;
  text-align: left;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: #5b4408;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}
.bonus-node .lvl-stars {
  position: static;
  font-size: .58rem;
  gap: 1px;
  flex: 0 0 auto;
}
.bonus-node .lvl-stars i { color: rgba(90, 65, 10, .3); }
.bonus-node .lvl-stars i.on { color: #7a5a06; }
.bn-lock { font-size: .66rem; opacity: .7; }
.bonus-node.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), inset 0 1px 0 #fff;
  cursor: not-allowed;
}
.bonus-node.locked .bn-label, .bonus-node.locked .bn-glyph { color: #7a8492; }

/* kazanma ekrani bonus satiri */
.bonus-unlocked {
  margin: -4px 0 12px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: .76rem;
  color: #6b4c05;
  background: linear-gradient(180deg, #fffbe8, #f5e5b4);
  border: 1px dashed rgba(201, 162, 39, .8);
  animation: bonusGlow 2.2s ease-in-out infinite;
}
.bonus-unlocked b { color: #8a6010; }
@keyframes bonusGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 226, 140, 0); }
  50%      { box-shadow: 0 0 18px rgba(255, 226, 140, .75); }
}
.bonus-medal {
  background: linear-gradient(165deg, #fffbe8, #ffe9a8 35%, #d9b45c 75%, #a8822a) !important;
  color: #5b4408 !important;
  font-size: 1.5rem !important;
  animation: goldTwinkle 2.6s ease-in-out infinite;
}
.bonus-note {
  margin: 0 0 10px;
  font-size: .74rem;
  line-height: 1.5;
  color: var(--ink-faint);
  font-style: italic;
  font-family: var(--font-display);
}
.modal.bonus .actions { margin-top: 12px; }

/* ==========================================================================
   HESAP / BULUT KAYIT
   ========================================================================== */
.modal.account { width: min(420px, 100%); text-align: left; }
.modal.account .eyebrow,
.modal.account h2,
.modal.account .lede { text-align: center; }
.modal.account h2 { margin-bottom: 4px; }

.acc-card {
  display: grid;
  gap: 1px;
  margin: 14px 0 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, .42);
  background: rgba(201, 162, 39, .18);
}
.acc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: linear-gradient(180deg, #fff, #f6f9fc);
  font-size: .78rem;
  color: var(--ink-soft);
}
.acc-row span { letter-spacing: .04em; }
.acc-row b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold-deep);
  font-size: .8rem;
  font-weight: 700;
}
.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #b7c0cc;
}
.sync-dot.ok { background: #57a35a; box-shadow: 0 0 6px rgba(87, 163, 90, .7); }
.sync-dot.busy { background: #d9a44a; animation: dotPulse 1.2s ease-in-out infinite; }
.sync-dot.warn { background: #c0392b; }
.sync-dot.idle { background: #b7c0cc; }

.acc-codebox {
  margin: 0 0 12px;
  padding: 12px 14px;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf4, #f7ecd0);
  border: 1px dashed rgba(201, 162, 39, .75);
}
.acc-codelabel {
  display: block;
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--silver-deep);
  font-weight: 700;
}
.acc-code {
  display: block;
  margin: 5px 0 4px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .12em;
  color: var(--gold-deep);
  text-shadow: 0 1px 0 #fff;
  user-select: all;
  cursor: copy;
}
.acc-codebox i {
  font-style: normal;
  font-size: .66rem;
  color: var(--ink-faint);
  line-height: 1.4;
  display: block;
}

.acc-input {
  width: 100%;
  margin: 10px 0 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, .55);
  background: #fff;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--ink);
  box-shadow: inset 0 1px 3px rgba(120, 100, 60, .12);
}
.acc-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .2), inset 0 1px 3px rgba(120, 100, 60, .1);
}
.acc-input-code {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.24rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.acc-textarea {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, .45);
  background: #fff;
  font-family: ui-monospace, "Consolas", monospace;
  font-size: .62rem;
  line-height: 1.5;
  color: var(--ink-soft);
  resize: vertical;
  word-break: break-all;
}
.acc-err {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: .66rem;
  color: #8d2f22;
  background: #fdecea;
  border: 1px solid #f0c0b8;
  word-break: break-word;
}

/* profil rozetinde senkron noktası */
.profile-chip.has-sync::after {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #57a35a;
  border: 2px solid #fff;
  box-shadow: 0 0 6px rgba(87, 163, 90, .8);
}
.profile-chip.has-sync.offline::after { background: #c0392b; }
