/* THEMES */
:root {
    --accent: #2ecc71;
}

body[data-theme="dark"] {
    --bg: #0f1115;
    --card: #171a21;
    --text: #e6e6e6;
    --muted: #9aa0a6;
}

body[data-theme="light"] {
    --bg: #f4f6f8;
    --card: #ffffff;
    --text: #1a1a1a;
    --muted: #555;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    transition: background 0.3s, color 0.3s;
}

/* NAVBAR */
.navbar {
    height: 64px;
    background: var(--card);
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
}

.nav-logo {
    font-weight: 700;
    color: var(--accent);
}

.nav-right button {
    background: none;
    border: none;
    margin-left: 14px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--muted);
}

.nav-right button.active {
    color: var(--accent);
}

.theme-btn {
    font-size: 1.1rem;
}

/* VIEWPORT FIX */
.viewport {
    height: calc(100vh - 64px);
    overflow: hidden;
    margin-top: 64px;
}

.page-container {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(.4,0,.2,1);
}

.page {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 50px;
}

.page-container.show-rules {
    transform: translateX(-50%);
}

/* HOME */
.hero h1 {
    font-size: 3rem;
    color: var(--accent);
}

.subtitle {
    color: var(--muted);
    margin-top: 10px;
}

.home-content {
    max-width: 800px;
    margin-top: 30px;
}

.home-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

/* RULES */
.page-title {
    color: var(--accent);
    font-size: 2.4rem;
}

.updated {
    color: var(--muted);
    margin-bottom: 30px;
}

.rule-section {
    background: var(--card);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.rule-section h2 {
    color: var(--accent);
    margin-bottom: 12px;
}

.rule-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 16px;
    color: var(--muted);
    border-top: 1px solid #222;
}

/* MOBILE */
@media (max-width: 768px) {
    .page {
        padding: 30px 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}
