/* Styl z SzopMangoJeLegacy (Pusab, ciemne panele z białą ramką, pomarańczowe przyciski, cyjan), nowy układ */
@font-face { font-family: 'Pusab'; src: url('assets/PUSAB___.otf'); }

* { box-sizing: border-box; margin: 0; padding: 0; cursor: none !important; }

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #222;
    font-family: 'Pusab', sans-serif;
    color: #fff;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

button, input { font-family: 'Pusab', sans-serif; }
.hidden { display: none !important; }

#game-container { position: relative; width: 100vw; height: 100vh; height: 100svh; overflow: hidden; }
#game-canvas { display: block; width: 100%; height: 100%; background: #87CEEB; }

#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    background: url('assets/cursor.png') no-repeat 0 0 / contain;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
    pointer-events: none;
    z-index: 999999;
    display: none;
}
#custom-cursor.interact { background-image: url('assets/interact.png'); width: 40px; height: 40px; }
#custom-cursor.down { scale: 0.75; }

.panel {
    background: rgba(0, 0, 0, 0.68);
    border: 3px solid #fff;
    border-radius: 18px;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35), 0 12px 24px rgba(0, 0, 0, 0.3);
}

button.panel { transition: transform 0.18s cubic-bezier(0.2, 2.6, 0.5, 1), box-shadow 0.18s; pointer-events: auto; }
button.panel:hover:not(:disabled) { transform: scale(1.07) rotate(-1.5deg); }
button.panel:active:not(:disabled) { transform: scale(0.9); }

/* ---------- HUD ---------- */
#ui {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    padding: 18px 20px;
    pointer-events: none;
    z-index: 50;
}

#upgrade-btn {
    grid-area: 1 / 1;
    justify-self: start;
    align-self: start;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 190px;
    padding: 12px 18px;
    font-size: 16px;
}
#upgrade-btn > span { position: relative; }
#upgrade-fill {
    position: absolute !important;
    inset: 0 auto 0 0;
    width: 0;
    background: linear-gradient(to bottom, #f39c12, #e67e22);
    opacity: 0.55;
    transition: width 0.25s;
}
.up-cost { font-size: 20px; color: #ffd36b; }
#upgrade-btn:disabled { border-color: rgba(255, 255, 255, 0.45); }
#upgrade-btn:not(:disabled) { border-color: #7dff9a; animation: ready 0.7s ease-in-out infinite; }
#upgrade-btn:not(:disabled) #upgrade-fill { opacity: 1; }
#upgrade-btn:not(:disabled) .up-cost { color: #fff; }

#score-column { grid-area: 1 / 2; display: flex; flex-direction: column; align-items: center; gap: 10px; }

#score-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 250px;
    justify-content: center;
    padding: 8px 34px 8px 18px;
    border-radius: 999px;
}
#score-container img { width: 58px; height: 58px; filter: drop-shadow(0 0 10px rgba(255, 180, 40, 0.8)); animation: wiggle 1.6s ease-in-out infinite; }
#score-container small, #combo-meter small { display: block; font-size: 11px; color: #ffd36b; letter-spacing: 3px; }
#score-value { font-size: 38px; line-height: 1.05; min-width: 80px; }
#score-container.bump { animation: bump 0.22s ease-out; }
#multiplier-badge {
    position: absolute;
    right: -12px;
    top: -10px;
    padding: 4px 10px;
    font-size: 15px;
    background: linear-gradient(to bottom, #f39c12, #e67e22);
    border: 3px solid #fff;
    border-radius: 999px;
    rotate: 10deg;
}

#super-meter { position: relative; width: 250px; height: 28px; overflow: hidden; border-radius: 999px; }
#super-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #00ffff, #ff00ff); transition: width 0.2s cubic-bezier(0.2, 2, 0.4, 1); }
#super-label { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; letter-spacing: 1px; }
#super-meter.active { animation: ready 0.35s ease-in-out infinite, rainbow 1s linear infinite; }

#combo-meter {
    grid-area: 1 / 3;
    justify-self: end;
    align-self: start;
    position: relative;
    overflow: hidden;
    min-width: 150px;
    padding: 8px 18px;
    text-align: center;
    border-color: var(--heat, #00ffff);
    translate: calc(100% + 40px) 0;
    transition: translate 0.35s cubic-bezier(0.2, 1.7, 0.4, 1);
}
#combo-meter.show { translate: 0 0; }
#combo-meter div { font-size: 44px; color: var(--heat, #00ffff); }
#combo-meter.bump div { animation: bump-big 0.25s ease-out; }


