@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
  src: url("fonts/jost-latin.woff2") format("woff2");
}
html, body { margin: 0; height: 100%; background: #522b29; overflow: hidden; overscroll-behavior: none; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
#stage { position: fixed; inset: 0; }
#game { position: absolute; inset: 0; touch-action: none; display: block; }
#ui { position: absolute; inset: 0; pointer-events: none; font-family: Jost, system-ui, sans-serif; }
.wd-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(25, 8, 6, .55); pointer-events: auto; animation: wd-fade .25s ease-out; }
.wd-panel { width: min(82vw, 380px); padding: 26px 24px 22px; border-radius: 26px; background: linear-gradient(#d59a62, #b9784a); border: 4px solid #8b4f2c; box-shadow: 0 16px 40px rgba(0,0,0,.45), inset 0 3px 0 rgba(255,240,210,.45); text-align: center; color: #fff; animation: wd-pop .35s cubic-bezier(.2,1.6,.4,1); }
.wd-panel h2 { margin: 0 0 8px; font-weight: 800; font-size: 30px; letter-spacing: .5px; text-shadow: 0 3px 0 rgba(110,45,15,.6); }
.wd-score { font-weight: 800; font-size: 72px; line-height: 1.05; color: #fff3dc; text-shadow: 0 4px 0 #8a3a12; }
.wd-best { font-weight: 700; font-size: 22px; margin: 4px 0 18px; color: #ffe3a3; }
.wd-btn { display: block; width: 100%; margin: 10px 0 0; padding: 13px 10px; border: 0; border-radius: 16px; font: 700 21px Jost, system-ui, sans-serif; color: #fff; cursor: pointer; box-shadow: 0 5px 0 rgba(0,0,0,.28); }
.wd-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.28); }
.wd-primary { background: #3aa65a; }
.wd-secondary, .wd-toggle { background: #7a3f24; }
@keyframes wd-fade { from { opacity: 0; } }
@keyframes wd-pop { from { transform: scale(.6); opacity: 0; } }
