@charset "UTF-8";
:root {
    --bg-0: #050000;
    --bg-1: #0b0202;
    --bg-2: #150303;
    --surface-0: rgba(15, 3, 3, 0.78);
    --surface-1: rgba(31, 7, 7, 0.72);
    --surface-2: rgba(47, 12, 12, 0.72);
    --surface-solid: #140606;

    --border-soft: rgba(255, 118, 118, 0.13);
    --border-mid: rgba(255, 88, 88, 0.24);
    --border-strong: rgba(255, 62, 62, 0.45);

    --text-main: #f4eeee;
    --text-soft: #d9baba;
    --text-muted: #9f7373;
    --text-dim: #755050;

    --red-0: #ff4d4d;
    --red-1: #df2f2f;
    --red-2: #9b1515;
    --red-3: #5d0909;

    --green-0: #5dffa4;
    --green-1: #24c873;
    --green-2: #16884d;

    --gold-0: #ffe08a;
    --gold-1: #e0b847;
    --gold-2: #b98522;

    --purple: #a45dff;
    --orange: #ff8a3d;
    --gray: #a8a8a8;
    --blue: #70cfff;

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --shadow-soft: 0 18px 55px rgba(0, 0, 0, 0.35);
    --shadow-red: 0 18px 60px rgba(255, 0, 0, 0.14);
    --shadow-green: 0 14px 36px rgba(36, 200, 115, 0.18);
    --shadow-gold: 0 14px 36px rgba(224, 184, 71, 0.20);

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --focus-ring: 0 0 0 3px rgba(255, 77, 77, 0.23);

    --font-main: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* ==================== SkyTrader info block ==================== */

.skytrader-info {
    border-left-color: var(--gold-1);
}

.skytrader-info b {
    color: #ffe9b0;
}

.skytrader-info-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 16px;
}

.skytrader-mini-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 224, 138, 0.16);
    border-radius: var(--radius-pill);
    color: var(--gold-0);
    background: rgba(255, 224, 138, 0.045);
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.skytrader-info h3 {
    margin: 0;
    color: #ffe2e2;
    font-size: clamp(22px, 3.4vw, 32px);
    font-weight: 900;
    line-height: 1.1;
}

.skytrader-time-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 135px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 224, 138, 0.14);
    border-radius: var(--radius-sm);
    background: rgba(255, 224, 138, 0.035);
}

.skytrader-time-box span {
    color: var(--gold-0);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}


.skytrader-time-box small {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.skytrader-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.skytrader-point {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 118, 118, 0.10);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.024);
}

.skytrader-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 28px;
    border: 1px solid rgba(255, 224, 138, 0.14);
    border-radius: 10px;
    color: var(--gold-0);
    background: rgba(255, 224, 138, 0.04);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    font-weight: 900;
}

.skytrader-point b {
    display: block;
    margin-bottom: 4px;
    color: #ffe2e2;
    font-size: 14.5px;
}

.skytrader-point p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13.5px;
    line-height: 1.55;
}

.inline-command {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 2px 7px;
    border: 1px solid rgba(93, 255, 164, 0.16);
    border-radius: 8px;
    color: var(--green-0);
    background: rgba(93, 255, 164, 0.045);
    font-weight: 850;
    white-space: nowrap;
}

.skytrader-types-simple {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.skytrader-type-line {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 11px 13px;
    border: 1px solid rgba(255, 118, 118, 0.09);
    border-left: 4px solid var(--text-muted);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.10);
}

.skytrader-type-line span {
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.07em;
}

.skytrader-type-line p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13.5px;
    line-height: 1.45;
}

.skytrader-type-line.common {
    border-left-color: var(--green-1);
}

.skytrader-type-line.common span {
    color: var(--green-0);
}

.skytrader-type-line.rare {
    border-left-color: var(--blue);
}

.skytrader-type-line.rare span {
    color: var(--blue);
}

.skytrader-type-line.legend {
    border-left-color: var(--gold-1);
}

.skytrader-type-line.legend span {
    color: var(--gold-0);
}

.skytrader-small-note {
    margin-top: 15px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 224, 138, 0.13);
    border-left: 4px solid var(--gold-1);
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    background: rgba(255, 224, 138, 0.035);
    font-size: 14px;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .skytrader-info-top {
        flex-direction: column;
        gap: 12px;
    }

    .skytrader-time-box {
        align-items: flex-start;
        width: 100%;
        min-width: 0;
    }

    .skytrader-points {
        grid-template-columns: 1fr;
    }

    .skytrader-type-line {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}
/* ==================== StatusButton ==================== */

.server-header-with-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 12px;
}

.server-header-with-status > span {
    color: var(--text-soft);
    font-size: 18px;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.server-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    min-height: 25px;
    padding: 5px 9px;

    border: 1px solid rgba(93, 255, 164, 0.16);
    border-radius: var(--radius-pill);

    color: #dfffea;
    background:
        linear-gradient(135deg, rgba(93, 255, 164, 0.075), rgba(255, 255, 255, 0.020));

    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;

    box-shadow: 0 0 16px rgba(93, 255, 164, 0.07);

    transition:
        transform 0.18s var(--ease),
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}

.server-status-badge:hover {
    color: #ffffff;
    border-color: rgba(93, 255, 164, 0.30);
    background:
        linear-gradient(135deg, rgba(93, 255, 164, 0.12), rgba(255, 255, 255, 0.030));
    transform: translateY(-1px);
}

.server-status-dot {
    width: 7px;
    height: 7px;
    min-width: 7px;

    border-radius: 999px;
    background: var(--green-0);
    box-shadow:
        0 0 8px rgba(93, 255, 164, 0.85),
        0 0 18px rgba(93, 255, 164, 0.22);
}

@media (max-width: 420px) {
    .server-header-with-status {
        flex-wrap: wrap;
        gap: 8px;
    }

    .server-status-badge {
        font-size: 10.5px;
    }
}

/* ==================== Base ==================== */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: var(--text-main);
    font-family: var(--font-main);
    overscroll-behavior: none;
    scroll-behavior: smooth;
}

html {
    background: var(--bg-0);
}

body {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: clamp(18px, 4vw, 46px) clamp(12px, 3vw, 24px);
    overflow-x: hidden;
    background:
        radial-gradient(circle at 16% 7%, rgba(255, 64, 64, 0.18), transparent 30%),
        radial-gradient(circle at 86% 16%, rgba(255, 164, 70, 0.08), transparent 26%),
        radial-gradient(circle at 50% 100%, rgba(123, 0, 0, 0.32), transparent 42%),
        linear-gradient(135deg, #020000 0%, #0d0101 38%, #1b0404 100%);
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 78%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.24) 58%, rgba(0, 0, 0, 0.55) 100%);
}

::selection {
    color: #fff;
    background: rgba(255, 65, 65, 0.55);
}

a {
    color: inherit;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

p {
    color: var(--text-soft);
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
[role="button"],
a,
input,
select,
textarea {
    min-width: 0;
}

/* ==================== Main container ==================== */
.box {
    position: relative;
    width: min(100%, 980px);
    margin: 0 auto;
    padding: clamp(20px, 4vw, 38px);
    text-align: center;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.016)),
        var(--surface-0);
    box-shadow: var(--shadow-soft), var(--shadow-red);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    overflow: hidden;
}

.box::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(120deg, rgba(255, 77, 77, 0.18), transparent 26%, transparent 70%, rgba(255, 144, 64, 0.09));
    opacity: 0.7;
}

.box > * {
    position: relative;
    z-index: 1;
}

/* ==================== Logo ==================== */
.logo {
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(42px, 8vw, 76px);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.6vw, 5px);
    text-shadow:
        0 0 18px rgba(255, 66, 66, 0.38),
        0 0 48px rgba(255, 0, 0, 0.18);
}

.logo::first-letter {
    color: var(--red-0);
}

/* ==================== Server header / layout ==================== */
.main-server-block {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
    align-items: stretch;
    gap: 18px;
    margin: 20px 0 34px;
}

.server-header {
    margin: 0 0 12px;
    color: var(--text-soft);
    font-size: 18px;
    font-weight: 750;
    letter-spacing: 0.02em;
    text-align: center;
}

.server-info {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-width: 280px;
    padding: 22px;
    text-align: left;
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-md);
    background:
        linear-gradient(180deg, rgba(255, 77, 77, 0.08), rgba(255,255,255,0.018)),
        rgba(18, 3, 3, 0.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    overflow: hidden;
}

.server-info::before {
    content: "";
    position: absolute;
    top: -55px;
    right: -45px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(255, 44, 44, 0.13);
    filter: blur(10px);
}

.server-info p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--text-soft);
    font-size: 15.5px;
    line-height: 1.45;
}

.server-info strong {
    display: block;
    margin-bottom: 3px;
    color: #ffc0c0;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.restart {
    color: var(--text-soft);
}

.green-ip,
.online-count {
    color: var(--green-0);
    font-weight: 850;
    text-shadow: 0 0 12px rgba(93, 255, 164, 0.18);
}

/* ==================== Buttons ==================== */
.buttons-vertical,
.vip-shop {
    display: flex;
    flex-direction: column;
}

.buttons-vertical {
    gap: 12px;
    min-width: 0;
}

.buttons-vertical a,
.single-button a,
.donate-button,
.show-all-players,
.vip-buy,
.news-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    border: 0;
    border-radius: var(--radius-sm);
    color: #fff;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition:
        transform 0.22s var(--ease),
        box-shadow 0.22s var(--ease),
        filter 0.22s var(--ease),
        border-color 0.22s var(--ease),
        background 0.22s var(--ease);
}

.buttons-vertical a,
.single-button a {
    width: 100%;
    padding: 13px 18px;
    background:
        linear-gradient(135deg, rgba(36, 200, 115, 0.98), rgba(18, 115, 64, 0.98));
    box-shadow: var(--shadow-green);
}

.buttons-vertical a:hover,
.single-button a:hover,
.show-all-players:hover,
.donate-button:hover,
.vip-buy:not(.disabled):hover,
.news-more:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
}

.buttons-vertical a:active,
.single-button a:active,
.show-all-players:active,
.donate-button:active,
.vip-buy:active,
.news-more:active {
    transform: translateY(-1px) scale(0.99);
}

.single-button {
    width: 100%;
    margin: 0 auto 28px;
}

.donate-button {
    width: 100%;
    margin-top: 12px;
    padding: 16px 20px;
    font-size: 18px;
    background:
        linear-gradient(135deg, #ff4b4b 0%, #c01616 48%, #7a0909 100%);
    box-shadow: 0 18px 38px rgba(255, 42, 42, 0.25);
}

.donate-button::after,
.buttons-vertical a::after,
.single-button a::after,
.vip-buy::after,
.show-all-players::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.16), transparent 46%);
    pointer-events: none;
}

/* ==================== Online players ==================== */
.online-row,
.online-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.online-block {
    margin-top: 8px;
}

.online-text {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.online-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    margin-right: 2px;
    border-radius: 50%;
}

.online-dot.online {
    background: var(--green-0);
    box-shadow: 0 0 12px rgba(93, 255, 164, 0.95);
}

.online-dot.offline {
    background: var(--red-0);
    box-shadow: 0 0 12px rgba(255, 77, 77, 0.95);
}

.online-players {
    margin-top: 10px;
}

.players-label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.players-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
}

.player-tag,
.more-players {
    display: inline-flex;
    align-items: center;
    max-width: 150px;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.player-tag {
    color: #ecdcdc;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.055);
}

.more-players {
    color: var(--green-0);
    border: 1px solid rgba(93,255,164,0.22);
    background: rgba(93,255,164,0.10);
}

.players-empty {
    color: var(--text-muted);
    font-size: 13px;
    font-style: italic;
}

.show-all-players {
    width: 100%;
    margin-top: 16px;
    padding: 14px 18px;
    font-size: 16px;
    background: linear-gradient(135deg, var(--green-1), var(--green-2));
    box-shadow: var(--shadow-green);
}

.show-all-players:focus,
.show-all-players:active {
    outline: none;
    border: none;
}

/* ==================== Commands ==================== */
.commands {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
}

.command {
    display: grid;
    grid-template-columns: 190px 1fr;
    align-items: center;
    column-gap: 24px;

    min-height: 56px;
    padding: 13px 16px;

    border: 1px solid var(--border-soft);
    border-left: 4px solid var(--red-1);
    border-radius: var(--radius-sm);

    background: rgba(35, 5, 5, 0.72);
    font-size: 15px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.cmd {
    display: block;
    color: var(--green-0);
    font-weight: 850;
    text-align: left;
    white-space: nowrap;
}

.desc {
    display: block;
    min-width: 0;
    color: var(--text-soft);
    text-align: right;
    line-height: 1.4;
    word-break: break-word;
}

/* ==================== News / cards ==================== */
.news-title,
.spawn-title {
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: 0 0 26px rgba(255, 42, 42, 0.25);
}

.news-title {
    margin: 42px 0 18px;
    font-size: clamp(28px, 4.5vw, 42px);
    text-align: left;
}

.news,
.priv-cards {
    margin-top: 18px;
}

.news {
    position: relative;
    display: grid;
    gap: 18px;
    padding-left: 28px;
}

.news::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 77, 77, 0.38), transparent);
}

.item,
.priv-card,
.spawn-item,
.about-server,
.payment-info {
    border: 1px solid var(--border-soft);
    border-left: 4px solid var(--red-1);
    border-radius: var(--radius-md);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012)),
        var(--surface-1);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.item,
.priv-card {
    width: 100%;
    margin: 0 0 18px;
    padding: 18px 20px;
    text-align: left;
    opacity: 0;
    transform: translateY(26px) scale(0.98);
    transition:
        transform 0.35s var(--ease),
        opacity 0.35s var(--ease),
        border-color 0.25s ease,
        background 0.25s ease;
}

.item {
    position: relative;
}

.item::before {
    content: "";
    position: absolute;
    left: -35px;
    top: 24px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--red-0);
    box-shadow:
        0 0 0 5px rgba(255, 77, 77, 0.09),
        0 0 18px rgba(255, 77, 77, 0.75);
}

.item:hover,
.priv-card:hover,
.spawn-item:hover {
    border-color: var(--border-mid);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
        rgba(40, 8, 8, 0.74);
}

.item.animate,
.priv-card.animate,
.priv-card.vip-shop.animate {
    animation: cardAppear 0.6s var(--ease) forwards;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.date {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    margin-bottom: 8px;
    padding: 3px 9px;
    border: 1px solid rgba(255, 77, 77, 0.16);
    border-radius: var(--radius-pill);
    color: #f0a5a5;
    background: rgba(255, 77, 77, 0.09);
    font-size: 12px;
    font-weight: 750;
}

.title {
    margin-bottom: 8px;
    color: #ffe2e2;
    font-size: 20px;
    font-weight: 850;
    line-height: 1.25;
}

.text {
    color: var(--text-soft);
    font-size: 15.5px;
    line-height: 1.65;
}

.command-with-note {
    grid-template-areas:
        "cmd desc"
        "cmd note";
    align-items: start;
    row-gap: 3px;
    min-height: 66px;
}

.command-with-note .cmd {
    grid-area: cmd;
    align-self: center;
}

.command-with-note .desc {
    grid-area: desc;
}

.command-with-note .cmd-note {
    grid-area: note;

    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 7px;

    color: rgba(217, 186, 186, 0.58);
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.25;
    text-align: right;

    transform: translateY(-1px);
}






.about-server {
    margin-top: 20px;
    padding: 20px 22px;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.75;
    text-align: left;
}

.news-more-wrapper {
    position: relative;
    width: 100%;
    margin-top: 22px;
    text-align: center;
}

.news-more-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 77, 77, 0.35), transparent);
    transform: translateY(-50%);
}

