#screen-menu .menu-plant{bottom:auto;max-width:none;max-height:none;object-fit:contain;object-position:center bottom;transform:translate(-50%,-100%);animation:none;z-index:2;filter:drop-shadow(0 4px 3px #22411355)}
#screen-menu{background-position:center bottom}
#screen-menu #fence-board{left:auto;right:0;top:40%;bottom:auto;width:min(32%,calc(var(--app-height)*.68));max-height:none;z-index:3;filter:drop-shadow(1px 3px 2px #30200f60)}
#fence-board::before{content:"";position:absolute;z-index:-1;left:11%;top:0;width:85%;height:9%;border-radius:5px;border:2px solid #724322;background:repeating-linear-gradient(2deg,#8e562e 0 2px,#b58049 3px 7px,#9c6338 8px 10px);box-shadow:0 3px 3px #291b2850,inset 0 2px #d7ad76;transform:rotate(-1deg)}
#screen-menu .menu-footer #leaderboard-btn{flex:1.6;min-width:0;justify-content:center}
#screen-menu .menu-footer #profile-widget-btn{flex:.8;min-width:0;max-width:28%;gap:4px;padding:4px 7px!important}
#profile-widget-name{display:block;max-width:8ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#screen-menu #profile-widget-btn>span:nth-child(2){min-width:0;overflow:hidden}
#screen-menu #profile-widget-btn>span:last-child{display:none}
#selected-mode-label{font-size:.85em;font-style:normal;color:#fff3cc;background:#3c642d;border-radius:7px;padding:.15em .6em;text-shadow:none;white-space:nowrap}
#screen-menu .menu-footer .icon-button{flex:0 0 clamp(30px,3.8vw,49px);min-width:0;width:auto}
#screen-menu .menu-footer{gap:5px}
#screen-menu.choosing-level .menu-heading>p{visibility:hidden}
#screen-menu #mode-back{left:2.5%;top:31%;width:47%;height:6%;min-height:25px;display:flex;align-items:center;justify-content:center;gap:.5em;padding:0 12px;border:0;border-radius:12px;background:url('art/cream-button.webp') center/100% 115% no-repeat;color:#315022;text-shadow:0 1px #fff6cb;box-shadow:0 3px 3px #3c290c35;font-size:clamp(12px,1.65vw,22px);font-weight:1000;transition:filter .15s,transform .15s}
#screen-menu #mode-back[hidden]{display:none}
#mode-back span{font-size:1.5em;line-height:1;color:#765126}
#mode-back:hover{filter:brightness(1.08);transform:translateY(-1px)}
#mode-back:active{transform:translateY(1px)}
#leaderboard-card .score-mode-badge{display:inline-flex;flex:none;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;background:#346b2c;color:#fff!important;border:2px solid #95b66a;font-size:21px;font-weight:1000;line-height:1;box-shadow:0 2px 0 #23441d}
#leaderboard-card .score-mode-badge.is-multiplication{background:#855122;border-color:#d9b273;box-shadow:0 2px 0 #57330f}
@media(max-height:440px) and (orientation:landscape){#screen-menu #mode-back{top:30%;height:7%;font-size:12px}#screen-menu .menu-footer #profile-widget-btn{flex:0 0 36px;max-width:36px}#screen-menu #fence-board{top:39%;width:min(33%,calc(var(--app-height)*.75));right:.5%}}
@media(min-aspect-ratio:21/9){#screen-menu #mode-back{width:42%}}
@media(max-height:320px) and (orientation:landscape){#screen-menu.choosing-level .menu-heading{height:24%;top:0}#screen-menu #mode-back{top:26%;min-height:22px;height:8%;font-size:11px}}
@media(prefers-reduced-motion:reduce){#screen-menu #mode-back{transition:none}}

/* Both props share the background's coordinate system. The plant is in front. */
#screen-menu .menu-plant{z-index:4}
#screen-menu #fence-board{right:auto;bottom:auto;max-height:none;transform-origin:50% 0;transform:perspective(var(--board-depth,1200px)) rotateY(-12deg) rotateZ(-4deg);filter:drop-shadow(2px 4px 3px #30200f65);z-index:3}
#screen-menu #fence-board::before{content:none}
#screen-menu .menu-footer,#screen-menu .menu-heading,#screen-menu .menu-levels{z-index:5}
