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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(180deg, #ffd4d4 0%, #fff4f2 100%);
    font-family: 'Inter', sans-serif;
}

#falling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.falling-pic {
    position: absolute;
    top: -150px;
    animation: fall linear;

    width: 30px;
}
@keyframes fall {
    to {
        transform: translateY(calc(100vh + 200px));
    }

    /* 0% {
        transform: translateX(-20px) rotate(-15deg);
    } doesnt work --> want to do non linear fall with like rotations
    100% {
        transform: translateX(20px) rotate(15deg);
    } */
}

.game-ui, .home-screen {
    width: 360px;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

h1 {
    font-size: 2rem;
    color: #8b3d7f;
}

h3 {
    font-size: 1.2rem;
    color: #240e1f;
    margin: 16px;
}

p {
    color: #4a2a4b;
    margin-bottom: 16px;
}

.score-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px;
}

button {
    background: #ff7eb9;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: bold;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 72px);
    grid-template-rows: repear(4, 72px);
    gap: 10px;
    justify-content: center;
}

.cell {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1rem;
    color: #3f1c3d;
    background: #fff0f6;
}

.cell[data-value="2"] { 
    /* background: #ffe3f1; */
    background-image: url('pics/cupcake2.png');
    background-size: cover;
 }
.cell[data-value="4"] { 
    /* background: #ffb3d8;  */
    background-image: url("pics/cupcake4.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.cell[data-value="8"] { 
    /* background: #ff92ce;  */
    background-image: url("pics/cupcake8.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.cell[data-value="16"] { 
    /* background: #ff70c7;  */
    background-image: url("pics/cupcake16.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.cell[data-value="32"] { 
    /* background: #ff40b2;  */
    background-image: url("pics/cupcake32.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.cell[data-value="64"] { 
    /* background: #e82e86;  */
    background-image: url("pics/cupcake64.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.cell[data-value="128"] { 
    /* background: #c61d6c; color: white;  */
    background-image: url("pics/cupcake128.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.cell[data-value="256"] { 
    /* background: #a60058; color: white;  */
    background-image: url("pics/cupcake256.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.cell[data-value="512"] { 
    /* background: #7f0045; color: white;  */
    background-image: url("pics/cupcake512.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.cell[data-value="1024"] { 
    /* background: #5a003c; color: white;  */
    background-image: url("pics/cupcake1024.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.cell[data-value="2048"] { 
    /* background: #33002a; color: white;  */
    background-image: url("pics/cupcake2048.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
