﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #090b0d;
    color: #e9e2d5;
    font-family: Arial, Helvetica, sans-serif;
}

.navbar {
    height: 78px;
    display: flex;
    align-items: center;
    padding: 0 5%;
    border-bottom: 1px solid #292722;
    background: #0c0e10;
}

.logo {
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 3px;
    color: #d8a34b;
}

.logo span {
    color: #eee7db;
    margin-left: 7px;
}

nav {
    display: flex;
    gap: 32px;
    margin-left: auto;
    margin-right: 40px;
}

nav a {
    color: #817d75;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: .2s;
}

nav a:hover,
nav a.active {
    color: #d8a34b;
}

.login {
    padding: 12px 18px;
    border: 1px solid #d8a34b;
    background: transparent;
    color: #d8a34b;
    cursor: pointer;
    font-weight: bold;
    font-size: 11px;
    letter-spacing: 1px;
}

.hero {
    min-height: 580px;
    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 70% 50%,
            rgba(143, 87, 25, .20),
            transparent 40%
        ),
        linear-gradient(
            100deg,
            #0b0d0f 35%,
            #17120c 100%
        );

    padding: 70px 9%;
}

.hero-content {
    max-width: 800px;
}

.eyebrow {
    color: #d8a34b;
    letter-spacing: 4px;
    font-size: 11px;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(50px, 6vw, 88px);
    line-height: .95;
    letter-spacing: -3px;
    font-weight: 900;
}

.hero h1 span {
    color: #d8a34b;
}

.description {
    color: #8d8981;
    max-width: 600px;
    margin-top: 30px;
    line-height: 1.8;
    font-size: 15px;
}

.buttons {
    display: flex;
    gap: 12px;
    margin-top: 35px;
}

.buttons button {
    padding: 15px 24px;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 1px;
}

.primary {
    border: 1px solid #d8a34b;
    background: #d8a34b;
    color: #101010;
}

.secondary {
    border: 1px solid #47433c;
    background: transparent;
    color: #d5d0c6;
}

.server-panel {
    width: 82%;
    margin: -35px auto 0;
    min-height: 110px;
    position: relative;

    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);

    background: #111315;
    border: 1px solid #302c26;
}

.server-title,
.server-stat {
    padding: 25px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    border-right: 1px solid #292722;
}

.server-title {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
}

.server-title h2 {
    margin-top: 5px;
    font-size: 18px;
}

small {
    color: #66645f;
    letter-spacing: 1.5px;
    font-size: 9px;
}

.server-stat strong {
    margin-top: 8px;
    font-size: 14px;
}

.online {
    color: #70bd81;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #70bd81;
    box-shadow: 0 0 15px #70bd81;
}

.features {
    width: 82%;
    margin: 80px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.card {
    min-height: 200px;
    padding: 28px;
    background: #101214;
    border: 1px solid #262522;
    transition: .2s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #75572d;
}

.number {
    color: #d8a34b;
    font-size: 11px;
    letter-spacing: 2px;
}

.card h3 {
    margin-top: 30px;
    font-size: 16px;
    letter-spacing: 1px;
}

.card p {
    margin-top: 15px;
    color: #77746e;
    font-size: 13px;
    line-height: 1.7;
}

footer {
    border-top: 1px solid #242321;
    padding: 35px 9%;
    display: flex;
    justify-content: space-between;
    color: #5d5b57;
    font-size: 11px;
}

footer span {
    color: #b98a42;
    font-weight: bold;
    letter-spacing: 2px;
}

@media (max-width: 900px) {

    nav {
        display: none;
    }

    .login {
        margin-left: auto;
    }

    .server-panel {
        grid-template-columns: 1fr 1fr;
    }

    .features {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 550px) {

    .features,
    .server-panel {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 48px;
    }
}

.inventory-page {
    width: 84%;
    margin: auto;
    padding: 70px 0 100px;
}

.inventory-header {
    max-width: 750px;
}

.inventory-header h1 {
    font-size: 54px;
    margin-top: 12px;
    text-transform: uppercase;
}

.inventory-summary {
    margin-top: 45px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #101214;
    border: 1px solid #2c2924;
}

.inventory-summary div {
    padding: 24px;
    border-right: 1px solid #292722;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.inventory-summary strong {
    font-size: 17px;
}

.inventory-container {
    margin-top: 55px;
}

.inventory-category {
    margin-bottom: 55px;
}

.inventory-category-title {
    margin-bottom: 18px;
    padding-bottom: 14px;

    border-bottom: 1px solid #302d27;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.inventory-category-title h2 {
    margin-top: 7px;
    font-size: 20px;
}

.inventory-category-title span {
    color: #d8a34b;
    font-size: 10px;
    letter-spacing: 1px;
}

.inventory-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(260px, 1fr));

    gap: 12px;
}

