*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    pointer-events: none;
    user-select: none;
}

.container{
    position: relative;
    z-index: -2;
    display: grid;
    place-items: center;
    height: 100vh;
    background: repeating-radial-gradient(circle,#B8D4AA 0 30px,#AACC99 30px 50px,#B8D4AA 50px 80px);
}

.reflection{
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background-color: #29a88f33  ;
}

.reflection::before{
    position: absolute;
    content: "";
   height: 80px;
   width: 100%;
   top: 10%;
   right: -35%;
   rotate: 35deg;
   background: repeating-linear-gradient(rgba(255, 255, 255, 0.212) 0 20%, transparent 20% 30%, rgba(255, 255, 255, 0.212) 30% 100%);
}

.arena-container{
    position: relative;
    z-index: -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #aacc99;
    border: 10px solid black;
    box-shadow: inset -4px 6px 0 0 #00000031;
    border-radius: inherit;
    padding: 20px 20px 10px 20px;
}

.arena{
    display: grid;
    grid-template-columns: repeat(30,1fr);
    grid-template-rows: repeat(30,1fr);
    height: 500px;
    width: 500px;
    border: 3px solid black;
}

.snake:first-child{
    background-color: red;
    z-index: 2;
}

.snake{
    background-color: black;
    border-radius: 4px;
    box-shadow: -1px 2px 0 0 #39393985;
    z-index: 1;
    overflow: hidden;
}

.food{
    border-radius: 50%;
    background: #000;
    box-shadow: -1px 2px 0 0 #39393985;
}

.game-info{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 5px;
    font-size: 18px;
    font-weight: 999;
}

.game-info > *{
    text-shadow: -1px 2px 0 #39393957;    
}

.instruction-text{
    position: absolute;
    z-index: 1;
    font-size: 32px;
    text-wrap: balance;
    text-align: center;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
}

.small-screen-message{
    display: none;
 position: absolute;
 z-index: 1000;
 font-size: clamp(1.375rem, -0.125rem + 7.5vw, 2.5rem);
 text-align: center;
 top: 50%;
 left: 50%;
 translate: -50% -50%;
}

@media all and (max-width:561px), (max-height:578px) {
    .reflection{
        display: none;
    }
    .small-screen-message{
        display: block;
    }
}