/* Emoji Secret - side drawer + map-first layout. Purple theme tokens; yellow accents as approved. */
.dr-lead{display:flex;align-items:center;gap:10px;min-width:0}
.menu-btn{flex:none;width:42px;height:42px;border-radius:12px;border:0;cursor:pointer;font-size:20px;line-height:1;color:var(--on-yellow,#1f1235);background:linear-gradient(180deg,#fde047,var(--yellow,#facc15));font-weight:800;box-shadow:inset 0 -2px 0 #0000001f,0 3px 10px #0000002e;-webkit-tap-highlight-color:transparent}
.menu-btn:focus-visible,.dr-item:focus-visible,.dr-close:focus-visible{outline:2px solid #fff;outline-offset:2px}

/* tabs stay in the DOM (other modules click them) but the drawer replaces them */
.tabs{display:none!important}
.hero{display:none}
body[data-screen="free"] .hero{display:block}
.map-entry{display:none!important}

/* back-to-map bar */
.dr-back{display:none;margin:0 0 14px}
body:not([data-screen="map"]) .dr-back{display:flex}
.dr-back-btn{flex:none!important;width:auto;padding:9px 16px;background:#241a3d;border:1.5px solid #facc1599;color:var(--yellow,#facc15);font-weight:800;border-radius:12px;cursor:pointer}
body[data-screen="map"] .shell{padding-top:22px}

/* level play: category/level chips, Next and Share are not part of a map level */
body[data-screen="level"] #catChips,body[data-screen="level"] #lvlChips,body[data-screen="level"] #nextBtn,body[data-screen="level"] #shareDailyBtn{display:none!important}

/* drawer */
.dr-backdrop{position:fixed;inset:0;background:#05020ccc;opacity:0;pointer-events:none;transition:opacity .25s;z-index:900}
.dr-backdrop.open{opacity:1;pointer-events:auto}
.drawer{position:fixed;top:0;bottom:0;inset-inline-start:0;width:min(84vw,320px);background:#1b1430;border-inline-end:1px solid var(--line,#392b58);box-shadow:8px 0 40px #000a;z-index:901;display:flex;flex-direction:column;transform:translateX(-105%);transition:transform .26s ease;visibility:hidden;overflow-y:auto}
[dir=rtl] .drawer{transform:translateX(105%);box-shadow:-8px 0 40px #000a}
.drawer.open{transform:none;visibility:visible}
body.dr-open{overflow:hidden}
.dr-head{display:flex;align-items:center;gap:10px;padding:16px 16px 12px;border-bottom:1px solid var(--line,#392b58)}
.dr-mark{width:36px;height:36px;border-radius:12px;background:linear-gradient(135deg,#8b5cf6,#d946ef);display:grid;place-items:center;font-size:20px}
.dr-title{flex:1;font-size:17px;color:var(--text,#f7f3ff)}
.dr-close{width:36px;height:36px;border-radius:10px;border:1px solid var(--line,#392b58);background:#241a3d;color:#fff;cursor:pointer;font-size:15px}
.dr-list{display:flex;flex-direction:column;gap:8px;padding:14px}
.dr-item{display:flex;align-items:center;gap:12px;width:100%;padding:13px 14px;border-radius:14px;border:0;cursor:pointer;text-align:start;font:800 14px inherit;color:var(--on-yellow,#1f1235);background:linear-gradient(180deg,#fde047,var(--yellow,#facc15));box-shadow:inset 0 -2px 0 #0000001f,0 3px 10px #0000002e}
.dr-item.on{background:linear-gradient(180deg,#fbbf24,#f59e0b);box-shadow:0 0 0 2px #fff,0 6px 20px #f59e0b66,inset 0 -2px 0 #0000002e}
.dr-ic{font-size:20px;width:26px;text-align:center}
.dr-tx{flex:1}
.dr-arrow{opacity:.6;font-size:18px}
[dir=rtl] .dr-arrow{transform:scaleX(-1)}

/* narrow phones: keep ☰ + logo mark + points + language in one row */
@media(max-width:480px){.brand span:not(.brand-mark){display:none}.topbar{gap:8px}.top-actions{gap:8px}.points-pill,select{padding:8px 9px}}
@media(prefers-reduced-motion:reduce){.drawer,.dr-backdrop{transition:none}}

/* map = home: full-screen, the header/footer/ambient glow give way to the map HUD */
body[data-screen="map"]{overflow:hidden}
body[data-screen="map"] .topbar,body[data-screen="map"] footer,body[data-screen="map"] .ambient{display:none}
body[data-screen="map"] .shell{max-width:none;padding:0;margin:0}
/* language picker lives in the drawer */
.dr-lang{margin:4px 14px 18px;width:calc(100% - 28px)}

/* climbing stages: no direct Reveal button (hints stay) */
body[data-screen="level"] #revealBtn{display:none!important}
