:root {
    --primary: #6f78e6;
    --primary-dark: #5a62cf;
    --bg: #f6f7fb;
    --text: #1d2433;
    --muted: #5b6476;
    --card: #ffffff;
    --surface: #ffffff;
    --border: #e7e9f1;
}

body[data-theme="dark"] {
    --primary: #8e97ff;
    --primary-dark: #7a83f1;
    --bg: #0f1220;
    --text: #e6e9f5;
    --muted: #a3acc7;
    --card: #171b2d;
    --surface: #121527;
    --border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(20, 30, 50, 0.05);
}

.topbar-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 42px;
    height: 42px;
}

.title {
    font-weight: 700;
}

.tagline {
    font-size: 12px;
    color: var(--muted);
}

.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    position: relative;
}

.nav a.active {
    color: var(--primary);
}

.nav a.active::after,
.nav a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 999px;
}

.nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    display: none;
    min-width: 220px;
    box-shadow: 0 18px 34px rgba(20, 30, 50, 0.12);
    z-index: 200;
}

.nav-item:hover .nav-dropdown,
.nav-dropdown:hover {
    display: grid;
    gap: 6px;
}

.nav-dropdown a {
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.nav-dropdown a:hover {
    background: rgba(111, 120, 230, 0.12);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(20, 30, 50, 0.12);
}

.theme-icon {
    font-size: 14px;
}

.steam-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.steam-user.profile-link {
    text-decoration: none;
    color: inherit;
    padding: 6px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.steam-user.profile-link:hover {
    background: rgba(111, 120, 230, 0.12);
    border-color: rgba(111, 120, 230, 0.3);
}

.steam-user img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(20, 30, 50, 0.2);
}

.hero {
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.15), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2), transparent 35%),
        linear-gradient(90deg, #6b75e1 0%, #7c55a4 100%);
    color: #fff;
    padding: 90px 0;
    min-height: 380px;
}

body[data-theme="dark"] .hero {
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 35%),
        linear-gradient(90deg, #3a46a8 0%, #5a3a7a 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 12px;
}

.hero p {
    color: #eef0ff;
    margin-bottom: 24px;
    max-width: 520px;
}

.cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    background: #fff;
    color: var(--primary-dark);
    border: 0;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 12px 24px rgba(20, 30, 50, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn.small {
    padding: 8px 14px;
    font-size: 13px;
    box-shadow: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(20, 30, 50, 0.2);
}

.hero-card {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    padding: 26px;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(20, 30, 50, 0.22);
}

.card-title {
    font-weight: 700;
    margin-bottom: 12px;
}

.status {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 18px;
}

.status.online {
    color: #d4ffea;
}

.status.offline {
    color: #ffe2e2;
}

.status-details {
    font-size: 14px;
    color: #f0f2ff;
}

.ip {
    margin-top: 8px;
    font-size: 13px;
    color: #f0f2ff;
    opacity: 0.9;
}

.steam-error {
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.18);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
}

.section {
    padding: 70px 0;
}

.section-light {
    background: var(--surface);
}

.section-dark {
    background: #101428;
    color: #f5f6ff;
}

.section-dark p {
    color: #c9d0f5;
}

.section-header {
    text-align: center;
    margin-bottom: 36px;
}

.section-header h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 820px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 16px 34px rgba(20, 30, 50, 0.12);
    border: 1px solid var(--border);
}

.feature-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    align-items: center;
}

.info-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(20, 30, 50, 0.25);
}

.section-light .info-card {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: 0 16px 34px rgba(20, 30, 50, 0.08);
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.badge {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 12px;
}

.section-light .badge {
    background: rgba(110, 120, 230, 0.12);
    color: var(--primary-dark);
    border: 1px solid rgba(110, 120, 230, 0.3);
}

.rules {
    list-style: none;
    padding-left: 0;
    margin-top: 12px;
}

.rules li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.section-light .rules li {
    border-bottom: 1px solid var(--border);
}

.btn.outline.dark {
    border-color: #c9d0f5;
    color: #c9d0f5;
}

.footer {
    background: #0b0e1d;
    color: #c5cbe6;
    padding: 40px 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    align-items: center;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.footer-text {
    color: #9aa2c8;
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #c5cbe6;
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    color: #fff;
}

@media (max-width: 900px) {
    .topbar-inner {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .steam {
        justify-content: flex-start;
    }
}
