* {
        box-sizing: border-box;
    }

    body {
        margin: 0;
        min-height: 100vh;
        font-family: Arial, Helvetica, sans-serif;
        color: #f3ead8;
        background:
            linear-gradient(rgba(5, 5, 8, 0.78), rgba(5, 5, 8, 0.9)),
            url("https://wallpaper.forfun.com/fetch/ae/ae9a3d2922bb2d103da756109bd76288.jpeg");
        background-size: cover;
        background-position: center top;
        background-attachment: fixed;
    }

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background:
            radial-gradient(circle at top center, rgba(170, 92, 28, 0.25), transparent 45%),
            radial-gradient(circle at bottom center, rgba(0, 0, 0, 0.9), transparent 55%);
        z-index: -1;
    }

.page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 60px;
}

    header,
    .header {
        text-align: center;
        margin-bottom: 22px;
        padding: 34px 24px;
        border: 1px solid rgba(205, 145, 63, 0.45);
        border-radius: 18px;
        background: linear-gradient(
            180deg,
            rgba(37, 23, 15, 0.88),
            rgba(10, 10, 12, 0.88)
        );
        box-shadow:
            0 0 35px rgba(0, 0, 0, 0.75),
            inset 0 0 35px rgba(189, 108, 37, 0.08);
        backdrop-filter: blur(3px);
    }

    h1 {
        margin: 0 0 8px;
        font-size: 46px;
        line-height: 1.1;
        letter-spacing: 1px;
        color: #ffd27a;
        text-shadow:
            0 0 12px rgba(255, 148, 43, 0.55),
            0 2px 0 #000;
    }

    header p,
    .header p {
        margin: 6px 0;
        color: #d8c4a0;
        font-size: 16px;
    }

    nav,
    .menu {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        margin: 18px 0 26px;
        padding: 12px;
        border: 1px solid rgba(205, 145, 63, 0.28);
        border-radius: 14px;
        background: rgba(8, 8, 10, 0.72);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(4px);
    }

    nav a,
    .menu a {
        display: inline-block;
        padding: 11px 18px;
        color: #f5dfad;
        text-decoration: none;
        font-weight: bold;
        border: 1px solid rgba(205, 145, 63, 0.35);
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(84, 43, 17, 0.7), rgba(27, 18, 13, 0.88));
        transition: 0.15s ease;
    }

    nav a:hover,
    .menu a:hover {
        color: #fff4cf;
        border-color: rgba(255, 200, 107, 0.8);
        box-shadow: 0 0 14px rgba(255, 158, 42, 0.35);
        transform: translateY(-1px);
    }

	.menu a.active {
    color: #24170d;
    border-color: rgba(255, 226, 138, 0.95);
    background: linear-gradient(180deg, #ffd27a, #b87528);
    box-shadow:
        0 0 16px rgba(255, 178, 64, 0.38),
        inset 0 0 10px rgba(255, 255, 255, 0.12);
	}
	
    .content-box {
        margin-bottom: 22px;
        padding: 24px;
        border: 1px solid rgba(205, 145, 63, 0.35);
        border-radius: 18px;
        background:
            linear-gradient(180deg, rgba(24, 20, 18, 0.92), rgba(8, 8, 10, 0.92));
        box-shadow:
            0 18px 35px rgba(0, 0, 0, 0.55),
            inset 0 0 30px rgba(255, 178, 64, 0.045);
        backdrop-filter: blur(4px);
    }

    .content-box h2 {
        margin: 0 0 18px;
        padding-bottom: 10px;
        color: #ffd27a;
        font-size: 24px;
        border-bottom: 1px solid rgba(205, 145, 63, 0.35);
        text-shadow: 0 0 9px rgba(255, 148, 43, 0.35);
    }

    .content-box h3 {
        color: #f2c36d;
        margin-top: 24px;
    }

    p {
        color: #dfcfb2;
        line-height: 1.6;
    }

    a {
        color: #ffd27a;
    }
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 26px;
}

