* {
    box-sizing: border-box;
}

html {
    background: #080d13;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 20% 0%,
            #122033 0,
            transparent 35%
        ),
        #080d13;

    color: #d8e1ec;

    font-family:
        Inter,
        Segoe UI,
        Arial,
        sans-serif;

    font-size: 17px;

    overflow-y: scroll;
}

button,
input {
    font: inherit;
}

.hidden {
    display: none !important;
}

.muted {
    color: #6f8299;
}

.small {
    font-size: 13px;
}


/* ============================================================
   COMMON
   ============================================================ */

.brand {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: .04em;
}

.brand small {
    display: block;

    margin-top: 5px;

    color: #60748d;

    font-size: 13px;
    font-weight: 500;
}

.button {
    border:
        1px solid #314258;

    border-radius: 7px;

    background: #152131;

    color: #bdcada;

    padding: 10px 14px;

    cursor: pointer;

    font-size: 15px;

    white-space: nowrap;
}

.button:hover {
    background: #1e2e42;
    color: white;
}

.button.green {
    background: #173322;
    border-color: #2e6848;
    color: #a9edc1;
}

.button.blue {
    background: #142d4b;
    border-color: #285783;
    color: #acd2ff;
}

.wide {
    width: 100%;
    margin-top: 16px;
}


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

.loginShell {
    min-height: 100vh;

    display: grid;
    place-items: center;

    padding: 20px;
}

.loginCard {
    width: min(460px,100%);

    padding: 26px;

    background: #0d151f;

    border:
        1px solid #233246;

    border-radius: 12px;

    box-shadow:
        0 28px 80px rgba(0,0,0,.36);
}

.loginCard h1 {
    margin: 14px 0 6px;
}

.loginCard label {
    display: block;

    margin: 18px 0 7px;

    color: #8295ac;
}

.loginCard input,
.textInput,
.numberInput {
    height: 40px;

    padding: 0 10px;

    background: #101923;

    border:
        1px solid #304156;

    border-radius: 6px;

    color: #d7e1ec;

    outline: none;
}

.loginCard input {
    width: 100%;
}

.challenge {
    margin-top: 18px;

    padding: 14px;

    background: #091019;

    border:
        1px solid #1f2d40;

    border-radius: 9px;
}

.command {
    margin: 8px 0;

    padding: 12px;

    background: #050a0f;

    border:
        1px solid #243246;

    border-radius: 6px;

    font-family:
        Consolas,
        monospace;

    user-select: all;

    word-break: break-word;
}

.error {
    min-height: 22px;

    margin-top: 12px;

    color: #df747e;
}


/* ============================================================
   TOP
   ============================================================ */

.topbar {
    position: sticky;

    top: 0;

    z-index: 30;

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 14px 24px;

    background:
        rgba(8,13,19,.94);

    border-bottom:
        1px solid #1c2837;

    backdrop-filter:
        blur(14px);
}

.topActions {
    display: flex;

    align-items: center;

    gap: 10px;
}

.onlineBadge {
    padding: 7px 11px;

    background: #173322;

    border:
        1px solid #2e6848;

    border-radius: 999px;

    color: #a9edc1;

    font-size: 12px;
    font-weight: 800;
}


/* ============================================================
   MAIN
   ============================================================ */

.main {
    min-width: 0;

    padding:
        20px
        24px
        60px;

    max-width: 1600px;

    margin: 0 auto;
}

.pageTitle {
    margin: 0 0 4px;

    font-size: 34px;
}

.pageSubtitle {
    margin-bottom: 20px;

    color: #6f8299;

    font-size: 15px;
}

.card {
    background:
        rgba(13,20,29,.96);

    border:
        1px solid #223145;

    border-radius: 12px;

    padding: 14px;
}


/* ============================================================
   PLAYER CARD - AUS DEM ADMINPANEL
   ============================================================ */

.playerCard {
    width: 100%;

    display: grid;

    grid-template-columns:
        260px
        minmax(590px,1fr);

    gap: 16px;

    padding: 14px;

    background: #0d151f;

    border:
        1px solid #233246;

    border-radius: 12px;

    contain:
        layout style;
}