#volume-control-container {
    position: absolute;
    right: 20px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    font-size: 10px;
    z-index: 2000;
}
#volume-slider { -webkit-appearance: none; width: 100px; height: 8px; background: #444; border-radius: 4px; outline: none; }
#volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; background: #00ffff; border: 2px solid #fff; border-radius: 5px; }

/* ---------- Ekrany ---------- */
.screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    align-items: center;
    overflow: hidden;
}

.sunburst {
    position: absolute;
    left: 50%;
    top: 42%;
    width: 220vmax;
    height: 220vmax;
    translate: -50% -50%;
    background: repeating-conic-gradient(rgba(255, 200, 80, 0.16) 0 9deg, transparent 9deg 18deg);
    -webkit-mask: radial-gradient(circle, #000 0, transparent 55%);
    mask: radial-gradient(circle, #000 0, transparent 55%);
    pointer-events: none;
}

#main-menu {
    z-index: 1000;
    gap: 3.2vh;
    padding: 12px 12px 40px;
    background: radial-gradient(circle at 50% 40%, rgba(44, 62, 80, 0.35) 0%, rgba(0, 0, 0, 0.78) 100%);
}
#main-menu > :not(.sunburst):not(#menu-footer) { position: relative; animation: drop-in 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) backwards; }
#main-menu > #start-btn { animation: drop-in 0.6s 0.12s cubic-bezier(0.2, 1.6, 0.4, 1) backwards, breathe 1s 0.8s ease-in-out infinite; }
#menu-stats { animation-delay: 0.22s !important; }
#menu-small { animation-delay: 0.3s !important; }

#game-title { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 0.45em; font-size: clamp(34px, min(8vw, 12vh), 92px); line-height: 1.1; }
#game-title .word { display: flex; }
#game-title .letter {
    display: inline-block;
    text-shadow: 0 0 24px rgba(243, 156, 18, 0.7), 0.07em 0.07em 0 #d35400;
}
#game-title .word:last-child .letter { color: #ffd36b; font-size: 1.3em; }

