@import url("../games.css?v=2026.01.27a");
:root {
    --primary-color: #1bec76;
    --secondary-color: #17a6ff;
    --color-gradient: linear-gradient(var(--primary-color), #36be51);

    --bad: rgb(255, 81, 50);
}

html, body {
    width: 100vw;
    height: 100dvh;
    position: fixed;
    margin: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    touch-action: manipulation;
}

.gradient {
    background: var(--color-gradient);
    background-clip: text;
    color: transparent;
}

.title {
    margin: 0;
    align-items: start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}


.game {
    display: flex;
    flex-direction: column;
    max-width: fit-content;
    gap: 2rem;

    box-sizing: border-box;
    border: 0.25rem dashed #ccd;
    border-radius: 2rem;
    padding: 4rem;

    margin: 0;
}

p {
    font: 1.5rem 'Martian Mono';
    font-weight: 400;
    max-width: 72rem;
    line-height: 2rem;
}

p > span {
    color: var(--secondary-color);
    font-weight: bolder;
}

p > span.warning {
    color: tomato;
}

.input {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;

    font: 1.5rem "Martian Mono";
}

#tries-remaining {
    color: dodgerblue;
    font-weight: bold;
    align-self: center;
}

input {
    border: 0.125rem solid #ccd;
    border-radius: 0.75rem;

    padding: 1rem;
    font-size: inherit;
    font-family: inherit;
    width: 14rem;

    transition: border-color 0.15s;
}

input:focus
{
    border-color: var(--secondary-color);
    outline: none;
}

#guess {
    background-color: var(--secondary-color);
    border: none;
    border-radius: 0.75rem;

    color: white;
    font-size: inherit;
    font-family: inherit;
    font-weight: 600;

    padding-inline: 2rem;

    cursor: pointer;
    transition: background-color 0.25s;
}

#guess.disabled {
    background-color: #ccd;
    cursor: default;
}

#guess:not(.disabled):hover {
    background-color: #0582cf;
}

.wrong {
    color: tomato;
    font-family: 'Martian Mono';
    font-weight: bold;
    font-size: 1.5rem;
}

#previous-guesses {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    max-width: 72rem;
}

#previous-guesses > span {
    background-color: #ccd;
    color: white;
    border-radius: 0.5rem;

    font-family: 'Martian Mono';
    font-weight: 600;
    font-size: 1.5rem;
    width: auto;
    height: 3.5rem;
    padding-inline: 1rem;
    text-shadow: 0 0.2rem 0.5rem #0000001f;
    
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

#previous-guesses > #mystery {
    background: radial-gradient(circle at top, var(--primary-color) 0, #36be51);
    font-size: 2rem;
    padding: 0;
    aspect-ratio: 1;
}

#previous-guesses > #mystery.solved {
    aspect-ratio: auto;
    font-size: 1.5rem;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    body {
        justify-content: start;
    }

    .game {
        width: auto;
        height: auto;
        align-self: stretch;

        padding: 0;
        border: none;
        border-radius: 0;
        margin: 0 2rem;

        flex: 1;
        justify-content: center;
        gap: 3rem;
    }

    .game > p {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .input {
        align-self: stretch;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .input input {
        flex: 1 1;
    }
}