.snakeattack-launch {
    padding: 14px 28px;
    background: linear-gradient(45deg,#00ffaa,#00cc88);
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 12px;
}

.snakeattack-fullscreen {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.snakeattack-fullscreen.active {
    opacity: 1;
}

.snakeattack-fullscreen.hidden {
    display: none;
}

.snakeattack-game-container {
    position: relative;
}

#snakeattack-canvas {
    background: #111;
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.snakeattack-topbar {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    color: white;
    font-weight: bold;
}

.snakeattack-close {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #ff3c3c;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
}

.snakeattack-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border-radius: 20px;
}

.snakeattack-overlay.hidden {
    display: none;
}