:root {
    --bg: #050605;
    --panel: #111511;
    --panel-2: #181d17;
    --text: #f7f7ef;
    --muted: #b8c0b2;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #b7d530;
    --accent-2: #7d64ff;
    --danger: #e1b24b;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(24px, calc((100vw - var(--max)) / 2));
    background: rgba(0, 0, 0, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 170px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--text);
    font-weight: 900;
    font-size: 26px;
    line-height: 1;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    text-transform: uppercase;
    letter-spacing: 0;
}

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 800;
}

.main-nav a {
    padding: 9px 0;
    color: rgba(255, 255, 255, 0.9);
}

.main-nav a:hover {
    color: var(--text);
}

.discord-link,
.btn {
    border-radius: 6px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.discord-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    background: var(--accent-2);
    color: white;
    font-weight: 900;
}

.account-menu {
    position: relative;
}

.account-menu summary {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid rgba(102, 192, 244, 0.38);
    border-radius: 6px;
    background: rgba(102, 192, 244, 0.12);
    color: #d7efff;
    font-size: 13px;
    font-weight: 900;
    list-style: none;
    cursor: pointer;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    gap: 8px;
    min-width: 190px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 10, 9, 0.98);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.account-panel a {
    padding: 11px 12px;
    border-radius: 6px;
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.account-login-link,
.account-profile-link {
    background: #171a21;
    border: 1px solid rgba(102, 192, 244, 0.42);
}

.account-logout-link {
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
}

.lang-switch a {
    display: grid;
    place-items: center;
    min-width: 34px;
    min-height: 30px;
    border-radius: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.lang-switch a.is-active {
    background: var(--accent);
    color: #111;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
}

.hero {
    min-height: 92vh;
    display: grid;
    align-items: center;
    padding: 140px max(24px, calc((100vw - var(--max)) / 2)) 80px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.35) 46%, rgba(0, 0, 0, 0.68)),
        linear-gradient(0deg, var(--bg), rgba(0, 0, 0, 0) 28%),
        url("../img/hero-dayz.png") center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -5vw -24px;
    height: 70px;
    background: var(--bg);
    transform: skewY(-2deg);
    transform-origin: 0 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 12px;
    font-size: clamp(58px, 10vw, 128px);
    line-height: 0.9;
    text-transform: uppercase;
    font-weight: 900;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(24px, 4.5vw, 32px);
    line-height: 1;
    font-weight: 900;
}

h3 {
    font-size: 26px;
    line-height: 1.1;
}

.hero-lead,
.body-copy {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 21px;
    line-height: 1.55;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    font-weight: 900;
}

.btn-primary {
    background: var(--accent-2);
    color: #fff;
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(0, 0, 0, 0.28);
}

.hero-panel {
    position: absolute;
    z-index: 2;
    right: max(24px, calc((100vw - var(--max)) / 2));
    bottom: 88px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(420px, calc(100vw - 48px));
    padding: 16px 18px;
    background: rgba(6, 8, 6, 0.78);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.hero-panel span:last-child {
    color: var(--muted);
    font-size: 14px;
}

.status-dot {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.16));
}

.featured-strip,
.section,
.cta-section,
.site-footer {
    width: min(var(--max), calc(100% - 48px));
    margin-inline: auto;
}

.featured-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 32px;
    background: var(--line);
    border: 1px solid var(--line);
}

.featured-strip div {
    min-height: 120px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 24px;
    background: #090b09;
}

.featured-strip strong {
    font-size: 28px;
}

.featured-strip span {
    color: var(--muted);
    font-weight: 700;
}

.section {
    padding: 96px 0 0;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 34px;
}

.shop-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 28px;
    align-items: stretch;
}

.shop-copy {
    align-self: center;
}

.shop-card {
    display: grid;
    align-content: start;
    gap: 16px;
    min-height: 250px;
    padding: 26px;
    border: 1px solid rgba(183, 213, 48, 0.34);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(183, 213, 48, 0.12), rgba(125, 100, 255, 0.12)),
        var(--panel);
}

.shop-card h3 {
    margin-bottom: 0;
}

.shop-card p {
    color: var(--muted);
    font-weight: 800;
    line-height: 1.45;
}

.shop-card .btn {
    justify-self: start;
}