.inventory-item {
    min-height: 90px;
    padding: 15px;

    border: 1px solid #2c2924;
    background: #101214;

    display: flex;
    align-items: center;
    gap: 15px;

    transition: .2s;
}

.inventory-item:hover {
    border-color: #a87b39;
    transform: translateY(-2px);
}

.item-info {
    flex: 1;
}

.item-info h3 {
    font-size: 13px;
    letter-spacing: .4px;
    word-break: break-word;
}

.item-info small {
    display: block;
    margin-top: 7px;
}

.item-quantity {
    color: #d8a34b;
    font-size: 13px;
}

.loading {
    padding: 40px;
    text-align: center;
    border: 1px solid #2c2924;
    color: #77736c;
}

@media (max-width: 700px) {

    .inventory-summary {
        grid-template-columns: 1fr;
    }

    .inventory-summary div {
        border-right: none;
        border-bottom: 1px solid #292722;
    }

}

/* =========================================
   INVENTORY CARDS - FINAL
   ========================================= */

.inventory-item {
    height: 86px;
    min-height: 86px;
    padding: 10px 12px;

    display: flex;
    align-items: center;
    gap: 12px;

    position: relative;
    overflow: hidden;

    border: 1px solid #2c2924;
    background: #101214;

    transition: .2s;
}

.inventory-item:hover {
    border-color: #a87b39;
    transform: translateY(-2px);
}


/* ICON CONTAINER */

.inventory-item > .item-icon {
    width: 64px !important;
    height: 64px !important;

    min-width: 64px !important;
    min-height: 64px !important;

    max-width: 64px !important;
    max-height: 64px !important;

    flex: 0 0 64px !important;

    position: relative !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;

    border: 1px solid #51442f;
    background: #161411;
}


/* ACTUAL ITEM IMAGE */

.inventory-item > .item-icon > img {
    width: 60px !important;
    height: 60px !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: 60px !important;
    max-height: 60px !important;

    position: static !important;

    object-fit: contain !important;
    object-position: center !important;

    transform: none !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;
}


/* ITEM TEXT */

.inventory-item > .item-info {
    flex: 1;
    min-width: 0;

    position: relative;
    z-index: 2;
}

.inventory-item > .item-info h3 {
    margin: 0 0 5px;

    font-size: 13px;
    line-height: 1.2;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inventory-item > .item-info small {
    display: block;
    margin: 0;

    font-size: 8px;
}


/* QUANTITY */

.inventory-item > .item-quantity {
    margin-left: auto;

    flex-shrink: 0;

    position: relative;
    z-index: 2;

    color: #d8a34b;
    font-size: 12px;
    white-space: nowrap;
}

/* =========================================
   ITEM DETAILS MODAL
   ========================================= */

.inventory-item {
    cursor: pointer;
}

.item-modal {
    position: fixed;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    z-index: 9999;
}

.item-modal.open {
    display: flex;
}

.item-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(4px);
}

.item-modal-content {
    width: min(720px, 92vw);

    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 240px 1fr;

    background: #101214;
    border: 1px solid #5c4828;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, .65);
}

.item-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;

    width: 34px;
    height: 34px;

    border: 1px solid #5c4828;
    background: #0c0e10;
    color: #d8a34b;

    font-size: 22px;
    cursor: pointer;

    z-index: 3;
}

.item-modal-image {
    min-height: 280px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle,
            rgba(216, 163, 75, .12),
            transparent 60%
        ),
        #0c0e10;

    border-right: 1px solid #302c26;
}

.item-modal-image img {
    width: 85%;
    height: 85%;

    max-width: 210px;
    max-height: 210px;

    object-fit: contain;
}

.item-modal-info {
    padding: 45px 35px;
}

.item-modal-info h2 {
    margin-top: 10px;

    font-size: 30px;
    text-transform: uppercase;
}

.item-modal-stats {
    margin-top: 35px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border: 1px solid #2c2924;
}

.item-modal-stats div {
    padding: 18px;

    display: flex;
    flex-direction: column;
    gap: 8px;

    border-right: 1px solid #2c2924;
}

