
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
	font-family: ComicSans;
	src: url(COMIC.TTF);
}

body {
	background:
	linear-gradient(to bottom, rgb(255 255 255 / 45%) 0%, rgb(188 205 219 / 65%) 40%, rgb(130 167 205) 100%), url(background-dogman.png);
	background-size: 100% 100%, 70px 70px;
    font-family: ComicSans;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    user-select: none;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    gap: 60px;
}

.header {
    text-align: center;
}

.status-text {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #111111;
    transition: all 0.3s ease;
    min-height: 80px;
}


.status-text.error-state {
    color: red;
    animation: shake 0.4s ease-in-out;
}

.status-text.rainbow span {
    display: inline-block;
    animation: bounce-text 0.6s ease-in-out infinite alternate;
    font-size: 4rem;
    font-weight: 800;
}

.status-text.rainbow span:nth-child(2n) {
    animation-delay: 0.1s;
}

.status-text.rainbow span:nth-child(3n) {
    animation-delay: 0.2s;
}

.game-area {
    display: flex;
    justify-content: center;
    width: 100%;
}

.guys-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    width: 100%;
    max-width: 920px;
}


.guy-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.guy-container:hover {
    transform: translateY(-5px);
}

.guy-container:active {
    transform: translateY(2px);
}

.keys {
    font-size: 1.5rem;
    font-weight: 800;
    color: lightslategray;
    margin-bottom: 20px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03), inset 0 2px 4px rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.guy-container.active-turn .keys {
    color: red;
    border-color: red;
    box-shadow: 0 0 15px red, inset 0 2px 4px red;
    transform: scale(1.2);
    animation: pulse-glow 1.5s infinite alternate;
}

.guy-wrapper {
    position: relative;
    width: 100px;
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.guy-sprite {
    width: 100px;
    height: 100px;
    object-fit: contain;
    z-index: 2;
    transition: transform 0.1s ease;
}



.guy-container.playing .guy-sprite {
    transform: scaleY(1.1) scaleX(0.95);
}


.sound-wave {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 51, 102, 0.2) 0%, rgba(255, 51, 102, 0) 70%);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.guy-container.playing .sound-wave {
    animation: wave-expand 0.4s ease-out;
}


.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top: -20px;
    opacity: 0.8;
    animation: fall linear forwards;
}


@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px rgba(255, 51, 102, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.8);
    }

    100% {
        box-shadow: 0 0 20px rgba(255, 51, 102, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.8);
    }
}

@keyframes wave-expand {
    0% {
        transform: translateX(-50%) scale(0.5);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) scale(1.6);
        opacity: 0;
    }
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(105vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}

@keyframes bounce-text {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-12px);
    }
}