.settingsPanel {
    background-color: white;
    height: 60vh;
    padding: 1rem;
}

.board {
    display: grid;
    background-color: black;
    padding: 0px;
    margin: 0px;
    border-radius: 5px;
    overflow: hidden;
}

.boardContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cell {
    display: flex;
    justify-content: center;
    align-items: center;
}

.message {
    font-size: 1rem;
    font-weight: bold;
    color: orange;
}

@keyframes winnerBackground {
    0% {
        background-color: lightcoral;
    }

    25% {
        background-color: coral;
    }

    50% {
        background-color: violet;
    }

    75% {
        background-color: fuchsia;
    }

    100% {
        background-color: purple;
    }
}

.punkman {
    position: absolute;
}

.statusPlanel {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.statusPlanelLeft {
    display: flex;
    width: 30%;
    justify-content: left;
    align-items: center;
}

.statusPlanelRight {
    display: flex;
    width: 30%;
    justify-content: right;
    align-items: center;
}

.statusPlanelCenter {
    display: flex;
    width: 30%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.currentPoints {
    font-size: 1rem;
}

.gameContainer {
    display: none;
    flex-direction: column;
    justify-content: center;
}

.intro {
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    margin: 0px;
    padding: 0px;
}

.introMovie {
    background-color: black;
    border: 3px solid yellow;
    border-radius: 10px;
}

.introMovieContainer {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin: 0px;
    padding: 0px;
}

.introMovieLeft {
    display: flex;
    flex: 1;
    z-index: 1005;
    background-color: #f4f4f4;
    margin: 0px;
    padding: 0px;
}

.introMovieRight {
    display: flex;
    flex: 1;
    z-index: 1005;
    background-color: #f4f4f4;
    margin: 0px;
    padding: 0px;
}

.gameBoard {
    width: 100%;
    margin: 0px;
    padding: 0px;
}

.mainPunkman {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    margin: 0px;
    padding: 0px;
    height: 100%;
    width: 100%;
}

@keyframes exitPunkman {
    from {
        transform: translateX(0px);
    }

    to {
        transform: translateX(-500%);
    }
}

@keyframes enterPunkman {
    from {
        transform: translateX(-500%);
    }

    to {
        transform: translateX(40%);
    }
}

@keyframes shakeDance {
    0% {
        transform: translate(0px, 0px);
    }

    10% {
        transform: translate(-2px, 0px);
    }

    20% {
        transform: translate(2px, 0px);
    }

    30% {
        transform: translate(-2px, 0px);
    }

    40% {
        transform: translate(2px, 0px);
    }

    50% {
        transform: translate(-2px, 0px);
    }

    60% {
        transform: translate(2px, 0px);
    }

    70% {
        transform: translate(-2px, 0px);
    }

    80% {
        transform: translate(2px, 0px);
    }

    90% {
        transform: translate(0px, 0px);
    }

    100% {
        transform: translate(0px, 0px);
    }
}

.keyControl {
    width: 30px;
    height: 30px;
    margin: 0px;
    padding: 0px;
}

.introMovieTitleContainer {
    display: flex;
    justify-content: center;
}

.introMovieTitleContainer h2 {
    position: absolute;
    text-transform: uppercase;
    user-select: none;
}

.introMovieTitleContainer h2:nth-child(1) {
    color: transparent;
    -webkit-text-stroke: 2px #0092FF;
}

.introMovieTitleContainer h2:nth-child(2) {
    color: #FF00DC;
    animation: animate 10s ease-in-out;
}

@keyframes animate {
    0% {
        clip-path: polygon(0 94%, 8% 96%, 24% 96%, 36% 97%, 54% 99%, 71% 100%, 100% 100%, 100% 100%, 0 100%);
    }

    25% {
        clip-path: polygon(0 67%, 17% 62%, 30% 66%, 50% 69%, 69% 63%, 83% 72%, 100% 76%, 100% 100%, 0 100%);
    }

    50% {
        clip-path: polygon(0 51%, 19% 47%, 33% 55%, 50% 61%, 69% 55%, 85% 51%, 100% 56%, 100% 100%, 0 100%);
    }

    75% {
        clip-path: polygon(0 49%, 18% 44%, 31% 46%, 49% 44%, 69% 41%, 82% 42%, 100% 35%, 100% 100%, 0 100%);
    }

    80% {
        clip-path: polygon(0 36%, 18% 32%, 30% 30%, 47% 30%, 69% 35%, 84% 40%, 100% 30%, 100% 100%, 0 100%);
    }

    90% {
        clip-path: polygon(0 25%, 18% 25%, 32% 20%, 48% 18%, 70% 23%, 84% 29%, 100% 16%, 100% 100%, 0 100%);
    }

    100% {
        clip-path: polygon(0 25%, 16% 14%, 32% 12%, 48% 12%, 68% 14%, 84% 20%, 100% 24%, 100% 100%, 0 100%);
    }
}

@keyframes animate2 {
    0% {
        clip-path: polygon(0 25%, 16% 14%, 32% 12%, 48% 12%, 68% 14%, 84% 20%, 100% 24%, 100% 100%, 0 100%);
    }

    25% {
        clip-path: polygon(0 25%, 18% 25%, 32% 20%, 48% 18%, 70% 23%, 84% 29%, 100% 16%, 100% 100%, 0 100%);
    }

    50% {
        clip-path: polygon(0 36%, 18% 32%, 30% 30%, 47% 30%, 69% 35%, 84% 40%, 100% 30%, 100% 100%, 0 100%);
    }

    75% {
        clip-path: polygon(0 49%, 18% 44%, 31% 46%, 49% 44%, 69% 41%, 82% 42%, 100% 35%, 100% 100%, 0 100%);
    }

    80% {
        clip-path: polygon(0 51%, 19% 47%, 33% 55%, 50% 61%, 69% 55%, 85% 51%, 100% 56%, 100% 100%, 0 100%);
    }

    90% {
        clip-path: polygon(0 67%, 17% 62%, 30% 66%, 50% 69%, 69% 63%, 83% 72%, 100% 76%, 100% 100%, 0 100%);
    }

    100% {
        clip-path: polygon(0 94%, 8% 96%, 24% 96%, 36% 97%, 54% 99%, 71% 100%, 100% 100%, 100% 100%, 0 100%);
    }
}

.introMovieTitleContainer2,
.introMovieTitle2 {

    &::before,
    &::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        user-select: none;
    }
}

.introMovieTitleContainer2 {
    --spotlight-color: white;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;

    &::before {
        animation: shimmer 5s infinite linear;
        background:
            radial-gradient(circle, var(--spotlight-color), transparent 25%) 0 0 / 25% 25%,
            radial-gradient(circle, var(--spotlight-color), black 25%) 50% 50% / 12.5% 12.5%;
        inset-block-start: -100%;
        inset-inline-start: -100%;
        mix-blend-mode: color-dodge;
        z-index: 3;
    }

    &::after {
        backdrop-filter: blur(1px) brightness(90%) contrast(150%);
        z-index: 4;
    }
}

@keyframes shimmer {
    100% {
        transform: translate3d(50%, 50%, 0);
    }
}

.introMovieTitle2 {
    text-transform: uppercase;

    --background-color: black;
    --text-color: white;
    --color-1: aqua;
    --color-2: blue;

    color: transparent;
    text-shadow:
        0 0 0.02em var(--background-color),
        0 0 0.02em var(--text-color),
        0 0 0.02em var(--text-color),
        0 0 0.02em var(--text-color);

    &::before {
        backdrop-filter: blur(0.013em) brightness(400%);
        z-index: 1;
    }

    &::after {
        background: linear-gradient(45deg, var(--color-1), var(--color-2));
        mix-blend-mode: multiply;
        z-index: 2;
    }
}

.ray {
    clip-path: polygon(0% 45%, 100% 0%, 100% 100%, 0% 55%);
    transition: 4s;
    transform: translateY(-50%) translateX(-50%) rotate(var(--angle)) translateY(50%) translateX(50%) translateY(-50%);
    position: absolute;
    background: linear-gradient(0.25turn, rgba(255, 255, 0, 0.7), rgba(255, 255, 100, 0));
    height: 100px;
}

.light1 {
    animation-duration: 10s;
    animation-name: wave;
    animation-iteration-count: infinite;
    position: absolute;
}

.light2 {
    animation-duration: 7s;
    animation-name: wave;
    animation-iteration-count: infinite;
    position: absolute;
}

@keyframes wave {
    0% {
        --angle: 90deg;
    }

    50% {
        --angle: 110deg;
    }

    100% {
        --angle: 60deg;
    }
}

.lightCircle {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    margin: 5px;
    animation-duration: .5s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-name: glow;
}

.lightCircle:nth-child(odd) {
    animation-delay: .5s;
}

@keyframes glow {
    from {
        box-shadow: 0;
    }

    to {
        box-shadow: 0 0 40px 15px white;
    }
}

.hud {
    padding: 10px 0;
    box-sizing: border-box;
}

canvas {
    background: #3e2723;
    border: 5px solid #5d4037;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);

    width: 90vw;
    max-width: 800px;
    height: auto;
    max-height: 50vh;
    aspect-ratio: 4 / 3;
}

.stat {
    font-size: 1rem;
    font-weight: bold;
    color: #f9e2af;
    background-color: black;
}

.controls-container {
    display: flex;
    justify-content: center;
    margin-top: 2vh;
    gap: 1.5vh;
    flex-direction: column;
}

.row-top {
    display: flex;
    justify-content: center;
}

.row-mid {
    display: flex;
    justify-content: center;
}

.row-action {
    display: flex;
    justify-content: center;
}

.btn {
    width: 50px;
    height: 50px;
    max-width: 50px;
    max-height: 50px;
    font-size: 2rem;
    border: 2px solid black;
    background-color: gray;
    margin: 5px;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.btn:active {
    background: #f9e2af;
    color: #3e2723;
    transform: scale(0.92);
}

.btn-serve {
    width: 180px;
    min-width: 180px;
}

html,
body {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    margin: 0;
    touch-action: none;
}