.shop-status {
    justify-self: start;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(183, 213, 48, 0.14);
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.server-card {
    min-height: 430px;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: linear-gradient(180deg, var(--panel), #090b09);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.server-card-top,
.server-connect {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.server-card-top {
    margin-bottom: 28px;
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 126px;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    color: #10120d;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    animation: statusPulse 1.9s ease-in-out infinite;
}

.is-online {
    background: #9de000;
}

.is-offline,
.is-soon {
    background: #ff4d5b;
    color: #fff;
}

.is-preparing {
    background: #7d64ff;
    color: #fff;
}

@keyframes statusPulse {
    0% {
        transform: translateZ(0) scale(1);
        filter: brightness(1);
    }
    50% {
        transform: translateZ(0) scale(1.035);
        filter: brightness(1.12);
    }
    100% {
        transform: translateZ(0) scale(1);
        filter: brightness(1);
    }
}

dl {
    display: grid;
    gap: 14px;
    margin: 0 0 26px;
}

dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.player-count {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    color: var(--accent);
    font-size: 28px;
    line-height: 1;
}

.player-count span {
    color: var(--muted);
    font-size: 16px;
}

.checked-at {
    margin: auto 0 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.launch-date-pulse {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border: 1px solid rgba(125, 100, 255, 0.8);
    border-radius: 6px;
    padding: 0 12px;
    background: rgba(125, 100, 255, 0.14);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    animation: launchPulse 1.6s ease-in-out infinite;
}

@keyframes launchPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(125, 100, 255, 0.44);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(125, 100, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(125, 100, 255, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .status,
    .launch-date-pulse {
        animation: none;
    }
}

.server-connect {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

code {
    overflow-wrap: anywhere;
    color: var(--accent);
    font-size: 14px;
}

.server-connect button {
    flex: 0 0 auto;
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-weight: 900;
    cursor: pointer;
}

.leaderboard-controls {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.leaderboard-tabs,
.leaderboard-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.leaderboard-tabs a,
.leaderboard-sort a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.leaderboard-tabs a.is-active,
.leaderboard-sort a.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #10120d;
}

.leaderboard-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, var(--panel), #090b09);
}

.leaderboard-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 16px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.leaderboard-table th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.leaderboard-table td {
    font-weight: 800;
}

.leaderboard-table .steam-profile-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 6px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.leaderboard-table .steam-profile-link:hover {
    background: var(--accent-2);
    color: #fff;
}

.leaderboard-table tbody tr:last-child td {
    border-bottom: 0;
}

.leaderboard-empty {
    margin: 0;
    padding: 24px;
    color: var(--muted);
    font-weight: 800;
}

.split-section {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
    align-items: start;
}

.feature-list {
    display: grid;
    gap: 14px;
}

.feature-item {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.feature-item span {
    width: 10px;
    height: 10px;
    margin-top: 8px;
    background: var(--accent);
}

.feature-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.45;
    font-weight: 700;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.rules-notice {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
    padding: 22px 24px;
    background: linear-gradient(90deg, rgba(225, 178, 75, 0.16), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(225, 178, 75, 0.42);
    border-left: 5px solid var(--danger);
    border-radius: 8px;
}

.rules-notice p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    font-size: 17px;
    font-weight: 800;
}

.rules-grid article {
    min-height: 190px;
    padding: 24px;
    background: var(--panel-2);
}

.rules-grid strong {
    display: block;
    margin-bottom: 28px;
    color: var(--accent);
    font-size: 22px;
}

.rules-grid p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.45;
    font-weight: 700;
}

.cta-section {
    margin-top: 98px;
    margin-bottom: 80px;
    padding: 54px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.62)),
        url("../img/hero-dayz.png") center 62% / cover no-repeat;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.cta-section h2 {
    max-width: 760px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 0 42px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.maintenance-body {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.64)),
        url("../img/hero-dayz.png") center / cover no-repeat;
}

.maintenance-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 24px;
}

.maintenance-box {
    width: min(680px, 100%);
    display: grid;
    gap: 16px;
    min-width: 0;
    overflow: hidden;
    padding: clamp(24px, 4vw, 40px);
    background: rgba(6, 8, 6, 0.86);
    border: 1px solid var(--line);
    border-radius: 8px;
    backdrop-filter: blur(14px);
}

.maintenance-box > * {
    min-width: 0;
}

.maintenance-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.maintenance-lang-switch {
    justify-self: end;
}

.maintenance-box h1 {
    margin-bottom: 0;
    max-width: 100%;
    font-size: clamp(38px, 6.4vw, 48px);
    overflow-wrap: anywhere;
    word-break: normal;
}

.maintenance-box p {
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.45;
    font-weight: 700;
}

.maintenance-box label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.maintenance-box input {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font: inherit;
    font-weight: 800;
}

.maintenance-box .btn {
    width: 100%;
}

.maintenance-box input:focus {
    border-color: var(--accent);
    outline: none;
}

.maintenance-copy + p,
.maintenance-error-copy + .maintenance-error {
    display: none;
}

.maintenance-error {
    color: #ff7777;
}

.shop-body {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.52)),
        url("../img/hero-dayz.png") center / cover fixed no-repeat,
        var(--bg);
}

.shop-header,
.shop-page {
    width: min(var(--max), calc(100% - 48px));
    margin-inline: auto;
}

.shop-header {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-page {
    padding: 56px 0 90px;
}

.shop-hero {
    max-width: 850px;
    margin-bottom: 34px;
}

.shop-hero h1 {
    font-size: clamp(48px, 8vw, 92px);
}

.shop-login-box,
.paypal-checkout-box,
.shop-account-bar,
.shop-message,
.shop-plan-card,
.shop-history-grid > div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(9, 11, 9, 0.92);
}

.shop-login-box,
.paypal-checkout-box {
    display: grid;
    gap: 18px;
    max-width: 620px;
    padding: 26px;
}

.shop-login-box h2,
.paypal-checkout-box h2 {
    margin-bottom: 0;
}

.shop-account-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px 16px;
    color: var(--muted);
    font-weight: 900;
}