.news-more {
    position: relative;
    z-index: 1;
    min-height: 38px;
    padding: 9px 18px;
    border: 1px solid var(--border-mid);
    color: #ffd0d0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
        var(--surface-solid);
}

.news-more:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--red-1), var(--red-3));
}

/* ==================== News images / lightbox ==================== */
.news-images {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 13px;
}

.news-thumb {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition:
        transform 0.22s var(--ease),
        opacity 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.news-thumb:hover {
    opacity: 0.92;
    transform: translateY(-2px) scale(1.035);
    border-color: var(--border-strong);
    box-shadow: 0 10px 22px rgba(255, 0, 0, 0.18);
}

/* ==================== Players overlay base ==================== */
.players-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.players-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.players-close {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    background: rgba(255,255,255,0.08);
    transition:
        background 0.2s ease,
        transform 0.2s var(--ease),
        border-color 0.2s ease;
    user-select: none;
}

.players-close:hover {
    background: rgba(255, 77, 77, 0.28);
    border-color: rgba(255, 77, 77, 0.36);
    transform: scale(1.04);
}

/* ==================== Players modal ==================== */
.players-overlay {
    padding: 20px;
    background: rgba(0,0,0,0.70);
}

.players-modal {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 450px;
    max-height: 82vh;
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.016)),
        rgba(12, 2, 2, 0.96);
    box-shadow:
        0 24px 70px rgba(0,0,0,0.58),
        0 0 60px rgba(255, 0, 0, 0.10);
    animation: playersModalShow 0.22s var(--ease);
}

.players-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-soft);
    color: #ffd0d0;
    background: rgba(255,255,255,0.025);
    font-size: 18px;
    font-weight: 850;
}

.players-close {
    width: 34px;
    height: 34px;
    border: none;
    color: rgba(255,255,255,0.72);
    font-size: 22px;
    background: rgba(255,255,255,0.055);
}

.players-modal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    overflow-y: auto;
}

.players-modal-list::-webkit-scrollbar {
    width: 10px;
}

.players-modal-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.035);
    border-radius: var(--radius-pill);
}

.players-modal-list::-webkit-scrollbar-thumb {
    border: 2px solid rgba(15, 0, 0, 0.9);
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, rgba(255, 77, 77, 0.78), rgba(120, 18, 18, 0.95));
}

.players-modal-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 96, 96, 0.95), rgba(160, 30, 30, 1));
}

.players-modal-item {
    padding: 14px 16px;
    border: 1px solid rgba(255, 118, 118, 0.12);
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    background: rgba(255,255,255,0.03);
    font-size: 15px;
    transition:
        transform 0.18s var(--ease),
        border-color 0.18s ease,
        background 0.18s ease;
}

.players-modal-item:hover {
    transform: translateX(3px);
    border-color: rgba(255, 118, 118, 0.30);
    background: rgba(255,255,255,0.055);
}

@keyframes playersModalShow {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==================== Spawn gallery ==================== */
.spawn-title {
    margin: 34px 0 42px;
    font-size: clamp(32px, 5vw, 48px);
    text-align: center;
}

.spawn-gallery {
    display: flex;
    flex-direction: column;
    gap: 38px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.spawn-item {
    padding: 20px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(34px);
    transition:
        opacity 0.6s var(--ease),
        transform 0.6s var(--ease),
        border-color 0.25s ease,
        background 0.25s ease;
}

.spawn-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.spawn-image-container {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(0,0,0,0.38);
}

.spawn-image-container::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: inherit;
}

.spawn-main-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
    cursor: pointer;
    transition: transform 0.45s var(--ease), filter 0.45s ease;
}

.spawn-main-img:hover {
    transform: scale(1.025);
    filter: contrast(1.04) saturate(1.05);
}

.spawn-date {
    margin-top: 12px;
    padding-right: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
    text-align: right;
}

/* ==================== Payment / offer / forms ==================== */
.payment-info {
    margin-top: 20px;
    padding: 20px;
    text-align: left;
}

.payment-info.success { border-left-color: var(--green-1); }
.payment-info.pending { border-left-color: var(--red-1); }

.payment-title {
    margin-bottom: 15px;
    color: #ffe0e0;
    font-size: 18px;
    font-weight: 850;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.055);
    color: var(--text-soft);
    font-size: 15px;
}

.payment-row:last-child { border-bottom: none; }
.status { color: var(--text-soft); font-weight: 850; }
.payment-info .status.success { color: var(--green-0) !important; }
.payment-info .status.pending { color: var(--red-0) !important; }

.rid {
    color: var(--text-muted);
    font-size: 13px;
    word-break: break-all;
}

.offer-block {
    width: 100%;
    margin-top: 15px;
    color: #cfc0c0;
    font-size: 14px;
    text-align: left;
}

.offer-text a,
.offer-checkbox a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(207, 192, 192, 0.62);
    text-underline-offset: 3px;
}

.offer-checkbox {
    margin: 4px 0;
}

.offer-checkbox label {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 6px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: background 0.18s ease;
}

.offer-checkbox label:hover {
    background: rgba(255, 77, 77, 0.07);
}

.offer-checkbox input {
    display: none;
    margin-right: 6px;
}

.checkmark {
    position: relative;
    width: 17px;
    height: 17px;
    min-width: 17px;
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    background: #080404;
    transition:
        transform 0.18s var(--ease),
        background 0.18s ease,
        border-color 0.18s ease;
}

.checkmark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg);
}

.offer-checkbox input:checked + .checkmark {
    border-color: var(--red-0);
    background: linear-gradient(to bottom, #260606, var(--red-1));
}

.offer-checkbox input:checked + .checkmark::after {
    opacity: 1;
}

.offer-checkbox label:active .checkmark {
    transform: scale(0.92);
}

.input-wrap {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 13px;
}

.input-hint {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}

.vip-input {
    display: block;
    width: 100%;
    padding: 14px 15px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    outline: none;
    color: #fff;
    background: rgba(0,0,0,0.34);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.vip-input::placeholder { color: rgba(255,255,255,0.38); }

.vip-input:focus {
    border-color: rgba(255, 224, 138, 0.82);
    background: rgba(0,0,0,0.44);
    box-shadow:
        0 0 0 3px rgba(255, 224, 138, 0.16),
        0 0 18px rgba(255, 224, 138, 0.10);
}

.error-slot {
    overflow: hidden;
    max-height: 0;
    margin: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.45s var(--ease), opacity 0.25s ease, transform 0.3s var(--ease), margin 0.25s ease;
}

.error-slot.show {
    max-height: 110px;
    margin: 10px 0 2px;
    opacity: 1;
    transform: translateY(0);
}

.error-box {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 80, 80, 0.42);
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 71, 71, 0.90), rgba(145, 18, 18, 0.92));
    box-shadow: 0 12px 26px rgba(255, 45, 45, 0.18);
    font-size: 13.5px;
    line-height: 1.4;
}

.payment-notes {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 13px;
    color: var(--text-dim);
    font-size: 13px;
    text-align: center;
}

/* ==================== Privileges / VIP shop ==================== */
.priv-cards { display: grid; gap: 18px; }
.priv-card.owner { border-left-color: var(--red-0); }
.priv-card.legend { border-left-color: var(--purple); }
.priv-card.vip { border-left-color: var(--gold-1); }
.priv-card.old { border-left-color: var(--orange); }
.priv-card.overwatch { border-left-color: var(--gray); }

.priv-card.vip .vip-content,
.priv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.vip-text { flex: 1; text-align: left; }

.priv-card h2 {
    margin: 0 0 10px;
    color: #ffd0d0;
    font-size: 20px;
    line-height: 1.25;
}

.priv-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}

/* ==================== Rules page ==================== */
.rules-page {
    max-width: 1060px;
}

.rules-hero {
    position: relative;
    margin: 0 0 22px;
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid rgba(255, 77, 77, 0.18);
    border-radius: var(--radius-lg);
    text-align: left;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 77, 77, 0.15), transparent 34%),
        radial-gradient(circle at 92% 12%, rgba(255, 224, 138, 0.075), transparent 30%),
        linear-gradient(145deg, rgba(43, 7, 7, 0.82), rgba(13, 2, 2, 0.82));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 20px 52px rgba(0,0,0,0.26),
        0 0 48px rgba(255, 0, 0, 0.08);
    overflow: hidden;
}

.rules-hero::after {
    content: "HW";
    position: absolute;
    right: 18px;
    bottom: -8px;
    color: rgba(255,255,255,0.035);
    font-size: clamp(62px, 12vw, 128px);
    font-weight: 950;
    line-height: .8;
    letter-spacing: -0.08em;
    pointer-events: none;
}

.rules-hero-kicker,
.rules-note-kicker {
    width: fit-content;
    margin-bottom: 9px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 224, 138, 0.18);
    border-radius: var(--radius-pill);
    color: var(--gold-0);
    background: rgba(255, 224, 138, 0.055);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rules-hero h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 9px;
    color: #fff1f1;
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 950;
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-shadow: 0 0 24px rgba(255, 77, 77, 0.20);
}

.rules-hero p {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0;
    color: #d9baba;
    font-size: 15.5px;
    line-height: 1.65;
}

.rules-tree {
    position: relative;
    display: grid;
    gap: 16px;
    margin-top: 18px;
    text-align: left;
}

.rules-tree::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 26px;
    bottom: 26px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 77, 77, 0.20), transparent);
}

.rule-card {
    position: relative;
    margin: 0;
    padding: 18px;
    border-left-color: rgba(255, 77, 77, 0.55);
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 77, 77, 0.075), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.046), rgba(255,255,255,0.014)),
        rgba(27, 5, 5, 0.74);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.045),
        0 16px 38px rgba(0,0,0,0.25);
    overflow: hidden;
}

.rule-card::before {
    display: none;
}

.rule-card::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -70px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(255, 77, 77, 0.07);
    filter: blur(3px);
    pointer-events: none;
}

.rule-card:hover {
    border-color: rgba(255, 118, 118, 0.30);
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 77, 77, 0.11), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,0.058), rgba(255,255,255,0.018)),
        rgba(35, 7, 7, 0.78);
}

.rule-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 15px;
    align-items: start;
}

.rule-number,
.rule-subnumber {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

.rule-number {
    min-width: 48px;
    min-height: 38px;
    border: 1px solid rgba(255, 77, 77, 0.24);
    border-radius: 14px;
    color: #ffe2e2;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)),
        rgba(255, 77, 77, 0.072);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 0 22px rgba(255, 77, 77, 0.10);
    font-size: 15px;
}

.rule-content h2 {
    margin: 0 0 6px;
    color: #ffe2e2;
    font-size: clamp(19px, 2.4vw, 24px);
    font-weight: 950;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.rule-content p,
.rule-child p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.62;
}

.rule-content p {
    font-size: 15px;
}

.rule-children {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 9px;
    margin: 15px 0 0 62px;
    padding-left: 20px;
}

.rule-children::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    bottom: 17px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(255, 77, 77, 0.30), rgba(255, 77, 77, 0.075));
}

.rule-child {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 11px 12px;
    border: 1px solid rgba(255, 118, 118, 0.095);
    border-radius: 13px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.034), rgba(255,255,255,0.012)),
        rgba(0, 0, 0, 0.075);
}

.rule-child::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 24px;
    width: 20px;
    height: 1px;
    background: rgba(255, 77, 77, 0.22);
}

.rule-subnumber {
    width: fit-content;
    min-width: 38px;
    min-height: 25px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 224, 138, 0.14);
    border-radius: 10px;
    color: #ffe9b0;
    background: rgba(255, 224, 138, 0.043);
    font-size: 12px;
}

.rule-child p {
    font-size: 14px;
}

.rule-punishment {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 14px 0 0 62px;
    padding: 9px 10px;
    border: 1px solid rgba(255,255,255,0.066);
    border-radius: 14px;
    background: rgba(0,0,0,0.13);
}

.rule-punishment-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #cfa2a2;
    background: rgba(255,255,255,0.035);
    font-size: 10.5px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.rule-punishment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.penalty {
    --penalty-color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 27px;
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,0.055);
    border: 1px solid color-mix(in srgb, var(--penalty-color) 20%, rgba(255,255,255,0.055));
    border-radius: 999px;
    color: #d8c4c4;
    background: rgba(255,255,255,0.018);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.030), rgba(255,255,255,0.010)),
        color-mix(in srgb, var(--penalty-color) 5%, transparent);
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.12;
}

.penalty-type {
    color: var(--penalty-color);
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.penalty-type::after {
    content: ":";
    color: rgba(255,255,255,0.28);
    margin-left: 1px;
}

.penalty-warn {
    --penalty-color: var(--gold-0);
}

.penalty-mute {
    --penalty-color: #f2eaea;
}

.penalty-ban {
    --penalty-color: var(--red-0);
}

.rules-admin-note,
.rules-contact {
    margin-top: 26px;
    text-align: left;
}

.rules-admin-note {
    position: relative;
    padding: 20px;
    border: 1px solid rgba(255, 77, 77, 0.16);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 77, 77, 0.10), transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,0.040), rgba(255,255,255,0.014)),
        rgba(17, 3, 3, 0.60);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.052),
        0 16px 38px rgba(0,0,0,0.22);
    overflow: hidden;
}

.rules-admin-note .title {
    margin-bottom: 12px;
    color: #ffe2e2;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 950;
    letter-spacing: -0.02em;
}

.rules-actions-list {
    display: grid;
    gap: 10px;
}

.rules-action-item {
    display: grid;
    grid-template-columns: minmax(140px, 0.32fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px 13px;
    border: 1px solid rgba(255, 118, 118, 0.095);
    border-radius: 14px;
    background: rgba(255,255,255,0.022);
}

.rules-action-item b {
    color: #ffe9b0;
    font-size: 13px;
    line-height: 1.45;
}

.rules-action-item span {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.55;
}

.rules-contact {
    padding: 15px 18px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.032), rgba(255,255,255,0.010)),
        rgba(255,255,255,0.018);
    text-align: center;
}

.rules-contact .text {
    color: #d8c4c4;
    font-size: 15.5px;
    line-height: 1.6;
}

.rules-contact a {
    color: #ffbbbb;
    font-weight: 850;
    text-decoration: underline;
    text-decoration-color: rgba(255, 187, 187, 0.48);
    text-underline-offset: 4px;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.rules-contact a:hover {
    color: #fff;
    text-decoration-color: var(--red-0);
}

@media (max-width: 700px) {
    .rules-hero {
        padding: 17px 14px;
    }

    .rules-hero h2 {
        font-size: clamp(23px, 8vw, 32px);
    }

    .rules-tree::before {
        display: none;
    }

    .rule-card {
        padding: 15px 13px;
    }

    .rule-main {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rule-number {
        width: fit-content;
        min-height: 31px;
        padding: 6px 10px;
    }

    .rule-children {
        margin-left: 0;
        padding-left: 15px;
    }

    .rule-child {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 11px 12px;
    }

    .rule-child::before {
        left: -15px;
        width: 15px;
    }

    .rule-subnumber {
        width: fit-content;
    }

    .rule-punishment {
        grid-template-columns: 1fr;
        align-items: flex-start;
        margin-left: 0;
        padding: 10px;
    }

    .penalty {
        width: auto;
        max-width: 100%;
    }

    .rules-admin-note,
    .rules-contact {
        margin-top: 20px;
        padding: 15px 13px;
    }

    .rules-action-item {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 11px 12px;
    }

    .rules-contact .text,
    .rules-action-item span {
        font-size: 14.5px;
    }
}

.priv-card.vip-shop {
    display: block;
    width: 100% !important;
    max-width: none !important;
    margin: 18px 0 0 !important;
    padding: clamp(18px, 3vw, 26px);
    text-align: left;
    border: 1px solid rgba(255, 88, 88, 0.24);
    border-left: 4px solid var(--gold-1);
    border-radius: 22px;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 224, 138, 0.10), transparent 34%),
        radial-gradient(circle at 90% 5%, rgba(93, 255, 164, 0.08), transparent 28%),
        linear-gradient(145deg, rgba(42, 8, 8, 0.90), rgba(15, 4, 4, 0.96));
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.36), 0 12px 32px rgba(255, 0, 0, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    opacity: 1;
    transform: none;
    overflow: hidden;
}

