:root {
    --ink: #2d1c12;
    --wine: #5b1d1b;
    --gold: #e6c28f;
    --paper: #fff8e9;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    font: 14px/1.5 Tahoma, Arial, sans-serif;
    background: #0b1118 url("assets/original-loco-site/body.jpg") repeat;
}

a {
    color: #6d241d;
    text-decoration: none;
}

a:hover {
    color: #a34231;
    text-decoration: underline;
}

.hero {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border-bottom: 2px solid #4e2018;
    background: #08090b;
}

.hero-media {
    position: absolute;
    top: 0;
    width: 1050px;
    height: 432px;
    background-repeat: no-repeat;
    pointer-events: none;
}

.hero-media--red {
    right: 50%;
    background-image: url("assets/original-loco-site/header_left.jpg");
    background-position: right top;
}

.hero-media--blue {
    left: 50%;
    background-image: url("assets/original-loco-site/header_right.jpg");
    background-position: left top;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(100% - 32px, 1000px);
    margin: 0 auto;
    text-align: center;
}

.brand {
    display: inline-block;
    margin: 28px 0 48px;
}

.brand img {
    display: block;
    width: 250px;
    height: auto;
    filter: drop-shadow(0 5px 10px #000);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 38px;
    padding: 13px 20px;
    border-top: 1px solid rgba(232, 196, 151, .45);
    border-bottom: 1px solid rgba(0, 0, 0, .7);
    background: rgba(16, 11, 10, .75);
}

.main-nav a {
    color: #f0d3b2;
    font: 17px "Times New Roman", serif;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.main-nav .language-switch {
    padding: 1px 7px;
    border: 1px solid #b88a61;
    border-radius: 2px;
    font-size: 13px;
}

main {
    width: min(100% - 28px, 1000px);
    margin: -34px auto 42px;
    position: relative;
    z-index: 2;
}

.top-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.feature {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    overflow: hidden;
    border: 1px solid #aa7754;
    background: var(--paper);
    box-shadow: 0 13px 28px rgba(0, 0, 0, .45);
}

.feature > img {
    width: 100%;
    min-height: 278px;
    height: 100%;
    object-fit: cover;
    object-position: 23% center;
}

.feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 35px;
    background: linear-gradient(145deg, #f7e9d0, #dfc094);
}

.eyebrow {
    margin: 0 0 5px;
    color: #9b5739;
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
}

h1, h2 {
    margin: 0;
    font-family: "Times New Roman", serif;
    font-weight: normal;
}

h1 {
    color: #55221d;
    font-size: 38px;
    line-height: 1.03;
}

h2 {
    color: #5c281e;
    font-size: 25px;
}

.feature-copy > p:not(.eyebrow) {
    margin: 13px 0 22px;
    color: #624534;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 24px;
    align-items: start;
}

.paper-card,
.forum-card {
    min-height: 188px;
    padding: 28px;
    border: 1px solid #bd936c;
    box-shadow: 0 10px 23px rgba(0, 0, 0, .35);
}

.paper-card {
    background: var(--paper);
}

.paper-card > p:last-child {
    margin: 12px 0 0;
    color: #725946;
}

.about-preview-link {
    color: #6b3022;
    font-weight: bold;
}

/* Выделяем ссылку перехода к полной странице «Об игре». */

.forum-card {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 28px;
    color: #f0dbc0;
    border-color: #81573f;
    background: linear-gradient(125deg, #3d231e, #171315);
}

.forum-card img {
    width: 185px;
    height: auto;
}

.forum-card h2 {
    color: #f3d8af;
}

.forum-card p:not(.eyebrow) {
    margin: 8px 0;
    color: #dfc8aa;
}

.forum-card a {
    color: #f3d2a0;
    font-weight: bold;
}

.server-status {
    display: grid;
    grid-template-columns: 1fr 120px auto;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    padding: 17px 24px;
    color: #eedac0;
    border: 1px solid #81573f;
    background: linear-gradient(125deg, #3d231e, #171315);
    box-shadow: 0 10px 23px rgba(0, 0, 0, .35);
}

.server-status p {
    margin: 0 0 2px;
}

.server-status strong {
    font: 18px "Times New Roman", serif;
}

#game-server-status::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border-radius: 50%;
    background: #b7aca1;
    vertical-align: middle;
}

#game-server-status[data-state="available"]::before {
    background: #6bd48a;
}

#game-server-status[data-state="unavailable"]::before {
    background: #e48b7e;
}

.server-status span {
    display: block;
    color: #d8b794;
    font-size: 10px;
    text-transform: uppercase;
}

.server-status a {
    color: #f3d2a0;
    font-weight: bold;
}

.sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.side-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 21px 18px 18px;
    color: #ead6bb;
    border: 1px solid #83563e;
    box-shadow: 0 11px 25px rgba(0, 0, 0, .42);
    background: linear-gradient(145deg, #35231e, #171215);
}

.side-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .25;
    background: url("assets/original-loco-site/sand_light.png") repeat;
    pointer-events: none;
}

