/* Transparent panel frames from the supplied Royal Smash atlas. */
.footer-side::before{background-image:url('atlas/ui-atlas.png');background-size:426.3440860215054% 1612.1951219512193%;background-position:33.60790774299836% 28.817204301075268%}
.jump-button::before{background-image:url('atlas/ui-atlas.png');background-size:404.5918367346939% 1537.2093023255816%;background-position:66.83417085427136% 28.748651564185547%}
.level .stars::before{background-image:url('atlas/ui-atlas.png');background-size:417.3684210526316% 2305.813953488372%;background-position:1.1608623548922055% 29.15129151291513%}
/* Text stays in HTML so the artwork can be reused for every level. */
.ui-icon{display:block;object-fit:contain;flex-shrink:0;pointer-events:none;user-select:none}
.profile-avatar{width:clamp(58px,11cqw,82px);height:auto;aspect-ratio:194/216;border:0;border-radius:0;background:none;box-shadow:none}
.profile-avatar>.ui-icon{width:100%;height:100%}
.profile-avatar span{inset:72% 27% 15%;transform:none;display:grid;place-items:center;border:0;border-radius:0;min-width:0;width:auto;padding:0;background:none;box-shadow:none;font-size:clamp(13px,2.5cqw,19px);line-height:1;color:#fff1d1;text-shadow:0 2px #602245}
.topbar{height:100px;padding:10px clamp(14px,4cqw,30px) 16px;gap:clamp(24px,5cqw,40px)}
.resource{position:relative;isolation:isolate;min-width:0;width:clamp(100px,24cqw,170px);height:clamp(38px,9cqw,48px);padding:0 9px 0 24px;border:0;border-radius:0;background:none;box-shadow:none;gap:7px;justify-content:center}
.resource::before{content:'';position:absolute;inset:0;z-index:-1;background:url('png/resource_counter.png') center/100% 100% no-repeat;clip-path:inset(0 round 100px)}
.resource>.ui-icon{position:absolute;left:-22px;width:clamp(43px,9cqw,61px);height:clamp(43px,9cqw,61px);top:50%;transform:translateY(-50%);filter:drop-shadow(0 2px 1px #6f471d55)}
.resource strong{font-size:clamp(24px,5cqw,34px)}.resource span{font-size:clamp(10px,2cqw,13px)}
.resource-value{position:absolute;inset:10% 10% 20% 24%;display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}
.resource-value strong{transform:translateY(-.04em)}
.resource-value strong,.resource-value span{display:block;line-height:1;font-variant-numeric:tabular-nums}
.world-banner{top:110px;min-width:0;width:clamp(260px,62cqw,390px);height:auto;aspect-ratio:728/176;padding:6px 14px;border:0;border-radius:0;background:none;box-shadow:none;isolation:isolate;display:flex;flex-direction:column;flex-wrap:nowrap;gap:0}
.world-banner::before{content:'';inset:0;position:absolute;z-index:-1;border:0;border-radius:0;padding:0;background:url('png/location_banner.png') center/contain no-repeat;clip-path:polygon(0 50%,8% 12%,16% 12%,19% 0,81% 0,84% 12%,92% 12%,100% 50%,92% 91%,84% 91%,81% 100%,19% 100%,16% 91%,8% 91%)}
.world-banner::after{display:none}.world-banner>span{position:absolute;inset:22% 17% 43%;width:auto;display:grid;place-items:center;font-size:clamp(16px,3.7cqw,26px);line-height:1;white-space:nowrap}.world-banner small{position:absolute;inset:59% 20% 20%;display:grid;place-items:center;font-size:clamp(11px,2.4cqw,16px);line-height:1;margin:0}.world-banner>svg{display:none}
.level,.level.done,.level.finale{width:clamp(66px,12cqw,88px);height:auto;aspect-ratio:179/201;background:url('png/level_ivory.png') center/contain no-repeat;border:0;box-shadow:none;font-size:clamp(28px,5cqw,36px)}
.level.current{width:clamp(86px,16cqw,118px);height:auto;aspect-ratio:181/207;background-image:url('png/level_ruby.png');font-size:clamp(37px,7cqw,49px);box-shadow:none}
.level{padding:0;line-height:1}.level-number{position:absolute;inset:9% 9% 24%;margin:0;display:grid;place-items:center;line-height:1;font-variant-numeric:tabular-nums;pointer-events:none}.level.current:before{content:'';left:55%;top:-29%;width:70%;height:58%;border:0;transform:rotate(4deg);background:url('png/raspberry_flag.png') center/contain no-repeat;filter:drop-shadow(0 3px 2px #51351955)}
.level .stars{bottom:-4%;left:5%;right:5%;height:auto;aspect-ratio:190/86;padding:7% 13% 12%;border:0;border-radius:0;background:none;box-shadow:none;display:flex;align-items:center;justify-content:center;gap:0;isolation:isolate}
.level .stars::before{content:'';position:absolute;inset:0;z-index:-1;background-repeat:no-repeat}
.level .stars img{display:block;width:33.333%;height:auto;object-fit:contain}
.bottom-bar{height:clamp(100px,22cqw,145px);gap:clamp(5px,1.5cqw,12px);padding:12px clamp(7px,2cqw,20px) max(12px,env(safe-area-inset-bottom))}
.footer-side,.jump-button{position:relative;isolation:isolate;border:0;border-radius:0;background:none;box-shadow:none}
.footer-side{min-height:0;max-width:120px;width:auto;height:auto;aspect-ratio:186/123;padding:9px 4px 13px;gap:0;font-size:clamp(11px,2.2cqw,16px)}
.footer-side::before,.jump-button::before{content:'';position:absolute;inset:0;z-index:-1;background-repeat:no-repeat}
.footer-side>.ui-icon{width:clamp(21px,4cqw,30px);height:clamp(21px,4cqw,30px);filter:drop-shadow(0 1px #81542466)}
#previous-world>.ui-icon,#next-world>.ui-icon{width:clamp(16px,3cqw,23px);height:clamp(22px,4cqw,30px)}
.footer-side>.ui-icon,#previous-world>.ui-icon,#next-world>.ui-icon{position:absolute;left:35%;top:20%;width:30%;height:34%;margin:0}
.footer-side>span{position:absolute;inset:53% 9% 24%;display:grid;place-items:center;line-height:1;white-space:nowrap}
.jump-button{width:clamp(115px,28cqw,176px);height:auto;aspect-ratio:196/129;margin-top:-10px;padding:12px 5px 19px;gap:3px}
.jump-button>.ui-icon{width:clamp(29px,6cqw,44px);height:clamp(36px,7cqw,53px)}
.jump-button small{font-size:clamp(9px,1.6cqw,12px)}.jump-button b{font-family:'Trebuchet MS',Arial,sans-serif;font-size:clamp(22px,4.4cqw,32px);font-variant-numeric:lining-nums tabular-nums}
.jump-button>.ui-icon{position:absolute;left:15%;top:22%;width:25%;height:43%}
.jump-button>span{position:absolute;inset:18% 13% 32% 43%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.jump-button small,.jump-button b{line-height:1;margin:0;letter-spacing:0;white-space:nowrap}
.world-picker{bottom:clamp(112px,24cqw,155px)}
@container game (max-width:380px){.topbar{gap:20px;padding-left:12px;padding-right:12px}.profile-avatar{width:54px}.resource{width:90px;padding-left:20px;gap:4px}.resource>.ui-icon{width:40px;height:40px;left:-20px}.resource strong{font-size:23px}.resource span{font-size:9px}.world-banner{top:100px;width:245px}.footer-side{font-size:10px;padding-bottom:11px}.jump-button{width:108px}.jump-button>.ui-icon{width:26px;height:33px}.jump-button small{font-size:9px}.jump-button b{font-size:22px}.jump-button>span{bottom:32%;gap:2px}}
