*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    padding: 22px 12px 42px;
    color: #111;
    background: #cfffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

a {
    color: #a00000;
}

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

.retro-page {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.retro-logo {
    width: 180px;
    margin: 0 auto 18px;
    padding: 8px 10px;
    border: 1px solid #555;
    background: #efefef;
    text-align: center;
    line-height: 1.05;
}

.retro-logo strong,
.retro-logo span {
    display: block;
}

.retro-logo strong {
    color: #a00000;
    font-size: 18px;
}

.retro-logo span {
    margin-top: 2px;
    font-weight: 700;
}

.retro-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 20px;
    border-top: 1px solid #555;
    border-left: 1px solid #555;
}

.retro-nav a {
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 8px 10px;
    border-right: 1px solid #555;
    border-bottom: 1px solid #555;
    color: #9b0000;
    background: #f2f2f2;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
}

.retro-nav a:hover,
.retro-nav a.active {
    color: #fff;
    background: #a00000;
}

.retro-rules-note {
    margin: 0 0 18px;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
}

.retro-form {
    display: grid;
    gap: 18px;
}

.retro-panel {
    border: 1px solid #555;
    background: #f6f6f6;
}

.retro-panel-title {
    padding: 5px 8px;
    border-bottom: 1px solid #555;
    background: #e8e8e8;
    text-align: center;
    font-weight: 700;
}

.retro-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.retro-table th,
.retro-table td {
    padding: 7px 8px;
    border: 1px solid #555;
    vertical-align: middle;
}

.retro-table th {
    width: 210px;
    background: #f1f1f1;
    text-align: left;
    font-weight: 400;
}

.retro-table td {
    background: #fafafa;
}

.retro-table input,
.retro-table select,
.retro-table textarea {
    width: 100%;
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid #777;
    background: #fff;
    color: #111;
}

.retro-table textarea {
    min-height: 92px;
    resize: vertical;
}

.retro-table small {
    display: block;
    margin-top: 5px;
    color: #555;
    font-size: 11px;
}

.retro-info {
    padding: 14px 16px;
    border-bottom: 1px solid #888;
    background: #fffce8;
    line-height: 1.55;
}

.retro-checks {
    display: grid;
    gap: 11px;
    padding: 14px 16px;
}

.retro-checks label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.45;
}

.retro-checks input {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.retro-captcha-table th {
    font-weight: 700;
}

.retro-captcha-question {
    display: inline-block;
    min-width: 140px;
    margin-top: 7px;
    padding: 10px 16px;
    border: 1px solid #777;
    background:
        repeating-linear-gradient(
            -25deg,
            #d9ffff,
            #d9ffff 7px,
            #f6ffff 7px,
            #f6ffff 14px
        );
    color: #a00000;
    text-align: center;
    font-size: 24px;
    letter-spacing: 2px;
}

.retro-captcha-table label {
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 700;
}

.retro-captcha-new {
    display: inline-block;
    margin-top: 7px;
    font-size: 12px;
}

.retro-submit-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2px;
}

.retro-submit-row button {
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid #555;
    border-radius: 2px;
    color: #111;
    background: linear-gradient(#fff, #dcdcdc);
    cursor: pointer;
}

.retro-submit-row button[type="reset"] {
    min-width: 145px;
}

.retro-submit-row button[type="submit"] {
    min-width: 280px;
    color: #fff;
    border-color: #750000;
    background: #a00000;
    font-size: 16px;
    font-weight: 700;
}

.retro-submit-row button:hover {
    filter: brightness(.95);
}

.retro-errors {
    margin-bottom: 16px;
    padding: 11px 15px;
    border: 1px solid #a00000;
    background: #fff0f0;
    color: #780000;
}

.retro-errors ul {
    margin-bottom: 0;
}

.retro-success {
    padding: 18px;
    color: #c02856;
    text-align: center;
    font-size: 16px;
}

.retro-result-table th {
    font-weight: 700;
}

.retro-back-link {
    margin: 20px 0;
    text-align: center;
    font-size: 16px;
}

.retro-code-title {
    padding: 5px 8px;
    border-top: 1px solid #555;
    border-bottom: 1px solid #555;
    background: #e8e8e8;
    text-align: center;
    font-weight: 700;
}

.retro-code {
    width: calc(100% - 20px);
    min-height: 105px;
    margin: 10px;
    padding: 8px;
    border: 1px solid #777;
    background: #fff;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    resize: vertical;
}

@media (max-width: 700px) {
    body {
        padding: 10px 6px 25px;
    }

    .retro-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .retro-table,
    .retro-table tbody,
    .retro-table tr,
    .retro-table th,
    .retro-table td {
        display: block;
        width: 100%;
    }

    .retro-table tr + tr {
        border-top: 1px solid #555;
    }

    .retro-table th {
        border-bottom: 0;
        font-weight: 700;
    }

    .retro-submit-row {
        flex-direction: column;
    }

    .retro-submit-row button {
        width: 100%;
        min-width: 0 !important;
    }
}
