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

:root {
    --bg-page: #f5f5f7;
    --bg-card: #ffffff;
    --bg-subtle: #f1f3f5;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.12);
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-soft: #e5e7eb;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.06);
}

html,
body {
    height: 100%;
}


body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Шапка */

.header {
    margin-bottom: 2.5rem;
}

.server-logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.header h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 650;
    letter-spacing: -0.03em;
}

/* Карточка статуса */

.status-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    padding: 1.8rem 1.7rem;
    margin-bottom: 1.8rem;
    transition: transform 0.16s ease-out, box-shadow 0.16s ease-out;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.08);
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
}

.status-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.status-light {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.status-online .status-light {
    background: #16a34a;
}

.status-offline .status-light {
    background: #ef4444;
}

/* Информация о сервере */

.server-info {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1.4rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.7rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-row:last-child {
    border-bottom: none;
}

.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.value {
    font-size: 1rem;
    font-weight: 600;
}

.motd {
    font-size: 0.95rem;
    font-weight: 400;
    color: #4b5563 !important;
}

/* Счётчик игроков 1/20 */

.players-count {
    letter-spacing: 0.03em;
}

/* Список игроков */

.players-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.6rem;
    margin-top: 0.3rem;
}

.player-avatar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: #111827;
}

.player-avatar::before {
    content: "";
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    background: url("../assets/player.png");
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4);
}

.player-avatar span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Кнопка скачивания */

.download-section {
    text-align: center;
    margin: 2.2rem 0 1.4rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: #fff;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
    transition: background 0.15s ease-out, transform 0.1s ease-out,
                box-shadow 0.15s ease-out, border-color 0.15s ease-out;
}

.download-btn:hover {
    background: var(--accent-soft);
    border-color: rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.18);
}

.btn-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* IP сервера */

.server-ip {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.ip-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.ip-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.server-ip code {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--bg-subtle);
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
        Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
}

.copy-btn {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease-out, border-color 0.15s ease-out;
}

.copy-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.plain-link {
    color: inherit;
    text-decoration: none;
}

.plain-link:hover {
text-decoration: none;
}

/* Футер */

.footer {
    margin-top: auto;
    padding-top: 2.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Адаптив */

@media (max-width: 768px) {
    .container {
        padding: 1.8rem 1rem 1.4rem;
    }

    .status-card {
        padding: 1.5rem 1.2rem;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .ip-item {
        flex-direction: column;
        gap: 0.6rem;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}