.juicy-btn {
    position: relative;
    overflow: hidden;
    padding: 22px 90px;
    font-size: clamp(26px, 5vh, 40px);
    color: #fff;
    text-shadow: 3px 3px 0 #a84000;
    background: linear-gradient(to bottom, #ffb326, #e67e22);
    border: 4px solid #fff;
    border-radius: 22px;
    box-shadow: 0 10px 0 #d35400, 0 20px 40px rgba(243, 156, 18, 0.5);
}
.juicy-btn:hover { filter: brightness(1.15); }
.juicy-btn:active { translate: 0 8px; box-shadow: 0 2px 0 #d35400; }

#menu-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.stat { min-width: 150px; padding: 10px 16px; text-align: center; }
.stat:nth-child(1) { rotate: -3deg; }
.stat:nth-child(3) { rotate: 3deg; }
.stat b { display: block; font-size: 30px; font-weight: normal; color: #00ffff; }
.stat small { font-size: 10px; color: rgba(255, 255, 255, 0.75); }

#menu-small { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
#menu-small button { padding: 10px 16px; font-size: 13px; }
#clear-save-btn.armed { background: #c0392b; }
#menu-footer { position: absolute; bottom: 12px; font-size: 12px; letter-spacing: 1px; color: rgba(255, 255, 255, 0.5); }

#splash-screen { z-index: 5000; background: #000; }
#splash-logo {
    position: relative;
    max-width: 80%;
    max-height: 60%;
    border: 5px solid #f39c12;
    border-radius: 20px;
    box-shadow: 0 0 30px #f39c12, 0 0 90px rgba(243, 156, 18, 0.5);
    animation: splash-pulse 2s ease-in-out infinite;
}
#splash-prompt { position: relative; margin-top: 30px; font-size: 24px; letter-spacing: 2px; animation: blink 1s infinite; }
#intro-screen { z-index: 5500; background: #f39c12; transition: opacity 0.4s; animation: white-flash 0.5s ease-out; }
#intro-logo { max-width: 80%; max-height: 80%; border-radius: 20px; animation: sega-zoom 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both; }

/* przejście: mangowe koło zalewa ekran */
#edit-67 { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4000; background: #000; }

#wipe {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 150vmax;
    height: 150vmax;
    translate: -50% -50%;
    border-radius: 50%;
    background: radial-gradient(circle, #ffd23f 0 30%, #f39c12 50%, #e67e22 70%);
    scale: 0;
    pointer-events: none;
    z-index: 6000;
}
#wipe.go { animation: wipe 0.7s ease-in-out; }

@media (max-width: 760px) {
    #ui { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr auto; padding: 10px; }
    #score-column { grid-area: 1 / 1 / 2 / 3; }
    #upgrade-btn { grid-area: 2 / 1; min-width: 0; font-size: 12px; padding: 8px 12px; }
    #combo-meter { grid-area: 2 / 2; min-width: 100px; }
    #combo-meter div { font-size: 30px; }
    #hud-bottom { grid-area: 4 / 1 / 5 / 3; }
    #score-value { font-size: 30px; }
    #score-container img { width: 44px; height: 44px; }
    .stat { min-width: 105px; }
    .stat b { font-size: 22px; }
}

@keyframes ready { 50% { scale: 1.05; box-shadow: 0 0 22px #7dff9a; } }
@keyframes rainbow { to { filter: hue-rotate(360deg); } }
@keyframes wiggle { 0%, 100% { rotate: -12deg; } 50% { rotate: 12deg; scale: 1.08; } }
@keyframes bump { 40% { scale: 1.18; rotate: -3deg; } }
@keyframes bump-big { 40% { scale: 1.5; rotate: 8deg; } }
@keyframes drop-in { from { opacity: 0; translate: 0 -90px; scale: 0.6; } }
@keyframes breathe { 50% { scale: 1.07; } }
@keyframes splash-pulse { 0%, 100% { transform: scale(0.95) rotate(-2deg); } 50% { transform: scale(1.05) rotate(2deg); } }
@keyframes blink { 50% { opacity: 0.3; } }
@keyframes white-flash { from { background: #fff; } }
@keyframes sega-zoom {
    0% { transform: scale(0.05) rotate(-45deg); opacity: 0; }
    60% { transform: scale(1.15) rotate(5deg); opacity: 1; }
    80% { transform: scale(0.95) rotate(-2deg); }
    100% { transform: scale(1); }
}
@keyframes wipe { 0% { scale: 0; opacity: 1; } 45%, 60% { scale: 1; opacity: 1; } 100% { scale: 1; opacity: 0; } }

/* ---------- Skin boxy ---------- */
#hud-bottom { grid-area: 3 / 1; justify-self: start; align-self: end; display: flex; gap: 10px; }
#hud-bottom button { padding: 10px 16px; font-size: 14px; }
#skins-btn { border-color: #ffd36b; }
.panel.accent { border-color: #ffd36b; background: rgba(120, 60, 0, 0.7); }

#skin-modal { z-index: 3000; background: rgba(0, 0, 0, 0.72); padding: 14px; animation: fade-in 0.2s ease-out; }
#skin-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(1120px, 100%);
    max-height: 100%;
    padding: 16px;
    background: rgba(8, 10, 18, 0.92);
    border-radius: 24px;
}
#skin-head { display: flex; align-items: center; gap: 14px; }
#skin-head h2 { flex: 1; font-size: clamp(22px, 4vw, 34px); color: #ffd36b; text-shadow: 3px 3px 0 #d35400; }
#skin-balance { display: flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; }
#skin-balance img { width: 30px; height: 30px; }
#skin-balance b { font-size: 22px; font-weight: normal; }
#skin-balance small { color: #ffd36b; }
#skin-balance.bump { animation: bump 0.3s ease-out; }
#skin-close { width: 44px; height: 44px; border-radius: 50%; font-size: 18px; }

#skin-body { display: grid; grid-template-columns: 280px minmax(300px, 1fr) 330px; gap: 14px; min-height: 0; overflow: hidden; }

#box-list, #collection-grid { overflow-y: auto; min-height: 0; padding: 4px; }
#box-list { display: flex; flex-direction: column; gap: 10px; }

.box-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
    border-color: rgba(255, 255, 255, 0.4);
}
.box-card > * { position: relative; }
.box-card .fill { position: absolute; inset: 0 auto 0 0; background: rgba(243, 156, 18, 0.35); transition: width 0.3s; }
.box-card .info { display: flex; flex-direction: column; gap: 3px; }
.box-card small { font-size: 9px; color: rgba(255, 255, 255, 0.7); line-height: 1.3; }
.box-card em { font-style: normal; font-size: 17px; color: #ffd36b; }
.box-card.can { border-color: #7dff9a; }
.box-card.can em { color: #7dff9a; }
.box-card:disabled { opacity: 0.6; }
.box-card.nope { animation: nope 0.35s; }

/* pudełko narysowane w CSS */
.gift { --c1: #ffb347; --c2: #ff6a00; --rib: #fff3a0; position: relative; width: 150px; height: 150px; flex: none; }
.gift.mini { width: 54px; height: 54px; font-size: 0; }
.gift.mini .body { border-width: 2px; border-radius: 6px; height: 34px; left: 3px; right: 3px; box-shadow: none; }
.gift.mini .lid { border-width: 2px; border-radius: 5px; height: 17px; bottom: 31px; }
.gift.mini .bow, .gift.mini .leak { display: none; }
.gift.big { width: min(190px, 34vw); height: min(190px, 34vw); font-size: min(190px, 34vw); }
.gift .body, .gift .lid { position: absolute; border: 4px solid #fff; }
.gift .body {
    left: 0.06em;
    right: 0.06em;
    bottom: 0;
    height: 0.64em;
    border-radius: 0.1em;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: 0 0.05em 0 rgba(0, 0, 0, 0.35);
}
.gift .lid {
    left: 0;
    right: 0;
    bottom: 0.58em;
    height: 0.3em;
    border-radius: 0.08em;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    filter: brightness(1.2);
    transform-origin: 50% 100%;
}
.gift .body::before, .gift .lid::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 0.14em; translate: -50% 0; background: var(--rib); }
.gift .bow { position: absolute; left: 50%; top: -0.17em; width: 0; height: 0; }
.gift .bow::before, .gift .bow::after {
    content: '';
    position: absolute;
    top: -0.06em;
    width: 0.16em;
    height: 0.13em;
    background: var(--rib);
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 8%;
}
.gift .bow::before { right: 0.01em; rotate: -20deg; }
.gift .bow::after { left: 0.01em; rotate: 20deg; scale: -1 1; }
.gift .leak {
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 0.56em;
    height: 0.1em;
    border-radius: 50%;
    background: var(--glow, #fff);
    filter: blur(0.04em);
    opacity: calc(var(--leak, 0) * 0.95);
    scale: calc(0.6 + var(--leak, 0));
}
.gift.rainbow .body, .gift.rainbow .lid { animation: rainbow 3s linear infinite; }

.gift.idle { animation: idle 2.4s ease-in-out infinite; }
.gift.drop { animation: gift-drop 0.6s cubic-bezier(0.2, 1.7, 0.4, 1) both; }
.gift.shake1 { animation: shake 0.12s linear infinite; }
.gift.shake2 { animation: shake 0.08s linear infinite; --amp: 6deg; }
.gift.shake3 { animation: shake 0.05s linear infinite; --amp: 10deg; scale: 1.08; }
.gift.open .lid { animation: lid-fly 0.9s cubic-bezier(0.2, 0.6, 0.4, 1) forwards; }
.gift.open .body { animation: body-pop 0.45s ease-out forwards; }
.gift.open .leak { opacity: 1; scale: 3; transition: scale 0.3s; }
.gift.gone { opacity: 0; scale: 0.5; transition: opacity 0.4s, scale 0.4s; }

/* scena */
#stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 380px;
    overflow: hidden;
    border-radius: 18px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    background: radial-gradient(circle at 50% 55%, rgba(255, 200, 80, 0.2), transparent 65%), rgba(0, 0, 0, 0.35);
    --rc: #fff;
}
#stage .rays {
    position: absolute;
    left: 50%;
    top: 52%;
    width: 160%;
    aspect-ratio: 1;
    translate: -50% -50%;
    background: repeating-conic-gradient(color-mix(in srgb, var(--rc) 40%, transparent) 0 10deg, transparent 10deg 20deg);
    -webkit-mask: radial-gradient(circle, #000 0, transparent 60%);
    mask: radial-gradient(circle, #000 0, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    animation: spin 14s linear infinite;
    pointer-events: none;
}
#stage.opened .rays { opacity: 1; }
#stage-name { position: relative; font-size: 20px; text-shadow: 3px 3px 0 #000; letter-spacing: 2px; }
#stage-gift { position: relative; z-index: 2; }
#stage.revealed #stage-name { opacity: 0; }
#stage-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
#stage-hint { position: relative; min-height: 18px; font-size: 11px; color: rgba(255, 255, 255, 0.65); }
#stage-actions { position: relative; z-index: 6; }
#stage-actions .juicy-btn { padding: 12px 22px; font-size: 14px; border-width: 3px; box-shadow: 0 6px 0 #d35400; }
#stage-actions .juicy-btn:disabled { filter: grayscale(0.7); opacity: 0.6; }

#reveal { position: absolute; inset: 0 0 78px 0; z-index: 4; display: none; align-items: center; justify-content: center; perspective: 800px; pointer-events: none; }
#reveal.show { display: flex; }
#reveal .card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 30px 16px;
    min-width: 220px;
    background: linear-gradient(160deg, rgba(30, 36, 60, 0.95), rgba(8, 10, 18, 0.95));
    border: 4px solid var(--rc);
    border-radius: 22px;
    box-shadow: 0 0 40px color-mix(in srgb, var(--rc) 70%, transparent), 0 12px 0 rgba(0, 0, 0, 0.4);
    animation: card-flip 0.8s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
#reveal-img { width: min(150px, 26vw, 20vh); height: min(150px, 26vw, 20vh); object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6)); animation: wiggle 1.8s ease-in-out infinite 0.8s; }
#reveal-name { font-size: 24px; font-weight: normal; text-shadow: 3px 3px 0 #000; }
#reveal-extra { min-height: 12px; font-size: 11px; letter-spacing: 1px; color: #7df9ff; text-shadow: 1px 1px 0 #000; }
#reveal-badge { position: absolute; top: -16px; left: -14px; padding: 5px 12px; font-size: 14px; border: 3px solid #fff; border-radius: 999px; rotate: -8deg; animation: bump 0.4s 0.6s both; }
#reveal-badge.new { background: #2ecc71; }
#reveal-badge.dupe { background: #e67e22; }

.rarity-tag { padding: 4px 12px; font-size: 12px; letter-spacing: 1px; border: 2px solid #fff; border-radius: 999px; text-align: center; }
.rarity-common { background: rgba(255, 255, 255, 0.12); color: #fff; }
.rarity-rare { background: rgba(0, 255, 255, 0.2); color: #00ffff; }
.rarity-legendary { background: rgba(255, 215, 0, 0.25); color: #ffd700; }

/* kolekcja */
#collection { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
#collection-title { font-size: 15px; font-weight: normal; color: #ffd36b; letter-spacing: 2px; }
#collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; }
.skin-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px 6px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 3px solid color-mix(in srgb, var(--rc) 70%, transparent);
    border-radius: 12px;
    transition: transform 0.15s cubic-bezier(0.2, 2.5, 0.5, 1);
}
.skin-tile:hover:not(:disabled) { transform: scale(1.08) rotate(-2deg); }
.skin-tile img { width: 100%; max-width: 62px; height: 52px; object-fit: contain; }
.skin-tile small { font-size: 8px; line-height: 1.2; text-align: center; text-shadow: 1px 1px 0 #000; }
.skin-tile.locked { opacity: 0.55; border-style: dashed; border-color: rgba(255, 255, 255, 0.25); }
.skin-tile.locked img { filter: brightness(0) opacity(0.6); }
.skin-tile.equipped { background: rgba(125, 255, 154, 0.18); border-color: #7dff9a; }
.skin-tile .tick { position: absolute; top: -8px; right: -6px; width: 20px; height: 20px; display: grid; place-items: center; font-style: normal; font-size: 12px; background: #2ecc71; border: 2px solid #fff; border-radius: 50%; }
.skin-tile.fresh { animation: tile-new 1.2s cubic-bezier(0.2, 1.6, 0.4, 1); box-shadow: 0 0 22px var(--rc); }

@media (max-width: 920px) {
    #skin-body { grid-template-columns: 1fr; overflow-y: auto; }
    #box-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; }
    .box-card { flex: none; min-width: 230px; }
    #stage { order: -1; min-height: 340px; }
    #collection-grid { grid-template-columns: repeat(4, 1fr); overflow: visible; }
    #skin-panel { padding: 10px; }
}

@keyframes fade-in { from { opacity: 0; } }
@keyframes nope { 25% { translate: -8px 0; } 50% { translate: 8px 0; } 75% { translate: -5px 0; } }
@keyframes idle { 50% { translate: 0 -10px; rotate: 2deg; } }
@keyframes gift-drop { from { translate: 0 -300px; scale: 0.5; opacity: 0; } 60% { opacity: 1; } }
@keyframes shake { 0%, 100% { rotate: 0deg; } 25% { rotate: var(--amp, 3deg); translate: 3px 0; } 75% { rotate: calc(var(--amp, 3deg) * -1); translate: -3px 0; } }
@keyframes lid-fly { to { translate: 90px -330px; rotate: 700deg; opacity: 0; } }
@keyframes body-pop { 40% { scale: 1.18 0.8; } 100% { scale: 1; } }
@keyframes card-flip { from { transform: rotateY(100deg) scale(0.2); opacity: 0; } 60% { opacity: 1; } }
@keyframes tile-new { from { transform: scale(0.2) rotate(-30deg); } }

@media (max-width: 760px) { #hud-bottom { grid-area: 4 / 1 / 5 / 3; } }
