.sro-game-profile {
    color: #eee8d7;
    display: grid;
    gap: 1rem;
    justify-content: start;
}

.sro-public-game-profile {
    align-items: start;
    grid-template-columns: 203px 387px;
}

.sro-admin-game-profile {
    align-items: start;
    grid-template-columns: minmax(360px, 390px) minmax(360px, 410px);
}

.sro-game-window {
    background: rgba(5, 6, 8, 0.96);
    border: 12px solid transparent;
    border-image: url("/img/interface/inventory-window-frame.png") 12 fill / 12px / 0 stretch;
    box-sizing: border-box;
    color: #eee8d7;
    min-width: 0;
    position: relative;
}

.sro-window-titlebar {
    align-items: center;
    color: #eee8d7;
    display: flex;
    font: 12px/1.2 Arial, sans-serif;
    height: 22px;
    justify-content: center;
    margin: -7px -5px 5px;
    position: relative;
    text-shadow: 1px 1px #000;
}

.sro-window-close {
    align-items: center;
    appearance: none;
    background: linear-gradient(#e4d7a4, #746239);
    border: 1px solid #211b10;
    border-radius: 2px;
    color: #17120a;
    cursor: pointer;
    display: flex;
    font: bold 13px/1 Arial, sans-serif;
    height: 16px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: -9px;
    top: -3px;
    width: 16px;
}

.sro-window-close:hover {
    background: linear-gradient(#fff0b0, #9b8043);
}

.sro-inventory-window {
    min-height: 405px;
    width: 390px;
}

.sro-inventory-content {
    display: grid;
    gap: 7px;
    grid-template-columns: 158px minmax(0, 1fr);
}

.sro-inventory-bag-panel {
    min-width: 0;
    padding-top: 21px;
    position: relative;
}

.sro-inventory-tabs {
    left: 0;
    position: absolute;
    top: -1px;
}

.sro-inventory-tab {
    background: linear-gradient(#427398, #163448);
    border: 1px solid #94b5c5;
    border-radius: 3px;
    color: #f4f1e6;
    cursor: pointer;
    font: 11px Arial, sans-serif;
    min-height: 20px;
    padding: 2px 6px;
    text-shadow: 1px 1px #000;
}

.sro-inventory-tab.active {
    background: linear-gradient(#65a4ce, #21536f);
    box-shadow: inset 0 0 0 1px rgba(209, 235, 248, 0.45);
}

.sro-inventory-bag {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid #5e5742;
    display: grid;
    gap: 3px;
    grid-template-columns: repeat(4, 32px);
    grid-template-rows: repeat(8, 32px);
    padding: 3px;
    width: max-content;
}

.sro-inventory-gold {
    align-items: center;
    color: #eee8d7;
    display: flex;
    font: 11px Arial, sans-serif;
    justify-content: flex-end;
    margin-top: 4px;
    min-height: 16px;
    text-shadow: 1px 1px #000;
}

.sro-inventory-equipment {
    min-width: 0;
}

.sro-public-game-profile > .sro-public-equipment-window {
    background-color: rgba(0, 0, 0, 0.94);
    border-image-source: url("/img/interface/equipment-window-frame.png");
    height: 365px;
    padding: 0;
    width: 203px;
}

.sro-public-game-profile .sro-equipment-paperdoll {
    height: 341px;
}

.sro-equipment-paperdoll {
    align-content: start;
    display: grid;
    grid-template-areas:
        "weapon model offhand"
        "head model shoulder"
        "chest model wrist"
        "legs model feet"
        "earring model necklace"
        "left-ring model right-ring"
        "avatar model special";
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    grid-template-rows: 56px repeat(6, 43.5px);
    justify-items: center;
    overflow: visible;
    position: relative;
    row-gap: 4px;
}

.sro-equipment-slot,
.sro-inventory-slot {
    align-items: center;
    appearance: none;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    border: 0;
    border-radius: 0;
    color: #fff;
    cursor: default;
    display: flex;
    height: 40px;
    justify-content: center;
    padding: 0;
    position: relative;
    width: 40px;
}

.sro-equipment-slot {
    align-self: center;
    justify-self: center;
    z-index: 1;
}

.sro-equipment-slot.has-item,
.sro-inventory-slot.has-item {
    cursor: help;
}

.sro-equipment-slot.slot-head {
    background-image: url("/img/interface/equipment/equip_slot_helm.png");
}

.sro-equipment-slot.slot-chest {
    background-image: url("/img/interface/equipment/equip_slot_mail.png");
}

.sro-equipment-slot.slot-shoulder {
    background-image: url("/img/interface/equipment/equip_slot_shoulderguard.png");
}

.sro-equipment-slot.slot-wrist {
    background-image: url("/img/interface/equipment/equip_slot_gauntlet.png");
}

.sro-equipment-slot.slot-legs {
    background-image: url("/img/interface/equipment/equip_slot_pants.png");
}

.sro-equipment-slot.slot-feet {
    background-image: url("/img/interface/equipment/equip_slot_boots.png");
}

.sro-equipment-slot.slot-weapon {
    background-image: url("/img/interface/equipment/equip_slot_weapon.png");
}

.sro-equipment-slot.slot-offhand {
    background-image: url("/img/interface/equipment/equip_slot_shield.png");
}

.sro-equipment-slot.slot-offhand-weapon {
    background-image: url("/img/interface/equipment/equip_slot_weapon.png");
}

.sro-equipment-slot.slot-special {
    background-image: url("/img/interface/equipment/equip_slot_specialdress.png");
}

.sro-equipment-slot.slot-earring {
    background-image: url("/img/interface/equipment/equip_slot_earring.png");
}

.sro-equipment-slot.slot-necklace {
    background-image: url("/img/interface/equipment/equip_slot_necklace.png");
}

.sro-equipment-slot.slot-left-ring {
    background-image: url("/img/interface/equipment/equip_slot_l_ring.png");
}

.sro-equipment-slot.slot-right-ring {
    background-image: url("/img/interface/equipment/equip_slot_r_ring.png");
}

.sro-equipment-slot.slot-head { grid-area: head; }
.sro-equipment-slot.slot-chest { grid-area: chest; }
.sro-equipment-slot.slot-shoulder { grid-area: shoulder; }
.sro-equipment-slot.slot-wrist { grid-area: wrist; }
.sro-equipment-slot.slot-legs { grid-area: legs; }
.sro-equipment-slot.slot-feet { grid-area: feet; }
.sro-equipment-slot.slot-weapon { grid-area: weapon; }
.sro-equipment-slot.slot-offhand { grid-area: offhand; }
.sro-equipment-slot.slot-special { grid-area: special; }
.sro-equipment-slot.slot-earring { grid-area: earring; }
.sro-equipment-slot.slot-necklace { grid-area: necklace; }
.sro-equipment-slot.slot-left-ring { grid-area: left-ring; }
.sro-equipment-slot.slot-right-ring { grid-area: right-ring; }
.sro-avatar-button {
    background: url("/img/interface/equipment/equip_slot_avata_button.png") center / contain no-repeat;
    grid-area: avatar;
    height: 40px;
    width: 40px;
}

.sro-equipment-slot.slot-weapon,
.sro-equipment-slot.slot-offhand {
    height: 48px;
    transform: translate(4px, -4px);
    width: 48px;
}

.sro-equipment-slot img,
.sro-inventory-slot img {
    height: 32px;
    object-fit: contain;
    width: 32px;
}

.sro-inventory-slot {
    background: linear-gradient(135deg, rgba(22, 21, 19, 0.92), rgba(4, 4, 4, 0.96));
    border: 1px solid #554d3b;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.85);
    height: 32px;
    width: 32px;
}

.sro-inventory-slot.has-item {
    border-color: #766b4d;
}

.equipment-item-upgrade {
    background: rgba(0, 0, 0, 0.84);
    bottom: 0;
    color: #ffe15a;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    padding: 1px 2px;
    position: absolute;
    right: 0;
    text-shadow: 0 1px #000;
}

.equipment-item-tooltip {
    background: rgba(3, 5, 14, 0.98);
    border: 1px solid #52679b;
    box-sizing: border-box;
    box-shadow: 0 3px 14px #000;
    color: #eee;
    display: none;
    font: 12px/1.35 Arial, sans-serif;
    left: 0;
    max-height: calc(100vh - 16px);
    max-width: min(280px, calc(100vw - 16px));
    min-width: 0;
    overflow-y: auto;
    padding: 7px 9px;
    pointer-events: none;
    position: fixed;
    text-align: left;
    transform: none;
    width: max-content;
    z-index: 10000;
}

.equipment-item-tooltip.is-open {
    display: block;
}

.equipment-item-tooltip strong,
.equipment-item-tooltip span {
    display: block;
    overflow-wrap: anywhere;
}

.equipment-item-tooltip strong {
    color: #fff;
    font-size: 12px;
    margin-bottom: 4px;
}

.equipment-item-tooltip.item-sox strong {
    color: #ffd84a;
}

.equipment-item-tooltip .equipment-item-seal {
    color: #ffe15a;
}

.equipment-item-tooltip .equipment-item-option {
    color: #00d9f4;
}

.sro-equipment-slot:focus-visible,
.sro-inventory-slot:focus-visible,
.sro-inventory-tab:focus-visible,
.sro-model-controls button:focus-visible {
    outline: 1px solid #f5d875;
    outline-offset: 1px;
    z-index: 2;
}

.sro-character-model {
    align-self: stretch;
    grid-area: model;
    min-height: 215px;
    min-width: 0;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.sro-character-model-canvas {
    display: block;
    height: 100%;
    min-height: 215px;
    width: 100%;
}

.sro-character-model-status {
    color: #c9c4b8;
    font: 10px/1.3 Arial, sans-serif;
    left: 2px;
    position: absolute;
    right: 2px;
    text-align: center;
    text-shadow: 1px 1px #000;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.sro-character-model-status.is-error {
    color: #ffb0a7;
}

.sro-model-controls {
    align-items: center;
    display: flex;
    gap: 0;
    justify-content: center;
    left: 0;
    position: absolute;
    right: 0;
    top: calc(100% - 15px);
    transform: translateX(5px);
    z-index: 2;
}

.sro-model-controls button {
    appearance: none;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.sro-model-control.rotate-left {
    background-image: url("/img/interface/equipment/equip_rotate_left_button.png");
    height: 16px;
    width: 28px;
}

.sro-model-control.rotate-reset {
    background-image: url("/img/interface/equipment/equip_rotate_reset_button.png");
    height: 16px;
    width: 16px;
}

.sro-model-control.rotate-right {
    background-image: url("/img/interface/equipment/equip_rotate_right_button.png");
    height: 16px;
    width: 28px;
}

.sro-model-control.rotate-left:hover,
.sro-model-control.rotate-left:focus-visible {
    background-image: url("/img/interface/equipment/equip_rotate_left_button_focus.png");
}

.sro-model-control.rotate-left:active {
    background-image: url("/img/interface/equipment/equip_rotate_left_button_press.png");
}

.sro-model-control.rotate-reset:hover,
.sro-model-control.rotate-reset:focus-visible {
    background-image: url("/img/interface/equipment/equip_rotate_reset_button_focus.png");
}

.sro-model-control.rotate-reset:active {
    background-image: url("/img/interface/equipment/equip_rotate_reset_button_press.png");
}

.sro-model-control.rotate-right:hover,
.sro-model-control.rotate-right:focus-visible {
    background-image: url("/img/interface/equipment/equip_rotate_right_button_focus.png");
}

.sro-model-control.rotate-right:active {
    background-image: url("/img/interface/equipment/equip_rotate_right_button_press.png");
}

.sro-character-window {
    background: rgba(5, 6, 8, 0.96);
    border: 28px solid transparent;
    border-width: 28px 12px 8px;
    border-image: url("/img/interface/character-window-frame.png") 28 16 4 16 / 28px 12px 8px 12px / 0 stretch;
    min-height: 405px;
    width: 410px;
}

.sro-public-game-profile > .sro-character-window {
    min-height: 407px;
    width: 387px;
}

.sro-character-window .sro-window-titlebar {
    color: #f4f1e6;
    margin: -25px -5px 13px;
}

.sro-character-window-content {
    background: transparent;
    border: 0;
    font: 14px/1.35 Arial, sans-serif;
}

.sro-character-identity {
    align-items: center;
    background: linear-gradient(90deg, #1d2b45, #526a93 50%, #1d2b45);
    border: 1px solid #8e9bb1;
    color: #fff;
    display: flex;
    justify-content: center;
    min-height: 24px;
    position: relative;
    text-shadow: 1px 1px #000;
}

.sro-character-identity span:last-child {
    position: absolute;
    right: 8px;
}

.sro-character-experience,
.sro-character-points {
    align-items: center;
    background: rgba(5, 6, 8, 0.92);
    border: 1px solid #625f58;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.9);
    column-gap: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 44px;
    margin: 0 2px 2px;
    padding: 7px 14px;
}

.sro-character-points {
    min-height: 34px;
    padding: 4px 14px;
}

.sro-character-metric {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    min-width: 0;
}

.sro-character-metric > span {
    color: #c5b88d;
}

.sro-character-metric strong {
    color: #eee8d7;
    font-weight: 400;
    text-align: right;
}

.sro-character-experience .sro-character-metric:first-child strong {
    color: #c7e478;
}

.sro-character-attributes {
    background: url("/img/interface/character/character-panel-texture.png") center top / 100% 54px repeat-y;
    border: 1px solid #625f58;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.9);
    margin: 0 2px 2px;
    padding: 3px 0;
}

.sro-character-primary-stats {
    align-items: stretch;
    display: grid;
    gap: 2px;
    grid-template-columns: minmax(0, 1fr);
}

.sro-character-stat-row {
    align-items: center;
    background: url("/img/interface/character/character-stat-row.png") center / 100% 100% no-repeat;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    height: 24px;
}

.sro-character-stat-row > .sro-character-primary-metric {
    display: grid;
    grid-template-columns: 30px 20px 32px;
    gap: 0;
    padding: 0 18px 0 32px;
}

.sro-character-stat-adjustment {
    align-items: center;
    background: linear-gradient(#737373, #3e3e3e);
    border: 1px solid #858585;
    box-shadow: inset 1px 1px rgba(255, 255, 255, 0.35), inset -1px -1px rgba(0, 0, 0, 0.8);
    color: #d3d3d3;
    display: flex;
    font: bold 15px/1 Arial, sans-serif;
    height: 18px;
    justify-content: center;
    justify-self: center;
    width: 18px;
}

.sro-resource-row {
    align-items: center;
    display: flex;
    gap: 0;
    min-width: 0;
    padding-right: 14px;
}

.sro-resource-row > .sro-resource-label {
    color: #eee8d7;
    white-space: nowrap;
}

.sro-resource-row > .sro-resource-value {
    color: #eee8d7;
    white-space: nowrap;
}

.sro-resource-bar {
    display: block;
    flex: 1;
    height: 12px;
    min-width: 20px;
    overflow: hidden;
    position: relative;
}

.sro-resource-fill {
    display: block;
    height: 100%;
    position: absolute;
    top: 0;
}

.sro-resource-bar > .sro-resource-value {
    color: #fff;
    font-size: 11px;
    left: 0;
    position: absolute;
    right: 0;
    text-align: center;
    text-shadow: 1px 1px #000;
    top: 0;
}

.resource-hp .sro-resource-fill {
    background: url("/img/interface/character/character-hp-fill.png") left center / 100% 100% no-repeat;
}

.resource-mp .sro-resource-fill {
    background: url("/img/interface/character/character-mp-fill.png") left center / 100% 100% no-repeat;
}

.sro-character-combat-stats {
    border-top: 1px solid rgba(164, 164, 164, 0.4);
    display: grid;
    gap: 2px 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 4px;
    padding-top: 4px;
}

.sro-character-combat-stats .sro-character-metric > span {
    color: #d3c7a2;
}

.sro-character-job {
    background: url("/img/interface/character/character-job-window.png") center / 100% 100% no-repeat;
    display: grid;
    gap: 4px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 20px 20px 28px;
    height: 99px;
    margin: 0 2px;
    padding: 8px 14px;
}

.sro-character-job .sro-character-metric strong {
    font-size: 12px;
}

.sro-job-progress-bar {
    height: 18px;
    min-width: 0;
    position: relative;
}

.sro-job-progress-value {
    align-items: center;
    color: #fff;
    display: flex;
    font-size: 10px;
    inset: 0;
    justify-content: center;
    position: absolute;
    text-shadow: 1px 1px #000;
    white-space: nowrap;
}

.sro-job-progress {
    align-items: center;
    display: flex;
    gap: 7px;
    grid-column: 1 / -1;
}

.sro-job-progress > span:first-child {
    min-width: 112px;
}

.sro-job-progress-bar {
    flex: 1;
}

.character-assets-notice {
    color: #9c9587;
    font-size: 0.75rem;
    margin: 0.5rem 0 0;
}

@media (max-width: 900px) {
    .sro-public-game-profile {
        grid-template-columns: minmax(0, 1fr);
    }

    .sro-public-game-profile > .sro-character-window {
        min-height: 407px;
        max-width: 387px;
        width: 100%;
    }

    .sro-admin-game-profile {
        grid-template-columns: minmax(0, 410px);
    }
}

@media (max-width: 575.98px) {
    .sro-admin-game-profile {
        grid-template-columns: minmax(0, 1fr);
    }

    .sro-character-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sro-character-primary-stats {
            grid-template-columns: minmax(0, 1fr);
    }

    .sro-inventory-window,
    .sro-character-window {
        max-width: 100%;
    }
}