.vip-shop-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 18px;
    width: 100%;
}

.vip-shop-title-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.vip-shop-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 27px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 224, 138, 0.20);
    border-radius: var(--radius-pill);
    color: #f7d87a;
    background: rgba(255, 224, 138, 0.065);
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vip-title {
    margin: 0;
    color: var(--gold-0);
    font-size: clamp(44px, 7vw, 74px);
    font-weight: 950;
    line-height: 0.9;
    letter-spacing: 0.025em;
    text-align: left;
    text-shadow:
        0 0 18px rgba(255, 224, 138, 0.24),
        0 0 36px rgba(255, 138, 61, 0.13);
}

.vip-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 7px;
    min-width: 190px;
    text-align: right;
}

.vip-price-line {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: wrap;
}

.vip-discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 224, 138, 0.34);
    border-radius: var(--radius-pill);
    color: var(--gold-0);
    background: rgba(255, 224, 138, 0.09);
    box-shadow: 0 0 16px rgba(255, 224, 138, 0.10);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}


.vip-old-price {
    position: relative;
    width: fit-content;
    color: rgba(255, 255, 255, 0.48);
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 800;
    line-height: 1.1;
}

.vip-old-price::after {
    content: "";
    position: absolute;
    left: -5px;
    right: -5px;
    top: 50%;
    height: 2px;
    border-radius: var(--radius-pill);
    background: rgba(255, 77, 77, 0.72);
    transform: rotate(-10deg);
}

.vip-new-price {
    color: var(--red-0);
    font-size: clamp(25px, 3.1vw, 34px);
    font-weight: 950;
    line-height: 1.08;
    text-shadow: 0 0 17px rgba(255, 77, 77, 0.18);
}

.vip-shop-hint {
    display: block;
    width: 100%;
    margin: 12px 0 16px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-left: 4px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.026);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
    text-align: left;
}

.vip-shop-hint.is-error {
    color: var(--red-0);
    border-color: rgba(255, 77, 77, 0.20);
    border-left-color: var(--red-0);
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.075), rgba(255, 255, 255, 0.018));
}

.vip-shop-hint.is-ok {
    color: #dfffea;
    border-color: rgba(93, 255, 164, 0.16);
    border-left-color: var(--green-1);
    background: linear-gradient(135deg, rgba(93, 255, 164, 0.065), rgba(255, 255, 255, 0.020));
}

.vip-shop-hint.is-info {
    color: #ffe9ad;
    border-color: rgba(255, 224, 138, 0.18);
    border-left-color: var(--gold-1);
    background: linear-gradient(135deg, rgba(255, 224, 138, 0.065), rgba(255, 255, 255, 0.020));
}

.vip-features-panel {
    width: 100%;
    margin: 0 0 16px;
    padding: 15px 17px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.028);
}

.vip-features {
    margin: 0;
    padding-left: 21px;
    color: var(--text-soft);
    text-align: left;
    line-height: 1.75;
    font-size: 15px;
}

.vip-features li + li { margin-top: 4px; }

.vip-buy {
    width: 100%;
    min-height: 50px;
    margin-top: 16px;
    padding: 15px 16px;
    border-radius: 14px;
    color: #221300;
    background: linear-gradient(135deg, #ffe08a, #e0a22c);
    box-shadow: 0 16px 34px rgba(224, 184, 71, 0.16), inset 0 1px 0 rgba(255,255,255,0.24);
    font-size: 15px;
    font-weight: 950;
    letter-spacing: 0.04em;
}

.vip-buy:hover:not(.disabled) {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #fff0a8, #e8aa32);
}

.vip-buy.disabled {
    cursor: not-allowed;
    color: rgba(255,255,255,0.66);
    opacity: 0.7;
    filter: grayscale(0.15);
    background: linear-gradient(135deg, #575757, #333333);
    box-shadow: none;
}

.vip-buy.active {
    background: linear-gradient(135deg, #ffe680, #ff9f2f);
    transform: scale(1.01);
}

@media (max-width: 950px) {
    .priv-card.vip-shop {
        margin-top: 15px !important;
        padding: 18px 15px;
        border-radius: 19px;
    }

    .vip-shop-header {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .vip-shop-title-side {
        align-items: center;
        text-align: center;
    }

    .vip-title {
        text-align: center;
        font-size: clamp(46px, 16vw, 64px);
    }

    .vip-price-block {
        width: 100%;
        min-width: 0;
        align-items: center;
        text-align: center;
    }

    .vip-shop-hint {
        text-align: center;
        font-size: 18px;
    }

    .vip-features-panel { padding: 14px 15px; }
    .vip-features { font-size: 14.5px; }
}

@media (max-width: 560px) {
    .priv-card.vip-shop { padding: 16px 13px; }
    .offer-checkbox label { align-items: flex-start; padding: 10px 11px; }
    .vip-shop-hint { padding: 12px 13px; font-size: 17px; }
}

/* ==================== VIP stock block like shop hint ==================== */

.priv-card.vip-shop .vip-stock-badge-under {
    display: flex;
    align-items: center;
    gap: 9px;

    width: 100%;
    margin: 12px 0 16px;
    padding: 8px 11px;

    border: 1px solid rgba(93, 255, 164, 0.16);
    border-left: 4px solid var(--green-1);
    border-radius: 12px;

    color: #dfffea;
    background: linear-gradient(135deg, rgba(93, 255, 164, 0.065), rgba(255, 255, 255, 0.020));

    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
    text-align: left;

    box-shadow: none;
    white-space: normal;
}

.priv-card.vip-shop .vip-stock-badge-under .vip-stock-dot {
    width: 9px;
    height: 9px;
    min-width: 9px;

    border-radius: 999px;
    background: var(--green-0);
    box-shadow: 0 0 12px rgba(93, 255, 164, 0.85);
}

.priv-card.vip-shop .vip-stock-badge-under .vip-stock-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Когда VIP закончился — блок становится красным */
.priv-card.vip-shop .vip-stock-badge-under.is-empty {
    color: var(--red-0);
    border-color: rgba(255, 77, 77, 0.20);
    border-left-color: var(--red-0);
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.075), rgba(255, 255, 255, 0.018));
}

.priv-card.vip-shop .vip-stock-badge-under.is-empty .vip-stock-dot {
    background: var(--red-0);
    box-shadow: 0 0 12px rgba(255, 77, 77, 0.75);
}

/* ==================== Footer ==================== */
.footer {
    width: 100%;
    margin-top: 42px;
    padding: 18px 20px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    background: rgba(8, 2, 2, 0.52);
    font-size: 13px;
    text-align: left;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-col.right {
    align-items: flex-end;
    text-align: right;
}

.footer-left,
.footer-right {
    min-width: 0;
}

.footer a {
    color: #c88282;
    text-decoration: none;
    transition: color 0.18s ease;
}

.footer a:hover {
    color: var(--red-0);
}

.footer-disclaimer,
.footer-cookies {
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 118, 118, 0.13);
    text-align: center;
}

.footer-disclaimer {
    color: #a96565;
    font-size: 12px;
}

.footer-cookies {
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1.5;
    word-break: break-word;
}

/* ==================== Utility animations ==================== */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Photo ==================== */

html.lightbox-open,
html.lightbox-open body {
    overscroll-behavior: none;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 40%, rgba(110, 18, 18, 0.22), transparent 42%),
        rgba(0, 0, 0, 0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    touch-action: none;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-stage {
    position: absolute;
    inset: 72px 86px 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    cursor: default;
}

.lightbox-stage.is-zoomed {
    cursor: grab;
}

.lightbox-stage.is-zoomed:active {
    cursor: grabbing;
}

.lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    transform-origin: center center;
    transition: none;
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lightbox-overlay.is-loading .lightbox-img {
    opacity: 0.35;
}

.lightbox-overlay.is-loading::after {
    content: "";
    position: fixed;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 34px;
    margin-left: -17px;
    margin-top: -17px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 90, 90, 0.95);
    animation: lightboxSpin 0.8s linear infinite;
    pointer-events: none;
}

@keyframes lightboxSpin {
    to { transform: rotate(360deg); }
}

.lightbox-close,
.lightbox-nav {
    position: fixed;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    background: rgba(22, 4, 4, 0.74);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        opacity 0.18s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(150, 28, 28, 0.82);
    border-color: rgba(255, 90, 90, 0.35);
    transform: translateY(-1px) scale(1.04);
}

.lightbox-close:active,
.lightbox-nav:active {
    transform: scale(0.96);
}

.lightbox-close {
    top: max(18px, env(safe-area-inset-top));
    right: max(18px, env(safe-area-inset-right));
    width: 46px;
    height: 46px;
    border-radius: 999px;
    font-size: 23px;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    font-size: 38px;
    line-height: 1;
}

.lightbox-prev {
    left: max(18px, env(safe-area-inset-left));
    transform: translateY(-50%);
}

.lightbox-next {
    right: max(18px, env(safe-area-inset-right));
    transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.04);
}

.lightbox-nav[hidden] {
    display: none;
}

.lightbox-bottom {
    position: fixed;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 10000;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    max-width: min(92vw, 640px);
    pointer-events: none;
}

.lightbox-counter {
    min-height: 18px;
    padding: 5px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(22, 4, 4, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    line-height: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-hint {
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
    text-align: center;
}

.news-thumb,
.spawn-main-img,
[data-lightbox],
[data-lightbox-group] {
    cursor: default;
}


@media (max-width: 700px) {
    .lightbox-stage {
        inset: 64px 0 72px;
        padding: 0 8px;
    }

    .lightbox-img {
        border-radius: 10px;
        max-width: calc(100vw - 16px);
        max-height: calc(100vh - 148px);
    }

    .lightbox-close {
        top: max(12px, env(safe-area-inset-top));
        right: max(12px, env(safe-area-inset-right));
        width: 44px;
        height: 44px;
        font-size: 21px;
    }

    .lightbox-nav {
        top: auto;
        bottom: max(18px, env(safe-area-inset-bottom));
        width: 46px;
        height: 46px;
        font-size: 30px;
        background: rgba(22, 4, 4, 0.82);
    }

    .lightbox-prev {
        left: max(12px, env(safe-area-inset-left));
        transform: none;
    }

    .lightbox-next {
        right: max(12px, env(safe-area-inset-right));
        transform: none;
    }

    .lightbox-prev:hover,
    .lightbox-next:hover {
        transform: scale(1.04);
    }

    .lightbox-bottom {
        bottom: max(22px, env(safe-area-inset-bottom));
        max-width: 58vw;
    }

    .lightbox-hint {
        display: none;
    }

    .lightbox-counter {
        font-size: 12px;
        padding: 5px 10px;
    }
    .command {
        grid-template-columns: 160px 1fr;
        column-gap: 16px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .lightbox-stage {
        cursor: default;
    }

    .lightbox-close:hover,
    .lightbox-nav:hover {
        transform: none;
    }

    .lightbox-prev:hover,
    .lightbox-next:hover {
        transform: none;
    }
}

/* =========================================================
   HardWorld 404 page
   Страница: /404.html
   Важно: стили изолированы через body.not-found-page,
   чтобы не ломать главную, донат, правила и остальные страницы.
   ========================================================= */

body.not-found-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    width: 100%;
    padding: clamp(18px, 4vw, 46px) clamp(12px, 3vw, 24px);

    color: var(--text-main);
    background:
        radial-gradient(circle at 16% 7%, rgba(255, 64, 64, 0.14), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(123, 0, 0, 0.24), transparent 42%),
        linear-gradient(135deg, #020000 0%, #0d0101 38%, #1b0404 100%);
    background-attachment: fixed;
}

body.not-found-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 78%);
}

body.not-found-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.24) 58%, rgba(0, 0, 0, 0.55) 100%);
}

.hw404-main {
    flex: 1;
    width: min(100%, 980px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px 0 18px;
}

.hw404-card {
    position: relative;
    width: min(560px, 100%);
    padding: clamp(28px, 5vw, 42px) clamp(22px, 5vw, 36px);

    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);

    background:
        linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.016)),
        var(--surface-0);

    box-shadow:
        var(--shadow-soft),
        0 18px 60px rgba(255, 0, 0, 0.12);

    text-align: center;
    overflow: hidden;
}

.hw404-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        linear-gradient(120deg, rgba(255, 77, 77, 0.13), transparent 28%, transparent 72%, rgba(255, 144, 64, 0.06));
    opacity: 0.7;
}

.hw404-card > * {
    position: relative;
    z-index: 1;
}

.hw404-brand {
    margin-bottom: 24px;

    color: var(--text-soft);
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hw404-code {
    margin: 0;

    color: #fff;
    font-size: clamp(76px, 17vw, 132px);
    font-weight: 950;
    line-height: 0.9;
    letter-spacing: -0.08em;

    text-shadow:
        0 0 18px rgba(255, 66, 66, 0.30),
        0 0 42px rgba(255, 0, 0, 0.16);
}

.hw404-title {
    margin: 18px 0 10px;

    color: var(--text-main);
    font-size: clamp(24px, 5vw, 34px);
    font-weight: 900;
    line-height: 1.15;
}

.hw404-text {
    max-width: 420px;
    margin: 0 auto;

    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.55;
}

.hw404-url {
    margin-top: 18px;
    padding: 12px 14px;

    border: 1px solid rgba(255, 118, 118, 0.10);
    border-radius: var(--radius-sm);

    background: rgba(0, 0, 0, 0.22);
    color: var(--text-muted);

    font-size: 13px;
    line-height: 1.45;
    word-break: break-all;
}

.hw404-url span {
    color: #c88282;
}

.hw404-actions {
    margin-top: 28px;
}

.hw404-button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 0 24px;

    border-radius: var(--radius-sm);

    color: #fff;
    background:
        linear-gradient(135deg, #ff4b4b 0%, #c01616 48%, #7a0909 100%);

    box-shadow: 0 18px 38px rgba(255, 42, 42, 0.22);

    text-decoration: none;
    font-size: 14px;
    font-weight: 900;

    transition:
        transform 0.22s var(--ease),
        filter 0.22s var(--ease),
        box-shadow 0.22s var(--ease);
}

.hw404-button::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.16), transparent 46%);
    pointer-events: none;
}

.hw404-button:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
}

.hw404-button:active {
    transform: translateY(-1px) scale(0.99);
}

.hw404-footer-slot {
    width: min(100%, 980px);
}

/* Футер уже стилизуется общими .footer-стилями сайта.
   Тут только убираем лишний отступ, чтобы на 404 он сидел ровно. */
.hw404-footer-slot .footer {
    margin-top: 24px;
}

@media (max-width: 950px) {
    body.not-found-page {
        padding: 18px 10px;
        background-attachment: scroll;
    }

    .hw404-main {
        align-items: flex-start;
        padding-top: 18px;
    }

    .hw404-card {
        border-radius: 18px;
    }
}

@media (max-width: 560px) {
    .hw404-card {
        padding: 28px 18px;
    }

    .hw404-brand {
        margin-bottom: 20px;
        font-size: 13px;
    }

    .hw404-button {
        width: 100%;
    }

    .hw404-footer-slot .footer {
        margin-top: 18px;
    }
}

