/* Cuber Tools new look (design 9): dark Liquid Glass. Everything is scoped to html.v9 so the classic look is untouched. */
:root.v9.v9{--paper:#070a14;--card:rgba(255,255,255,.075);--ink:#ffffff;--ink2:rgba(255,255,255,.8);--ink3:rgba(255,255,255,.62);--line:rgba(255,255,255,.14);--line2:rgba(255,255,255,.24);
  --blue:#6b8cff;--blue-ink:#0b0f1c;--blue-soft:rgba(107,140,255,.2);--good:#3ddc84;--warn:#ffc533;--bad:#ff6b5f;--display:Inter,system-ui,sans-serif;--body:Inter,system-ui,sans-serif;
  --shadow:0 18px 40px rgba(0,0,0,.28);--g9:linear-gradient(180deg,rgba(255,255,255,.15),rgba(255,255,255,.05));--g9b:rgba(255,255,255,.22);color-scheme:dark}
html.v9 body{background:#070a14;color:var(--ink)}
/* the coloured lights behind the glass */
#bg9{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:#070a14}
#bg9 i{position:absolute;border-radius:50%;filter:blur(80px);opacity:.7}
#bg9 i:nth-child(1){left:6%;top:-10%;width:34vw;height:34vw;background:#1d4fd8}
#bg9 i:nth-child(2){left:52%;top:12%;width:36vw;height:36vw;background:#1f9a52;opacity:.55}
#bg9 i:nth-child(3){left:72%;top:-16%;width:30vw;height:30vw;background:#7a5cff}
#bg9 i:nth-child(4){left:22%;top:58%;width:36vw;height:36vw;background:#c8352b;opacity:.5}
#bg9 i:nth-child(5){left:76%;top:64%;width:28vw;height:28vw;background:#d79a00;opacity:.5}
/* glass surfaces */
html.v9 :is(.pnl,.tool,.item,.lc,.contbtn,.racebar,.g9,#nav9,.sheet .box){background:var(--g9)!important;border:1px solid var(--g9b)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.32),inset 0 -1px 0 rgba(255,255,255,.05),var(--shadow)!important;color:var(--ink)}
html.v9 :is(.pnl,.tool,.g9,.sheet .box){-webkit-backdrop-filter:blur(24px) saturate(170%);backdrop-filter:blur(24px) saturate(170%)}
html.v9 .pnl .pnl{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(255,255,255,.05)!important}
html.v9 .sheet .box{background:linear-gradient(180deg,rgba(40,46,70,.94),rgba(18,22,36,.96))!important}

html.v9 :is(.btn:not(.pri),.chipb,.seg,.themebtn,.tag){background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2);color:var(--ink)}
html.v9 .btn.pri{background:#fff;color:#0b0f1c;border-color:#fff}
html.v9 :is(.in,.inp,input[type=text],input[type=search],input[type=number],select,textarea){background:rgba(255,255,255,.08);color:var(--ink);border-color:rgba(255,255,255,.22)}
html.v9 select option{background:#141a2c;color:#fff}
html.v9 .muted{color:var(--ink3)}
html.v9 :is(#lgBtn,#lgbg,.lgtab){display:none!important}
html.v9 .foot{background:transparent;border-color:var(--line)}
html.v9 .tool .stripe{opacity:.25}
/* the corner buttons stay: Chat and Shop, glass with a solid Chat */
html.v9 .fab a{background:rgba(30,36,56,.92);border:1px solid rgba(255,255,255,.22);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 10px 26px rgba(0,0,0,.35)}
html.v9.v9l .fab a{background:rgba(255,255,255,.55);border-color:rgba(16,19,28,.12)}
html.v9 .fab .chat{background:#fff;color:#0b0f1c;border-color:#fff}
html.v9 .fab{z-index:60}
/* side menu (wide screens only) */
#nav9{display:none}
@media (min-width:1000px){
  html.v9 #nav9{display:flex;flex-direction:column;gap:3px;position:fixed;left:14px;top:14px;bottom:var(--fab9,140px);height:-webkit-max-content;height:max-content;max-height:calc(100vh - 14px - var(--fab9,140px));margin:auto 0;overflow:auto;padding:16px 12px;border-radius:26px;z-index:45}
  html.v9 body{padding-left:242px}
  html.v9 .top .brand{display:none}
}
#nav9 .n9-brand{display:flex;align-items:center;gap:10px;padding:2px 10px 14px;text-decoration:none;color:#fff;font:800 16px Inter,sans-serif}
#nav9 .n9-brand img{border-radius:8px}
#nav9 .n9-i{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 12px;border-radius:14px;text-decoration:none;color:#fff;font:600 15px Inter,sans-serif}
#nav9 .n9-i:hover{background:rgba(255,255,255,.08)}
#nav9 .n9-i.on{background:rgba(255,255,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.4)}
#nav9 .n9-h{font:700 11px Inter,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.6);padding:12px 12px 4px}
#nav9 .n9-more{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
#nav9 .n9-m{display:flex;align-items:center;gap:8px;min-height:40px;padding:0 10px;border-radius:12px;text-decoration:none;color:rgba(255,255,255,.82);font:600 12.5px Inter,sans-serif;white-space:nowrap;overflow:hidden}
#nav9 .n9-m:hover,#nav9 .n9-m.on{background:rgba(255,255,255,.12);color:#fff}
/* new home */
.h9{display:flex;flex-direction:column;gap:18px}
.h9-hi{font:800 34px Inter,sans-serif;letter-spacing:-.02em;color:#fff;margin:4px 0 0}
.h9 .g9{border-radius:26px;text-decoration:none;color:#fff}
.h9-top{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:16px}
.h9-tm{display:flex;flex-direction:column;gap:10px;padding:28px;min-height:300px;border-radius:30px!important}
.h9-k,.h9-st{display:flex;align-items:center;gap:9px;font:700 13px Inter,sans-serif;letter-spacing:.1em;text-transform:uppercase}
.h9-st{font-size:16px;letter-spacing:0;text-transform:none}
.h9-big{font:800 clamp(56px,8vw,96px) Inter,sans-serif;letter-spacing:-.03em;line-height:1}
.h9-sub{font:500 14px Inter,sans-serif;color:rgba(255,255,255,.76)}
.sp9{flex:1}
.h9-go{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;height:52px;padding:0 26px;border-radius:999px;background:rgba(255,255,255,.94);color:#0b0f1c;font:800 16px Inter,sans-serif;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.h9-col{display:flex;flex-direction:column;gap:16px}
.h9-s{display:flex;flex-direction:column;gap:8px;padding:22px;flex:1}
.h9-b{align-self:flex-start;margin-top:auto;min-height:44px;padding:0 18px;display:inline-flex;align-items:center;border-radius:999px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.3);color:#fff;font:700 14px Inter,sans-serif;text-decoration:none}
.h9-mini{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.h9-c{display:flex;flex-direction:column;gap:8px;padding:16px;min-width:0;border-radius:22px!important}
.h9-c b{font:700 15px Inter,sans-serif}.h9-c>span:last-child{font:500 12px Inter,sans-serif;color:rgba(255,255,255,.72)}
.h9-ic{width:42px;height:42px;border-radius:14px;background:rgba(255,255,255,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.3);display:grid;place-items:center}
.h9-h{font:700 13px Inter,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.6);margin:6px 0 -6px}
.h9-more{display:flex;flex-wrap:wrap;gap:10px}
.h9-p{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:999px!important;font:600 14px Inter,sans-serif}
.h9-n{font-style:normal;font-size:11px;font-weight:800;background:#ff5a4e;color:#fff;border-radius:999px;padding:1px 7px;margin-left:4px}
.h9-cl{margin:6px 0 0}
.h9-sw{background:none;border:0;color:rgba(255,255,255,.6);text-decoration:underline;font:500 13px Inter,sans-serif;cursor:pointer;padding:8px 0;min-height:44px}
@media (max-width:860px){.h9-top{grid-template-columns:minmax(0,1fr)}.h9-mini{grid-template-columns:repeat(2,minmax(0,1fr))}.h9-tm{min-height:240px}}
@media (min-width:861px) and (max-width:1099px){.h9-mini{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* owner panel */
html.v9 .own{background:rgba(7,10,20,.78);-webkit-backdrop-filter:blur(30px) saturate(150%);backdrop-filter:blur(30px) saturate(150%);color:var(--ink)}
html.v9 .own-top{background:rgba(7,10,20,.55);border-color:rgba(255,255,255,.14);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px)}
html.v9 #ownCrown{border-color:#f2b600}
/* compact side menu so it sits centred between the top and the corner buttons */
#nav9 .n9-i{min-height:40px}
#nav9 .n9-brand{padding-bottom:10px}
#nav9 .n9-more{grid-template-columns:repeat(4,minmax(0,1fr));gap:2px}
#nav9 .n9-m{flex-direction:column;justify-content:center;gap:3px;min-height:52px;padding:4px 2px;font-size:10px;text-align:center}
#nav9 .n9-m span{max-width:100%;overflow:hidden;text-overflow:ellipsis}

/* ---------- light mode: white frosted glass over soft pastel lights ---------- */
:root.v9.v9.v9l{--paper:#eef1f7;--card:rgba(255,255,255,.6);--ink:#10131c;--ink2:rgba(16,19,28,.78);--ink3:rgba(16,19,28,.6);--line:rgba(16,19,28,.12);--line2:rgba(16,19,28,.2);
  --blue:#2650f5;--blue-ink:#ffffff;--blue-soft:rgba(38,80,245,.12);--good:#14864a;--warn:#a36f00;--bad:#d03a2f;
  --shadow:0 14px 34px rgba(30,40,80,.12);--g9:linear-gradient(160deg,rgba(255,255,255,.46),rgba(255,255,255,.16) 55%,rgba(255,255,255,.26));--g9b:rgba(255,255,255,.75);color-scheme:light}
html.v9.v9l body,html.v9l #bg9{background:#eef1f7}
html.v9l #bg9 i{opacity:.85!important;filter:blur(70px) saturate(140%)}
html.v9l #bg9 i:nth-child(1){background:#4f7dff}html.v9l #bg9 i:nth-child(2){background:#2ed37a}html.v9l #bg9 i:nth-child(3){background:#a98bff}html.v9l #bg9 i:nth-child(4){background:#ff6b5e}html.v9l #bg9 i:nth-child(5){background:#ffc23d}
html.v9l :is(.pnl,.tool,.item,.lc,.contbtn,.racebar,.g9,#nav9){box-shadow:inset 0 1.5px 1px rgba(255,255,255,.95),inset 0 -1px 1px rgba(255,255,255,.4),inset 1px 0 1px rgba(255,255,255,.35),0 18px 40px rgba(30,40,80,.14)!important}
html.v9l :is(.pnl,.tool,.g9){-webkit-backdrop-filter:blur(18px) saturate(190%);backdrop-filter:blur(18px) saturate(190%)}
html.v9.v9l .sheet .box{background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(244,246,251,.97))!important}

html.v9.v9l .pnl .pnl{background:rgba(255,255,255,.22)!important}
html.v9.v9l :is(.btn:not(.pri),.chipb,.seg,.themebtn,.tag){background:rgba(255,255,255,.38);border-color:rgba(16,19,28,.12);color:var(--ink)}
html.v9.v9l .btn.pri{background:#10131c;color:#fff;border-color:#10131c}
html.v9.v9l :is(.in,.inp,input[type=text],input[type=search],input[type=number],select,textarea){background:rgba(255,255,255,.45);color:var(--ink);border-color:rgba(16,19,28,.16)}
html.v9.v9l select option{background:#fff;color:#10131c}
html.v9.v9l .fab a{color:#10131c}
html.v9.v9l .fab .chat{background:#10131c;color:#fff;border-color:#10131c}
html.v9.v9l .own{background:rgba(238,241,247,.55)}
html.v9.v9l .own-top{background:rgba(255,255,255,.35);border-color:rgba(16,19,28,.1)}
html.v9l #nav9 .n9-brand,html.v9l #nav9 .n9-i{color:#10131c}
html.v9l #nav9 .n9-i:hover{background:rgba(16,19,28,.06)}
html.v9l #nav9 .n9-i.on{background:#10131c;color:#fff;box-shadow:none}
html.v9l #nav9 .n9-h{color:rgba(16,19,28,.55)}
html.v9l #nav9 .n9-m{color:rgba(16,19,28,.75)}
html.v9l #nav9 .n9-m:hover,html.v9l #nav9 .n9-m.on{background:rgba(16,19,28,.08);color:#10131c}
html.v9l .h9-hi,html.v9l .h9 .g9{color:#10131c}
html.v9l .h9-sub,html.v9l .h9-c>span:last-child{color:rgba(16,19,28,.68)}
html.v9l .h9-go{background:#10131c;color:#fff;box-shadow:0 8px 22px rgba(16,19,28,.22)}
html.v9l .h9-b{background:rgba(255,255,255,.4);border-color:rgba(16,19,28,.14);color:#10131c}
html.v9l .h9-ic{background:rgba(255,255,255,.45);box-shadow:inset 0 1px 0 #fff,0 2px 8px rgba(30,40,80,.08)}
html.v9l .h9-h,html.v9l .h9-sw{color:rgba(16,19,28,.55)}
/* darker icon colours so they read on white */
html.v9l svg[stroke="#3ddc84"]{stroke:#14864a}html.v9l svg[stroke="#ffc533"]{stroke:#a36f00}html.v9l svg[stroke="#33c7e0"]{stroke:#0b7f94}
html.v9l svg[stroke="#ff9a4d"]{stroke:#c55a0c}html.v9l svg[stroke="#ff8a80"],html.v9l svg[stroke="#ff5a4e"]{stroke:#cc3a2e}html.v9l svg[stroke="#5b8cff"],html.v9l svg[stroke="#8fb4ff"]{stroke:#2650f5}html.v9l svg[stroke="#a07bff"]{stroke:#6a46e0}
#nav9 .n9-t{display:flex;align-items:center;gap:10px;min-height:40px;margin-top:8px;padding:0 12px;border-radius:14px;border:1px solid var(--g9b);background:rgba(255,255,255,.08);color:inherit;font:600 13px Inter,sans-serif;cursor:pointer}
html.v9l #nav9 .n9-t{background:rgba(255,255,255,.4);border-color:rgba(16,19,28,.12);color:#10131c}
html.v9:not(.v9l) #nav9 .n9-t{color:#fff}

/* top bar: no strip, just floating pills */
html.v9 .top{background:transparent!important;border:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html.v9 .top .wrap{height:66px}
html.v9 .top .brand span{color:var(--ink);font-family:Inter,sans-serif;font-weight:800;letter-spacing:.06em}
html.v9 .top :is(.chipb,.themebtn){height:40px;box-sizing:border-box;background:rgba(24,30,48,.86);border:1px solid rgba(255,255,255,.16);color:#fff;font:600 13px Inter,system-ui,sans-serif;box-shadow:0 6px 18px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.16)}
html.v9 .top .chipb{padding:0 14px;border-radius:999px}
html.v9 .top .themebtn{width:40px;padding:0;border-radius:50%;display:inline-grid;place-items:center}
html.v9 .top .themebtn svg{width:18px;height:18px}
html.v9.v9l .top :is(.chipb,.themebtn){background:rgba(255,255,255,.42);-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);border-color:rgba(16,19,28,.1);color:#10131c;box-shadow:0 6px 18px rgba(30,40,80,.12)}

/* side menu: no backdrop blur (iPad Safari can let blurred fixed panels drift while scrolling); a richer tint keeps the glass look */
html.v9 #nav9{background:linear-gradient(180deg,rgba(40,48,78,.92),rgba(22,27,46,.94))!important}
html.v9.v9l #nav9{background:linear-gradient(160deg,rgba(255,255,255,.5),rgba(255,255,255,.22))!important}
html.v9l .pk-card em{color:#8a5d00}html.v9l .pk-card em.own{color:#14864a}
html.v9l .rmtag{color:#4a5468}
/* Liquid Glass, clearer: almost no white fill, light blur so the colours behind show through, bright rims and a light shine on top */
#bg9 b{position:absolute;border-radius:50%;filter:blur(14px);opacity:.9;will-change:transform;animation:bg9f 26s ease-in-out infinite alternate}
#bg9 b:nth-of-type(1){left:14%;top:18%;width:16vw;height:16vw;background:radial-gradient(circle at 35% 35%,#7fa6ff,#2a55e8);animation-duration:22s}
#bg9 b:nth-of-type(2){left:58%;top:40%;width:13vw;height:13vw;background:radial-gradient(circle at 35% 35%,#7dffb8,#14a85a);animation-duration:28s;animation-delay:-6s}
#bg9 b:nth-of-type(3){left:80%;top:10%;width:11vw;height:11vw;background:radial-gradient(circle at 35% 35%,#d2c2ff,#7a5cff);animation-duration:24s;animation-delay:-12s}
#bg9 b:nth-of-type(4){left:34%;top:68%;width:15vw;height:15vw;background:radial-gradient(circle at 35% 35%,#ffb0a6,#e83b2c);animation-duration:30s;animation-delay:-3s}
#bg9 b:nth-of-type(5){left:84%;top:66%;width:12vw;height:12vw;background:radial-gradient(circle at 35% 35%,#ffe27a,#e6a100);animation-duration:26s;animation-delay:-9s}
#bg9 b:nth-of-type(6){left:44%;top:6%;width:9vw;height:9vw;background:radial-gradient(circle at 35% 35%,#8ff3ff,#13a9c4);animation-duration:20s;animation-delay:-15s}
@keyframes bg9f{0%{transform:translate(0,0) scale(1)}33%{transform:translate(6vw,4vh) scale(1.12)}66%{transform:translate(-4vw,8vh) scale(.92)}100%{transform:translate(3vw,-5vh) scale(1.05)}}
@media (prefers-reduced-motion:reduce){#bg9 b{animation:none}}
html.v9:not(.v9l) #bg9 b{opacity:.55}
:root.v9.v9{--g9:radial-gradient(120% 80% at 15% 0%,rgba(255,255,255,.16),rgba(255,255,255,0) 45%),linear-gradient(160deg,rgba(255,255,255,.07),rgba(255,255,255,.015));--g9b:rgba(255,255,255,.28)}
:root.v9.v9.v9l{--g9:radial-gradient(120% 80% at 15% 0%,rgba(255,255,255,.55),rgba(255,255,255,0) 45%),linear-gradient(160deg,rgba(255,255,255,.2),rgba(255,255,255,.04) 60%,rgba(255,255,255,.1));--g9b:rgba(255,255,255,.85)}
html.v9 :is(.pnl,.tool,.g9,.sheet .box){-webkit-backdrop-filter:blur(7px) saturate(190%) brightness(1.04)!important;backdrop-filter:blur(7px) saturate(190%) brightness(1.04)!important}
html.v9 :is(.pnl,.tool,.item,.lc,.contbtn,.racebar,.g9,#nav9){box-shadow:inset 0 1.5px 0 rgba(255,255,255,.55),inset 1.5px 0 0 rgba(255,255,255,.18),inset 0 -1px 0 rgba(255,255,255,.12),inset -1px 0 0 rgba(255,255,255,.08),0 20px 44px rgba(0,0,0,.26)!important}
html.v9l :is(.pnl,.tool,.item,.lc,.contbtn,.racebar,.g9,#nav9){box-shadow:inset 0 2px 1px rgba(255,255,255,1),inset 2px 0 1px rgba(255,255,255,.55),inset 0 -1.5px 1px rgba(255,255,255,.5),inset -1px 0 1px rgba(255,255,255,.35),0 20px 44px rgba(30,40,80,.16)!important}
html.v9.v9l .pnl .pnl,html.v9.v9l .item{background:rgba(255,255,255,.1)!important}
html.v9.v9l #nav9{background:var(--g9)!important}
html.v9.v9l :is(.btn:not(.pri),.chipb,.seg,.themebtn,.tag,.h9-b,.h9-ic,#nav9 .n9-t){background:rgba(255,255,255,.2)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
html.v9.v9l :is(.in,.inp,input[type=text],input[type=search],input[type=number],select,textarea){background:rgba(255,255,255,.25)}
html.v9.v9l .top :is(.chipb,.themebtn){background:rgba(255,255,255,.22)!important;-webkit-backdrop-filter:blur(8px) saturate(190%);backdrop-filter:blur(8px) saturate(190%)}
html.v9.v9l .fab a:not(.chat){background:rgba(255,255,255,.3);-webkit-backdrop-filter:blur(8px) saturate(190%);backdrop-filter:blur(8px) saturate(190%)}
html.v9.v9l .sheet .box{background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(244,246,251,.62))!important;-webkit-backdrop-filter:blur(22px) saturate(180%)!important;backdrop-filter:blur(22px) saturate(180%)!important}
html.v9l :is(.h9-sub,.h9-c>span:last-child){color:rgba(16,19,28,.78)}
/* Clear glass / water drop: no white fill at all, only a slight bend of light (tiny blur), bright edges like the rim of a drop and a small shine */
:root.v9.v9{--g9:radial-gradient(60% 40% at 18% 6%,rgba(255,255,255,.14),rgba(255,255,255,0) 70%),radial-gradient(40% 30% at 88% 100%,rgba(255,255,255,.06),rgba(255,255,255,0) 70%);--g9b:rgba(255,255,255,.34)}
:root.v9.v9.v9l{--g9:radial-gradient(60% 40% at 18% 6%,rgba(255,255,255,.4),rgba(255,255,255,0) 70%),radial-gradient(40% 30% at 88% 100%,rgba(255,255,255,.22),rgba(255,255,255,0) 70%);--g9b:rgba(255,255,255,.9)}
html.v9 :is(.pnl,.tool,.g9){-webkit-backdrop-filter:blur(1.5px) saturate(160%) brightness(1.06) contrast(1.05)!important;backdrop-filter:blur(1.5px) saturate(160%) brightness(1.06) contrast(1.05)!important}
html.v9 :is(.pnl,.tool,.item,.lc,.contbtn,.racebar,.g9,#nav9){box-shadow:inset 0 2px 1px rgba(255,255,255,.7),inset 2px 0 1px rgba(255,255,255,.3),inset 0 -2px 2px rgba(255,255,255,.22),inset -2px 0 2px rgba(255,255,255,.14),inset 0 0 18px rgba(255,255,255,.06),inset 0 -14px 24px -18px rgba(0,0,0,.35),0 16px 36px rgba(0,0,0,.22)!important}
html.v9l :is(.pnl,.tool,.item,.lc,.contbtn,.racebar,.g9,#nav9){box-shadow:inset 0 2px 1px #fff,inset 2px 0 1px rgba(255,255,255,.75),inset 0 -2px 2px rgba(255,255,255,.65),inset -2px 0 2px rgba(255,255,255,.5),inset 0 0 22px rgba(255,255,255,.25),inset 0 -16px 26px -20px rgba(30,40,80,.4),0 16px 36px rgba(30,40,80,.14)!important}
html.v9.v9l .pnl .pnl,html.v9.v9l .item{background:rgba(255,255,255,.06)!important}
html.v9.v9l :is(.btn:not(.pri),.chipb,.seg,.themebtn,.tag,.h9-b,.h9-ic,#nav9 .n9-t){background:rgba(255,255,255,.1)!important;box-shadow:inset 0 1.5px 0 #fff,inset 0 -1px 1px rgba(255,255,255,.5)}
html.v9.v9l :is(.in,.inp,input[type=text],input[type=search],input[type=number],select,textarea){background:rgba(255,255,255,.14)}
html.v9.v9l .top :is(.chipb,.themebtn),html.v9.v9l .fab a:not(.chat){background:rgba(255,255,255,.1)!important;-webkit-backdrop-filter:blur(1.5px) saturate(160%);backdrop-filter:blur(1.5px) saturate(160%);box-shadow:inset 0 1.5px 0 #fff,inset 0 -1px 1px rgba(255,255,255,.5),0 8px 20px rgba(30,40,80,.12)!important}
#bg9 i{filter:blur(60px)}
/* Solid-colour buttons become Liquid Glass with a little colour (tint set per button with --tg) */
html.v9 :where(.btn.pri,.h9-go,.fab .chat,.fab .ask,.lseg button[aria-pressed=true],.seg [aria-pressed=true],.seg .on,.cx-b){--tg:80,120,255}
html.v9 :is(.btn.pri,.h9-go,.fab .chat,.fab .ask,#nav9 .n9-i.on,.lseg button[aria-pressed=true],.seg [aria-pressed=true],.seg .on,.cx-b,.wheel-hub){background:linear-gradient(180deg,rgba(var(--tg),.42),rgba(var(--tg),.18))!important;border:1px solid rgba(255,255,255,.55)!important;box-shadow:inset 0 1.5px 0 rgba(255,255,255,.75),inset 0 -1.5px 2px rgba(255,255,255,.25),inset 0 0 14px rgba(var(--tg),.25),0 8px 22px rgba(var(--tg),.22)!important;-webkit-backdrop-filter:blur(2px) saturate(180%);backdrop-filter:blur(2px) saturate(180%);color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.25)}
html.v9.v9l :is(.btn.pri,.h9-go,.fab .chat,.fab .ask,#nav9 .n9-i.on,.lseg button[aria-pressed=true],.seg [aria-pressed=true],.seg .on,.cx-b,.wheel-hub){color:#0d1020!important;text-shadow:none;border-color:rgba(255,255,255,.9)!important;background:linear-gradient(180deg,rgba(var(--tg),.32),rgba(var(--tg),.12))!important}
html.v9 :is(.btn.pri,.h9-go,.fab .chat,#nav9 .n9-i.on) svg{stroke:currentColor}
html.v9 .fab .chat{--tg:160,110,255}
html.v9 .h9-go{--tg:60,200,120}
html.v9 #nav9 .n9-i.on{--tg:90,130,255}
html.v9 .cx-F{--tg:31,170,90}html.v9 .cx-B{--tg:40,95,235}html.v9 .cx-R{--tg:235,60,48}html.v9 .cx-L{--tg:255,128,30}html.v9 .cx-U{--tg:235,235,240}html.v9 .cx-D{--tg:245,200,0}
html.v9 .cx-b.p{filter:none;opacity:.9}
html.v9 .wheel-hub{--tg:242,182,0;border:4px solid rgba(242,182,0,.9)!important}
/* the dark top chips and Shop button in dark mode were nearly solid: make them glass too */
html.v9:not(.v9l) :is(.top .chipb,.top .themebtn,.fab a:not(.chat):not(.ask)){background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.04))!important;border-color:rgba(255,255,255,.3)!important;box-shadow:inset 0 1.5px 0 rgba(255,255,255,.45),0 8px 20px rgba(0,0,0,.25)!important;-webkit-backdrop-filter:blur(2px) saturate(180%);backdrop-filter:blur(2px) saturate(180%)}
html.v9 :is(.cx-b,#cx0).cx-b.cx-b.cx-b.cx-b{background:linear-gradient(180deg,rgba(var(--tg),.7),rgba(var(--tg),.45))!important;-webkit-backdrop-filter:blur(6px) saturate(160%);backdrop-filter:blur(6px) saturate(160%)}
/* Liquid Glass button motion (glassfx.js) */
.glfx{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none;z-index:-1}
.glfx::before{content:"";position:absolute;left:var(--mx,50%);top:var(--my,50%);width:160px;height:160px;margin:-80px 0 0 -80px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.55),rgba(255,255,255,.18) 35%,rgba(255,255,255,0) 68%);opacity:0;transform:scale(.6);transition:opacity .25s,transform .35s cubic-bezier(.2,1.4,.4,1)}
.glfx.lit::before{opacity:1;transform:scale(1)}
.glfx .glr{position:absolute;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.5),rgba(255,255,255,.22) 45%,rgba(255,255,255,0) 70%);transform:scale(0);opacity:1;animation:glR .7s cubic-bezier(.2,.8,.3,1) forwards}
@keyframes glR{to{transform:scale(1);opacity:0}}
html.v9 .gl-down{transform:scale(.93)!important;transition:transform .12s cubic-bezier(.3,.7,.4,1)!important}
html.v9 .gl-pop{animation:glPop .55s cubic-bezier(.3,1.6,.5,1)!important}
@keyframes glPop{0%{transform:scale(.93)}35%{transform:scale(1.07,.95)}60%{transform:scale(.98,1.03)}80%{transform:scale(1.01,.99)}100%{transform:scale(1)}}
html.v9 .tool.gl-down{transform:scale(.97)!important}
@keyframes glPopT{0%{transform:scale(.97)}40%{transform:scale(1.025,.985)}70%{transform:scale(.995,1.01)}100%{transform:scale(1)}}
html.v9 .tool.gl-pop{animation-name:glPopT!important}
/* tinted glass buttons: a slow shine sweeps across now and then, and they float up a little on hover */
html.v9 :is(.btn.pri,.h9-go,.fab .chat,.fab .ask,#nav9 .n9-i.on,.lseg button[aria-pressed=true],.seg [aria-pressed=true],.seg .on,.wheel-hub){background-image:linear-gradient(105deg,rgba(255,255,255,0) 42%,rgba(255,255,255,.5) 50%,rgba(255,255,255,0) 58%),linear-gradient(180deg,rgba(var(--tg),.42),rgba(var(--tg),.18))!important;background-size:300% 100%,100% 100%!important;background-repeat:no-repeat!important;animation:glSweep 6.5s ease-in-out infinite}
html.v9.v9l :is(.btn.pri,.h9-go,.fab .chat,.fab .ask,#nav9 .n9-i.on,.lseg button[aria-pressed=true],.seg [aria-pressed=true],.seg .on,.wheel-hub){background-image:linear-gradient(105deg,rgba(255,255,255,0) 42%,rgba(255,255,255,.75) 50%,rgba(255,255,255,0) 58%),linear-gradient(180deg,rgba(var(--tg),.32),rgba(var(--tg),.12))!important}
@keyframes glSweep{0%,62%{background-position:130% 0,0 0}100%{background-position:-30% 0,0 0}}
html.v9 .h9-go{animation-delay:-1s}html.v9 .fab .chat{animation-delay:-3s}html.v9 #nav9 .n9-i.on{animation-delay:-4.5s}
@media (hover:hover){html.v9 :is(.btn,.h9-go,.h9-b,.chipb,.fab a,.cx-b){transition:transform .25s cubic-bezier(.2,1.4,.4,1),box-shadow .25s}html.v9 :is(.btn,.h9-go,.h9-b,.chipb,.fab a,.cx-b):hover:not(.gl-down){transform:translateY(-2px)}}
@media (prefers-reduced-motion:reduce){html.v9 :is(.btn.pri,.h9-go,.fab .chat,#nav9 .n9-i.on){animation:none}}
/* iPad fixes: no rubber-band past the top or bottom (that bounce also dragged the corner buttons along), instant taps, and lighter glass so scrolling and taps stay fast */
html.v9,html.v9 body{overscroll-behavior:none;overflow-x:hidden}
html.v9{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#bg9 b{filter:none!important;animation-duration:40s!important}
#bg9 b:nth-of-type(1){background:radial-gradient(circle at 50% 50%,#5a86ff 0,#3a63f0 35%,rgba(58,99,240,0) 70%)}
#bg9 b:nth-of-type(2){background:radial-gradient(circle at 50% 50%,#4be89a 0,#18b265 35%,rgba(24,178,101,0) 70%)}
#bg9 b:nth-of-type(3){background:radial-gradient(circle at 50% 50%,#b9a4ff 0,#8a6cff 35%,rgba(138,108,255,0) 70%)}
#bg9 b:nth-of-type(4){background:radial-gradient(circle at 50% 50%,#ff8a7d 0,#ee4b3c 35%,rgba(238,75,60,0) 70%)}
#bg9 b:nth-of-type(5){background:radial-gradient(circle at 50% 50%,#ffd75a 0,#f0b000 35%,rgba(240,176,0,0) 70%)}
#bg9 b:nth-of-type(6){background:radial-gradient(circle at 50% 50%,#7eefff 0,#1ab8d4 35%,rgba(26,184,212,0) 70%)}
html.v9 :is(.pnl,.tool,.g9,.item,.lc,.btn,.chipb,.themebtn,.tag,.h9-b,.h9-ic,.fab a,.cx-b,.top .chipb,.top .themebtn,.btn.pri,.h9-go,.fab .chat,.seg [aria-pressed=true],.lseg button[aria-pressed=true]){-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html.v9 .gl-down{transition:transform .06s ease-out!important}
html.v9 .gl-pop{animation:glPop .3s cubic-bezier(.3,1.5,.5,1)!important}
html.v9 .tool.gl-pop{animation-name:glPopT!important}
.glfx .glr{animation-duration:.45s}
.glfx::before{transition:opacity .12s,transform .18s cubic-bezier(.2,1.4,.4,1)}
/* speed: background lights drawn as soft gradients (no blur filter), one still layer, and no looping shine */
#bg9{contain:strict;transform:translateZ(0)}
#bg9 i{filter:none!important;background:radial-gradient(circle,currentColor 0,currentColor 18%,transparent 70%)!important;transform:scale(1.7)}
#bg9 i:nth-child(1){color:#1d4fd8}#bg9 i:nth-child(2){color:#1f9a52}#bg9 i:nth-child(3){color:#7a5cff}#bg9 i:nth-child(4){color:#c8352b}#bg9 i:nth-child(5){color:#d79a00}
html.v9l #bg9 i:nth-child(1){color:#4f7dff}html.v9l #bg9 i:nth-child(2){color:#2ed37a}html.v9l #bg9 i:nth-child(3){color:#a98bff}html.v9l #bg9 i:nth-child(4){color:#ff6b5e}html.v9l #bg9 i:nth-child(5){color:#ffc23d}
html.v9 :is(.btn.pri,.h9-go,.fab .chat,.fab .ask,#nav9 .n9-i.on,.lseg button[aria-pressed=true],.seg [aria-pressed=true],.seg .on,.wheel-hub){animation:none!important}
html.v9 .gl-pop{animation:glPop .3s cubic-bezier(.3,1.5,.5,1)!important}
html.v9 .tool.gl-pop{animation-name:glPopT!important}
#bg9 b{will-change:auto}
html.v9 :is(#gl0,.gl-pop).gl-pop.gl-pop{animation:glPop .3s cubic-bezier(.3,1.5,.5,1)!important}
html.v9 :is(#gl0,.tool).tool.gl-pop.gl-pop{animation-name:glPopT!important}
