body {
    background: linear-gradient(180deg, #ffb3c6 0%, #ee5d75 50%, #c94060 100%);
    margin: 0;
    overflow: hidden;
}

.player {
    height: 180px;
    position: absolute;
    left: 50%;
    bottom: 175px;
    transform: translateX(-50%) scaleX(1);
    image-rendering: pixelated;
    z-index: 3;
}

.platform4 {
    width: min(900px, 85vw);
    height: 100px;
    position: absolute;
    bottom: 193px;
    left: 50%;
    transform: translateX(-50%);
    image-rendering: pixelated;
    z-index: 2;
}

.game {
    height: 100vh;
    width: 100vw;
    position: relative;
}

.bricks {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 30vh;
    object-fit: fill;
    z-index: 1;
}

.cloud {
    position: absolute;
    background: rgba(255,255,255,0.5);
    border-radius: 50px;
    filter: blur(8px);
}

.grass {
    position: absolute;
    bottom: 30vh;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(180deg, #a8e063 0%, #56ab2f 100%);
    z-index: 0;
}

/* Portrait warning */
@media screen and (orientation: portrait) {
    body::after {
        content: "🔄 Rotate your phone to play!";
        position: fixed;
        inset: 0;
        background: #c94060;
        color: white;
        font-size: 24px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        z-index: 9999;
        padding: 40px;
    }
}

#birthday-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9998;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.popup-card {
    position: relative;
    animation: zoomIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-img {
    width: 90vw;
    max-width: 560px;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.popup-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #c94060;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 10000;
}

@keyframes zoomIn {
    from { transform: scale(0.3); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}