/* ==================== Tablet / mobile ==================== */
@media (max-width: 950px) {
    body {
        padding: 18px 10px;
        background-attachment: scroll;
    }

    .box {
        padding: 18px 12px;
        border-radius: 18px;
    }

    .logo {
        margin-bottom: 18px;
        font-size: clamp(38px, 13vw, 54px);
    }

    .main-server-block {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 26px;
    }

    .buttons-vertical {
        order: 1;
        width: 100%;
    }

    .server-info {
        order: 3;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 16px;
    }

    .buttons-vertical a,
    .single-button a {
        padding: 14px 16px;
        font-size: 16px;
    }

    .donate-button {
        width: 100%;
        margin: 10px 0;
    }

    .news-title {
        font-size: 30px;
    }

    .news {
        padding-left: 22px;
    }

    .item::before {
        left: -29px;
    }

    .title {
        font-size: 18px;
    }

    .text,
    .about-server {
        font-size: 14.5px;
    }

    .news-thumb {
        width: 72px;
        height: 72px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 21px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .players-modal {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 18px;
    }

    .players-modal-header {
        padding: 16px;
        font-size: 16px;
    }

    .players-modal-item {
        padding: 13px 14px;
        font-size: 14px;
    }

    .online-row,
    .online-top {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .online-text {
        align-items: center;
    }

    .show-all-players {
        width: 100%;
        padding: 14px;
        font-size: 15px;
    }

    .online-dot {
        width: 9px;
        height: 9px;
        min-width: 9px;
        margin-right: 4px;
    }

    .spawn-title {
        margin: 26px 0 34px;
        font-size: 32px;
    }

    .spawn-gallery {
        gap: 30px;
    }

    .spawn-item {
        padding: 15px;
        border-radius: 14px;
    }

    .spawn-image-container,
    .spawn-main-img {
        max-width: 100%;
        border-radius: 13px;
    }

    .spawn-date {
        margin-top: 10px;
        font-size: 13px;
    }

    .single-button {
        margin: 15px auto 25px;
    }

    .priv-cards {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .priv-card.vip .vip-content,
    .vip-top,
    .priv-header {
        flex-direction: column;
        gap: 10px;
    }

    .vip-price,
    .vip-price-block {
        justify-content: flex-start;
        text-align: left;
    }

    .vip-buy {
        padding: 12px 14px;
        font-size: 14px;
    }

    .vip-shop {
        margin-top: 15px;
    }

    .error-box {
        padding: 8px 10px;
        border-radius: 8px;
        font-size: 12px;
    }

    .vip-input {
        font-size: 14px;
    }

    .input-wrap {
        margin-top: 12px;
    }

    .footer-row {
        flex-direction: column;
        gap: 10px;
    }

    .footer-left,
    .footer-right {
        max-width: 100%;
    }

    .footer-col.right {
        align-items: flex-start;
        text-align: left;
    }

    .footer-disclaimer,
    .footer-cookies {
        text-align: left;
    }

    .footer-cookies {
        font-size: 10px;
        line-height: 1.45;
    }
}

@media (max-width: 560px) {
    .box {
        padding: 16px 10px;
    }

    .server-info,
    .item,
    .priv-card,
    .about-server,
    .payment-info {
        padding: 15px;
    }

    .payment-row {
        flex-direction: column;
        align-items: flex-start;
    }

        .commands {
        gap: 10px;
    }

    .command {
        grid-template-columns: 1fr;
        row-gap: 6px;
        align-items: start;
        min-height: auto;
    }

    .cmd,
    .desc {
        text-align: left;
    }


    .news {
        padding-left: 0;
    }

    .news::before,
    .item::before {
        display: none;
    }

    .news-images {
        gap: 8px;
    }

    .news-thumb {
        width: calc((100vw - 70px) / 4);
        height: calc((100vw - 70px) / 4);
        min-width: 62px;
        min-height: 62px;
        max-width: 76px;
        max-height: 76px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .lightbox-counter {
        bottom: 14px;
    }
        .command-with-note {
        grid-template-areas:
            "cmd"
            "desc"
            "note";
        row-gap: 5px;
        min-height: auto;
    }

    .command-with-note .cmd {
        align-self: start;
    }

    .command-with-note .desc {
        text-align: left;
    }

    .command-with-note .cmd-note {
        justify-content: flex-start;
        text-align: left;
        font-size: 12.5px;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* =========================================================
   FINAL SAFETY POLISH
   Safe overrides only: no class renames, no HTML dependency changes.
   ========================================================= */

/* ==================== Base responsive safety ==================== */
.box,
.server-info,
.item,
.priv-card,
.spawn-item,
.about-server,
.payment-info,
.footer,
.hw404-card {
    max-width: 100%;
}

.title,
.text,
.desc,
.cmd,
.footer,
.payment-row,
.rules-action-item,
.rule-content,
.rule-child,
.vip-features,
.offer-block,
.input-hint,
.error-box {
    overflow-wrap: anywhere;
}

.buttons-vertical a,
.single-button a,
.donate-button,
.show-all-players,
.vip-buy,
.news-more,
.hw404-button {
    white-space: normal;
    touch-action: manipulation;
}

.news-thumb,
.spawn-main-img,
[data-lightbox],
[data-lightbox-group] {
    cursor: zoom-in;
}

html.lightbox-open,
body.lightbox-open,
html.lightbox-open body {
    overflow: hidden;
    overscroll-behavior: none;
}

/* Compatibility: supports both .lightbox-prev/.lightbox-next and .lightbox-nav.prev/.lightbox-nav.next. */
.lightbox-nav.prev {
    left: max(18px, env(safe-area-inset-left));
    transform: translateY(-50%);
}

.lightbox-nav.next {
    right: max(18px, env(safe-area-inset-right));
    transform: translateY(-50%);
}

.lightbox-nav.prev:hover,
.lightbox-nav.next:hover {
    transform: translateY(-50%) scale(1.04);
}

/* ==================== Footer polish ==================== */
.footer {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.035),
        0 14px 32px rgba(0,0,0,0.18);
}

.footer-row {
    min-width: 0;
}

.footer-col {
    min-width: 0;
}

.footer a {
    overflow-wrap: anywhere;
    text-underline-offset: 3px;
}

/* ==================== VIP shop consolidated final state ==================== */
.priv-card.vip-shop,
.priv-card.vip-shop * {
    min-width: 0;
}

.priv-card.vip-shop {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    isolation: isolate;
    overflow: hidden;
}

.vip-shop-hint:empty {
    display: none !important;
}

.priv-card.vip-shop .vip-shop-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
    align-items: stretch;
    gap: 18px;
    width: 100%;
}

.priv-card.vip-shop .vip-shop-title-side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 132px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 224, 138, 0.18);
    border-radius: 18px;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 224, 138, 0.13), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.016)),
        rgba(15, 3, 3, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 14px 34px rgba(0, 0, 0, 0.20);
    overflow: hidden;
}

.priv-card.vip-shop .vip-shop-title-side::before {
    content: "";
    position: absolute;
    right: -42px;
    top: -56px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(255, 224, 138, 0.12);
    filter: blur(4px);
    pointer-events: none;
}

.priv-card.vip-shop .vip-shop-title-side::after {
    content: "VIP";
    position: absolute;
    right: 14px;
    bottom: 10px;
    color: rgba(255, 255, 255, 0.045);
    font-size: 34px;
    font-weight: 950;
    letter-spacing: 0.08em;
    pointer-events: none;
}

.priv-card.vip-shop .vip-shop-label {
    position: relative;
    z-index: 1;
    width: fit-content;
    margin-bottom: 7px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 224, 138, 0.22);
    border-radius: 999px;
    color: var(--gold-0);
    background: rgba(255, 224, 138, 0.075);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.priv-card.vip-shop .vip-title {
    position: relative;
    z-index: 1;
    width: fit-content;
    margin: 0;
    color: #fff4c4;
    font-size: clamp(58px, 8vw, 96px);
    font-weight: 950;
    line-height: 0.82;
    letter-spacing: -0.07em;
    text-align: left;
    text-shadow:
        0 0 14px rgba(255, 224, 138, 0.30),
        0 0 44px rgba(255, 77, 77, 0.20);
}

.priv-card.vip-shop .vip-title::first-letter {
    color: var(--gold-0);
}

.priv-card.vip-shop .vip-price-block {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    min-width: 220px;
    max-width: 100%;
    padding: 18px;
    border: 1px solid rgba(255, 77, 77, 0.18);
    border-radius: 18px;
    text-align: right;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 77, 77, 0.16), transparent 42%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.018)),
        rgba(18, 3, 3, 0.56);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.075),
        0 14px 34px rgba(0, 0, 0, 0.20);
    overflow: hidden;
}

.priv-card.vip-shop .vip-price-block::before {
    content: "PRICE";
    position: absolute;
    left: 14px;
    top: 12px;
    color: rgba(255, 255, 255, 0.055);
    font-size: 21px;
    font-weight: 950;
    letter-spacing: 0.10em;
    pointer-events: none;
}

.priv-card.vip-shop .vip-price-line {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
    max-width: 100%;
}

.priv-card.vip-shop .vip-old-price,
.priv-card.vip-shop .vip-new-price,
.priv-card.vip-shop .vip-discount,
.priv-card.vip-shop .vip-shop-hint,
.priv-card.vip-shop .vip-features,
.priv-card.vip-shop .offer-block,
.priv-card.vip-shop .offer-checkbox label,
.priv-card.vip-shop .input-hint,
.priv-card.vip-shop .error-box {
    overflow-wrap: anywhere;
    word-break: normal;
}

.priv-card.vip-shop .vip-new-price {
    color: #ff5b5b;
    font-size: clamp(32px, 4.4vw, 48px);
    font-weight: 950;
    line-height: 0.96;
    letter-spacing: -0.055em;
    text-shadow:
        0 0 14px rgba(255, 77, 77, 0.28),
        0 0 34px rgba(255, 77, 77, 0.14);
    white-space: nowrap;
}

.priv-card.vip-shop .vip-old-price {
    position: relative;
    z-index: 1;
    width: fit-content;
    color: rgba(255, 255, 255, 0.48);
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.priv-card.vip-shop .vip-duration-text {
    position: relative;
    z-index: 1;
    color: rgba(255, 235, 235, 0.74);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.priv-card.vip-shop .vip-stock-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid rgba(93, 255, 164, 0.22);
    border-radius: 999px;
    color: #dcffe9;
    background: linear-gradient(135deg, rgba(93, 255, 164, 0.115), rgba(255, 255, 255, 0.026));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 24px rgba(93, 255, 164, 0.08);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
}

.priv-card.vip-shop .vip-stock-badge.is-empty {
    color: #ffd2d2;
    border-color: rgba(255, 77, 77, 0.24);
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.105), rgba(255, 255, 255, 0.026));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 24px rgba(255, 77, 77, 0.08);
}

.priv-card.vip-shop .vip-stock-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 999px;
    background: var(--green-0);
    box-shadow: 0 0 12px rgba(93, 255, 164, 0.85);
}

.priv-card.vip-shop .vip-stock-badge.is-empty .vip-stock-dot {
    background: var(--red-0);
    box-shadow: 0 0 12px rgba(255, 77, 77, 0.75);
}

.priv-card.vip-shop .vip-stock-text {
    overflow-wrap: anywhere;
}

.priv-card.vip-shop .vip-input {
    min-height: 50px;
    font-size: 16px;
    line-height: 1.25;
}

.priv-card.vip-shop .vip-buy {
    min-height: 54px;
    touch-action: manipulation;
}

.priv-card.vip-shop .offer-checkbox label {
    min-height: 44px;
    touch-action: manipulation;
}

/* ==================== Tablet responsive polish ==================== */
@media (max-width: 1024px) {
    .box,
    .hw404-main,
    .hw404-footer-slot {
        width: min(100%, 940px);
    }

    .main-server-block {
        grid-template-columns: 1fr;
    }

    .command {
        grid-template-columns: minmax(140px, 170px) minmax(0, 1fr);
        column-gap: 16px;
    }
}

