* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0a0a0f;
    background-image:
        linear-gradient(rgba(20, 20, 35, 0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 20, 35, 0.8) 1px, transparent 1px);
    background-size: 40px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: system-ui, -apple-system, sans-serif;
    color: #a0a0a0;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

h1 {
    font-family: system-ui, -apple-system, sans-serif;
    color: #00d4ff;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    margin-bottom: 0.5rem;
}

/* Canvas styling with arcade glow effect */
#canvas,
#loadingCanvas {
    display: block;
    border: 2px solid #1a1a2e;
    border-radius: 4px;
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.15),
        0 0 40px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(0, 0, 0, 0.3);
}

#canvas {
    visibility: hidden;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.75rem;
    color: #505060;
}

footer p {
    margin: 0;
}

footer a {
    color: #606070;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #00d4ff;
}

footer button {
    background: transparent;
    border: 1px solid #303040;
    color: #606070;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    transition: all 0.2s;
}

footer button:hover {
    border-color: #00d4ff;
    color: #00d4ff;
}

/* Links */
a {
    text-decoration: none;
}

a:link,
a:visited {
    color: #606070;
}

a:hover {
    color: #00d4ff;
}
