:root {
    --bg: #313338;
    --header: #1e1f22;
    --card: #2b2d31;
    --card-hover: #35373c;
    --text: #f2f3f5;
    --muted: #b5bac1;

    --green: #23a55a;
    --yellow: #f0b232;
    --red: #da373c;
    --gray: #80848e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

header {
    background: var(--header);
    height: 64px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 32px;

    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.title {
    font-size: 1.5rem;
    font-weight: bold;
}

nav a {
    color: var(--text);
    text-decoration: none;
    margin-left: 24px;
}

main {
    padding: 32px;
}

.game-section {
    margin-bottom: 40px;
}

.game-title {
    margin-bottom: 18px;
    font-size: 1.4rem;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.server-card {
    background: var(--card);
    border-radius: 12px;
    padding: 18px;

    cursor: pointer;

    transition: .2s;
}

.server-card:hover {
    background: var(--card-hover);
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.server-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.server-info img {
    width: 56px;
    height: 56px;
}

.server-name {
    font-size: 1.2rem;
    font-weight: bold;
}

.status {
    padding: 6px 12px;
    border-radius: 999px;
    color: white;
    font-size: .85rem;
    font-weight: bold;
}

.running {
    background: var(--green);
}

.starting {
    background: var(--yellow);
    animation: pulse 1.6s infinite;
}

.stopped {
    background: var(--red);
}

.unknown {
    background: var(--gray);
}

.server-message {
    color: var(--muted);
    margin-top: 20px;
}

.server-updated {
    color: var(--muted);
    font-size: .85rem;
    margin-top: 10px;
}

@keyframes pulse {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: .55;
    }
}