.shop-account-bar a {
    color: var(--accent);
}

.shop-message {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-color: rgba(183, 213, 48, 0.35);
    color: var(--text);
    font-weight: 900;
}

.shop-message-error {
    border-color: rgba(255, 99, 99, 0.4);
    color: #ff9a9a;
}

.shop-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.shop-plan-card {
    display: grid;
    gap: 16px;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(183, 213, 48, 0.08), rgba(125, 100, 255, 0.08)),
        rgba(9, 11, 9, 0.94);
}

.shop-plan-card span,
.muted-text {
    color: var(--muted);
    font-weight: 800;
}

.shop-plan-card h2 {
    margin-bottom: 0;
    font-size: 28px;
}

.shop-plan-card strong {
    color: var(--accent);
    font-size: 34px;
    font-weight: 900;
}

.shop-plan-card form,
.paypal-checkout-box form {
    margin: 0;
}

.shop-history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 28px;
}

.shop-history-grid > div {
    padding: 24px;
}

.shop-history-item {
    display: grid;
    gap: 5px;
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
}

.shop-history-item span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .site-header {
        height: 66px;
    }

    .nav-toggle {
        display: block;
    }

    .lang-switch {
        order: 2;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
    }

    .header-actions .discord-link {
        display: none;
    }

    .account-menu summary {
        min-height: 36px;
        padding: 0 11px;
    }

    .account-panel {
        right: -76px;
    }

    .main-nav {
        position: fixed;
        top: 66px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        background: rgba(0, 0, 0, 0.96);
        border: 1px solid var(--line);
        border-radius: 8px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 14px;
    }

    .hero {
        min-height: 88vh;
        padding-top: 112px;
    }

    .hero-panel {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 36px;
    }

    .featured-strip,
    .server-grid,
    .shop-section,
    .shop-plan-grid,
    .shop-history-grid,
    .split-section {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .featured-strip,
    .server-grid,
    .shop-section,
    .shop-plan-grid,
    .shop-history-grid,
    .split-section {
        grid-template-columns: 1fr;
    }

    .hero-lead,
    .body-copy {
        font-size: 17px;
    }

    .hero-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .server-card {
        min-height: auto;
    }

    .server-connect {
        align-items: stretch;
        flex-direction: column;
    }

    .server-connect button {
        width: 100%;
    }

    .cta-section {
        padding: 32px 22px;
    }

    .site-footer {
        flex-direction: column;
    }
}