.item-modal-stats div:last-child {
    border-right: none;
}

.item-modal-template {
    margin-top: 25px;
}

.item-modal-template code {
    display: block;
    margin-top: 8px;

    padding: 12px;

    background: #090b0d;
    border: 1px solid #2c2924;

    color: #b7aa96;

    word-break: break-all;
}

@media (max-width: 650px) {

    .item-modal-content {
        grid-template-columns: 1fr;
    }

    .item-modal-image {
        min-height: 200px;
        border-right: none;
        border-bottom: 1px solid #302c26;
    }

    .item-modal-stats {
        grid-template-columns: 1fr;
    }

    .item-modal-stats div {
        border-right: none;
        border-bottom: 1px solid #2c2924;
    }
}

/* =========================================
   MY CHARACTER
   ========================================= */

.character-page {
    width: 84%;
    margin: auto;
    padding: 70px 0 100px;
}


.character-header {
    max-width: 760px;
}


.character-header h1 {
    margin-top: 12px;

    font-size: clamp(42px, 5vw, 64px);
    line-height: 1;

    text-transform: uppercase;
    letter-spacing: -2px;
}


.character-description {
    margin-top: 18px;

    color: #77746e;

    font-size: 14px;
    line-height: 1.7;
}


/* LOADING / ERROR */

.character-loading,
.character-error {
    margin-top: 45px;
    padding: 40px;

    text-align: center;

    background: #101214;
    border: 1px solid #2c2924;

    color: #77736c;

    font-size: 11px;
    letter-spacing: 2px;
}


.character-error {
    color: #c97868;
}


/* CHARACTER CONTENT */

.character-content {
    margin-top: 45px;
}


/* HERO */

.character-hero {
    min-height: 310px;

    display: grid;
    grid-template-columns: 320px 1fr;

    background: #101214;
    border: 1px solid #302c26;

    overflow: hidden;
}


.character-visual {
    min-height: 310px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    position: relative;

    border-right: 1px solid #302c26;

    background:
        radial-gradient(
            circle at center,
            rgba(216, 163, 75, .14),
            transparent 60%
        ),
        linear-gradient(
            145deg,
            #15120e,
            #0b0d0f
        );
}


.character-emblem {
    width: 145px;
    height: 145px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #6a522e;

    color: #d8a34b;

    font-size: 38px;
    font-weight: 900;
    letter-spacing: 5px;

    transform: rotate(45deg);

    background: rgba(
        216,
        163,
        75,
        .025
    );

    box-shadow:
        0 0 70px
        rgba(216, 163, 75, .08);
}


.character-emblem::before {
    content: "";

    position: absolute;

    width: 110px;
    height: 110px;

    border: 1px solid #49391f;
}


.character-emblem {
    position: relative;
}


.character-emblem::after {
    content: "DW";

    position: absolute;

    transform: rotate(-45deg);
}


.character-emblem {
    font-size: 0;
}


.character-emblem::after {
    font-size: 38px;
}


.character-label {
    margin-top: 50px;

    color: #706b62;

    font-size: 9px;
    font-weight: bold;
    letter-spacing: 3px;
}


/* MAIN CHARACTER INFORMATION */

.character-main-info {
    padding: 48px 55px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


.character-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.character-account {
    color: #d8a34b;

    font-size: 10px;
    font-weight: bold;

    letter-spacing: 2px;
}


.character-status {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #70bd81;

    font-size: 9px;
    font-weight: bold;

    letter-spacing: 1.5px;
}


.character-status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #70bd81;

    box-shadow:
        0 0 10px #70bd81;
}


.character-main-info h2 {
    margin-top: 20px;

    font-size: clamp(
        38px,
        5vw,
        66px
    );

    line-height: 1;

    text-transform: uppercase;

    letter-spacing: -2px;

    word-break: break-word;
}


.character-subtitle {
    margin-top: 12px;

    color: #79756d;

    font-size: 10px;

    letter-spacing: 3px;
}


.character-divider {
    height: 1px;

    margin: 35px 0;

    background: #302d27;
}


.character-quick-stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);
}


.character-quick-stats > div {
    display: flex;
    flex-direction: column;

    gap: 9px;

    padding-right: 25px;
}


.character-quick-stats strong {
    font-size: 12px;
}


/* GRID */

.character-grid {
    margin-top: 18px;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}


/* PANELS */

