/* Easter eggs: shaking, banners, confetti, the GTA tribute */

/* ---------- easter eggs ---------- */
@keyframes burst {
  0%, 14%, 100% { transform: none; }
  2% { transform: translate(calc(var(--s) * -1px), calc(var(--s) * .5px)) rotate(calc(var(--s) * -.08deg)); }
  4% { transform: translate(calc(var(--s) * 1px), calc(var(--s) * -.5px)) rotate(calc(var(--s) * .08deg)); }
  6% { transform: translate(calc(var(--s) * -.5px), calc(var(--s) * -1px)); }
  8% { transform: translate(calc(var(--s) * 1px), calc(var(--s) * 1px)) rotate(calc(var(--s) * .05deg)); }
  10% { transform: translate(calc(var(--s) * -1px), 0); }
  12% { transform: translate(calc(var(--s) * .5px), calc(var(--s) * .5px)); }
}
body.jit1 { --s: 1.5; } body.jit2 { --s: 3; } body.jit3 { --s: 5; }
body.jit1 main, body.jit1 .top { animation: burst 6s infinite; }
body.jit2 main, body.jit2 .top { animation: burst 3.5s infinite; }
body.jit3 main, body.jit3 .top { animation: burst 1.8s infinite; }
@keyframes glitch { 0%, 100% { text-shadow: 2px 0 #ff2fd0, -2px 0 #29f3ff; } 33% { text-shadow: -3px 1px #ff2fd0, 3px -1px #29f3ff; } 66% { text-shadow: 1px -2px #ff2fd0, -1px 2px #29f3ff; } }
body.jit2 .big, body.jit3 .big, body.jit3 h1 { animation: glitch .25s steps(2) infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 0 16px rgba(255,79,94,.75)); } }
body.jit1 .gauge .ring { animation: glow 1.6s ease-in-out infinite; }
body.jit3 .gauge .ring { animation-duration: .5s; }
body.jit1 .live i { background: var(--bad); animation-duration: .7s; }
body.jit3 .live i { animation-duration: .3s; }
@keyframes hue { to { filter: hue-rotate(360deg); } }
.confetti { position: fixed; top: -12px; width: 8px; height: 12px; z-index: 60; pointer-events: none; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); } }
.drop { position: fixed; top: -20px; z-index: 60; pointer-events: none; font-size: 22px; animation: fall linear forwards; }
/* GTA San Andreas tribute (HESOYAM) */
#gtaHelp { position: fixed; top: calc(18px + env(safe-area-inset-top)); left: 22px; z-index: 86; max-width: 300px; padding: 13px 18px; border-radius: 4px; background: rgba(0,0,0,.8); color: #fff;
  font: 600 17px/1.35 system-ui, sans-serif; box-shadow: 0 6px 20px rgba(0,0,0,.45); pointer-events: none; }
#gta { position: fixed; top: calc(18px + env(safe-area-inset-top)); right: 22px; z-index: 86; display: grid; justify-items: end; gap: 6px; pointer-events: none; }
.gbar { width: 150px; height: 13px; background: #000; border: 2px solid #000; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.gbar i { display: block; height: 100%; width: 0; transition: width 1.6s ease-out; }
.gbar.armour i { background: linear-gradient(#ececec, #a4a4a4); }
.gbar.health i { background: linear-gradient(#e3242f, #8d1018); }
#gta.on .gbar i { width: 100%; }
.gmoney { margin-top: 2px; font: 900 34px/1 "Arial Black", Impact, "Liberation Sans", sans-serif; letter-spacing: 1px; color: #3f9a47; -webkit-text-stroke: 1.6px #000; text-shadow: 2px 2px 0 #000; }
@media (max-width: 700px) { #gta { top: calc(10px + env(safe-area-inset-top)); right: 12px; transform: scale(.72); transform-origin: top right; } #gtaHelp { top: calc(10px + env(safe-area-inset-top)); left: 12px; font-size: 14px; padding: 10px 14px; max-width: 55vw; } }
.spark { position: fixed; z-index: 88; pointer-events: none; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; animation: spark .7s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
#banner { position: fixed; left: 50%; top: 40%; z-index: 85; transform: translate(-50%, -50%) scale(.5); opacity: 0; pointer-events: none; text-align: center; width: max-content; max-width: 94vw;
  transition: transform .35s cubic-bezier(.2,1.6,.4,1), opacity .25s; }
#banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#banner .bt { font-size: clamp(38px, 9vw, 92px); font-weight: 900; letter-spacing: -.02em; line-height: .95; text-transform: uppercase; color: #fff; animation: glitch .2s steps(2) infinite; }
#banner.tier1 .bt { color: #ff4f5e; } #banner.tier2 .bt { color: #ffb020; } #banner.tier3 .bt { color: #fff36b; }
#banner .bs { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--text); background: rgba(10,11,14,.82); display: inline-block; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line2); }
.flash { position: fixed; inset: 0; z-index: 84; pointer-events: none; animation: flash .7s ease-out forwards; }
@keyframes flash { from { opacity: .6; } to { opacity: 0; } }
.dragghost { position: fixed; z-index: 90; pointer-events: none; width: 46px; transform: translate(-50%, -60%) rotate(-12deg) scale(1.15); filter: drop-shadow(0 12px 18px rgba(0,0,0,.6)); }
.dragghost svg { width: 100%; height: auto; display: block; }
.dragghost.gone { transition: transform .35s ease, opacity .35s ease, left .35s ease, top .35s ease; opacity: 0; transform: translate(-50%, -50%) scale(.15) rotate(50deg); }
body.dragging, body.dragging * { cursor: grabbing !important; }
footer { text-align: center; font-size: 12px; color: var(--muted); margin-top: 26px; line-height: 1.6; }
footer kbd { font-size: 11px; padding: 1px 6px; min-width: 0; }
