* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background-color: #0f1115;
    color: #e6e6e6;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #0c0e12;
    border-bottom: 1px solid #1f232d;
}

.navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #111;
    z-index: 1000;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle img {
    width: 32px;
    height: auto;
    display: block;
}

@media (max-width: 524px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: relative;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #111; 
        
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .nav-links.open {
        max-height: 300px;
    }

    .nav-links a {
        padding: 12px 20px;
        text-decoration: none;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

.logo {
    font-weight: bold;
}

.logo img {
    width: clamp(27px, 12vw, 64px);
    height: clamp(27px, 12vw, 64px);
    image-rendering: pixelated;
    transition: 0.3s ease;
}

.logo img:hover {
    filter: drop-shadow(0 0 8px #5cff9d);
    transform: scale(1.05);
}

.logo span {
    color: #5cff9d;
}

.navbar nav a {
    color: #ccc;
    text-decoration: none;
    margin-left: 25px;
    transition: 0.2s;
}

.navbar nav a:hover {
    color: #5cff9d;
}

/* MESSAGE */
.message {
    padding: 10px 20px;
    text-align: center;
    text-shadow: 0 0 5px rgb(211, 40, 10);
    color: #5cff9d;
    font-weight: 600;
}

/* HERO */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: radial-gradient(circle at top, #1a1f2b, #0f1115);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    color: #b0b0b0;
    margin-bottom: 30px;
}

@keyframes float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.hero-banner {
    max-width: 600px;
    width: 90%;
    margin-bottom: 25px;
    image-rendering: pixelated;
    animation: float 4s ease-in-out infinite;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
}

.hero-stats span {
    display: block;
    font-size: 14px;
    color: #5cff9d;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    margin: 0 10px;
    padding: 12px 26px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.4s;
}

.btn.primary {
    background: #5cff9d;
    color: #0f1115;
}
.btn.primary:hover {
    background: #2a3b5f;
}

.btn.secondary {
    border: 1px solid #5cff9d;
    color: #5cff9d;
}
.btn.secondary:hover {
    background: #2a3b5f;
    color: #5cff9d;
}
.btn.red {
    border: 1px solid #ff4c4c;
    color: #ff4c4c;
}
.btn.red:hover {
    background: #2a3b5f;
    color: #ff4c4c;
}
.btn.blue {
    border: 1px solid #00ccff;
    color: #00ccff;
}
.btn.blue:hover {
    background: #2a3b5f;
    color: #00ccff;
}


/* FEATURES */
.features {
    padding: 80px 60px;
}

.features h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
}

.feature {
    background: #141824;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #1f2330;
}

.feature h3 {
    margin-bottom: 10px;
    color: #5cff9d;
}

.joinus {
    padding: 40px 50px;
    text-align: center;
}
.joinus h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 16px;
}
.joinus h3 {
    font-size: 22px;
    margin-bottom: 8px;
}
.joinus h3 img {
    width: 40px;
    margin-left: 6px;
    image-rendering: pixelated;
}
.joinus h4 {
    font-size: 24px;
    margin-bottom: 6px;
}
.joinus h4 a {
    color: #5cff9d;
    text-decoration: none;
}
.joinus h4 img {
    width: 50px;
    margin-left: 6px;
    image-rendering: pixelated;
}
.joinus p {
    max-width: 600px;
    margin: 0 auto 20px;
    margin-top: 15px;
    color: #b0b0b0;
    line-height: 1.6;
}
.joinus span {
    font-weight: 600;
}
.joinus .copy-instruction {
    color: #7f8cab;
    font-size: 14px;
    margin-bottom: 10px;
    padding: 10px 20px 10px 20px;
}

.joinus .ip-address {
    display: inline-block;
    padding: 10px 40px;
    background: #101a2a;
    border: 1px solid #243352;
    color: #5cff9d;
    font-size: 18px;
    border-radius: 8px;
}

.mod-list {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.mod-list-item {
    background: #141824;
    padding: 15px 20px;
    border-left: 4px solid #5cff9d;
}   

.joinus a {
    color: #5cff9d;
    text-decoration: none;
    font-weight: 600;
}

.joinus a:hover {
    text-decoration: underline;
}


.more {
    padding: 40px 240px;
    text-align: center;
}
.more h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
}
.more p {
    max-width: 600px;
    margin: 0 auto 30px;
    margin-top: 30px;
    color: #b0b0b0;
    line-height: 1.6;
}
.more a {
    color: #5cff9d;
    text-decoration: none;
    font-weight: 600;
}
.more a:hover {
    text-decoration: underline;
}
.more .ul {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}
.more .ul li {
    background: #141824;
    padding: 15px 20px;
    border-left: 4px solid #5cff9d;
    margin-bottom: 15px;
}

/* RULES */
.rules {
    padding: 25px 30px;
}

.rules-content {
    max-width: 900px;
    margin: 0 auto;
}

.rules-item {
    margin-bottom: 20px;
}   

.rules h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
}

.rules-item h3 {
    color: #5cff9d;
    font-size: 22px;
    margin-bottom: 8px;
}

.rules-item h4 {
    color: #10f7f7e8;
    font-size: 16px;
    margin-bottom: 6px;
}

.rules-item p {
    color: #b0b0b0;
    line-height: 1.6;
}


.rules ul {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.rules ul li {
    background: #141824;
    padding: 15px 20px;
    border-left: 4px solid #5cff9d;
    margin-bottom: 15px;
}

.players {
    padding: 25px 20px;
}
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 10px;
}