.playerInfo {
    min-width: 0;
}

.playerTop {
    display: flex;

    align-items: center;

    gap: 11px;

    margin-bottom: 12px;
}

.playerHead {
    width: 58px;
    height: 58px;

    flex:
        0 0 58px;

    image-rendering:
        pixelated;

    border-radius: 7px;

    background: #131e2b;

    border:
        1px solid #304157;
}

.playerName {
    font-size: 22px;
    font-weight: 800;

    overflow: hidden;

    text-overflow: ellipsis;
}

.playerStatus {
    margin-top: 4px;

    color: #65d792;

    font-size: 14px;

    text-transform:
        uppercase;
}

.playerStatus.offline {
    color: #d77b84;
}


/* ============================================================
   PLAYER INFO
   ============================================================ */

.playerStats {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 6px;

    margin-top: 10px;
}

.playerStat {
    padding: 8px 9px;

    background: #0a1119;

    border:
        1px solid #1f2d40;

    border-radius: 7px;

    min-width: 0;
}

.playerStat.full {
    grid-column:
        1 / -1;
}

.playerStat span {
    display: block;

    color: #71849b;

    font-size: 11px;

    margin-bottom: 3px;
}

.playerStat strong {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    font-size: 13px;
}

.roleBadges {
    display: flex;

    flex-wrap: wrap;

    gap: 5px;

    margin-top: 9px;
}

.roleBadge {
    padding: 4px 7px;

    border:
        1px solid #33475e;

    border-radius: 999px;

    background: #111b27;

    color: #9fb0c4;

    font-size: 10px;
}

.sideTitle {
    margin:
        13px 0 7px;

    color: #8295ac;

    font-size: 12px;
    font-weight: 700;
}

.compactButtons {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 5px;

    margin-bottom: 5px;
}

.compactButtons .button {
    padding: 7px 8px;

    font-size: 11px;
}


/* ============================================================
   INVENTORY
   ============================================================ */

.inventoryPanel {
    min-width: 0;

    padding: 11px;

    background: #091019;

    border:
        1px solid #1f2d40;

    border-radius: 10px;

    overflow-x: auto;
}

.inventoryHeader {
    min-height: 42px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 8px;
}

.inventoryTitle {
    font-size: 18px;
    font-weight: 700;
}

.inventoryState {
    margin-left: 8px;

    color: #687c94;

    font-size: 14px;
}

.inventoryTabs {
    display: flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 9px;
}

.tabButton.active {
    border-color: #4c79a5;

    background: #19314a;

    color: white;
}

.inventoryMode {
    margin-left: auto;

    color: #6e829a;

    font-size: 12px;
}

.inventoryBody {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    overflow-x: auto;

    min-height: 230px;

    padding-bottom: 4px;
}

.inventoryMain {
    flex:
        0 0 auto;
}

.inventoryGrid,
.enderGrid {
    display: grid;

    grid-template-columns:
        repeat(9,72px);

    grid-auto-rows:
        72px;

    gap: 5px;

    width: max-content;
}

.hotbar {
    margin-top: 8px;
}

.equipmentGrid {
    display: grid;

    grid-template-columns:
        72px;

    grid-template-rows:
        repeat(5,72px);

    gap: 5px;

    padding-left: 8px;

    border-left:
        1px solid #243246;
}


/* ============================================================
   SLOTS - ADMINPANEL V5.4 SIZE
   ============================================================ */

.invSlot {
    position: relative;

    width: 72px;
    height: 72px;

    min-width: 72px;
    min-height: 72px;

    max-width: 72px;
    max-height: 72px;

    padding: 0;
    margin: 0;

    display: flex;

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

    overflow: hidden;

    background: #131d29;

    border:
        1px solid #34455b;

    border-radius: 6px;

    contain:
        layout paint;
}

.invSlot.editable {
    cursor: pointer;
}

.invSlot.editable:hover {
    border-color: #657c9a;
}

.invSlot.selected {
    border:
        2px solid #54d68c;
}

.invSlot.empty {
    background: #101821;
}

