.reference-crystal:before{content:'';position:absolute;inset:9% 1% 0;pointer-events:none;background:radial-gradient(ellipse at 50% 60%,color-mix(in srgb,var(--crystal-glow,var(--theme-1)) 48%,transparent) 0%,color-mix(in srgb,var(--crystal-glow,var(--theme-1)) 22%,transparent) 35%,transparent 73%);filter:blur(7px)}
.reference-crystal canvas{position:relative;z-index:1}
.is-inner{padding:0 16px calc(92px + env(safe-area-inset-bottom));font-family:Montserrat,Onest,sans-serif;background-size:auto,100% 100dvh;background-attachment:scroll,fixed}
.is-inner:has(.reference-friends) .header{height:68px}
.is-inner:has(.reference-friends) .tab-intro{margin-bottom:18px}
.is-inner .friends-reference-hero{min-height:180px;margin-top:10px;margin-bottom:10px}
.is-inner .friends-reference-hero .hero-illustration{height:117%;width:62%;right:-10px}
.is-inner .reference-metrics{margin-top:10px;margin-bottom:12px}
.is-inner .reference-metrics>section{min-height:62px;padding-top:8px;padding-bottom:8px}
.is-inner .reference-friend{min-height:58px;padding-top:6px;padding-bottom:6px;margin-bottom:6px}
.is-inner .friend-avatar{overflow:hidden}.is-inner .friend-avatar img{position:absolute;width:300%;height:300%;max-width:none;object-fit:contain;left:-43%;top:-16%;border-radius:0;transform:none}.is-inner .friend-avatar.blue img{left:-190%;top:-70%;filter:none}.is-inner .friend-avatar.ice img{filter:saturate(.4) brightness(1.3)}
.is-inner .header{height:74px}.is-inner .brand{font-size:31px}.is-inner .header-actions{gap:17px}.is-inner .avatar{width:36px;height:36px}.is-inner .bottom-nav{min-height:78px;padding:12px 9px max(12px,env(safe-area-inset-bottom))}.is-inner .nav-link{font-family:Montserrat,sans-serif;font-size:10px;gap:5px}.is-inner .nav-link .asset-icon{width:31px;height:32px}.is-inner .nav-link.active:before{top:-13px}
.tab-intro{position:relative;margin:12px 0 24px;min-width:0}.tab-intro h1{font-family:Montserrat,sans-serif;font-size:32px;font-weight:800;line-height:1.13;letter-spacing:-.9px;margin:0 0 10px;text-shadow:0 2px 7px #0008}.tab-intro p{font-size:13px;font-weight:450;line-height:1.5;color:var(--hud-muted);text-shadow:0 1px 4px #0009}.tab-art{display:block;object-fit:contain;pointer-events:none}.tab-hero,.crystal-sale-card,.collection-tile,.subscription-card,.reference-metrics>section,.reference-friend,.reference-wallet,.reference-history-row,.referral-field,.crystal-callout,.wallet-callout{border:1px solid var(--hud-edge);border-radius:18px;background:linear-gradient(125deg,color-mix(in srgb,var(--hud-surface) 92%,transparent),color-mix(in srgb,var(--hud-surface) 83%,transparent));box-shadow:inset 0 1px 0 #ffffff0e,0 5px 15px #0002;backdrop-filter:blur(5px)}
.shop-reference-intro{min-height:148px;margin:0 0 13px;padding-top:49px}.shop-reference-intro h1{position:relative;z-index:1;font-size:35px}.shop-reference-intro p{position:relative;z-index:1;font-size:12px;max-width:64%}.shop-illustration{position:absolute;width:175px;height:184px;right:-16px;top:-19px;filter:hue-rotate(var(--theme-hue)) drop-shadow(0 0 11px color-mix(in srgb,var(--theme-1) 23%,transparent))}
.shop-tabs{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--hud-edge);border-radius:18px;padding:3px;background:color-mix(in srgb,var(--hud-surface) 85%,transparent);margin-bottom:15px;backdrop-filter:blur(6px)}.shop-tabs button{border-radius:14px;padding:11px 6px;background:none;color:var(--hud-muted);font-weight:600;font-size:14px}.shop-tabs button[aria-selected=true],.jewel-button{color:white;background:radial-gradient(ellipse at 50% -30%,var(--theme-1),transparent 100%),linear-gradient(180deg,color-mix(in srgb,var(--theme-1) 80%,#7531d0),color-mix(in srgb,var(--theme-0) 85%,#36105d));border:1px solid color-mix(in srgb,var(--theme-2) 65%,transparent);box-shadow:inset 0 1px 8px #ffffff45,0 0 11px color-mix(in srgb,var(--theme-1) 33%,transparent);text-shadow:0 1px 3px #0006}
.reference-shop-list{display:flex;flex-direction:column;gap:10px}.crystal-sale-card{display:flex;align-items:center;gap:10px;min-height:114px;padding:8px 11px 7px 5px;overflow:hidden}.reference-crystal{position:relative;width:126px;height:104px;flex-shrink:0;overflow:hidden}.reference-crystal canvas{width:100%;height:100%;display:block}.sale-copy{flex:1;min-width:0}.sale-copy h3{font-size:14px;font-weight:750;line-height:1.3;letter-spacing:-.25px;margin:0 0 4px}.sale-copy>p{color:var(--hud-muted);font-size:12px;margin-bottom:9px}.sale-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.sale-bottom strong{display:flex;align-items:center;gap:5px;font-size:20px;font-weight:750;white-space:nowrap}.sale-bottom .coin{width:25px;height:25px}.jewel-button{font-family:Montserrat,sans-serif;border-radius:11px;padding:8px 13px;font-size:12px;font-weight:600}.jewel-button:active{transform:scale(.97)}
.crystal-callout{margin-top:14px;min-height:101px;padding:13px 11px;display:flex;gap:12px;align-items:center;overflow:hidden}.crystal-callout>img{width:79px;height:88px;object-fit:contain;filter:hue-rotate(var(--theme-hue)) drop-shadow(0 0 12px var(--theme-1));transform:rotate(-8deg)}.crystal-callout>div{min-width:0}.crystal-callout h3{font-size:14px;font-weight:750;line-height:1.35;letter-spacing:-.3px}.crystal-callout p{font-size:11px;color:var(--hud-muted);margin:6px 0;line-height:1.4}.crystal-callout span{color:var(--theme-1);font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:4px}.reference-collection{display:grid;grid-template-columns:1fr 1fr;gap:12px}.collection-tile{padding:9px 10px 13px;min-width:0}.collection-tile .reference-crystal{width:100%;height:126px}.collection-tile h3{font-size:12px;font-weight:650;line-height:1.4;min-height:33px}.collection-tile p{font-size:9px;color:var(--hud-muted);margin-top:5px}.tab-empty{text-align:center;padding:26px 15px;color:var(--hud-muted);line-height:1.7;font-size:12px}.tab-empty img{width:75px;height:85px;object-fit:contain}.tab-empty h3{color:white;font-size:16px;margin:12px 0}.tab-empty a{display:inline-block;margin-top:15px;color:var(--theme-2);font-weight:600}
.tab-hero{position:relative;isolation:isolate;min-height:164px;overflow:visible;margin:0 0 14px}.tab-hero-copy{position:relative;z-index:2;padding:30px 17px 20px;max-width:62%;pointer-events:none}.tab-hero h2{font-family:Montserrat,sans-serif;font-weight:800;font-size:22px;line-height:1.15;letter-spacing:-.5px;margin:0 0 14px}.tab-hero p{font-size:13px;line-height:1.5;color:var(--hud-muted)}.hero-illustration{position:absolute;right:-13px;bottom:-2px;width:61%;height:110%;z-index:1;filter:hue-rotate(var(--theme-hue)) drop-shadow(0 0 10px color-mix(in srgb,var(--theme-1) 15%,transparent))}.tasks-reference-hero .tab-hero-copy{padding-top:32px;padding-bottom:25px;max-width:55%}.tasks-reference-hero h2{font-size:21px;max-width:150px}.tasks-reference-hero .hero-illustration{width:61%;right:-11px;bottom:-5px}
.subscription-list{display:flex;flex-direction:column;gap:10px}.subscription-card{display:flex;align-items:center;gap:10px;width:100%;min-height:105px;padding:7px 10px 7px 5px;color:white;text-align:left;font-family:Montserrat,sans-serif}.subscription-card>.tab-art{width:87px;height:87px;flex-shrink:0}.subscription-copy{flex:1;min-width:0}.subscription-copy strong{font-size:14px;font-weight:750;line-height:1.35;display:block;letter-spacing:-.25px}.subscription-copy small{font-size:11px;line-height:1.45;margin-top:7px;color:var(--hud-muted);display:block}.subscription-reward{display:flex;align-items:center;gap:4px;font-size:16px;font-weight:700;white-space:nowrap}.subscription-reward .coin{width:23px;height:23px}.row-chevron{color:var(--theme-2);flex-shrink:0;display:flex}.row-chevron svg{height:19px;width:14px}.dialog-task-art{width:90px;height:90px;margin:auto}
.tasks-reference-hero h2{white-space:nowrap;font-size:20px}
.is-inner .subscription-card{min-height:95px}.is-inner .subscription-card>.tab-art{width:80px;height:77px}
.is-inner .shop-illustration,.is-inner .wallet-illustration{filter:drop-shadow(0 0 12px color-mix(in srgb,var(--theme-1) 18%,transparent))}
.friends-reference-hero{min-height:199px;margin-top:16px;margin-bottom:13px}.friends-reference-hero .tab-hero-copy{padding:30px 14px 18px;max-width:62%}.friends-reference-hero h2{font-size:30px;margin-bottom:12px;line-height:1.03}.friends-reference-hero h2 span{color:var(--theme-2)}.friends-reference-hero p{font-size:12px;line-height:1.55}.friends-reference-hero .hero-illustration{width:65%;height:121%;right:-17px;bottom:-5px}.referral-field{display:flex;align-items:center;min-height:43px;padding:4px 12px;margin-bottom:10px;gap:9px}.referral-field input{font:500 11px Montserrat,sans-serif;min-width:0;width:100%;border:0;outline:none;background:none;color:var(--theme-2);text-overflow:ellipsis}.referral-field button{background:none;color:var(--theme-2);display:grid;place-items:center;padding:5px}.referral-field svg{width:20px;height:22px}.reference-invite{font-family:Montserrat,sans-serif;min-height:49px;padding:12px;font-size:15px;letter-spacing:-.2px}.reference-invite .asset-icon{width:24px;height:24px}
.reference-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:13px 0 17px}.reference-metrics>section{min-height:68px;display:flex;gap:9px;align-items:center;padding:11px 12px}.metric-icon{display:flex;flex-shrink:0}.metric-icon .asset-icon,.metric-icon .coin{width:30px;height:33px}.reference-metrics strong{font-size:24px;line-height:1;font-weight:750;letter-spacing:-.7px;display:block}.reference-metrics div>span{font-size:10px;color:var(--hud-muted);display:block;margin-top:5px;white-space:nowrap}.reference-section-heading{display:flex;gap:9px;align-items:center;margin-bottom:11px}.reference-section-heading h2,.reference-history>h2{font-family:Montserrat,sans-serif;font-size:22px;font-weight:800;letter-spacing:-.5px}.reference-section-heading>span{border:1px solid var(--hud-edge);border-radius:12px;padding:3px 8px;color:var(--theme-2);font-size:12px}.reference-friend{display:flex;align-items:center;gap:9px;padding:8px 10px;min-height:62px;margin-bottom:7px}.friend-avatar{width:41px;height:41px;flex-shrink:0;border-radius:50%;border:1px solid var(--hud-edge);background:radial-gradient(ellipse,#b985da,#39234f);position:relative;overflow:visible}.friend-avatar img{width:100%;height:100%;object-fit:cover;object-position:25% 15%;border-radius:50%;transform:scale(1.05)}.friend-avatar.blue img{filter:hue-rotate(50deg)}.friend-avatar.ice img{filter:saturate(.45) brightness(1.2)}.friend-avatar i{position:absolute;right:-1px;bottom:0;width:8px;height:8px;background:#54e3b5;border-radius:50%;border:1px solid #251536}.friend-description{flex:1;min-width:0}.friend-description h3{font-size:12px;font-weight:700;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.friend-description p{font-size:9px;color:var(--hud-muted);margin-top:5px;line-height:1.3}.reference-friend>strong{font-size:13px;white-space:nowrap;display:flex;align-items:center;gap:4px}.reference-friend>strong .coin{width:19px;height:19px}.reference-friend small{font-size:9px;color:var(--theme-1);white-space:normal;max-width:48px}.reference-friend .row-chevron svg{width:11px;height:15px}
.reference-wallet{position:relative;padding:22px 12px 14px;isolation:isolate;overflow:hidden;margin-top:21px}.wallet-balances{position:relative;z-index:2;padding:0 2px 15px;min-height:136px;pointer-events:none}.wallet-balances>span{font-size:14px;display:block}.wallet-balances>strong{display:flex;align-items:center;gap:10px;font-size:39px;font-weight:750;letter-spacing:-1px;line-height:1.2;margin:14px 0 7px}.wallet-balances .coin{width:37px;height:37px}.wallet-balances p{font-size:15px;font-weight:600;color:var(--theme-1)}.wallet-illustration{position:absolute;z-index:1;right:-7px;top:-13px;width:58%;height:180px;object-position:right center;filter:hue-rotate(var(--theme-hue))}.reference-wallet-actions{display:grid;grid-template-columns:1.15fr 1fr;gap:9px;position:relative;z-index:3}.reference-wallet-actions .primary{font-family:Montserrat,sans-serif;font-size:15px;padding:11px 8px;min-height:49px;gap:7px}.reference-wallet-actions .primary svg{width:24px;height:24px}.wallet-withdraw{border:1px solid var(--hud-edge);border-radius:13px;background:#17101e99;font-family:Montserrat,sans-serif;color:white;font-size:15px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px}.wallet-withdraw span{font-size:27px;font-weight:400;line-height:1}.minimum-withdrawal{position:relative;z-index:3;text-align:center;color:var(--hud-muted);font-size:10px;margin:15px 0 0;line-height:1.5}.reference-history{margin-top:23px}.history-day{color:var(--hud-muted);font-size:12px;margin:12px 0 13px}.reference-history-row{display:flex;align-items:center;gap:9px;min-height:69px;padding:9px 10px;margin-bottom:9px}.history-asset{width:48px;height:49px;display:grid;place-items:center;flex-shrink:0}.history-asset .asset-icon,.history-asset .tab-art{width:46px;height:47px;object-fit:contain}.reference-history-row>div{min-width:0;flex:1}.reference-history-row h3{font-size:12px;font-weight:650;line-height:1.35}.reference-history-row p{color:var(--hud-muted);font-size:9px;line-height:1.4;margin-top:5px}.reference-history-row>strong{display:flex;gap:4px;align-items:center;font-size:14px;font-weight:700;white-space:nowrap}.reference-history-row .coin{width:21px;height:21px}.reference-history-row .row-chevron svg{width:11px;height:16px}.wallet-callout{display:flex;align-items:center;gap:12px;padding:9px 10px;margin-top:14px;min-height:75px}.wallet-callout>img{width:70px;height:68px;object-fit:contain;filter:hue-rotate(var(--theme-hue)) drop-shadow(0 0 10px var(--theme-1))}.wallet-callout strong{font-size:14px;line-height:1.35;flex:1;font-weight:750}.wallet-callout>span{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--hud-edge);border-radius:50%;color:var(--theme-2)}.wallet-callout svg{width:16px;height:16px}
@media(min-width:420px){.is-inner{padding-left:20px;padding-right:20px}.reference-crystal{width:139px;height:116px}.crystal-sale-card{min-height:126px}.subscription-card{min-height:114px}.subscription-card>.tab-art{width:96px;height:96px}.sale-copy h3,.subscription-copy strong{font-size:15px}.tab-hero{min-height:181px}.friends-reference-hero{min-height:220px}}
@media(max-width:360px){.is-inner{padding-left:13px;padding-right:13px}.is-inner .brand{font-size:28px}.tab-intro h1{font-size:29px}.tab-intro p{font-size:11px}.reference-crystal{width:104px;height:94px}.crystal-sale-card{min-height:104px;gap:5px}.sale-copy h3{font-size:12px}.sale-copy>p{font-size:10px}.sale-bottom strong{font-size:17px}.jewel-button{padding:7px 10px;font-size:11px}.subscription-card{gap:6px;min-height:96px;padding-right:7px}.subscription-card>.tab-art{width:74px;height:77px}.subscription-copy strong{font-size:12px}.subscription-copy small{font-size:10px}.subscription-reward{font-size:14px}.subscription-reward .coin{width:20px;height:20px}.tab-hero h2{font-size:20px}.tab-hero p{font-size:11px}.friends-reference-hero h2{font-size:27px}.friends-reference-hero p{font-size:11px}.reference-metrics>section{padding:10px 8px}.reference-metrics strong{font-size:22px}.reference-metrics div>span{font-size:9px}.friend-description h3{font-size:11px}.friend-description p{font-size:8px}.reference-friend{gap:7px;padding:8px}.reference-wallet-actions .primary,.wallet-withdraw{font-size:13px}.wallet-balances>strong{font-size:35px}.reference-history-row{gap:7px;padding:8px}.history-asset{width:36px;height:41px}.history-asset .asset-icon,.history-asset .tab-art{width:35px;height:40px}.reference-history-row h3{font-size:11px}.reference-history-row>strong{font-size:12px}}

/* Reward and action stay together; the card itself is no longer a modal trigger. */
.subscription-inline .subscription-actions{display:flex;flex-direction:column;align-items:center;gap:7px;flex:0 0 100px;min-width:0}.subscription-inline .subscription-reward{font-size:15px}.subscription-inline .task-action{width:100%;min-height:35px;margin:0;padding:8px 7px;font:650 11px/1.2 Montserrat,sans-serif;white-space:normal;overflow-wrap:anywhere;border-radius:12px}.subscription-inline .subscription-copy strong{overflow-wrap:anywhere}.subscription-inline .task-action:disabled{cursor:default;opacity:.65}
@media(max-width:360px){.subscription-inline>.tab-art{width:58px!important;height:66px!important}.subscription-inline .subscription-actions{flex-basis:88px}.subscription-inline .subscription-reward{font-size:13px}.subscription-inline .task-action{font-size:10px}}
