/*
 * =========================
 * CSS
 * =========================
 */

/* ---- Layout / fullscreen ---- */

html,
body
{
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #0a0d12;
    font-family: "Menlo", "Consolas", "Courier New", monospace;
    -webkit-user-select: none;
    user-select: none;
}

#game
{
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* ---- Background input layer (z-index 1) ---- */

#typed-binary
{
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100vw;
    z-index: 1;

    text-align: center;
    font-size: 32vh;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.05em;

    color: #ffffff;
    opacity: 0.12;

    pointer-events: none;
    white-space: nowrap;
}

#typed-binary.wrong
{
    color: #ff2d3f;
    opacity: 0.55;
}

/* ---- Falling number layer (z-index 2) ---- */

#falling-number
{
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    z-index: 2;

    text-align: center;
    font-size: 16vh;
    line-height: 1;
    font-weight: 700;

    color: #eaf2ff;
    text-shadow: 0 0 4vh rgba(120, 190, 255, 0.45);

    pointer-events: none;
    will-change: transform;
}

#falling-number.hidden
{
    display: none;
}

/* ---- Game over layer (z-index 3) ---- */

#game-over
{
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3;

    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3vh;

    background: rgba(10, 13, 18, 0.85);
    color: #ff2d3f;
    text-align: center;

    pointer-events: none;
}

#game-over.visible
{
    display: flex;
}

#game-over .title
{
    font-size: 12vh;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.08em;
}

#game-over .hint
{
    font-size: 3vh;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #7d8798;
}
