body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #1a1a1a;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    touch-action: none;
    user-select: none;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top, #2c3e50 0%, #000000 100%);
}

#game-canvas {
    max-width: 100%;
    max-height: 100%;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.8);
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#score-display {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    font-weight: bold;
    color: #f39c12;
    text-shadow: 0 4px 0 #d35400, 0 8px 10px rgba(0,0,0,0.8);
    margin: 0;
}

#frames-display {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #ecf0f1;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

#start-screen, #game-over-screen {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.8);
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), inset 0 2px 10px rgba(255,255,255,0.2);
    text-align: center;
    border: 2px solid #f39c12;
    color: #fff;
    backdrop-filter: blur(10px);
}

h2 {
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #f1c40f;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #bdc3c7;
}

/* Button */
.btn {
    pointer-events: auto;
    font-size: 1.5rem;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 0 #a04000, 0 10px 15px rgba(0,0,0,0.5);
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn:active {
    transform: translateY(6px);
    box-shadow: 0 0px 0 #a04000, 0 4px 5px rgba(0,0,0,0.5);
}

#msg-text {
    position: absolute;
    top: 30%;
    font-size: 5rem;
    font-weight: bold;
    font-style: italic;
    color: #e74c3c;
    text-shadow: 0 4px 0 #c0392b, 0 0 30px rgba(231, 76, 60, 0.8);
    opacity: 0;
    transform: scale(0.1) rotate(-10deg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.show-msg {
    opacity: 1 !important;
    transform: scale(1) rotate(0deg) !important;
}
