﻿@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(1110px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 84px;
    padding-bottom: 270px;
}

.home-grid {
    display: grid;
    grid-template-columns: 286px 1fr 230px;
    grid-template-rows: 304px 304px;
    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: #232323;
    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;
}

.hover-bubble {
    position: fixed;
    z-index: 9999;
    max-width: min(240px, calc(100vw - 32px));
    padding: 9px 14px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #424549;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 8px) scale(.92);
    transform-origin: center bottom;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
    transition: opacity .16s ease, transform .16s ease;
}

.hover-bubble::after {
    position: absolute;
    left: 50%;
    bottom: -11px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-top-color: #fff;
    content: "";
    transform: translateX(-50%);
}

.hover-bubble.show {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.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;
    align-content: center;
    justify-items: center;
    gap: 10px;
    padding: 26px 18px;
    text-align: center;
    place-content: center;
}

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

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

.discord-count,
.discord-message {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
    color: #fff;
    line-height: 1.15;
    text-align: center;
    text-shadow: 3px 3px 0 #000;
}

.discord-count {
    font-size: 25px;
    font-weight: 700;
}

.discord-message {
    color: #d7d7d7;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.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 56px 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: 32px;
    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: -212px;
    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: var(--card);
    text-align: center;
}

.not-found-card::before {
    display: none;
}

.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;
}

.store-wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0 80px;
}

.store-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 34px;
}

.store-logo {
    display: grid;
    width: 142px;
    height: 112px;
    flex: 0 0 auto;
    border-radius: 21px;
    background: var(--blue);
    place-items: center;
}

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

.store-header p {
    margin: 0 0 8px;
    color: var(--green);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 3px 3px 0 #000;
}

.store-header h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1;
    text-shadow: 5px 5px 0 #000;
}

.store-empty,
.store-category {
    border-radius: 21px;
    background: var(--card);
    padding: 28px;
}

.store-empty h2,
.store-category h2 {
    margin: 0 0 12px;
    font-size: 30px;
    text-shadow: 4px 4px 0 #000;
}

.store-empty p {
    margin: 0;
    color: #d7d7d7;
    font-size: 17px;
    line-height: 1.5;
    text-shadow: 3px 3px 0 #000;
}

.store-category + .store-category {
    margin-top: 24px;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.package-card {
    overflow: hidden;
    border-radius: 16px;
    background: #151515;
}

.package-card > img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: var(--blue);
}

.package-body {
    padding: 18px;
}

.package-body h3 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.15;
    text-shadow: 3px 3px 0 #000;
}

