@font-face {
    font-family: "GenesisMinecraft";
    src: url("https://cdn.jsdelivr.net/gh/IdreesInc/Minecraft-Font@v1.0/Minecraft.otf") format("opentype");
    font-display: swap;
    font-weight: 400;
}

@font-face {
    font-family: "GenesisMinecraft";
    src: url("https://cdn.jsdelivr.net/gh/IdreesInc/Minecraft-Font@v1.0/Minecraft-Bold.otf") format("opentype");
    font-display: swap;
    font-weight: 700;
}

:root {
    --bg: #111;
    --card: #1f1f1f;
    --blue: #10aee9;
    --discord: #5865f2;
    --green: #20d54f;
    --text: #fff;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: GenesisMinecraft, Arial, sans-serif;
    letter-spacing: 0;
    padding-bottom: 34px;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.home-wrap {
    width: min(1088px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 110px;
    padding-bottom: 330px;
}

.home-grid {
    display: grid;
    grid-template-columns: 290px 1fr 220px;
    grid-template-rows: 300px 300px;
    gap: 24px;
}

.server-column {
    display: grid;
    grid-template-rows: 230px 56px;
    gap: 14px;
}

.server-logo-card,
.tile {
    overflow: hidden;
    border-radius: 21px;
    background-color: var(--card);
}

.server-logo-card {
    display: grid;
    place-items: center;
    background: var(--blue);
}

.server-logo-card img {
    width: 228px;
    height: 228px;
    object-fit: contain;
    filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .62));
}

.server-address {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 56px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: #202020;
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: transform .18s ease, filter .18s ease;
}

.server-address:hover,
.tile:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
}

.server-address svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.server-address span {
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.tile {
    position: relative;
    display: block;
    min-width: 0;
    transition: transform .18s ease, filter .18s ease;
}

.tile::before {
    position: absolute;
    inset: 0;
    content: "";
    background-size: cover;
    background-position: center;
    opacity: .82;
}

.tile::after {
    position: absolute;
    inset: 0;
    content: "";
}

.tile-store {
    grid-column: 2;
    grid-row: 1;
}

.tile-store::before {
    background-image: url("store.png");
}

.tile-store::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .22));
}

.tile-discord {
    grid-column: 3;
    grid-row: 1;
    display: grid;
    place-items: center;
}

.tile-discord::before,
.tile-discord::after {
    display: none;
}

.discord-logo {
    width: 76px;
    height: 76px;
    fill: var(--discord);
}

.tile-stats {
    grid-column: 1;
    grid-row: 2;
}

.tile-stats::before {
    background-image: url("stats.png");
}

.tile-stats::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .2));
}

.tile-join {
    grid-column: 2 / 4;
    grid-row: 2;
    padding: 24px 132px 28px 24px;
}

.tile-join::before {
    background:
        linear-gradient(90deg, rgba(21, 27, 22, .95), rgba(24, 18, 14, .86)),
        repeating-linear-gradient(90deg, #213622 0 82px, #7d4931 83px 155px, #262626 156px 248px);
    filter: blur(1px);
    transform: scale(1.02);
}

.tile-join::after {
    background: rgba(0, 0, 0, .52);
}

.tile-title,
.tile-action,
.tile-join h1,
.join-form {
    position: relative;
    z-index: 1;
}

.tile-title {
    display: block;
    padding: 21px 18px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 4px 4px 0 #000;
}

.tile-action {
    position: absolute;
    left: 20px;
    bottom: 19px;
    z-index: 1;
    max-width: calc(100% - 40px);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
    text-shadow: 3px 3px 0 #000;
}

.tile-stats .tile-action {
    font-size: 18px;
}

.tile-join h1 {
    margin: 0 0 18px;
    font-size: 27px;
    line-height: 1;
    text-shadow: 4px 4px 0 #000;
}

.join-form {
    width: min(100%, 430px);
    margin-left: 116px;
}

.join-form label {
    display: block;
    margin: 15px 0 8px;
    color: #a5a5a5;
    font-size: 25px;
    text-shadow: 3px 3px 0 #000;
}

.fake-input {
    height: 48px;
    padding: 9px 8px;
    border: 2px solid #ddd;
    background: #000;
    color: #fff;
    font-size: 25px;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    white-space: nowrap;
}

.cursor {
    display: inline-block;
    width: 14px;
    height: 4px;
    margin-left: 2px;
    background: #fff;
    vertical-align: -2px;
    animation: blink 1s steps(2, start) infinite;
}

.site-footer {
    display: flex;
    justify-content: center;
    margin-top: -260px;
    color: #fff;
    text-align: center;
}

.site-footer strong {
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
}

.not-found-wrap {
    display: grid;
    min-height: calc(100vh - 88px);
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 28px;
    place-items: center;
}

.not-found-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 34px;
    border-radius: 21px;
    background:
        linear-gradient(135deg, rgba(16, 174, 233, .24), rgba(32, 213, 79, .12)),
        var(--card);
    text-align: center;
}