@media (max-width: 950px) {
    .priv-card.vip-shop {
        padding: clamp(18px, 4vw, 24px);
    }

    .priv-card.vip-shop .vip-shop-header {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        text-align: center;
    }

    .priv-card.vip-shop .vip-shop-title-side,
    .priv-card.vip-shop .vip-price-block {
        align-items: center;
        min-width: 0;
        width: 100%;
        text-align: center;
    }

    .priv-card.vip-shop .vip-shop-label,
    .priv-card.vip-shop .vip-title,
    .priv-card.vip-shop .vip-stock-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .priv-card.vip-shop .vip-title {
        text-align: center;
        font-size: clamp(48px, 14vw, 66px);
        line-height: 0.9;
    }

    .priv-card.vip-shop .vip-price-line {
        justify-content: center;
    }

    .priv-card.vip-shop .vip-new-price {
        font-size: clamp(27px, 7vw, 36px);
    }

    .footer {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .box {
        padding: 17px 11px;
    }

    .server-header-with-status {
        flex-wrap: wrap;
    }

    .rules-page {
        max-width: 100%;
    }

    .payment-row {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    body {
        padding-left: 10px;
        padding-right: 10px;
    }

    .box {
        width: 100%;
        padding: 16px 10px;
        border-radius: 18px;
    }

    .logo {
        margin-bottom: 18px;
        font-size: clamp(36px, 15vw, 54px);
        line-height: 0.95;
        letter-spacing: 1.5px;
    }

    .single-button {
        margin-bottom: 18px;
    }

    .single-button a {
        min-height: 46px;
        padding: 12px 14px;
        font-size: 15px;
        line-height: 1.2;
    }

    .priv-card.vip-shop {
        margin-top: 12px !important;
        padding: 15px 11px !important;
        border-left-width: 3px;
        border-radius: 18px;
    }

    .priv-card.vip-shop .vip-shop-header {
        gap: 12px;
    }

    .priv-card.vip-shop .vip-shop-title-side {
        min-height: 116px;
        padding: 15px 13px;
        border-radius: 16px;
    }

    .priv-card.vip-shop .vip-shop-title-side::after {
        right: 10px;
        bottom: 8px;
        font-size: 25px;
    }

    .priv-card.vip-shop .vip-price-block {
        gap: 6px;
        min-width: 0;
        padding: 15px 13px;
        border-radius: 16px;
    }

    .priv-card.vip-shop .vip-shop-label {
        min-height: 28px;
        padding: 6px 10px;
        font-size: 10.5px;
        letter-spacing: 0.07em;
    }

    .priv-card.vip-shop .vip-title {
        font-size: clamp(48px, 17vw, 62px);
        line-height: 0.92;
        text-align: center;
    }

    .priv-card.vip-shop .vip-price-line {
        display: flex;
        justify-content: center;
        gap: 7px;
    }

    .priv-card.vip-shop .vip-old-price {
        font-size: 15px;
        line-height: 1.15;
    }

    .priv-card.vip-shop .vip-new-price {
        font-size: clamp(31px, 10vw, 40px);
        line-height: 1.08;
        letter-spacing: -0.02em;
        white-space: normal;
    }

    .priv-card.vip-shop .vip-discount {
        min-height: 30px;
        padding: 6px 10px;
        font-size: 13px;
        line-height: 1;
    }

    .priv-card.vip-shop .vip-duration-text {
        font-size: 12.5px;
    }

    .priv-card.vip-shop .vip-stock-badge {
        min-height: 36px;
        padding: 8px 11px;
        font-size: 12.5px;
    }

    .priv-card.vip-shop .vip-shop-hint {
        margin: 12px 0 14px;
        padding: 11px 12px;
        border-radius: 13px;
        font-size: 14px;
        line-height: 1.45;
        text-align: center;
    }

    .priv-card.vip-shop .vip-features-panel {
        margin-bottom: 14px;
        padding: 13px 12px;
        border-radius: 16px;
    }

    .priv-card.vip-shop .vip-features {
        padding-left: 18px;
        font-size: 14.5px;
        line-height: 1.62;
    }

    .priv-card.vip-shop .vip-features li + li {
        margin-top: 6px;
    }

    .priv-card.vip-shop .offer-block {
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.45;
    }

    .priv-card.vip-shop .offer-checkbox {
        margin: 7px 0;
    }

    .priv-card.vip-shop .offer-checkbox label {
        align-items: flex-start;
        gap: 10px;
        min-height: 46px;
        padding: 11px;
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.025);
    }

    .priv-card.vip-shop .offer-checkbox label:hover {
        background: rgba(255, 77, 77, 0.055);
    }

    .priv-card.vip-shop .checkmark {
        width: 22px;
        height: 22px;
        min-width: 22px;
        margin-top: 1px;
        border-radius: 7px;
    }

    .priv-card.vip-shop .checkmark::after {
        left: 7px;
        top: 3px;
        width: 5px;
        height: 10px;
    }

    .priv-card.vip-shop .input-wrap {
        margin-top: 12px;
        gap: 6px;
    }

    .priv-card.vip-shop .vip-input {
        min-height: 52px;
        padding: 14px;
        border-radius: 14px;
        font-size: 16px;
        line-height: 1.25;
    }

    .priv-card.vip-shop .input-hint {
        font-size: 12px;
        line-height: 1.45;
    }

    .priv-card.vip-shop .error-slot.show {
        max-height: 150px;
        margin: 10px 0 4px;
    }

    .priv-card.vip-shop .error-box {
        padding: 11px 12px;
        border-radius: 13px;
        font-size: 13px;
        line-height: 1.45;
    }

    .priv-card.vip-shop .vip-buy {
        min-height: 56px;
        margin-top: 14px;
        padding: 15px 16px;
        border-radius: 15px;
        font-size: 16px;
        line-height: 1.15;
        letter-spacing: 0.05em;
    }

    .lightbox-nav.prev {
        left: max(12px, env(safe-area-inset-left));
        transform: none;
    }

    .lightbox-nav.next {
        right: max(12px, env(safe-area-inset-right));
        transform: none;
    }

    .lightbox-nav.prev:hover,
    .lightbox-nav.next:hover {
        transform: scale(1.04);
    }

    .footer {
        margin-top: 30px;
        padding: 15px 13px;
        border-radius: 16px;
    }
}

@media (max-width: 390px) {
    .server-info,
    .item,
    .priv-card,
    .about-server,
    .payment-info {
        padding-left: 13px;
        padding-right: 13px;
    }

    .news-thumb {
        width: calc((100vw - 64px) / 4);
        height: calc((100vw - 64px) / 4);
    }
}

@media (max-width: 360px) {
    body {
        padding-left: 8px;
        padding-right: 8px;
    }

    .box {
        padding-left: 8px;
        padding-right: 8px;
        border-radius: 16px;
    }

    .priv-card.vip-shop {
        padding: 14px 9px !important;
        border-radius: 16px;
    }

    .priv-card.vip-shop .vip-title {
        font-size: 44px;
    }

    .priv-card.vip-shop .vip-new-price {
        font-size: 30px;
    }

    .priv-card.vip-shop .vip-features {
        font-size: 14px;
        line-height: 1.58;
    }

    .priv-card.vip-shop .offer-checkbox label {
        padding: 10px;
    }

    .priv-card.vip-shop .vip-stock-badge {
        white-space: normal;
        text-align: center;
    }
}

@media (hover: none) and (pointer: coarse) {
    .buttons-vertical a:hover,
    .single-button a:hover,
    .show-all-players:hover,
    .donate-button:hover,
    .vip-buy:not(.disabled):hover,
    .news-more:hover,
    .hw404-button:hover,
    .news-thumb:hover,
    .spawn-main-img:hover,
    .item:hover,
    .priv-card:hover,
    .spawn-item:hover {
        transform: none;
        filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* =========================================================
   HARDWORLD DESIGN STAGE 2 — PREMIUM VISUAL POLISH
   Безопасный слой поверх текущего CSS:
   - не удаляет и не переименовывает классы;
   - не требует изменений HTML;
   - усиливает фон, карточки, кнопки, footer, 404 и адаптив;
   - трогает только визуал и responsive-поведение.
   ========================================================= */

:root {
    --bg-0: #030000;
    --bg-1: #080101;
    --bg-2: #170303;

    --surface-0: rgba(14, 3, 3, 0.84);
    --surface-1: rgba(26, 6, 6, 0.80);
    --surface-2: rgba(43, 9, 9, 0.78);
    --surface-solid: #120404;

    --hw-panel-glass: rgba(17, 4, 4, 0.72);
    --hw-panel-deep: rgba(9, 2, 2, 0.88);
    --hw-card-top: rgba(255, 255, 255, 0.060);
    --hw-card-bottom: rgba(255, 255, 255, 0.014);
    --hw-red-glow-soft: rgba(255, 58, 58, 0.145);
    --hw-red-glow-mid: rgba(255, 58, 58, 0.235);
    --hw-gold-glow-soft: rgba(255, 206, 93, 0.105);
    --hw-green-glow-soft: rgba(93, 255, 164, 0.100);

    --border-soft: rgba(255, 133, 133, 0.145);
    --border-mid: rgba(255, 101, 101, 0.275);
    --border-strong: rgba(255, 73, 73, 0.50);
    --hw-inner-line: rgba(255, 255, 255, 0.055);
    --hw-inner-line-strong: rgba(255, 255, 255, 0.085);

    --text-main: #fff1f1;
    --text-soft: #dec0c0;
    --text-muted: #aa7b7b;
    --text-dim: #7f5757;

    --red-0: #ff5656;
    --red-1: #e23838;
    --red-2: #ad1919;
    --red-3: #630909;

    --radius-xs: 9px;
    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 26px;

    --shadow-soft: 0 22px 64px rgba(0, 0, 0, 0.42);
    --shadow-red: 0 24px 72px rgba(255, 0, 0, 0.145);
    --shadow-premium: 0 24px 70px rgba(0, 0, 0, 0.40), 0 0 0 1px rgba(255, 255, 255, 0.024) inset;
    --shadow-card-hover: 0 20px 44px rgba(0, 0, 0, 0.30), 0 0 34px rgba(255, 55, 55, 0.080);
    --shadow-red-button: 0 18px 42px rgba(255, 45, 45, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    --shadow-green-button: 0 18px 40px rgba(36, 200, 115, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.17);
    --shadow-gold-button: 0 18px 40px rgba(224, 184, 71, 0.19), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

/* ==================== Stage 2 base safety ==================== */
html {
    min-width: 0;
    background: #030000;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 0;
    isolation: isolate;
    text-rendering: geometricPrecision;
    background:
        radial-gradient(circle at 14% 7%, rgba(255, 78, 78, 0.190), transparent 28%),
        radial-gradient(circle at 83% 12%, rgba(255, 188, 96, 0.090), transparent 27%),
        radial-gradient(circle at 72% 78%, rgba(115, 0, 0, 0.260), transparent 36%),
        radial-gradient(circle at 50% 108%, rgba(255, 42, 42, 0.120), transparent 42%),
        linear-gradient(135deg, #020000 0%, #080101 34%, #160303 68%, #060000 100%);
}

body::before {
    background:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px),
        radial-gradient(circle at 30% 18%, rgba(255, 75, 75, 0.075), transparent 36%);
    background-size: 54px 54px, 54px 54px, auto;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.64), rgba(0,0,0,0.34) 40%, transparent 86%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.64), rgba(0,0,0,0.34) 40%, transparent 86%);
}

body::after {
    background:
        radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.20) 54%, rgba(0, 0, 0, 0.64) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 18%, rgba(0, 0, 0, 0.18));
}

body,
.box,
.footer,
.hw404-card,
.players-modal,
.lightbox-close,
.lightbox-nav {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main,
section,
article,
.box,
.footer,
.hw404-main,
.hw404-footer-slot {
    min-width: 0;
}

p,
.text,
.desc,
.about-server,
.rule-content p,
.rule-child p,
.payment-row,
.footer-cookies,
.footer-disclaimer {
    line-height: 1.68;
}

/* ==================== Main shell / premium glass ==================== */
.box {
    border-color: rgba(255, 118, 118, 0.17);
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 77, 77, 0.105), transparent 34%),
        radial-gradient(circle at 88% 0%, rgba(255, 188, 96, 0.050), transparent 30%),
        linear-gradient(180deg, var(--hw-card-top), var(--hw-card-bottom)),
        rgba(13, 3, 3, 0.82);
    box-shadow:
        var(--shadow-premium),
        0 26px 80px rgba(0, 0, 0, 0.38),
        0 0 80px rgba(255, 0, 0, 0.075);
}

.box::before {
    background:
        linear-gradient(120deg, rgba(255, 95, 95, 0.155), transparent 25%, transparent 72%, rgba(255, 174, 88, 0.075)),
        linear-gradient(180deg, rgba(255,255,255,0.035), transparent 30%);
    opacity: 0.86;
}

.box::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: 12px;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.155), transparent);
    pointer-events: none;
}

.logo {
    color: #fff4f4;
    letter-spacing: clamp(1px, 0.52vw, 4px);
    text-shadow:
        0 0 16px rgba(255, 66, 66, 0.42),
        0 0 52px rgba(255, 0, 0, 0.20),
        0 7px 22px rgba(0, 0, 0, 0.42);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .logo {
        color: transparent;
        background: linear-gradient(180deg, #fff7f7 0%, #ffd2d2 42%, #ff6060 100%);
        background-clip: text;
        -webkit-background-clip: text;
    }

    .logo::first-letter {
        color: transparent;
    }
}

/* ==================== Header / status polish ==================== */
.server-header,
.server-header-with-status > span {
    color: #e8caca;
    text-shadow: 0 0 18px rgba(255, 77, 77, 0.10);
}

.server-header-with-status {
    padding: 8px 10px;
    border: 1px solid rgba(255, 118, 118, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.020);
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.server-status-badge {
    border-color: rgba(93, 255, 164, 0.22);
    background:
        linear-gradient(135deg, rgba(93, 255, 164, 0.125), rgba(255, 255, 255, 0.026));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 20px rgba(93, 255, 164, 0.09);
}

.server-status-badge:hover {
    border-color: rgba(93, 255, 164, 0.40);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 10px 24px rgba(93, 255, 164, 0.11);
}

/* ==================== Server info / main block ==================== */
.main-server-block {
    gap: clamp(14px, 2.2vw, 22px);
}

.server-info {
    border-color: rgba(255, 112, 112, 0.25);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 75, 75, 0.17), transparent 38%),
        radial-gradient(circle at 0% 100%, rgba(93, 255, 164, 0.060), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.014)),
        rgba(15, 3, 3, 0.78);
    box-shadow:
        inset 0 1px 0 var(--hw-inner-line-strong),
        0 18px 42px rgba(0,0,0,0.25);
}

.server-info::before {
    background: rgba(255, 62, 62, 0.16);
    filter: blur(12px);
}

.server-info:hover {
    border-color: rgba(255, 112, 112, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.09),
        0 22px 52px rgba(0,0,0,0.28),
        0 0 34px rgba(255, 42, 42, 0.055);
}

.server-info strong {
    color: #ffd0d0;
}

.green-ip,
.online-count,
.inline-command,
.cmd {
    text-shadow: 0 0 14px rgba(93, 255, 164, 0.18);
}

/* ==================== Buttons / links ==================== */
.buttons-vertical a,
.single-button a,
.donate-button,
.show-all-players,
.vip-buy,
.news-more,
.hw404-button {
    isolation: isolate;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.buttons-vertical a,
.single-button a,
.show-all-players {
    border: 1px solid rgba(93, 255, 164, 0.18);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.14), transparent 42%),
        linear-gradient(135deg, #35dd82 0%, #1fa765 48%, #12643d 100%);
    box-shadow: var(--shadow-green-button);
}

.donate-button,
.hw404-button {
    border: 1px solid rgba(255, 112, 112, 0.22);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.15), transparent 42%),
        linear-gradient(135deg, #ff5a5a 0%, #d72222 47%, #780909 100%);
    box-shadow: var(--shadow-red-button);
}

.vip-buy {
    border: 1px solid rgba(255, 224, 138, 0.24);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.20), transparent 44%),
        linear-gradient(135deg, #ffe99d 0%, #e7b947 48%, #bd7720 100%);
    box-shadow: var(--shadow-gold-button);
}

.news-more {
    border-color: rgba(255, 118, 118, 0.22);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.018)),
        rgba(14, 4, 4, 0.88);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 12px 26px rgba(0,0,0,0.22);
}

.buttons-vertical a:hover,
.single-button a:hover,
.show-all-players:hover,
.donate-button:hover,
.vip-buy:not(.disabled):hover,
.news-more:hover,
.hw404-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.075) saturate(1.035);
}

.buttons-vertical a:focus-visible,
.single-button a:focus-visible,
.donate-button:focus-visible,
.show-all-players:focus-visible,
.vip-buy:focus-visible,
.news-more:focus-visible,
.hw404-button:focus-visible,
.footer a:focus-visible,
.offer-text a:focus-visible,
.offer-checkbox a:focus-visible,
.rules-contact a:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring), 0 0 0 1px rgba(255,255,255,0.045) inset;
}

.footer a,
.offer-text a,
.offer-checkbox a,
.rules-contact a {
    transition:
        color 0.18s ease,
        text-decoration-color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

/* ==================== Cards / content hierarchy ==================== */
.item,
.priv-card,
.spawn-item,
.about-server,
.payment-info,
.rule-card,
.rules-admin-note,
.rules-contact,
.skytrader-point,
.skytrader-type-line,
.skytrader-small-note,
.vip-features-panel,
.hw404-url {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.050),
        0 14px 34px rgba(0,0,0,0.22);
}

.item,
.priv-card,
.spawn-item,
.about-server,
.payment-info {
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 77, 77, 0.075), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.050), rgba(255,255,255,0.014)),
        rgba(24, 5, 5, 0.78);
}

.item:hover,
.priv-card:hover,
.spawn-item:hover,
.skytrader-point:hover,
.skytrader-type-line:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 118, 118, 0.30);
    box-shadow: var(--shadow-card-hover);
}

.title,
.priv-card h2,
.payment-title,
.rule-content h2,
.rules-admin-note .title,
.skytrader-info h3 {
    color: #ffe6e6;
    letter-spacing: -0.015em;
}

.news-title,
.spawn-title {
    letter-spacing: 0.025em;
    text-shadow:
        0 0 24px rgba(255, 42, 42, 0.26),
        0 8px 24px rgba(0, 0, 0, 0.32);
}

.news::before {
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(to bottom, transparent, rgba(255, 77, 77, 0.44), rgba(255, 224, 138, 0.22), transparent);
}

.item::before {
    box-shadow:
        0 0 0 5px rgba(255, 77, 77, 0.10),
        0 0 18px rgba(255, 77, 77, 0.82),
        0 0 34px rgba(255, 77, 77, 0.22);
}

.date,
.players-label,
.rules-hero-kicker,
.rules-note-kicker,
.vip-shop-label,
.skytrader-mini-label {
    letter-spacing: 0.10em;
}

.about-server b,
.payment-row strong,
.text b,
.rule-content b,
.rule-child b {
    color: #ffe3e3;
}

/* ==================== Commands / online players ==================== */
.command {
    border-color: rgba(255, 118, 118, 0.135);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.042), rgba(255,255,255,0.012)),
        rgba(27, 5, 5, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.042),
        0 10px 26px rgba(0,0,0,0.16);
}

