body {
    margin: 0;
    overflow: hidden;
    background-color: #111;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.home-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    opacity: 0.8;
    z-index: 1000;
    transition: opacity 0.3s;
}

.home-link:hover {
    opacity: 1;
}

.game-container {
    position: relative;
    width: 800px;
    height: 600px;
    background: #090a0f;
    border: 4px solid #333;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    /* Canvas stays inside */
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1b2735 0%, #090a0f 100%);
}

.ui-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.85);
    padding: 40px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    width: 300px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    margin-top: 0;
    background: linear-gradient(to right, #00f260, #0575e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

button {
    background: linear-gradient(135deg, #00f260 0%, #0575e6 100%);
    border: none;
    padding: 12px 30px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 242, 96, 0.5);
}

.hud {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}