/* CARD */
.player-card {
    position: relative;
    display: flex;
    gap: 16px;
    align-items: center;

    padding: 12px;
    border-radius: 14px;

    background: #141824;
    border-left: 4px solid #5cff9d;
    transition: 0.2s;
}

.player-card:hover {
    transform: translateY(-3px);
    border-color: #2a3b5f;
}

/* AVATAR */
.avatar {
    width: clamp(43px, 12vw, 72px);
    height: clamp(43px, 12vw, 72px);
    border-radius: 10px;
    object-fit: cover;
}


/* INFO */
.player-info {
    flex: 1;
}

/* PAVLE TOHLE JE PRO CLASSU NAME :D */
.name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.stats {
    font-size: 14px;
    color: #9fb3d9;
    line-height: 1.5;
}

/* PLAYTIME BADGE */
.playtime {
    position: absolute;
    right: 16px;
    top: 16px;
    text-align: right;
}

.playtime span {
    font-size: 12px;
    color: #7f8cab;
    display: block;
}
.playtime b {
    display: inline-block;
    margin-top: 5px;
    padding: 6px 8px;
    border-radius: 8px;

    background: #101a2a;
    border: 1px solid #243352;

    color: #5cff9d;
    font-size: 14px;
}

.is-online {
    font-size: 14px;
    color: #7f8cab;
}

/* stepped on blocks BADGE */
.block-stats {
    position: absolute;
    right: 16px;
    bottom: 16px;
    text-align: right;
}

.block-stats span {
    font-size: 10px;
    color: #7f8cab;
    display: block;
}

.block-stats b {
    display: inline-block;
    margin-top: 5px;
    padding: 6px 8px;
    border-radius: 8px;

    background: #101a2a;
    border: 1px solid #243352;

    color: #5cff9d;
    font-size: 12px;
}

/* STATS */
.vp-stats {
    min-height: calc(100vh - 160px);
    padding: 70px 20px 90px;
    position: relative;
    overflow: hidden;
}

.vp-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 20%, rgba(120, 150, 100, .08), transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(80, 110, 150, .08), transparent 32%);
}

.vp-stats-container {
    width: min(1100px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.vp-stats-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

.vp-stats-title {
    margin: 0 0 8px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1;
    letter-spacing: -1px;
}

.vp-stats-description {
    margin: 0;
    color: rgba(255,255,255,.62);
    font-size: 15px;
}

.vp-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.vp-stats-card {
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        rgba(255,255,255,.055),
        rgba(255,255,255,.018)
    );
    box-shadow: 0 15px 45px rgba(0,0,0,.12);
    backdrop-filter: blur(8px);

    background: #141824;
    border-left: 4px solid #5cff9d;
    transition: 0.2s;
}

.vp-stats-card-header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px 18px 15px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.vp-stat-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(110, 150, 70, .13);
    border: 1px solid rgba(140, 180, 90, .16);
    font-size: 20px;
}

.vp-card-title {
    margin: 0;
    font-size: 16px;
}

.vp-card-subtitle {
    margin: 3px 0 0;
    color: rgba(255,255,255,.42);
    font-size: 12px;
}

.vp-stats-list {
    padding: 0;
}

.vp-stats-row {
    min-height: 58px;
    display: grid;
    grid-template-columns: 32px 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255,255,255,.055);
    transition: background .15s ease, transform .15s ease;
}

.vp-stats-row:last-child {
    border-bottom: 0;
}

.vp-stats-row:hover {
    background: rgba(255,255,255,.035);
}

.vp-rank {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.06);
    color: rgba(255,255,255,.58);
    font-size: 11px;
    font-weight: 700;
}

.vp-rank-1 {
    color: #f1cc35;
    background: rgba(241,204,53,.10);
    border-color: rgba(241,204,53,.20);
}

.vp-rank-2 {
    color: #c8ced5;
    background: rgba(200,206,213,.09);
    border-color: rgba(200,206,213,.15);
}

.vp-rank-3 {
    color: #c98552;
    background: rgba(201,133,82,.10);
    border-color: rgba(201,133,82,.18);
}

.vp-player-head {
    width: 36px;
    height: 36px;
    image-rendering: pixelated;
    border-radius: 7px;
    background: rgba(255,255,255,.04);
    object-fit: cover;
}

.vp-player {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vp-player-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
}

.vp-online {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #61c77a;
    box-shadow: 0 0 8px rgba(97,199,122,.55);
    flex: 0 0 auto;
}

.vp-value {
    padding-left: 10px;
    text-align: right;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
}

.vp-empty {
    padding: 30px 18px;
    color: rgba(255,255,255,.45);
    text-align: center;
    font-size: 13px;
}

@media (max-width: 760px) {
    .vp-stats {
        padding-top: 45px;
    }

    .vp-stats-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .vp-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .vp-stats-row {
        grid-template-columns: 28px 34px minmax(0, 1fr) auto;
        gap: 7px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .vp-player-head {
        width: 32px;
        height: 32px;
    }

    .vp-value {
        font-size: 12px;
    }
}
/* FOOTER */
footer {
    text-align: center;
    border-top: 1px solid #1f2330;
    color: #ffffff;
    background-image: url(/assets/images/light_dirt_background.png);
    background-repeat: repeat;
    background-size: 64px;
    border-top: 1px solid hsla(0, 0%, 100%, .05);
    display: flex;
    flex-direction: column;
    gap: 4px;
    image-rendering: pixelated;
    isolation: isolate;
    min-height: 150px;
    padding-block: 2rem;
}

footer a {
    color: #5cff9d;
    text-decoration: none;
}