body{background:#030207}.view{max-width:540px;padding-left:16px;padding-right:16px}.topbar{max-width:508px}.ref-profile{padding:0 0 20px;position:relative}.ref-settings{display:block;margin:0 0 22px auto;border:0;background:none;color:#c8bfd1;padding:10px}.ref-settings .ic{width:25px;height:25px}.ref-person{display:flex;align-items:center;gap:29px;padding:8px 12px 35px}.ref-avatar{width:78px;height:78px;flex:0 0 78px;border-radius:50%;background:linear-gradient(140deg,#885693,#282139);display:grid;place-items:center;font-size:30px;overflow:hidden}.ref-avatar img{width:100%;height:100%;object-fit:cover}.ref-person>div:last-child{min-width:0}.ref-person h1{font-size:25px;font-weight:750;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 0 13px}.ref-id{padding:0;background:none;border:0;color:#aea5b8;font-size:14px}.ref-id span{border:1px solid #514454;border-radius:20px;padding:1px 6px;margin-left:8px;font-size:11px}.ref-level{width:100%;position:relative;display:flex;align-items:center;text-align:left;height:132px;border-radius:32px;border:1px solid #782880;background:radial-gradient(ellipse at 80% 0,#861998aa,transparent),linear-gradient(110deg,#331140,#210b25);padding:14px 22px 14px 106px;box-shadow:inset 0 1px 6px #c96ef533}.ref-level img{position:absolute;left:12px;top:5px;width:90px;height:120px;object-fit:contain}.ref-level>div{width:100%;padding-top:8px}.ref-level strong{font-size:30px;color:#d352f5;font-style:italic;font-weight:900}.ref-level span{display:block;margin-top:9px;font-size:12px;color:#e6d4e8}.ref-level .bar{height:7px;margin-top:10px;background:#351731;border:1px solid #713277}.ref-level .bar i{background:linear-gradient(90deg,#70419c,#cb26f0)}.ref-level>small{position:absolute;top:28px;right:22px;color:#f2ad6f;font-size:12px;font-style:italic}.ref-balances{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:21px 0 18px}.ref-balances button{position:relative;text-align:left;border:0;border-radius:24px;min-height:108px;padding:18px 20px;background:linear-gradient(130deg,#321021,#210923);color:#fff;overflow:hidden}.ref-balances button+button{background:linear-gradient(130deg,#1f1d2c,#24203e)}.ref-balances strong{font-size:23px;font-style:italic}.ref-balances small{float:right;color:#87718d;font-size:11px;margin-top:7px}.ref-balances b{display:block;margin-top:16px;color:#c3abc6;font-size:18px}.ref-balances button:first-child b{color:#e3c679}.ref-balances em{display:flex;align-items:center;gap:4px;font-size:11px;color:#ba9ad6;font-style:normal;margin-top:5px}.ref-balances .ic{width:13px;height:13px}.ref-profile-row{width:100%;display:flex;gap:20px;align-items:center;padding:20px 6px;background:none;border:0;color:#fff;text-align:left}.ref-profile-row>span{display:grid;place-items:center;width:54px;height:54px;background:radial-gradient(circle,#8d41ad55,#24102b88);border-radius:18px;color:#e794fa;box-shadow:0 0 20px #992a6d19}.ref-profile-row:nth-of-type(4)>span{color:#65dfff;background:radial-gradient(circle,#159fca55,#0a182688)}.ref-profile-row>span .ic{width:30px;height:30px}.ref-profile-row>div{flex:1}.ref-profile-row b{font-size:21px;font-weight:500}.ref-profile-row small{display:block;color:#85758d;font-size:14px;margin-top:4px}.ref-profile-row>.ic{width:18px;color:#504555}.ref-profile details{margin-top:28px}.ref-profile summary{padding:16px;color:#ad93bc;font-size:13px;cursor:pointer}.ref-profile .v6-profile .profile-head,.ref-profile .v6-profile>.card:has(.xp),.ref-profile .v7-profile-wallet{display:none}body[data-screen=profile]{background:radial-gradient(ellipse at 10% 90%,#35002e66,transparent 60%),linear-gradient(#19121e,#0d091d)}body[data-screen=profile] .topbar{display:none}body[data-screen=profile] .view{padding-top:8px}
.ref-daily{position:relative;height:202px;overflow:hidden;border:1px solid #69288455;border-radius:21px;background:radial-gradient(ellipse at 85% 40%,#51106c55,transparent 65%),linear-gradient(110deg,#210d2f,#080612);padding:22px}.ref-daily>div{position:relative;z-index:1}.ref-daily h1{font-size:33px;line-height:.97;color:#b454f4;margin:0 0 13px;font-weight:850;letter-spacing:-1px}.ref-daily strong{display:flex;align-items:center;gap:7px;font-size:20px;line-height:1.2}.ref-daily strong .ic{color:#e0c350;width:24px;height:24px}.ref-daily strong:nth-of-type(2){margin-top:9px;font-size:18px}.ref-daily strong:nth-of-type(2) .ic{color:#436aff}.ref-daily small{display:block;margin:1px 0 0 31px;color:#a89cae;font-size:9px}.ref-daily>img{position:absolute;width:57%;height:auto;right:-12px;bottom:-40px}.ref-task-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:11px 0 8px}.ref-task-tabs button{border:1px solid #665e73;background:#05050a;color:#9c949f;border-radius:40px;height:50px;font-weight:800;font-size:14px}.ref-task-tabs button.is-on{color:#fff;border-color:#9a6ee5;background:linear-gradient(110deg,#21112e,#04111b)}.ref-task-panel{background:linear-gradient(#22082e,#08030e 75%);border-radius:19px;padding:12px 6px 20px}.ref-task-panel>header{display:flex;align-items:center;justify-content:space-between;font-size:15px;color:#cec4d4;padding:2px 9px 17px}.ref-task-panel>header span{display:flex;align-items:center;gap:5px}.ref-task-panel>header .ic{width:16px;height:16px}.ref-task,.ref-claim{display:flex;align-items:center;width:100%;min-height:80px;padding:11px 12px;gap:10px;border:1px solid #a09caa;border-radius:50px;background:linear-gradient(#08080b,#000);margin-bottom:9px;box-shadow:inset 0 1px 5px #ffffff22;color:white;text-align:left}.ref-task-icon{width:43px;height:43px;flex:0 0 43px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(140deg,#7b32a3,#28113c)}.ref-task-icon .ic{width:24px;height:24px;color:#d6bbfc}.ref-task-main{flex:1;min-width:0}.ref-task-main>b{font-size:12px;line-height:1.25;text-transform:uppercase;font-weight:500;display:block}.ref-progress{display:flex;gap:6px;align-items:center;margin-top:7px}.ref-progress small{font-size:10px;color:#9e99a6}.ref-progress .bar{flex:1;height:5px;background:#28272a}.ref-progress .bar i{background:linear-gradient(90deg,#8851b8,#b268ff)}.ref-task-reward{display:flex;align-items:center;gap:4px;flex-wrap:wrap;justify-content:flex-end;max-width:85px}.ref-task-reward .rchip{background:none;border:0;padding:0;font-size:14px}.ref-task-reward button{padding:2px;border:1px solid #64576d;background:none;border-radius:5px;color:#c5b4d5}.ref-task-reward button .ic{width:16px;height:16px}.ref-task-reward>small{font-size:9px;color:#b2a5bc}.ref-claim img{width:43px;height:43px;object-fit:contain}.ref-claim>span{flex:1;font-size:12px}.ref-claim small{display:block;color:#999;font-size:10px;margin-top:5px}.ref-claim>b{font-size:14px}.ref-claim>.ic{width:16px}
body[data-screen=market] .topbar{background:none;border:0;box-shadow:none;margin-bottom:0}body[data-screen=market] .brand{visibility:hidden}body[data-screen=market] .me-btn{order:3}body[data-screen=market] .view>.seg{position:relative;margin-top:-65px;margin-bottom:31px;width:55%;height:52px}body[data-screen=market] .topbar .wallet{position:relative;z-index:3}.ggrid{gap:10px}.gcard{padding:7px 7px 11px!important;border-radius:23px!important;background:#0c061a!important;box-shadow:inset 0 0 0 2px #24122f}.gcard__art{aspect-ratio:1;border-radius:17px!important}.gcard__t{font-size:18px;font-weight:650;margin:12px 5px 0}.gcard__m{font-size:13px;margin:7px 5px 0}.gcard__p{font-size:21px;margin:17px 5px 0}.gcard__s{font-size:12px;margin:6px 5px 0}.gcard .buy-btn{margin-top:15px;width:100%;height:48px}.filterbar,.filters{border:1px solid #58505f;border-radius:40px}.seg--caps{border-radius:40px;border:1px solid #62586b;background:#07050b}.seg--caps button{font-size:11px;border-radius:40px}.market-dock{bottom:calc(88px + var(--mafia-safe-bottom))}.ref-membership-photo{height:clamp(210px,63vw,340px);background:url('assets/ultimate-reference.jpeg') center top/100% auto no-repeat;position:relative}.ref-membership-photo:after{content:'';position:absolute;inset:60% 0 0;background:linear-gradient(transparent,#110b1d)}.ref-membership .v6-paywall{background:#110b1d}.ref-membership .v6-paywall>h1{font-size:29px;line-height:1.1;margin-top:-2px;position:relative}.ref-membership .v6-eyebrow{display:none}.ref-membership .v6-plan-grid{padding:25px 13px 15px;gap:10px}.ref-membership .v6-plan{padding:21px 12px 12px;border-radius:25px;box-shadow:inset 0 0 0 3px #ffffff08}.ref-membership .v6-plan-icon{display:none}.ref-membership .v6-plan-tag{font-style:italic}.ref-membership .v6-plan-price{font-size:25px}.ref-membership .v6-plan h2{font-size:20px}.ref-membership .v6-plan .btn{border-radius:25px;background:linear-gradient(100deg,#74218f,#d859e5);font-size:12px}.ref-membership .v6-plan-benefit{margin-bottom:15px}body[data-screen=plans] .topbar{display:none}.ref-membership .page-head{margin-bottom:10px}@media(max-width:370px){.ref-person{gap:18px}.ref-person h1{font-size:22px}.ref-level{padding-left:92px}.ref-level strong{font-size:27px}.ref-level>small{font-size:10px;right:12px}.ref-balances button{padding:16px 13px}.ref-balances small{float:none;display:block}.ref-task-main>b{font-size:11px}.gcard__t{font-size:16px}.ref-task-reward{max-width:62px}}

/* Compact page spacing and a scrolling Tasks wallet. */
.view { max-width: 564px; padding-inline: 12px; }
.topbar { max-width: 540px; }
body[data-screen=profile] .view,
body[data-screen=plans] .view { padding-top: 2px; }
.ref-person { gap: 22px; padding: 8px 10px 18px; }
.ref-avatar { width: 64px; height: 64px; flex-basis: 64px; }
.ref-person h1 { margin-bottom: 8px; }
.ref-level { height: 113px; }
.ref-level img { height: 100px; }
.ref-level > small { top: 22px; }
.ref-balances { gap: 9px; margin: 12px 0 8px; }
.ref-balances button { min-height: 90px; padding-block: 12px; }
.ref-balances b { margin-top: 9px; }
.ref-profile-row { padding-block: 10px; gap: 14px; border-bottom: 1px solid #ffffff0e; }
.ref-profile-row > span { width: 44px; height: 44px; }
.ref-profile-row > span .ic { width: 24px; height: 24px; }
.ref-profile-row b { font-size: 17px; }
.ref-profile-row small { font-size: 12px; margin-top: 2px; }
body[data-screen=tasks] .topbar { position: static; padding-block: 4px; margin-top: 5px; }
body[data-screen=tasks] .me-btn { width: 39px; height: 39px; flex-basis: 39px; }
body[data-screen=tasks] .wallet__plus { width: 36px; height: 36px; }
body[data-screen=tasks] .v6-balances > span { padding-block: 1px; }
.ref-daily { height: 178px; padding: 16px 19px; }
.ref-daily > img { width: min(57%, 255px); bottom: -40px; }
.ref-membership-photo { height: clamp(195px, 59vw, 309px); }

.ref-settings { position:absolute; z-index:1; top:2px; right:0; margin:0; }
.ref-person { padding-right:48px; }
.ref-languages { display:grid; gap:8px; }
.ref-language { display:grid; grid-template-columns:32px 1fr 22px; gap:10px; align-items:center; text-align:left; padding:11px 14px; border:1px solid #52416d; border-radius:14px; background:#211632; color:#fff; }
.ref-language[aria-pressed=true] { border-color:#b57bff; background:#38225a; }
.ref-language > span:first-child { font-size:22px; }
body[data-screen=home] .topbar { display:none; }
body[data-screen=tasks] .topbar { box-sizing:border-box; width:calc(100% - 24px); max-width:540px; margin:5px auto 2px; padding-block:2px; }
body[data-screen=tasks] .view { padding-top:5px; padding-bottom:100px; }
body[data-screen=tasks] .ref-daily { height:154px; padding-block:12px; }
.ref-task-panel { padding-bottom:4px; }
.ref-task-panel > header { padding-bottom:8px; }
.ref-task, .ref-claim { min-height:49px; padding:6px 8px; margin-bottom:5px; }
.ref-task-icon, .ref-claim img { width:32px; height:32px; }
.ref-task-icon { flex-basis:32px; }
.ref-task-icon .ic { width:17px; height:17px; }
body[data-screen=home] .v7-slides .v6-banner { min-height:0; padding-block:13px; }
body[data-screen=home] .v7-ad h2 { margin-block:5px; }
body[data-screen=home] .v7-slider-controls { padding:5px 0; }
body[data-screen=home] .v6-grid .v6-tile { min-height:80px; padding:8px 10px; gap:4px; }
.v6-grid .v6-tile .v6-orb { width:36px; height:36px; }
.v6-shortcuts .v6-tile { min-height:52px; border-radius:0; clip-path:polygon(9% 0,100% 0,91% 100%,0 100%); padding:7px 15px; background:linear-gradient(110deg,#4a2275,#201a46); }
.v6-shortcuts .v6-tile .ic { color:#e0bdff; stroke-width:2; }
.market-pattern, .spin-lights { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.gcard__art { isolation:isolate; }
.market-pattern { z-index:-1; }
.spin-lights { inset:-3%; width:106%; height:106%; }
.wheel-stage { filter:drop-shadow(0 0 12px #ac21db80); }
.spin-actions .btn { border:1px solid #70faff; background:linear-gradient(135deg,#114959,#222052); box-shadow:0 0 12px #4ae5fa50; }
.spin-actions .btn--gold { border-color:#f678ff; background:linear-gradient(135deg,#3d205d,#241236); }

/* Glass navigation with one shared sliding selection. */
#tabbar {
  --active-tab: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 4px;
  border-radius: 999px;
  isolation: isolate;
  background: linear-gradient(105deg,#291743e8,#08070eea 65%);
}
#tabbar::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: calc((100% - 8px) / 5);
  height: calc(100% - 6px);
  border-radius: 50%;
  background: radial-gradient(circle at 45% 20%,#34224b,#09080f 75%);
  box-shadow: inset 0 0 0 1px #c1a4ec40,0 0 18px #8f53c24d;
  transform: translateX(calc(var(--active-tab) * 100%));
  transition: transform 330ms cubic-bezier(.22,.8,.24,1);
  z-index: -1;
}
#tabbar .tab {
  width: 100%; height: 49px; transform: none; padding: 0;
  display: grid; place-items: center;
  background: transparent; box-shadow: none; border: 0;
  color: #b8b4c3 !important;
}
#tabbar .tab span { position:absolute; width:1px; height:1px; clip-path:inset(50%); }
#tabbar .tab .ic { width:26px; height:26px; }
#tabbar .tab.is-on .ic { color:#c497ff; filter:drop-shadow(0 0 5px #9a5efb88); }
@media(prefers-reduced-motion:reduce) { #tabbar::before { transition:none; } }
.v7-slides { touch-action: pan-x pan-y; border-radius: 16px; }
.image-slide {
  flex: 0 0 100%; min-width: 0; display:block; scroll-snap-align: start;
  height: clamp(104px, 32vw, 160px); border:0; padding:0; overflow:hidden;
}
.image-slide img { width:100%; height:100%; object-fit:cover; object-position:center 43%; display:block; }
body[data-screen=home] .v6-grid .v6-tile,
body[data-screen=home] .v6-shortcuts .v6-tile {
  clip-path:polygon(10% 0,100% 0,90% 100%,0 100%);
  border-radius:0; border:0;
  background:linear-gradient(112deg,#502670,#26163e 55%,#141129);
  box-shadow:inset 0 2px #c482ff59,inset 0 -2px #311e54;
}
body[data-screen=home] .v6-grid .v6-tile { align-items:center; padding-inline:5px; min-height:85px; }
body[data-screen=home] .v6-grid .v6-orb { width:48px; height:48px; }
.v6-grid .v6-tile-arrow { display:none; }
body[data-screen=home] .v6-shortcuts .v6-orb { width:42px; height:42px; background:url('assets/chest-v8.png') center/contain no-repeat; box-shadow:none; border:0; }
body[data-screen=home] .v6-shortcuts [data-route=referral] .v6-orb { background:url('assets/menu-atlas-v8.png') right top/300% 300% no-repeat; }
body[data-screen=home] .v6-shortcuts .v6-orb .ic { display:none; }
body[data-screen=market] .ggrid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
body[data-screen=market] .ggrid .gcard { display:flex; flex-direction:column; min-width:0; align-items:stretch; border:1px solid #7651a680!important; padding:6px 6px 10px!important; border-radius:19px!important; background:#0b0817!important; }
body[data-screen=market] .ggrid .gcard__art { width:100%; height:auto; aspect-ratio:1; border-radius:14px!important; flex:none; }
body[data-screen=market] .gcard__t { margin-top:10px; font-weight:800; }
body[data-screen=market] .gcard__p { margin-top:10px; font-size:20px; }
body[data-screen=market] .gcard .buy-btn { margin-top:12px; min-height:42px; height:auto; border-radius:99px!important; background:linear-gradient(100deg,#a750ef,#138ef3)!important; }
body[data-screen=market] .seg--filter { border:1px solid #666070; border-radius:999px; padding:4px; margin-bottom:13px; }
body[data-screen=market] .seg--filter .seg__btn { border-radius:999px; }
body[data-screen=market] .seg__btn.is-on { border-color:#755be8; }
.market-pattern { z-index:0; opacity:.8; }