.command:hover {
    border-color: rgba(255, 118, 118, 0.24);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.054), rgba(255,255,255,0.016)),
        rgba(34, 7, 7, 0.80);
}

.player-tag,
.more-players {
    border-color: rgba(255,255,255,0.11);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
}

.player-tag:hover,
.more-players:hover {
    border-color: rgba(255, 118, 118, 0.22);
}

/* ==================== VIP shop visual upgrade ==================== */
.priv-card.vip-shop {
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 224, 138, 0.145), transparent 34%),
        radial-gradient(circle at 96% 7%, rgba(93, 255, 164, 0.080), transparent 28%),
        radial-gradient(circle at 50% 115%, rgba(255, 77, 77, 0.105), transparent 38%),
        linear-gradient(145deg, rgba(41, 8, 8, 0.93), rgba(12, 3, 3, 0.98));
    box-shadow:
        0 24px 68px rgba(0, 0, 0, 0.40),
        0 14px 40px rgba(255, 0, 0, 0.115),
        inset 0 1px 0 rgba(255, 255, 255, 0.060);
}

.priv-card.vip-shop::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 224, 138, 0.070), transparent 24%, transparent 78%, rgba(255, 77, 77, 0.060));
    opacity: 0.9;
    z-index: -1;
}

.vip-features-panel,
.priv-card.vip-shop .offer-checkbox label,
.vip-shop-hint,
.priv-card.vip-shop .vip-stock-badge-under {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.050);
}

.vip-input {
    border-color: rgba(255,255,255,0.145);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.030), rgba(255,255,255,0.006)),
        rgba(0,0,0,0.38);
}

.vip-input:hover {
    border-color: rgba(255, 224, 138, 0.32);
}

/* ==================== Rules page polish ==================== */
.rules-hero {
    border-color: rgba(255, 96, 96, 0.22);
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 77, 77, 0.18), transparent 34%),
        radial-gradient(circle at 90% 12%, rgba(255, 224, 138, 0.095), transparent 32%),
        linear-gradient(145deg, rgba(45, 8, 8, 0.86), rgba(10, 2, 2, 0.88));
}

.rules-hero::after {
    color: rgba(255,255,255,0.045);
}

.rule-number,
.rule-subnumber,
.penalty,
.rule-punishment-title {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.055);
}

/* ==================== Footer stage 2 ==================== */
.footer {
    position: relative;
    margin-top: clamp(34px, 5vw, 54px);
    padding: clamp(18px, 2.6vw, 24px);
    border-color: rgba(255, 118, 118, 0.16);
    border-radius: 20px;
    color: #a97979;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 77, 77, 0.085), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.042), rgba(255,255,255,0.012)),
        rgba(7, 2, 2, 0.82);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.050),
        0 18px 42px rgba(0,0,0,0.25),
        0 -1px 0 rgba(255, 77, 77, 0.055);
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 118, 118, 0.30), transparent);
    pointer-events: none;
}

.footer-row {
    position: relative;
    z-index: 1;
    gap: 22px;
}

.footer-col {
    gap: 7px;
}

.footer-col.left > div:first-child,
.footer-left > div:first-child {
    color: #d2a0a0;
    font-weight: 850;
}

.footer a {
    width: fit-content;
    max-width: 100%;
    color: #d89595;
    border-bottom: 1px solid rgba(216, 149, 149, 0.24);
    text-decoration: none;
}

.footer a:hover {
    color: #fff1f1;
    border-bottom-color: rgba(255, 86, 86, 0.82);
}

.footer-disclaimer,
.footer-cookies {
    position: relative;
    z-index: 1;
    border-top-color: rgba(255, 118, 118, 0.13);
}

.footer-disclaimer {
    color: #b77a7a;
}

.footer-cookies {
    color: #835d5d;
}

/* ==================== 404 page stage 2 ==================== */
body.not-found-page {
    background:
        radial-gradient(circle at 16% 7%, rgba(255, 64, 64, 0.18), transparent 30%),
        radial-gradient(circle at 84% 14%, rgba(255, 188, 96, 0.080), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(123, 0, 0, 0.30), transparent 42%),
        linear-gradient(135deg, #020000 0%, #0a0101 40%, #1a0303 100%);
}

.hw404-main {
    min-height: min(640px, calc(100vh - 220px));
}

.hw404-card {
    width: min(620px, 100%);
    border-color: rgba(255, 118, 118, 0.18);
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 77, 77, 0.14), transparent 34%),
        radial-gradient(circle at 92% 10%, rgba(255, 224, 138, 0.065), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.056), rgba(255,255,255,0.016)),
        rgba(13, 3, 3, 0.86);
    box-shadow:
        0 26px 80px rgba(0, 0, 0, 0.44),
        0 0 74px rgba(255, 0, 0, 0.115),
        inset 0 1px 0 rgba(255,255,255,0.060);
}

.hw404-card::before {
    background:
        linear-gradient(120deg, rgba(255, 77, 77, 0.16), transparent 29%, transparent 72%, rgba(255, 144, 64, 0.08)),
        linear-gradient(180deg, rgba(255,255,255,0.028), transparent 34%);
}

.hw404-card::after {
    content: "404";
    position: absolute;
    right: -24px;
    bottom: -16px;
    color: rgba(255,255,255,0.034);
    font-size: clamp(84px, 20vw, 160px);
    font-weight: 950;
    line-height: 0.8;
    letter-spacing: -0.10em;
    pointer-events: none;
}

.hw404-brand {
    color: #d9baba;
}

.hw404-code {
    color: #fff4f4;
    text-shadow:
        0 0 18px rgba(255, 66, 66, 0.38),
        0 0 54px rgba(255, 0, 0, 0.20),
        0 10px 26px rgba(0,0,0,0.36);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .hw404-code {
        color: transparent;
        background: linear-gradient(180deg, #fff7f7 0%, #ffbaba 42%, #ff5656 100%);
        background-clip: text;
        -webkit-background-clip: text;
    }
}

.hw404-title {
    color: #fff0f0;
}

.hw404-url {
    border-color: rgba(255, 118, 118, 0.14);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.030), rgba(255,255,255,0.010)),
        rgba(0, 0, 0, 0.26);
}

/* ==================== Modal / lightbox small polish ==================== */
.players-modal,
.lightbox-img {
    box-shadow:
        0 26px 76px rgba(0,0,0,0.62),
        0 0 0 1px rgba(255,255,255,0.075),
        0 0 58px rgba(255, 0, 0, 0.10);
}

.players-modal-header {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.050), rgba(255,255,255,0.015)),
        rgba(18, 4, 4, 0.72);
}

.players-modal-item {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.040), rgba(255,255,255,0.012)),
        rgba(255,255,255,0.020);
}

/* ==================== Desktop / laptop checks ==================== */
@media (min-width: 1200px) {
    .box {
        width: min(100%, 1020px);
    }

    .rules-page {
        max-width: 1100px;
    }

    .spawn-gallery {
        max-width: 1120px;
    }
}

@media (max-width: 1366px) and (min-width: 951px) {
    body {
        padding-top: clamp(22px, 3vw, 36px);
        padding-bottom: clamp(22px, 3vw, 36px);
    }

    .box {
        padding: clamp(22px, 3vw, 34px);
    }
}

/* ==================== Tablet responsive polish ==================== */
@media (max-width: 1024px) {
    body {
        padding-left: clamp(10px, 2vw, 18px);
        padding-right: clamp(10px, 2vw, 18px);
    }

    .box,
    .hw404-main,
    .hw404-footer-slot {
        width: min(100%, 960px);
    }

    .main-server-block {
        gap: 14px;
    }

    .server-header-with-status {
        border-radius: 18px;
    }

    .footer {
        border-radius: 18px;
    }
}

@media (max-width: 820px) {
    .box {
        padding: clamp(16px, 2.6vw, 20px);
    }

    .news-title {
        margin-top: 34px;
    }

    .command {
        grid-template-columns: minmax(130px, 160px) minmax(0, 1fr);
    }

    .rules-hero,
    .rules-admin-note,
    .rules-contact {
        border-radius: 18px;
    }
}

/* ==================== Mobile responsive polish ==================== */
@media (max-width: 560px) {
    body,
    body.not-found-page {
        padding: 12px 9px;
    }

    .box {
        padding: 15px 10px;
        border-radius: 18px;
    }

    .box::after {
        left: 12px;
        right: 12px;
    }

    .logo {
        font-size: clamp(36px, 14vw, 52px);
        letter-spacing: 1.2px;
    }

    .server-header-with-status {
        width: 100%;
        justify-content: center;
        padding: 9px 10px;
        border-radius: 16px;
    }

    .server-header-with-status > span {
        font-size: 16px;
    }

    .server-status-badge {
        min-height: 28px;
        padding: 6px 9px;
    }

    .server-info,
    .item,
    .priv-card,
    .spawn-item,
    .about-server,
    .payment-info {
        border-radius: 16px;
    }

    .buttons-vertical a,
    .single-button a,
    .donate-button,
    .show-all-players,
    .vip-buy,
    .news-more,
    .hw404-button {
        min-height: 48px;
        border-radius: 14px;
    }

    .news-title,
    .spawn-title {
        text-align: center;
    }

    .footer {
        margin-top: 28px;
        padding: 15px 13px;
        border-radius: 16px;
    }

    .footer-row {
        gap: 12px;
    }

    .footer a {
        width: fit-content;
        max-width: 100%;
        line-height: 1.45;
    }

    .footer-disclaimer,
    .footer-cookies {
        margin-top: 11px;
        padding-top: 10px;
    }

    .hw404-main {
        min-height: auto;
        padding-top: 16px;
    }

    .hw404-card {
        border-radius: 18px;
    }

    .hw404-url {
        font-size: 12.5px;
    }
}

@media (max-width: 430px) {
    .server-header-with-status {
        gap: 7px;
    }

    .server-header-with-status > span {
        width: 100%;
        text-align: center;
    }

    .payment-notes {
        font-size: 12px;
    }

    .players-modal-list {
        padding: 12px;
    }

    .players-modal-item {
        border-radius: 13px;
    }

    .hw404-code {
        font-size: clamp(76px, 26vw, 112px);
    }
}

@media (max-width: 393px) {
    .box {
        padding-left: 9px;
        padding-right: 9px;
    }

    .server-info,
    .item,
    .priv-card,
    .about-server,
    .payment-info,
    .spawn-item {
        padding-left: 13px;
        padding-right: 13px;
    }

    .footer {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 360px) {
    body,
    body.not-found-page {
        padding-left: 7px;
        padding-right: 7px;
    }

    .logo {
        font-size: 38px;
    }

    .server-header-with-status {
        padding-left: 8px;
        padding-right: 8px;
    }

    .server-info,
    .item,
    .priv-card,
    .about-server,
    .payment-info,
    .spawn-item {
        padding-left: 11px;
        padding-right: 11px;
    }

    .buttons-vertical a,
    .single-button a,
    .donate-button,
    .show-all-players,
    .vip-buy,
    .news-more,
    .hw404-button {
        font-size: 14px;
    }
}

/* ==================== Fallbacks / reduced capabilities ==================== */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .box,
    .footer,
    .players-modal,
    .lightbox-close,
    .lightbox-nav,
    .server-info,
    .hw404-card {
        background-color: rgba(13, 3, 3, 0.96);
    }
}

@media (hover: none) and (pointer: coarse) {
    .server-info:hover,
    .command:hover,
    .player-tag:hover,
    .more-players:hover,
    .skytrader-point:hover,
    .skytrader-type-line:hover {
        transform: none;
        box-shadow: inherit;
    }
}

/* =========================================================
   HARDWORLD DESIGN STAGE 3 — SAFE PREMIUM UPGRADE
   Вставлять в самый конец styles.css.
   Без HTML/JS-изменений: только визуал, адаптив, читаемость.
   ========================================================= */

:root {
    --hw-stage3-bg-ink: #020000;
    --hw-stage3-bg-blood: #1a0303;
    --hw-stage3-surface: rgba(17, 4, 4, 0.86);
    --hw-stage3-surface-strong: rgba(28, 6, 6, 0.88);
    --hw-stage3-stroke: rgba(255, 118, 118, 0.18);
    --hw-stage3-stroke-hot: rgba(255, 78, 78, 0.34);
    --hw-stage3-glow-red: rgba(255, 52, 52, 0.16);
    --hw-stage3-glow-green: rgba(93, 255, 164, 0.13);
    --hw-stage3-glow-gold: rgba(255, 216, 119, 0.13);
    --hw-stage3-card-shadow: 0 18px 52px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.055);
    --hw-stage3-card-shadow-hover: 0 24px 68px rgba(0, 0, 0, 0.44), 0 0 38px rgba(255, 48, 48, 0.075), inset 0 1px 0 rgba(255, 255, 255, 0.075);
    --hw-stage3-button-shine: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.035) 44%, transparent);
    --hw-stage3-danger-gradient: linear-gradient(135deg, #ff5050 0%, #d71f1f 46%, #7f0909 100%);
    --hw-stage3-green-gradient: linear-gradient(135deg, #41df86 0%, #1ea966 54%, #11633c 100%);
    --hw-stage3-dark-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014)), rgba(15, 3, 3, 0.82);
}

/* ==================== Safety / page depth ==================== */
html {
    min-width: 0;
    overflow-x: clip;
    background: var(--hw-stage3-bg-ink);
}

body {
    min-width: 0;
    padding-top: max(clamp(18px, 3.5vw, 44px), env(safe-area-inset-top));
    padding-right: max(clamp(10px, 2.6vw, 24px), env(safe-area-inset-right));
    padding-bottom: max(clamp(18px, 3.5vw, 44px), env(safe-area-inset-bottom));
    padding-left: max(clamp(10px, 2.6vw, 24px), env(safe-area-inset-left));
    overflow-x: clip;
    background:
        radial-gradient(circle at 12% 5%, rgba(255, 70, 70, 0.20), transparent 29%),
        radial-gradient(circle at 86% 11%, rgba(255, 191, 100, 0.09), transparent 27%),
        radial-gradient(circle at 80% 78%, rgba(125, 0, 0, 0.23), transparent 35%),
        radial-gradient(circle at 47% 112%, rgba(255, 42, 42, 0.16), transparent 42%),
        linear-gradient(135deg, #010000 0%, #070101 34%, #170303 72%, #040000 100%);
}

body::before {
    background:
        linear-gradient(rgba(255, 255, 255, 0.020) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.020) 1px, transparent 1px),
        radial-gradient(circle at 50% 0%, rgba(255, 70, 70, 0.055), transparent 42%);
    background-size: 54px 54px, 54px 54px, 100% 100%;
    opacity: 0.88;
}

body::after {
    background:
        radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.20) 55%, rgba(0, 0, 0, 0.58) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.20));
}

.box,
.hw404-card {
    animation: hwStage3PageIn 0.52s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hwStage3PageIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Main container / logo ==================== */
.box {
    width: min(100%, 1040px);
    border-color: rgba(255, 122, 122, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.016)),
        linear-gradient(135deg, rgba(255, 45, 45, 0.040), transparent 36%, rgba(255, 210, 120, 0.028)),
        rgba(13, 3, 3, 0.86);
    box-shadow:
        0 28px 88px rgba(0, 0, 0, 0.50),
        0 0 72px rgba(255, 36, 36, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.065),
        inset 0 -1px 0 rgba(255, 255, 255, 0.030);
}

.box::before {
    background:
        linear-gradient(120deg, rgba(255, 86, 86, 0.17), transparent 26%, transparent 68%, rgba(255, 180, 88, 0.10)),
        radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.055), transparent 34%);
    opacity: 0.78;
}

