:root {
    --bg-dark: #0b0b0b;
    --portal-1: #6f2dbd;
    --portal-2: #b55cf7;
    --emerald-1: #17a35a;
    --emerald-2: #2fd67b;
    --accent: #ffd166;
    --card-bg: #1b1b1b;
}

@font-face {
    font-family: "Minecraft";
    src: url("../fonts/minecraft.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* Сброс */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

#admin-item {
    display: none;
    color: rgba(255, 0, 0, 0.308);
}

html,
body {
    height: 100%
}

body {
    background: linear-gradient(145deg, #121212, #1e1e1e);
    color: #e6e6e6;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Press Start 2P", monospace;
    overflow-x: hidden;
}

/* Canvas фон */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    /* перемещаем под контент */
    display: block;
}

/* Сетка блоков */
.block-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(transparent 0 94%, rgba(255, 255, 255, 0.01) 95%),
        linear-gradient(90deg, transparent 0 94%, rgba(255, 255, 255, 0.01) 95%);
    background-size: 64px 64px, 64px 64px;
    opacity: 0.06;
    z-index: 0;
    pointer-events: none;
}

/* Интро */
.intro {
    position: relative;
    z-index: 3;
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

/* Занимает весь экран */
.intro-screen {
    height: 100vh;
    /* весь экран */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}



/* Добавим плавный скролл */
html {
    scroll-behavior: smooth;
}

/* Заголовок */
h1.title {
    font-family: 'Press Start 2P', monospace;
    font-size: 50px;
    letter-spacing: 2px;
    color: #00ccff;
    background: linear-gradient(to right, #00ffcc, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.2);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    /* background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0.01)); */
    /* box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.15); */
}

.title.glow {
    /* box-shadow: 0 0 18px rgba(181, 92, 247, 0.12), 0 0 40px rgba(111, 45, 189, 0.08), 0 12px 24px rgba(0, 0, 0, 0.6); */
    /* border: 1px solid rgba(255, 255, 255, 0.03); */
}

.subtitle {
    font-size: 13px;
    color: #bfbfbf;
    margin-bottom: 22px;
    opacity: 0.9;
}

/* Кнопка */
.download-btn {
    background: linear-gradient(to right, #00ffcc, #0099ff);
    border: none;
    color: #000;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Minecraft';
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.5);
}

.download-btn:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.55);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 650ms linear;
    background: rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0
    }
}

/* Контент */
/* Чтобы контент начинался ниже */
.content {
    margin-top: 30px;
    margin-left: 50px;
    margin-right: 50px;
}

.section-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    margin-bottom: 18px;
    color: #f5f5f5;
}

.servers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

/* Карточка */
.server-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 18px;
    border-radius: 10px;
    min-height: 140px;
    transform: scale(1);
    opacity: 1;
    transition: transform 0.4s cubic-bezier(.25, .8, .25, 1), box-shadow 0.4s ease;
    position: relative;
    cursor: default;
}

.server-card:hover {
    transform: scale(1.04);
}

.server-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.server-card .header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

/* Сундук */
.server-logo {
    width: 56px;
    height: 56px;
    position: relative;
    flex: 0 0 56px;
    perspective: 800px;
}

.server-logo img {
    width: 100%;
    height: 100%;
    padding: 10px;
    background: linear-gradient(180deg, #282828, #323232);
    border-radius: 6px;
    box-shadow: inset 0 -6px 0 rgba(0, 225, 255, 0.25);
}

.server-card:hover .chest .lid {
    transform: rotateX(38deg) translateY(-6px);
}

.server-info h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.server-info p {
    font-size: 12px;
    color: #c5c5c5;
    line-height: 1.25;
}

@keyframes blink {

    0%,
    40% {
        opacity: 0.18
    }

    60% {
        opacity: 1
    }

    100% {
        opacity: 0.2
    }
}

footer {
    padding: 40px 24px;
    text-align: center;
    color: #9a9a9a;
    z-index: 3;
    position: relative,
}

a.link {
    color: var(--accent);
    text-decoration: underline
}

@media (max-width: 580px) {
    h1.title {
        font-size: 40px;
    }
}

@media (max-width: 425px) {
    h1.title {
        font-size: 30px;
    }
}