/* Labirent Ustası — ortak temanın (../ortak/oyun.css) üstüne yalnız bu oyuna özel parçalar. */
.labirent-game-page .rr-game, .lb-map { --rr-ink: #1e1b4b; --rr-purple: #5f57f0; --rr-teal: #12b5a5; --rr-yellow: #f2a516; --rr-orange: #f59e0b; --rr-line: #e3e6ef; --rr-muted: #4b4f63; color: var(--rr-ink); }

/* Kart renkleri: if (turuncu) · repeat (mor, ortak) · until (turkuaz) */
.lb-if { --rr-bc: #ffd8a8; }
.rr-c-inner .rr-mini.lb-if { --rr-bc: #ffd8a8; }
.rr-loop.lb-until, .rr-cblock.lb-until { --rr-bc: #0f9f94; color: #fff; }
.rr-cblock.lb-until::after { background: #0f9f94; }
.rr-cblock.lb-until .rr-c-head small, .rr-loop.lb-until small { color: #e6fffb; }
.rr-dir-left small, .rr-dir-right small { white-space: nowrap; }
.lb-if small { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
.rr-palette-cards .lb-if { min-width: 0; overflow: hidden; }

/* Robotun baktığı yön: robotun önündeki ok */
.rr-robot .lb-arrow { position: absolute; left: 50%; top: 50%; width: 1.4em; height: 1.4em; margin: -0.7em 0 0 -0.7em; display: grid; place-items: center; color: #f2a516; font-size: clamp(.9rem, 2.6vw, 1.35rem); text-shadow: 0 1px 0 #1e1b4b, 0 0 3px #fff; transform: rotate(0deg) translateX(1.55em); transition: transform .25s ease; pointer-events: none; z-index: 3; }
.rr-robot[data-dir="down"] .lb-arrow { transform: rotate(90deg) translateX(1.55em); }
.rr-robot[data-dir="left"] .lb-arrow { transform: rotate(180deg) translateX(1.55em); }
.rr-robot[data-dir="up"] .lb-arrow { transform: rotate(270deg) translateX(1.55em); }
.rr-robot.no-anim .lb-arrow { transition: none; }

/* Üst bilgi: yön ve 🔋 pil (değişken) */
.lb-hud { position: absolute; left: 12px; right: 12px; top: 10px; display: flex; justify-content: space-between; gap: 8px; z-index: 4; pointer-events: none; font-weight: 800; font-size: .9rem; }
.lb-heading, .lb-pil { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 6px rgba(30, 27, 75, .15); }
.lb-pil { margin-left: auto; color: #14532d; }
.lb-pil.is-low { color: #b91c1c; background: #fff1f2; }
.lb-pil[hidden] { display: none; }
.labirent-game-page .rr-garden { padding-top: 46px; }
.lb-limit { font-weight: 700; color: var(--rr-muted); font-size: .85rem; }

/* repeat / until penceresi: sayı seçici ve 3 kutu */
.lb-stepper { display: flex; align-items: center; gap: 10px; }
.lb-count { min-width: 72px; text-align: center; font-weight: 900; font-size: 1.5rem; color: var(--rr-purple, #5f57f0); }
.lb-box-body .rr-slot.is-filled { cursor: pointer; font: inherit; font-weight: 800; }
.lb-box-body .rr-slot.is-selected { outline: 4px solid #1e1b4b; outline-offset: 2px; }
.lb-box-cards .rr-block small { white-space: normal; }
.lb-box-cards .rr-block:disabled { opacity: .45; cursor: not-allowed; }

/* İlerleme noktaları: seviye sınırında boşluk (Çırak | Kaşif | Usta) */
.rr-dot.lb-tier-end { margin-right: 10px; }

/* Bölüm haritası (seviye sistemi) */
.lb-map[hidden] { display: none; }
.lb-map-card { max-width: 860px; margin: 0 auto; padding: 18px; border-radius: 24px; background: #fff; box-shadow: 0 20px 50px -30px rgba(30, 27, 75, .45); }
.lb-map-lead { margin: 6px 0 10px; color: var(--rr-muted); line-height: 1.5; }
.lb-badge { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 14px; padding: 8px 14px; border-radius: 999px; background: #fff7e0; font-weight: 800; }
.lb-tier { margin-top: 14px; }
.lb-tier h2 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font-size: 1.15rem; }
.lb-tier h2 small { color: var(--rr-muted); font-weight: 700; font-size: .85rem; }
.lb-tier-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lb-level { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 84px; padding: 10px 12px; border: 2px solid #e3e6ef; border-radius: 16px; background: #f8f9ff; color: #1e1b4b; font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; }
.lb-level b { font-size: 1.3rem; color: var(--rr-purple, #5f57f0); }
.lb-level span { font-weight: 800; line-height: 1.2; }
.lb-level small { margin-top: auto; }
.lb-level.is-done { border-color: #12b5a5; background: #ecfdf8; }
.lb-level.is-locked { opacity: .55; cursor: not-allowed; }
.lb-level:focus-visible { outline: 4px solid var(--rr-purple, #5f57f0); outline-offset: 2px; }
.lb-map .rr-finish-actions { margin-top: 18px; }
.lb-map-btn { font-size: 1.3rem; }

@media (max-width: 640px) {
    .lb-tier-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lb-hud { font-size: .8rem; left: 8px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .rr-robot .lb-arrow { transition: none; }
}

/* Dokunma alanı ≥ 56 px (ses ve harita düğmeleri) · 12 bölüm noktası telefona sığsın */
.labirent-game-page .rr-sound { width: 56px; height: 56px; }
@media (max-width: 640px) {
    .labirent-game-page .rr-dot { min-width: 22px; flex-basis: 28px; }
    .rr-dot.lb-tier-end { margin-right: 3px; }
}