.character-panel {
    min-height: 300px;

    padding: 30px;

    background: #101214;

    border: 1px solid #292722;
}


.character-panel-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    padding-bottom: 20px;

    border-bottom: 1px solid #302d27;
}


.character-panel-header h3 {
    margin-top: 7px;

    font-size: 18px;

    letter-spacing: 1px;
}


.character-panel-header > span {
    color: #d8a34b;

    font-size: 10px;

    letter-spacing: 2px;
}


/* DATA */

.character-data-list {
    margin-top: 15px;
}


.character-data-list > div {
    min-height: 49px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-bottom: 1px solid #242321;
}


.character-data-list > div:last-child {
    border-bottom: none;
}


.character-data-list span {
    color: #706d67;

    font-size: 9px;
    font-weight: bold;

    letter-spacing: 1.4px;
}


.character-data-list strong {
    color: #d7d0c4;

    font-size: 12px;

    text-align: right;
}


.character-data-list
.character-online {
    color: #70bd81;
}


/* EQUIPMENT */

.character-equipment-panel {
    min-height: 300px;
}


.equipment-preview {
    margin-top: 25px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;
}


.equipment-slot {
    height: 88px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0c0e10;

    border: 1px solid #332f29;

    transition: .2s;
}


.equipment-slot:hover {
    border-color: #8b6733;
}


.equipment-slot small {
    position: absolute;

    top: 9px;
    left: 10px;

    font-size: 7px;
}


.equipment-slot span {
    color: #514b42;

    font-size: 25px;
    font-weight: 200;
}


.equipment-note {
    margin-top: 18px;

    color: #625f59;

    font-size: 10px;

    line-height: 1.6;
}


/* SYSTEM */

.character-system-data strong {
    color: #8c867d;

    font-family: monospace;

    font-size: 11px;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .character-hero {
        grid-template-columns:
            260px 1fr;
    }

    .character-main-info {
        padding: 40px;
    }

}


@media (max-width: 750px) {

    .character-page {
        width: 90%;
    }

    .character-hero {
        grid-template-columns: 1fr;
    }

    .character-visual {
        min-height: 260px;

        border-right: none;

        border-bottom:
            1px solid #302c26;
    }

    .character-grid {
        grid-template-columns: 1fr;
    }

    .character-quick-stats {
        grid-template-columns: 1fr;

        gap: 20px;
    }

}


@media (max-width: 450px) {

    .character-main-info {
        padding: 30px 22px;
    }

    .character-panel {
        padding: 22px;
    }

    .equipment-preview {
        grid-template-columns:
            repeat(2, 1fr);
    }

}

.home-character-button {
    padding: 15px 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    cursor: pointer;

    font-weight: 800;
    letter-spacing: 1px;
}

/* =========================================
   SERVER PAGE
   ========================================= */

.server-page {
    width: 84%;
    margin: auto;
    padding: 70px 0 100px;
}


.server-page-header {
    max-width: 760px;
}


.server-page-header h1 {
    margin-top: 12px;

    font-size: clamp(42px, 5vw, 64px);
    line-height: 1;

    text-transform: uppercase;
    letter-spacing: -2px;
}


.server-page-description {
    margin-top: 18px;

    color: #77746e;

    font-size: 14px;
    line-height: 1.7;
}


/* LOADING */

.server-loading {
    margin-top: 45px;
    padding: 40px;

    text-align: center;

    background: #101214;
    border: 1px solid #2c2924;

    color: #77736c;

    font-size: 11px;
    letter-spacing: 2px;
}


.server-loading-error {
    color: #e05d5d;
}


/* CONTENT */

.server-content {
    margin-top: 45px;
}


/* HERO */

.server-hero {
    min-height: 210px;
    padding: 45px 50px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 1px solid #302c26;

    background:
        radial-gradient(
            circle at 75% 50%,
            rgba(216, 163, 75, .12),
            transparent 38%
        ),
        linear-gradient(
            120deg,
            #101214,
            #15120e
        );
}


.server-hero h2 {
    margin-top: 12px;

    font-size: clamp(38px, 5vw, 62px);

    line-height: 1;

    letter-spacing: -2px;
}


.server-hero p {
    margin-top: 12px;

    color: #706d67;

    font-size: 10px;

    letter-spacing: 3px;
}


/* STATUS */

.server-main-status {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 18px 24px;

    border: 1px solid #31302c;

    font-size: 11px;

    letter-spacing: 2px;
}


