* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* background is set dynamically by JS via style.backgroundImage */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    font-family: sans-serif;
}

#gameCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    display: block;
}

#deathText {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    max-width: 70vw;
    max-height: 40vh;
    pointer-events: none;
    image-rendering: auto;
}
.death-text-hidden {
    display: none;
}
.death-text-visible {
    display: block;
}

/* level name HUD */
#levelName {
    position: fixed;
    top: 16px;
    left: 99%;
    transform: translateX(-100%);
    z-index: 30;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.45);
    padding: 6px 18px;
    border-radius: 8px;
    font-family: sans-serif;
    user-select: none;
    white-space: nowrap;
}