/* Killer Stardust: the game fills the window; the score and help sit over it in the Cursed pink. */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background-color: #020611;
    font-family: 'Arial', sans-serif;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

#score {
    position: absolute;
    top: 12px;
    left: 14px;
    color: #f088e9;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 0.05em;
    white-space: pre;
}

#score, #help {
    visibility: hidden;
}

body.playing #score,
body.playing #help {
    visibility: visible;
}

#help {
    position: absolute;
    top: 16px;
    right: 14px;
    color: #c2c2c2;
    font-size: 13px;
}

#dynamicFooter {
    position: absolute;
    bottom: 8px;
    left: 14px;
    color: #c2c2c2;
    font-size: 12px;
}

/* the splash, before the game starts: the game's logo, the Cursed logo, the copyright */
#splash {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: rgba(2, 6, 17, 0.55);
    cursor: pointer;
    transition: opacity 0.5s;
}

#splash.gone {
    opacity: 0;
    pointer-events: none;
}

#splash .game-logo {
    width: min(560px, 80vw);
    image-rendering: pixelated;
}

#splash .cursed-logo {
    width: min(300px, 50vw);
}

#splash .copyright {
    margin: 0;
    color: #c2c2c2;
    font-size: 15px;
}

#splash .press {
    margin: 22px 0 0;
    color: #f088e9;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.08em;
    animation: blink 1.2s steps(2, start) infinite;
}

@keyframes blink {
    to { visibility: hidden; }
}

@media (max-width: 600px) {
    #help { display: none; }
    #score { font-size: 16px; }
}
