/* Approved concept 1: Papi + four pastel pills in one compact row. */
body .dm-has-wallet{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;min-width:0;box-sizing:border-box}
body .dm-has-wallet>.dm-unified-wallet.dm-papi-wallet{position:relative!important;inset:auto!important;transform:none!important;display:grid!important;grid-template-columns:clamp(34px,10vw,54px) minmax(0,.85fr) minmax(0,.9fr) minmax(0,1.15fr) minmax(0,1.2fr)!important;align-items:center;gap:clamp(3px,1vw,8px)!important;order:-10!important;flex:0 0 100%!important;grid-column:1/-1!important;grid-row:auto!important;width:100%!important;max-width:100%!important;margin:0 0 4px!important;padding:0!important;z-index:2!important;pointer-events:auto!important;box-sizing:border-box}
body .dm-unified-wallet.dm-papi-wallet[hidden]{display:none!important}
body .dm-unified-wallet.dm-papi-wallet>button{display:flex!important;align-items:center!important;justify-content:center!important;gap:clamp(2px,.6vw,5px)!important;min-width:0!important;min-height:44px!important;height:clamp(44px,12vw,58px)!important;padding:5px 3px!important;border:1px solid #ffe3c2!important;border-radius:clamp(13px,3.8vw,19px)!important;background:linear-gradient(145deg,#fffdf9,#fff7ee)!important;box-shadow:0 2px 0 #f2e8dc80!important;color:#103a50!important;-webkit-text-fill-color:#103a50!important;font:900 clamp(12px,3.4vw,18px)/1.15 Nunito,system-ui,sans-serif!important;white-space:nowrap;overflow:hidden!important;cursor:pointer;touch-action:manipulation}
body .dm-unified-wallet.dm-papi-wallet>[data-pw=gold]{background:linear-gradient(145deg,#fffdf8,#fff8e8)!important;border-color:#ffe3b9!important}
body .dm-unified-wallet.dm-papi-wallet>[data-pw=xp]{background:linear-gradient(145deg,#fbf8ff,#f2ebff)!important;border-color:#ded0ff!important}
body .dm-unified-wallet.dm-papi-wallet>[data-pw=time]{background:linear-gradient(145deg,#f5ffff,#eafaff)!important;border-color:#b9eaf1!important}
body .dm-unified-wallet .dm-pw-art{display:block!important;flex:none;width:clamp(20px,5.8vw,32px);height:clamp(20px,5.8vw,32px);padding:0!important;margin:0!important;border:0!important;background-image:url('route-assets/compact-wallet-atlas-v1.webp');background-repeat:no-repeat;background-size:500% auto;background-position:0% 50%;box-shadow:none!important}
body .dm-unified-wallet .dm-pw-papi{width:100%;height:auto;aspect-ratio:1;align-self:center;border-radius:50%;background-position:0% 50%;background-size:500% auto}
body .dm-unified-wallet .dm-pw-energy{background-position:25% 50%}
body .dm-unified-wallet .dm-pw-gold{background-position:50% 50%}
body .dm-unified-wallet .dm-pw-xp{background-position:75% 50%}
body .dm-unified-wallet .dm-pw-time{background-position:100% 50%}
body .dm-unified-wallet .dm-pw-copy{display:flex!important;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;background:none!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important;color:inherit!important;font:inherit!important}
body .dm-unified-wallet [data-pw-value]{font:inherit!important;letter-spacing:-.35px}
body .dm-unified-wallet [data-pw-minutes]{font:800 clamp(8px,2vw,11px)/1 Nunito,system-ui!important;color:#547689!important;-webkit-text-fill-color:#547689!important;letter-spacing:-.15px}
body .dm-unified-wallet button:focus-visible{outline:3px solid #8053d8;outline-offset:2px}
body .dm-unified-wallet button:active{transform:translateY(1px)}
@media(max-width:360px){
 body .dm-unified-wallet.dm-papi-wallet>button{font-size:11.5px!important;padding-inline:2px!important;gap:1px!important}
 body .dm-unified-wallet .dm-pw-art:not(.dm-pw-papi){width:18px;height:18px}
}
body .dm-has-wallet>:is(h1,h2){flex:1 1 100%!important;font-size:clamp(21px,5.5vw,30px)!important;line-height:1.2!important;margin:0!important;min-width:0}
body #tab-dunya .rt-top{padding:4px 2px 10px!important}
body #tab-meduakis:not(.fr-home-view) .akis-baslik.dm-has-wallet{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
body #tab-meduakis:not(.fr-home-view) .akis-baslik.dm-has-wallet>.dm-unified-wallet{grid-column:1/-1!important;grid-row:auto!important}
body #tab-aktiviteler .gg-brand.dm-has-wallet>b{display:none!important}
body .gg-brand.dm-has-wallet>span,body .ds-header.dm-has-wallet>.ds-wallet,body #tab-dunya [data-dm-wallet],body #tab-dunya .dm-parkur-wallet{display:none!important}
body:has(.dm-unified-wallet) #ybEnerji{display:none!important}
body.dm-guest-mode :is(#tab-dunya,#tab-meduakis,#tab-aktiviteler,#tab-derscalis,#tab-magaza,#tab-ilerlemem,#tab-basarilarim,#tab-dolabim).dc-fullscreen-overlay.active{top:44px!important;height:calc(100dvh - 44px)!important}
html[data-dm-theme=night] body .dm-unified-wallet.dm-papi-wallet>button{background:linear-gradient(145deg,#263144,#202b3e)!important;border-color:#59627b!important;color:#f3f8ff!important;-webkit-text-fill-color:#f3f8ff!important;box-shadow:0 2px 0 #0c172580!important}
html[data-dm-theme=night] body .dm-unified-wallet.dm-papi-wallet>[data-pw=xp]{background:linear-gradient(145deg,#39304e,#2e2844)!important;border-color:#7c659f!important}
html[data-dm-theme=night] body .dm-unified-wallet.dm-papi-wallet>[data-pw=time]{background:linear-gradient(145deg,#213c4b,#203344)!important;border-color:#507c89!important}
html[data-dm-theme=night] body .dm-unified-wallet [data-pw-minutes]{color:#bcd8e5!important;-webkit-text-fill-color:#bcd8e5!important}
/* Keep question screens dedicated to question progress and gameplay controls. */
body :is(#bzPerde,#dmStoryLesson,.game-modal-overlay,#meteorGame,#wordWheel,#papiCards,#harfBahcesiOverlay) .dm-unified-wallet{display:none!important}

/* On phones, place the amount below its icon so five-digit balances fit. */
@media(max-width:480px){
 body .dm-has-wallet>.dm-unified-wallet.dm-papi-wallet{grid-template-columns:32px repeat(4,minmax(0,1fr))!important;gap:4px!important}
 body .dm-unified-wallet.dm-papi-wallet>button{flex-direction:column!important;height:60px!important;min-height:60px!important;padding:5px 2px!important;gap:3px!important;font-size:12px!important;box-sizing:border-box!important}
 body .dm-unified-wallet .dm-pw-art:not(.dm-pw-papi){width:20px!important;height:20px!important}
 body .dm-unified-wallet .dm-pw-copy{align-items:center!important;max-width:100%!important;gap:2px!important}
 body .dm-unified-wallet [data-pw-value]{font-variant-numeric:tabular-nums;line-height:14px!important;letter-spacing:-.4px!important}
 body .dm-unified-wallet [data-pw-minutes]{font-size:8px!important;line-height:9px!important}
}
