* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

body {
    background: #1a1a2e;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
}

#gameCanvas {
    display: block;
    background: #1a1a2e;
    touch-action: none;
}

#score-display {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 64px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 30px rgba(255,255,255,0.3), 0 4px 15px rgba(0,0,0,0.5);
    z-index: 10;
    pointer-events: none;
    letter-spacing: -2px;
}

.sendmessage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(20,20,50,0.95) 0%, rgba(8,8,20,0.98) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    cursor: pointer;
}

.sendmessage h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: -1px;
    text-shadow: 0 0 40px rgba(100,150,255,0.4);
}

.sendmessage p {
    color: rgba(255,255,255,0.4);
    font-size: 16px;
}

.niokbutton {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#game-over-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(15,10,30,0.94) 0%, rgba(5,5,15,0.97) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 90;
    backdrop-filter: blur(4px);
}

#game-over-overlay.hidden {
    display: none;
}

.game-over-text {
    font-size: 48px;
    font-weight: 900;
    color: #ff4757;
    margin-bottom: 8px;
    text-shadow: 0 0 40px rgba(255,71,87,0.5), 0 4px 15px rgba(0,0,0,0.5);
    letter-spacing: 4px;
}

.game-over-score {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 32px;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.game-over-hint {
    font-size: 15px;
    color: rgba(255,255,255,0.4);
    animation: pulse 2s ease-in-out infinite;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.9; }
}
