:root {
    --bg: #050505;
    --card: rgba(255,255,255,0.05);
    --border: rgba(255,255,255,0.08);

    --accent: #ff7070;
    --accent2: #d96681;

    --green: #4ade80;
    --red: #f87171;
    --yellow: #fbbf24;

    --shadow:
        0 10px 40px rgba(0,0,0,0.35);

    --blur: blur(18px);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    height: 100%;
    font-family: 'Inter', sans-serif;
    background: #000;
    color: white;

    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    position: relative;
}

/* =========================
   GLOBAL
========================= */

.container {
    height: 100vh;
    overflow-y: auto;

    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

section {
    height: 100vh;

    scroll-snap-align: start;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 3rem;

    background: black;
    color: white;

    position: relative;

    overflow: hidden;
}

section::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(circle at top left,
        rgba(255,112,112,0.08),
        transparent 30%);
}

/* =========================
   HERO
========================= */

section#main {
    background:
        linear-gradient(
            135deg,
            #160c0f 0%,
            #070707 55%,
            #000000 100%
        );
}

.left {
    width: 50vw;

    display: inline-grid;
    position: relative;

    text-align: center;

    z-index: 2;

    animation: fadeUp 0.8s ease;
}

.right {
    width: 50vw;

    display: inline-grid;
    position: relative;

    z-index: 2;

    animation: fadeUp 1s ease;
}

h1 {
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.05;

    margin-bottom: 10px;

    font-weight: 800;
}

h1::after {
    content: "";

    display: block;

    width: 120px;
    height: 4px;

    margin: 25px auto 0;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--accent),
            var(--accent2)
        );
}

h2 {
    font-size: 30px;
    font-weight: 500;
}

section#main p {
    font-size: 16px;

    padding: 60px;

    line-height: 1.9;

    background: rgba(255,255,255,0.04);

    border: 1px solid rgba(255,255,255,0.05);

    border-radius: 24px;

    backdrop-filter: var(--blur);

    box-shadow: var(--shadow);
}

/* =========================
   SERVERS
========================= */

section#servers {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(150px, 1fr));

    gap: 10px;

    width: 100%;
    height: 100%;

    align-content: center;

    background:
        linear-gradient(
            180deg,
            #050505,
            #0a0a0a
        );
}

section.servers {
    display: block;
    position: relative;
}

.servers-wrapper {
    position: relative;
    z-index: 2;
}

h2.serverstitle {
    text-align: center;

    position: relative;

    display: block;

    margin: 0;

    padding: 50px 0 0 0;

    font-size: 48px;
    font-weight: 800;
}

.grid {
    width: 100%;
    height: 90%;

    display: grid;

    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);

    gap: 22px;

    align-content: stretch;
    justify-items: stretch;

    padding: 5vh 5vw 0 5vw;

    box-sizing: border-box;
}

/* =========================
   CARDS
========================= */

.card {
    display: flex;

    align-items: center;
    justify-content: center;

    text-decoration: none;

    color: white;

    border-radius: 22px;

    overflow: hidden;

    background: rgba(255,255,255,0.04);

    border: 1px solid rgba(255,255,255,0.08);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;

    aspect-ratio: 16 / 6;

    position: relative;

    backdrop-filter: blur(8px);

    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

h2.title {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
    pointer-events: none;
    border: none;
    font-size: 42px;
    font-weight: 700;
    background: transparent !important;
}

div.card {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    transition: 0.25s ease;
    aspect-ratio: 16 / 6;
    position: relative;
}

.card::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.75),
            transparent 55%
        );

    z-index: 1;
}

.card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.6s ease,
        filter 0.4s ease;

    position: absolute;

    inset: 0;

    z-index: 0;
}

.card:hover {
    transform: translateY(-6px);

    border-color: rgba(255,112,112,0.35);

    box-shadow:
        0 15px 50px rgba(0,0,0,0.45),
        0 0 25px rgba(255,112,112,0.08);
}

.card:hover img {
    transform: scale(1.08);

    filter:
        blur(2px)
        brightness(0.7);
}

a.card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    background: transparent;
}

/* =========================
   COPY
========================= */

p.copy {
    color: #ff9d9d;
    cursor: pointer;
    transition: 0.25s ease;
    user-select: none;
}

p.copy:hover {
    color: #fff;
    text-shadow: 0 0 12px rgba(255,112,112,0.45);
}

p.copy b {
    color: #fff;
}

b.copyicon {
    font-size: 10px;
    font-weight: 400;
    vertical-align: top;
    opacity: 0.8;
    margin-left: 4px;
}

/* =========================
   MODAL
========================= */

.modal {
    position: fixed;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    opacity: 0;

    pointer-events: none;

    transition: 0.3s ease;

    z-index: 999;

    padding: 30px;

    background: rgba(0,0,0,0.55);

    backdrop-filter: blur(8px);
}

