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

body {
    background: #0f172a;
    color: #e2e8f0;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* faint background image (tweak opacity to taste) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('/static/logo.webp') center center / cover no-repeat;
    opacity: 0.15;
    z-index: -1;
}

.card {
    background: #1e293b;
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 700px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.ip {
    font-size: 3rem;
    font-weight: bold;
    color: #38bdf8;
    margin: 30px 0 6px;
    word-break: break-word;
    cursor: pointer;
}

.ip:hover {
    color: #7dd3fc;
}

.copyhint {
    color: #64748b;
    font-size: .85rem;
    height: 1.1em;
    margin-bottom: 24px;
    transition: color .15s;
}

.copyhint.copied {
    color: #86efac;
}

.status {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.status.online {
    background: #14532d;
    color: #86efac;
}

.status.offline {
    background: #4c1d1d;
    color: #fca5a5;
}

.uptime {
    color: #94a3b8;
    font-size: .95rem;
    margin-bottom: 10px;
}

/* secondary status caption: grouped tight under the uptime, with room before the IP section */
.serverversion {
    color: #64748b;
    font-size: .85rem;
    margin-bottom: 26px;
}

.footer {
    color: #94a3b8;
    font-size: .9rem;
    margin-top: 25px;
}

.version {
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (max-width: 600px) {
    .ip {
        font-size: 2rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}
