/* One undistorted art plane owns all stop coordinates. UI icons are standalone assets. */
@layer bilgiIslands {
body{--bi-safe-top:env(safe-area-inset-top,0px);--bi-safe-bottom:env(safe-area-inset-bottom,0px)}
/* iOS native shell with a zero reported inset: keep the route wallet clear of the status bar. */
html.dm-native-ios body{--bi-safe-top:var(--dm-ios-top-safe,62px)}
body:has(#tab-dunya.active .bi-scene) #bzParkur{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;max-height:none!important;padding:0!important;overflow:hidden!important;background:#4fcddd!important}
body #tab-dunya .bz-ic:has(.bi-scene){position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;padding:0!important;display:block!important;background:none!important;border:0!important;overflow:hidden!important}
body #tab-dunya #dmParkurScroll:has(.bi-scene),body #tab-dunya .rt-school:has(.bi-scene),body #tab-dunya .rt-english:has(.bi-scene){position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;background:none!important;overflow:visible!important}
.bi-scene{--bi-art:url('route-assets/bilgi-background.webp');--bi-ratio:0.5627990431;--bi-nav-h:74px;--bi-usable-h:calc(100dvh - var(--bi-safe-top) - var(--bi-safe-bottom));--bi-world-top:var(--bi-safe-top);--bi-world-w:max(100vw,calc(var(--bi-usable-h) * var(--bi-ratio)));position:absolute!important;inset:0!important;width:100%!important;height:100%!important;overflow:hidden!important;isolation:isolate;color:#073d51;font-family:Nunito,system-ui,sans-serif}
.bi-scene::before{content:'';position:absolute;inset:-30px;background:var(--bi-art) center/cover no-repeat;filter:blur(24px) saturate(.8);opacity:.8;pointer-events:none;z-index:-1}
.bi-world{position:absolute!important;left:0!important;top:var(--bi-world-top)!important;width:var(--bi-world-w)!important;height:auto!important;aspect-ratio:var(--bi-ratio)!important;background:var(--bi-art) center/100% 100% no-repeat!important;container-type:inline-size}
.bi-stages{position:absolute;inset:0;pointer-events:none}
.bi-stop{position:absolute!important;left:var(--bi-x)!important;top:var(--bi-y)!important;width:var(--bi-w)!important;height:var(--bi-h)!important;transform:translate(-50%,-50%)!important;pointer-events:none}
.bi-node{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;display:grid!important;place-items:center!important;border:0!important;border-radius:50%!important;margin:0!important;padding:0!important;background:transparent!important;box-shadow:none!important;transform:none!important;overflow:visible!important;color:#513b25!important;font:900 clamp(18px,6cqw,36px)/1 Nunito,system-ui!important;text-shadow:0 1px 1px #fff;cursor:pointer;pointer-events:auto}
/* Keep a generous hit target without moving or reshaping the visible platform. */
.bi-node::before{content:'';position:absolute;left:50%;top:50%;width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%);border-radius:50%;pointer-events:auto}
.bi-node b{position:relative;font:inherit;z-index:1;pointer-events:none}
.bi-stop.current .bi-node{background:linear-gradient(#ffbaa0,#ff8273)!important;border:2px solid #ffe7bd!important;box-shadow:0 3px 0 #db805a,0 0 12px #ffe5a6a0!important;color:#fff!important;text-shadow:0 2px 1px #9e4b36}
.bi-node:disabled{opacity:1!important;cursor:default}.bi-stop.locked .bi-node{color:#5e6470!important;background:#d1d3d5c9!important}
.bi-check{position:absolute;right:-1%;bottom:-10%;width:25%;aspect-ratio:1;display:grid;place-items:center;border:2px solid white;border-radius:50%;background:linear-gradient(#96dc73,#37a44e);color:white;font:900 clamp(10px,3cqw,20px)/1 Nunito;font-style:normal;box-shadow:0 2px 3px #28683a33;pointer-events:none}
.bi-lock{position:absolute;bottom:90%;left:50%;transform:translateX(-50%);width:25%;height:60%;color:#656d79;pointer-events:none}.bi-lock svg{width:100%;height:100%;stroke:currentColor;stroke-width:2;fill:#dce4e9}
.bi-mascot{position:absolute!important;bottom:89%!important;left:50%!important;transform:translateX(-50%)!important;width:83%!important;height:auto!important;max-height:none!important;object-fit:contain!important;pointer-events:none!important;z-index:3;filter:drop-shadow(0 3px 2px #346e6633)}
.bi-progress{position:absolute!important;left:calc(var(--bi-world-left,0px) + var(--bi-world-w) * .073)!important;top:calc(var(--bi-world-top) + var(--bi-world-w) / var(--bi-ratio) * .181)!important;width:calc(var(--bi-world-w) * .43)!important;height:auto!important;min-height:44px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;padding:6px 10px!important;border:1.5px solid #ffffffe8!important;border-radius:18px!important;background:#e1faffbd!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#073d51!important;box-shadow:inset 0 1px 3px #fff9!important;font:900 clamp(10px,calc(var(--bi-world-w) * .028),15px)/1.2 Nunito,system-ui!important;cursor:pointer;z-index:5}
.bi-progress b{font:inherit!important;white-space:nowrap}.bi-progress>span{display:flex;width:100%;align-items:center;gap:7px}.bi-progress strong{font:inherit;white-space:nowrap}.bi-progress progress{min-width:0;width:100%;height:10px;appearance:none;border:1px solid #fff;border-radius:8px;overflow:hidden;background:#6faab74d}.bi-progress progress::-webkit-progress-bar{background:#6faab74d}.bi-progress progress::-webkit-progress-value{background:linear-gradient(#54f1b6,#00ae8e);border-radius:8px}.bi-progress progress::-moz-progress-bar{background:#00b995}
body #tab-dunya .bi-tools{position:absolute!important;inset:30% 12px auto auto!important;width:50px!important;display:flex!important;flex-direction:column!important;gap:14px!important;z-index:10!important}
body #tab-dunya .bi-tools>button{position:relative!important;display:grid!important;place-items:center!important;width:50px!important;height:50px!important;min-height:50px!important;padding:5px!important;margin:0!important;border:1.5px solid #ffffffe8!important;border-radius:50%!important;background:#ddfaff9e!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:inset 0 2px 4px #fffc,0 3px 8px #166e8730!important;cursor:pointer}
.bi-tool-icon{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;pointer-events:none!important}
body #tab-dunya .bi-tools>button[data-badge=red]{--bi-notice:#f35654;border-color:#ffb1aa!important}
body #tab-dunya .bi-tools>button[data-badge=green]{--bi-notice:#21c77b;border-color:#b6ffdc!important}
body #tab-dunya .bi-tools>button[data-badge]{box-shadow:inset 0 1px 3px #fffd,0 0 0 2px color-mix(in srgb,var(--bi-notice) 30%,transparent),0 0 13px var(--bi-notice)!important;animation:bi-notice 2s ease-in-out infinite!important}
body #tab-dunya .bi-tools>button .rt-tool-badge{top:-4px!important;right:-3px!important;pointer-events:none!important}
.bi-continue{position:absolute!important;left:50%!important;bottom:calc(74px + 26px + var(--bi-safe-bottom))!important;transform:translateX(-50%)!important;width:min(54%,240px)!important;height:48px!important;min-height:48px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;margin:0!important;padding:0 12px!important;border:1.5px solid #fff0d7!important;border-radius:999px!important;background:linear-gradient(#ffa596,#ff6e64)!important;color:white!important;box-shadow:inset 0 2px 4px #ffe8ce,0 3px 0 #cc5844,0 4px 10px #18535930!important;font:900 clamp(17px,4vw,23px)/1 Nunito,system-ui!important;text-shadow:0 2px 1px #b95646;cursor:pointer;z-index:10!important}
.bi-continue>span{font-size:1.2em;pointer-events:none}.bi-empty{position:absolute;bottom:110px;left:50%;transform:translateX(-50%);background:#ffffffe0;padding:12px;border-radius:20px}
.bi-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.bi-node:focus-visible,.bi-progress:focus-visible,.bi-continue:focus-visible{outline:3px solid #06364d!important;outline-offset:4px!important}
/* The existing live wallet keeps its values and click handlers. Only its skin changes. */
body #tab-dunya .bz-ic:has(.bi-scene)>.rt-top{position:absolute!important;top:max(10px,var(--bi-safe-top))!important;left:50%!important;transform:translateX(-50%)!important;width:min(calc(100% - 24px),560px)!important;min-height:0!important;margin:0!important;padding:0!important;display:block!important;background:none!important;z-index:20!important}
body #tab-dunya .bz-ic:has(.bi-scene)>.rt-top>h1,body #tab-dunya .bz-ic:has(.bi-scene)>.rt-top>.rt-wallet{display:none!important}
body #tab-dunya .dm-unified-wallet.dm-papi-wallet{display:grid!important;grid-template-columns:34px repeat(4,minmax(0,1fr))!important;gap:1px!important;align-items:center!important;width:100%!important;max-width:100%!important;margin:0!important;padding:4px!important;border:1.5px solid #ffffffc9!important;border-radius:26px!important;background:#dbfaffb5!important;box-shadow:inset 0 2px 4px #fffc,0 3px 10px #126d8530!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
body #tab-dunya .dm-unified-wallet.dm-papi-wallet>button{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:36px!important;height:36px!important;margin:0!important;padding:2px!important;gap:3px!important;border:0!important;border-radius:20px!important;background:none!important;box-shadow:none!important;color:#073d51!important;font:900 clamp(10px,2.6vw,15px)/1 Nunito,system-ui!important;overflow:visible!important}
body #tab-dunya .dm-unified-wallet .dm-pw-art{width:25px!important;height:25px!important;flex:none!important;background-size:500% auto!important;background-position:0% 50%!important;background-repeat:no-repeat!important}
body #tab-dunya .dm-unified-wallet .dm-pw-papi{width:34px!important;height:34px!important;background-image:url('route-assets/compact-wallet-atlas-v1.webp')!important;background-position:0% 50%!important}
body #tab-dunya .dm-unified-wallet .dm-pw-energy{background-image:url('route-assets/compact-wallet-atlas-v1.webp')!important;background-position:25% 50%!important}
body #tab-dunya .dm-unified-wallet .dm-pw-gold{background-image:url('route-assets/compact-wallet-atlas-v1.webp')!important;background-position:50% 50%!important}
body #tab-dunya .dm-unified-wallet .dm-pw-xp{background-image:url('route-assets/compact-wallet-atlas-v1.webp')!important;background-position:75% 50%!important}
body #tab-dunya .dm-unified-wallet .dm-pw-time{background-image:url('route-assets/compact-wallet-atlas-v1.webp')!important;background-position:100% 50%!important}
body #tab-dunya .dm-unified-wallet .dm-pw-copy{display:flex!important;min-width:0!important;align-items:center!important;justify-content:center!important;padding:0!important;gap:0!important}
body #tab-dunya .dm-unified-wallet [data-pw-value]{font:inherit!important;letter-spacing:-.3px!important;white-space:nowrap!important}
body #tab-dunya .dm-unified-wallet [data-pw-minutes]{display:none!important}
body #tab-dunya .dm-unified-wallet [data-pw=energy]::after,body #tab-dunya .dm-unified-wallet [data-pw=gold]::after{content:'+';display:grid;place-items:center;flex:none;width:12px;height:12px;border:1px solid #bcffe1;border-radius:50%;background:#13ad70;color:white;font:900 11px/1 system-ui}
/* Renkli İskele: shared floating dock, with the selected parkur palette. */
body #bottomNavMobile#bottomNavMobile.bottom-nav-mobile{
 --dock-bg:rgba(8,39,33,.95);--dock-edge:#4a8270;--dock-label:#f2faf6;
 --dock-active-bg:#1f5747;--dock-active-edge:#599b86;--dock-accent:#a2f7d0;
 position:fixed!important;display:flex!important;left:50%!important;right:auto!important;
 bottom:max(10px,var(--bi-safe-bottom))!important;transform:translateX(-50%)!important;
 width:min(calc(100% - 20px),640px)!important;max-width:640px!important;height:74px!important;min-height:74px!important;
 margin:0!important;padding:4px!important;gap:2px!important;border:1.5px solid var(--dm-dock-edge,var(--dock-edge))!important;
 border-radius:25px!important;background:var(--dm-dock-bg,var(--dock-bg))!important;
 box-shadow:inset 0 1px 0 #ffffff17,0 6px 16px #05161160!important;
 backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);z-index:100000020!important
}
/* Secondary tabs share one bottom edge and reserve the device inset only once. */
body #bottomNavMobile#bottomNavMobile.bottom-nav-mobile:not(:has(> [data-ekran="tab-dunya"].active)){
 bottom:0!important;height:auto!important;min-height:0!important;
 padding:4px 4px calc(4px + var(--bi-safe-bottom))!important;
}
body:has(#tab-dunya .rt-medal-school) #bottomNavMobile#bottomNavMobile.bottom-nav-mobile{
 --dock-bg:rgba(15,31,59,.95);--dock-edge:#52729d;--dock-label:#f2f7ff;
 --dock-active-bg:#25466e;--dock-active-edge:#6696bd;--dock-accent:#a6ddff
}
body #bottomNavMobile#bottomNavMobile .bn-item{
 flex:1!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
 min-width:0!important;height:62px!important;min-height:62px!important;padding:2px!important;margin:0!important;gap:3px!important;
 border:1px solid transparent!important;border-radius:18px!important;background:none!important;box-shadow:none!important;
 transform:none!important;color:var(--dm-dock-label,var(--dock-label))!important
}
body #bottomNavMobile#bottomNavMobile .bn-item.active{
 background:var(--dm-dock-active-bg,var(--dock-active-bg))!important;border-color:var(--dm-dock-active-edge,var(--dock-active-edge))!important;
 box-shadow:inset 0 1px 3px #ffffff20,0 2px 5px #0003!important
}
body #bottomNavMobile#bottomNavMobile .bn-item:focus-visible{outline:2px solid var(--dm-dock-accent,var(--dock-accent))!important;outline-offset:-2px}
body #bottomNavMobile#bottomNavMobile .bn-icon{display:block!important;width:37px!important;height:37px!important;animation:none!important;transform:none!important}
body #bottomNavMobile#bottomNavMobile .dm-nav-art{display:block!important;width:100%!important;height:100%!important;background-image:var(--bi-icon)!important;background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important;border:0!important;border-radius:0!important;filter:none!important}
body #bottomNavMobile#bottomNavMobile .bn-label{display:block!important;max-width:100%!important;font:900 clamp(8px,2.2vw,12px)/1.2 Nunito,system-ui!important;color:var(--dm-dock-label,var(--dock-label))!important;-webkit-text-fill-color:var(--dm-dock-label,var(--dock-label))!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important}
body #bottomNavMobile#bottomNavMobile .bn-item.active .bn-label{color:var(--dm-dock-accent,var(--dock-accent))!important;-webkit-text-fill-color:var(--dm-dock-accent,var(--dock-accent))!important}
body #bottomNavMobile#bottomNavMobile .bn-item::after,body #bottomNavMobile#bottomNavMobile .bn-icon::after{display:none!important}
body #bottomNavMobile [data-ekran="tab-dunya"]{--bi-icon:url('route-assets/bilgi-icons/map.webp')}
body #bottomNavMobile [data-ekran="tab-meduakis"]{--bi-icon:url('route-assets/bilgi-icons/friends.webp')}
body #bottomNavMobile [data-ekran="tab-aktiviteler"]{--bi-icon:url('route-assets/bilgi-icons/games.webp')}
body #bottomNavMobile [data-ekran="tab-derscalis"]{--bi-icon:url('route-assets/bilgi-icons/study.webp')}
body #bottomNavMobile [data-ekran="tab-magaza"]{--bi-icon:url('route-assets/bilgi-icons/store.webp')}
body #bottomNavMobile [data-ekran="tab-profile-menu"]{--bi-icon:url('route-assets/bilgi-icons/profile.webp')}
}
@keyframes bi-notice{0%,100%{filter:brightness(1)}50%{filter:brightness(1.15)}}
@media(min-aspect-ratio:3/5){@layer bilgiIslands{
.bi-scene{--bi-world-w:calc(var(--bi-usable-h) * var(--bi-ratio));--bi-world-left:calc((100vw - var(--bi-world-w)) / 2)}
.bi-world{left:50%!important;transform:translateX(-50%)!important}
body #tab-dunya .bi-tools{right:max(16px,calc((100vw - var(--bi-world-w))/2 - 64px))!important}
}}
@media(max-height:650px){@layer bilgiIslands{
.bi-continue{left:auto!important;right:14px!important;transform:none!important;width:min(44%,180px)!important;bottom:calc(62px + 22px + var(--bi-safe-bottom))!important;height:44px!important;min-height:44px!important;font-size:17px!important}
body #bottomNavMobile#bottomNavMobile.bottom-nav-mobile{height:62px!important;min-height:62px!important}
body #bottomNavMobile#bottomNavMobile .bn-item{height:50px!important;min-height:50px!important;gap:0!important}
body #bottomNavMobile#bottomNavMobile .bn-icon{width:34px!important;height:34px!important}
}}
@media(max-height:650px) and (min-aspect-ratio:1/1){@layer bilgiIslands{
body #tab-dunya .bz-ic:has(.bi-scene)>.rt-top{left:14px!important;transform:none!important;width:min(270px,34vw)!important}
body #tab-dunya .dm-unified-wallet.dm-papi-wallet{grid-template-columns:24px repeat(4,minmax(0,1fr))!important;padding:3px!important}
body #tab-dunya .dm-unified-wallet .dm-pw-papi{width:24px!important;height:24px!important;background-position:0% 50%!important}
body #tab-dunya .dm-unified-wallet .dm-pw-art:not(.dm-pw-papi){width:18px!important;height:18px!important}
body #tab-dunya .dm-unified-wallet.dm-papi-wallet>button{font-size:10px!important;gap:1px!important}
body #tab-dunya .dm-unified-wallet [data-pw=energy]::after,body #tab-dunya .dm-unified-wallet [data-pw=gold]::after{display:none}
.bi-progress{position:fixed!important;left:14px!important;top:70px!important;width:min(240px,28vw)!important;font-size:12px!important}
.bi-continue{left:14px!important;right:auto!important;width:min(220px,28vw)!important}
body #tab-dunya .bi-tools{right:24px!important;top:22%!important;gap:10px!important}
}}
@media(prefers-reduced-motion:reduce){@layer bilgiIslands{body #tab-dunya .bi-tools>button[data-badge]{animation:none!important}}}
@layer bilgiIslands {
.bi-progress b{display:block;max-width:100%;white-space:normal!important;text-align:center;line-height:1.15!important}
body #bottomNavMobile#bottomNavMobile .bn-label{font-size:clamp(9px,2.5vw,12px)!important}
}
@media(max-width:360px){@layer bilgiIslands{
body #tab-dunya .dm-unified-wallet.dm-papi-wallet{grid-template-columns:28px repeat(4,minmax(0,1fr))!important}
body #tab-dunya .dm-unified-wallet .dm-pw-papi{width:28px!important;height:28px!important;background-position:0% 50%!important}
body #tab-dunya .dm-unified-wallet .dm-pw-art:not(.dm-pw-papi){width:21px!important;height:21px!important}
body #tab-dunya .dm-unified-wallet [data-pw=energy]::after,body #tab-dunya .dm-unified-wallet [data-pw=gold]::after{display:none}
}}
@media(max-width:360px){@layer bilgiIslands{
body #tab-dunya .dm-unified-wallet .dm-pw-art:not(.dm-pw-papi){width:18px!important;height:18px!important}
body #tab-dunya .dm-unified-wallet [data-pw-value]{font-size:9px!important}
}}
@media(max-height:650px) and (max-aspect-ratio:1/1){@layer bilgiIslands{
.bi-scene{--bi-world-top:calc(var(--bi-safe-top) + 12px)}
}}

/* Profile drawer retains its established dock layer; quizzes stay above the dock. */
@layer bilgiIslands { body:has(#rtProfileBackdrop) #bottomNavMobile#bottomNavMobile.bottom-nav-mobile{z-index:2147483550!important} }

@layer bilgiIslands {
.bi-sky{--bi-art:url('route-assets/sky-academy-background.webp');--bi-ratio:0.4625813449;--bi-world-w:min(100vw,calc(var(--bi-usable-h) * var(--bi-ratio)));--bi-world-left:calc((100vw - var(--bi-world-w))/2);color:#38285b}
.bi-sky .bi-world{left:50%!important;transform:translateX(-50%)!important}
.bi-sky .bi-progress{top:calc(var(--bi-world-top) + var(--bi-world-w) / var(--bi-ratio) * .227)!important;background:#eee8ffcf!important;color:#38285b!important}
.bi-sky .bi-stop.current .bi-node{background:linear-gradient(#c7a6ff,#9567e2)!important;border-color:#fff1cb!important;box-shadow:0 3px 0 #7450b0,0 0 12px #f3d7ff!important;text-shadow:0 2px 1px #684399}
.bi-sky .bi-continue{background:linear-gradient(#c4a1ff,#8d65da)!important;box-shadow:inset 0 2px 4px #f5deff,0 3px 0 #69489d,0 4px 10px #46345930!important;text-shadow:0 2px 1px #684399}
body #tab-dunya .bi-tools{gap:10px!important}
body #tab-dunya .bi-tools>button[data-rt="other-route"] svg{width:29px;height:29px;fill:none;stroke:#355f75;stroke-width:2}
body #tab-dunya .bi-tools>button:focus-visible{outline:3px solid #06364d;outline-offset:3px}
body #bottomNavMobile .bn-icon:has(.dm-nav-art)>img{display:none!important}
}
@media(max-height:650px){@layer bilgiIslands{body #tab-dunya .bi-tools>button{width:44px!important;height:44px!important;min-height:44px!important}body #tab-dunya .bi-tools{width:44px!important;gap:8px!important}}}

@media(max-height:650px) and (min-aspect-ratio:1/1){@layer bilgiIslands{.bi-sky .bi-progress{top:70px!important}}}
@media(max-height:650px) and (max-aspect-ratio:1/1){@layer bilgiIslands{
.bi-sky{--bi-world-w:calc((var(--bi-usable-h) - 12px) * var(--bi-ratio));--bi-world-left:calc((100vw - var(--bi-world-w))/2)}
.bi-sky .bi-world{left:50%!important;transform:translateX(-50%)!important}
}}

/* Keep the academy backdrop blurred like the school route; the central art stays sharp. */
@media(min-height:651px) and (max-aspect-ratio:3/5){@layer bilgiIslands{
.bi-sky{--bi-world-top:0px;--bi-world-w:max(100vw,calc(100dvh * var(--bi-ratio)));--bi-world-left:calc((100vw - var(--bi-world-w))/2)}
}}

@layer bilgiIslands {
body:has(#tab-dunya.active .rt-medal-route) #bzParkur{background:#0a3124!important}
body:has(#tab-dunya.active .rt-medal-school) #bzParkur{background:#151f42!important}
.rt-medal-route{
 --medal-surface:#1d583f;--medal-border:#497e63;--medal-ink:#f0fff7;--medal-active:#87efbb;
 --medal-bg:#0b3527;--medal-bg-dark:#082b21;--medal-secondary:#2a654e;--medal-route-button:#164b37;
 --medal-muted:#c9e6d5;--medal-disc-light:#639885;--medal-disc:#316e59;--medal-disc-edge:#204d3c;
 --medal-active-light:#abf7d1;--medal-active-edge:#29b883;--medal-active-ink:#073829;
 --medal-size:clamp(62px,19vw,78px);--medal-current-size:clamp(72px,23vw,92px);

 display:flex;flex-direction:column;align-items:center;
 --medal-dock-space:calc(max(10px,env(safe-area-inset-bottom,0px)) + var(--bi-nav-h) + 6px);
 padding:4px 12px var(--medal-dock-space)!important;
 box-sizing:border-box;background:linear-gradient(155deg,var(--medal-bg),var(--medal-bg-dark));color:var(--medal-ink)
}
.rt-medal-school{
 --medal-surface:#2c4174;--medal-border:#566d9e;--medal-ink:#f1f6ff;--medal-active:#55c4ff;
 --medal-bg:#172345;--medal-bg-dark:#101936;--medal-secondary:#2d4273;--medal-route-button:#22355d;
 --medal-muted:#ccd8ed;--medal-disc-light:#7388b6;--medal-disc:#425581;--medal-disc-edge:#2b3b61;
 --medal-active-light:#8de0ff;--medal-active-edge:#138ed2;--medal-active-ink:#082649
}
.rt-medal-route::before{content:none}
/* Keep the wallet in the layout so native viewport rules cannot overlay the unit card. */
body #tab-dunya .bz-ic:has(.rt-medal-route){
 display:grid!important;grid-template-rows:auto minmax(0,1fr);
 padding-top:max(8px,env(safe-area-inset-top,0px))!important
}
body #tab-dunya .bz-ic:has(.rt-medal-route)>#dmParkurScroll{
 position:relative!important;inset:auto!important;height:auto!important
}
body #tab-dunya .bz-ic:has(.rt-medal-route)>.rt-top{
 position:relative!important;inset:auto!important;transform:none!important;
 width:min(calc(100% - 24px),560px)!important;min-height:48px!important;
 margin:0 auto!important;display:grid!important;align-content:center
}
body #tab-dunya .bz-ic:has(.rt-medal-route) .dm-unified-wallet.dm-papi-wallet{
 background:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important
}
body #tab-dunya .bz-ic:has(.rt-medal-route) .dm-unified-wallet.dm-papi-wallet :is(button,.dm-pw-copy,[data-pw-value]){color:#f0fff7!important;-webkit-text-fill-color:#f0fff7!important}

.rt-medal-header,.rt-medal-scroll{width:min(100%,620px)}
.rt-medal-header{flex:none}
.rt-medal-unit{
 display:flex;justify-content:space-between;align-items:center;gap:8px;
 border:1px solid var(--medal-border);border-radius:16px;min-height:60px;padding:8px 10px 8px 12px!important;background:var(--medal-surface)
}
.rt-medal-unit h1{font:900 clamp(15px,4.5vw,20px)/1.15 Nunito,system-ui;margin:0 0 3px;color:var(--medal-ink)}
.rt-medal-unit p{font:800 12px/1.2 Nunito,system-ui;margin:0;color:var(--medal-muted)!important;overflow-wrap:anywhere}
.rt-medal-unit button,.rt-medal-tools button{
 display:flex;align-items:center;justify-content:center;gap:5px;min-height:42px;border:1px solid var(--medal-border);
 border-radius:12px;padding:5px 7px!important;background:var(--medal-secondary);color:var(--medal-ink);font-size:12px!important
}
.rt-medal-unit button{flex-shrink:0;background:var(--medal-route-button);white-space:nowrap}
.rt-medal-unit svg,.rt-medal-tools svg,.rt-medal-stop svg{
 width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round
}
.rt-medal-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:10px 0 8px!important}
.rt-medal-tools button{position:relative;min-width:0;flex-direction:column;gap:3px;padding-inline:3px;min-height:54px}
.rt-medal-tools button:hover,.rt-medal-unit button:hover{filter:brightness(1.12)}
.rt-medal-scroll{
 position:relative;inset:auto;flex:1 1 0;min-height:0;overflow:hidden auto;
 overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#4f7969 transparent
}
.rt-medal-world{position:relative;width:100%;min-height:100%}
.rt-medal-divider{
 position:absolute;inset-inline:6%;transform:translateY(-50%);margin:0;
 display:grid;grid-template-columns:minmax(12px,1fr) minmax(0,auto) minmax(12px,1fr);
 align-items:center;gap:clamp(10px,3vw,18px);text-align:center;color:var(--medal-ink);
 font:800 clamp(17px,4vw,21px)/1.15 Nunito,system-ui;
}
.rt-medal-divider::before,.rt-medal-divider::after{
 content:"";height:1px;background:var(--medal-active-light);opacity:.62
}
.rt-medal-divider span{display:grid;gap:3px;max-width:36ch;overflow-wrap:anywhere}
.rt-medal-divider small{
 color:var(--medal-active-light);font:800 11px/1.2 Nunito,system-ui;
 letter-spacing:.045em;text-transform:uppercase
}
.rt-medal-divider strong{font:inherit}

.rt-medal-row{position:absolute;left:var(--stop-x);top:var(--stop-y);width:0;height:0}
.rt-medal-stop{
 position:absolute;left:0;top:0;transform:translate(calc(var(--medal-size) / -2),-50%);
 border:0;background:none;padding:0;color:var(--medal-ink)
}
.rt-medal-disc{
 box-sizing:border-box;position:relative;display:grid;place-content:center;justify-items:center;gap:3px;
 width:var(--medal-size);height:var(--medal-size);border:3px solid var(--medal-disc-light);border-radius:19px;
 background:radial-gradient(ellipse at 30% 15%,#fff5,transparent 50%),linear-gradient(155deg,var(--medal-disc-light),var(--medal-disc) 72%);
 box-shadow:0 7px 0 var(--medal-disc-edge),0 10px 13px #0006,inset 0 2px 3px #fff6,inset 0 -5px 7px #0002;
 font-size:24px;line-height:1
}
.rt-medal-stop.is-locked{opacity:1;filter:saturate(.36) brightness(.72);cursor:default}

/* Every school / learning road stop shows a real, stable number.
   Completed stages have a separate teal finish so progress is understandable at a glance. */
.rt-medal-disc .rt-medal-stop-number{
 position:absolute;right:5px;bottom:5px;z-index:5;display:grid;place-items:center;
 min-width:23px;height:23px;padding:0 4px;box-sizing:border-box;border-radius:12px;
 background:#f6faff;color:#173a60;border:2px solid #c8e4fa;
 box-shadow:0 2px 5px #071d3642;
 font:900 12px/1 Nunito,system-ui,sans-serif;
 pointer-events:none
}
.rt-medal-stop.is-done .rt-medal-disc{
 border-color:#79dfc1;
 background:linear-gradient(155deg,#d6fff0,#6ccdab 75%);
 box-shadow:0 7px 0 #398e76,0 10px 13px #0004,inset 0 2px 4px #fff8
}
.rt-medal-stop.is-done .rt-medal-stop-number{
 color:#0b644c;background:#e8fff7;border-color:#7bdfba
}
.rt-medal-stop.is-locked .rt-medal-stop-number{
 color:#344459;background:#e9edf4;border-color:#c9d0dc;
 filter:none
}
.rt-medal-start .rt-medal-stop-number{
 color:#085d92;background:#fff7ce;border-color:#f2cd66;
 min-width:27px;height:27px;font-size:14px
}

.rt-medal-disc svg{width:26px;height:26px}
.rt-medal-disc .rt-medal-parrot{width:36px;height:36px;stroke-width:2.6}
.rt-medal-start .rt-medal-parrot{width:53px;height:53px;stroke-width:2.5}
.rt-medal-stop.is-done .rt-medal-parrot{color:#fff3d9}
.rt-medal-stop.is-done .rt-medal-feather{fill:#148eef}
.rt-medal-stop.is-done .rt-medal-head{fill:#4ab9ff}
.rt-medal-stop.is-done .rt-medal-cheek{fill:#ffd858}
.rt-medal-stop.is-done .rt-medal-beak{fill:#ffae28}
.rt-medal-row.is-celebrating .rt-medal-parrot path{animation:rt-medal-color-in .65s ease-out both}
.rt-medal-stop .rt-v3-stars{position:absolute;top:5px;left:50%;transform:translateX(-50%);display:flex;gap:2px;z-index:2;pointer-events:none}
.rt-medal-stop.is-done .rt-medal-disc{padding-top:12px!important}
.rt-medal-stop .rt-v3-stars i{font:800 12px/1 system-ui;color:var(--medal-muted)}
.rt-medal-stop .rt-v3-stars i.on{color:#ffcf57}
.rt-medal-row.is-current{z-index:1;animation:rt-medal-bob 3.2s ease-in-out infinite}
.rt-medal-start{
 display:flex;flex-direction:column;align-items:center;gap:7px;
 transform:translate(-50%,calc(var(--medal-current-size) / -2));
 border-radius:20px;color:var(--medal-active-ink)
}
.rt-medal-start .rt-medal-disc{
 width:var(--medal-current-size);height:var(--medal-current-size);color:#fff;
 background:radial-gradient(ellipse at 28% 15%,#fff8,transparent 54%),linear-gradient(155deg,var(--medal-active),var(--medal-active-edge));
 border:3px solid #effff6;
 box-shadow:0 5px 0 var(--medal-active-edge),0 0 20px color-mix(in srgb,var(--medal-active) 45%,transparent),inset 0 2px 6px #fff9;
}
.rt-medal-start .rt-medal-disc::after{content:"";position:absolute;inset:-7px;border:2px solid var(--medal-active);border-radius:23px;opacity:.35;pointer-events:none}
.rt-medal-start-label{
 display:flex;align-items:center;justify-content:center;gap:6px;min-height:31px;white-space:nowrap;
 padding:3px 11px!important;border:1px solid var(--medal-active-light);border-radius:999px;
 background:linear-gradient(var(--medal-active-light),var(--medal-active));box-shadow:0 3px 0 var(--medal-active-edge);
 font-size:clamp(12px,3.6vw,15px);font-weight:900
}
.rt-medal-papi{
 position:absolute;left:0;bottom:calc(var(--medal-current-size) * .31);
 width:calc(var(--medal-current-size) * 1.05);height:auto;transform:translateX(-82%);pointer-events:none;z-index:2
}
.rt-medal-chest{
 position:absolute;left:81%;transform:translate(-50%,-45%);display:grid;justify-items:center;gap:3px;
 min-width:56px;min-height:48px;padding:3px;border:0;background:none;color:var(--medal-muted);z-index:2
}
.rt-medal-chest img{
 width:clamp(62px,21vw,90px);height:clamp(54px,17vw,72px);object-fit:contain;transform:scale(1.13);
 filter:grayscale(1) brightness(.83);opacity:.72;transition:filter .28s ease,opacity .28s ease
}
.rt-medal-chest span{font:900 11px/1.15 Nunito,system-ui}
.rt-medal-chest.is-ready img{filter:none;opacity:1;animation:rt-medal-chest-hop 2.6s ease-in-out infinite}
.rt-medal-chest.is-ready span{background:#ffd56a;color:#332102;border-radius:12px;padding:4px 6px!important}
.rt-medal-return{
 position:absolute;right:max(15px,calc((100% - 620px) / 2 + 8px));bottom:calc(var(--medal-dock-space) + 13px);
 display:grid;place-items:center;width:49px;height:47px;z-index:3;border-radius:15px;
 border:1px solid var(--medal-active-light);background:linear-gradient(var(--medal-active-light),var(--medal-active));
 box-shadow:0 4px 0 var(--medal-active-edge),0 7px 14px #0005;color:var(--medal-active-ink)
}
.rt-medal-return[hidden]{display:none!important}
.rt-medal-return svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.rt-medal-return.is-below svg{transform:rotate(180deg)}
.rt-medal-route button:focus-visible,.rt-medal-scroll:focus-visible{outline:3px solid #ffd56a;outline-offset:2px}
@media(max-height:650px){.rt-medal-route{--bi-nav-h:62px}}
@media(prefers-reduced-motion:reduce){.rt-medal-row.is-current,.rt-medal-row.is-celebrating .rt-medal-parrot path,.rt-medal-chest.is-ready img{animation:none}}
}
@keyframes rt-medal-bob{0%,18%,45%,100%{transform:translateY(0)}30%{transform:translateY(-5px)}}
@keyframes rt-medal-color-in{from{fill:transparent}}
@keyframes rt-medal-chest-hop {
 0%,34%,100%{transform:scale(1.13)}
 8%{transform:scale(1.19,1.05)}
 18%{transform:translateY(-7px) rotate(-5deg) scale(1.13)}
 27%{transform:scale(1.17,1.08)}
}

/* Parkur figures stay in the scenery beside the lesson buttons. */
.dm-route-badge-art{display:block;aspect-ratio:1;background-repeat:no-repeat}
.rt-medal-world .dm-route-badge-map{
 position:absolute;left:12%;top:var(--badge-y);transform:translate(-50%,-45%);
 width:clamp(44px,15%,95px);min-height:44px;display:grid;justify-items:center;gap:2px;
 border:0;padding:0;background:transparent;cursor:pointer;color:#7d8ea8;
}
.dm-route-badge-map .dm-route-badge-art{width:100%;filter:grayscale(1);opacity:.65}
.dm-route-badge-map .dm-route-badge-stars{font:800 clamp(8px,2.7vw,13px)/1 system-ui;white-space:nowrap}
.dm-route-badge-map.is-earned{color:#f9b840}
.dm-route-badge-map.is-earned .dm-route-badge-art{filter:none;opacity:1}
.dm-route-badge-map.is-new .dm-route-badge-art{animation:dm-route-badge-reveal .7s ease-out both}
@keyframes dm-route-badge-reveal{
 from{filter:grayscale(1);opacity:.65;transform:scale(.84)}
 64%{transform:scale(1.14)}
 to{filter:none;opacity:1;transform:scale(1)}
}
.dm-route-badge-overlay{
 position:fixed;inset:0;z-index:2147482100;display:grid;place-items:center;
 padding:12px;background:#06112bd9;backdrop-filter:blur(5px);
}
.dm-route-badge-dialog{
 box-sizing:border-box;position:relative;isolation:isolate;overflow:hidden;
 width:min(100%,390px);max-height:calc(100dvh - 24px);overflow:auto;
 display:grid;justify-items:center;gap:8px;padding:24px 16px 18px;
 text-align:center;color:#fff;background:radial-gradient(ellipse at 50% 39%,#355ea6,#182853 63%);
 border:2px solid #8bc9ff;border-radius:28px;box-shadow:0 0 34px #43affb66;
}
.dm-route-badge-dialog :is(h2,h3,p){margin:0;color:inherit}
.dm-route-badge-dialog h2{font-size:clamp(22px,6vw,31px);font-weight:900}
.dm-route-badge-dialog h3{font-size:clamp(18px,5vw,24px)}
.dm-route-badge-dialog small{color:#d3e8ff}
.dm-route-badge-dialog .dm-route-badge-art{
 width:min(61vw,29dvh,205px);filter:drop-shadow(0 0 20px #ffc76e88);
 animation:dm-route-badge-pop .65s cubic-bezier(.2,.8,.28,1.22) both;
}
.dm-route-badge-dialog .dm-route-badge-set{color:#ffe098;font-weight:850;letter-spacing:.035em}
.dm-route-badge-dialog strong{color:#ffe098;font-size:14px}
.dm-route-badge-dialog.is-locked .dm-route-badge-art{filter:grayscale(1);opacity:.8;animation:none}
.dm-route-badge-dialog button{
 min-height:44px;margin-top:6px;padding:5px 24px;border-radius:14px;
 border:1px solid #b9ebff;background:#8adfff;color:#10294c;font:850 16px system-ui;
}
.dm-route-badge-confetti{position:absolute;inset:0;z-index:-1;pointer-events:none}
.dm-route-badge-confetti i{
 position:absolute;left:calc(7% + var(--i) * 7.5%);top:-12px;width:6px;height:12px;
 border-radius:2px;background:#ffd36b;animation:dm-route-badge-confetti 1.3s ease-in both;
 animation-delay:calc(var(--i) * 26ms);
}
.dm-route-badge-confetti i:nth-child(3n){background:#e99cff}
.dm-route-badge-confetti i:nth-child(3n+1){background:#76e6ff}
@keyframes dm-route-badge-pop{from{opacity:.25;transform:translateY(34px) scale(.28)}to{opacity:1;transform:none}}
@keyframes dm-route-badge-confetti{70%{opacity:1}to{opacity:0;transform:translateY(370px) rotate(300deg)}}
.dm-route-badge-collection{margin:18px 0;color:var(--dm-text,#e6f4ff)}
.dm-route-badge-collection details{margin:8px 0;padding:10px;border:1px solid var(--dm-line,#53769e);border-radius:15px;background:var(--dm-surface,#253758)}
.dm-route-badge-collection summary{font-weight:850;cursor:pointer}
.dm-route-badge-collection [data-route-badge-list]{margin-top:8px}
.dm-route-badge-collection ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(120px,100%),1fr));gap:8px;list-style:none;padding:0;margin:0}
.dm-route-badge-collection li>button{
 display:grid;justify-items:center;align-content:start;gap:3px;width:100%;height:100%;padding:6px;
 border:1px solid var(--dm-line,#53769e);border-radius:12px;background:var(--dm-soft,#294064);
 color:inherit;text-align:center;cursor:pointer;
}
.dm-route-badge-collection .dm-route-badge-art{width:min(100%,90px)}
.dm-route-badge-collection li>button>span:last-child{color:var(--dm-link,#84dcff);font-weight:800;font-size:12px}
@media(prefers-reduced-motion:reduce){
 .dm-route-badge-map.is-new .dm-route-badge-art,.dm-route-badge-dialog .dm-route-badge-art{animation:none}
 .dm-route-badge-confetti{display:none}
}

/* Milestones continue awarding and announcing badges through parkur-badges.js. */
.dm-route-badge-map {display:none!important}