.box::after {
    content: "";
    position: absolute;
    left: clamp(16px, 3vw, 30px);
    right: clamp(16px, 3vw, 30px);
    top: 0;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 145, 145, 0.50), transparent);
    pointer-events: none;
}

.logo {
    margin-bottom: clamp(20px, 3vw, 30px);
    font-size: clamp(40px, 7.8vw, 82px);
    letter-spacing: clamp(1px, 0.48vw, 5.5px);
    text-wrap: balance;
    filter: drop-shadow(0 0 18px rgba(255, 52, 52, 0.18));
}

.logo::first-letter {
    color: #ff5b5b;
    text-shadow:
        0 0 16px rgba(255, 65, 65, 0.62),
        0 0 42px rgba(255, 0, 0, 0.28);
}

/* ==================== Buttons / links ==================== */
.buttons-vertical a,
.single-button a,
.donate-button,
.show-all-players,
.vip-buy,
.news-more,
.hw404-button {
    isolation: isolate;
    touch-action: manipulation;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    border: 1px solid rgba(255, 255, 255, 0.070);
    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.buttons-vertical a,
.single-button a,
.show-all-players {
    background: var(--hw-stage3-green-gradient);
    box-shadow:
        0 18px 42px rgba(36, 200, 115, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.donate-button,
.vip-buy,
.hw404-button {
    background: var(--hw-stage3-danger-gradient);
    box-shadow:
        0 20px 46px rgba(255, 40, 40, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.news-more {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
        rgba(15, 3, 3, 0.92);
}

.buttons-vertical a::before,
.single-button a::before,
.donate-button::before,
.show-all-players::before,
.vip-buy::before,
.news-more::before,
.hw404-button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--hw-stage3-button-shine);
    pointer-events: none;
}

.buttons-vertical a:hover,
.single-button a:hover,
.show-all-players:hover,
.donate-button:hover,
.vip-buy:not(.disabled):hover,
.news-more:hover,
.hw404-button:hover {
    border-color: rgba(255, 255, 255, 0.13);
    box-shadow:
        0 22px 52px rgba(0, 0, 0, 0.34),
        0 0 28px rgba(255, 55, 55, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.vip-buy.disabled,
.vip-buy:disabled,
button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.18) brightness(0.74);
    opacity: 0.66;
    transform: none;
}

/* ==================== Main page / server block ==================== */
.main-server-block {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.95fr);
    gap: clamp(14px, 2.4vw, 22px);
}

.server-info {
    border-color: rgba(255, 120, 120, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 80, 80, 0.090), rgba(255, 255, 255, 0.016)),
        radial-gradient(circle at 100% 0%, rgba(255, 69, 69, 0.16), transparent 34%),
        rgba(17, 4, 4, 0.84);
    box-shadow: var(--hw-stage3-card-shadow);
}

.server-info p,
.online-count,
.green-ip,
.restart,
.server-status-badge,
.players-modal-item,
.player-tag,
.more-players {
    overflow-wrap: anywhere;
}

.server-header-with-status {
    justify-content: space-between;
    width: 100%;
    padding: 8px 9px 8px 12px;
    border: 1px solid rgba(255, 118, 118, 0.10);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.12);
}

.server-status-badge {
    min-height: 28px;
    box-shadow: 0 0 18px rgba(93, 255, 164, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.online-block {
    padding: 12px;
    border: 1px solid rgba(93, 255, 164, 0.11);
    border-radius: var(--radius-sm);
    background: rgba(93, 255, 164, 0.038);
}

.online-row {
    margin-top: 6px;
}

/* ==================== Cards / content blocks ==================== */
.item,
.priv-card,
.about-server,
.payment-info,
.spawn-item,
.rule-card,
.rules-admin-note,
.rules-contact,
.skytrader-point,
.skytrader-type-line,
.vip-features-panel {
    border-color: var(--hw-stage3-stroke);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.012)),
        radial-gradient(circle at 100% 0%, rgba(255, 69, 69, 0.075), transparent 36%),
        var(--hw-stage3-surface);
    box-shadow: var(--hw-stage3-card-shadow);
}

.item:hover,
.priv-card:hover,
.about-server:hover,
.payment-info:hover,
.spawn-item:hover,
.rule-card:hover,
.skytrader-point:hover,
.skytrader-type-line:hover {
    border-color: rgba(255, 112, 112, 0.28);
    box-shadow: var(--hw-stage3-card-shadow-hover);
}

.news-title,
.spawn-title,
.payment-title,
.vip-title,
.rule-content h2,
.skytrader-info h3 {
    text-wrap: balance;
}

.news-title {
    position: relative;
    padding-left: 16px;
}

.news-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(to bottom, #ff6969, #8d1010);
    box-shadow: 0 0 18px rgba(255, 77, 77, 0.36);
}

.text,
.about-server,
.rule-child p,
.rule-content p,
.skytrader-point p,
.skytrader-type-line p,
.footer,
.footer-cookies,
.footer-disclaimer,
.payment-row,
.payment-notes,
.input-hint {
    line-height: 1.68;
}

.title,
.text,
.desc,
.cmd,
.about-server,
.payment-row,
.payment-notes,
.rules-action-item,
.rule-content,
.rule-child,
.rule-punishment,
.vip-features,
.offer-block,
.input-hint,
.error-slot,
.footer,
.hw404-url,
#current-url,
#pi-rid,
.rid {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* ==================== News images / gallery / lightbox ==================== */
.news-images,
.spawn-gallery {
    min-width: 0;
}

.news-thumb,
.spawn-main-img {
    background: rgba(0, 0, 0, 0.26);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.30);
}

.news-thumb:hover,
.spawn-main-img:hover {
    border-color: rgba(255, 95, 95, 0.46);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38), 0 0 28px rgba(255, 48, 48, 0.12);
}

.spawn-gallery {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(14px, 2vw, 20px);
}

.spawn-date {
    color: #f1c7c7;
}

.lightbox-overlay {
    padding: max(18px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

.lightbox-img {
    border-color: rgba(255, 120, 120, 0.24);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.60), 0 0 52px rgba(255, 45, 45, 0.13);
}

/* ==================== VIP shop ==================== */
.vip-shop {
    border-left-color: var(--red-0);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 70, 70, 0.14), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.014)),
        rgba(20, 4, 4, 0.88);
}

.vip-shop-header {
    gap: clamp(14px, 2.2vw, 22px);
}

.vip-shop-label,
.vip-duration-text,
.vip-stock-text {
    letter-spacing: 0.07em;
}

.vip-price-block {
    border-color: rgba(255, 88, 88, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
        rgba(0, 0, 0, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.vip-new-price {
    text-shadow:
        0 0 22px rgba(255, 48, 48, 0.34),
        0 0 56px rgba(255, 48, 48, 0.15);
}

.vip-shop-hint,
.error-slot,
.input-wrap,
.offer-checkbox label {
    min-width: 0;
    max-width: 100%;
}

.vip-input {
    min-height: 48px;
    border-color: rgba(255, 130, 130, 0.18);
    background: rgba(0, 0, 0, 0.20);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.vip-input:focus {
    border-color: rgba(93, 255, 164, 0.34);
    box-shadow: 0 0 0 3px rgba(93, 255, 164, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.offer-checkbox label {
    border-color: rgba(255, 118, 118, 0.13);
    background: rgba(255, 255, 255, 0.025);
}

/* ==================== Rules page ==================== */
.rules-tree {
    gap: clamp(14px, 2vw, 20px);
}

.rule-card {
    overflow: hidden;
}

.rule-main {
    gap: clamp(12px, 2vw, 18px);
}

.rule-number {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 0 20px rgba(255, 60, 60, 0.11);
}

.rule-child {
    border-color: rgba(255, 118, 118, 0.11);
    background: rgba(0, 0, 0, 0.14);
}

.rule-punishment {
    border-top-color: rgba(255, 118, 118, 0.12);
}

.penalty {
    min-width: 0;
    overflow-wrap: anywhere;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ==================== Payment page ==================== */
.payment-info {
    width: min(100%, 720px);
    margin-left: auto;
    margin-right: auto;
}

.payment-title {
    letter-spacing: 0.04em;
}

.payment-row {
    gap: 14px;
    border-bottom-color: rgba(255, 118, 118, 0.10);
}

.payment-row span:last-child {
    text-align: right;
}

.payment-notes {
    display: grid;
    gap: 8px;
    width: min(100%, 720px);
    margin: 16px auto 0;
    padding: 14px 16px;
    border: 1px solid rgba(255, 216, 119, 0.13);
    border-radius: var(--radius-sm);
    background: rgba(255, 216, 119, 0.040);
    color: var(--text-soft);
    text-align: left;
}

.dots-wrap .dot,
.dot {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.14);
}

/* ==================== Footer ==================== */
.footer {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 118, 118, 0.15);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.050), rgba(255, 255, 255, 0.012)),
        radial-gradient(circle at 0% 0%, rgba(255, 72, 72, 0.10), transparent 34%),
        rgba(10, 2, 2, 0.86);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.060);
}

.footer::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 120, 120, 0.38), transparent);
    pointer-events: none;
}

.footer-row {
    align-items: flex-start;
}

.footer-col.left,
.footer-col.right {
    min-width: 0;
}

.footer a {
    border-radius: 10px;
    text-underline-offset: 4px;
}

.footer a:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.footer-disclaimer,
.footer-cookies {
    border-top-color: rgba(255, 118, 118, 0.11);
}

/* ==================== 404 page ==================== */
body.not-found-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100dvh;
    background:
        radial-gradient(circle at 50% 6%, rgba(255, 68, 68, 0.18), transparent 30%),
        radial-gradient(circle at 82% 74%, rgba(255, 180, 80, 0.075), transparent 32%),
        linear-gradient(135deg, #010000 0%, #0b0101 42%, #180303 100%);
}

.hw404-main {
    width: min(100%, 760px);
    min-height: auto;
}

.hw404-card {
    border-color: rgba(255, 118, 118, 0.22);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 77, 77, 0.15), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.060), rgba(255, 255, 255, 0.014)),
        rgba(14, 3, 3, 0.90);
    box-shadow: 0 28px 86px rgba(0, 0, 0, 0.52), 0 0 70px rgba(255, 35, 35, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.070);
}

.hw404-code {
    color: #fff;
    text-shadow:
        0 0 20px rgba(255, 55, 55, 0.56),
        0 0 58px rgba(255, 0, 0, 0.25);
}

.hw404-url {
    border-color: rgba(255, 118, 118, 0.14);
    background: rgba(0, 0, 0, 0.18);
}

.hw404-footer-slot {
    width: min(100%, 1040px);
    min-height: clamp(184px, 18vw, 245px);
}

.hw404-footer-slot:empty {
    min-height: clamp(184px, 18vw, 245px);
}

.hw404-footer-slot .footer {
    width: 100%;
}

/* ==================== Responsive polish ==================== */
@media (max-width: 1024px) {
    .box,
    .hw404-footer-slot {
        width: min(100%, 960px);
    }

    .main-server-block {
        grid-template-columns: minmax(0, 1fr);
    }

    .server-info {
        min-width: 0;
    }
}

