* {
    box-sizing: border-box;
}

body {
    margin: 0;

    background-color: #080812;
    color: white;

    font-family: 'Courier New', Courier, monospace;
    font-size: 32px;

    text-shadow: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000;
}

button, input, select, textarea {
    font-family: inherit;
}

.screen {
    position: relative;

    width: 100vw;
    min-height: 100vh;
    padding: 22px;

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

    background-color: #171728;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.box {
    position: relative;
    z-index: 3;

    width: min(90vw, 820px);

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

    padding: 28px 32px;
}

.box-bg {
    background-color: rgba(10, 10, 22, 0.58);
    border: 4px solid rgba(0, 0, 0, 0.75);

    box-shadow: inset 4px 4px 0 rgba(255, 255, 255, 0.08), inset -4px -4px 0 rgba(0, 0, 0, 0.55), 0 10px 0 rgba(0, 0, 0, 0.55);
}

.hidden {
    display: none;
}

.wolf-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
    url("images/village.gif");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    image-rendering: pixelated;
}

.day-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("images/village_with_character.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    image-rendering: pixelated;
}

.night-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("images/village_night.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    image-rendering: pixelated;
}

h1 {
    color: white;
}

p {
    color: #ccccdd;
}

input[type="text"] {
    width: 100%;

    padding: 10px 12px;
    margin-top: 10px;

    background-color: #2b2b3d;
    color: white;

    border: 4px solid #111;
    border-radius: 0;

    font-size: 20px;
    text-shadow: 2px 2px 0 #000;

    box-shadow: inset 4px 4px 0 #44445c,
    inset -4px -4px 0 #15151f;

    outline: none;
}

input[type="text"]:focus {
    background-color: #34344a;

    box-shadow: inset 4px 4px 0 #5c5c7a,
    inset -4px -4px 0 #11111a,
    0 0 0 3px rgb(90 23 48);
}

button {
    width: 100%;
    max-width: 700px;

    padding: 14px 18px;
    margin-top: 16px;

    background-color: #5a1730;
    color: white;

    border: 4px solid #12040a;
    border-radius: 0;

    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;

    cursor: pointer;
    text-shadow: 2px 2px 0 #000;

    box-shadow: inset 4px 4px 0 #8a2b4d,
    inset -4px -4px 0 #2a0815,
    0 6px 0 #070204;

    transition: transform 0.08s ease,
    box-shadow 0.08s ease,
    background-color 0.15s ease;
}

.ok {
    width: 30%
}

button:hover {
    background-color: #711d3c;

    box-shadow: inset 4px 4px 0 #a83a63,
    inset -4px -4px 0 #350a1a,
    0 6px 0 #070204;
}

button:active {
    transform: translateY(6px);

    background-color: #461124;

    box-shadow: inset -4px -4px 0 #8a2b4d,
    inset 4px 4px 0 #2a0815,
    0 0 0 #070204;
}

button:disabled {
    opacity: 0.45;
    cursor: not-allowed;

    transform: none;

    box-shadow: inset 4px 4px 0 #44445c,
    inset -4px -4px 0 #15151f,
    0 6px 0 #070204;
}

.container {
    width: 100%;
    max-width: 700px;
    margin-top: 10px;
    padding: 0;
}

.list {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 10px;

    list-style: none;
    padding: 0;
    margin: 0;

    font-size: 20px;
}

li {
    padding: 10px 14px;

    background-color: rgba(36, 36, 56, 0.92);
    color: white;

    border: 4px solid #111;

    text-shadow: 2px 2px 0 #000;

    box-shadow: inset 3px 3px 0 #44445c,
    inset -3px -3px 0 #15151f;
}

.vote-list {
    width: 100%;
    max-width: 700px;

    display: flex;
    flex-direction: column;
    gap: 16px;

    margin-top: 24px;
    margin-bottom: 24px;
}

.vote-card {
    position: relative;

    width: 100%;
    min-height: 72px;

    display: flex;
    align-items: center;
    gap: 20px;

    padding: 14px 22px;

    background-color: rgba(25, 25, 40, 0.92);
    color: white;

    border: 4px solid #111;

    cursor: pointer;

    font-size: 28px;
    font-weight: bold;

    text-shadow: 2px 2px 0 #000;

    box-shadow: inset 4px 4px 0 #44445c,
    inset -4px -4px 0 #15151f,
    0 6px 0 #070204;

    transition: transform 0.08s ease,
    background-color 0.15s ease,
    box-shadow 0.08s ease;
}

.vote-card:hover {
    background-color: rgba(70, 20, 38, 0.96);

    box-shadow: inset 4px 4px 0 #8a2b4d,
    inset -4px -4px 0 #2a0815,
    0 6px 0 #070204;
}

.vote-card.disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

.vote-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: auto;
}

.vote-card.selected {
    background-color: rgba(100, 24, 52, 0.98);

    box-shadow: inset 4px 4px 0 #a83a63,
    inset -4px -4px 0 #2a0815,
    0 0 0 4px rgba(255, 255, 255, 0.25),
    0 6px 0 #070204;
}

.vote-icon {
    width: 48px;
    height: 48px;

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

    background-color: #2b2b3d;

    border: 3px solid #111;

    font-size: 26px;

    box-shadow: inset 3px 3px 0 #44445c,
    inset -3px -3px 0 #15151f;
}

.vote-name {
    font-size: 30px;
}

.voter-panel {
    width: 100%;
    max-width: 700px;

    margin-top: 8px;
    padding: 16px 20px;

    background-color: rgba(10, 10, 22, 0.7);
    border: 4px solid #111;

    box-shadow: inset 4px 4px 0 rgba(255, 255, 255, 0.08),
    inset -4px -4px 0 rgba(0, 0, 0, 0.55),
    0 6px 0 rgba(0, 0, 0, 0.55);
}

.voter-panel h3 {
    margin: 8px 0;
    font-size: 22px;
}

.voter-status {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 8px;

    font-size: 18px;
}

.voter-row {
    padding: 8px 12px;

    background-color: rgba(36, 36, 56, 0.92);
    border: 3px solid #111;

    box-shadow: inset 3px 3px 0 #44445c,
    inset -3px -3px 0 #15151f;
}

.voters {
    margin-left: auto;

    display: flex;
    gap: 4px;

    font-size: 24px;
}

@media screen and (max-width: 768px) {
    body {
        font-size: 24px;
    }

    .screen {
        padding: 16px;
    }

    .box {
        width: 94vw;
    }

    button {
        font-size: 18px;
        padding: 12px 14px;
    }

    input[type="text"] {
        font-size: 18px;
    }

    .vote-card {
        min-height: 60px;
        padding: 12px 16px;

        font-size: 22px;
        gap: 14px;
    }

    .vote-icon {
        width: 40px;
        height: 40px;

        font-size: 22px;
    }

    .vote-name {
        font-size: 22px;
    }

    .voter-panel h3 {
        font-size: 18px;
    }

    .voter-status {
        font-size: 15px;
    }

    .voters {
        font-size: 20px;
    }
}
