/* SÉANCE: the canvas is scaled to fit the window (16:9); the splash and the touch pad sit over it. */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background-color: #020611;
    font-family: Georgia, 'Times New Roman', serif;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

#game {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(100vw, calc(100vh * 16 / 9));
    height: min(100vh, calc(100vw * 9 / 16));
    background-color: #020611;
    image-rendering: auto;
}

#splash {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #020611;
    cursor: pointer;
    text-align: center;
    padding: 0 16px;
    transition: opacity 0.5s;
}

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

#splash .title {
    margin: 0;
    color: #f088e9;
    font-size: min(110px, 18vw);
    font-weight: normal;
    letter-spacing: 0.18em;
}

#splash .tag {
    margin: 0;
    color: #34a9e3;
    font-size: 20px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

#splash .blurb {
    margin: 4px 0 10px;
    color: #c8e8f8;
    font-size: 16px;
    font-style: italic;
}

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

#splash .copyright {
    margin: 0;
    color: #8fa3b3;
    font-size: 14px;
}

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

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

/* the touch pad: only on touch screens, once the game is running */
#touch {
    display: none;
}

body.touch.playing #touch {
    display: block;
}

#touch .pad {
    position: absolute;
    bottom: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

#touch .left {
    left: 14px;
}

#touch .right {
    right: 14px;
}

#touch button {
    width: 68px;
    height: 68px;
    border: 2px solid #34a9e3;
    border-radius: 50%;
    background-color: #001725;
    color: #34a9e3;
    font-size: 26px;
    font-family: inherit;
    opacity: 0.75;
    touch-action: none;
}

#touch button.small {
    width: 46px;
    height: 46px;
    font-size: 16px;
    border-color: #f088e9;
    color: #f088e9;
}

#touch button.down {
    background-color: #005184;
}
