/* ===== fxkit: VRFS Penalties — menus and panels only, nothing in the game itself ===== */
html { --fx-accent: #f6c454; }
html, body { scroll-behavior: auto; }

/* main menu */
#menu { animation: fx-fade .5s ease backwards; }
#menu .box { animation: penBox .8s var(--fx-ease) .05s backwards; }
@keyframes penBox { from { opacity: 0; transform: translateY(30px) scale(.94); filter: blur(8px); } }
#menu h1 { animation: fx-drop .7s var(--fx-ease) .15s backwards; }
#menu h1 b { background: linear-gradient(100deg, #f6c454 20%, #fff3cf 45%, #f6c454 70%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fx-shimmer 4.5s linear infinite; }
.modes button { transition: transform .22s var(--fx-ease), background .25s, border-color .25s, color .25s, box-shadow .3s; animation: fx-pop .5s var(--fx-ease) backwards; }
.modes button:nth-child(1) { animation-delay: .2s; } .modes button:nth-child(2) { animation-delay: .24s; } .modes button:nth-child(3) { animation-delay: .28s; } .modes button:nth-child(4) { animation-delay: .32s; } .modes button:nth-child(5) { animation-delay: .36s; } .modes button:nth-child(6) { animation-delay: .4s; } .modes button:nth-child(7) { animation-delay: .44s; }
.modes button:hover { transform: translateY(-2px); border-color: rgba(246,196,84,.6); }
.modes button:active { transform: scale(.95); }
.modes button.on { box-shadow: 0 8px 24px -8px rgba(246,196,84,.75); }
#mtext, .ask, #res, #map, #st { animation: fx-fade .7s ease .35s backwards; }
.go { position: relative; overflow: hidden; transition: transform .22s var(--fx-ease), box-shadow .3s, opacity .3s, background .25s, color .25s; animation: fx-rise .6s var(--fx-ease) .45s backwards; }
.go.alt { animation-delay: .52s; } .go.alt + .go.alt { animation-delay: .59s; }
.go:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(246,196,84,.75); }
.go:not(:disabled):active { transform: scale(.97); }
.go:not(.alt)::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.7) 50%, transparent 65%); transform: translateX(-120%); animation: penSheen 3.4s ease-in-out 1.4s infinite; }
@keyframes penSheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.go:disabled::after { display: none; }
.go.alt:not(:disabled):hover { background: rgba(246,196,84,.12); }
#map, .mpBox input, .mpBox select, #lq { transition: border-color .2s, box-shadow .3s; }
#map:focus, .mpBox input:focus, .mpBox select:focus, #lq:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(246,196,84,.16); }

/* small buttons */
.lb, .lx, #inv button, #mpBarLeave, #lockB, #snd { transition: transform .2s var(--fx-ease), border-color .2s, background .2s, color .2s, box-shadow .25s; }
.lb:hover, .lx:hover, #inv button:hover { border-color: rgba(246,196,84,.6); transform: translateY(-1px); }
.lb:active, .lx:active, #inv button:active, #lockB:active, #snd:active { transform: scale(.94); }
#lockB { animation: fx-pop .5s var(--fx-spring) backwards; } #lockB:hover { box-shadow: 0 0 24px -4px rgba(246,196,84,.7); transform: translateY(-2px); }
.ltabs button { transition: background .25s, color .25s, border-color .25s, transform .2s var(--fx-ease); } .ltabs button:active { transform: scale(.95); }

/* panels */
#locker { animation: penLocker .5s var(--fx-ease) backwards; }
@keyframes penLocker { from { opacity: 0; transform: translateY(40px); } }
@media (min-width: 761px) { @keyframes penLocker { from { opacity: 0; transform: translateX(60px); } } }
#lgrid > * { transition: transform .25s var(--fx-spring), border-color .2s, box-shadow .25s, background .2s; }
#lgrid > *:hover { transform: translateY(-3px) scale(1.03); }
#lgrid > *:active { transform: scale(.95); }
#mpP { animation: fx-fade .3s ease backwards; }
.mpBox { animation: penBox .55s var(--fx-ease) backwards; }
.mpRow, #mpList > * { animation: fx-rise .4s var(--fx-ease) backwards; }
#mpResult { animation: fx-pop .6s var(--fx-spring) backwards; }
#mpMsg:not(:empty) { animation: fx-fade .4s ease; }
#inv { animation: penInv .55s var(--fx-spring) backwards; }
@keyframes penInv { from { opacity: 0; transform: translate(-50%, -30px) scale(.9); } }

/* scoreboard chips */
#hud .pill, #lvl { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); animation: fx-drop .6s var(--fx-ease) backwards; }
#hud .pill:nth-child(2) { animation-delay: .06s; } #hud .pill:nth-child(3) { animation-delay: .12s; }
.mpP { transition: border-color .3s, box-shadow .3s, transform .3s var(--fx-spring); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mpP.on { box-shadow: 0 0 22px -6px rgba(246,196,84,.8); transform: scale(1.05); }
.mpP u { transition: background .3s, transform .4s var(--fx-spring); } .mpP u.y, .mpP u.n { transform: scale(1.25); }

@media (prefers-reduced-motion: reduce) {
  #menu, #menu .box, #menu h1, #menu h1 b, .modes button, .go, .go::after, #locker, #mpP, .mpBox, #inv, #hud .pill, #lvl, #lockB, .mpRow, #mpList > * { animation: none !important; }
}

/* v2: no moving light over the game / the 3D map (keeps them fast and clean) */
html::after { display: none; }
