/* Only menu components and menu dialogs scale. The arena, camera and HUD do not. */
:root{--menu-gui-scale:1}
#menuScene #welcome{
 left:calc(var(--safe-left,0px) + (100% - var(--safe-left,0px) - var(--safe-right,0px))/2);
 right:auto;scale:none;transform:translate(-50%,-50%) scale(var(--menu-gui-scale));transform-origin:center;
}
#menuScene #menuLeftActions{scale:var(--menu-gui-scale);transform-origin:top left}
#menuScene > #coinBalance{scale:var(--menu-gui-scale);transform-origin:top right}
#menuScene #menuBottomActions{scale:none;transform:translateX(-50%) scale(var(--menu-gui-scale));transform-origin:bottom center}
#menuScene #openFriends{scale:var(--menu-gui-scale);transform-origin:right center}
#settingsPanel .settings-card,#rankingsPanel .rankings-card,
#appearancePanel .appearance-card,#friendsPanel .friend-card,#levelPanel .level-card,#perksPanel .perks-card,
#accountAuth .login-card,#countryPicker{scale:var(--menu-gui-scale);transform-origin:center}
/* Every settings tab uses the same tall frame, including Profile and Account. */
#settingsPanel .settings-card{
 height:min(710px,calc(var(--usable-height,100dvh) - 40px));
 max-height:calc(var(--usable-height,100dvh) - 40px);
}
@media(orientation:landscape) and (max-height:600px){
 /* This menu occupies a flex region between the top and bottom actions. */
 #menuScene #welcome{transform:translateX(-50%) scale(var(--menu-gui-scale))}
}
.league-badge:before{content:none}
.league-badge{display:inline-flex;align-items:center;gap:5px}
.league-medal{width:22px;height:28px;flex:none}
.league-reset{display:block;font-size:11px;color:#b9caa6;margin-top:5px}

/* Main menu wordmark: live HTML text, with CSS outlines, depth and leaves. */
#welcome .arena-logo{
 position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;gap:.025em;
 flex:none;width:max-content;max-width:100%;margin:0 auto 32px;padding:0 .035em .075em;
 font:400 clamp(80px,9vw,144px)/1 'Snake Display','Arial Rounded MT Bold',Impact,sans-serif;
 letter-spacing:-.02em;color:#fffbe0;-webkit-text-stroke:0;text-shadow:none;transform:rotate(-1deg);
}
#welcome .arena-logo::before,#welcome .arena-logo::after{content:none;display:none}
#welcome .logo-word{
 position:relative;isolation:isolate;display:block;white-space:nowrap;font:inherit;letter-spacing:inherit;
 color:#fffbe0;paint-order:stroke fill;-webkit-text-stroke:.055em #0b190c;
 text-shadow:0 .012em 0 #e9d9ac;
}
#welcome .logo-word::before,#welcome .logo-word::after{
 content:attr(data-text);position:absolute;inset:0;display:block;font:inherit;letter-spacing:inherit;
 paint-order:stroke fill;pointer-events:none;text-shadow:none;
}
#welcome .logo-word::before{z-index:-2;color:#1b3214;-webkit-text-stroke:.095em #345b20;transform:translateY(-.008em)}
#welcome .logo-word::after{z-index:-1;color:#112311;-webkit-text-stroke:.073em #08150b;transform:translateY(.065em)}
#welcome .logo-sprig{position:relative;display:block;flex:none;width:.32em;height:.55em;transform:translateY(.12em)}
#welcome .logo-sprig-right{transform:translateY(.12em) scaleX(-1)}
#welcome .logo-leaf{
 position:absolute;display:block;border:.023em solid #11270e;
 background:linear-gradient(125deg,#b9f35c 4%,#8ddb3e 45%,#68bb2c);
 box-shadow:inset -.025em -.015em 0 #41892155,0 .035em 0 #09180799;
}
#welcome .logo-leaf-main{left:.015em;top:0;width:.25em;height:.41em;border-radius:72% 17% 72% 17%;transform:rotate(-48deg)}
#welcome .logo-leaf-small{right:0;bottom:-.012em;width:.145em;height:.225em;border-radius:72% 17% 72% 17%;transform:rotate(48deg)}
#welcome .logo-leaf::after{content:'';position:absolute;top:12%;bottom:10%;left:49%;width:.014em;border-radius:99px;background:#488b22;transform:rotate(-3deg)}
@media(min-height:601px) and (max-height:850px){#welcome .arena-logo{font-size:clamp(64px,8vw,112px);margin-bottom:18px}}
@media(orientation:landscape) and (max-height:600px){#welcome .arena-logo{font-size:clamp(34px,calc((var(--usable-height) - 160px)*.23),58px);margin-bottom:5px}}
@media(orientation:landscape) and (max-height:380px){#welcome .arena-logo{font-size:32px;margin-bottom:3px}}
@media(orientation:landscape) and (max-height:350px){#welcome .arena-logo{font-size:26px;margin-bottom:2px}}
