:root {
    --bg: #0f111a;
    --card: #161b22;
    --text: #c9d1d9;
    --muted: #8b949e;
    --accent: #58a6ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "JetBrains Mono", monospace;
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    background: var(--card);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    padding: 0.25rem 0.35rem;
    margin: -0.25rem -0.35rem;
}

.logo:visited,
.logo:hover,
.logo:focus {
    text-decoration: none;
}

.logo::after {
    content: "_";
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    width: 2rem;
    height: 2rem;
    line-height: 1;
    text-align: center;
    color: var(--accent);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav {
        flex-wrap: nowrap;
    }

    .hamburger {
        display: block;
        flex-shrink: 0;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 2rem;
        width: min(260px, calc(100% - 4rem));
        background: var(--card);
        border: 1px solid #2d333b;
        border-radius: 10px;
        padding: 0.4rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        margin-top: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease;
    }

    .nav-links.active {
        max-height: 320px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links a {
        margin: 0.6rem 0;
    }
}

.container {
    width: 100%;
    max-width: 860px;
    margin: 2.5rem auto 0;
    padding: 0 1.25rem;
}

.card {
    background: var(--card);
    border: 1px solid #2d333b;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

h1 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 2rem;
}

.warning-card {
    border: 1px solid #7f1d1d;
    background: #2a1212;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    color: #fecaca;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.warning-card a,
.warning-card a:visited {
    color: #fda4af;
}

.row {
    display: flex;
    justify-content: space-between;
    margin: 0.65rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.row > div {
    flex: 1 1 0;
    min-width: 0;
}

.row > div:last-child {
    text-align: right;
}

.label {
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.online { color: #4ade80; }
.offline { color: #f87171; }
.warn { color: #facc15; }

.players {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #2d333b;
}

.player {
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex: 0 0 24px;
    image-rendering: pixelated;
}

.button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: none;
    background: #1f6feb;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.button:hover {
    filter: brightness(1.1);
}

.copy-ip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    padding: 0.1rem 0.25rem;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
    color: var(--text);
}

.copy-ip:hover {
    background: #1f2630;
}

.copy-ip::after {
    content: "click to copy";
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0.25rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
    color: #cfcfcf;
    background: #121218;
    border: 1px solid #2d333b;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(-2px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.copy-ip:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.card a,
.card a:visited {
    color: #fff;
}

.muted {
    opacity: 0.6;
    font-size: 0.9rem;
    margin-top: 0.8rem;
}

footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: var(--muted);
}

#site-footer {
    margin-top: auto;
}

footer a {
    color: #8b949e;
}
.v {
    color: red;
}

@media (max-width: 768px) {
    .row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .row > div:last-child {
        text-align: left;
    }
}