.not-found-card::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(21, 27, 22, .88), rgba(24, 18, 14, .68)),
        repeating-linear-gradient(90deg, #213622 0 82px, #7d4931 83px 155px, #262626 156px 248px);
    opacity: .42;
}

.not-found-card > * {
    position: relative;
    z-index: 1;
}

.not-found-logo {
    display: grid;
    width: 148px;
    height: 148px;
    margin: 0 auto 22px;
    border-radius: 21px;
    background: var(--blue);
    place-items: center;
}

.not-found-logo img {
    width: 118px;
    height: 118px;
    object-fit: contain;
    filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .62));
}

.not-found-code {
    margin: 0 0 8px;
    color: var(--green);
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 5px 5px 0 #000;
}

.not-found-card h1 {
    margin: 0 0 12px;
    font-size: 35px;
    line-height: 1;
    text-shadow: 4px 4px 0 #000;
}

.not-found-text {
    margin: 0 auto 24px;
    max-width: 520px;
    color: #d7d7d7;
    font-size: 18px;
    line-height: 1.45;
    text-shadow: 3px 3px 0 #000;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.not-found-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--green);
    color: #071009;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform .18s ease, filter .18s ease;
}

.not-found-button:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
}

.not-found-button-secondary {
    background: var(--discord);
    color: #fff;
}

.not-found-ip {
    max-width: 310px;
    margin: 0 auto;
}

.not-found-footer {
    margin-top: 0;
    padding: 0 16px 34px;
}

.antibot-wrap {
    display: grid;
    min-height: 100vh;
    width: min(560px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    place-items: center;
}

.antibot-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 34px;
    border-radius: 21px;
    background: var(--card);
    text-align: center;
}

.antibot-card::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(135deg, rgba(16, 174, 233, .24), rgba(32, 213, 79, .14)),
        repeating-linear-gradient(90deg, #213622 0 82px, #7d4931 83px 155px, #262626 156px 248px);
    opacity: .4;
}

.antibot-card > * {
    position: relative;
    z-index: 1;
}

.antibot-card h1 {
    margin: 0 0 12px;
    font-size: 31px;
    line-height: 1;
    text-shadow: 4px 4px 0 #000;
}

.antibot-card p {
    margin: 0 auto 22px;
    max-width: 410px;
    color: #d7d7d7;
    font-size: 17px;
    line-height: 1.45;
    text-shadow: 3px 3px 0 #000;
}

.antibot-error {
    color: #ffb4b4;
}

.antibot-form {
    display: grid;
    justify-items: center;
    gap: 18px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@media (max-width: 980px) {
    .home-wrap {
        padding-top: 34px;
        padding-bottom: 64px;
    }

    .home-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .server-column,
    .tile-store,
    .tile-discord,
    .tile-stats,
    .tile-join {
        grid-column: auto;
        grid-row: auto;
    }

    .server-column {
        grid-template-rows: 230px 56px;
    }

    .tile {
        min-height: 230px;
    }

    .tile-join {
        padding-right: 24px;
    }

    .join-form {
        margin-left: 0;
    }

    .site-footer {
        margin-top: 0;
        padding: 48px 16px 24px;
    }

    .not-found-wrap {
        min-height: auto;
        padding-top: 34px;
    }

    .not-found-card {
        padding: 26px 18px;
    }

    .not-found-code {
        font-size: 56px;
    }

    .not-found-card h1 {
        font-size: 28px;
    }

    .antibot-card {
        padding: 26px 18px;
    }

    .antibot-card h1 {
        font-size: 26px;
    }
}