.package-body p {
    min-height: 52px;
    margin: 0 0 18px;
    color: #d7d7d7;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

.package-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.package-footer strong {
    color: var(--green);
    font-size: 16px;
}

.package-footer form {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.package-footer .cf-turnstile {
    max-width: 100%;
    min-height: 65px;
}

.package-footer button {
    min-height: 42px;
    padding: 0 15px;
    border: 0;
    border-radius: 999px;
    background: var(--green);
    color: #071009;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.legal-shell,
.legal-shell *,
.cookie-banner,
.cookie-banner * {
    box-sizing: border-box !important;
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
}

.legal-shell {
    width: min(980px, calc(100% - 40px)) !important;
    margin: 48px auto 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(107, 241, 141, .22) !important;
    border-radius: 8px !important;
    background: #08100b !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .5) !important;
    color: #f5f5f5 !important;
    overflow: hidden !important;
}

.legal-shell::before {
    content: "" !important;
    display: block !important;
    height: 8px !important;
    background: linear-gradient(90deg, #6bf18d, #f6d75b, #4aa3ff) !important;
}

.legal-shell > * {
    margin-left: 42px !important;
    margin-right: 42px !important;
}

.legal-back {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    margin-top: 34px !important;
    margin-bottom: 24px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(107, 241, 141, .42) !important;
    border-radius: 999px !important;
    background: rgba(107, 241, 141, .09) !important;
    color: #6bf18d !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.legal-back:hover {
    background: rgba(107, 241, 141, .17) !important;
}

.legal-hero {
    display: grid !important;
    gap: 10px !important;
    margin-bottom: 28px !important;
    padding-bottom: 28px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
}

.legal-kicker {
    margin: 0 !important;
    color: #6bf18d !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

.legal-shell h1 {
    max-width: 780px !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 42px !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
}

.legal-updated {
    margin: 0 !important;
    color: #9fb2a5 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.legal-sections {
    display: grid !important;
    gap: 16px !important;
    margin-bottom: 42px !important;
}

.legal-section {
    display: grid !important;
    gap: 10px !important;
    padding: 20px !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-left: 5px solid #6bf18d !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018)) !important;
}

.legal-section h2 {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #6bf18d !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
}

.legal-section h2::before {
    display: none !important;
}

.legal-section p {
    max-width: none !important;
    margin: 0 !important;
    color: #d7d7d7 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
}

.legal-section a {
    color: #6bf18d !important;
    font-weight: 800 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

.cookie-banner {
    position: fixed !important;
    right: 18px !important;
    bottom: 18px !important;
    z-index: 50 !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 18px !important;
    width: min(760px, calc(100% - 36px)) !important;
    padding: 18px !important;
    border: 1px solid rgba(107, 241, 141, .4) !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, #0b1a0f, #071009) !important;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .56) !important;
    color: #f5f5f5 !important;
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner strong {
    display: block !important;
    margin-bottom: 6px !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
}

.cookie-banner p {
    margin: 0 !important;
    color: #d7d7d7 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.cookie-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.cookie-actions button {
    min-height: 40px !important;
    padding: 0 16px !important;
    border: 1px solid #6bf18d !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #6bf18d !important;
    cursor: pointer !important;
    font-weight: 900 !important;
}

.cookie-actions button:last-child {
    background: #6bf18d !important;
    color: #071009 !important;
}
@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes pageRise {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes tilePop {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes shimmer {
    from {
        transform: translateX(-140%) rotate(14deg);
    }
    to {
        transform: translateX(220%) rotate(14deg);
    }
}

.home-grid,
.store-wrap,
.not-found-wrap,
.legal-page {
    animation: pageRise .52s cubic-bezier(.18, .82, .25, 1) both;
}

.server-column,
.tile {
    animation: tilePop .52s cubic-bezier(.18, .82, .25, 1) both;
}

.tile-store {
    animation-delay: .06s;
}

.tile-discord {
    animation-delay: .12s;
}

.tile-stats {
    animation-delay: .18s;
}

.tile-join {
    animation-delay: .24s;
}

.server-logo-card img {
    animation: logoFloat 4.8s ease-in-out infinite;
}

.server-logo-card,
.server-address,
.tile,
.not-found-button,
.package-footer button,
.cookie-actions button {
    will-change: transform, filter;
}

.server-logo-card:hover,
.server-address:hover,
.tile:hover,
.not-found-button:hover,
.package-footer button:hover {
    transform: translateY(-5px) scale(1.015);
    filter: brightness(1.1);
}

.tile::before {
    transition: opacity .28s ease, transform .42s ease;
}

.tile:hover::before {
    opacity: .96;
    transform: scale(1.045);
}

.tile::after {
    transition: background .24s ease;
}

.tile:hover::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .18));
}

.tile-store,
.tile-stats,
.tile-join {
    isolation: isolate;
}

.tile-store .tile-title::after,
.tile-stats .tile-title::after,
.tile-join h1::after {
    position: absolute;
    top: -45%;
    bottom: -45%;
    left: -55%;
    width: 34px;
    background: rgba(255, 255, 255, .2);
    content: "";
    transform: translateX(-140%) rotate(14deg);
}

.tile:hover .tile-title::after,
.tile-join:hover h1::after {
    animation: shimmer .85s ease;
}

.server-address:active,
.tile:active,
.not-found-button:active,
.package-footer button:active {
    transform: translateY(-1px) scale(.985);
}

.cookie-banner:not([hidden]) {
    animation: tilePop .28s cubic-bezier(.18, .82, .25, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}

@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;
    }

    .store-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .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;
    }

    .legal-page {
        width: min(100% - 24px, 980px);
        margin-top: 24px;
    }

    .legal-page > * {
        margin-left: 18px;
        margin-right: 18px;
    }

    .legal-back {
        margin-top: 22px;
        margin-bottom: 20px;
    }

    .legal-page h1 {
        font-size: 30px;
    }

    .legal-page h2 {
        grid-template-columns: 5px 1fr;
        gap: 10px;
        font-size: 18px;
    }

    .legal-page p {
        font-size: 14px;
    }

    .cookie-banner {
        grid-template-columns: 1fr;
        right: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
    }

    .cookie-actions {
        justify-content: stretch;
    }

    .cookie-actions button {
        flex: 1;
    }

}
