/* Three compact actions share a laminated silver surface. */
#profile-view{display:none;flex-direction:column;min-height:0;padding:0;gap:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;color:#292729;background:#ececee url('./assets/metal-background.svg') center/cover no-repeat;font-family:Arial,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
#profile-view.active{display:flex}
#profile-view::-webkit-scrollbar{display:none}
#profile-view:before,#profile-view:after{content:none;display:none}
#profile-view .profile-hero{position:relative;flex:none;display:flex;flex-direction:column;padding:13px 24px 17px;min-height:186px;overflow:hidden;background:linear-gradient(180deg,#ffffff40,#efeff100);isolation:isolate}
#profile-view .profile-identity{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:6px;flex:none;width:100%;min-height:44px;z-index:2}
#profile-view .profile-user{grid-column:2;display:flex;align-items:center;justify-content:center;min-width:0;gap:8px}
#profile-view .profile-avatar{position:relative;display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;overflow:hidden;background:linear-gradient(145deg,#fff,#ebebed 39%,#bfc2c6 74%,#f9f9fa);border:1px solid #fffc;color:#646163;font-size:15px;font-weight:700;box-shadow:0 1px 2px #8d91951a}
#profile-view .profile-avatar[hidden],#profile-view .profile-avatar-photo[hidden],#profile-view .profile-avatar-initial[hidden]{display:none}
#profile-view .profile-avatar-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#profile-view .profile-name{font-size:20px;line-height:26px;letter-spacing:-.5px;color:#252323;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
#profile-view .profile-identity-actions{grid-column:3;display:flex;justify-content:flex-end}
#profile-view #sound-toggle{display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;border:0;border-radius:50%;background:#ffffff6b;color:#625e60;padding:12px;box-shadow:inset 0 1px 0 #fff}
#profile-view #sound-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7}
#profile-view .profile-hero-art{position:absolute;display:grid;place-items:center;right:21px;top:47px;width:109px;height:112px;pointer-events:none}
#profile-view .profile-hero-art:before{content:"";position:absolute;bottom:0;left:50%;width:58px;height:7px;transform:translateX(-50%);border-radius:50%;background:#8b8d94;filter:blur(6px);opacity:.18}
#profile-view .profile-pet{position:relative;display:block;max-width:100%;width:109px;height:112px;object-fit:contain;object-position:center;opacity:0;filter:none;transform:none;transition:opacity .3s ease}
#profile-view .profile-hero-art.is-loaded .profile-pet{opacity:1}
#profile-view .profile-chrome-heart{position:absolute;width:26px;height:26px;fill:none;filter:drop-shadow(0 2px 2px #9096a322)}
#profile-view .profile-chrome-heart.is-0{left:-12px;top:16px;transform:rotate(-20deg)}
#profile-view .profile-chrome-heart.is-1{right:-12px;bottom:20px;width:21px;height:21px;transform:rotate(23deg)}
#profile-view .profile-wallet{display:grid;grid-template-columns:1fr 1fr;flex:none;align-self:flex-start;gap:0;width:calc(100% - 100px);max-width:270px;margin:17px 0 0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
#profile-view .profile-wallet-item{display:flex;flex-direction:column;align-items:center;min-width:0;gap:3px;padding:0 8px}
#profile-view .profile-wallet-item+ .profile-wallet-item{border-left:1px solid #c9c9cd}
#profile-view .profile-wallet-value{display:flex;align-items:center;justify-content:center;gap:5px;max-width:100%;margin:0;color:#242324;font-size:32px;line-height:35px;letter-spacing:-1px;font-weight:700;font-variant-numeric:tabular-nums}
#profile-view .profile-wallet-number{min-width:0;overflow:hidden;text-overflow:ellipsis}
#profile-view .profile-wallet-label{font-size:11px;line-height:15px;font-weight:400;color:#79767a}
#profile-view .profile-wallet-icon{width:21px;height:21px;flex:none;object-fit:contain}
#profile-view .profile-goal{flex:none;width:100%;max-width:none;margin:20px auto 0}
#profile-view .profile-goal-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:7px;font-size:10px;line-height:14px;color:#7b777c}
#profile-view .profile-goal-label,#profile-view .profile-goal-count{white-space:nowrap}
#profile-view .profile-goal-count{color:#656166;font-size:10px;font-weight:600;font-variant-numeric:tabular-nums}
#profile-view .profile-progress{position:relative;height:5px;overflow:hidden;border:0;border-radius:5px;background:#d1d2d6;box-shadow:inset 0 1px 2px #a8aab032}
#profile-view .profile-progress-fill{display:block;width:100%;height:100%;border-radius:inherit;background:#d79382;transform:scaleX(var(--profile-progress,0));transform-origin:left;transition:transform .45s cubic-bezier(.2,.65,.2,1)}
#profile-view .profile-lower{display:flex;flex-direction:column;flex:1;min-height:338px;max-height:590px;gap:0;padding:6px 20px 18px;background:none}
#profile-view .profile-links{display:grid;grid-template-columns:1fr;grid-template-rows:repeat(3,minmax(84px,1fr));flex:1;gap:10px;min-height:0;max-height:none}
#profile-view .profile-banner{position:relative;display:grid;grid-template-columns:105px minmax(0,1fr);align-items:center;gap:13px;flex:none;box-sizing:border-box;width:100%;min-height:0;max-height:none;padding:8px 30px 8px 8px;border:1px solid #ffffffe0;border-radius:17px;text-align:left;color:#383237;overflow:hidden;isolation:isolate;box-shadow:inset 0 -1px 1px #92959c27,0 3px 8px #7779820d;background:linear-gradient(123deg,#ffffffb0,#f1f2f58f 44%,#ffffffc7 72%,#dadce18c);touch-action:manipulation;transition:transform .16s ease}
#profile-view .profile-banner:before{content:"";display:block;position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(164deg,#fff9,transparent 40%,transparent 75%,#fff8);border-radius:inherit}
#profile-view .profile-banner:after{content:none;display:none}
#profile-view .profile-banner-copy{grid-column:2;grid-row:1;align-self:center;display:flex;flex-direction:column;min-width:0;gap:5px;padding:0;z-index:2}
#profile-view .profile-banner-title{margin:0;font-size:24px;line-height:27px;letter-spacing:-.7px;font-weight:700;color:inherit}
#profile-view .profile-banner-note{max-width:none;margin:0;font-size:12px;line-height:16px;font-weight:400;color:#8b8188;opacity:1}
#profile-view .profile-banner-art{position:relative;grid-column:1;grid-row:1;align-self:center;justify-self:center;z-index:1;width:100%;height:95px;max-height:100%;pointer-events:none;transform:none;background:none}
#profile-view .profile-banner-art img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center;filter:none;pointer-events:none;transform:none}
#profile-view .profile-banner-arrow{position:absolute;right:15px;top:50%;bottom:auto;left:auto;transform:translateY(-50%);z-index:3;width:19px;height:19px;fill:none;stroke:#b5adb2;stroke-width:1.6}
#profile-view [data-profile-banner="roulette"] .profile-banner-art{height:102px}
#profile-view [data-profile-banner="chests"]{min-height:0;padding:8px 30px 8px 8px;background:linear-gradient(123deg,#ffffffb0,#f1f2f58f 44%,#ffffffc7 72%,#dadce18c);color:#383237}
#profile-view [data-profile-banner="chests"] .profile-banner-art{width:100%;height:95px;background:none;transform:none}
#profile-view [data-profile-banner="chests"] .profile-banner-art img{position:static;inset:auto;width:100%;height:100%;max-width:100%;transform:none}
#profile-view .profile-chest-status{display:flex;align-items:baseline;gap:4px;margin:0}
#profile-view .profile-chest-count{display:inline;margin:0;color:#797078;font-size:12px;line-height:14px;letter-spacing:0;font-weight:600}
#profile-view .profile-opening-label{font-size:11px;line-height:14px;color:#8c8389}
#profile-view [data-profile-banner="chests"] .profile-banner-copy{gap:2px}
#profile-view [data-profile-banner="chests"] .profile-banner-note{margin:0;font-size:10px;line-height:13px;color:#ac786a}
#profile-view [data-profile-banner="shop"]{grid-template-columns:105px minmax(0,1fr);min-height:0;padding:8px 30px 8px 8px;background:linear-gradient(123deg,#ffffffb0,#f1f2f58f 44%,#ffffffc7 72%,#dadce18c);color:#383237}
#profile-view [data-profile-banner="shop"]:before{content:"";display:block;inset:0;width:auto;height:auto;border:0;border-radius:inherit}
#profile-view [data-profile-banner="shop"] .profile-banner-copy{align-self:center;gap:4px}
#profile-view [data-profile-banner="shop"] .profile-banner-title{color:inherit;font-size:24px;line-height:27px}
#profile-view [data-profile-banner="shop"] .profile-banner-note{color:#8b8188;font-size:12px;line-height:16px}
#profile-view .profile-shop-detail{font-size:10px;line-height:13px;white-space:nowrap;color:#a2989f}
#profile-view [data-profile-banner="shop"] .profile-banner-art{grid-column:1;grid-row:1;right:auto;top:auto;width:112px;height:85px;max-height:100%;transform:rotate(-5deg)}
#profile-view [data-profile-banner="shop"] .profile-banner-art img{position:static;width:100%;height:100%;max-width:100%;transform:none}
#profile-view .profile-banner:active{transform:scale(.987)}
#profile-view button:focus-visible{outline:2px solid #9d7e72;outline-offset:2px}
@media(min-height:800px){#profile-view .profile-hero{min-height:210px;padding-top:20px;padding-bottom:20px}#profile-view .profile-hero-art{top:48px;right:22px;width:127px;height:130px}#profile-view .profile-pet{width:127px;height:130px}#profile-view .profile-wallet{width:calc(100% - 113px);margin-top:22px}#profile-view .profile-wallet-value{font-size:36px;line-height:40px}#profile-view .profile-goal{margin-top:22px}#profile-view .profile-lower{padding:8px 22px 20px}#profile-view .profile-links{gap:12px}}
@media(max-height:700px){#profile-view .profile-hero{padding:8px 20px 12px;min-height:163px}#profile-view .profile-hero-art{right:19px;top:42px;width:92px;height:98px}#profile-view .profile-pet{width:92px;height:98px}#profile-view .profile-wallet{margin-top:8px;width:calc(100% - 86px)}#profile-view .profile-wallet-value{font-size:29px;line-height:32px}#profile-view .profile-goal{margin-top:14px}#profile-view .profile-lower{min-height:334px;padding:3px 16px 14px}#profile-view .profile-links{gap:8px}#profile-view .profile-banner,#profile-view [data-profile-banner="chests"],#profile-view [data-profile-banner="shop"]{grid-template-columns:81px minmax(0,1fr);padding:5px 28px 5px 5px;border-radius:14px}#profile-view .profile-banner-art,#profile-view [data-profile-banner="chests"] .profile-banner-art{height:74px}#profile-view [data-profile-banner="roulette"] .profile-banner-art{height:78px}#profile-view [data-profile-banner="shop"] .profile-banner-art{width:90px;height:72px}#profile-view .profile-banner-title,#profile-view [data-profile-banner="shop"] .profile-banner-title{font-size:21px;line-height:23px}}
@media(max-width:350px){#profile-view .profile-hero{padding-inline:16px}#profile-view .profile-name{font-size:18px}#profile-view .profile-wallet-item{padding-inline:5px}#profile-view .profile-wallet-value{font-size:27px;gap:4px}#profile-view .profile-wallet-icon{width:18px;height:18px}#profile-view .profile-goal-heading,#profile-view .profile-goal-count{font-size:9px}#profile-view .profile-lower{padding-inline:12px}#profile-view .profile-banner,#profile-view [data-profile-banner="chests"],#profile-view [data-profile-banner="shop"]{grid-template-columns:78px minmax(0,1fr);gap:11px;padding-inline:5px 25px}#profile-view .profile-banner-title,#profile-view [data-profile-banner="shop"] .profile-banner-title{font-size:20px;line-height:22px}#profile-view .profile-banner-note,#profile-view [data-profile-banner="shop"] .profile-banner-note{font-size:11px;line-height:14px}#profile-view .profile-shop-detail{font-size:9px}#profile-view [data-profile-banner="shop"] .profile-banner-art{width:84px}#profile-view .profile-banner-arrow{right:10px;left:auto;width:17px}}
@media(prefers-reduced-motion:reduce){#profile-view .profile-pet,#profile-view .profile-progress-fill,#profile-view .profile-banner{transition:none}}
/* Center the chrome hero; progress has its own unobstructed row. */
@media(min-height:721px){
 #profile-view .profile-hero{height:244px;min-height:244px;padding:7px 24px 12px}
 #profile-view .profile-identity{min-height:44px}
 #profile-view .profile-hero-art{position:relative;align-self:center;right:auto;top:auto;width:100px;height:95px;flex:none}
 #profile-view .profile-pet{width:100px;height:95px}
 #profile-view .profile-wallet{align-self:center;width:264px;max-width:100%;margin:5px 0 0}
 #profile-view .profile-wallet-value{font-size:29px;line-height:31px}
 #profile-view .profile-wallet-label{font-size:10px;line-height:13px}
 #profile-view .profile-goal{margin-top:9px}
}
@media(max-height:720px){#profile-view .profile-hero-art{right:21px;top:39px;width:75px;height:79px}#profile-view .profile-pet{width:75px;height:79px}}
#profile-view [data-profile-banner="chests"] .profile-banner-title{font-size:21px;line-height:23px}
@media(max-width:350px){#profile-view [data-profile-banner="chests"] .profile-banner-title{font-size:18px;line-height:19px}}

/* Quiet, independent motion keeps the chrome friend alive between actions. */
#profile-view .profile-pet-art{display:block;width:100%;height:100%;overflow:visible}
#profile-view .profile-pet-hand{transform-box:view-box;transform-origin:307px 747px;animation:profile-hand-wave 6.8s cubic-bezier(.37,0,.25,1) infinite;animation-delay:.6s}
#profile-view .profile-pet{animation:profile-friend-breathe 5.2s ease-in-out infinite;transform-origin:50% 92%;will-change:transform}
#profile-view .profile-chrome-heart.is-0{animation:profile-heart-left 4.7s ease-in-out infinite;animation-delay:-1.2s}
#profile-view .profile-chrome-heart.is-1{animation:profile-heart-right 5.8s ease-in-out infinite;animation-delay:-3s}
#profile-view .profile-hero-art:before{animation:profile-friend-shadow 5.2s ease-in-out infinite}
#profile-view.active .profile-banner{animation:profile-card-enter .56s cubic-bezier(.2,.75,.2,1) both}
#profile-view.active .profile-banner:nth-child(2){animation-delay:.07s}
#profile-view.active .profile-banner:nth-child(3){animation-delay:.14s}
#profile-view .profile-banner{transition:transform .22s cubic-bezier(.2,.7,.2,1),box-shadow .22s ease}
#profile-view .profile-banner-art img{transition:transform .35s cubic-bezier(.2,.7,.2,1)}
#profile-view .profile-banner-arrow{transition:transform .25s ease,stroke .25s ease}
@media(hover:hover) and (pointer:fine){
 #profile-view .profile-banner:hover{transform:translateY(-2px);box-shadow:inset 0 1px 1px #fff,0 7px 16px #7779821a}
 #profile-view .profile-banner:hover .profile-banner-art img{transform:translateY(-1px) rotate(-2deg)}
 #profile-view .profile-banner:hover .profile-banner-arrow{transform:translate(2px,-50%);stroke:#817b80}
}
#profile-view .profile-banner:active{transform:translateY(1px) scale(.985)}
#profile-view.profile-motion-paused .profile-pet,#profile-view.profile-motion-paused .profile-pet-hand,#profile-view.profile-motion-paused .profile-chrome-heart,#profile-view.profile-motion-paused .profile-hero-art:before,#profile-view.profile-motion-paused .profile-banner,
.app.paused #profile-view .profile-pet,.app.paused #profile-view .profile-pet-hand,.app.paused #profile-view .profile-chrome-heart,.app.paused #profile-view .profile-hero-art:before,.app.paused #profile-view .profile-banner{animation-play-state:paused}
@keyframes profile-hand-wave{0%,8%,42%,100%{transform:rotate(0)}14%,29%{transform:rotate(11deg)}21%,36%{transform:rotate(-7deg)}}
@keyframes profile-friend-breathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-2px) scale(1.012,1.018)}}
@keyframes profile-friend-shadow{0%,100%{opacity:.18;transform:translateX(-50%) scaleX(1)}50%{opacity:.12;transform:translateX(-50%) scaleX(.88)}}
@keyframes profile-heart-left{0%,100%{transform:translateY(0) rotate(-20deg)}50%{transform:translate(1px,-5px) rotate(-12deg)}}
@keyframes profile-heart-right{0%,100%{transform:translateY(0) rotate(23deg)}50%{transform:translate(-1px,-4px) rotate(13deg)}}
@keyframes profile-card-enter{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){
 #profile-view .profile-pet,#profile-view .profile-pet-hand,#profile-view .profile-chrome-heart,#profile-view .profile-hero-art:before,#profile-view.active .profile-banner{animation:none!important;will-change:auto}
 #profile-view .profile-banner,#profile-view .profile-banner-art img,#profile-view .profile-banner-arrow{transition:none}
}