.modal:target {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    padding: 40px;

    border-radius: 28px;

    min-width: 400px;

    color: white;

    border: 1px solid rgba(255,255,255,0.08);

    width: 1200px;

    max-height: 90vh;

    overflow-y: auto;
    overflow-x: hidden;

    background: rgba(10,10,10,0.74);

    backdrop-filter: blur(30px);

    box-shadow:
        0 20px 80px rgba(0,0,0,0.55);

    scroll-behavior: smooth;

    animation: modalIn 0.25s ease;

    position: relative;
}

.modal-content h2 {
    font-size: 42px;
    font-weight: 700;
}

.close {
    position: relative;
    top: 10px;
    right: 55px;
    float: right;
    z-index: 10000;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    color: white;
    transition: 0.2s ease;
}

.close:hover {
    background: rgba(255,80,80,0.2);
    transform: scale(1.05);
}

/* =========================
   FOOTER
========================= */

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 18px;
    z-index: 1000;
    font-size: 14px;
    color: #bdbdbd73;
}

/* =========================
   GUIDES
========================= */

.guide,
.longguide {
    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 18px;

    background: rgba(255,255,255,0.04);

    backdrop-filter: blur(12px);

    box-shadow: var(--shadow);
}

.guide {
    padding: 18px 25px;
}

.longguide {
    max-height: 500px;

    overflow: hidden;

    padding: 0;
}

.longguide-content {
    max-height: 500px;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 16px 20px;

    scrollbar-width: thin;
    scrollbar-color: #d96681 transparent;
}

/* =========================
   LINKS
========================= */

a {
    text-decoration: none;
    color: #ff7070;
    font-weight: bold;
    transition: 0.25s ease;
}

a:hover {
    color: #ffb3b3;
}

/* =========================
   CODE
========================= */

.code-block {
    border: 1px solid rgba(255,255,255,0.08);
    padding: 14px;
    border-radius: 14px;
    cursor: pointer;
    margin-top: 10px;
    background: rgba(255,255,255,0.03);
}

pre {
    margin: 0;
    white-space: pre-wrap;
}

.full-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease;
    overflow: hidden;
    opacity: 0.9;
}

.full-wrapper > pre {
    overflow: hidden;
}

.code-block.open .full-wrapper {
    grid-template-rows: 1fr;
}

.preview {
    margin-bottom: 8px;
    opacity: 0.6;
}

pre.full {
    font-family: system-ui;
    font-size: 14px;
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff7070, #d96681);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff9090, #ff6ea8);
}

/* =========================
   BACKGROUNDS
========================= */

#minecraft,
#vrising,
#projectzomboid,
#satisfactory,
#vintagestory,
#terraria,
#starbound,
#avorion {
    background-size: cover;
    background-position: center;
}

#avorion {
    background-image: url("https://img.gg.deals/5d/5d/74a8e4b2ce6f99f6a7c0e083ffc146b43270_1920xt1080_S1000.jpg");
}

#minecraft {
    background-image: url("https://i.pinimg.com/originals/f9/d3/1e/f9d31e8a803f3a4fdf61e4fe1be929dc.jpg");
}

#vrising {
    background-image: url("https://i.playground.ru/i/pix/3172682/image.jpg");
}

#projectzomboid {
    background-image: url("https://i.pinimg.com/originals/32/14/8c/32148c5d41c66e3a7dc1ba7607f2cff9.jpg");
}

#satisfactory {
    background-image: url("https://www.digiseller.ru/preview/315421/p1_3249048_06eddb36.jpg");
}

#vintagestory {
    background-image: url("https://img.itch.zone/aW1hZ2UvMjI4MzIwLzE4OTk2NTUxLnBuZw==/original/eHQFGs.png");
}

#terraria {
    background-image: url("https://avatars.mds.yandex.net/i?id=a5cd8c53ab1698c3b03cf98047f82279_l-5134426-images-thumbs&n=13");
}

#starbound {
    background-image: url("https://images.stopgame.ru/news/2024/10/25/l7Np0VHPc.jpg");
}

#minecraft::before,
#vrising::before,
#projectzomboid::before,
#satisfactory::before,
#vintagestory::before,
#terraria::before,
#starbound::before,
#avorion::before {
    content: "";

    position: absolute;
    inset: 0;

    backdrop-filter: blur(4px);

    background: rgba(0,0,0,0.55);
}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 1000px) {

    section#main {
        flex-direction: column;
        justify-content: center;
        padding: 30px;
    }

    .left,
    .right {
        width: 100%;
    }

    section#main p {
        padding: 30px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    h2.card {
        font-size: 34px;
    }

    .modal-content {
        width: 100%;
        min-width: unset;
        padding: 24px;
    }
}

.modalwrapper {
    margin: 0;
    padding: 0;
    position: relative;
}