

.gavel-wrap {
    display: block;
    flex: none;
    width: 56px;
    height: 56px;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, .35),
        inset 0 0 0 1px rgba(198, 164, 92, .35);
    background: radial-gradient(ellipse at 50% 46%, #191410 0%, #0a0908 60%, #050506 100%);
    cursor: pointer;
    transition: transform .35s cubic-bezier(.2, .8, .25, 1), box-shadow .35s ease;
}

.gavel-wrap:hover,
.gavel-wrap.lift-held{
    box-shadow:
        0 10px 28px rgba(0, 0, 0, .5),
        0 0 0 2px rgba(212, 175, 55, .55),
        0 0 18px rgba(198, 164, 92, .25),
        inset 0 0 0 1px rgba(212, 175, 55, .55);
}


.gavel-scene {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}


.gavel-wrap.is-impacting {
    animation: gavelImpactPulse .38s ease-out;
}

@keyframes gavelImpactPulse {
    0%   { box-shadow: 0 4px 14px rgba(0,0,0,.35), inset 0 0 0 1px rgba(198,164,92,.35); }
    18%  { box-shadow: 0 8px 30px rgba(255,200,90,.55), 0 0 0 2px rgba(255,210,110,.9), 0 0 25px rgba(255,210,110,.35), inset 0 0 0 1px rgba(255,210,110,.65); }
    100% { box-shadow: 0 4px 14px rgba(0,0,0,.35), inset 0 0 0 1px rgba(198,164,92,.35); }
}


.gavel-wrap::after {
    content: "Ударить";
    position: absolute;
    left: 50%;
    bottom: -22px;
    transform: translateX(-50%);
    font: 700 9px/1 var(--sans, system-ui, sans-serif);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold-bright, #e8cf8f);
    background: var(--ink, #0c1d17);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(198, 164, 92, .35);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity .25s ease, transform .25s ease;
}

.gavel-wrap:hover::after,
.gavel-wrap.lift-held::after{
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}


@media (max-width: 480px) {
    .gavel-wrap {
        width: 44px;
        height: 44px;
        border-radius: 11px;
    }
    .gavel-wrap::after { display: none; }
}


.gavel-wrap--login {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    margin: 0 auto;
}



.gavel-wrap--login::after {
    content: "Ударить молотком";
    font-size: 10px;
    bottom: -26px;
}


.gavel-wrap--projection {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    cursor: default;
    pointer-events: none;
}

.gavel-wrap--projection:hover {
    transform: none;
    box-shadow: none;
}

.gavel-wrap--projection::after {
    display: none;
}

.gavel-wrap--projection .gavel-scene {
    opacity: .12;
    filter: drop-shadow(0 0 12px rgba(198, 164, 92, .35));
}


@media (prefers-reduced-motion: reduce) {
    .gavel-wrap.is-impacting { animation: none; }
    .gavel-wrap:hover { transform: none; }
}
