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

body {
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: "Courier New", Courier, monospace;
    min-height: 100vh;
    line-height: 1.6;
}

nav {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 2rem;
    background: #111;
    border-bottom: 1px solid #222;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

nav a:hover,
nav a.active {
    color: #7fff7f;
}

nav a.donate {
    color: #ff7f7f;
}

nav a.donate:hover {
    color: #ff9f9f;
}

.status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    line-height: 1;
}

.status-text {
    position: relative;
    top: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
}

.status-dot.online {
    background: #7fff7f;
    box-shadow: 0 0 6px #7fff7f;
}

.status-dot.offline {
    background: #ff4f4f;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 15vh;
}

.logo pre {
    font-size: 0.6rem;
    line-height: 1;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    display: inline-block;
    text-align: left;
}

.logo .s5 {
    color: rgb(191, 255, 191);
}
.logo .s4 {
    color: rgb(167, 223, 167);
}
.logo .s3 {
    color: rgb(143, 191, 143);
}
.logo .s2 {
    color: rgb(119, 159, 119);
}
.logo .s1 {
    color: rgb(95, 127, 95);
}
.logo .s0 {
    color: rgb(71, 95, 71);
}

.logo .stair {
    display: block;
    padding-top: 0.6em;
}

h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2rem;
    letter-spacing: 0.3em;
}

.description {
    color: #888;
    max-width: 500px;
    margin: 0 auto 2rem;
    text-align: left;
}

.connect {
    margin-top: 2rem;
}

.connect code {
    display: inline-block;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    color: #7fff7f;
    border-radius: 4px;
    user-select: all;
    cursor: pointer;
}

.connect code:hover {
    border-color: #7fff7f;
}

/* Leaderboards */
#leaderboard-loading,
#leaderboard-error {
    color: #666;
    padding: 2rem;
}

#leaderboard-error {
    color: #ff6f6f;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    text-align: left;
}

th {
    color: #7fff7f;
    border-bottom: 1px solid #333;
    padding: 0.75rem;
    font-weight: normal;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid #1a1a1a;
}

th:last-child,
td:last-child {
    text-align: right;
}

tr:hover td {
    background: #111;
}

/* Changelog */
.changelog {
    text-align: left;
    padding-top: 3rem;
}

.changelog h1 {
    text-align: left;
    letter-spacing: normal;
    margin-bottom: 2rem;
}

.changelog-entry {
    text-align: left;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #222;
}

.changelog-entry:last-child {
    border-bottom: none;
}

.changelog-entry h2 {
    font-size: 1.1rem;
    color: #7fff7f;
    margin-bottom: 1rem;
}

.changelog-entry .date {
    color: #666;
    font-weight: normal;
    font-size: 0.9rem;
}

.changelog-entry ul {
    list-style: none;
    padding-left: 1rem;
}

.changelog-entry li {
    color: #aaa;
    margin-bottom: 0.5rem;
}

.changelog-entry li::before {
    content: "- ";
    color: #555;
}

/* Privacy Policy */
.privacy-content {
    text-align: left;
}

.privacy-content h2 {
    font-size: 1.1rem;
    color: #7fff7f;
    margin: 2rem 0 1rem;
}

.privacy-content h2:first-child {
    margin-top: 0;
}

.privacy-content p {
    color: #aaa;
    margin-bottom: 1rem;
}

.privacy-content ul {
    list-style: none;
    padding-left: 1rem;
    color: #aaa;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

.privacy-content a {
    color: #7fff7f;
}

/* Help */
.help-content {
    text-align: left;
}

.help-content h2 {
    font-size: 1.1rem;
    color: #7fff7f;
    margin: 2rem 0 1rem;
}

.help-content h2:first-child {
    margin-top: 0;
}

.help-content p {
    color: #aaa;
    margin-bottom: 1rem;
}

.help-content code {
    display: inline-block;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 0.5rem 1rem;
    color: #7fff7f;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.help-content a {
    color: #7fff7f;
}

/* Rules */
.rules-content {
    text-align: left;
}

.rules-content h2 {
    font-size: 1.1rem;
    color: #7fff7f;
    margin: 2rem 0 1rem;
}

.rules-content h2:first-child {
    margin-top: 0;
}

.rules-content p {
    color: #aaa;
    margin-bottom: 1rem;
}

.rules-content a {
    color: #7fff7f;
}

@media (max-width: 600px) {
    nav {
        justify-content: center;
    }

    .status {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .logo pre {
        font-size: 0.4rem;
    }
}
