:root {
    color-scheme: dark;
    --panel: rgba(5, 12, 17, 0.90);
    --panel-soft: rgba(8, 21, 26, 0.80);
    --border: rgba(107, 211, 205, 0.48);
    --border-strong: rgba(131, 238, 222, 0.78);
    --text: #eefcf8;
    --muted: #a9c6c3;
    --green: #6cff87;
    --red: #ff6f6f;
    --gold: #e3a45b;
    --cyan: #7ce8df;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(rgba(1, 8, 13, 0.18), rgba(1, 8, 13, 0.88)),
        url('/assets/img/vh-bg.jpg') center top / cover fixed no-repeat;
}

.background-shade {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 18%, rgba(0, 198, 230, 0.06), transparent 30%),
        linear-gradient(to bottom, transparent 0, transparent 38%, rgba(0, 5, 8, 0.38) 54%, rgba(0, 5, 8, 0.86) 100%);
}

.container {
    position: relative;
    z-index: 1;
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 50px 0 48px;
}

.card {
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.55),
        0 0 28px rgba(62, 211, 217, 0.16),
        inset 0 0 35px rgba(79, 207, 202, 0.04);
    backdrop-filter: blur(9px);
}

.page-heading {
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(140, 211, 207, 0.22);
}

.eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

h1 {
    margin: 8px 0 8px;
    color: #fff4df;
    font-size: clamp(29px, 5vw, 44px);
    line-height: 1.06;
    text-shadow: 0 0 22px rgba(220, 131, 58, 0.24);
}

.page-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

section {
    margin-top: 30px;
}

h2 {
    margin: 0 0 12px;
    color: #e6fffb;
    font-size: 21px;
    text-shadow: 0 0 14px rgba(93, 228, 217, 0.18);
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(159, 212, 210, 0.17);
}

.row:last-child {
    border-bottom: 0;
}

.label {
    color: var(--muted);
}

.value {
    max-width: 65%;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.status-online {
    color: var(--green);
}

.status-offline {
    color: var(--red);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(133, 209, 204, 0.20);
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.16);
}

.players-table {
    width: 100%;
    border-collapse: collapse;
}

.players-table th,
.players-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(159, 212, 210, 0.16);
    text-align: left;
}

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

.players-table th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

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

.empty {
    padding: 15px 16px;
    color: var(--muted);
    border: 1px solid rgba(133, 209, 204, 0.18);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.15);
}

.connect-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: rgba(1, 14, 19, 0.72);
    box-shadow: inset 0 0 20px rgba(87, 227, 216, 0.05);
}

.connect-box code {
    color: #d7fffb;
    font-family: Consolas, Monaco, monospace;
    font-size: clamp(16px, 3vw, 20px);
    overflow-wrap: anywhere;
}

.copy-button,
.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    color: #ecfffc;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid rgba(118, 235, 222, 0.62);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(20, 105, 106, 0.92), rgba(8, 62, 66, 0.92));
    box-shadow: 0 0 18px rgba(69, 224, 218, 0.13);
    transition: transform 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.copy-button:hover,
.back-button:hover {
    transform: translateY(-1px);
    border-color: #a5fff2;
    filter: brightness(1.12);
}

.hint {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.modifier-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.modifier-card {
    display: flex;
    min-height: 132px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(136, 216, 210, 0.23);
    border-radius: 12px;
    background: var(--panel-soft);
}

.modifier-label,
.modifier-code {
    color: var(--muted);
    font-size: 13px;
}

.modifier-card strong {
    color: #fff1d5;
    font-size: 22px;
}

.modifier-code {
    font-family: Consolas, Monaco, monospace;
}

.instructions {
    margin: 0;
    padding-left: 24px;
    color: #e4f3f1;
    line-height: 1.65;
}

.instructions li + li {
    margin-top: 7px;
}

.instructions code,
.alternative code {
    color: var(--cyan);
}

.alternative {
    margin-top: 15px;
    padding: 14px 16px;
    color: var(--muted);
    line-height: 1.55;
    border-left: 3px solid var(--gold);
    border-radius: 0 9px 9px 0;
    background: rgba(1, 12, 17, 0.55);
}

.alternative strong {
    color: #f7e6c9;
}

.footer-actions {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(140, 211, 207, 0.20);
}

.back-button {
    background: linear-gradient(180deg, rgba(117, 65, 33, 0.94), rgba(71, 38, 21, 0.94));
    border-color: rgba(227, 164, 91, 0.68);
}

@media (max-width: 720px) {
    body {
        background-position: center top;
        background-attachment: scroll;
    }

    .container {
        width: min(100% - 20px, 920px);
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .card {
        border-radius: 14px;
    }

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

    .value {
        max-width: none;
        text-align: left;
    }

    .modifier-grid {
        grid-template-columns: 1fr;
    }

    .modifier-card {
        min-height: 0;
    }

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

    .copy-button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .container {
        padding-top: 105px;
    }

    .card {
        padding: 19px;
    }

    .players-table th,
    .players-table td {
        padding: 11px 10px;
    }
}