.side-card > * {
    position: relative;
}

.side-card h2 {
    margin-bottom: 16px;
    color: #f2d5ad;
    font-size: 18px;
    text-align: center;
    text-transform: uppercase;
}

form {
    display: grid;
    gap: 10px;
}

label {
    display: grid;
    gap: 4px;
    color: #e8cfb0;
    font-size: 11px;
}

input {
    width: 100%;
    padding: 8px;
    color: #302015;
    border: 1px solid #ac7c57;
    border-radius: 2px;
    background: #fff8ea;
    font: 13px Tahoma, Arial, sans-serif;
}

.remember {
    display: flex;
    align-items: center;
    gap: 6px;
}

.remember input {
    width: auto;
}

button,
.button-link {
    display: inline-block;
    padding: 9px 12px;
    color: #fff0d6;
    border: 1px solid #d2a26e;
    border-radius: 2px;
    background: linear-gradient(#963c2d, #5b1c19);
    box-shadow: inset 0 1px rgba(255, 255, 255, .18);
    cursor: pointer;
    font: 14px "Times New Roman", serif;
    text-align: center;
    text-transform: uppercase;
}

button:hover,
.button-link:hover {
    color: #fff;
    text-decoration: none;
    background: linear-gradient(#af5039, #6a211b);
}

.login-card .button-link {
    margin-top: auto;
}

.minor-link {
    display: block;
    min-height: 17px;
    margin-top: 12px;
    color: #d9b88f;
    font-size: 11px;
    text-align: center;
}

.register-card {
    justify-content: center;
    text-align: center;
}

.register-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.register-actions .image-button {
    display: block;
    line-height: 0;
}

.register-actions .image-button:focus-visible {
    outline: 2px solid #fff3d8;
    outline-offset: 2px;
}

.register-actions img {
    display: block;
    width: 100%;
    height: auto;
}

.register-card p {
    color: #dec5a7;
    font-size: 12px;
}

footer {
    padding: 22px;
    color: #b99d81;
    border-top: 1px solid #493126;
    font-size: 11px;
    text-align: center;
    background: rgba(0, 0, 0, .35);
}

footer p {
    margin: 0;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin-top: 10px;
}

.footer-social a {
    color: #f3d2a0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.main-nav .is-active {
    color: #fff3d8;
    text-shadow: 0 0 10px #d8874e;
}

@media (max-width: 700px) {
    .hero {
        min-height: 260px;
    }

    main {
        margin-top: 24px;
    }

    .hero-media {
        opacity: .55;
    }

    .brand {
        margin-bottom: 26px;
    }

    .top-layout {
        grid-template-columns: 1fr;
    }

    .feature {
        grid-template-columns: 1fr;
    }

    .feature > img {
        min-height: 190px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .forum-card {
        grid-column: auto;
    }

    .server-status {
        grid-template-columns: 1fr auto;
    }

    .server-status a {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    main {
        width: min(100% - 16px, 1000px);
    }

    .main-nav {
        gap: 7px 20px;
    }

    .main-nav a {
        font-size: 14px;
    }

    .feature-copy,
    .paper-card {
        padding: 24px;
    }

    .forum-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 24px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .server-status {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .server-status a {
        grid-column: auto;
    }
}