.server-status-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;
}


.server-main-status.is-online {
    color: #70e68a;
}


.server-main-status.is-online
.server-status-dot {

    background: #70e68a;

    box-shadow:
        0 0 7px #70e68a,
        0 0 15px rgba(112, 230, 138, .6);
}


.server-main-status.is-offline {
    color: #ff4d4d;
}


.server-main-status.is-offline
.server-status-dot {

    background: #ff4d4d;

    box-shadow:
        0 0 7px #ff4d4d,
        0 0 15px rgba(255, 77, 77, .6);
}


/* MAIN STATS */

.server-stats-grid {
    margin-top: 18px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    border: 1px solid #292722;

    background: #101214;
}


.server-stat-card {
    min-height: 135px;

    padding: 25px;

    display: flex;
    flex-direction: column;

    justify-content: center;

    border-right: 1px solid #292722;
}


.server-stat-card:last-child {
    border-right: none;
}


.server-stat-card strong {
    margin-top: 10px;

    color: #e9e2d5;

    font-size: 30px;
}


.server-stat-card span {
    margin-top: 8px;

    color: #6e6a63;

    font-size: 8px;

    letter-spacing: 2px;
}


.server-stat-card
.server-world-name {

    color: #d8a34b;

    font-size: 20px;
}


/* PANELS */

.server-details-grid {
    margin-top: 18px;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}


.server-info-panel {
    min-height: 310px;

    padding: 30px;

    background: #101214;

    border: 1px solid #292722;
}


.server-info-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    padding-bottom: 20px;

    border-bottom: 1px solid #302d27;
}


.server-info-header h3 {
    margin-top: 7px;

    font-size: 18px;

    letter-spacing: 1px;
}


.server-info-header > span {
    color: #d8a34b;

    font-size: 10px;

    letter-spacing: 2px;
}


/* DATA LIST */

.server-data-list {
    margin-top: 15px;
}


.server-data-list > div {
    min-height: 54px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-bottom: 1px solid #242321;
}


.server-data-list > div:last-child {
    border-bottom: none;
}


.server-data-list span {
    color: #706d67;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 1.4px;
}


.server-data-list strong {
    color: #d7d0c4;

    font-size: 12px;

    text-align: right;
}


.server-green {
    color: #70e68a !important;
}


/* WORLD STATISTICS */

.world-stat-grid {
    margin-top: 25px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-top: 1px solid #292722;
    border-left: 1px solid #292722;
}


.world-stat-grid > div {
    min-height: 105px;

    padding: 20px;

    display: flex;
    flex-direction: column;

    justify-content: center;

    border-right: 1px solid #292722;
    border-bottom: 1px solid #292722;
}


.world-stat-grid strong {
    margin-top: 10px;

    color: #d8a34b;

    font-size: 22px;
}


/* SERVER REGISTRY */

.server-registry-display {
    min-height: 200px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}


.server-registry-display strong {
    margin-top: 12px;

    color: #d8a34b;

    font-size: 55px;
}


.server-registry-display p {
    max-width: 330px;

    margin-top: 15px;

    color: #6e6a63;

    font-size: 11px;

    line-height: 1.7;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .server-stats-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .server-stat-card {
        border-bottom:
            1px solid #292722;
    }

}


@media (max-width: 750px) {

    .server-page {
        width: 90%;
    }

    .server-hero {
        align-items: flex-start;
        flex-direction: column;

        gap: 35px;

        padding: 35px 28px;
    }

    .server-details-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 500px) {

    .server-stats-grid {
        grid-template-columns: 1fr;
    }

    .server-stat-card {
        border-right: none;
    }

    .world-stat-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}

.home-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.home-actions .secondary {
    width: 164px;
    height: 52px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: 1px solid #4a443a;
    color: #f1eee7;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;

    cursor: pointer;
}

.home-actions .secondary:hover {
    border-color: #d6a447;
    color: #d6a447;
}

/* ============================================================
   STEAM ACCOUNT MENU
   ============================================================ */

.account-menu {
    position: relative;
    display: inline-block;
}

.account-menu .login {
    text-decoration: none;
    cursor: pointer;
}

.account-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 18px;
    background: #0d0f11;
    border: 1px solid #b8872f;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    z-index: 9999;
}

.account-dropdown.show {
    display: block;
}

