@font-face {
    font-family: "digital";
    src: url("/fonts/digital.latin.woff2") format("woff2");
    font-display: swap;
}

:root {
    color-scheme: dark;
    font-family: Arial, sans-serif;
    background: #090b10;
    color: #fff;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    background-image: url("/assets/grain.svg"), url("/assets/circuit.svg"), url("/assets/vignette.svg");
    background-repeat: repeat, repeat, no-repeat;
    background-size: 256px 256px, 216px 216px, cover;
    background-position: top left, top left, center;
}

button, a { font: inherit; }

.voting-shell {
    width: min(100%, 72rem);
    min-height: 100vh;
    margin: 0 auto;
    padding: 1rem;
}

.centered { text-align: center; }

.brand {
    margin: 0 -1rem 2rem;
    padding: 1.25rem 1rem;
    background: rgba(0, 0, 0, .78);
    font-family: "digital", monospace;
    font-size: clamp(2.5rem, 10vw, 5rem);
    text-align: center;
}

.man { color: rgb(0, 232, 218); }
.versus { color: rgb(255, 1, 233); }
.prompt { margin: 2rem 0; text-align: center; }

.vote-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.vote-button {
    min-height: 28vh;
    border: 2px solid #2a2f3a;
    border-radius: .5rem;
    font-family: "digital", monospace;
    font-size: clamp(3rem, 10vw, 6rem);
    cursor: pointer;
}

.vote-button:focus-visible { outline: 5px solid rgb(255, 1, 233); }
.vote-button:disabled { cursor: wait; opacity: .65; }
.vote-grid.is-submitting { pointer-events: none; opacity: .65; }
.vote-grid.is-submitting .vote-button { cursor: wait; }
.vote-man { background: rgb(0, 232, 218); color: #000; }
.vote-machine { background: #fff; color: #000; }

.versus-mark {
    color: rgb(255, 1, 233);
    font-family: "digital", monospace;
    font-size: 3rem;
    text-shadow: rgb(255, 1, 233) 1px 0 7px;
    text-align: center;
}

.status-card {
    margin: 8vh auto 0;
    padding: clamp(1.5rem, 5vw, 3rem);
    max-width: 48rem;
    border: 1px solid #2a2f3a;
    border-radius: .75rem;
    background: rgba(0, 0, 0, .78);
}

.action-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 1rem 2rem;
    border-radius: .4rem;
    background: rgb(255, 1, 233);
    color: #000;
    font-weight: 700;
    text-decoration: none;
}

.submit-status { min-height: 1.5rem; text-align: center; }

.scoreboard {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
    font-family: "digital", monospace;
    font-size: clamp(2.5rem, 12vw, 5rem);
}

.scoreboard span { display: grid; }
.scoreboard small { font-family: Arial, sans-serif; font-size: 1rem; }

@media (max-width: 700px) {
    .vote-grid { grid-template-columns: 1fr; }
    .vote-button { min-height: 22vh; }
    .versus-mark { font-size: 2rem; }
}
