html {
    color-scheme: dark;
    background: #000;
}

.entry-notice {
    color: #999;
    font: 11px/1.5 Arial,sans-serif;
    margin: 14px 0 0;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: #000;
    color: #c0c0c0;
    font: 16px "Times New Roman", Times, serif;
}

main {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.controls {
    width: min(400px, 100%);
    text-align: center;
    transform: translateY(-16px);
}

.riddle {
    margin: 0 0 14px;
    line-height: 1.5;
}

.cipher {
    margin: 0 0 20px;
}

.buttons {
    margin-top: 14px;
}

button {
    appearance: none;
    min-width: 72px;
    height: 28px;
    margin: 0 5px;
    padding: 2px 14px;
    border: 2px solid;
    border-color: #fff #404040 #404040 #fff;
    border-radius: 0;
    background: #c0c0c0;
    color: #000;
    font: 13px Arial, Helvetica, sans-serif;
    cursor: pointer;
}

    button:active {
        border-color: #404040 #fff #fff #404040;
        padding: 3px 13px 1px 15px;
    }

    button:focus-visible {
        outline: 1px dotted #fff;
        outline-offset: 4px;
    }

input {
    appearance: none;
    display: block;
    width: min(260px, 100%);
    height: 26px;
    margin: 0 auto;
    padding: 3px 6px;
    border: 2px solid;
    border-color: #404040 #c0c0c0 #c0c0c0 #404040;
    border-radius: 0;
    background: #fff;
    color: #000;
    font: 13px Arial, Helvetica, sans-serif;
}

    input::placeholder {
        color: #707070;
        opacity: 1;
    }

    input:focus-visible {
        outline: 1px dotted #c0c0c0;
        outline-offset: 3px;
    }

    input[aria-invalid="true"] {
        outline: 1px dotted #b00000;
        outline-offset: 3px;
    }

code {
    color: #a0a0a0;
    font: 13px "Courier New", Courier, monospace;
    overflow-wrap: anywhere;
    user-select: all;
}

@media (max-width: 480px) {
    input {
        font-size: 16px;
        height: 30px;
    }

    button {
        height: 32px;
    }
}
