.inscription {
    position: absolute;
    top: 20%;
    z-index: 5;
    width: auto;
    padding: 0;
    background: transparent;
    pointer-events: none;
}

.inscription-left {
    left: 2%;
}

.inscription-right {
    right: 2%;
}

.stack {
    position: relative;
    display: flex;
    align-items: flex-start;
}

.inscription-left .stack {
    padding-left: 90px;
}

.inscription-right .stack {
    padding-right: 90px;
}

.letters {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.letter {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.6rem, 4.5vw, 2.8rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
    transition: color 0.2s ease, -webkit-text-stroke-color 0.2s ease, filter 0.2s ease;
}

.letter.space {
    height: 0.45em;
}

.letter:nth-child(1)  { --ink: #e53935; }
.letter:nth-child(2)  { --ink: #fb8c00; }
.letter:nth-child(3)  { --ink: #fdd835; }
.letter:nth-child(4)  { --ink: #43a047; }
.letter:nth-child(5)  { --ink: #1e88e5; }
.letter:nth-child(6)  { --ink: transparent; }
.letter:nth-child(7)  { --ink: #8e24aa; }
.letter:nth-child(8)  { --ink: #e53935; }
.letter:nth-child(9)  { --ink: #fb8c00; }
.letter:nth-child(10) { --ink: #fdd835; }
.letter:nth-child(11) { --ink: #43a047; }
.letter:nth-child(12) { --ink: transparent; }
.letter:nth-child(13) { --ink: #1e88e5; }
.letter:nth-child(14) { --ink: #8e24aa; }
.letter:nth-child(15) { --ink: #e53935; }

.letter.set {
    color: var(--ink);
    -webkit-text-stroke-color: transparent;
}

.letter.strike {
    color: var(--ink);
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.6);
    filter: brightness(1.25);
}

.worker {
    position: absolute;
    top: 0;
    width: 80px;
    height: 80px;
    pointer-events: none;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.inscription-left .worker {
    left: 0;
}

.inscription-right .worker {
    right: 0;
}

.worker .frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.worker .frame-down {
    opacity: 0;
}

.worker.hitting .frame-up {
    opacity: 0;
}

.worker.hitting .frame-down {
    opacity: 1;
}