@media (max-width: 820px) {
    .box {
        border-radius: 22px;
        padding: clamp(16px, 3vw, 24px);
    }

    .vip-shop-header,
    .footer-row {
        align-items: stretch;
    }

    .payment-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    body,
    body.not-found-page {
        padding-top: max(12px, env(safe-area-inset-top));
        padding-right: max(8px, env(safe-area-inset-right));
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        padding-left: max(8px, env(safe-area-inset-left));
        background-attachment: scroll;
    }

    .box {
        padding: 14px 10px;
        border-radius: 18px;
    }

    .logo {
        font-size: clamp(35px, 13.2vw, 52px);
        line-height: 0.98;
    }

    .server-header-with-status {
        justify-content: center;
        border-radius: 16px;
    }

    .server-header-with-status > span {
        width: 100%;
        text-align: center;
    }

    .server-info,
    .item,
    .priv-card,
    .about-server,
    .payment-info,
    .spawn-item,
    .rule-card {
        padding: 14px;
        border-radius: 16px;
    }

    .news-title {
        padding-left: 0;
        text-align: center;
    }

    .news-title::before {
        display: none;
    }

    .news {
        padding-left: 0;
    }

    .news::before,
    .item::before {
        display: none;
    }

    .buttons-vertical a,
    .single-button a,
    .donate-button,
    .show-all-players,
    .vip-buy,
    .news-more,
    .hw404-button {
        min-height: 46px;
        padding-left: 14px;
        padding-right: 14px;
        font-size: 14.5px;
    }

    .payment-row,
    .footer-row,
    .rule-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .payment-row span:last-child {
        width: 100%;
        text-align: left;
    }

    .footer {
        padding: 15px 12px;
        border-radius: 16px;
        text-align: left;
    }

    .footer-col.right {
        align-items: flex-start;
    }

    .footer a {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .players-overlay {
        padding: max(12px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    }

    .players-modal {
        max-height: min(86dvh, 720px);
        border-radius: 18px;
    }

    .lightbox-close,
    .lightbox-nav {
        width: 42px;
        height: 42px;
    }

    .hw404-card {
        padding: 20px 14px;
        border-radius: 18px;
    }

    .hw404-url {
        font-size: 12.5px;
    }

    .hw404-footer-slot,
    .hw404-footer-slot:empty {
        min-height: 260px;
    }
}

@media (max-width: 393px) {
    .box {
        padding-left: 8px;
        padding-right: 8px;
    }

    .server-info,
    .item,
    .priv-card,
    .about-server,
    .payment-info,
    .spawn-item,
    .rule-card {
        padding-left: 12px;
        padding-right: 12px;
    }

    .news-thumb {
        width: 68px;
        height: 68px;
    }
}

@media (max-width: 360px) {
    .logo {
        font-size: 36px;
        letter-spacing: 0.8px;
    }

    .buttons-vertical a,
    .single-button a,
    .donate-button,
    .show-all-players,
    .vip-buy,
    .news-more,
    .hw404-button {
        font-size: 14px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .buttons-vertical a:hover,
    .single-button a:hover,
    .show-all-players:hover,
    .donate-button:hover,
    .vip-buy:not(.disabled):hover,
    .news-more:hover,
    .hw404-button:hover,
    .item:hover,
    .priv-card:hover,
    .about-server:hover,
    .payment-info:hover,
    .spawn-item:hover,
    .rule-card:hover,
    .skytrader-point:hover,
    .skytrader-type-line:hover {
        transform: none;
    }
}

@supports not (overflow-x: clip) {
    html,
    body {
        overflow-x: hidden;
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .box,
    .footer,
    .players-modal,
    .server-info,
    .hw404-card,
    .item,
    .priv-card,
    .about-server,
    .payment-info,
    .spawn-item {
        background-color: rgba(13, 3, 3, 0.96);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* =========================================================
   HARDWORLD STAGE 3 — USER REVISION 1
   Правки по замечаниям:
   1) онлайн возвращён ближе к старому виду без отдельной зелёной плашки;
   2) кнопка КУПИТЬ VIP сделана жёлтой.
   ========================================================= */

:root {
    --hw-stage3-vip-gold-gradient: linear-gradient(135deg, #ffe58f 0%, #f1ba3d 45%, #b97517 100%);
    --hw-stage3-vip-gold-gradient-hover: linear-gradient(135deg, #fff0ad 0%, #ffc84f 44%, #d9901f 100%);
    --hw-stage3-vip-gold-shadow: 0 20px 48px rgba(255, 193, 77, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

/* Онлайн: не делаем отдельную зелёную карточку, оставляем спокойный старый вид */
.online-block {
    margin-top: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.online-row {
    margin-top: 0;
}

/* VIP buy: жёлтая кнопка покупки VIP */
.vip-buy {
    color: #241500;
    border-color: rgba(255, 224, 138, 0.34);
    background: var(--hw-stage3-vip-gold-gradient);
    box-shadow: var(--hw-stage3-vip-gold-shadow);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
}

.vip-buy::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08) 48%, transparent);
}

.vip-buy:not(.disabled):not(:disabled):hover {
    color: #160c00;
    border-color: rgba(255, 238, 175, 0.54);
    background: var(--hw-stage3-vip-gold-gradient-hover);
    box-shadow:
        0 24px 58px rgba(255, 193, 77, 0.30),
        0 0 34px rgba(255, 216, 119, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.vip-buy.disabled,
.vip-buy:disabled {
    color: rgba(36, 21, 0, 0.76);
    filter: grayscale(0.20) brightness(0.78);
    opacity: 0.68;
}

/* =========================================================
   HARDWORLD — CUSTOM ENCHANTS SECTION
   Отдельный блок кастомных чар. Без таблиц, без вложения в SkyTrader.
   Адаптирован под ПК, планшеты и телефоны.
   ========================================================= */

.custom-enchants-section {
    position: relative;
    margin-top: 20px;
    border-left-color: var(--purple);
    overflow: hidden;
    isolation: isolate;
}

.custom-enchants-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 0%, rgba(164, 93, 255, 0.12), transparent 34%),
        radial-gradient(circle at 92% 12%, rgba(93, 255, 164, 0.07), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.040), rgba(255, 255, 255, 0.010));
}

.custom-enchants-section b {
    color: #ffe9b0;
}

.custom-enchants-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
    align-items: stretch;
    gap: 16px;
    margin-bottom: 16px;
}

.custom-enchants-head-text {
    min-width: 0;
}

.custom-enchants-label {
    display: inline-flex;
    width: fit-content;
    min-height: 25px;
    align-items: center;
    margin-bottom: 9px;
    padding: 6px 10px;
    border: 1px solid rgba(164, 93, 255, 0.24);
    border-radius: var(--radius-pill);
    color: #d9c2ff;
    background: rgba(164, 93, 255, 0.070);
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.custom-enchants-section h3 {
    margin: 0;
    color: #fff0ff;
    font-size: clamp(24px, 3.6vw, 36px);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-shadow:
        0 0 22px rgba(164, 93, 255, 0.16),
        0 0 28px rgba(255, 77, 77, 0.10);
}

.custom-enchants-head-text p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.68;
}

.custom-enchants-command-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    min-width: 190px;
    padding: 14px 15px;
    border: 1px solid rgba(93, 255, 164, 0.16);
    border-radius: var(--radius-sm);
    background:
        radial-gradient(circle at 100% 0%, rgba(93, 255, 164, 0.11), transparent 38%),
        rgba(0, 0, 0, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 12px 28px rgba(0, 0, 0, 0.20);
    text-align: right;
}

.custom-enchants-command-card span {
    color: var(--green-0);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 20px;
    font-weight: 950;
    line-height: 1;
    text-shadow: 0 0 16px rgba(93, 255, 164, 0.22);
}

.custom-enchants-command-card small {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.custom-enchants-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.custom-enchant-card {
    position: relative;
    padding: 17px;
    border: 1px solid rgba(255, 118, 118, 0.13);
    border-left: 4px solid var(--purple);
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 0% 0%, rgba(164, 93, 255, 0.10), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
        rgba(12, 3, 3, 0.54);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 14px 34px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.custom-enchant-card::after {
    content: "ENCHANT";
    position: absolute;
    right: 14px;
    top: 12px;
    color: rgba(255, 255, 255, 0.035);
    font-size: clamp(25px, 5vw, 46px);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.06em;
    pointer-events: none;
}

.custom-enchant-card-top {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    margin-bottom: 15px;
}

.custom-enchant-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 224, 138, 0.18);
    border-radius: 16px;
    color: var(--gold-0);
    background:
        radial-gradient(circle at 35% 20%, rgba(255, 224, 138, 0.14), transparent 55%),
        rgba(255, 224, 138, 0.050);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.060),
        0 0 26px rgba(255, 224, 138, 0.06);
    font-size: 24px;
}

.custom-enchant-title-wrap h4 {
    margin: 0;
    color: #fff0c2;
    font-size: clamp(20px, 2.8vw, 26px);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.custom-enchant-title-wrap h4 span {
    color: var(--text-muted);
    font-size: 0.72em;
    letter-spacing: 0;
}

.custom-enchant-title-wrap p {
    max-width: 720px;
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.58;
}

.custom-enchant-info-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.custom-enchant-info-item {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid rgba(255, 118, 118, 0.10);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.13);
}

.custom-enchant-info-item > span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.custom-enchant-info-item p {
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: 13.5px;
    line-height: 1.55;
}

.custom-enchant-effect {
    grid-column: 1 / -1;
}

.custom-enchant-effect p {
    margin-top: 0;
    font-size: 14px;
}

.custom-enchant-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.custom-enchant-tags b {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 224, 138, 0.18);
    border-radius: var(--radius-pill);
    color: var(--gold-0);
    background: rgba(255, 224, 138, 0.055);
    font-size: 12.5px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

.custom-enchant-tags.is-green b {
    border-color: rgba(93, 255, 164, 0.18);
    color: var(--green-0);
    background: rgba(93, 255, 164, 0.055);
}

.custom-enchants-bottom-note {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 224, 138, 0.14);
    border-left: 4px solid var(--gold-1);
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    background: rgba(255, 224, 138, 0.035);
    font-size: 14px;
    line-height: 1.62;
}

.custom-enchants-bottom-note b {
    color: #ffe9b0;
}

@media (max-width: 820px) {
    .custom-enchants-head {
        grid-template-columns: 1fr;
    }

    .custom-enchants-command-card {
        align-items: flex-start;
        width: 100%;
        min-width: 0;
        text-align: left;
    }

    .custom-enchant-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .custom-enchants-section {
        margin-top: 16px;
        border-radius: 16px;
    }

    .custom-enchants-head {
        gap: 12px;
        margin-bottom: 13px;
    }

    .custom-enchants-section h3 {
        font-size: clamp(24px, 8vw, 30px);
        line-height: 1.08;
    }

    .custom-enchants-head-text p {
        font-size: 14px;
    }

    .custom-enchants-command-card {
        padding: 13px;
        border-radius: 14px;
    }

    .custom-enchants-command-card span {
        font-size: 18px;
    }

    .custom-enchant-card {
        padding: 14px;
        border-radius: 16px;
    }

    .custom-enchant-card::after {
        display: none;
    }

    .custom-enchant-card-top {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .custom-enchant-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 22px;
    }

    .custom-enchant-title-wrap h4 {
        font-size: 22px;
    }

    .custom-enchant-title-wrap p,
    .custom-enchant-effect p,
    .custom-enchants-bottom-note {
        font-size: 13.5px;
    }

    .custom-enchant-info-item {
        padding: 12px;
        border-radius: 14px;
    }
}

@media (max-width: 360px) {
    .custom-enchant-tags b {
        white-space: normal;
    }
}


/* =========================================================
   HARDWORLD — CUSTOM ENCHANTS TUNING V2
   Правки по запросу:
   - убрать внешнюю фиолетовую кобуру у секции;
   - оставить фиолетовый стиль только у внутренней карточки зачарования;
   - убрать красный hover и заменить его на тусклый фиолетовый;
   - доп. адаптив под ПК / планшеты / телефоны.
   ========================================================= */

.custom-enchants-section {
    border-left-color: var(--red-1);
    border-radius: var(--radius-md);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.040), rgba(255, 255, 255, 0.012)),
        rgba(20, 5, 5, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 14px 36px rgba(0, 0, 0, 0.22);
}

.custom-enchants-section::before {
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 78, 78, 0.09), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(255, 160, 84, 0.04), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.004));
    opacity: 1;
}

.custom-enchants-section:hover {
    border-color: var(--border-mid);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.050), rgba(255, 255, 255, 0.016)),
        rgba(24, 6, 6, 0.80);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 16px 38px rgba(0, 0, 0, 0.24);
    transform: none;
}

.custom-enchants-head {
    gap: 18px;
}

.custom-enchants-head-text p {
    max-width: 820px;
}

.custom-enchants-command-card {
    min-width: 210px;
}

.custom-enchant-card {
    border: 1px solid rgba(164, 93, 255, 0.22);
    border-left: 4px solid var(--purple);
    background:
        radial-gradient(circle at 0% 0%, rgba(164, 93, 255, 0.13), transparent 32%),
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.025), transparent 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
        rgba(18, 5, 22, 0.56);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 14px 34px rgba(0, 0, 0, 0.24),
        0 0 0 rgba(164, 93, 255, 0);
    transition:
        border-color 0.24s ease,
        background 0.24s ease,
        box-shadow 0.26s ease,
        transform 0.26s var(--ease);
}

.custom-enchant-card::after {
    color: rgba(255, 255, 255, 0.05);
}

.custom-enchant-card:hover {
    border-color: rgba(188, 135, 255, 0.40);
    background:
        radial-gradient(circle at 0% 0%, rgba(164, 93, 255, 0.18), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(202, 165, 255, 0.05), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.050), rgba(255, 255, 255, 0.014)),
        rgba(22, 7, 28, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 16px 38px rgba(0, 0, 0, 0.28),
        0 0 24px rgba(164, 93, 255, 0.14),
        0 0 48px rgba(164, 93, 255, 0.06);
    transform: translateY(-1px);
}

.custom-enchant-card .custom-enchant-info-item {
    border-color: rgba(164, 93, 255, 0.10);
    background: rgba(8, 2, 12, 0.18);
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.custom-enchant-card:hover .custom-enchant-info-item {
    border-color: rgba(164, 93, 255, 0.18);
    background: rgba(12, 4, 18, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.custom-enchant-icon {
    border-color: rgba(214, 179, 255, 0.22);
    background:
        radial-gradient(circle at 35% 20%, rgba(255, 224, 138, 0.12), transparent 55%),
        radial-gradient(circle at 50% 100%, rgba(164, 93, 255, 0.14), transparent 50%),
        rgba(72, 38, 92, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 20px rgba(164, 93, 255, 0.07);
}

.custom-enchant-title-wrap h4 {
    color: #fff1c9;
}

.custom-enchant-title-wrap h4 span {
    color: #d7baff;
}

.custom-enchant-info-item > span {
    color: #b78adf;
}

.custom-enchant-tags b {
    border-color: rgba(255, 224, 138, 0.22);
}

.custom-enchant-tags.is-green b {
    border-color: rgba(93, 255, 164, 0.22);
}

@media (max-width: 980px) {
    .custom-enchants-head {
        grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
        align-items: start;
    }

    .custom-enchant-card::after {
        font-size: clamp(24px, 6vw, 40px);
        top: 14px;
        right: 12px;
    }
}

@media (max-width: 820px) {
    .custom-enchants-section {
        margin-top: 18px;
    }

    .custom-enchants-head {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .custom-enchants-command-card {
        align-items: flex-start;
        width: 100%;
        min-width: 0;
        text-align: left;
    }

    .custom-enchant-card {
        padding: 15px;
    }

    .custom-enchant-card::after {
        opacity: 0.8;
    }
}

@media (max-width: 640px) {
    .custom-enchants-section {
        padding: 15px;
    }

    .custom-enchants-section h3 {
        font-size: clamp(23px, 8vw, 30px);
    }

    .custom-enchants-head-text p {
        font-size: 14px;
        line-height: 1.6;
    }

    .custom-enchants-command-card {
        padding: 13px 14px;
        border-radius: 14px;
    }

    .custom-enchants-command-card span {
        font-size: 19px;
    }

    .custom-enchant-card {
        padding: 14px;
        border-radius: 16px;
    }

    .custom-enchant-card::after {
        display: none;
    }

    .custom-enchant-card-top {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 11px;
        margin-bottom: 13px;
    }

    .custom-enchant-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        font-size: 22px;
    }

    .custom-enchant-title-wrap h4 {
        font-size: 24px;
    }

    .custom-enchant-title-wrap p {
        font-size: 14px;
    }

    .custom-enchant-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .custom-enchant-info-item {
        padding: 12px;
        border-radius: 14px;
    }

    .custom-enchant-effect {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .custom-enchants-section {
        margin-top: 16px;
        padding: 14px 12px;
        border-radius: 16px;
    }

    .custom-enchants-label {
        min-height: 24px;
        padding: 5px 9px;
        font-size: 10.5px;
    }

    .custom-enchants-section h3 {
        font-size: clamp(22px, 8.6vw, 28px);
        line-height: 1.08;
    }

    .custom-enchants-command-card small {
        font-size: 11px;
    }

    .custom-enchant-card-top {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .custom-enchant-icon {
        width: 44px;
        height: 44px;
    }

    .custom-enchant-title-wrap h4 {
        font-size: 22px;
    }

    .custom-enchant-title-wrap p,
    .custom-enchant-info-item p {
        font-size: 13.5px;
    }

    .custom-enchant-tags {
        gap: 6px;
    }

    .custom-enchant-tags b {
        min-height: 26px;
        padding: 5px 8px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .custom-enchants-section {
        padding: 13px 11px;
    }

    .custom-enchant-card {
        padding: 13px;
    }

    .custom-enchant-title-wrap h4 {
        font-size: 21px;
    }

    .custom-enchant-tags b {
        white-space: normal;
    }
}


/* =========================================================
   HARDWORLD — COMMANDS MOBILE FIX
   Исправляет мобильную верстку списка команд:
   - команда остается слева;
   - описание остается справа;
   - заметка со звездочкой остается справа под описанием;
   - не трогает HTML и остальные блоки сайта.
   ========================================================= */

@media (max-width: 700px) {
    .commands {
        gap: 10px;
    }

    .command {
        display: grid;
        grid-template-columns: minmax(96px, 0.72fr) minmax(0, 1fr);
        grid-template-areas: "cmd desc";
        column-gap: 12px;
        row-gap: 4px;
        align-items: center;
        min-height: 58px;
        padding: 13px 12px;
    }

    .command .cmd {
        grid-area: cmd;
        align-self: center;
        justify-self: start;
        max-width: 100%;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
        line-height: 1.25;
    }

    .command .desc {
        grid-area: desc;
        align-self: center;
        justify-self: end;
        max-width: 100%;
        text-align: right;
        overflow-wrap: anywhere;
        word-break: normal;
        line-height: 1.38;
    }

    .command-with-note {
        grid-template-areas:
            "cmd desc"
            "cmd note";
        align-items: start;
        min-height: 76px;
        row-gap: 5px;
    }

    .command-with-note .cmd {
        align-self: start;
        padding-top: 2px;
    }

    .command-with-note .desc {
        align-self: start;
        text-align: right;
    }

    .command-with-note .cmd-note {
        grid-area: note;
        display: flex;
        justify-content: flex-end;
        align-items: flex-start;
        justify-self: end;
        max-width: 100%;
        color: rgba(217, 186, 186, 0.58);
        font-size: 12.5px;
        font-weight: 650;
        line-height: 1.28;
        text-align: right;
        overflow-wrap: anywhere;
        word-break: normal;
        transform: none;
    }
}

@media (max-width: 430px) {
    .command {
        grid-template-columns: minmax(86px, 0.70fr) minmax(0, 1fr);
        column-gap: 10px;
        padding: 12px 11px;
    }

    .command .cmd {
        font-size: 14.5px;
    }

    .command .desc {
        font-size: 14.5px;
    }

    .command-with-note .cmd-note {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .command {
        grid-template-columns: minmax(78px, 0.68fr) minmax(0, 1fr);
        column-gap: 8px;
        padding: 11px 10px;
    }

    .command .cmd,
    .command .desc {
        font-size: 14px;
    }
}