.itemImage {
    display: block;

    width: 68px;
    height: 68px;

    min-width: 68px;
    min-height: 68px;

    max-width: 68px;
    max-height: 68px;

    object-fit: contain;

    image-rendering:
        pixelated;

    pointer-events: none;
}

.itemFallback {
    display: flex;

    width: 64px;
    height: 64px;

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

    padding: 3px;

    background: #233247;

    border-radius: 5px;

    color: #aebed2;

    font-size: 11px;

    text-align: center;

    overflow: hidden;
}

.itemCount {
    position: absolute;

    right: 2px;
    bottom: 1px;

    color: white;

    font-size: 18px;
    font-weight: 900;

    line-height: 19px;

    text-shadow:
        2px 2px 0 #000,
        -1px -1px 0 #000;

    pointer-events: none;
}

.slotLabel {
    position: absolute;

    top: 2px;
    left: 3px;

    z-index: 2;

    color: #64758b;

    font-size: 9px;

    pointer-events: none;
}


/* ============================================================
   ENDER
   ============================================================ */

.enderView {
    overflow-x: auto;

    padding:
        2px 0 5px;
}


/* ============================================================
   EDITOR
   ============================================================ */

.slotEditor {
    margin-top: 10px;

    padding-top: 10px;

    border-top:
        1px solid #213044;
}

.editorTitle {
    font-size: 16px;
    font-weight: 700;
}

.selectedSlotName {
    margin:
        4px 0 8px;

    color: #8295ac;

    font-size: 12px;
}

.editorRow {
    display: grid;

    grid-template-columns:
        minmax(180px,1fr)
        90px
        auto
        auto;

    gap: 6px;
}

.textInput,
.numberInput {
    width: 100%;

    font-size: 14px;
}

.editorHint {
    margin-top: 6px;

    color: #687c94;

    font-size: 11px;
}


/* ============================================================
   WORLD
   ============================================================ */

.worldCard {
    display: flex;

    flex-wrap: wrap;

    gap: 30px;

    margin-top: 14px;
}

.worldMetric span {
    display: block;

    color: #667b94;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: .06em;
}

.worldMetric strong {
    display: block;

    margin-top: 5px;

    font-size: 20px;
}


/* ============================================================
   BLUEMAP
   ============================================================ */

.mapCard {
    margin-top: 14px;
}

.sectionTitle {
    font-size: 18px;
    font-weight: 700;
}

.mapHeader {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 9px;
}

.mapFrameWrap {
    position: relative;

    width: 100%;
    height: 720px;

    overflow: hidden;

    background: #060b10;

    border:
        1px solid #32495f;

    border-radius: 9px;
}

#mapFrame {
    width: 100%;
    height: 100%;

    border: 0;

    background: #060b10;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width:1150px) {

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

    .mapFrameWrap {
        height: 600px;
    }
}


@media (max-width:760px) {

    body {
        font-size: 15px;
    }

    .main {
        padding:
            12px 8px 40px;
    }

    .topbar {
        padding: 10px;
    }

    .pageTitle {
        font-size: 28px;
    }

    .playerCard {
        padding: 8px;
        gap: 10px;
    }

    .inventoryGrid,
    .enderGrid {
        grid-template-columns:
            repeat(9,60px);

        grid-auto-rows:
            60px;

        gap: 4px;
    }

    .equipmentGrid {
        grid-template-columns:
            60px;

        grid-template-rows:
            repeat(5,60px);
    }

    .invSlot {
        width: 60px;
        height: 60px;

        min-width: 60px;
        min-height: 60px;

        max-width: 60px;
        max-height: 60px;
    }

    .itemImage {
        width: 56px;
        height: 56px;

        min-width: 56px;
        min-height: 56px;

        max-width: 56px;
        max-height: 56px;
    }

    .itemFallback {
        width: 54px;
        height: 54px;

        font-size: 9px;
    }

    .editorRow {
        grid-template-columns:
            1fr 80px;
    }

    .mapFrameWrap {
        height: 520px;
    }

    .brand {
        font-size: 18px;
    }

    .brand small {
        font-size: 10px;
    }
}