.box {
    position: relative;
    overflow: hidden;
    min-height: 130px;
    padding: 22px 18px;
    text-align: center;
    border: 1px solid rgba(226, 158, 61, 0.45);
    border-radius: 18px;
    background:
        radial-gradient(circle at top, rgba(255, 174, 64, 0.18), transparent 42%),
        linear-gradient(180deg, rgba(33, 24, 18, 0.94), rgba(7, 7, 9, 0.94));
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.55),
        inset 0 0 28px rgba(255, 178, 64, 0.055);
    backdrop-filter: blur(4px);
}

.box::before {
    content: "";
    position: absolute;
    top: -45px;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(255, 178, 64, 0.13);
    filter: blur(18px);
    pointer-events: none;
}
.stat-icon {
    position: relative;
    margin-bottom: 10px;
    font-size: 30px;
    line-height: 1;
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(255, 178, 64, 0.65));
}
.box .label {
    position: relative;
    margin-bottom: 12px;
    color: #d9bd85;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
}

.box .value {
    position: relative;
    color: #ffd27a;
    font-size: 31px;
    line-height: 1.1;
    font-weight: bold;
    text-shadow:
        0 0 12px rgba(255, 148, 43, 0.45),
        0 2px 0 #000;
}
    .online {
        color: #75ff91;
        font-weight: bold;
        text-shadow: 0 0 8px rgba(72, 255, 112, 0.45);
    }

    .offline {
        color: #ff6f6f;
        font-weight: bold;
        text-shadow: 0 0 8px rgba(255, 70, 70, 0.4);
    }
.ranking-intro {
    margin-bottom: 18px;
    color: #d8c4a0;
}

.rank-position {
    display: inline-flex;
    min-width: 34px;
    height: 28px;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(205, 145, 63, 0.28);
}

