body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    overflow: hidden;
}

#game {
    position: relative;
    width: 800px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    overflow: hidden;
}

#dino {
    position: absolute;
    bottom: 0;
    left: 50px;
    width: 50px;
    height: 50px;
    background: url('Dinosaur.png') no-repeat center;
    background-size: contain;
    transition: bottom 0.1s ease-out;
}

#cactus {
    position: absolute;
    bottom: 0;
    right: -50px;
    width: 30px;
    height: 50px;
    background-color: #00ff41;
    box-shadow: 0 0 10px #00ff41;
    border-radius: 5px 5px 0 0;
    animation: moveCactus 1.5s linear infinite;
}

#gameOverMessage {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    text-align: center;
}

#gameOverMessage.show {
    display: flex;
}

#gameOverMessage h2 {
    margin: 0 0 10px;
    font-size: 42px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#gameOverMessage p {
    margin: 0 0 20px;
    font-size: 20px;
    letter-spacing: 1px;
}

#restartButton {
    padding: 12px 28px;
    border: none;
    border-radius: 999px;
    background: #00ff41;
    color: #101010;;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 255, 64, 0.6);
}

#restartButton:hover {
    transform: translateY(-2px);
}

@keyframes moveCactus {
    from { right: -50px;}
    to { right: 100%;}
}

#score {
    font-size: 24px;
    font-weight: 300;
    margin-top: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}