/* Same family, outline, coloured underside and reflection as the approved PLAY.
   Deliberately scoped away from the unchanged home buttons and artwork links. */
:is(#leaderboard,#who-panel,#game-over,#moon-end,.world-prompt,.world-player-panel) button.hoher-button{
 --button-depth:#3d4928;position:relative;overflow:visible;
 border:3px solid #050904;border-radius:20% 17% 19% 14% / 36% 35% 31% 34%;
 box-shadow:0 4px 0 var(--button-depth),0 7px 0 #050904;
 font-family:'Arial Black',system-ui,sans-serif;font-weight:1000;letter-spacing:-.4px;
 touch-action:manipulation;
}
:is(#leaderboard,#who-panel,#game-over,#moon-end,.world-prompt,.world-player-panel) button.hoher-button:active{
 transform:translateY(3px) scaleY(.97);box-shadow:0 1px 0 var(--button-depth),0 3px 0 #050904;
}
/* Keep the original curved reflection in proportion on shallow controls. */
button.hoher-button.glossy:before{max-width:22px;height:10px;top:14%;border-top-width:3px}
:is(.world-result-choices,.world-result-details,.world-death-actions,.moon-result-buttons) button.hoher-button,
#close-leaderboard.hoher-button,#who-close.hoher-button{--button-depth:#b98513}
#moon-end .moon-result-buttons #moon-menu.hoher-button{--button-depth:#92958b;background:#e6e6e1}
.hoher-button[hidden],.world-death-actions[hidden]{display:none!important}
.world-death-actions{display:flex;align-items:stretch;justify-content:center;gap:10px;width:min(100%,340px);flex:none;padding-bottom:7px}
/* A fixed action slot prevents cleared details or late awards moving retry. */
#game-over .world-death-actions{position:absolute;top:calc(50% + 92px);left:50%;transform:translateX(-50%);width:min(calc(100% - 24px),340px);display:grid;grid-template-columns:calc((100% - 10px)/2);justify-content:center}
#game-over #death-try-again{grid-column:1}
#game-over .world-death-actions button{flex:1;min-width:0;min-height:48px;margin:0;padding:8px 6px;font-size:17px;line-height:1.15}
#game-over .world-death-actions #death-try-again{--button-depth:#087925;background:#20d43d;color:#050904}
#game-over .world-death-actions button:not(#death-try-again){--button-depth:#b98513;background:#ffe638;color:#101712}
#game-over.world-results-ready .world-result-details{gap:8px}
#game-over .world-result-choices{margin-top:0;padding-bottom:7px}
/* Text actions retain their dark-panel colour hierarchy and compact footprint. */
.world-player-panel button.hoher-button.world-options-link,#leaderboard button.hoher-button.world-options-link,#leaderboard button.hoher-button.world-expand{--button-depth:#0d120e;background:#172019}
@media(max-width:340px){#game-over .world-death-actions button{font-size:15px}}
