* {
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #1a1a2e;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
}

#start-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

#start-overlay h1 {
    font-size: 2rem;
    color: #e94560;
    text-shadow: 0 0 10px rgba(233, 69, 96, 0.8);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#app-container {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: radial-gradient(circle at center, #16213e 0%, #0f3460 100%);
}

#score-board {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: #f9a826;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 10;
}

#masrafa {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%) rotate(-12deg);
    width: 700px;
    max-width: 95vw;
    height: auto;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.5));
}

.para {
    position: absolute;
    width: 120px;
    height: auto;
    z-index: 4;
    pointer-events: none;
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        top: -60px;
        transform: rotate(0deg);
    }
    100% {
        top: calc(100vh - 150px); /* Stop inside the bucket safely even on mobile */
        transform: rotate(360deg);
    }
}

.black-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    flex-direction: column;
}
