/* menu-1: compact 6-item nav, avatar menu, Social sub-menu, light-theme glow. Own code, MIT (c) 2026 Lapdrop */
.tabbar.ld-tabbar6{overflow-x:visible;justify-content:space-around}
.tabbar.ld-tabbar6 a{flex:1 1 0;min-width:0;padding:0 2px}
.tabbar.ld-tabbar6 a span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ld-avatar-btn{font-weight:800;font-size:15px;border-radius:50%;border:2px solid var(--accent,#fbbf24)}
.ld-avatar-btn.is-on{box-shadow:0 0 0 3px var(--accent-soft)}
.ld-avmenu{position:fixed;top:60px;right:10px;z-index:200;min-width:210px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:6px;display:flex;flex-direction:column}
.ld-avmenu a{display:flex;gap:10px;align-items:center;padding:10px 12px;border-radius:10px;color:var(--text);text-decoration:none;font-size:14px;min-height:44px}
.ld-avmenu a:hover,.ld-avmenu a:focus-visible{background:var(--surface-2)}
.ld-subnav{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;max-width:1100px;margin:0 auto;padding:14px 20px 4px}
.ld-subnav::-webkit-scrollbar{display:none}
.ld-subnav__a{flex:0 0 auto;padding:8px 14px;border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--text-2);font-size:13px;font-weight:600;text-decoration:none;min-height:36px;display:flex;align-items:center}
.ld-subnav__a[aria-current="page"]{background:var(--accent,#fbbf24);color:#1a1300;border-color:transparent}
/* light theme: glowing animated background in the light palette (text sits on solid surfaces, so contrast is unchanged) */
html[data-theme="light"] body::before{content:"";position:fixed;inset:-10%;pointer-events:none;z-index:-1;
  background:radial-gradient(circle at 18% 28%,rgba(124,58,237,.22) 0%,transparent 42%),
    radial-gradient(circle at 82% 68%,rgba(251,191,36,.28) 0%,transparent 45%),
    radial-gradient(circle at 55% 12%,rgba(6,182,212,.18) 0%,transparent 40%),
    radial-gradient(circle at 30% 88%,rgba(236,72,153,.14) 0%,transparent 40%);
  filter:blur(8px);animation:ld-light-glow 18s ease-in-out infinite alternate}
@keyframes ld-light-glow{0%{transform:translate3d(0,0,0) scale(1);opacity:.9}50%{transform:translate3d(2%,-2%,0) scale(1.08);opacity:1}100%{transform:translate3d(-2%,2%,0) scale(1.03);opacity:.85}}
html[data-theme="light"] .tabbar{background:rgba(255,255,255,.88);border-top:1px solid rgba(124,58,237,.15);box-shadow:0 -4px 24px rgba(124,58,237,.12)}
html[data-theme="light"] .tabbar a[aria-current="page"]{color:#b45309;text-shadow:0 0 12px rgba(251,191,36,.55)}
html[data-theme="light"] .tabbar a[aria-current="page"]::before{background:#d97706;box-shadow:0 0 10px rgba(217,119,6,.6)}
@media (prefers-reduced-motion: reduce){html[data-theme="light"] body::before,body::before{animation:none!important}}

/* home-fix 31 Oct: 5-item bottom nav + More sheet */
.tabbar.ld-tabbar5{overflow-x:visible;justify-content:space-around}
.tabbar.ld-tabbar5 a{flex:1 1 0;min-width:0;padding:0 4px;font-size:11px}
.tabbar.ld-tabbar5 a span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tabbar #ldMoreBtn svg{fill:currentColor;stroke:none}
.ld-more{position:fixed;inset:0;z-index:1200}
.ld-more__bg{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.ld-more__sheet{position:absolute;left:0;right:0;bottom:0;max-height:82vh;overflow:auto;background:var(--surface,#16121f);color:var(--text,#fff);border-radius:20px 20px 0 0;padding:8px 16px calc(20px + env(safe-area-inset-bottom));box-shadow:0 -10px 40px rgba(0,0,0,.35);animation:ldMoreUp .18s ease-out}
@media (prefers-reduced-motion:reduce){.ld-more__sheet{animation:none}}
@keyframes ldMoreUp{from{transform:translateY(40px);opacity:.6}to{transform:none;opacity:1}}
.ld-more__grab{width:40px;height:4px;border-radius:2px;background:currentColor;opacity:.25;margin:4px auto 8px}
.ld-more__top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.ld-more__top h2{margin:0;font-size:18px}
.ld-more__x{width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:inherit;font-size:18px;cursor:pointer}
.ld-more__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.ld-more__a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:78px;padding:10px 4px;border-radius:14px;background:rgba(124,58,237,.12);color:inherit;text-decoration:none;text-align:center}
.ld-more__a span{font-size:22px;line-height:1}
.ld-more__a b{font-size:12px;font-weight:600;line-height:1.2}
html[data-theme="light"] .ld-more__sheet{background:#fff;color:#1f1830}
html[data-theme="light"] .ld-more__a{background:rgba(124,58,237,.08)}
