/* =========================
   global
   ========================= */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: #000;
    color: #eaeaea;
    font-family: "Inter", system-ui, sans-serif;
}

* {
    font-family: inherit;
}

/* =========================
   navigation
   ========================= */

.topbar {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    background: rgba(15,15,15,.25);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    letter-spacing: .5px;
}

.brand img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 0 25px rgba(255,255,255,.15);
}

.links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.links a {
    color: #bbb;
    text-decoration: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: .2s;
}

.links a:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: drop-shadow(0 0 10px rgba(255,255,255,.4));
}

/* =========================
   layout
   ========================= */

.container,
.topbar {
    position: relative;
    z-index: 2;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    min-height: calc(100vh - 70px);
}

.note,
.label,
.footer-label,
.card-title {
    color: #888;
    letter-spacing: 1.5px;
}

.note {
    font-size: 12px;
    margin: 6px 0;
}

.label,
.footer-label {
    font-size: 10px;
}

.card-title {
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* =========================
   cards
   ========================= */

.text {
    width: 100%;
    color: #cfcfcf;
    background: rgba(10,10,10,.4);
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(255,255,255,.18);
}

.text h1 {
    margin-top: 0;
    color: #fff;
    font-size: 32px;
}

.text h2 {
    font-size: 24px;
}

.text h4 {
    font-size: 16px;
}

.badge {
    padding: 8px 14px;
    background: #11111188;
    border: 1px solid #333;
    border-radius: 999px;
    color: #aaa;
    font-size: 14px;
}

.info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.status-header {
    max-width: 1100px;
    width: 100%;
    padding: 16px;
    margin-bottom: 25px;
    background: #fff;
    color: #000;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 0 25px rgba(255,255,255,.25);
}

.card {
    max-width: 1100px;
    width: 100%;
    padding: 25px;
    margin-bottom: 20px;
    background: rgba(10,10,10,.4);
    border: 1px solid #222;
    border-radius: 12px;
    color: #cfcfcf;
    font-size: 17px;
    line-height: 1.6;
    box-shadow: 0 0 25px rgba(255,255,255,.12);
}

.online {
    color: #fff;
}

.offline {
    color: #575757;
}

/* =========================
   media
   ========================= */

iframe {
    width: 100%;
    max-width: 1000px;
    height: 600px;
    border: none;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 0 25px rgba(255,255,255,.25);
}

.side-image {
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    border-radius: 20px;
}

.side-image img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    filter: brightness(60%);
}

/* =========================
   backgrounds
   ========================= */

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(0,0,0,.45);
    pointer-events: none;
}

/* about / whoami */

.bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: blur(9px) saturate(1.2);
}

/* online.twin */

.bg.game-bg {
    inset: -50%;
    background:
        radial-gradient(circle at 20% 30%, rgba(0,0,0,.35), transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(0,0,0,.25), transparent 45%),
        radial-gradient(circle at 40% 80%, rgba(0,145,12,.4), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0,150,37,.6), transparent 40%);
    filter: blur(40px) saturate(1.2);
    animation: floatbg 60s linear infinite;
}

/* scratch vibe */

.bg.oldgame-bg {
    inset: -50%;
    background:
        radial-gradient(circle at 20% 30%, rgba(0,0,0,.35), transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(0,0,0,.25), transparent 45%),
        radial-gradient(circle at 40% 80%, rgba(145,0,0,.4), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(150,0,0,.6), transparent 40%);
    filter: blur(40px) saturate(1.2);
    animation: floatbg 60s linear infinite;
}

/* status */

.bg.status-bg {
    --ws1: rgba(0,0,0,.4);
    --ws2: rgba(0,0,0,.4);
    --ws3: rgba(0,0,0,.4);
    --ws4: rgba(0,0,0,.4);

    inset: -50%;
    background:
        radial-gradient(circle at 20% 35%, var(--ws1), transparent 40%),
        radial-gradient(circle at 80% 35%, var(--ws2), transparent 40%),
        radial-gradient(circle at 50% 75%, var(--ws3), transparent 40%),
        radial-gradient(circle at 50% 75%, var(--ws4), transparent 40%);
    filter: blur(12px) saturate(1.2);
    animation: floatbg-status 20s linear infinite;
}

.bg.game-bg + .overlay,
.bg.oldgame-bg + .overlay,
.bg.status-bg + .overlay {
    backdrop-filter: blur(8px);
}

@keyframes floatbg {
    0% {
        transform: rotate(0deg) scale(.75);
    }
    50% {
        transform: rotate(180deg) scale(2);
    }
    100% {
        transform: rotate(360deg) scale(.75);
    }
}

@keyframes floatbg-status {
    0% {
        transform: rotate(0deg) scale(.9);
    }
    50% {
        transform: rotate(180deg) scale(1.5);
    }
    100% {
        transform: rotate(360deg) scale(.9);
    }
}

/* =========================
   page-specific layouts
   ========================= */

.about-page .container {
    flex-direction: row;
    justify-content: center;
    gap: 50px;
    padding: 0 20px 30px;
}

.about-page .text {
    max-width: 800px;
    margin-top: 25px;
    padding: 25px;
    font-size: 18px;
    line-height: 1.6;
    border: 6px solid #222;
    backdrop-filter: blur(15px);
}

.game-page .text,
.oldgame-page .text {
    max-width: 1200px;
    margin: 25px 0;
    padding: 15px;
    text-align: center;
    font-size: 20px;
    line-height: 1.5;
    border: 1px solid #222;
}

.whoami-page .container {
    flex-direction: row;
    justify-content: center;
}

.whoami-page .text {
    max-width: 800px;
    margin-top: 25px;
    padding: 25px;
    font-size: 18px;
    line-height: 1.6;
    border: 6px solid #222;
    backdrop-filter: blur(15px);
}

/* =========================
   responsive
   ========================= */

@media (max-width: 600px) {
    .link-text {
        display: none;
    }

    .links a {
        font-size: 18px;
    }

    .text {
        font-size: 15px;
        padding: 20px;
    }
}

@media (max-width: 800px) {
    .container,
    .about-page .container,
    .whoami-page .container {
        flex-direction: column;
    }

    .side-image img {
        width: 250px;
        height: 250px;
    }
}