.account-dropdown-title {
    color: #d9a441;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.account-dropdown-info {
    color: #cfcfcf;
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.account-dropdown-info span {
    color: #ffffff;
}

.account-logout {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #555;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: 0.2s;
}

.account-logout:hover {
    border-color: #d9a441;
    color: #d9a441;
}


/* ============================================================
   UNIVERSAL STEAM ACCOUNT MENU
   ============================================================ */

.steam-auth-container {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

#authButton {
    position: relative;
    z-index: 1002;
}

.steam-account-dropdown {
    position: absolute !important;

    top: calc(100% + 8px) !important;
    right: 0 !important;

    width: 290px !important;

    padding: 20px !important;

    background: #0c0e10 !important;

    border: 1px solid #d99a24 !important;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.55) !important;

    z-index: 99999 !important;

    display: none !important;

    box-sizing: border-box !important;
}

.steam-account-dropdown.show {
    display: block !important;
}

.steam-account-title {
    color: #e5a72f !important;

    font-size: 13px !important;

    font-weight: 700 !important;

    letter-spacing: 2px !important;

    margin-bottom: 18px !important;
}

.steam-account-row {
    display: flex !important;

    flex-direction: column !important;

    gap: 4px !important;

    margin-bottom: 12px !important;

    color: #aaaaaa !important;

    font-size: 13px !important;
}

.steam-account-row strong {
    color: #f0f0f0 !important;

    font-size: 13px !important;

    font-weight: 500 !important;

    word-break: break-all !important;
}

.steam-account-logout {
    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    width: 100% !important;

    height: 42px !important;

    margin-top: 18px !important;

    box-sizing: border-box !important;

    border: 1px solid #555 !important;

    background: transparent !important;

    color: #ffffff !important;

    text-decoration: none !important;

    font-size: 12px !important;

    font-weight: 700 !important;

    letter-spacing: 1px !important;

    transition: all 0.2s ease !important;
}

.steam-account-logout:hover {
    border-color: #d99a24 !important;

    color: #e5a72f !important;
}


/* ============================================================
   LOGIN REQUIRED PAGE
   ============================================================ */

.login-required-page {

    min-height: 650px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 80px 20px;

    box-sizing: border-box;
}

.login-required-box {

    width: 100%;

    max-width: 560px;

    padding: 55px 45px;

    box-sizing: border-box;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(20, 21, 22, 0.97),
            rgba(10, 11, 12, 0.97)
        );

    border: 1px solid #343434;

    box-shadow:
        0 25px 70px rgba(0,0,0,0.45);
}

.login-required-icon {

    font-size: 42px;

    margin-bottom: 20px;

    opacity: 0.9;
}

.login-required-label {

    color: #e5a72f;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 4px;

    margin-bottom: 18px;
}

.login-required-box h1 {

    margin: 0 0 22px 0;

    color: #f1eee8;

    font-size: 38px;

    font-weight: 800;

    letter-spacing: 2px;
}

.login-required-box p {

    margin: 0 auto 32px auto;

    max-width: 420px;

    color: #999;

    font-size: 15px;

    line-height: 1.8;
}

.login-required-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 220px;

    height: 50px;

    padding: 0 30px;

    box-sizing: border-box;

    background: transparent;

    border: 1px solid #d99a24;

    color: #e5a72f;

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.5px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.login-required-button:hover {

    background: #d99a24;

    border-color: #d99a24;

    color: #090a0b;
}


/* ============================================================
   LOGIN REQUIRED
   ============================================================ */

.login-required-page {
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px;
    box-sizing: border-box;
}

.login-required-box {
    width: 100%;
    max-width: 560px;
    padding: 55px 45px;
    box-sizing: border-box;
    text-align: center;
    background: rgba(12, 14, 16, 0.97);
    border: 1px solid #343434;
    box-shadow: 0 25px 70px rgba(0,0,0,0.45);
}

.login-required-icon {
    font-size: 38px;
    margin-bottom: 20px;
}

.login-required-box h1 {
    margin: 0 0 22px 0;
    color: #f1eee8;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 2px;
}

.login-required-box p {
    margin: 0 auto 32px auto;
    max-width: 440px;
    color: #999;
    font-size: 15px;
    line-height: 1.8;
}

.login-required-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 48px;
    padding: 0 30px;
    box-sizing: border-box;

    background: transparent;
    border: 1px solid #d99a24;

    color: #e5a72f;
    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.login-required-button:hover {
    background: #d99a24;
    color: #090a0b;
}