.rank-top-1 .rank-position {
    color: #24170d;
    background: linear-gradient(180deg, #ffe28a, #c38a24);
    border-color: rgba(255, 226, 138, 0.8);
    box-shadow: 0 0 14px rgba(255, 210, 90, 0.25);
}

.rank-top-2 .rank-position {
    color: #202020;
    background: linear-gradient(180deg, #eeeeee, #9f9f9f);
    border-color: rgba(230, 230, 230, 0.75);
}

.rank-top-3 .rank-position {
    color: #24170d;
    background: linear-gradient(180deg, #e5a35c, #9c5522);
    border-color: rgba(229, 163, 92, 0.75);
}

.char-name {
    color: #ffd27a;
    font-weight: bold;
}

.rank-muted {
    color: #bda783;
}
	.info-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding: 14px;
    border: 1px solid rgba(205, 145, 63, 0.28);
    border-radius: 14px;
    background: rgba(8, 8, 10, 0.72);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.info-tabs a {
    display: inline-block;
    padding: 10px 15px;
    color: #f5dfad;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid rgba(205, 145, 63, 0.35);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(84, 43, 17, 0.7), rgba(27, 18, 13, 0.88));
    transition: 0.15s ease;
}

.info-tabs a:hover {
    color: #24170d;
    border-color: rgba(255, 226, 138, 0.95);
    background: linear-gradient(180deg, #ffd27a, #b87528);
    box-shadow: 0 0 14px rgba(255, 178, 64, 0.35);
    transform: translateY(-1px);
}
    .table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(205, 145, 63, 0.18);
    background: rgba(0, 0, 0, 0.25);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.ranking-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 13px 12px;
    color: #24170d;
    text-align: left;
    background: linear-gradient(180deg, #ffd27a, #b87528);
    border-bottom: 1px solid rgba(0, 0, 0, 0.65);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ranking-table td {
    padding: 11px 12px;
    color: #eadcc2;
    border-bottom: 1px solid rgba(205, 145, 63, 0.14);
    font-size: 14px;
    vertical-align: middle;
}

.ranking-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.025);
}

.ranking-table tr:hover td {
    background: rgba(190, 111, 36, 0.16);
}

.ranking-table tr:last-child td {
    border-bottom: none;
}

.ranking-table td:first-child,
.ranking-table th:first-child {
    padding-left: 16px;
}

.ranking-table td:last-child,
.ranking-table th:last-child {
    padding-right: 16px;
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.download-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 22px;
    border: 1px solid rgba(205, 145, 63, 0.35);
    border-radius: 16px;
    background:
        radial-gradient(circle at left top, rgba(255, 174, 64, 0.14), transparent 42%),
        linear-gradient(180deg, rgba(24, 20, 18, 0.92), rgba(8, 8, 10, 0.92));
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.42),
        inset 0 0 24px rgba(255, 178, 64, 0.04);
}

.download-card h3 {
    margin: 0 0 8px;
    color: #ffd27a;
    font-size: 20px;
}

.download-card p {
    margin: 0 0 10px;
}

.download-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.download-badge {
    padding: 6px 10px;
    color: #d8c4a0;
    font-size: 12px;
    border: 1px solid rgba(205, 145, 63, 0.3);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
}

.download-button {
    display: inline-block;
    min-width: 170px;
    padding: 13px 18px;
    color: #21150c;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid rgba(255, 220, 137, 0.7);
    border-radius: 10px;
    background: linear-gradient(180deg, #ffd37b, #b66d25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: 0.15s ease;
}

.download-button:hover {
    color: #21150c;
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.step-card {
    position: relative;
    padding: 20px 18px;
    border: 1px solid rgba(205, 145, 63, 0.32);
    border-radius: 16px;
    background:
        radial-gradient(circle at top, rgba(255, 174, 64, 0.12), transparent 44%),
        linear-gradient(180deg, rgba(24, 20, 18, 0.9), rgba(8, 8, 10, 0.9));
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.4),
        inset 0 0 24px rgba(255, 178, 64, 0.04);
}

.step-number {
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #24170d;
    font-weight: bold;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffd27a, #b87528);
    box-shadow: 0 0 12px rgba(255, 178, 64, 0.28);
}

.step-card h3 {
    margin: 0 0 8px;
    color: #ffd27a;
    font-size: 17px;
}

.step-card p {
    margin: 0;
    color: #d8c4a0;
    font-size: 14px;
    line-height: 1.5;
}
.register {
    max-width: 520px;
    margin: 0 auto 26px;
    padding: 28px;
    border: 1px solid rgba(205, 145, 63, 0.4);
    border-radius: 18px;
    background:
        radial-gradient(circle at top, rgba(255, 174, 64, 0.13), transparent 42%),
        linear-gradient(180deg, rgba(24, 20, 18, 0.94), rgba(8, 8, 10, 0.94));
    box-shadow:
        0 18px 35px rgba(0, 0, 0, 0.55),
        inset 0 0 30px rgba(255, 178, 64, 0.045);
    backdrop-filter: blur(4px);
}

.register h2 {
    margin: 0 0 20px;
    padding-bottom: 12px;
    color: #ffd27a;
    text-align: center;
    font-size: 26px;
    border-bottom: 1px solid rgba(205, 145, 63, 0.35);
    text-shadow: 0 0 9px rgba(255, 148, 43, 0.35);
}
.register-intro {
    margin: -6px 0 20px;
    color: #d8c4a0;
    text-align: center;
    font-size: 14px;
}
.register form {
    display: grid;
    gap: 13px;
}

.register input {
    width: 100%;
    margin: 0;
}

.register button {
    width: 100%;
    margin-top: 4px;
    padding: 13px 18px;
    font-size: 15px;
}

.msg {
    padding: 13px 14px;
    margin-bottom: 16px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
}

.success {
    color: #a6ffb4;
    background: rgba(18, 61, 31, 0.72);
    border: 1px solid rgba(57, 211, 83, 0.65);
    box-shadow: 0 0 14px rgba(57, 211, 83, 0.15);
}

.error {
    color: #ffb3b3;
    background: rgba(61, 18, 18, 0.72);
    border: 1px solid rgba(255, 85, 85, 0.65);
    box-shadow: 0 0 14px rgba(255, 85, 85, 0.14);
}
    input,
    select,
    textarea {
        max-width: 100%;
        padding: 11px 12px;
        color: #f5ead4;
        background: rgba(5, 5, 7, 0.88);
        border: 1px solid rgba(205, 145, 63, 0.42);
        border-radius: 8px;
        outline: none;
    }

    input:focus,
    select:focus,
    textarea:focus {
        border-color: rgba(255, 205, 112, 0.9);
        box-shadow: 0 0 12px rgba(255, 158, 42, 0.28);
    }

    button,
    input[type="submit"] {
        padding: 11px 18px;
        color: #21150c;
        font-weight: bold;
        cursor: pointer;
        border: 1px solid rgba(255, 220, 137, 0.7);
        border-radius: 8px;
        background: linear-gradient(180deg, #ffd37b, #b66d25);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
        transition: 0.15s ease;
    }

    button:hover,
    input[type="submit"]:hover {
        filter: brightness(1.1);
        transform: translateY(-1px);
    }

    .status,
    .server-status {
        display: inline-block;
        margin-top: 12px;
        padding: 8px 16px;
        border-radius: 999px;
        border: 1px solid rgba(120, 255, 150, 0.45);
        background: rgba(0, 0, 0, 0.55);
    }

    code {
        color: #ffd27a;
        background: rgba(0, 0, 0, 0.45);
        padding: 2px 5px;
        border-radius: 5px;
    }

    @media (max-width: 760px) {
		.register {
    padding: 20px;
}

.download-card {
    grid-template-columns: 1fr;
}

.download-button {
    width: 100%;
}

.steps-grid {
    grid-template-columns: 1fr;
}
    .page {
        width: min(100% - 18px, 1180px);
        padding-top: 18px;
    }

        h1 {
            font-size: 34px;
        }

        .content-box {
            padding: 16px;
            border-radius: 14px;
        }

        nav,
        .menu {
            gap: 8px;
        }

        nav a,
        .menu a {
            padding: 10px 13px;
            font-size: 14px;
        }

.table-wrap {
    overflow-x: auto;
}

.ranking-table {
    min-width: 720px;
}

.ranking-table th,
.ranking-table td {
    white-space: nowrap;
}
		.stats {
    grid-template-columns: repeat(2, 1fr);
}
.box {
    min-height: 118px;
}

.box .value {
    font-size: 25px;
}
    }

/* Info page filter forms */
.info-filter-form {
    margin-bottom: 18px;
}

.info-filter-select {
    padding: 10px;
    background: #111;
    color: #eee;
    border: 1px solid #444;
    border-radius: 8px;
}

.info-filter-button {
    width: auto;
    margin-left: 8px;
    padding: 10px 16px;
}
/* =========================
   D2 RED THEME OVERRIDES
   ========================= */

body {
    color: #f5d7c1;
    background:
        linear-gradient(rgba(18, 0, 0, 0.72), rgba(8, 0, 0, 0.90)),
        radial-gradient(circle at top, rgba(180, 10, 10, 0.18), transparent 42%),
        url('/assets/img/d2-bg.jpg') center center / cover fixed no-repeat !important;
}

.page {
    position: relative;
    z-index: 1;
}

/* Główne boxy */
.header,
.box,
.content-box,
.register,
.download-card,
.step-card,
.ranking-table,
.table-wrap {
    background: rgba(14, 2, 2, 0.82) !important;
    border: 1px solid rgba(160, 22, 22, 0.72) !important;
    box-shadow:
        0 0 10px rgba(255, 40, 40, 0.18),
        0 0 28px rgba(140, 0, 0, 0.22),
        inset 0 0 18px rgba(255, 80, 40, 0.05) !important;
}

/* Górny header */
.header {
    background:
        linear-gradient(180deg, rgba(40, 0, 0, 0.72), rgba(16, 0, 0, 0.86)) !important;
}

/* Menu */
.menu {
    background: transparent !important;
}

.menu a {
    color: #f3cfb3 !important;
    border: 1px solid rgba(140, 18, 18, 0.65) !important;
    background: rgba(25, 4, 4, 0.72) !important;
    box-shadow:
        inset 0 0 10px rgba(255, 80, 50, 0.04),
        0 0 10px rgba(120, 0, 0, 0.16) !important;
}

.menu a:hover,
.menu a.active {
    color: #fff2de !important;
    border-color: rgba(220, 70, 40, 0.90) !important;
    background:
        linear-gradient(180deg, rgba(120, 12, 12, 0.82), rgba(55, 6, 6, 0.92)) !important;
    box-shadow:
        0 0 12px rgba(255, 60, 60, 0.24),
        0 0 32px rgba(150, 0, 0, 0.30),
        inset 0 0 12px rgba(255, 120, 60, 0.08) !important;
}

/* Nagłówki */
h1, h2, h3 {
    color: #ffd2a3 !important;
    text-shadow:
        0 0 6px rgba(255, 110, 40, 0.18),
        0 0 18px rgba(180, 0, 0, 0.24) !important;
}

/* Linki */
a {
    color: #ffcf9f;
}

a:hover {
    color: #fff0d6;
}

/* Stat boxy */
.box .label {
    color: #d8b3a2 !important;
}

.box .value {
    color: #ffe4c8 !important;
}

.box .value.online {
    color: #8df08d !important;
}

.box .value.offline {
    color: #ff8d8d !important;
}

/* Karty kroków */
.step-number {
    background: linear-gradient(180deg, #a61212, #5a0808) !important;
    border: 1px solid #cf5a32 !important;
    box-shadow:
        0 0 10px rgba(255, 70, 40, 0.20),
        0 0 20px rgba(120, 0, 0, 0.24) !important;
    color: #fff3df !important;
}

/* Tabele */
.ranking-table,
.ranking-table table,
table {
    border-color: rgba(150, 25, 25, 0.70) !important;
}

.ranking-table th,
table th {
    background: rgba(90, 8, 8, 0.72) !important;
    color: #ffd7ad !important;
    border-color: rgba(170, 30, 30, 0.75) !important;
}

.ranking-table td,
table td {
    background: rgba(22, 4, 4, 0.70) !important;
    color: #f1d0ba !important;
    border-color: rgba(110, 20, 20, 0.55) !important;
}

.ranking-table tr:hover td,
table tr:hover td {
    background: rgba(55, 8, 8, 0.72) !important;
}

/* Przyciski */
.register-button,
.download-button,
.info-filter-button,
button,
input[type="submit"] {
    color: #fff1de !important;
    border: 1px solid #cf5a32 !important;
    background: linear-gradient(180deg, #9b1111, #4a0707) !important;
    box-shadow:
        0 0 10px rgba(255, 60, 40, 0.18),
        0 0 20px rgba(130, 0, 0, 0.22) !important;
}

.register-button:hover,
.download-button:hover,
.info-filter-button:hover,
button:hover,
input[type="submit"]:hover {
    background: linear-gradient(180deg, #c01c1c, #661010) !important;
    box-shadow:
        0 0 12px rgba(255, 90, 60, 0.24),
        0 0 28px rgba(170, 0, 0, 0.28) !important;
}

/* Inputy */
input,
select,
textarea {
    background: rgba(10, 2, 2, 0.88) !important;
    color: #f4dcc8 !important;
    border: 1px solid rgba(145, 22, 22, 0.70) !important;
    box-shadow: inset 0 0 10px rgba(255, 40, 40, 0.04) !important;
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: #d44a2d !important;
    box-shadow:
        0 0 8px rgba(255, 70, 40, 0.18),
        inset 0 0 10px rgba(255, 80, 40, 0.06) !important;
}

/* Komunikaty */
.msg.success {
    background: rgba(20, 60, 20, 0.78) !important;
    border: 1px solid rgba(80, 180, 80, 0.60) !important;
    color: #d8ffd8 !important;
}

.msg.error {
    background: rgba(90, 10, 10, 0.78) !important;
    border: 1px solid rgba(255, 70, 70, 0.60) !important;
    color: #ffd8d8 !important;
}
/* =========================
   D2 RED THEME OVERRIDES
   ========================= */

body {
    color: #f5d7c1;
    background:
        linear-gradient(rgba(18, 0, 0, 0.72), rgba(8, 0, 0, 0.90)),
        radial-gradient(circle at top, rgba(180, 10, 10, 0.18), transparent 42%),
        url('/assets/img/d2-bg.jpg') center center / cover fixed no-repeat !important;
}

.page {
    position: relative;
    z-index: 1;
}

.header,
.box,
.content-box,
.register,
.download-card,
.step-card,
.ranking-table,
.table-wrap {
    background: rgba(14, 2, 2, 0.82) !important;
    border: 1px solid rgba(160, 22, 22, 0.72) !important;
    box-shadow:
        0 0 10px rgba(255, 40, 40, 0.18),
        0 0 28px rgba(140, 0, 0, 0.22),
        inset 0 0 18px rgba(255, 80, 40, 0.05) !important;
}

.header {
    background:
        linear-gradient(180deg, rgba(40, 0, 0, 0.72), rgba(16, 0, 0, 0.86)) !important;
}

.menu {
    background: transparent !important;
}

.menu a {
    color: #f3cfb3 !important;
    border: 1px solid rgba(140, 18, 18, 0.65) !important;
    background: rgba(25, 4, 4, 0.72) !important;
    box-shadow:
        inset 0 0 10px rgba(255, 80, 50, 0.04),
        0 0 10px rgba(120, 0, 0, 0.16) !important;
}

.menu a:hover,
.menu a.active {
    color: #fff2de !important;
    border-color: rgba(220, 70, 40, 0.90) !important;
    background:
        linear-gradient(180deg, rgba(120, 12, 12, 0.82), rgba(55, 6, 6, 0.92)) !important;
    box-shadow:
        0 0 12px rgba(255, 60, 60, 0.24),
        0 0 32px rgba(150, 0, 0, 0.30),
        inset 0 0 12px rgba(255, 120, 60, 0.08) !important;
}

h1, h2, h3 {
    color: #ffd2a3 !important;
    text-shadow:
        0 0 6px rgba(255, 110, 40, 0.18),
        0 0 18px rgba(180, 0, 0, 0.24) !important;
}

a {
    color: #ffcf9f;
}

a:hover {
    color: #fff0d6;
}

.box .label {
    color: #d8b3a2 !important;
}

.box .value {
    color: #ffe4c8 !important;
}

.box .value.online {
    color: #8df08d !important;
}

.box .value.offline {
    color: #ff8d8d !important;
}

.step-number {
    background: linear-gradient(180deg, #a61212, #5a0808) !important;
    border: 1px solid #cf5a32 !important;
    box-shadow:
        0 0 10px rgba(255, 70, 40, 0.20),
        0 0 20px rgba(120, 0, 0, 0.24) !important;
    color: #fff3df !important;
}

.ranking-table,
.ranking-table table,
table {
    border-color: rgba(150, 25, 25, 0.70) !important;
}

.ranking-table th,
table th {
    background: rgba(90, 8, 8, 0.72) !important;
    color: #ffd7ad !important;
    border-color: rgba(170, 30, 30, 0.75) !important;
}

.ranking-table td,
table td {
    background: rgba(22, 4, 4, 0.70) !important;
    color: #f1d0ba !important;
    border-color: rgba(110, 20, 20, 0.55) !important;
}

.ranking-table tr:hover td,
table tr:hover td {
    background: rgba(55, 8, 8, 0.72) !important;
}

.register-button,
.download-button,
.info-filter-button,
button,
input[type="submit"] {
    color: #fff1de !important;
    border: 1px solid #cf5a32 !important;
    background: linear-gradient(180deg, #9b1111, #4a0707) !important;
    box-shadow:
        0 0 10px rgba(255, 60, 40, 0.18),
        0 0 20px rgba(130, 0, 0, 0.22) !important;
}

.register-button:hover,
.download-button:hover,
.info-filter-button:hover,
button:hover,
input[type="submit"]:hover {
    background: linear-gradient(180deg, #c01c1c, #661010) !important;
    box-shadow:
        0 0 12px rgba(255, 90, 60, 0.24),
        0 0 28px rgba(170, 0, 0, 0.28) !important;
}

input,
select,
textarea {
    background: rgba(10, 2, 2, 0.88) !important;
    color: #f4dcc8 !important;
    border: 1px solid rgba(145, 22, 22, 0.70) !important;
    box-shadow: inset 0 0 10px rgba(255, 40, 40, 0.04) !important;
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: #d44a2d !important;
    box-shadow:
        0 0 8px rgba(255, 70, 40, 0.18),
        inset 0 0 10px rgba(255, 80, 40, 0.06) !important;
}

.msg.success {
    background: rgba(20, 60, 20, 0.78) !important;
    border: 1px solid rgba(80, 180, 80, 0.60) !important;
    color: #d8ffd8 !important;
}

.msg.error {
    background: rgba(90, 10, 10, 0.78) !important;
    border: 1px solid rgba(255, 70, 70, 0.60) !important;
    color: #ffd8d8 !important;
}


/* =========================
   D2 hero/logo refinement
   ========================= */

.d2-hero {
    min-height: 280px !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 48px 28px !important;
    overflow: hidden !important;
}

.d2-logo-text {
    padding: 22px 38px !important;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.12) 65%, transparent 100%) !important;
}

.d2-logo-small {
    display: block !important;
    margin-bottom: -8px !important;
    color: #d38a4c !important;
    font-size: 17px !important;
    letter-spacing: 7px !important;
    text-transform: uppercase !important;
    text-shadow:
        0 0 8px rgba(255, 65, 25, 0.45),
        0 0 18px rgba(130, 0, 0, 0.75) !important;
}

.d2-logo-text h1 {
    margin: 0 !important;
    color: #ffcf82 !important;
    font-size: clamp(54px, 8vw, 104px) !important;
    line-height: 0.95 !important;
    letter-spacing: 5px !important;
    text-transform: uppercase !important;
    font-family: Georgia, "Times New Roman", serif !important;
    text-shadow:
        0 2px 0 #2b0500,
        0 0 8px rgba(255, 170, 60, 0.55),
        0 0 22px rgba(255, 55, 20, 0.55),
        0 0 48px rgba(120, 0, 0, 0.95) !important;
}

.d2-logo-text p {
    margin: 10px 0 0 !important;
    color: #f2b47a !important;
    font-size: 17px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    text-shadow:
        0 0 8px rgba(255, 70, 25, 0.35),
        0 0 18px rgba(120, 0, 0, 0.75) !important;
}


/* =========================
   D2 image header
   ========================= */

.d2-logo-header {
    padding: 0 !important;
    overflow: hidden !important;
    background: #050000 !important;
    border: 1px solid rgba(190, 30, 25, 0.90) !important;
    box-shadow:
        0 0 18px rgba(255, 40, 30, 0.24),
        0 0 52px rgba(130, 0, 0, 0.34),
        inset 0 0 30px rgba(255, 70, 30, 0.06) !important;
}

.d2-logo-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 420px !important;
    object-fit: contain !important;
    object-position: center center !important;
}

@media (max-width: 800px) {
    .d2-logo-image {
        max-height: 260px !important;
    }
}


/* =========================
   Unified banner size - D2
   ========================= */

.d2-logo-header {
    width: 100% !important;
    max-width: 1120px !important;
    height: clamp(170px, 18vw, 300px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    aspect-ratio: auto !important;
}

.d2-logo-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
}

@media (max-width: 900px) {
    .d2-logo-header {
        height: 220px !important;
        border-radius: 14px !important;
    }
}

@media (max-width: 520px) {
    .d2-logo-header {
        height: 145px !important;
        border-radius: 12px !important;
    }
}


/* RetroD2 mobile fix */
@media (max-width: 600px) {
    html,
    body {
        width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    body {
        margin: 0 !important;
        padding: 0 !important;
        background-size: cover !important;
        background-position: center top !important;
    }

    .page,
    .container,
    .wrapper,
    main {
        width: calc(100vw - 12px) !important;
        max-width: calc(100vw - 12px) !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .card,
    .box,
    .panel,
    .content,
    .content-box,
    section,
    article {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    nav,
    .menu,
    .nav {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
        box-sizing: border-box !important;
    }

    nav a,
    .menu a,
    .nav a {
        white-space: nowrap !important;
        font-size: 12px !important;
    }

    table {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
        box-sizing: border-box !important;
    }

    table th,
    table td {
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
        padding: 8px 10px !important;
        vertical-align: middle !important;
    }

    table th:first-child,
    table td:first-child {
        width: 42% !important;
    }

    table th:last-child,
    table td:last-child {
        width: 58% !important;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 420px) {
    table th,
    table td {
        font-size: 10px !important;
        padding: 7px 8px !important;
    }

    nav a,
    .menu a,
    .nav a {
        font-size: 11px !important;
    }
}